Class Service.TraceInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Service.TraceInfo.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<Service.TraceInfo.Builder>
org.mlflow.api.proto.Service.TraceInfo.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Service.TraceInfoOrBuilder
Enclosing class:
Service.TraceInfo

public static final class Service.TraceInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Service.TraceInfo.Builder> implements Service.TraceInfoOrBuilder
 TraceInfo. Represents metadata of a trace.
 
Protobuf type mlflow.TraceInfo
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Service.TraceInfo.Builder>
    • clear

      public Service.TraceInfo.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Service.TraceInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Service.TraceInfo.Builder>
    • getDefaultInstanceForType

      public Service.TraceInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Service.TraceInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Service.TraceInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Service.TraceInfo.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Service.TraceInfo.Builder>
    • setField

      public Service.TraceInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Service.TraceInfo.Builder>
    • clearField

      public Service.TraceInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Service.TraceInfo.Builder>
    • clearOneof

      public Service.TraceInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Service.TraceInfo.Builder>
    • setRepeatedField

      public Service.TraceInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Service.TraceInfo.Builder>
    • addRepeatedField

      public Service.TraceInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Service.TraceInfo.Builder>
    • mergeFrom

      public Service.TraceInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Service.TraceInfo.Builder>
    • mergeFrom

      public Service.TraceInfo.Builder mergeFrom(Service.TraceInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Service.TraceInfo.Builder>
    • mergeFrom

      public Service.TraceInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Service.TraceInfo.Builder>
      Throws:
      IOException
    • hasRequestId

      public boolean hasRequestId()
       Unique identifier for the trace.
       
      optional string request_id = 1;
      Specified by:
      hasRequestId in interface Service.TraceInfoOrBuilder
      Returns:
      Whether the requestId field is set.
    • getRequestId

      public String getRequestId()
       Unique identifier for the trace.
       
      optional string request_id = 1;
      Specified by:
      getRequestId in interface Service.TraceInfoOrBuilder
      Returns:
      The requestId.
    • getRequestIdBytes

      public com.google.protobuf.ByteString getRequestIdBytes()
       Unique identifier for the trace.
       
      optional string request_id = 1;
      Specified by:
      getRequestIdBytes in interface Service.TraceInfoOrBuilder
      Returns:
      The bytes for requestId.
    • setRequestId

      public Service.TraceInfo.Builder setRequestId(String value)
       Unique identifier for the trace.
       
      optional string request_id = 1;
      Parameters:
      value - The requestId to set.
      Returns:
      This builder for chaining.
    • clearRequestId

      public Service.TraceInfo.Builder clearRequestId()
       Unique identifier for the trace.
       
      optional string request_id = 1;
      Returns:
      This builder for chaining.
    • setRequestIdBytes

      public Service.TraceInfo.Builder setRequestIdBytes(com.google.protobuf.ByteString value)
       Unique identifier for the trace.
       
      optional string request_id = 1;
      Parameters:
      value - The bytes for requestId to set.
      Returns:
      This builder for chaining.
    • hasExperimentId

      public boolean hasExperimentId()
       The ID of the experiment that contains the trace.
       
      optional string experiment_id = 2;
      Specified by:
      hasExperimentId in interface Service.TraceInfoOrBuilder
      Returns:
      Whether the experimentId field is set.
    • getExperimentId

      public String getExperimentId()
       The ID of the experiment that contains the trace.
       
      optional string experiment_id = 2;
      Specified by:
      getExperimentId in interface Service.TraceInfoOrBuilder
      Returns:
      The experimentId.
    • getExperimentIdBytes

      public com.google.protobuf.ByteString getExperimentIdBytes()
       The ID of the experiment that contains the trace.
       
      optional string experiment_id = 2;
      Specified by:
      getExperimentIdBytes in interface Service.TraceInfoOrBuilder
      Returns:
      The bytes for experimentId.
    • setExperimentId

      public Service.TraceInfo.Builder setExperimentId(String value)
       The ID of the experiment that contains the trace.
       
      optional string experiment_id = 2;
      Parameters:
      value - The experimentId to set.
      Returns:
      This builder for chaining.
    • clearExperimentId

      public Service.TraceInfo.Builder clearExperimentId()
       The ID of the experiment that contains the trace.
       
      optional string experiment_id = 2;
      Returns:
      This builder for chaining.
    • setExperimentIdBytes

      public Service.TraceInfo.Builder setExperimentIdBytes(com.google.protobuf.ByteString value)
       The ID of the experiment that contains the trace.
       
      optional string experiment_id = 2;
      Parameters:
      value - The bytes for experimentId to set.
      Returns:
      This builder for chaining.
    • hasTimestampMs

      public boolean hasTimestampMs()
       Unix timestamp of when the trace started in milliseconds.
       
      optional int64 timestamp_ms = 3;
      Specified by:
      hasTimestampMs in interface Service.TraceInfoOrBuilder
      Returns:
      Whether the timestampMs field is set.
    • getTimestampMs

      public long getTimestampMs()
       Unix timestamp of when the trace started in milliseconds.
       
      optional int64 timestamp_ms = 3;
      Specified by:
      getTimestampMs in interface Service.TraceInfoOrBuilder
      Returns:
      The timestampMs.
    • setTimestampMs

      public Service.TraceInfo.Builder setTimestampMs(long value)
       Unix timestamp of when the trace started in milliseconds.
       
      optional int64 timestamp_ms = 3;
      Parameters:
      value - The timestampMs to set.
      Returns:
      This builder for chaining.
    • clearTimestampMs

      public Service.TraceInfo.Builder clearTimestampMs()
       Unix timestamp of when the trace started in milliseconds.
       
      optional int64 timestamp_ms = 3;
      Returns:
      This builder for chaining.
    • hasExecutionTimeMs

      public boolean hasExecutionTimeMs()
       Unix timestamp of the duration of the trace in milliseconds.
       
      optional int64 execution_time_ms = 4;
      Specified by:
      hasExecutionTimeMs in interface Service.TraceInfoOrBuilder
      Returns:
      Whether the executionTimeMs field is set.
    • getExecutionTimeMs

      public long getExecutionTimeMs()
       Unix timestamp of the duration of the trace in milliseconds.
       
      optional int64 execution_time_ms = 4;
      Specified by:
      getExecutionTimeMs in interface Service.TraceInfoOrBuilder
      Returns:
      The executionTimeMs.
    • setExecutionTimeMs

      public Service.TraceInfo.Builder setExecutionTimeMs(long value)
       Unix timestamp of the duration of the trace in milliseconds.
       
      optional int64 execution_time_ms = 4;
      Parameters:
      value - The executionTimeMs to set.
      Returns:
      This builder for chaining.
    • clearExecutionTimeMs

      public Service.TraceInfo.Builder clearExecutionTimeMs()
       Unix timestamp of the duration of the trace in milliseconds.
       
      optional int64 execution_time_ms = 4;
      Returns:
      This builder for chaining.
    • hasStatus

      public boolean hasStatus()
       Overall status of the operation being traced (OK, error, etc.).
       
      optional .mlflow.TraceStatus status = 5;
      Specified by:
      hasStatus in interface Service.TraceInfoOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public Service.TraceStatus getStatus()
       Overall status of the operation being traced (OK, error, etc.).
       
      optional .mlflow.TraceStatus status = 5;
      Specified by:
      getStatus in interface Service.TraceInfoOrBuilder
      Returns:
      The status.
    • setStatus

       Overall status of the operation being traced (OK, error, etc.).
       
      optional .mlflow.TraceStatus status = 5;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public Service.TraceInfo.Builder clearStatus()
       Overall status of the operation being traced (OK, error, etc.).
       
      optional .mlflow.TraceStatus status = 5;
      Returns:
      This builder for chaining.
    • getRequestMetadataList

      public List<Service.TraceRequestMetadata> getRequestMetadataList()
       Other trace metadata.
       
      repeated .mlflow.TraceRequestMetadata request_metadata = 6;
      Specified by:
      getRequestMetadataList in interface Service.TraceInfoOrBuilder
    • getRequestMetadataCount

      public int getRequestMetadataCount()
       Other trace metadata.
       
      repeated .mlflow.TraceRequestMetadata request_metadata = 6;
      Specified by:
      getRequestMetadataCount in interface Service.TraceInfoOrBuilder
    • getRequestMetadata

      public Service.TraceRequestMetadata getRequestMetadata(int index)
       Other trace metadata.
       
      repeated .mlflow.TraceRequestMetadata request_metadata = 6;
      Specified by:
      getRequestMetadata in interface Service.TraceInfoOrBuilder
    • setRequestMetadata

      public Service.TraceInfo.Builder setRequestMetadata(int index, Service.TraceRequestMetadata value)
       Other trace metadata.
       
      repeated .mlflow.TraceRequestMetadata request_metadata = 6;
    • setRequestMetadata

      public Service.TraceInfo.Builder setRequestMetadata(int index, Service.TraceRequestMetadata.Builder builderForValue)
       Other trace metadata.
       
      repeated .mlflow.TraceRequestMetadata request_metadata = 6;
    • addRequestMetadata

      public Service.TraceInfo.Builder addRequestMetadata(Service.TraceRequestMetadata value)
       Other trace metadata.
       
      repeated .mlflow.TraceRequestMetadata request_metadata = 6;
    • addRequestMetadata

      public Service.TraceInfo.Builder addRequestMetadata(int index, Service.TraceRequestMetadata value)
       Other trace metadata.
       
      repeated .mlflow.TraceRequestMetadata request_metadata = 6;
    • addRequestMetadata

      public Service.TraceInfo.Builder addRequestMetadata(Service.TraceRequestMetadata.Builder builderForValue)
       Other trace metadata.
       
      repeated .mlflow.TraceRequestMetadata request_metadata = 6;
    • addRequestMetadata

      public Service.TraceInfo.Builder addRequestMetadata(int index, Service.TraceRequestMetadata.Builder builderForValue)
       Other trace metadata.
       
      repeated .mlflow.TraceRequestMetadata request_metadata = 6;
    • addAllRequestMetadata

      public Service.TraceInfo.Builder addAllRequestMetadata(Iterable<? extends Service.TraceRequestMetadata> values)
       Other trace metadata.
       
      repeated .mlflow.TraceRequestMetadata request_metadata = 6;
    • clearRequestMetadata

      public Service.TraceInfo.Builder clearRequestMetadata()
       Other trace metadata.
       
      repeated .mlflow.TraceRequestMetadata request_metadata = 6;
    • removeRequestMetadata

      public Service.TraceInfo.Builder removeRequestMetadata(int index)
       Other trace metadata.
       
      repeated .mlflow.TraceRequestMetadata request_metadata = 6;
    • getRequestMetadataBuilder

      public Service.TraceRequestMetadata.Builder getRequestMetadataBuilder(int index)
       Other trace metadata.
       
      repeated .mlflow.TraceRequestMetadata request_metadata = 6;
    • getRequestMetadataOrBuilder

      public Service.TraceRequestMetadataOrBuilder getRequestMetadataOrBuilder(int index)
       Other trace metadata.
       
      repeated .mlflow.TraceRequestMetadata request_metadata = 6;
      Specified by:
      getRequestMetadataOrBuilder in interface Service.TraceInfoOrBuilder
    • getRequestMetadataOrBuilderList

      public List<? extends Service.TraceRequestMetadataOrBuilder> getRequestMetadataOrBuilderList()
       Other trace metadata.
       
      repeated .mlflow.TraceRequestMetadata request_metadata = 6;
      Specified by:
      getRequestMetadataOrBuilderList in interface Service.TraceInfoOrBuilder
    • addRequestMetadataBuilder

      public Service.TraceRequestMetadata.Builder addRequestMetadataBuilder()
       Other trace metadata.
       
      repeated .mlflow.TraceRequestMetadata request_metadata = 6;
    • addRequestMetadataBuilder

      public Service.TraceRequestMetadata.Builder addRequestMetadataBuilder(int index)
       Other trace metadata.
       
      repeated .mlflow.TraceRequestMetadata request_metadata = 6;
    • getRequestMetadataBuilderList

      public List<Service.TraceRequestMetadata.Builder> getRequestMetadataBuilderList()
       Other trace metadata.
       
      repeated .mlflow.TraceRequestMetadata request_metadata = 6;
    • getTagsList

      public List<Service.TraceTag> getTagsList()
       Tags for the trace.
       
      repeated .mlflow.TraceTag tags = 7;
      Specified by:
      getTagsList in interface Service.TraceInfoOrBuilder
    • getTagsCount

      public int getTagsCount()
       Tags for the trace.
       
      repeated .mlflow.TraceTag tags = 7;
      Specified by:
      getTagsCount in interface Service.TraceInfoOrBuilder
    • getTags

      public Service.TraceTag getTags(int index)
       Tags for the trace.
       
      repeated .mlflow.TraceTag tags = 7;
      Specified by:
      getTags in interface Service.TraceInfoOrBuilder
    • setTags

      public Service.TraceInfo.Builder setTags(int index, Service.TraceTag value)
       Tags for the trace.
       
      repeated .mlflow.TraceTag tags = 7;
    • setTags

      public Service.TraceInfo.Builder setTags(int index, Service.TraceTag.Builder builderForValue)
       Tags for the trace.
       
      repeated .mlflow.TraceTag tags = 7;
    • addTags

       Tags for the trace.
       
      repeated .mlflow.TraceTag tags = 7;
    • addTags

      public Service.TraceInfo.Builder addTags(int index, Service.TraceTag value)
       Tags for the trace.
       
      repeated .mlflow.TraceTag tags = 7;
    • addTags

      public Service.TraceInfo.Builder addTags(Service.TraceTag.Builder builderForValue)
       Tags for the trace.
       
      repeated .mlflow.TraceTag tags = 7;
    • addTags

      public Service.TraceInfo.Builder addTags(int index, Service.TraceTag.Builder builderForValue)
       Tags for the trace.
       
      repeated .mlflow.TraceTag tags = 7;
    • addAllTags

      public Service.TraceInfo.Builder addAllTags(Iterable<? extends Service.TraceTag> values)
       Tags for the trace.
       
      repeated .mlflow.TraceTag tags = 7;
    • clearTags

      public Service.TraceInfo.Builder clearTags()
       Tags for the trace.
       
      repeated .mlflow.TraceTag tags = 7;
    • removeTags

      public Service.TraceInfo.Builder removeTags(int index)
       Tags for the trace.
       
      repeated .mlflow.TraceTag tags = 7;
    • getTagsBuilder

      public Service.TraceTag.Builder getTagsBuilder(int index)
       Tags for the trace.
       
      repeated .mlflow.TraceTag tags = 7;
    • getTagsOrBuilder

      public Service.TraceTagOrBuilder getTagsOrBuilder(int index)
       Tags for the trace.
       
      repeated .mlflow.TraceTag tags = 7;
      Specified by:
      getTagsOrBuilder in interface Service.TraceInfoOrBuilder
    • getTagsOrBuilderList

      public List<? extends Service.TraceTagOrBuilder> getTagsOrBuilderList()
       Tags for the trace.
       
      repeated .mlflow.TraceTag tags = 7;
      Specified by:
      getTagsOrBuilderList in interface Service.TraceInfoOrBuilder
    • addTagsBuilder

      public Service.TraceTag.Builder addTagsBuilder()
       Tags for the trace.
       
      repeated .mlflow.TraceTag tags = 7;
    • addTagsBuilder

      public Service.TraceTag.Builder addTagsBuilder(int index)
       Tags for the trace.
       
      repeated .mlflow.TraceTag tags = 7;
    • getTagsBuilderList

      public List<Service.TraceTag.Builder> getTagsBuilderList()
       Tags for the trace.
       
      repeated .mlflow.TraceTag tags = 7;
    • setUnknownFields

      public final Service.TraceInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Service.TraceInfo.Builder>
    • mergeUnknownFields

      public final Service.TraceInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Service.TraceInfo.Builder>