Class Service.TraceInfo.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.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 Detail

      • 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,
                                                  java.lang.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,
                                                          java.lang.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,
                                                          java.lang.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>
      • 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 java.io.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:
        java.io.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 java.lang.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​(java.lang.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 java.lang.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​(java.lang.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.
      • setStatus

        public Service.TraceInfo.Builder setStatus​(Service.TraceStatus value)
         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.
      • 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;
      • 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 java.util.List<Service.TraceRequestMetadata.Builder> getRequestMetadataBuilderList()
         Other trace metadata.
         
        repeated .mlflow.TraceRequestMetadata request_metadata = 6;
      • 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;
      • 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 java.util.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>