Class LabelSchemas.LabelSchema.Builder

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

public static final class LabelSchemas.LabelSchema.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LabelSchemas.LabelSchema.Builder> implements LabelSchemas.LabelSchemaOrBuilder
 Full label schema entity.
 
Protobuf type mlflow.label_schemas.LabelSchema
  • 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<LabelSchemas.LabelSchema.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<LabelSchemas.LabelSchema.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<LabelSchemas.LabelSchema.Builder>
    • getDefaultInstanceForType

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

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

      public LabelSchemas.LabelSchema buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<LabelSchemas.LabelSchema.Builder>
    • setField

      public LabelSchemas.LabelSchema.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<LabelSchemas.LabelSchema.Builder>
    • clearField

      public LabelSchemas.LabelSchema.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<LabelSchemas.LabelSchema.Builder>
    • clearOneof

      public LabelSchemas.LabelSchema.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<LabelSchemas.LabelSchema.Builder>
    • setRepeatedField

      public LabelSchemas.LabelSchema.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<LabelSchemas.LabelSchema.Builder>
    • addRepeatedField

      public LabelSchemas.LabelSchema.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<LabelSchemas.LabelSchema.Builder>
    • mergeFrom

      public LabelSchemas.LabelSchema.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<LabelSchemas.LabelSchema.Builder>
    • mergeFrom

    • isInitialized

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

      public LabelSchemas.LabelSchema.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<LabelSchemas.LabelSchema.Builder>
      Throws:
      IOException
    • hasSchemaId

      public boolean hasSchemaId()
       Server-generated identifier.
       
      optional string schema_id = 1;
      Specified by:
      hasSchemaId in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      Whether the schemaId field is set.
    • getSchemaId

      public String getSchemaId()
       Server-generated identifier.
       
      optional string schema_id = 1;
      Specified by:
      getSchemaId in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      The schemaId.
    • getSchemaIdBytes

      public com.google.protobuf.ByteString getSchemaIdBytes()
       Server-generated identifier.
       
      optional string schema_id = 1;
      Specified by:
      getSchemaIdBytes in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      The bytes for schemaId.
    • setSchemaId

      public LabelSchemas.LabelSchema.Builder setSchemaId(String value)
       Server-generated identifier.
       
      optional string schema_id = 1;
      Parameters:
      value - The schemaId to set.
      Returns:
      This builder for chaining.
    • clearSchemaId

      public LabelSchemas.LabelSchema.Builder clearSchemaId()
       Server-generated identifier.
       
      optional string schema_id = 1;
      Returns:
      This builder for chaining.
    • setSchemaIdBytes

      public LabelSchemas.LabelSchema.Builder setSchemaIdBytes(com.google.protobuf.ByteString value)
       Server-generated identifier.
       
      optional string schema_id = 1;
      Parameters:
      value - The bytes for schemaId to set.
      Returns:
      This builder for chaining.
    • hasExperimentId

      public boolean hasExperimentId()
       Parent experiment ID.
       
      optional string experiment_id = 2;
      Specified by:
      hasExperimentId in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      Whether the experimentId field is set.
    • getExperimentId

      public String getExperimentId()
       Parent experiment ID.
       
      optional string experiment_id = 2;
      Specified by:
      getExperimentId in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      The experimentId.
    • getExperimentIdBytes

      public com.google.protobuf.ByteString getExperimentIdBytes()
       Parent experiment ID.
       
      optional string experiment_id = 2;
      Specified by:
      getExperimentIdBytes in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      The bytes for experimentId.
    • setExperimentId

      public LabelSchemas.LabelSchema.Builder setExperimentId(String value)
       Parent experiment ID.
       
      optional string experiment_id = 2;
      Parameters:
      value - The experimentId to set.
      Returns:
      This builder for chaining.
    • clearExperimentId

      public LabelSchemas.LabelSchema.Builder clearExperimentId()
       Parent experiment ID.
       
      optional string experiment_id = 2;
      Returns:
      This builder for chaining.
    • setExperimentIdBytes

      public LabelSchemas.LabelSchema.Builder setExperimentIdBytes(com.google.protobuf.ByteString value)
       Parent experiment ID.
       
      optional string experiment_id = 2;
      Parameters:
      value - The bytes for experimentId to set.
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       Schema name (1-256 chars; unique within experiment). Free text shown
       to reviewers as the label prompt and used as the assessment key.
       
      optional string name = 3;
      Specified by:
      hasName in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Schema name (1-256 chars; unique within experiment). Free text shown
       to reviewers as the label prompt and used as the assessment key.
       
      optional string name = 3;
      Specified by:
      getName in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Schema name (1-256 chars; unique within experiment). Free text shown
       to reviewers as the label prompt and used as the assessment key.
       
      optional string name = 3;
      Specified by:
      getNameBytes in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      The bytes for name.
    • setName

      public LabelSchemas.LabelSchema.Builder setName(String value)
       Schema name (1-256 chars; unique within experiment). Free text shown
       to reviewers as the label prompt and used as the assessment key.
       
      optional string name = 3;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Schema name (1-256 chars; unique within experiment). Free text shown
       to reviewers as the label prompt and used as the assessment key.
       
      optional string name = 3;
      Returns:
      This builder for chaining.
    • setNameBytes

      public LabelSchemas.LabelSchema.Builder setNameBytes(com.google.protobuf.ByteString value)
       Schema name (1-256 chars; unique within experiment). Free text shown
       to reviewers as the label prompt and used as the assessment key.
       
      optional string name = 3;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasType

      public boolean hasType()
      optional .mlflow.label_schemas.LabelSchemaType type = 4;
      Specified by:
      hasType in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public LabelSchemas.LabelSchemaType getType()
      optional .mlflow.label_schemas.LabelSchemaType type = 4;
      Specified by:
      getType in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      The type.
    • setType

      optional .mlflow.label_schemas.LabelSchemaType type = 4;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      optional .mlflow.label_schemas.LabelSchemaType type = 4;
      Returns:
      This builder for chaining.
    • hasInstruction

      public boolean hasInstruction()
       Optional supplementary guidance, <=1000 chars.
       
      optional string instruction = 6;
      Specified by:
      hasInstruction in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      Whether the instruction field is set.
    • getInstruction

      public String getInstruction()
       Optional supplementary guidance, <=1000 chars.
       
      optional string instruction = 6;
      Specified by:
      getInstruction in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      The instruction.
    • getInstructionBytes

      public com.google.protobuf.ByteString getInstructionBytes()
       Optional supplementary guidance, <=1000 chars.
       
      optional string instruction = 6;
      Specified by:
      getInstructionBytes in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      The bytes for instruction.
    • setInstruction

      public LabelSchemas.LabelSchema.Builder setInstruction(String value)
       Optional supplementary guidance, <=1000 chars.
       
      optional string instruction = 6;
      Parameters:
      value - The instruction to set.
      Returns:
      This builder for chaining.
    • clearInstruction

      public LabelSchemas.LabelSchema.Builder clearInstruction()
       Optional supplementary guidance, <=1000 chars.
       
      optional string instruction = 6;
      Returns:
      This builder for chaining.
    • setInstructionBytes

      public LabelSchemas.LabelSchema.Builder setInstructionBytes(com.google.protobuf.ByteString value)
       Optional supplementary guidance, <=1000 chars.
       
      optional string instruction = 6;
      Parameters:
      value - The bytes for instruction to set.
      Returns:
      This builder for chaining.
    • hasEnableComment

      public boolean hasEnableComment()
       UI hint: whether the widget renders a free-form comment input.
       
      optional bool enable_comment = 7;
      Specified by:
      hasEnableComment in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      Whether the enableComment field is set.
    • getEnableComment

      public boolean getEnableComment()
       UI hint: whether the widget renders a free-form comment input.
       
      optional bool enable_comment = 7;
      Specified by:
      getEnableComment in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      The enableComment.
    • setEnableComment

      public LabelSchemas.LabelSchema.Builder setEnableComment(boolean value)
       UI hint: whether the widget renders a free-form comment input.
       
      optional bool enable_comment = 7;
      Parameters:
      value - The enableComment to set.
      Returns:
      This builder for chaining.
    • clearEnableComment

      public LabelSchemas.LabelSchema.Builder clearEnableComment()
       UI hint: whether the widget renders a free-form comment input.
       
      optional bool enable_comment = 7;
      Returns:
      This builder for chaining.
    • hasInput

      public boolean hasInput()
      optional .mlflow.label_schemas.LabelSchemaInput input = 8;
      Specified by:
      hasInput in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      Whether the input field is set.
    • getInput

      public LabelSchemas.LabelSchemaInput getInput()
      optional .mlflow.label_schemas.LabelSchemaInput input = 8;
      Specified by:
      getInput in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      The input.
    • setInput

      optional .mlflow.label_schemas.LabelSchemaInput input = 8;
    • setInput

      optional .mlflow.label_schemas.LabelSchemaInput input = 8;
    • mergeInput

      optional .mlflow.label_schemas.LabelSchemaInput input = 8;
    • clearInput

      public LabelSchemas.LabelSchema.Builder clearInput()
      optional .mlflow.label_schemas.LabelSchemaInput input = 8;
    • getInputBuilder

      public LabelSchemas.LabelSchemaInput.Builder getInputBuilder()
      optional .mlflow.label_schemas.LabelSchemaInput input = 8;
    • getInputOrBuilder

      public LabelSchemas.LabelSchemaInputOrBuilder getInputOrBuilder()
      optional .mlflow.label_schemas.LabelSchemaInput input = 8;
      Specified by:
      getInputOrBuilder in interface LabelSchemas.LabelSchemaOrBuilder
    • hasCreatedBy

      public boolean hasCreatedBy()
       User who created the schema (OSS-native).
       
      optional string created_by = 9;
      Specified by:
      hasCreatedBy in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      Whether the createdBy field is set.
    • getCreatedBy

      public String getCreatedBy()
       User who created the schema (OSS-native).
       
      optional string created_by = 9;
      Specified by:
      getCreatedBy in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      The createdBy.
    • getCreatedByBytes

      public com.google.protobuf.ByteString getCreatedByBytes()
       User who created the schema (OSS-native).
       
      optional string created_by = 9;
      Specified by:
      getCreatedByBytes in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      The bytes for createdBy.
    • setCreatedBy

      public LabelSchemas.LabelSchema.Builder setCreatedBy(String value)
       User who created the schema (OSS-native).
       
      optional string created_by = 9;
      Parameters:
      value - The createdBy to set.
      Returns:
      This builder for chaining.
    • clearCreatedBy

      public LabelSchemas.LabelSchema.Builder clearCreatedBy()
       User who created the schema (OSS-native).
       
      optional string created_by = 9;
      Returns:
      This builder for chaining.
    • setCreatedByBytes

      public LabelSchemas.LabelSchema.Builder setCreatedByBytes(com.google.protobuf.ByteString value)
       User who created the schema (OSS-native).
       
      optional string created_by = 9;
      Parameters:
      value - The bytes for createdBy to set.
      Returns:
      This builder for chaining.
    • hasCreatedAt

      public boolean hasCreatedAt()
       Creation timestamp in milliseconds since epoch.
       
      optional int64 created_at = 10;
      Specified by:
      hasCreatedAt in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      Whether the createdAt field is set.
    • getCreatedAt

      public long getCreatedAt()
       Creation timestamp in milliseconds since epoch.
       
      optional int64 created_at = 10;
      Specified by:
      getCreatedAt in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      The createdAt.
    • setCreatedAt

      public LabelSchemas.LabelSchema.Builder setCreatedAt(long value)
       Creation timestamp in milliseconds since epoch.
       
      optional int64 created_at = 10;
      Parameters:
      value - The createdAt to set.
      Returns:
      This builder for chaining.
    • clearCreatedAt

      public LabelSchemas.LabelSchema.Builder clearCreatedAt()
       Creation timestamp in milliseconds since epoch.
       
      optional int64 created_at = 10;
      Returns:
      This builder for chaining.
    • hasLastUpdatedAt

      public boolean hasLastUpdatedAt()
       Last update timestamp in milliseconds since epoch.
       
      optional int64 last_updated_at = 11;
      Specified by:
      hasLastUpdatedAt in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      Whether the lastUpdatedAt field is set.
    • getLastUpdatedAt

      public long getLastUpdatedAt()
       Last update timestamp in milliseconds since epoch.
       
      optional int64 last_updated_at = 11;
      Specified by:
      getLastUpdatedAt in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      The lastUpdatedAt.
    • setLastUpdatedAt

      public LabelSchemas.LabelSchema.Builder setLastUpdatedAt(long value)
       Last update timestamp in milliseconds since epoch.
       
      optional int64 last_updated_at = 11;
      Parameters:
      value - The lastUpdatedAt to set.
      Returns:
      This builder for chaining.
    • clearLastUpdatedAt

      public LabelSchemas.LabelSchema.Builder clearLastUpdatedAt()
       Last update timestamp in milliseconds since epoch.
       
      optional int64 last_updated_at = 11;
      Returns:
      This builder for chaining.
    • hasIsDefault

      public boolean hasIsDefault()
       Whether this is the experiment's protected default question: server-seeded,
       undeletable, and uneditable. Read-only to clients.
       
      optional bool is_default = 12;
      Specified by:
      hasIsDefault in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      Whether the isDefault field is set.
    • getIsDefault

      public boolean getIsDefault()
       Whether this is the experiment's protected default question: server-seeded,
       undeletable, and uneditable. Read-only to clients.
       
      optional bool is_default = 12;
      Specified by:
      getIsDefault in interface LabelSchemas.LabelSchemaOrBuilder
      Returns:
      The isDefault.
    • setIsDefault

      public LabelSchemas.LabelSchema.Builder setIsDefault(boolean value)
       Whether this is the experiment's protected default question: server-seeded,
       undeletable, and uneditable. Read-only to clients.
       
      optional bool is_default = 12;
      Parameters:
      value - The isDefault to set.
      Returns:
      This builder for chaining.
    • clearIsDefault

      public LabelSchemas.LabelSchema.Builder clearIsDefault()
       Whether this is the experiment's protected default question: server-seeded,
       undeletable, and uneditable. Read-only to clients.
       
      optional bool is_default = 12;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final LabelSchemas.LabelSchema.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<LabelSchemas.LabelSchema.Builder>
    • mergeUnknownFields

      public final LabelSchemas.LabelSchema.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<LabelSchemas.LabelSchema.Builder>