Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: service.proto
package org.mlflow.api.proto;
public final class Service {
private Service() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
*
*
* ACTIVE_ONLY = 1;
*/
public static final int ACTIVE_ONLY_VALUE = 1;
/**
*
* Return only deleted experiments.
*
*
* DELETED_ONLY = 2;
*/
public static final int DELETED_ONLY_VALUE = 2;
/**
*
* Get all experiments.
*
*
* ALL = 3;
*/
public static final int ALL_VALUE = 3;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ViewType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ViewType forNumber(int value) {
switch (value) {
case 1: return ACTIVE_ONLY;
case 2: return DELETED_ONLY;
case 3: return ALL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ViewType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ViewType findValueByNumber(int number) {
return ViewType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.mlflow.api.proto.Service.getDescriptor().getEnumTypes().get(0);
}
private static final ViewType[] VALUES = values();
public static ViewType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private ViewType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:mlflow.ViewType)
}
/**
*
* As a prepackaged project: either a Docker image or GitHub source, etc.
*
*
* PROJECT = 3;
*/
PROJECT(3),
/**
*
* Local run: Using CLI, IDE, or local notebook.
*
*
* LOCAL = 4;
*/
LOCAL(4),
/**
*
* Unknown source type.
*
*
* UNKNOWN = 1000;
*/
UNKNOWN(1000),
;
/**
*
* Databricks notebook environment.
*
*
* NOTEBOOK = 1;
*/
public static final int NOTEBOOK_VALUE = 1;
/**
*
* Scheduled or Run Now job.
*
*
* JOB = 2;
*/
public static final int JOB_VALUE = 2;
/**
*
* As a prepackaged project: either a Docker image or GitHub source, etc.
*
*
* PROJECT = 3;
*/
public static final int PROJECT_VALUE = 3;
/**
*
* Local run: Using CLI, IDE, or local notebook.
*
*
* LOCAL = 4;
*/
public static final int LOCAL_VALUE = 4;
/**
*
* Unknown source type.
*
*
* UNKNOWN = 1000;
*/
public static final int UNKNOWN_VALUE = 1000;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SourceType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static SourceType forNumber(int value) {
switch (value) {
case 1: return NOTEBOOK;
case 2: return JOB;
case 3: return PROJECT;
case 4: return LOCAL;
case 1000: return UNKNOWN;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
SourceType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SourceType findValueByNumber(int number) {
return SourceType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.mlflow.api.proto.Service.getDescriptor().getEnumTypes().get(1);
}
private static final SourceType[] VALUES = values();
public static SourceType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private SourceType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:mlflow.SourceType)
}
/**
*
*
* RUNNING = 1;
*/
public static final int RUNNING_VALUE = 1;
/**
*
* Run is scheduled to run at a later time.
*
*
* SCHEDULED = 2;
*/
public static final int SCHEDULED_VALUE = 2;
/**
*
* Run has completed.
*
*
* FINISHED = 3;
*/
public static final int FINISHED_VALUE = 3;
/**
*
* Run execution failed.
*
*
* FAILED = 4;
*/
public static final int FAILED_VALUE = 4;
/**
*
* Run killed by user.
*
*
* KILLED = 5;
*/
public static final int KILLED_VALUE = 5;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static RunStatus valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static RunStatus forNumber(int value) {
switch (value) {
case 1: return RUNNING;
case 2: return SCHEDULED;
case 3: return FINISHED;
case 4: return FAILED;
case 5: return KILLED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
RunStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public RunStatus findValueByNumber(int number) {
return RunStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.mlflow.api.proto.Service.getDescriptor().getEnumTypes().get(2);
}
private static final RunStatus[] VALUES = values();
public static RunStatus valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private RunStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:mlflow.RunStatus)
}
/**
* Protobuf enum {@code mlflow.TraceStatus}
*/
public enum TraceStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
* TRACE_STATUS_UNSPECIFIED = 0;
*/
TRACE_STATUS_UNSPECIFIED(0),
/**
*
* The operation being traced was successful.
*
*
* OK = 1;
*/
OK(1),
/**
*
* The operation being traced failed.
*
*
* ERROR = 2;
*/
ERROR(2),
/**
*
* The operation being traced is still in progress.
*
*
* IN_PROGRESS = 3;
*/
IN_PROGRESS(3),
;
/**
* TRACE_STATUS_UNSPECIFIED = 0;
*/
public static final int TRACE_STATUS_UNSPECIFIED_VALUE = 0;
/**
*
* The operation being traced was successful.
*
*
* OK = 1;
*/
public static final int OK_VALUE = 1;
/**
*
* The operation being traced failed.
*
*
* ERROR = 2;
*/
public static final int ERROR_VALUE = 2;
/**
*
* The operation being traced is still in progress.
*
*
* IN_PROGRESS = 3;
*/
public static final int IN_PROGRESS_VALUE = 3;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TraceStatus valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static TraceStatus forNumber(int value) {
switch (value) {
case 0: return TRACE_STATUS_UNSPECIFIED;
case 1: return OK;
case 2: return ERROR;
case 3: return IN_PROGRESS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
TraceStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TraceStatus findValueByNumber(int number) {
return TraceStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.mlflow.api.proto.Service.getDescriptor().getEnumTypes().get(3);
}
private static final TraceStatus[] VALUES = values();
public static TraceStatus valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private TraceStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:mlflow.TraceStatus)
}
public interface MetricOrBuilder extends
// @@protoc_insertion_point(interface_extends:mlflow.Metric)
com.google.protobuf.MessageOrBuilder {
/**
*
* Key identifying this metric.
*
*
* optional string key = 1;
* @return Whether the key field is set.
*/
boolean hasKey();
/**
*
*
* optional string key = 1;
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private double value_;
/**
*
* Value associated with this metric.
*
*
* optional double value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Value associated with this metric.
*
*
* optional double value = 2;
* @return The value.
*/
@java.lang.Override
public double getValue() {
return value_;
}
public static final int TIMESTAMP_FIELD_NUMBER = 3;
private long timestamp_;
/**
*
* The timestamp at which this metric was recorded.
*
*
* optional int64 timestamp = 3;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The timestamp at which this metric was recorded.
*
*
* optional int64 timestamp = 3;
* @return The timestamp.
*/
@java.lang.Override
public long getTimestamp() {
return timestamp_;
}
public static final int STEP_FIELD_NUMBER = 4;
private long step_;
/**
*
* Step at which to log the metric.
*
*
* optional int64 step = 4 [default = 0];
* @return Whether the step field is set.
*/
@java.lang.Override
public boolean hasStep() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Step at which to log the metric.
*
*
* optional int64 step = 4 [default = 0];
* @return The step.
*/
@java.lang.Override
public long getStep() {
return step_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeDouble(2, value_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(3, timestamp_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt64(4, step_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, value_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, timestamp_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, step_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.mlflow.api.proto.Service.Metric)) {
return super.equals(obj);
}
org.mlflow.api.proto.Service.Metric other = (org.mlflow.api.proto.Service.Metric) obj;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (java.lang.Double.doubleToLongBits(getValue())
!= java.lang.Double.doubleToLongBits(
other.getValue())) return false;
}
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (getTimestamp()
!= other.getTimestamp()) return false;
}
if (hasStep() != other.hasStep()) return false;
if (hasStep()) {
if (getStep()
!= other.getStep()) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getValue()));
}
if (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
}
if (hasStep()) {
hash = (37 * hash) + STEP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStep());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.mlflow.api.proto.Service.Metric parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.Metric parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.Metric parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.Metric parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.Metric parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.Metric parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.Metric parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.Metric parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.mlflow.api.proto.Service.Metric parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.Metric parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.mlflow.api.proto.Service.Metric parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.Metric parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.mlflow.api.proto.Service.Metric prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Metric associated with a run, represented as a key-value pair.
*
*
* Protobuf type {@code mlflow.Metric}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mlflow.Metric)
org.mlflow.api.proto.Service.MetricOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.mlflow.api.proto.Service.internal_static_mlflow_Metric_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.mlflow.api.proto.Service.internal_static_mlflow_Metric_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.mlflow.api.proto.Service.Metric.class, org.mlflow.api.proto.Service.Metric.Builder.class);
}
// Construct using org.mlflow.api.proto.Service.Metric.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
key_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
value_ = 0D;
bitField0_ = (bitField0_ & ~0x00000002);
timestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
step_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.mlflow.api.proto.Service.internal_static_mlflow_Metric_descriptor;
}
@java.lang.Override
public org.mlflow.api.proto.Service.Metric getDefaultInstanceForType() {
return org.mlflow.api.proto.Service.Metric.getDefaultInstance();
}
@java.lang.Override
public org.mlflow.api.proto.Service.Metric build() {
org.mlflow.api.proto.Service.Metric result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.mlflow.api.proto.Service.Metric buildPartial() {
org.mlflow.api.proto.Service.Metric result = new org.mlflow.api.proto.Service.Metric(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.key_ = key_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = value_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.timestamp_ = timestamp_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.step_ = step_;
to_bitField0_ |= 0x00000008;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.mlflow.api.proto.Service.Metric) {
return mergeFrom((org.mlflow.api.proto.Service.Metric)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.mlflow.api.proto.Service.Metric other) {
if (other == org.mlflow.api.proto.Service.Metric.getDefaultInstance()) return this;
if (other.hasKey()) {
bitField0_ |= 0x00000001;
key_ = other.key_;
onChanged();
}
if (other.hasValue()) {
setValue(other.getValue());
}
if (other.hasTimestamp()) {
setTimestamp(other.getTimestamp());
}
if (other.hasStep()) {
setStep(other.getStep());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.mlflow.api.proto.Service.Metric parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.mlflow.api.proto.Service.Metric) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object key_ = "";
/**
*
* Key identifying this metric.
*
*
* optional string key = 1;
* @return Whether the key field is set.
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
* optional string key = 1;
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
key_ = value;
onChanged();
return this;
}
private double value_ ;
/**
*
* Value associated with this metric.
*
*
* optional double value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Value associated with this metric.
*
*
* optional double value = 2;
* @return The value.
*/
@java.lang.Override
public double getValue() {
return value_;
}
/**
*
* Value associated with this metric.
*
*
* optional double value = 2;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(double value) {
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
*
* Value associated with this metric.
*
*
* optional double value = 2;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = 0D;
onChanged();
return this;
}
private long timestamp_ ;
/**
*
* The timestamp at which this metric was recorded.
*
*
* optional int64 timestamp = 3;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The timestamp at which this metric was recorded.
*
*
* optional int64 timestamp = 3;
* @return The timestamp.
*/
@java.lang.Override
public long getTimestamp() {
return timestamp_;
}
/**
*
* The timestamp at which this metric was recorded.
*
*
* optional int64 timestamp = 3;
* @param value The timestamp to set.
* @return This builder for chaining.
*/
public Builder setTimestamp(long value) {
bitField0_ |= 0x00000004;
timestamp_ = value;
onChanged();
return this;
}
/**
*
* The timestamp at which this metric was recorded.
*
*
* optional int64 timestamp = 3;
* @return This builder for chaining.
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000004);
timestamp_ = 0L;
onChanged();
return this;
}
private long step_ ;
/**
*
* Step at which to log the metric.
*
*
* optional int64 step = 4 [default = 0];
* @return Whether the step field is set.
*/
@java.lang.Override
public boolean hasStep() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Step at which to log the metric.
*
*
* optional int64 step = 4 [default = 0];
* @return The step.
*/
@java.lang.Override
public long getStep() {
return step_;
}
/**
*
* Step at which to log the metric.
*
*
* optional int64 step = 4 [default = 0];
* @param value The step to set.
* @return This builder for chaining.
*/
public Builder setStep(long value) {
bitField0_ |= 0x00000008;
step_ = value;
onChanged();
return this;
}
/**
*
* Step at which to log the metric.
*
*
* optional int64 step = 4 [default = 0];
* @return This builder for chaining.
*/
public Builder clearStep() {
bitField0_ = (bitField0_ & ~0x00000008);
step_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mlflow.Metric)
}
// @@protoc_insertion_point(class_scope:mlflow.Metric)
private static final org.mlflow.api.proto.Service.Metric DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.mlflow.api.proto.Service.Metric();
}
public static org.mlflow.api.proto.Service.Metric getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Metric parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Metric(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.mlflow.api.proto.Service.Metric getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ParamOrBuilder extends
// @@protoc_insertion_point(interface_extends:mlflow.Param)
com.google.protobuf.MessageOrBuilder {
/**
*
* Key identifying this param.
*
*
* optional string key = 1;
* @return Whether the key field is set.
*/
boolean hasKey();
/**
*
*
* optional string key = 1;
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private volatile java.lang.Object value_;
/**
*
* Value associated with this param.
*
*
* optional string value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Value associated with this param.
*
*
* optional string value = 2;
* @return The value.
*/
@java.lang.Override
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
}
}
/**
*
* Value associated with this param.
*
*
* optional string value = 2;
* @return The bytes for value.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.mlflow.api.proto.Service.Param)) {
return super.equals(obj);
}
org.mlflow.api.proto.Service.Param other = (org.mlflow.api.proto.Service.Param) obj;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.mlflow.api.proto.Service.Param parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.Param parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.Param parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.Param parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.Param parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.Param parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.Param parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.Param parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.mlflow.api.proto.Service.Param parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.Param parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.mlflow.api.proto.Service.Param parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.Param parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.mlflow.api.proto.Service.Param prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Param associated with a run.
*
*
* Protobuf type {@code mlflow.Param}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mlflow.Param)
org.mlflow.api.proto.Service.ParamOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.mlflow.api.proto.Service.internal_static_mlflow_Param_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.mlflow.api.proto.Service.internal_static_mlflow_Param_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.mlflow.api.proto.Service.Param.class, org.mlflow.api.proto.Service.Param.Builder.class);
}
// Construct using org.mlflow.api.proto.Service.Param.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
key_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
value_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.mlflow.api.proto.Service.internal_static_mlflow_Param_descriptor;
}
@java.lang.Override
public org.mlflow.api.proto.Service.Param getDefaultInstanceForType() {
return org.mlflow.api.proto.Service.Param.getDefaultInstance();
}
@java.lang.Override
public org.mlflow.api.proto.Service.Param build() {
org.mlflow.api.proto.Service.Param result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.mlflow.api.proto.Service.Param buildPartial() {
org.mlflow.api.proto.Service.Param result = new org.mlflow.api.proto.Service.Param(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.key_ = key_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.value_ = value_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.mlflow.api.proto.Service.Param) {
return mergeFrom((org.mlflow.api.proto.Service.Param)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.mlflow.api.proto.Service.Param other) {
if (other == org.mlflow.api.proto.Service.Param.getDefaultInstance()) return this;
if (other.hasKey()) {
bitField0_ |= 0x00000001;
key_ = other.key_;
onChanged();
}
if (other.hasValue()) {
bitField0_ |= 0x00000002;
value_ = other.value_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.mlflow.api.proto.Service.Param parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.mlflow.api.proto.Service.Param) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object key_ = "";
/**
*
* Key identifying this param.
*
*
* optional string key = 1;
* @return Whether the key field is set.
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
* optional string key = 1;
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
key_ = value;
onChanged();
return this;
}
private java.lang.Object value_ = "";
/**
*
* Value associated with this param.
*
*
* optional string value = 2;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Value associated with this param.
*
*
* optional string value = 2;
* @return The value.
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Value associated with this param.
*
*
* optional string value = 2;
* @return The bytes for value.
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Value associated with this param.
*
*
* optional string value = 2;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
*
* Value associated with this param.
*
*
* optional string value = 2;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
*
* Value associated with this param.
*
*
* optional string value = 2;
* @param value The bytes for value to set.
* @return This builder for chaining.
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mlflow.Param)
}
// @@protoc_insertion_point(class_scope:mlflow.Param)
private static final org.mlflow.api.proto.Service.Param DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.mlflow.api.proto.Service.Param();
}
public static org.mlflow.api.proto.Service.Param getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Param parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Param(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.mlflow.api.proto.Service.Param getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RunOrBuilder extends
// @@protoc_insertion_point(interface_extends:mlflow.Run)
com.google.protobuf.MessageOrBuilder {
/**
*
* Run metadata.
*
*
* optional .mlflow.RunInfo info = 1;
* @return Whether the info field is set.
*/
boolean hasInfo();
/**
*
* Run metadata.
*
*
* optional .mlflow.RunInfo info = 1;
* @return The info.
*/
org.mlflow.api.proto.Service.RunInfo getInfo();
/**
*
*
* Protobuf type {@code mlflow.Run}
*/
public static final class Run extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mlflow.Run)
RunOrBuilder {
private static final long serialVersionUID = 0L;
// Use Run.newBuilder() to construct.
private Run(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Run() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Run();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Run(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.mlflow.api.proto.Service.RunInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = info_.toBuilder();
}
info_ = input.readMessage(org.mlflow.api.proto.Service.RunInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(info_);
info_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.mlflow.api.proto.Service.RunData.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = data_.toBuilder();
}
data_ = input.readMessage(org.mlflow.api.proto.Service.RunData.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(data_);
data_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
org.mlflow.api.proto.Service.RunInputs.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) != 0)) {
subBuilder = inputs_.toBuilder();
}
inputs_ = input.readMessage(org.mlflow.api.proto.Service.RunInputs.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(inputs_);
inputs_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.mlflow.api.proto.Service.internal_static_mlflow_Run_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.mlflow.api.proto.Service.internal_static_mlflow_Run_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.mlflow.api.proto.Service.Run.class, org.mlflow.api.proto.Service.Run.Builder.class);
}
private int bitField0_;
public static final int INFO_FIELD_NUMBER = 1;
private org.mlflow.api.proto.Service.RunInfo info_;
/**
*
* Run metadata.
*
*
* optional .mlflow.RunInfo info = 1;
* @return Whether the info field is set.
*/
@java.lang.Override
public boolean hasInfo() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Run metadata.
*
*
* optional .mlflow.RunInfo info = 1;
* @return The info.
*/
@java.lang.Override
public org.mlflow.api.proto.Service.RunInfo getInfo() {
return info_ == null ? org.mlflow.api.proto.Service.RunInfo.getDefaultInstance() : info_;
}
/**
*
* Run metadata.
*
*
* optional .mlflow.RunInfo info = 1;
*/
@java.lang.Override
public org.mlflow.api.proto.Service.RunInfoOrBuilder getInfoOrBuilder() {
return info_ == null ? org.mlflow.api.proto.Service.RunInfo.getDefaultInstance() : info_;
}
public static final int DATA_FIELD_NUMBER = 2;
private org.mlflow.api.proto.Service.RunData data_;
/**
*
* Run data.
*
*
* optional .mlflow.RunData data = 2;
* @return Whether the data field is set.
*/
@java.lang.Override
public boolean hasData() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Run data.
*
*
* optional .mlflow.RunData data = 2;
* @return The data.
*/
@java.lang.Override
public org.mlflow.api.proto.Service.RunData getData() {
return data_ == null ? org.mlflow.api.proto.Service.RunData.getDefaultInstance() : data_;
}
/**
*
* Run data.
*
*
* optional .mlflow.RunData data = 2;
*/
@java.lang.Override
public org.mlflow.api.proto.Service.RunDataOrBuilder getDataOrBuilder() {
return data_ == null ? org.mlflow.api.proto.Service.RunData.getDefaultInstance() : data_;
}
public static final int INPUTS_FIELD_NUMBER = 3;
private org.mlflow.api.proto.Service.RunInputs inputs_;
/**
*
* Run inputs.
*
*
* optional .mlflow.RunInputs inputs = 3;
* @return Whether the inputs field is set.
*/
@java.lang.Override
public boolean hasInputs() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
* optional .mlflow.RunInputs inputs = 3;
*/
@java.lang.Override
public org.mlflow.api.proto.Service.RunInputsOrBuilder getInputsOrBuilder() {
return inputs_ == null ? org.mlflow.api.proto.Service.RunInputs.getDefaultInstance() : inputs_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getInfo());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getData());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getInputs());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getInfo());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getData());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getInputs());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.mlflow.api.proto.Service.Run)) {
return super.equals(obj);
}
org.mlflow.api.proto.Service.Run other = (org.mlflow.api.proto.Service.Run) obj;
if (hasInfo() != other.hasInfo()) return false;
if (hasInfo()) {
if (!getInfo()
.equals(other.getInfo())) return false;
}
if (hasData() != other.hasData()) return false;
if (hasData()) {
if (!getData()
.equals(other.getData())) return false;
}
if (hasInputs() != other.hasInputs()) return false;
if (hasInputs()) {
if (!getInputs()
.equals(other.getInputs())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasInfo()) {
hash = (37 * hash) + INFO_FIELD_NUMBER;
hash = (53 * hash) + getInfo().hashCode();
}
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
if (hasInputs()) {
hash = (37 * hash) + INPUTS_FIELD_NUMBER;
hash = (53 * hash) + getInputs().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.mlflow.api.proto.Service.Run parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.Run parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.Run parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.Run parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.Run parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.Run parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.Run parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.Run parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.mlflow.api.proto.Service.Run parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.Run parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.mlflow.api.proto.Service.Run parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.Run parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.mlflow.api.proto.Service.Run prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A single run.
*
*
* Protobuf type {@code mlflow.Run}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mlflow.Run)
org.mlflow.api.proto.Service.RunOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.mlflow.api.proto.Service.internal_static_mlflow_Run_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.mlflow.api.proto.Service.internal_static_mlflow_Run_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.mlflow.api.proto.Service.Run.class, org.mlflow.api.proto.Service.Run.Builder.class);
}
// Construct using org.mlflow.api.proto.Service.Run.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getInfoFieldBuilder();
getDataFieldBuilder();
getInputsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (infoBuilder_ == null) {
info_ = null;
} else {
infoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (dataBuilder_ == null) {
data_ = null;
} else {
dataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (inputsBuilder_ == null) {
inputs_ = null;
} else {
inputsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.mlflow.api.proto.Service.internal_static_mlflow_Run_descriptor;
}
@java.lang.Override
public org.mlflow.api.proto.Service.Run getDefaultInstanceForType() {
return org.mlflow.api.proto.Service.Run.getDefaultInstance();
}
@java.lang.Override
public org.mlflow.api.proto.Service.Run build() {
org.mlflow.api.proto.Service.Run result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.mlflow.api.proto.Service.Run buildPartial() {
org.mlflow.api.proto.Service.Run result = new org.mlflow.api.proto.Service.Run(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (infoBuilder_ == null) {
result.info_ = info_;
} else {
result.info_ = infoBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
if (dataBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
if (inputsBuilder_ == null) {
result.inputs_ = inputs_;
} else {
result.inputs_ = inputsBuilder_.build();
}
to_bitField0_ |= 0x00000004;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.mlflow.api.proto.Service.Run) {
return mergeFrom((org.mlflow.api.proto.Service.Run)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.mlflow.api.proto.Service.Run other) {
if (other == org.mlflow.api.proto.Service.Run.getDefaultInstance()) return this;
if (other.hasInfo()) {
mergeInfo(other.getInfo());
}
if (other.hasData()) {
mergeData(other.getData());
}
if (other.hasInputs()) {
mergeInputs(other.getInputs());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.mlflow.api.proto.Service.Run parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.mlflow.api.proto.Service.Run) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.mlflow.api.proto.Service.RunInfo info_;
private com.google.protobuf.SingleFieldBuilderV3<
org.mlflow.api.proto.Service.RunInfo, org.mlflow.api.proto.Service.RunInfo.Builder, org.mlflow.api.proto.Service.RunInfoOrBuilder> infoBuilder_;
/**
*
* Run metadata.
*
*
* optional .mlflow.RunInfo info = 1;
* @return Whether the info field is set.
*/
public boolean hasInfo() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Run metadata.
*
*
* optional .mlflow.RunInfo info = 1;
* @return The info.
*/
public org.mlflow.api.proto.Service.RunInfo getInfo() {
if (infoBuilder_ == null) {
return info_ == null ? org.mlflow.api.proto.Service.RunInfo.getDefaultInstance() : info_;
} else {
return infoBuilder_.getMessage();
}
}
/**
*
* Run metadata.
*
*
* optional .mlflow.RunInfo info = 1;
*/
public Builder setInfo(org.mlflow.api.proto.Service.RunInfo value) {
if (infoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
info_ = value;
onChanged();
} else {
infoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
* optional .mlflow.RunData data = 2;
* @return Whether the data field is set.
*/
public boolean hasData() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Run data.
*
*
* optional .mlflow.RunData data = 2;
* @return The data.
*/
public org.mlflow.api.proto.Service.RunData getData() {
if (dataBuilder_ == null) {
return data_ == null ? org.mlflow.api.proto.Service.RunData.getDefaultInstance() : data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
*
* Run data.
*
*
* optional .mlflow.RunData data = 2;
*/
public Builder setData(org.mlflow.api.proto.Service.RunData value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
* optional string key = 1;
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private volatile java.lang.Object value_;
/**
*
* The tag value.
*
*
* optional string value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The tag value.
*
*
* optional string value = 2;
* @return The value.
*/
@java.lang.Override
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
}
}
/**
*
* The tag value.
*
*
* optional string value = 2;
* @return The bytes for value.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.mlflow.api.proto.Service.RunTag)) {
return super.equals(obj);
}
org.mlflow.api.proto.Service.RunTag other = (org.mlflow.api.proto.Service.RunTag) obj;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.mlflow.api.proto.Service.RunTag parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.RunTag parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.RunTag parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.RunTag parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.RunTag parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.RunTag parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.RunTag parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.RunTag parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.mlflow.api.proto.Service.RunTag parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.RunTag parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.mlflow.api.proto.Service.RunTag parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.RunTag parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.mlflow.api.proto.Service.RunTag prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Tag for a run.
*
*
* Protobuf type {@code mlflow.RunTag}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mlflow.RunTag)
org.mlflow.api.proto.Service.RunTagOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.mlflow.api.proto.Service.internal_static_mlflow_RunTag_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.mlflow.api.proto.Service.internal_static_mlflow_RunTag_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.mlflow.api.proto.Service.RunTag.class, org.mlflow.api.proto.Service.RunTag.Builder.class);
}
// Construct using org.mlflow.api.proto.Service.RunTag.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
key_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
value_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.mlflow.api.proto.Service.internal_static_mlflow_RunTag_descriptor;
}
@java.lang.Override
public org.mlflow.api.proto.Service.RunTag getDefaultInstanceForType() {
return org.mlflow.api.proto.Service.RunTag.getDefaultInstance();
}
@java.lang.Override
public org.mlflow.api.proto.Service.RunTag build() {
org.mlflow.api.proto.Service.RunTag result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.mlflow.api.proto.Service.RunTag buildPartial() {
org.mlflow.api.proto.Service.RunTag result = new org.mlflow.api.proto.Service.RunTag(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.key_ = key_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.value_ = value_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.mlflow.api.proto.Service.RunTag) {
return mergeFrom((org.mlflow.api.proto.Service.RunTag)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.mlflow.api.proto.Service.RunTag other) {
if (other == org.mlflow.api.proto.Service.RunTag.getDefaultInstance()) return this;
if (other.hasKey()) {
bitField0_ |= 0x00000001;
key_ = other.key_;
onChanged();
}
if (other.hasValue()) {
bitField0_ |= 0x00000002;
value_ = other.value_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.mlflow.api.proto.Service.RunTag parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.mlflow.api.proto.Service.RunTag) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object key_ = "";
/**
*
* The tag key.
*
*
* optional string key = 1;
* @return Whether the key field is set.
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
* optional string key = 1;
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
key_ = value;
onChanged();
return this;
}
private java.lang.Object value_ = "";
/**
*
* The tag value.
*
*
* optional string value = 2;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The tag value.
*
*
* optional string value = 2;
* @return The value.
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The tag value.
*
*
* optional string value = 2;
* @return The bytes for value.
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The tag value.
*
*
* optional string value = 2;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
*
* The tag value.
*
*
* optional string value = 2;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
*
* The tag value.
*
*
* optional string value = 2;
* @param value The bytes for value to set.
* @return This builder for chaining.
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mlflow.RunTag)
}
// @@protoc_insertion_point(class_scope:mlflow.RunTag)
private static final org.mlflow.api.proto.Service.RunTag DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.mlflow.api.proto.Service.RunTag();
}
public static org.mlflow.api.proto.Service.RunTag getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RunTag parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RunTag(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.mlflow.api.proto.Service.RunTag getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExperimentTagOrBuilder extends
// @@protoc_insertion_point(interface_extends:mlflow.ExperimentTag)
com.google.protobuf.MessageOrBuilder {
/**
*
* The tag key.
*
*
* optional string key = 1;
* @return Whether the key field is set.
*/
boolean hasKey();
/**
*
*
* optional string key = 1;
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private volatile java.lang.Object value_;
/**
*
* The tag value.
*
*
* optional string value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The tag value.
*
*
* optional string value = 2;
* @return The value.
*/
@java.lang.Override
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
}
}
/**
*
* The tag value.
*
*
* optional string value = 2;
* @return The bytes for value.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.mlflow.api.proto.Service.ExperimentTag)) {
return super.equals(obj);
}
org.mlflow.api.proto.Service.ExperimentTag other = (org.mlflow.api.proto.Service.ExperimentTag) obj;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.mlflow.api.proto.Service.ExperimentTag parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.ExperimentTag parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.ExperimentTag parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.ExperimentTag parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.ExperimentTag parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.ExperimentTag parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.ExperimentTag parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.ExperimentTag parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.mlflow.api.proto.Service.ExperimentTag parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.ExperimentTag parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.mlflow.api.proto.Service.ExperimentTag parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.ExperimentTag parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.mlflow.api.proto.Service.ExperimentTag prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Tag for an experiment.
*
*
* Protobuf type {@code mlflow.ExperimentTag}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mlflow.ExperimentTag)
org.mlflow.api.proto.Service.ExperimentTagOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.mlflow.api.proto.Service.internal_static_mlflow_ExperimentTag_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.mlflow.api.proto.Service.internal_static_mlflow_ExperimentTag_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.mlflow.api.proto.Service.ExperimentTag.class, org.mlflow.api.proto.Service.ExperimentTag.Builder.class);
}
// Construct using org.mlflow.api.proto.Service.ExperimentTag.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
key_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
value_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.mlflow.api.proto.Service.internal_static_mlflow_ExperimentTag_descriptor;
}
@java.lang.Override
public org.mlflow.api.proto.Service.ExperimentTag getDefaultInstanceForType() {
return org.mlflow.api.proto.Service.ExperimentTag.getDefaultInstance();
}
@java.lang.Override
public org.mlflow.api.proto.Service.ExperimentTag build() {
org.mlflow.api.proto.Service.ExperimentTag result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.mlflow.api.proto.Service.ExperimentTag buildPartial() {
org.mlflow.api.proto.Service.ExperimentTag result = new org.mlflow.api.proto.Service.ExperimentTag(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.key_ = key_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.value_ = value_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.mlflow.api.proto.Service.ExperimentTag) {
return mergeFrom((org.mlflow.api.proto.Service.ExperimentTag)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.mlflow.api.proto.Service.ExperimentTag other) {
if (other == org.mlflow.api.proto.Service.ExperimentTag.getDefaultInstance()) return this;
if (other.hasKey()) {
bitField0_ |= 0x00000001;
key_ = other.key_;
onChanged();
}
if (other.hasValue()) {
bitField0_ |= 0x00000002;
value_ = other.value_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.mlflow.api.proto.Service.ExperimentTag parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.mlflow.api.proto.Service.ExperimentTag) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object key_ = "";
/**
*
* The tag key.
*
*
* optional string key = 1;
* @return Whether the key field is set.
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
* optional string key = 1;
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
key_ = value;
onChanged();
return this;
}
private java.lang.Object value_ = "";
/**
*
* The tag value.
*
*
* optional string value = 2;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The tag value.
*
*
* optional string value = 2;
* @return The value.
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The tag value.
*
*
* optional string value = 2;
* @return The bytes for value.
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The tag value.
*
*
* optional string value = 2;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
*
* The tag value.
*
*
* optional string value = 2;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
*
* The tag value.
*
*
* optional string value = 2;
* @param value The bytes for value to set.
* @return This builder for chaining.
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mlflow.ExperimentTag)
}
// @@protoc_insertion_point(class_scope:mlflow.ExperimentTag)
private static final org.mlflow.api.proto.Service.ExperimentTag DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.mlflow.api.proto.Service.ExperimentTag();
}
public static org.mlflow.api.proto.Service.ExperimentTag getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExperimentTag parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExperimentTag(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.mlflow.api.proto.Service.ExperimentTag getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RunInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:mlflow.RunInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
* Unique identifier for the run.
*
*
* optional string run_id = 15;
* @return Whether the runId field is set.
*/
boolean hasRunId();
/**
*
*
* optional string experiment_id = 2;
* @return The bytes for experimentId.
*/
com.google.protobuf.ByteString
getExperimentIdBytes();
/**
*
* User who initiated the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
*
* optional string user_id = 6;
* @return Whether the userId field is set.
*/
boolean hasUserId();
/**
*
* User who initiated the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
* User who initiated the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
*
* optional string user_id = 6;
* @return The bytes for userId.
*/
com.google.protobuf.ByteString
getUserIdBytes();
/**
*
* Current status of the run.
*
*
* optional .mlflow.RunStatus status = 7;
* @return Whether the status field is set.
*/
boolean hasStatus();
/**
*
* Current status of the run.
*
*
* optional .mlflow.RunStatus status = 7;
* @return The status.
*/
org.mlflow.api.proto.Service.RunStatus getStatus();
/**
*
* Unix timestamp of when the run started in milliseconds.
*
*
* optional int64 start_time = 8;
* @return Whether the startTime field is set.
*/
boolean hasStartTime();
/**
*
* Unix timestamp of when the run started in milliseconds.
*
*
* optional int64 start_time = 8;
* @return The startTime.
*/
long getStartTime();
/**
*
* Unix timestamp of when the run ended in milliseconds.
*
*
* optional int64 end_time = 9;
* @return Whether the endTime field is set.
*/
boolean hasEndTime();
/**
*
* Unix timestamp of when the run ended in milliseconds.
*
*
* optional int64 end_time = 9;
* @return The endTime.
*/
long getEndTime();
/**
*
* URI of the directory where artifacts should be uploaded.
* This can be a local path (starting with "/"), or a distributed file system (DFS)
* path, like ``s3://bucket/directory`` or ``dbfs:/my/directory``.
* If not set, the local ``./mlruns`` directory is chosen.
*
*
* optional string artifact_uri = 13;
* @return Whether the artifactUri field is set.
*/
boolean hasArtifactUri();
/**
*
* URI of the directory where artifacts should be uploaded.
* This can be a local path (starting with "/"), or a distributed file system (DFS)
* path, like ``s3://bucket/directory`` or ``dbfs:/my/directory``.
* If not set, the local ``./mlruns`` directory is chosen.
*
* URI of the directory where artifacts should be uploaded.
* This can be a local path (starting with "/"), or a distributed file system (DFS)
* path, like ``s3://bucket/directory`` or ``dbfs:/my/directory``.
* If not set, the local ``./mlruns`` directory is chosen.
*
*
* optional string artifact_uri = 13;
* @return The bytes for artifactUri.
*/
com.google.protobuf.ByteString
getArtifactUriBytes();
/**
*
* Current life cycle stage of the experiment : OneOf("active", "deleted")
*
*
* optional string lifecycle_stage = 14;
* @return Whether the lifecycleStage field is set.
*/
boolean hasLifecycleStage();
/**
*
* Current life cycle stage of the experiment : OneOf("active", "deleted")
*
*
* optional string experiment_id = 2;
* @return The bytes for experimentId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExperimentIdBytes() {
java.lang.Object ref = experimentId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
experimentId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USER_ID_FIELD_NUMBER = 6;
private volatile java.lang.Object userId_;
/**
*
* User who initiated the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
*
* optional string user_id = 6;
* @return Whether the userId field is set.
*/
@java.lang.Override
public boolean hasUserId() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* User who initiated the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
* User who initiated the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
*
* optional string user_id = 6;
* @return The bytes for userId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUserIdBytes() {
java.lang.Object ref = userId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 7;
private int status_;
/**
*
* Current status of the run.
*
*
* optional .mlflow.RunStatus status = 7;
* @return Whether the status field is set.
*/
@java.lang.Override public boolean hasStatus() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Current status of the run.
*
*
* optional .mlflow.RunStatus status = 7;
* @return The status.
*/
@java.lang.Override public org.mlflow.api.proto.Service.RunStatus getStatus() {
@SuppressWarnings("deprecation")
org.mlflow.api.proto.Service.RunStatus result = org.mlflow.api.proto.Service.RunStatus.valueOf(status_);
return result == null ? org.mlflow.api.proto.Service.RunStatus.RUNNING : result;
}
public static final int START_TIME_FIELD_NUMBER = 8;
private long startTime_;
/**
*
* Unix timestamp of when the run started in milliseconds.
*
*
* optional int64 start_time = 8;
* @return Whether the startTime field is set.
*/
@java.lang.Override
public boolean hasStartTime() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Unix timestamp of when the run started in milliseconds.
*
*
* optional int64 start_time = 8;
* @return The startTime.
*/
@java.lang.Override
public long getStartTime() {
return startTime_;
}
public static final int END_TIME_FIELD_NUMBER = 9;
private long endTime_;
/**
*
* Unix timestamp of when the run ended in milliseconds.
*
*
* optional int64 end_time = 9;
* @return Whether the endTime field is set.
*/
@java.lang.Override
public boolean hasEndTime() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Unix timestamp of when the run ended in milliseconds.
*
*
* optional int64 end_time = 9;
* @return The endTime.
*/
@java.lang.Override
public long getEndTime() {
return endTime_;
}
public static final int ARTIFACT_URI_FIELD_NUMBER = 13;
private volatile java.lang.Object artifactUri_;
/**
*
* URI of the directory where artifacts should be uploaded.
* This can be a local path (starting with "/"), or a distributed file system (DFS)
* path, like ``s3://bucket/directory`` or ``dbfs:/my/directory``.
* If not set, the local ``./mlruns`` directory is chosen.
*
*
* optional string artifact_uri = 13;
* @return Whether the artifactUri field is set.
*/
@java.lang.Override
public boolean hasArtifactUri() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* URI of the directory where artifacts should be uploaded.
* This can be a local path (starting with "/"), or a distributed file system (DFS)
* path, like ``s3://bucket/directory`` or ``dbfs:/my/directory``.
* If not set, the local ``./mlruns`` directory is chosen.
*
* URI of the directory where artifacts should be uploaded.
* This can be a local path (starting with "/"), or a distributed file system (DFS)
* path, like ``s3://bucket/directory`` or ``dbfs:/my/directory``.
* If not set, the local ``./mlruns`` directory is chosen.
*
*
* optional string artifact_uri = 13;
* @return The bytes for artifactUri.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getArtifactUriBytes() {
java.lang.Object ref = artifactUri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
artifactUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LIFECYCLE_STAGE_FIELD_NUMBER = 14;
private volatile java.lang.Object lifecycleStage_;
/**
*
* Current life cycle stage of the experiment : OneOf("active", "deleted")
*
*
* optional string lifecycle_stage = 14;
* @return Whether the lifecycleStage field is set.
*/
@java.lang.Override
public boolean hasLifecycleStage() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Current life cycle stage of the experiment : OneOf("active", "deleted")
*
*
* optional string experiment_id = 2;
* @param value The bytes for experimentId to set.
* @return This builder for chaining.
*/
public Builder setExperimentIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
experimentId_ = value;
onChanged();
return this;
}
private java.lang.Object userId_ = "";
/**
*
* User who initiated the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
*
* optional string user_id = 6;
* @return Whether the userId field is set.
*/
public boolean hasUserId() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* User who initiated the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
* User who initiated the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
*
* optional string user_id = 6;
* @return The bytes for userId.
*/
public com.google.protobuf.ByteString
getUserIdBytes() {
java.lang.Object ref = userId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* User who initiated the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
*
* optional string user_id = 6;
* @param value The userId to set.
* @return This builder for chaining.
*/
public Builder setUserId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
userId_ = value;
onChanged();
return this;
}
/**
*
* User who initiated the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
* User who initiated the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
*
* optional string user_id = 6;
* @param value The bytes for userId to set.
* @return This builder for chaining.
*/
public Builder setUserIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
userId_ = value;
onChanged();
return this;
}
private int status_ = 1;
/**
*
* Current status of the run.
*
*
* optional .mlflow.RunStatus status = 7;
* @return Whether the status field is set.
*/
@java.lang.Override public boolean hasStatus() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Current status of the run.
*
*
* optional .mlflow.RunStatus status = 7;
* @return The status.
*/
@java.lang.Override
public org.mlflow.api.proto.Service.RunStatus getStatus() {
@SuppressWarnings("deprecation")
org.mlflow.api.proto.Service.RunStatus result = org.mlflow.api.proto.Service.RunStatus.valueOf(status_);
return result == null ? org.mlflow.api.proto.Service.RunStatus.RUNNING : result;
}
/**
*
* Current status of the run.
*
*
* optional .mlflow.RunStatus status = 7;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(org.mlflow.api.proto.Service.RunStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Current status of the run.
*
*
* optional .mlflow.RunStatus status = 7;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000020);
status_ = 1;
onChanged();
return this;
}
private long startTime_ ;
/**
*
* Unix timestamp of when the run started in milliseconds.
*
*
* optional int64 start_time = 8;
* @return Whether the startTime field is set.
*/
@java.lang.Override
public boolean hasStartTime() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Unix timestamp of when the run started in milliseconds.
*
*
* optional int64 start_time = 8;
* @return The startTime.
*/
@java.lang.Override
public long getStartTime() {
return startTime_;
}
/**
*
* Unix timestamp of when the run started in milliseconds.
*
*
* optional int64 start_time = 8;
* @param value The startTime to set.
* @return This builder for chaining.
*/
public Builder setStartTime(long value) {
bitField0_ |= 0x00000040;
startTime_ = value;
onChanged();
return this;
}
/**
*
* Unix timestamp of when the run started in milliseconds.
*
*
* optional int64 start_time = 8;
* @return This builder for chaining.
*/
public Builder clearStartTime() {
bitField0_ = (bitField0_ & ~0x00000040);
startTime_ = 0L;
onChanged();
return this;
}
private long endTime_ ;
/**
*
* Unix timestamp of when the run ended in milliseconds.
*
*
* optional int64 end_time = 9;
* @return Whether the endTime field is set.
*/
@java.lang.Override
public boolean hasEndTime() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Unix timestamp of when the run ended in milliseconds.
*
*
* optional int64 end_time = 9;
* @return The endTime.
*/
@java.lang.Override
public long getEndTime() {
return endTime_;
}
/**
*
* Unix timestamp of when the run ended in milliseconds.
*
*
* optional int64 end_time = 9;
* @param value The endTime to set.
* @return This builder for chaining.
*/
public Builder setEndTime(long value) {
bitField0_ |= 0x00000080;
endTime_ = value;
onChanged();
return this;
}
/**
*
* Unix timestamp of when the run ended in milliseconds.
*
* URI of the directory where artifacts should be uploaded.
* This can be a local path (starting with "/"), or a distributed file system (DFS)
* path, like ``s3://bucket/directory`` or ``dbfs:/my/directory``.
* If not set, the local ``./mlruns`` directory is chosen.
*
*
* optional string artifact_uri = 13;
* @return Whether the artifactUri field is set.
*/
public boolean hasArtifactUri() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* URI of the directory where artifacts should be uploaded.
* This can be a local path (starting with "/"), or a distributed file system (DFS)
* path, like ``s3://bucket/directory`` or ``dbfs:/my/directory``.
* If not set, the local ``./mlruns`` directory is chosen.
*
* URI of the directory where artifacts should be uploaded.
* This can be a local path (starting with "/"), or a distributed file system (DFS)
* path, like ``s3://bucket/directory`` or ``dbfs:/my/directory``.
* If not set, the local ``./mlruns`` directory is chosen.
*
*
* optional string artifact_uri = 13;
* @return The bytes for artifactUri.
*/
public com.google.protobuf.ByteString
getArtifactUriBytes() {
java.lang.Object ref = artifactUri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
artifactUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* URI of the directory where artifacts should be uploaded.
* This can be a local path (starting with "/"), or a distributed file system (DFS)
* path, like ``s3://bucket/directory`` or ``dbfs:/my/directory``.
* If not set, the local ``./mlruns`` directory is chosen.
*
*
* optional string artifact_uri = 13;
* @param value The artifactUri to set.
* @return This builder for chaining.
*/
public Builder setArtifactUri(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
artifactUri_ = value;
onChanged();
return this;
}
/**
*
* URI of the directory where artifacts should be uploaded.
* This can be a local path (starting with "/"), or a distributed file system (DFS)
* path, like ``s3://bucket/directory`` or ``dbfs:/my/directory``.
* If not set, the local ``./mlruns`` directory is chosen.
*
* URI of the directory where artifacts should be uploaded.
* This can be a local path (starting with "/"), or a distributed file system (DFS)
* path, like ``s3://bucket/directory`` or ``dbfs:/my/directory``.
* If not set, the local ``./mlruns`` directory is chosen.
*
*
* optional string artifact_uri = 13;
* @param value The bytes for artifactUri to set.
* @return This builder for chaining.
*/
public Builder setArtifactUriBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
artifactUri_ = value;
onChanged();
return this;
}
private java.lang.Object lifecycleStage_ = "";
/**
*
* Current life cycle stage of the experiment : OneOf("active", "deleted")
*
*
* optional string lifecycle_stage = 14;
* @return Whether the lifecycleStage field is set.
*/
public boolean hasLifecycleStage() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Current life cycle stage of the experiment : OneOf("active", "deleted")
*
*
* optional string experiment_id = 1;
* @return The bytes for experimentId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExperimentIdBytes() {
java.lang.Object ref = experimentId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
experimentId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
* Human readable name that identifies the experiment.
*
*
* optional string name = 2;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Human readable name that identifies the experiment.
*
*
* optional string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
*
* Human readable name that identifies the experiment.
*
*
* optional string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ARTIFACT_LOCATION_FIELD_NUMBER = 3;
private volatile java.lang.Object artifactLocation_;
/**
*
* Location where artifacts for the experiment are stored.
*
*
* optional string artifact_location = 3;
* @return Whether the artifactLocation field is set.
*/
@java.lang.Override
public boolean hasArtifactLocation() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Location where artifacts for the experiment are stored.
*
* Current life cycle stage of the experiment: "active" or "deleted".
* Deleted experiments are not returned by APIs.
*
*
* optional string lifecycle_stage = 4;
* @return The bytes for lifecycleStage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLifecycleStageBytes() {
java.lang.Object ref = lifecycleStage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lifecycleStage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 5;
private long lastUpdateTime_;
/**
*
* Last update time
*
*
* optional int64 last_update_time = 5;
* @return Whether the lastUpdateTime field is set.
*/
@java.lang.Override
public boolean hasLastUpdateTime() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Last update time
*
*
* optional int64 last_update_time = 5;
* @return The lastUpdateTime.
*/
@java.lang.Override
public long getLastUpdateTime() {
return lastUpdateTime_;
}
public static final int CREATION_TIME_FIELD_NUMBER = 6;
private long creationTime_;
/**
*
* Creation time
*
*
* optional int64 creation_time = 6;
* @return Whether the creationTime field is set.
*/
@java.lang.Override
public boolean hasCreationTime() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Creation time
*
*
* optional int64 creation_time = 6;
* @return The creationTime.
*/
@java.lang.Override
public long getCreationTime() {
return creationTime_;
}
public static final int TAGS_FIELD_NUMBER = 7;
private java.util.List tags_;
/**
*
*
* optional string experiment_id = 1;
* @param value The bytes for experimentId to set.
* @return This builder for chaining.
*/
public Builder setExperimentIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
experimentId_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Human readable name that identifies the experiment.
*
*
* optional string name = 2;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Human readable name that identifies the experiment.
*
*
* optional string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Human readable name that identifies the experiment.
*
*
* optional string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Human readable name that identifies the experiment.
*
*
* optional string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
/**
*
* Human readable name that identifies the experiment.
*
*
* optional string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000002);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Human readable name that identifies the experiment.
*
*
* optional string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
private java.lang.Object artifactLocation_ = "";
/**
*
* Location where artifacts for the experiment are stored.
*
*
* optional string artifact_location = 3;
* @return Whether the artifactLocation field is set.
*/
public boolean hasArtifactLocation() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Location where artifacts for the experiment are stored.
*
* Source information for the dataset. Note that the source may not exactly reproduce the
* dataset if it was transformed / modified before use with MLflow.
*
*
* optional string source_type = 3 [(.mlflow.validate_required) = true];
* @return Whether the sourceType field is set.
*/
boolean hasSourceType();
/**
*
* Source information for the dataset. Note that the source may not exactly reproduce the
* dataset if it was transformed / modified before use with MLflow.
*
* Source information for the dataset. Note that the source may not exactly reproduce the
* dataset if it was transformed / modified before use with MLflow.
*
* The schema of the dataset. E.g., MLflow ColSpec JSON for a dataframe, MLflow TensorSpec JSON
* for an ndarray, or another schema format.
*
*
* optional string schema = 5;
* @return The bytes for schema.
*/
com.google.protobuf.ByteString
getSchemaBytes();
/**
*
* The profile of the dataset. Summary statistics for the dataset, such as the number of rows
* in a table, the mean / std / mode of each column in a table, or the number of elements
* in an array.
*
*
* optional string profile = 6;
* @return Whether the profile field is set.
*/
boolean hasProfile();
/**
*
* The profile of the dataset. Summary statistics for the dataset, such as the number of rows
* in a table, the mean / std / mode of each column in a table, or the number of elements
* in an array.
*
* The profile of the dataset. Summary statistics for the dataset, such as the number of rows
* in a table, the mean / std / mode of each column in a table, or the number of elements
* in an array.
*
*
* optional string profile = 6;
* @return The bytes for profile.
*/
com.google.protobuf.ByteString
getProfileBytes();
}
/**
*
* Dataset. Represents a reference to data used for training, testing, or evaluation during
* the model development process.
*
*
* Protobuf type {@code mlflow.Dataset}
*/
public static final class Dataset extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mlflow.Dataset)
DatasetOrBuilder {
private static final long serialVersionUID = 0L;
// Use Dataset.newBuilder() to construct.
private Dataset(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Dataset() {
name_ = "";
digest_ = "";
sourceType_ = "";
source_ = "";
schema_ = "";
profile_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Dataset();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Dataset(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
digest_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
sourceType_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
source_ = bs;
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
schema_ = bs;
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
profile_ = bs;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.mlflow.api.proto.Service.internal_static_mlflow_Dataset_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.mlflow.api.proto.Service.internal_static_mlflow_Dataset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.mlflow.api.proto.Service.Dataset.class, org.mlflow.api.proto.Service.Dataset.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* The name of the dataset. E.g. “my.uc.table@2” “nyc-taxi-dataset”, “fantastic-elk-3”
*
*
* optional string name = 1 [(.mlflow.validate_required) = true];
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The name of the dataset. E.g. “my.uc.table@2” “nyc-taxi-dataset”, “fantastic-elk-3”
*
*
* optional string name = 1 [(.mlflow.validate_required) = true];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
*
* The name of the dataset. E.g. “my.uc.table@2” “nyc-taxi-dataset”, “fantastic-elk-3”
*
*
* optional string name = 1 [(.mlflow.validate_required) = true];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DIGEST_FIELD_NUMBER = 2;
private volatile java.lang.Object digest_;
/**
*
* Dataset digest, e.g. an md5 hash of the dataset that uniquely identifies it
* within datasets of the same name.
*
*
* optional string digest = 2 [(.mlflow.validate_required) = true];
* @return Whether the digest field is set.
*/
@java.lang.Override
public boolean hasDigest() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Dataset digest, e.g. an md5 hash of the dataset that uniquely identifies it
* within datasets of the same name.
*
* Dataset digest, e.g. an md5 hash of the dataset that uniquely identifies it
* within datasets of the same name.
*
*
* optional string digest = 2 [(.mlflow.validate_required) = true];
* @return The bytes for digest.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDigestBytes() {
java.lang.Object ref = digest_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
digest_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOURCE_TYPE_FIELD_NUMBER = 3;
private volatile java.lang.Object sourceType_;
/**
*
* Source information for the dataset. Note that the source may not exactly reproduce the
* dataset if it was transformed / modified before use with MLflow.
*
*
* optional string source_type = 3 [(.mlflow.validate_required) = true];
* @return Whether the sourceType field is set.
*/
@java.lang.Override
public boolean hasSourceType() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Source information for the dataset. Note that the source may not exactly reproduce the
* dataset if it was transformed / modified before use with MLflow.
*
* Source information for the dataset. Note that the source may not exactly reproduce the
* dataset if it was transformed / modified before use with MLflow.
*
*
* optional string source_type = 3 [(.mlflow.validate_required) = true];
* @return The bytes for sourceType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSourceTypeBytes() {
java.lang.Object ref = sourceType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourceType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOURCE_FIELD_NUMBER = 4;
private volatile java.lang.Object source_;
/**
*
* The type of the dataset source, e.g. ‘databricks-uc-table’, ‘DBFS’, ‘S3’, ...
*
*
* optional string source = 4 [(.mlflow.validate_required) = true];
* @return Whether the source field is set.
*/
@java.lang.Override
public boolean hasSource() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The type of the dataset source, e.g. ‘databricks-uc-table’, ‘DBFS’, ‘S3’, ...
*
* The schema of the dataset. E.g., MLflow ColSpec JSON for a dataframe, MLflow TensorSpec JSON
* for an ndarray, or another schema format.
*
*
* optional string schema = 5;
* @return The bytes for schema.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSchemaBytes() {
java.lang.Object ref = schema_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
schema_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROFILE_FIELD_NUMBER = 6;
private volatile java.lang.Object profile_;
/**
*
* The profile of the dataset. Summary statistics for the dataset, such as the number of rows
* in a table, the mean / std / mode of each column in a table, or the number of elements
* in an array.
*
*
* optional string profile = 6;
* @return Whether the profile field is set.
*/
@java.lang.Override
public boolean hasProfile() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* The profile of the dataset. Summary statistics for the dataset, such as the number of rows
* in a table, the mean / std / mode of each column in a table, or the number of elements
* in an array.
*
* The profile of the dataset. Summary statistics for the dataset, such as the number of rows
* in a table, the mean / std / mode of each column in a table, or the number of elements
* in an array.
*
*
* optional string profile = 6;
* @return The bytes for profile.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getProfileBytes() {
java.lang.Object ref = profile_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
profile_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, digest_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceType_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, source_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, schema_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, profile_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, digest_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceType_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, source_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, schema_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, profile_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.mlflow.api.proto.Service.Dataset)) {
return super.equals(obj);
}
org.mlflow.api.proto.Service.Dataset other = (org.mlflow.api.proto.Service.Dataset) obj;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasDigest() != other.hasDigest()) return false;
if (hasDigest()) {
if (!getDigest()
.equals(other.getDigest())) return false;
}
if (hasSourceType() != other.hasSourceType()) return false;
if (hasSourceType()) {
if (!getSourceType()
.equals(other.getSourceType())) return false;
}
if (hasSource() != other.hasSource()) return false;
if (hasSource()) {
if (!getSource()
.equals(other.getSource())) return false;
}
if (hasSchema() != other.hasSchema()) return false;
if (hasSchema()) {
if (!getSchema()
.equals(other.getSchema())) return false;
}
if (hasProfile() != other.hasProfile()) return false;
if (hasProfile()) {
if (!getProfile()
.equals(other.getProfile())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasDigest()) {
hash = (37 * hash) + DIGEST_FIELD_NUMBER;
hash = (53 * hash) + getDigest().hashCode();
}
if (hasSourceType()) {
hash = (37 * hash) + SOURCE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getSourceType().hashCode();
}
if (hasSource()) {
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
}
if (hasSchema()) {
hash = (37 * hash) + SCHEMA_FIELD_NUMBER;
hash = (53 * hash) + getSchema().hashCode();
}
if (hasProfile()) {
hash = (37 * hash) + PROFILE_FIELD_NUMBER;
hash = (53 * hash) + getProfile().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.mlflow.api.proto.Service.Dataset parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.Dataset parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.Dataset parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.Dataset parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.Dataset parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.Dataset parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.Dataset parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.Dataset parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.mlflow.api.proto.Service.Dataset parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.Dataset parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.mlflow.api.proto.Service.Dataset parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.Dataset parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.mlflow.api.proto.Service.Dataset prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Dataset. Represents a reference to data used for training, testing, or evaluation during
* the model development process.
*
* Dataset digest, e.g. an md5 hash of the dataset that uniquely identifies it
* within datasets of the same name.
*
*
* optional string digest = 2 [(.mlflow.validate_required) = true];
* @param value The bytes for digest to set.
* @return This builder for chaining.
*/
public Builder setDigestBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
digest_ = value;
onChanged();
return this;
}
private java.lang.Object sourceType_ = "";
/**
*
* Source information for the dataset. Note that the source may not exactly reproduce the
* dataset if it was transformed / modified before use with MLflow.
*
*
* optional string source_type = 3 [(.mlflow.validate_required) = true];
* @return Whether the sourceType field is set.
*/
public boolean hasSourceType() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Source information for the dataset. Note that the source may not exactly reproduce the
* dataset if it was transformed / modified before use with MLflow.
*
* Source information for the dataset. Note that the source may not exactly reproduce the
* dataset if it was transformed / modified before use with MLflow.
*
* Source information for the dataset. Note that the source may not exactly reproduce the
* dataset if it was transformed / modified before use with MLflow.
*
*
* optional string source_type = 3 [(.mlflow.validate_required) = true];
* @param value The sourceType to set.
* @return This builder for chaining.
*/
public Builder setSourceType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
sourceType_ = value;
onChanged();
return this;
}
/**
*
* Source information for the dataset. Note that the source may not exactly reproduce the
* dataset if it was transformed / modified before use with MLflow.
*
* Source information for the dataset. Note that the source may not exactly reproduce the
* dataset if it was transformed / modified before use with MLflow.
*
*
* optional string source_type = 3 [(.mlflow.validate_required) = true];
* @param value The bytes for sourceType to set.
* @return This builder for chaining.
*/
public Builder setSourceTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
sourceType_ = value;
onChanged();
return this;
}
private java.lang.Object source_ = "";
/**
*
* The type of the dataset source, e.g. ‘databricks-uc-table’, ‘DBFS’, ‘S3’, ...
*
*
* optional string source = 4 [(.mlflow.validate_required) = true];
* @return Whether the source field is set.
*/
public boolean hasSource() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The type of the dataset source, e.g. ‘databricks-uc-table’, ‘DBFS’, ‘S3’, ...
*
* The schema of the dataset. E.g., MLflow ColSpec JSON for a dataframe, MLflow TensorSpec JSON
* for an ndarray, or another schema format.
*
*
* optional string schema = 5;
* @param value The bytes for schema to set.
* @return This builder for chaining.
*/
public Builder setSchemaBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
schema_ = value;
onChanged();
return this;
}
private java.lang.Object profile_ = "";
/**
*
* The profile of the dataset. Summary statistics for the dataset, such as the number of rows
* in a table, the mean / std / mode of each column in a table, or the number of elements
* in an array.
*
*
* optional string profile = 6;
* @return Whether the profile field is set.
*/
public boolean hasProfile() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* The profile of the dataset. Summary statistics for the dataset, such as the number of rows
* in a table, the mean / std / mode of each column in a table, or the number of elements
* in an array.
*
* The profile of the dataset. Summary statistics for the dataset, such as the number of rows
* in a table, the mean / std / mode of each column in a table, or the number of elements
* in an array.
*
*
* optional string profile = 6;
* @return The bytes for profile.
*/
public com.google.protobuf.ByteString
getProfileBytes() {
java.lang.Object ref = profile_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
profile_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The profile of the dataset. Summary statistics for the dataset, such as the number of rows
* in a table, the mean / std / mode of each column in a table, or the number of elements
* in an array.
*
*
* optional string profile = 6;
* @param value The profile to set.
* @return This builder for chaining.
*/
public Builder setProfile(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
profile_ = value;
onChanged();
return this;
}
/**
*
* The profile of the dataset. Summary statistics for the dataset, such as the number of rows
* in a table, the mean / std / mode of each column in a table, or the number of elements
* in an array.
*
* The profile of the dataset. Summary statistics for the dataset, such as the number of rows
* in a table, the mean / std / mode of each column in a table, or the number of elements
* in an array.
*
*
* optional string profile = 6;
* @param value The bytes for profile to set.
* @return This builder for chaining.
*/
public Builder setProfileBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
profile_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mlflow.Dataset)
}
// @@protoc_insertion_point(class_scope:mlflow.Dataset)
private static final org.mlflow.api.proto.Service.Dataset DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.mlflow.api.proto.Service.Dataset();
}
public static org.mlflow.api.proto.Service.Dataset getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Dataset parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Dataset(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.mlflow.api.proto.Service.Dataset getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateExperimentOrBuilder extends
// @@protoc_insertion_point(interface_extends:mlflow.CreateExperiment)
com.google.protobuf.MessageOrBuilder {
/**
*
* Experiment name.
*
*
* optional string name = 1 [(.mlflow.validate_required) = true];
* @return Whether the name field is set.
*/
boolean hasName();
/**
*
* Experiment name.
*
*
* optional string name = 1 [(.mlflow.validate_required) = true];
* @return The name.
*/
java.lang.String getName();
/**
*
* Experiment name.
*
*
* optional string name = 1 [(.mlflow.validate_required) = true];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Location where all artifacts for the experiment are stored.
* If not provided, the remote server will select an appropriate default.
*
*
* optional string artifact_location = 2;
* @return Whether the artifactLocation field is set.
*/
boolean hasArtifactLocation();
/**
*
* Location where all artifacts for the experiment are stored.
* If not provided, the remote server will select an appropriate default.
*
* Location where all artifacts for the experiment are stored.
* If not provided, the remote server will select an appropriate default.
*
*
* optional string artifact_location = 2;
* @return The bytes for artifactLocation.
*/
com.google.protobuf.ByteString
getArtifactLocationBytes();
/**
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
*
* repeated .mlflow.ExperimentTag tags = 3;
*/
org.mlflow.api.proto.Service.ExperimentTagOrBuilder getTagsOrBuilder(
int index);
}
/**
* Protobuf type {@code mlflow.CreateExperiment}
*/
public static final class CreateExperiment extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mlflow.CreateExperiment)
CreateExperimentOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateExperiment.newBuilder() to construct.
private CreateExperiment(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateExperiment() {
name_ = "";
artifactLocation_ = "";
tags_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateExperiment();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateExperiment(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
artifactLocation_ = bs;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
tags_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
tags_.add(
input.readMessage(org.mlflow.api.proto.Service.ExperimentTag.PARSER, extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) != 0)) {
tags_ = java.util.Collections.unmodifiableList(tags_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.mlflow.api.proto.Service.internal_static_mlflow_CreateExperiment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.mlflow.api.proto.Service.internal_static_mlflow_CreateExperiment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.mlflow.api.proto.Service.CreateExperiment.class, org.mlflow.api.proto.Service.CreateExperiment.Builder.class);
}
public interface ResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:mlflow.CreateExperiment.Response)
com.google.protobuf.MessageOrBuilder {
/**
*
* Unique identifier for the experiment.
*
*
* optional string experiment_id = 1;
* @return Whether the experimentId field is set.
*/
boolean hasExperimentId();
/**
*
* Location where all artifacts for the experiment are stored.
* If not provided, the remote server will select an appropriate default.
*
*
* optional string artifact_location = 2;
* @return The bytes for artifactLocation.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getArtifactLocationBytes() {
java.lang.Object ref = artifactLocation_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
artifactLocation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TAGS_FIELD_NUMBER = 3;
private java.util.List tags_;
/**
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
*
* repeated .mlflow.ExperimentTag tags = 3;
*/
@java.lang.Override
public int getTagsCount() {
return tags_.size();
}
/**
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
*
* repeated .mlflow.ExperimentTag tags = 3;
*/
@java.lang.Override
public org.mlflow.api.proto.Service.ExperimentTagOrBuilder getTagsOrBuilder(
int index) {
return tags_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, artifactLocation_);
}
for (int i = 0; i < tags_.size(); i++) {
output.writeMessage(3, tags_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, artifactLocation_);
}
for (int i = 0; i < tags_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, tags_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.mlflow.api.proto.Service.CreateExperiment)) {
return super.equals(obj);
}
org.mlflow.api.proto.Service.CreateExperiment other = (org.mlflow.api.proto.Service.CreateExperiment) obj;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasArtifactLocation() != other.hasArtifactLocation()) return false;
if (hasArtifactLocation()) {
if (!getArtifactLocation()
.equals(other.getArtifactLocation())) return false;
}
if (!getTagsList()
.equals(other.getTagsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasArtifactLocation()) {
hash = (37 * hash) + ARTIFACT_LOCATION_FIELD_NUMBER;
hash = (53 * hash) + getArtifactLocation().hashCode();
}
if (getTagsCount() > 0) {
hash = (37 * hash) + TAGS_FIELD_NUMBER;
hash = (53 * hash) + getTagsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.mlflow.api.proto.Service.CreateExperiment parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.CreateExperiment parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.CreateExperiment parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.CreateExperiment parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.CreateExperiment parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.CreateExperiment parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.CreateExperiment parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.CreateExperiment parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.mlflow.api.proto.Service.CreateExperiment parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.CreateExperiment parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.mlflow.api.proto.Service.CreateExperiment parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.CreateExperiment parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.mlflow.api.proto.Service.CreateExperiment prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mlflow.CreateExperiment}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mlflow.CreateExperiment)
org.mlflow.api.proto.Service.CreateExperimentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.mlflow.api.proto.Service.internal_static_mlflow_CreateExperiment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.mlflow.api.proto.Service.internal_static_mlflow_CreateExperiment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.mlflow.api.proto.Service.CreateExperiment.class, org.mlflow.api.proto.Service.CreateExperiment.Builder.class);
}
// Construct using org.mlflow.api.proto.Service.CreateExperiment.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTagsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
artifactLocation_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
if (tagsBuilder_ == null) {
tags_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
tagsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.mlflow.api.proto.Service.internal_static_mlflow_CreateExperiment_descriptor;
}
@java.lang.Override
public org.mlflow.api.proto.Service.CreateExperiment getDefaultInstanceForType() {
return org.mlflow.api.proto.Service.CreateExperiment.getDefaultInstance();
}
@java.lang.Override
public org.mlflow.api.proto.Service.CreateExperiment build() {
org.mlflow.api.proto.Service.CreateExperiment result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.mlflow.api.proto.Service.CreateExperiment buildPartial() {
org.mlflow.api.proto.Service.CreateExperiment result = new org.mlflow.api.proto.Service.CreateExperiment(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.artifactLocation_ = artifactLocation_;
if (tagsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
tags_ = java.util.Collections.unmodifiableList(tags_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.tags_ = tags_;
} else {
result.tags_ = tagsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.mlflow.api.proto.Service.CreateExperiment) {
return mergeFrom((org.mlflow.api.proto.Service.CreateExperiment)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.mlflow.api.proto.Service.CreateExperiment other) {
if (other == org.mlflow.api.proto.Service.CreateExperiment.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasArtifactLocation()) {
bitField0_ |= 0x00000002;
artifactLocation_ = other.artifactLocation_;
onChanged();
}
if (tagsBuilder_ == null) {
if (!other.tags_.isEmpty()) {
if (tags_.isEmpty()) {
tags_ = other.tags_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureTagsIsMutable();
tags_.addAll(other.tags_);
}
onChanged();
}
} else {
if (!other.tags_.isEmpty()) {
if (tagsBuilder_.isEmpty()) {
tagsBuilder_.dispose();
tagsBuilder_ = null;
tags_ = other.tags_;
bitField0_ = (bitField0_ & ~0x00000004);
tagsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTagsFieldBuilder() : null;
} else {
tagsBuilder_.addAllMessages(other.tags_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.mlflow.api.proto.Service.CreateExperiment parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.mlflow.api.proto.Service.CreateExperiment) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* Experiment name.
*
*
* optional string name = 1 [(.mlflow.validate_required) = true];
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Experiment name.
*
*
* optional string name = 1 [(.mlflow.validate_required) = true];
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Experiment name.
*
*
* optional string name = 1 [(.mlflow.validate_required) = true];
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Experiment name.
*
*
* optional string name = 1 [(.mlflow.validate_required) = true];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
*
* Experiment name.
*
*
* optional string name = 1 [(.mlflow.validate_required) = true];
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Experiment name.
*
*
* optional string name = 1 [(.mlflow.validate_required) = true];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private java.lang.Object artifactLocation_ = "";
/**
*
* Location where all artifacts for the experiment are stored.
* If not provided, the remote server will select an appropriate default.
*
*
* optional string artifact_location = 2;
* @return Whether the artifactLocation field is set.
*/
public boolean hasArtifactLocation() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Location where all artifacts for the experiment are stored.
* If not provided, the remote server will select an appropriate default.
*
* Location where all artifacts for the experiment are stored.
* If not provided, the remote server will select an appropriate default.
*
*
* optional string artifact_location = 2;
* @param value The bytes for artifactLocation to set.
* @return This builder for chaining.
*/
public Builder setArtifactLocationBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
artifactLocation_ = value;
onChanged();
return this;
}
private java.util.List tags_ =
java.util.Collections.emptyList();
private void ensureTagsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
tags_ = new java.util.ArrayList(tags_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.mlflow.api.proto.Service.ExperimentTag, org.mlflow.api.proto.Service.ExperimentTag.Builder, org.mlflow.api.proto.Service.ExperimentTagOrBuilder> tagsBuilder_;
/**
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
*
* repeated .mlflow.ExperimentTag tags = 3;
*/
public int getTagsCount() {
if (tagsBuilder_ == null) {
return tags_.size();
} else {
return tagsBuilder_.getCount();
}
}
/**
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
*
* repeated .mlflow.ExperimentTag tags = 3;
*/
public Builder setTags(
int index, org.mlflow.api.proto.Service.ExperimentTag value) {
if (tagsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.set(index, value);
onChanged();
} else {
tagsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
*
* repeated .mlflow.ExperimentTag tags = 3;
*/
public Builder addTags(org.mlflow.api.proto.Service.ExperimentTag value) {
if (tagsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(value);
onChanged();
} else {
tagsBuilder_.addMessage(value);
}
return this;
}
/**
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
*
* repeated .mlflow.ExperimentTag tags = 3;
*/
public Builder addTags(
int index, org.mlflow.api.proto.Service.ExperimentTag value) {
if (tagsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(index, value);
onChanged();
} else {
tagsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
*
* repeated .mlflow.ExperimentTag tags = 3;
*/
public org.mlflow.api.proto.Service.ExperimentTag.Builder getTagsBuilder(
int index) {
return getTagsFieldBuilder().getBuilder(index);
}
/**
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
*
* repeated .mlflow.ExperimentTag tags = 3;
*/
public org.mlflow.api.proto.Service.ExperimentTagOrBuilder getTagsOrBuilder(
int index) {
if (tagsBuilder_ == null) {
return tags_.get(index); } else {
return tagsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
* A collection of tags to set on the experiment. Maximum tag size and number of tags per request
* depends on the storage backend. All storage backends are guaranteed to support tag keys up
* to 250 bytes in size and tag values up to 5000 bytes in size. All storage backends are also
* guaranteed to support up to 20 tags per request.
*
*
* repeated .mlflow.ExperimentTag tags = 3;
*/
public java.util.List
getTagsBuilderList() {
return getTagsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.mlflow.api.proto.Service.ExperimentTag, org.mlflow.api.proto.Service.ExperimentTag.Builder, org.mlflow.api.proto.Service.ExperimentTagOrBuilder>
getTagsFieldBuilder() {
if (tagsBuilder_ == null) {
tagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.mlflow.api.proto.Service.ExperimentTag, org.mlflow.api.proto.Service.ExperimentTag.Builder, org.mlflow.api.proto.Service.ExperimentTagOrBuilder>(
tags_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
tags_ = null;
}
return tagsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mlflow.CreateExperiment)
}
// @@protoc_insertion_point(class_scope:mlflow.CreateExperiment)
private static final org.mlflow.api.proto.Service.CreateExperiment DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.mlflow.api.proto.Service.CreateExperiment();
}
public static org.mlflow.api.proto.Service.CreateExperiment getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateExperiment parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateExperiment(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.mlflow.api.proto.Service.CreateExperiment getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SearchExperimentsOrBuilder extends
// @@protoc_insertion_point(interface_extends:mlflow.SearchExperiments)
com.google.protobuf.MessageOrBuilder {
/**
*
* Maximum number of experiments desired.
* Servers may select a desired default `max_results` value. All servers are
* guaranteed to support a `max_results` threshold of at least 1,000 but may
* support more. Callers of this endpoint are encouraged to pass max_results
* explicitly and leverage page_token to iterate through experiments.
*
*
* optional int64 max_results = 1;
* @return Whether the maxResults field is set.
*/
boolean hasMaxResults();
/**
*
* Maximum number of experiments desired.
* Servers may select a desired default `max_results` value. All servers are
* guaranteed to support a `max_results` threshold of at least 1,000 but may
* support more. Callers of this endpoint are encouraged to pass max_results
* explicitly and leverage page_token to iterate through experiments.
*
*
* optional int64 max_results = 1;
* @return The maxResults.
*/
long getMaxResults();
/**
*
* Token indicating the page of experiments to fetch
*
*
* optional string page_token = 2;
* @return Whether the pageToken field is set.
*/
boolean hasPageToken();
/**
*
* Token indicating the page of experiments to fetch
*
* Token indicating the page of experiments to fetch
*
*
* optional string page_token = 2;
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
/**
*
* A filter expression over experiment attributes and tags that allows returning a subset of
* experiments. The syntax is a subset of SQL that supports ANDing together binary operations
* between an attribute or tag, and a constant.
* Example: ``name LIKE 'test-%' AND tags.key = 'value'``
* You can select columns with special characters (hyphen, space, period, etc.) by using
* double quotes or backticks.
* Example: ``tags."extra-key" = 'value'`` or ``tags.`extra-key` = 'value'``
* Supported operators are ``=``, ``!=``, ``LIKE``, and ``ILIKE``.
*
*
* optional string filter = 3;
* @return Whether the filter field is set.
*/
boolean hasFilter();
/**
*
* A filter expression over experiment attributes and tags that allows returning a subset of
* experiments. The syntax is a subset of SQL that supports ANDing together binary operations
* between an attribute or tag, and a constant.
* Example: ``name LIKE 'test-%' AND tags.key = 'value'``
* You can select columns with special characters (hyphen, space, period, etc.) by using
* double quotes or backticks.
* Example: ``tags."extra-key" = 'value'`` or ``tags.`extra-key` = 'value'``
* Supported operators are ``=``, ``!=``, ``LIKE``, and ``ILIKE``.
*
* A filter expression over experiment attributes and tags that allows returning a subset of
* experiments. The syntax is a subset of SQL that supports ANDing together binary operations
* between an attribute or tag, and a constant.
* Example: ``name LIKE 'test-%' AND tags.key = 'value'``
* You can select columns with special characters (hyphen, space, period, etc.) by using
* double quotes or backticks.
* Example: ``tags."extra-key" = 'value'`` or ``tags.`extra-key` = 'value'``
* Supported operators are ``=``, ``!=``, ``LIKE``, and ``ILIKE``.
*
*
* optional string filter = 3;
* @return The bytes for filter.
*/
com.google.protobuf.ByteString
getFilterBytes();
/**
*
* List of columns for ordering search results, which can include experiment name and id
* with an optional "DESC" or "ASC" annotation, where "ASC" is the default.
* Tiebreaks are done by experiment id DESC.
*
*
* repeated string order_by = 4;
* @return A list containing the orderBy.
*/
java.util.List
getOrderByList();
/**
*
* List of columns for ordering search results, which can include experiment name and id
* with an optional "DESC" or "ASC" annotation, where "ASC" is the default.
* Tiebreaks are done by experiment id DESC.
*
*
* repeated string order_by = 4;
* @return The count of orderBy.
*/
int getOrderByCount();
/**
*
* List of columns for ordering search results, which can include experiment name and id
* with an optional "DESC" or "ASC" annotation, where "ASC" is the default.
* Tiebreaks are done by experiment id DESC.
*
*
* repeated string order_by = 4;
* @param index The index of the element to return.
* @return The orderBy at the given index.
*/
java.lang.String getOrderBy(int index);
/**
*
* List of columns for ordering search results, which can include experiment name and id
* with an optional "DESC" or "ASC" annotation, where "ASC" is the default.
* Tiebreaks are done by experiment id DESC.
*
*
* repeated string order_by = 4;
* @param index The index of the value to return.
* @return The bytes of the orderBy at the given index.
*/
com.google.protobuf.ByteString
getOrderByBytes(int index);
/**
*
* Qualifier for type of experiments to be returned.
* If unspecified, return only active experiments.
*
*
* optional .mlflow.ViewType view_type = 5;
* @return Whether the viewType field is set.
*/
boolean hasViewType();
/**
*
* Qualifier for type of experiments to be returned.
* If unspecified, return only active experiments.
*
*
* optional .mlflow.ViewType view_type = 5;
* @return The viewType.
*/
org.mlflow.api.proto.Service.ViewType getViewType();
}
/**
* Protobuf type {@code mlflow.SearchExperiments}
*/
public static final class SearchExperiments extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mlflow.SearchExperiments)
SearchExperimentsOrBuilder {
private static final long serialVersionUID = 0L;
// Use SearchExperiments.newBuilder() to construct.
private SearchExperiments(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SearchExperiments() {
pageToken_ = "";
filter_ = "";
orderBy_ = com.google.protobuf.LazyStringArrayList.EMPTY;
viewType_ = 1;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SearchExperiments();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SearchExperiments(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
bitField0_ |= 0x00000001;
maxResults_ = input.readInt64();
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
pageToken_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
filter_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
orderBy_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
orderBy_.add(bs);
break;
}
case 40: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.mlflow.api.proto.Service.ViewType value = org.mlflow.api.proto.Service.ViewType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(5, rawValue);
} else {
bitField0_ |= 0x00000008;
viewType_ = rawValue;
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) != 0)) {
orderBy_ = orderBy_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.mlflow.api.proto.Service.internal_static_mlflow_SearchExperiments_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.mlflow.api.proto.Service.internal_static_mlflow_SearchExperiments_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.mlflow.api.proto.Service.SearchExperiments.class, org.mlflow.api.proto.Service.SearchExperiments.Builder.class);
}
public interface ResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:mlflow.SearchExperiments.Response)
com.google.protobuf.MessageOrBuilder {
/**
*
* Token that can be used to retrieve the next page of experiments.
* An empty token means that no more experiments are available for retrieval.
*
*
* optional string next_page_token = 2;
* @param value The bytes for nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
nextPageToken_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mlflow.SearchExperiments.Response)
}
// @@protoc_insertion_point(class_scope:mlflow.SearchExperiments.Response)
private static final org.mlflow.api.proto.Service.SearchExperiments.Response DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.mlflow.api.proto.Service.SearchExperiments.Response();
}
public static org.mlflow.api.proto.Service.SearchExperiments.Response getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Response parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Response(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.mlflow.api.proto.Service.SearchExperiments.Response getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int MAX_RESULTS_FIELD_NUMBER = 1;
private long maxResults_;
/**
*
* Maximum number of experiments desired.
* Servers may select a desired default `max_results` value. All servers are
* guaranteed to support a `max_results` threshold of at least 1,000 but may
* support more. Callers of this endpoint are encouraged to pass max_results
* explicitly and leverage page_token to iterate through experiments.
*
*
* optional int64 max_results = 1;
* @return Whether the maxResults field is set.
*/
@java.lang.Override
public boolean hasMaxResults() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Maximum number of experiments desired.
* Servers may select a desired default `max_results` value. All servers are
* guaranteed to support a `max_results` threshold of at least 1,000 but may
* support more. Callers of this endpoint are encouraged to pass max_results
* explicitly and leverage page_token to iterate through experiments.
*
*
* optional int64 max_results = 1;
* @return The maxResults.
*/
@java.lang.Override
public long getMaxResults() {
return maxResults_;
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object pageToken_;
/**
*
* Token indicating the page of experiments to fetch
*
*
* optional string page_token = 2;
* @return Whether the pageToken field is set.
*/
@java.lang.Override
public boolean hasPageToken() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Token indicating the page of experiments to fetch
*
* Token indicating the page of experiments to fetch
*
*
* optional string page_token = 2;
* @return The bytes for pageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FILTER_FIELD_NUMBER = 3;
private volatile java.lang.Object filter_;
/**
*
* A filter expression over experiment attributes and tags that allows returning a subset of
* experiments. The syntax is a subset of SQL that supports ANDing together binary operations
* between an attribute or tag, and a constant.
* Example: ``name LIKE 'test-%' AND tags.key = 'value'``
* You can select columns with special characters (hyphen, space, period, etc.) by using
* double quotes or backticks.
* Example: ``tags."extra-key" = 'value'`` or ``tags.`extra-key` = 'value'``
* Supported operators are ``=``, ``!=``, ``LIKE``, and ``ILIKE``.
*
*
* optional string filter = 3;
* @return Whether the filter field is set.
*/
@java.lang.Override
public boolean hasFilter() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* A filter expression over experiment attributes and tags that allows returning a subset of
* experiments. The syntax is a subset of SQL that supports ANDing together binary operations
* between an attribute or tag, and a constant.
* Example: ``name LIKE 'test-%' AND tags.key = 'value'``
* You can select columns with special characters (hyphen, space, period, etc.) by using
* double quotes or backticks.
* Example: ``tags."extra-key" = 'value'`` or ``tags.`extra-key` = 'value'``
* Supported operators are ``=``, ``!=``, ``LIKE``, and ``ILIKE``.
*
* A filter expression over experiment attributes and tags that allows returning a subset of
* experiments. The syntax is a subset of SQL that supports ANDing together binary operations
* between an attribute or tag, and a constant.
* Example: ``name LIKE 'test-%' AND tags.key = 'value'``
* You can select columns with special characters (hyphen, space, period, etc.) by using
* double quotes or backticks.
* Example: ``tags."extra-key" = 'value'`` or ``tags.`extra-key` = 'value'``
* Supported operators are ``=``, ``!=``, ``LIKE``, and ``ILIKE``.
*
*
* optional string filter = 3;
* @return The bytes for filter.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ORDER_BY_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList orderBy_;
/**
*
* List of columns for ordering search results, which can include experiment name and id
* with an optional "DESC" or "ASC" annotation, where "ASC" is the default.
* Tiebreaks are done by experiment id DESC.
*
*
* repeated string order_by = 4;
* @return A list containing the orderBy.
*/
public com.google.protobuf.ProtocolStringList
getOrderByList() {
return orderBy_;
}
/**
*
* List of columns for ordering search results, which can include experiment name and id
* with an optional "DESC" or "ASC" annotation, where "ASC" is the default.
* Tiebreaks are done by experiment id DESC.
*
*
* repeated string order_by = 4;
* @return The count of orderBy.
*/
public int getOrderByCount() {
return orderBy_.size();
}
/**
*
* List of columns for ordering search results, which can include experiment name and id
* with an optional "DESC" or "ASC" annotation, where "ASC" is the default.
* Tiebreaks are done by experiment id DESC.
*
*
* repeated string order_by = 4;
* @param index The index of the element to return.
* @return The orderBy at the given index.
*/
public java.lang.String getOrderBy(int index) {
return orderBy_.get(index);
}
/**
*
* List of columns for ordering search results, which can include experiment name and id
* with an optional "DESC" or "ASC" annotation, where "ASC" is the default.
* Tiebreaks are done by experiment id DESC.
*
*
* repeated string order_by = 4;
* @param index The index of the value to return.
* @return The bytes of the orderBy at the given index.
*/
public com.google.protobuf.ByteString
getOrderByBytes(int index) {
return orderBy_.getByteString(index);
}
public static final int VIEW_TYPE_FIELD_NUMBER = 5;
private int viewType_;
/**
*
* Qualifier for type of experiments to be returned.
* If unspecified, return only active experiments.
*
*
* optional .mlflow.ViewType view_type = 5;
* @return Whether the viewType field is set.
*/
@java.lang.Override public boolean hasViewType() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Qualifier for type of experiments to be returned.
* If unspecified, return only active experiments.
*
*
* optional .mlflow.ViewType view_type = 5;
* @return The viewType.
*/
@java.lang.Override public org.mlflow.api.proto.Service.ViewType getViewType() {
@SuppressWarnings("deprecation")
org.mlflow.api.proto.Service.ViewType result = org.mlflow.api.proto.Service.ViewType.valueOf(viewType_);
return result == null ? org.mlflow.api.proto.Service.ViewType.ACTIVE_ONLY : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(1, maxResults_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filter_);
}
for (int i = 0; i < orderBy_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, orderBy_.getRaw(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeEnum(5, viewType_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, maxResults_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_);
}
{
int dataSize = 0;
for (int i = 0; i < orderBy_.size(); i++) {
dataSize += computeStringSizeNoTag(orderBy_.getRaw(i));
}
size += dataSize;
size += 1 * getOrderByList().size();
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, viewType_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.mlflow.api.proto.Service.SearchExperiments)) {
return super.equals(obj);
}
org.mlflow.api.proto.Service.SearchExperiments other = (org.mlflow.api.proto.Service.SearchExperiments) obj;
if (hasMaxResults() != other.hasMaxResults()) return false;
if (hasMaxResults()) {
if (getMaxResults()
!= other.getMaxResults()) return false;
}
if (hasPageToken() != other.hasPageToken()) return false;
if (hasPageToken()) {
if (!getPageToken()
.equals(other.getPageToken())) return false;
}
if (hasFilter() != other.hasFilter()) return false;
if (hasFilter()) {
if (!getFilter()
.equals(other.getFilter())) return false;
}
if (!getOrderByList()
.equals(other.getOrderByList())) return false;
if (hasViewType() != other.hasViewType()) return false;
if (hasViewType()) {
if (viewType_ != other.viewType_) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMaxResults()) {
hash = (37 * hash) + MAX_RESULTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaxResults());
}
if (hasPageToken()) {
hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getPageToken().hashCode();
}
if (hasFilter()) {
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
}
if (getOrderByCount() > 0) {
hash = (37 * hash) + ORDER_BY_FIELD_NUMBER;
hash = (53 * hash) + getOrderByList().hashCode();
}
if (hasViewType()) {
hash = (37 * hash) + VIEW_TYPE_FIELD_NUMBER;
hash = (53 * hash) + viewType_;
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.mlflow.api.proto.Service.SearchExperiments parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.SearchExperiments parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.SearchExperiments parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.SearchExperiments parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.SearchExperiments parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.SearchExperiments parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.SearchExperiments parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.SearchExperiments parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.mlflow.api.proto.Service.SearchExperiments parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.SearchExperiments parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.mlflow.api.proto.Service.SearchExperiments parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.SearchExperiments parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.mlflow.api.proto.Service.SearchExperiments prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mlflow.SearchExperiments}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mlflow.SearchExperiments)
org.mlflow.api.proto.Service.SearchExperimentsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.mlflow.api.proto.Service.internal_static_mlflow_SearchExperiments_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.mlflow.api.proto.Service.internal_static_mlflow_SearchExperiments_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.mlflow.api.proto.Service.SearchExperiments.class, org.mlflow.api.proto.Service.SearchExperiments.Builder.class);
}
// Construct using org.mlflow.api.proto.Service.SearchExperiments.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
maxResults_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
pageToken_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
filter_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
orderBy_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
viewType_ = 1;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.mlflow.api.proto.Service.internal_static_mlflow_SearchExperiments_descriptor;
}
@java.lang.Override
public org.mlflow.api.proto.Service.SearchExperiments getDefaultInstanceForType() {
return org.mlflow.api.proto.Service.SearchExperiments.getDefaultInstance();
}
@java.lang.Override
public org.mlflow.api.proto.Service.SearchExperiments build() {
org.mlflow.api.proto.Service.SearchExperiments result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.mlflow.api.proto.Service.SearchExperiments buildPartial() {
org.mlflow.api.proto.Service.SearchExperiments result = new org.mlflow.api.proto.Service.SearchExperiments(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.maxResults_ = maxResults_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.pageToken_ = pageToken_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.filter_ = filter_;
if (((bitField0_ & 0x00000008) != 0)) {
orderBy_ = orderBy_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.orderBy_ = orderBy_;
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.viewType_ = viewType_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.mlflow.api.proto.Service.SearchExperiments) {
return mergeFrom((org.mlflow.api.proto.Service.SearchExperiments)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.mlflow.api.proto.Service.SearchExperiments other) {
if (other == org.mlflow.api.proto.Service.SearchExperiments.getDefaultInstance()) return this;
if (other.hasMaxResults()) {
setMaxResults(other.getMaxResults());
}
if (other.hasPageToken()) {
bitField0_ |= 0x00000002;
pageToken_ = other.pageToken_;
onChanged();
}
if (other.hasFilter()) {
bitField0_ |= 0x00000004;
filter_ = other.filter_;
onChanged();
}
if (!other.orderBy_.isEmpty()) {
if (orderBy_.isEmpty()) {
orderBy_ = other.orderBy_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureOrderByIsMutable();
orderBy_.addAll(other.orderBy_);
}
onChanged();
}
if (other.hasViewType()) {
setViewType(other.getViewType());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.mlflow.api.proto.Service.SearchExperiments parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.mlflow.api.proto.Service.SearchExperiments) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long maxResults_ ;
/**
*
* Maximum number of experiments desired.
* Servers may select a desired default `max_results` value. All servers are
* guaranteed to support a `max_results` threshold of at least 1,000 but may
* support more. Callers of this endpoint are encouraged to pass max_results
* explicitly and leverage page_token to iterate through experiments.
*
*
* optional int64 max_results = 1;
* @return Whether the maxResults field is set.
*/
@java.lang.Override
public boolean hasMaxResults() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Maximum number of experiments desired.
* Servers may select a desired default `max_results` value. All servers are
* guaranteed to support a `max_results` threshold of at least 1,000 but may
* support more. Callers of this endpoint are encouraged to pass max_results
* explicitly and leverage page_token to iterate through experiments.
*
*
* optional int64 max_results = 1;
* @return The maxResults.
*/
@java.lang.Override
public long getMaxResults() {
return maxResults_;
}
/**
*
* Maximum number of experiments desired.
* Servers may select a desired default `max_results` value. All servers are
* guaranteed to support a `max_results` threshold of at least 1,000 but may
* support more. Callers of this endpoint are encouraged to pass max_results
* explicitly and leverage page_token to iterate through experiments.
*
*
* optional int64 max_results = 1;
* @param value The maxResults to set.
* @return This builder for chaining.
*/
public Builder setMaxResults(long value) {
bitField0_ |= 0x00000001;
maxResults_ = value;
onChanged();
return this;
}
/**
*
* Maximum number of experiments desired.
* Servers may select a desired default `max_results` value. All servers are
* guaranteed to support a `max_results` threshold of at least 1,000 but may
* support more. Callers of this endpoint are encouraged to pass max_results
* explicitly and leverage page_token to iterate through experiments.
*
* Token indicating the page of experiments to fetch
*
*
* optional string page_token = 2;
* @param value The bytes for pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
pageToken_ = value;
onChanged();
return this;
}
private java.lang.Object filter_ = "";
/**
*
* A filter expression over experiment attributes and tags that allows returning a subset of
* experiments. The syntax is a subset of SQL that supports ANDing together binary operations
* between an attribute or tag, and a constant.
* Example: ``name LIKE 'test-%' AND tags.key = 'value'``
* You can select columns with special characters (hyphen, space, period, etc.) by using
* double quotes or backticks.
* Example: ``tags."extra-key" = 'value'`` or ``tags.`extra-key` = 'value'``
* Supported operators are ``=``, ``!=``, ``LIKE``, and ``ILIKE``.
*
*
* optional string filter = 3;
* @return Whether the filter field is set.
*/
public boolean hasFilter() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* A filter expression over experiment attributes and tags that allows returning a subset of
* experiments. The syntax is a subset of SQL that supports ANDing together binary operations
* between an attribute or tag, and a constant.
* Example: ``name LIKE 'test-%' AND tags.key = 'value'``
* You can select columns with special characters (hyphen, space, period, etc.) by using
* double quotes or backticks.
* Example: ``tags."extra-key" = 'value'`` or ``tags.`extra-key` = 'value'``
* Supported operators are ``=``, ``!=``, ``LIKE``, and ``ILIKE``.
*
* A filter expression over experiment attributes and tags that allows returning a subset of
* experiments. The syntax is a subset of SQL that supports ANDing together binary operations
* between an attribute or tag, and a constant.
* Example: ``name LIKE 'test-%' AND tags.key = 'value'``
* You can select columns with special characters (hyphen, space, period, etc.) by using
* double quotes or backticks.
* Example: ``tags."extra-key" = 'value'`` or ``tags.`extra-key` = 'value'``
* Supported operators are ``=``, ``!=``, ``LIKE``, and ``ILIKE``.
*
*
* optional string filter = 3;
* @return The bytes for filter.
*/
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A filter expression over experiment attributes and tags that allows returning a subset of
* experiments. The syntax is a subset of SQL that supports ANDing together binary operations
* between an attribute or tag, and a constant.
* Example: ``name LIKE 'test-%' AND tags.key = 'value'``
* You can select columns with special characters (hyphen, space, period, etc.) by using
* double quotes or backticks.
* Example: ``tags."extra-key" = 'value'`` or ``tags.`extra-key` = 'value'``
* Supported operators are ``=``, ``!=``, ``LIKE``, and ``ILIKE``.
*
*
* optional string filter = 3;
* @param value The filter to set.
* @return This builder for chaining.
*/
public Builder setFilter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
filter_ = value;
onChanged();
return this;
}
/**
*
* A filter expression over experiment attributes and tags that allows returning a subset of
* experiments. The syntax is a subset of SQL that supports ANDing together binary operations
* between an attribute or tag, and a constant.
* Example: ``name LIKE 'test-%' AND tags.key = 'value'``
* You can select columns with special characters (hyphen, space, period, etc.) by using
* double quotes or backticks.
* Example: ``tags."extra-key" = 'value'`` or ``tags.`extra-key` = 'value'``
* Supported operators are ``=``, ``!=``, ``LIKE``, and ``ILIKE``.
*
* A filter expression over experiment attributes and tags that allows returning a subset of
* experiments. The syntax is a subset of SQL that supports ANDing together binary operations
* between an attribute or tag, and a constant.
* Example: ``name LIKE 'test-%' AND tags.key = 'value'``
* You can select columns with special characters (hyphen, space, period, etc.) by using
* double quotes or backticks.
* Example: ``tags."extra-key" = 'value'`` or ``tags.`extra-key` = 'value'``
* Supported operators are ``=``, ``!=``, ``LIKE``, and ``ILIKE``.
*
*
* optional string filter = 3;
* @param value The bytes for filter to set.
* @return This builder for chaining.
*/
public Builder setFilterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
filter_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList orderBy_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureOrderByIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
orderBy_ = new com.google.protobuf.LazyStringArrayList(orderBy_);
bitField0_ |= 0x00000008;
}
}
/**
*
* List of columns for ordering search results, which can include experiment name and id
* with an optional "DESC" or "ASC" annotation, where "ASC" is the default.
* Tiebreaks are done by experiment id DESC.
*
*
* repeated string order_by = 4;
* @return A list containing the orderBy.
*/
public com.google.protobuf.ProtocolStringList
getOrderByList() {
return orderBy_.getUnmodifiableView();
}
/**
*
* List of columns for ordering search results, which can include experiment name and id
* with an optional "DESC" or "ASC" annotation, where "ASC" is the default.
* Tiebreaks are done by experiment id DESC.
*
*
* repeated string order_by = 4;
* @return The count of orderBy.
*/
public int getOrderByCount() {
return orderBy_.size();
}
/**
*
* List of columns for ordering search results, which can include experiment name and id
* with an optional "DESC" or "ASC" annotation, where "ASC" is the default.
* Tiebreaks are done by experiment id DESC.
*
*
* repeated string order_by = 4;
* @param index The index of the element to return.
* @return The orderBy at the given index.
*/
public java.lang.String getOrderBy(int index) {
return orderBy_.get(index);
}
/**
*
* List of columns for ordering search results, which can include experiment name and id
* with an optional "DESC" or "ASC" annotation, where "ASC" is the default.
* Tiebreaks are done by experiment id DESC.
*
*
* repeated string order_by = 4;
* @param index The index of the value to return.
* @return The bytes of the orderBy at the given index.
*/
public com.google.protobuf.ByteString
getOrderByBytes(int index) {
return orderBy_.getByteString(index);
}
/**
*
* List of columns for ordering search results, which can include experiment name and id
* with an optional "DESC" or "ASC" annotation, where "ASC" is the default.
* Tiebreaks are done by experiment id DESC.
*
*
* repeated string order_by = 4;
* @param index The index to set the value at.
* @param value The orderBy to set.
* @return This builder for chaining.
*/
public Builder setOrderBy(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureOrderByIsMutable();
orderBy_.set(index, value);
onChanged();
return this;
}
/**
*
* List of columns for ordering search results, which can include experiment name and id
* with an optional "DESC" or "ASC" annotation, where "ASC" is the default.
* Tiebreaks are done by experiment id DESC.
*
*
* repeated string order_by = 4;
* @param value The orderBy to add.
* @return This builder for chaining.
*/
public Builder addOrderBy(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureOrderByIsMutable();
orderBy_.add(value);
onChanged();
return this;
}
/**
*
* List of columns for ordering search results, which can include experiment name and id
* with an optional "DESC" or "ASC" annotation, where "ASC" is the default.
* Tiebreaks are done by experiment id DESC.
*
*
* repeated string order_by = 4;
* @param values The orderBy to add.
* @return This builder for chaining.
*/
public Builder addAllOrderBy(
java.lang.Iterable values) {
ensureOrderByIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, orderBy_);
onChanged();
return this;
}
/**
*
* List of columns for ordering search results, which can include experiment name and id
* with an optional "DESC" or "ASC" annotation, where "ASC" is the default.
* Tiebreaks are done by experiment id DESC.
*
* List of columns for ordering search results, which can include experiment name and id
* with an optional "DESC" or "ASC" annotation, where "ASC" is the default.
* Tiebreaks are done by experiment id DESC.
*
*
* repeated string order_by = 4;
* @param value The bytes of the orderBy to add.
* @return This builder for chaining.
*/
public Builder addOrderByBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureOrderByIsMutable();
orderBy_.add(value);
onChanged();
return this;
}
private int viewType_ = 1;
/**
*
* Qualifier for type of experiments to be returned.
* If unspecified, return only active experiments.
*
*
* optional .mlflow.ViewType view_type = 5;
* @return Whether the viewType field is set.
*/
@java.lang.Override public boolean hasViewType() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Qualifier for type of experiments to be returned.
* If unspecified, return only active experiments.
*
*
* optional .mlflow.ViewType view_type = 5;
* @return The viewType.
*/
@java.lang.Override
public org.mlflow.api.proto.Service.ViewType getViewType() {
@SuppressWarnings("deprecation")
org.mlflow.api.proto.Service.ViewType result = org.mlflow.api.proto.Service.ViewType.valueOf(viewType_);
return result == null ? org.mlflow.api.proto.Service.ViewType.ACTIVE_ONLY : result;
}
/**
*
* Qualifier for type of experiments to be returned.
* If unspecified, return only active experiments.
*
*
* optional .mlflow.ViewType view_type = 5;
* @param value The viewType to set.
* @return This builder for chaining.
*/
public Builder setViewType(org.mlflow.api.proto.Service.ViewType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
viewType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Qualifier for type of experiments to be returned.
* If unspecified, return only active experiments.
*
*
* optional .mlflow.ViewType view_type = 5;
* @return This builder for chaining.
*/
public Builder clearViewType() {
bitField0_ = (bitField0_ & ~0x00000010);
viewType_ = 1;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mlflow.SearchExperiments)
}
// @@protoc_insertion_point(class_scope:mlflow.SearchExperiments)
private static final org.mlflow.api.proto.Service.SearchExperiments DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.mlflow.api.proto.Service.SearchExperiments();
}
public static org.mlflow.api.proto.Service.SearchExperiments getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SearchExperiments parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SearchExperiments(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.mlflow.api.proto.Service.SearchExperiments getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetExperimentOrBuilder extends
// @@protoc_insertion_point(interface_extends:mlflow.GetExperiment)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the associated experiment.
*
*
* optional string experiment_id = 1 [(.mlflow.validate_required) = true];
* @return Whether the experimentId field is set.
*/
boolean hasExperimentId();
/**
*
*
* optional string experiment_id = 1;
* @return The bytes for experimentId.
*/
com.google.protobuf.ByteString
getExperimentIdBytes();
/**
*
* ID of the user executing the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
*
* optional string user_id = 2;
* @return Whether the userId field is set.
*/
boolean hasUserId();
/**
*
* ID of the user executing the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
* ID of the user executing the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
*
* optional string user_id = 2;
* @return The bytes for userId.
*/
com.google.protobuf.ByteString
getUserIdBytes();
/**
*
* Name of the run.
*
*
* optional string run_name = 3;
* @return Whether the runName field is set.
*/
boolean hasRunName();
/**
*
*
* repeated .mlflow.RunTag tags = 9;
*/
org.mlflow.api.proto.Service.RunTagOrBuilder getTagsOrBuilder(
int index);
}
/**
* Protobuf type {@code mlflow.CreateRun}
*/
public static final class CreateRun extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mlflow.CreateRun)
CreateRunOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateRun.newBuilder() to construct.
private CreateRun(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateRun() {
experimentId_ = "";
userId_ = "";
runName_ = "";
tags_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateRun();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateRun(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
experimentId_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
userId_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
runName_ = bs;
break;
}
case 56: {
bitField0_ |= 0x00000008;
startTime_ = input.readInt64();
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
tags_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
tags_.add(
input.readMessage(org.mlflow.api.proto.Service.RunTag.PARSER, extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000010) != 0)) {
tags_ = java.util.Collections.unmodifiableList(tags_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.mlflow.api.proto.Service.internal_static_mlflow_CreateRun_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.mlflow.api.proto.Service.internal_static_mlflow_CreateRun_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.mlflow.api.proto.Service.CreateRun.class, org.mlflow.api.proto.Service.CreateRun.Builder.class);
}
public interface ResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:mlflow.CreateRun.Response)
com.google.protobuf.MessageOrBuilder {
/**
*
* The newly created run.
*
*
* optional .mlflow.Run run = 1;
* @return Whether the run field is set.
*/
boolean hasRun();
/**
*
* The newly created run.
*
*
* optional .mlflow.Run run = 1;
* @return The run.
*/
org.mlflow.api.proto.Service.Run getRun();
/**
*
* The newly created run.
*
*
* optional .mlflow.Run run = 1;
*/
org.mlflow.api.proto.Service.RunOrBuilder getRunOrBuilder();
}
/**
* Protobuf type {@code mlflow.CreateRun.Response}
*/
public static final class Response extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mlflow.CreateRun.Response)
ResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use Response.newBuilder() to construct.
private Response(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Response() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Response();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Response(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.mlflow.api.proto.Service.Run.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = run_.toBuilder();
}
run_ = input.readMessage(org.mlflow.api.proto.Service.Run.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(run_);
run_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.mlflow.api.proto.Service.internal_static_mlflow_CreateRun_Response_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.mlflow.api.proto.Service.internal_static_mlflow_CreateRun_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.mlflow.api.proto.Service.CreateRun.Response.class, org.mlflow.api.proto.Service.CreateRun.Response.Builder.class);
}
private int bitField0_;
public static final int RUN_FIELD_NUMBER = 1;
private org.mlflow.api.proto.Service.Run run_;
/**
*
* The newly created run.
*
*
* optional .mlflow.Run run = 1;
* @return Whether the run field is set.
*/
@java.lang.Override
public boolean hasRun() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The newly created run.
*
*
* optional .mlflow.Run run = 1;
* @return The run.
*/
@java.lang.Override
public org.mlflow.api.proto.Service.Run getRun() {
return run_ == null ? org.mlflow.api.proto.Service.Run.getDefaultInstance() : run_;
}
/**
*
* The newly created run.
*
*
* optional .mlflow.Run run = 1;
*/
@java.lang.Override
public org.mlflow.api.proto.Service.RunOrBuilder getRunOrBuilder() {
return run_ == null ? org.mlflow.api.proto.Service.Run.getDefaultInstance() : run_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getRun());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRun());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.mlflow.api.proto.Service.CreateRun.Response)) {
return super.equals(obj);
}
org.mlflow.api.proto.Service.CreateRun.Response other = (org.mlflow.api.proto.Service.CreateRun.Response) obj;
if (hasRun() != other.hasRun()) return false;
if (hasRun()) {
if (!getRun()
.equals(other.getRun())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasRun()) {
hash = (37 * hash) + RUN_FIELD_NUMBER;
hash = (53 * hash) + getRun().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.mlflow.api.proto.Service.CreateRun.Response parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.CreateRun.Response parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.CreateRun.Response parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.CreateRun.Response parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.CreateRun.Response parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.CreateRun.Response parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.CreateRun.Response parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.CreateRun.Response parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.mlflow.api.proto.Service.CreateRun.Response parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.CreateRun.Response parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.mlflow.api.proto.Service.CreateRun.Response parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.CreateRun.Response parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.mlflow.api.proto.Service.CreateRun.Response prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mlflow.CreateRun.Response}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mlflow.CreateRun.Response)
org.mlflow.api.proto.Service.CreateRun.ResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.mlflow.api.proto.Service.internal_static_mlflow_CreateRun_Response_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.mlflow.api.proto.Service.internal_static_mlflow_CreateRun_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.mlflow.api.proto.Service.CreateRun.Response.class, org.mlflow.api.proto.Service.CreateRun.Response.Builder.class);
}
// Construct using org.mlflow.api.proto.Service.CreateRun.Response.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRunFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (runBuilder_ == null) {
run_ = null;
} else {
runBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.mlflow.api.proto.Service.internal_static_mlflow_CreateRun_Response_descriptor;
}
@java.lang.Override
public org.mlflow.api.proto.Service.CreateRun.Response getDefaultInstanceForType() {
return org.mlflow.api.proto.Service.CreateRun.Response.getDefaultInstance();
}
@java.lang.Override
public org.mlflow.api.proto.Service.CreateRun.Response build() {
org.mlflow.api.proto.Service.CreateRun.Response result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.mlflow.api.proto.Service.CreateRun.Response buildPartial() {
org.mlflow.api.proto.Service.CreateRun.Response result = new org.mlflow.api.proto.Service.CreateRun.Response(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (runBuilder_ == null) {
result.run_ = run_;
} else {
result.run_ = runBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.mlflow.api.proto.Service.CreateRun.Response) {
return mergeFrom((org.mlflow.api.proto.Service.CreateRun.Response)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.mlflow.api.proto.Service.CreateRun.Response other) {
if (other == org.mlflow.api.proto.Service.CreateRun.Response.getDefaultInstance()) return this;
if (other.hasRun()) {
mergeRun(other.getRun());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.mlflow.api.proto.Service.CreateRun.Response parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.mlflow.api.proto.Service.CreateRun.Response) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.mlflow.api.proto.Service.Run run_;
private com.google.protobuf.SingleFieldBuilderV3<
org.mlflow.api.proto.Service.Run, org.mlflow.api.proto.Service.Run.Builder, org.mlflow.api.proto.Service.RunOrBuilder> runBuilder_;
/**
*
* The newly created run.
*
*
* optional .mlflow.Run run = 1;
* @return Whether the run field is set.
*/
public boolean hasRun() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The newly created run.
*
*
* optional .mlflow.Run run = 1;
* @return The run.
*/
public org.mlflow.api.proto.Service.Run getRun() {
if (runBuilder_ == null) {
return run_ == null ? org.mlflow.api.proto.Service.Run.getDefaultInstance() : run_;
} else {
return runBuilder_.getMessage();
}
}
/**
*
* The newly created run.
*
*
* optional .mlflow.Run run = 1;
*/
public Builder setRun(org.mlflow.api.proto.Service.Run value) {
if (runBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
run_ = value;
onChanged();
} else {
runBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
* optional string experiment_id = 1;
* @return The bytes for experimentId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExperimentIdBytes() {
java.lang.Object ref = experimentId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
experimentId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USER_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object userId_;
/**
*
* ID of the user executing the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
*
* optional string user_id = 2;
* @return Whether the userId field is set.
*/
@java.lang.Override
public boolean hasUserId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* ID of the user executing the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
* ID of the user executing the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
*
* optional string user_id = 2;
* @return The bytes for userId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUserIdBytes() {
java.lang.Object ref = userId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RUN_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object runName_;
/**
*
* Name of the run.
*
*
* optional string run_name = 3;
* @return Whether the runName field is set.
*/
@java.lang.Override
public boolean hasRunName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
* optional string experiment_id = 1;
* @param value The bytes for experimentId to set.
* @return This builder for chaining.
*/
public Builder setExperimentIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
experimentId_ = value;
onChanged();
return this;
}
private java.lang.Object userId_ = "";
/**
*
* ID of the user executing the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
*
* optional string user_id = 2;
* @return Whether the userId field is set.
*/
public boolean hasUserId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* ID of the user executing the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
* ID of the user executing the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
*
* optional string user_id = 2;
* @return The bytes for userId.
*/
public com.google.protobuf.ByteString
getUserIdBytes() {
java.lang.Object ref = userId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the user executing the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
*
* optional string user_id = 2;
* @param value The userId to set.
* @return This builder for chaining.
*/
public Builder setUserId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
userId_ = value;
onChanged();
return this;
}
/**
*
* ID of the user executing the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
* ID of the user executing the run.
* This field is deprecated as of MLflow 1.0, and will be removed in a future
* MLflow release. Use 'mlflow.user' tag instead.
*
*
* optional string user_id = 2;
* @param value The bytes for userId to set.
* @return This builder for chaining.
*/
public Builder setUserIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
userId_ = value;
onChanged();
return this;
}
private java.lang.Object runName_ = "";
/**
*
* Name of the run.
*
*
* optional string run_name = 3;
* @return Whether the runName field is set.
*/
public boolean hasRunName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* [Deprecated, use run_id instead] ID of the run to update.. This field will
* be removed in a future MLflow version.
*
*
* optional string run_uuid = 1;
* @return The bytes for runUuid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRunUuidBytes() {
java.lang.Object ref = runUuid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
runUuid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 2;
private int status_;
/**
*
* Updated status of the run.
*
*
* optional .mlflow.RunStatus status = 2;
* @return Whether the status field is set.
*/
@java.lang.Override public boolean hasStatus() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Updated status of the run.
*
*
* optional .mlflow.RunStatus status = 2;
* @return The status.
*/
@java.lang.Override public org.mlflow.api.proto.Service.RunStatus getStatus() {
@SuppressWarnings("deprecation")
org.mlflow.api.proto.Service.RunStatus result = org.mlflow.api.proto.Service.RunStatus.valueOf(status_);
return result == null ? org.mlflow.api.proto.Service.RunStatus.RUNNING : result;
}
public static final int END_TIME_FIELD_NUMBER = 3;
private long endTime_;
/**
*
*Unix timestamp in milliseconds of when the run ended.
*
*
* optional int64 end_time = 3;
* @return Whether the endTime field is set.
*/
@java.lang.Override
public boolean hasEndTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*Unix timestamp in milliseconds of when the run ended.
*
*
* optional int64 end_time = 3;
* @return The endTime.
*/
@java.lang.Override
public long getEndTime() {
return endTime_;
}
public static final int RUN_NAME_FIELD_NUMBER = 5;
private volatile java.lang.Object runName_;
/**
*
* Updated name of the run.
*
*
* optional string run_name = 5;
* @return Whether the runName field is set.
*/
@java.lang.Override
public boolean hasRunName() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* [Deprecated, use run_id instead] ID of the run to update.. This field will
* be removed in a future MLflow version.
*
*
* optional string run_uuid = 1;
* @param value The bytes for runUuid to set.
* @return This builder for chaining.
*/
public Builder setRunUuidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
runUuid_ = value;
onChanged();
return this;
}
private int status_ = 1;
/**
*
* Updated status of the run.
*
*
* optional .mlflow.RunStatus status = 2;
* @return Whether the status field is set.
*/
@java.lang.Override public boolean hasStatus() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Updated status of the run.
*
*
* optional .mlflow.RunStatus status = 2;
* @return The status.
*/
@java.lang.Override
public org.mlflow.api.proto.Service.RunStatus getStatus() {
@SuppressWarnings("deprecation")
org.mlflow.api.proto.Service.RunStatus result = org.mlflow.api.proto.Service.RunStatus.valueOf(status_);
return result == null ? org.mlflow.api.proto.Service.RunStatus.RUNNING : result;
}
/**
*
* Updated status of the run.
*
*
* optional .mlflow.RunStatus status = 2;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(org.mlflow.api.proto.Service.RunStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Updated status of the run.
*
*
* optional .mlflow.RunStatus status = 2;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000004);
status_ = 1;
onChanged();
return this;
}
private long endTime_ ;
/**
*
*Unix timestamp in milliseconds of when the run ended.
*
*
* optional int64 end_time = 3;
* @return Whether the endTime field is set.
*/
@java.lang.Override
public boolean hasEndTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*Unix timestamp in milliseconds of when the run ended.
*
*
* optional int64 end_time = 3;
* @return The endTime.
*/
@java.lang.Override
public long getEndTime() {
return endTime_;
}
/**
*
*Unix timestamp in milliseconds of when the run ended.
*
*
* optional int64 end_time = 3;
* @param value The endTime to set.
* @return This builder for chaining.
*/
public Builder setEndTime(long value) {
bitField0_ |= 0x00000008;
endTime_ = value;
onChanged();
return this;
}
/**
*
*Unix timestamp in milliseconds of when the run ended.
*
*
* optional string key = 2 [(.mlflow.validate_required) = true];
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 3;
private double value_;
/**
*
* Double value of the metric being logged.
*
*
* optional double value = 3 [(.mlflow.validate_required) = true];
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Double value of the metric being logged.
*
*
* optional double value = 3 [(.mlflow.validate_required) = true];
* @return The value.
*/
@java.lang.Override
public double getValue() {
return value_;
}
public static final int TIMESTAMP_FIELD_NUMBER = 4;
private long timestamp_;
/**
*
* Unix timestamp in milliseconds at the time metric was logged.
*
*
* optional int64 timestamp = 4 [(.mlflow.validate_required) = true];
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Unix timestamp in milliseconds at the time metric was logged.
*
*
* optional int64 timestamp = 4 [(.mlflow.validate_required) = true];
* @return The timestamp.
*/
@java.lang.Override
public long getTimestamp() {
return timestamp_;
}
public static final int STEP_FIELD_NUMBER = 5;
private long step_;
/**
*
* Step at which to log the metric
*
*
* optional int64 step = 5 [default = 0];
* @return Whether the step field is set.
*/
@java.lang.Override
public boolean hasStep() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Step at which to log the metric
*
*
* optional int64 step = 5 [default = 0];
* @return The step.
*/
@java.lang.Override
public long getStep() {
return step_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, runUuid_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeDouble(3, value_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt64(4, timestamp_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt64(5, step_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, runId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, runUuid_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, value_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, timestamp_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, step_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, runId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.mlflow.api.proto.Service.LogMetric)) {
return super.equals(obj);
}
org.mlflow.api.proto.Service.LogMetric other = (org.mlflow.api.proto.Service.LogMetric) obj;
if (hasRunId() != other.hasRunId()) return false;
if (hasRunId()) {
if (!getRunId()
.equals(other.getRunId())) return false;
}
if (hasRunUuid() != other.hasRunUuid()) return false;
if (hasRunUuid()) {
if (!getRunUuid()
.equals(other.getRunUuid())) return false;
}
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (java.lang.Double.doubleToLongBits(getValue())
!= java.lang.Double.doubleToLongBits(
other.getValue())) return false;
}
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (getTimestamp()
!= other.getTimestamp()) return false;
}
if (hasStep() != other.hasStep()) return false;
if (hasStep()) {
if (getStep()
!= other.getStep()) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasRunId()) {
hash = (37 * hash) + RUN_ID_FIELD_NUMBER;
hash = (53 * hash) + getRunId().hashCode();
}
if (hasRunUuid()) {
hash = (37 * hash) + RUN_UUID_FIELD_NUMBER;
hash = (53 * hash) + getRunUuid().hashCode();
}
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getValue()));
}
if (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
}
if (hasStep()) {
hash = (37 * hash) + STEP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStep());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.mlflow.api.proto.Service.LogMetric parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.LogMetric parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.LogMetric parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.LogMetric parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.LogMetric parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.mlflow.api.proto.Service.LogMetric parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.mlflow.api.proto.Service.LogMetric parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.LogMetric parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.mlflow.api.proto.Service.LogMetric parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.LogMetric parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.mlflow.api.proto.Service.LogMetric parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.mlflow.api.proto.Service.LogMetric parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.mlflow.api.proto.Service.LogMetric prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mlflow.LogMetric}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mlflow.LogMetric)
org.mlflow.api.proto.Service.LogMetricOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.mlflow.api.proto.Service.internal_static_mlflow_LogMetric_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.mlflow.api.proto.Service.internal_static_mlflow_LogMetric_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.mlflow.api.proto.Service.LogMetric.class, org.mlflow.api.proto.Service.LogMetric.Builder.class);
}
// Construct using org.mlflow.api.proto.Service.LogMetric.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
runId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
runUuid_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
key_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
value_ = 0D;
bitField0_ = (bitField0_ & ~0x00000008);
timestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
step_ = 0L;
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.mlflow.api.proto.Service.internal_static_mlflow_LogMetric_descriptor;
}
@java.lang.Override
public org.mlflow.api.proto.Service.LogMetric getDefaultInstanceForType() {
return org.mlflow.api.proto.Service.LogMetric.getDefaultInstance();
}
@java.lang.Override
public org.mlflow.api.proto.Service.LogMetric build() {
org.mlflow.api.proto.Service.LogMetric result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.mlflow.api.proto.Service.LogMetric buildPartial() {
org.mlflow.api.proto.Service.LogMetric result = new org.mlflow.api.proto.Service.LogMetric(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.runId_ = runId_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.runUuid_ = runUuid_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.key_ = key_;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.value_ = value_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.timestamp_ = timestamp_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.step_ = step_;
to_bitField0_ |= 0x00000020;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.mlflow.api.proto.Service.LogMetric) {
return mergeFrom((org.mlflow.api.proto.Service.LogMetric)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.mlflow.api.proto.Service.LogMetric other) {
if (other == org.mlflow.api.proto.Service.LogMetric.getDefaultInstance()) return this;
if (other.hasRunId()) {
bitField0_ |= 0x00000001;
runId_ = other.runId_;
onChanged();
}
if (other.hasRunUuid()) {
bitField0_ |= 0x00000002;
runUuid_ = other.runUuid_;
onChanged();
}
if (other.hasKey()) {
bitField0_ |= 0x00000004;
key_ = other.key_;
onChanged();
}
if (other.hasValue()) {
setValue(other.getValue());
}
if (other.hasTimestamp()) {
setTimestamp(other.getTimestamp());
}
if (other.hasStep()) {
setStep(other.getStep());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.mlflow.api.proto.Service.LogMetric parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.mlflow.api.proto.Service.LogMetric) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object runId_ = "";
/**
*
* ID of the run under which to log the metric. Must be provided.
*
*
* optional string run_id = 6;
* @return Whether the runId field is set.
*/
public boolean hasRunId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* ID of the run under which to log the metric. Must be provided.
*