Class ReviewQueues.ReviewQueue.Builder

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

public static final class ReviewQueues.ReviewQueue.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ReviewQueues.ReviewQueue.Builder> implements ReviewQueues.ReviewQueueOrBuilder
 Full review-queue entity. `users` and `schema_ids` are the queue's
 association sets; `schema_ids` is empty for a USER queue (it resolves
 to all of the experiment's schemas at read time). Attached items are
 paged separately via ListReviewQueueItems.
 
Protobuf type mlflow.review_queues.ReviewQueue
  • 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<ReviewQueues.ReviewQueue.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<ReviewQueues.ReviewQueue.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<ReviewQueues.ReviewQueue.Builder>
    • getDefaultInstanceForType

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

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

      public ReviewQueues.ReviewQueue 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<ReviewQueues.ReviewQueue.Builder>
    • setField

      public ReviewQueues.ReviewQueue.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<ReviewQueues.ReviewQueue.Builder>
    • clearField

      public ReviewQueues.ReviewQueue.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<ReviewQueues.ReviewQueue.Builder>
    • clearOneof

      public ReviewQueues.ReviewQueue.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<ReviewQueues.ReviewQueue.Builder>
    • setRepeatedField

      public ReviewQueues.ReviewQueue.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<ReviewQueues.ReviewQueue.Builder>
    • addRepeatedField

      public ReviewQueues.ReviewQueue.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<ReviewQueues.ReviewQueue.Builder>
    • mergeFrom

      public ReviewQueues.ReviewQueue.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<ReviewQueues.ReviewQueue.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<ReviewQueues.ReviewQueue.Builder>
    • mergeFrom

      public ReviewQueues.ReviewQueue.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<ReviewQueues.ReviewQueue.Builder>
      Throws:
      IOException
    • hasQueueId

      public boolean hasQueueId()
       Server-generated identifier (prefix `rq-`).
       
      optional string queue_id = 1;
      Specified by:
      hasQueueId in interface ReviewQueues.ReviewQueueOrBuilder
      Returns:
      Whether the queueId field is set.
    • getQueueId

      public String getQueueId()
       Server-generated identifier (prefix `rq-`).
       
      optional string queue_id = 1;
      Specified by:
      getQueueId in interface ReviewQueues.ReviewQueueOrBuilder
      Returns:
      The queueId.
    • getQueueIdBytes

      public com.google.protobuf.ByteString getQueueIdBytes()
       Server-generated identifier (prefix `rq-`).
       
      optional string queue_id = 1;
      Specified by:
      getQueueIdBytes in interface ReviewQueues.ReviewQueueOrBuilder
      Returns:
      The bytes for queueId.
    • setQueueId

      public ReviewQueues.ReviewQueue.Builder setQueueId(String value)
       Server-generated identifier (prefix `rq-`).
       
      optional string queue_id = 1;
      Parameters:
      value - The queueId to set.
      Returns:
      This builder for chaining.
    • clearQueueId

      public ReviewQueues.ReviewQueue.Builder clearQueueId()
       Server-generated identifier (prefix `rq-`).
       
      optional string queue_id = 1;
      Returns:
      This builder for chaining.
    • setQueueIdBytes

      public ReviewQueues.ReviewQueue.Builder setQueueIdBytes(com.google.protobuf.ByteString value)
       Server-generated identifier (prefix `rq-`).
       
      optional string queue_id = 1;
      Parameters:
      value - The bytes for queueId to set.
      Returns:
      This builder for chaining.
    • hasExperimentId

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

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

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

      public ReviewQueues.ReviewQueue.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 ReviewQueues.ReviewQueue.Builder clearExperimentId()
       Parent experiment ID.
       
      optional string experiment_id = 2;
      Returns:
      This builder for chaining.
    • setExperimentIdBytes

      public ReviewQueues.ReviewQueue.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()
       Queue name. For a USER queue this is the (normalized) user identifier.
       
      optional string name = 3;
      Specified by:
      hasName in interface ReviewQueues.ReviewQueueOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Queue name. For a USER queue this is the (normalized) user identifier.
       
      optional string name = 3;
      Specified by:
      getName in interface ReviewQueues.ReviewQueueOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Queue name. For a USER queue this is the (normalized) user identifier.
       
      optional string name = 3;
      Specified by:
      getNameBytes in interface ReviewQueues.ReviewQueueOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ReviewQueues.ReviewQueue.Builder setName(String value)
       Queue name. For a USER queue this is the (normalized) user identifier.
       
      optional string name = 3;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Queue name. For a USER queue this is the (normalized) user identifier.
       
      optional string name = 3;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ReviewQueues.ReviewQueue.Builder setNameBytes(com.google.protobuf.ByteString value)
       Queue name. For a USER queue this is the (normalized) user identifier.
       
      optional string name = 3;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasQueueType

      public boolean hasQueueType()
      optional .mlflow.review_queues.ReviewQueueType queue_type = 4;
      Specified by:
      hasQueueType in interface ReviewQueues.ReviewQueueOrBuilder
      Returns:
      Whether the queueType field is set.
    • getQueueType

      public ReviewQueues.ReviewQueueType getQueueType()
      optional .mlflow.review_queues.ReviewQueueType queue_type = 4;
      Specified by:
      getQueueType in interface ReviewQueues.ReviewQueueOrBuilder
      Returns:
      The queueType.
    • setQueueType

      optional .mlflow.review_queues.ReviewQueueType queue_type = 4;
      Parameters:
      value - The queueType to set.
      Returns:
      This builder for chaining.
    • clearQueueType

      public ReviewQueues.ReviewQueue.Builder clearQueueType()
      optional .mlflow.review_queues.ReviewQueueType queue_type = 4;
      Returns:
      This builder for chaining.
    • hasCreatedBy

      public boolean hasCreatedBy()
       The queue's owner. On an authenticated server this is server-stamped to the
       creating user and is the basis for owner-level authorization (an EDIT user
       may manage the queues they own); it can be reassigned (MANAGE-only) via
       UpdateReviewQueue's `new_owner`. On a no-auth server it is meaningless and
       may be unset. For a USER queue it is the assigned user (attribution only).
       
      optional string created_by = 5;
      Specified by:
      hasCreatedBy in interface ReviewQueues.ReviewQueueOrBuilder
      Returns:
      Whether the createdBy field is set.
    • getCreatedBy

      public String getCreatedBy()
       The queue's owner. On an authenticated server this is server-stamped to the
       creating user and is the basis for owner-level authorization (an EDIT user
       may manage the queues they own); it can be reassigned (MANAGE-only) via
       UpdateReviewQueue's `new_owner`. On a no-auth server it is meaningless and
       may be unset. For a USER queue it is the assigned user (attribution only).
       
      optional string created_by = 5;
      Specified by:
      getCreatedBy in interface ReviewQueues.ReviewQueueOrBuilder
      Returns:
      The createdBy.
    • getCreatedByBytes

      public com.google.protobuf.ByteString getCreatedByBytes()
       The queue's owner. On an authenticated server this is server-stamped to the
       creating user and is the basis for owner-level authorization (an EDIT user
       may manage the queues they own); it can be reassigned (MANAGE-only) via
       UpdateReviewQueue's `new_owner`. On a no-auth server it is meaningless and
       may be unset. For a USER queue it is the assigned user (attribution only).
       
      optional string created_by = 5;
      Specified by:
      getCreatedByBytes in interface ReviewQueues.ReviewQueueOrBuilder
      Returns:
      The bytes for createdBy.
    • setCreatedBy

      public ReviewQueues.ReviewQueue.Builder setCreatedBy(String value)
       The queue's owner. On an authenticated server this is server-stamped to the
       creating user and is the basis for owner-level authorization (an EDIT user
       may manage the queues they own); it can be reassigned (MANAGE-only) via
       UpdateReviewQueue's `new_owner`. On a no-auth server it is meaningless and
       may be unset. For a USER queue it is the assigned user (attribution only).
       
      optional string created_by = 5;
      Parameters:
      value - The createdBy to set.
      Returns:
      This builder for chaining.
    • clearCreatedBy

      public ReviewQueues.ReviewQueue.Builder clearCreatedBy()
       The queue's owner. On an authenticated server this is server-stamped to the
       creating user and is the basis for owner-level authorization (an EDIT user
       may manage the queues they own); it can be reassigned (MANAGE-only) via
       UpdateReviewQueue's `new_owner`. On a no-auth server it is meaningless and
       may be unset. For a USER queue it is the assigned user (attribution only).
       
      optional string created_by = 5;
      Returns:
      This builder for chaining.
    • setCreatedByBytes

      public ReviewQueues.ReviewQueue.Builder setCreatedByBytes(com.google.protobuf.ByteString value)
       The queue's owner. On an authenticated server this is server-stamped to the
       creating user and is the basis for owner-level authorization (an EDIT user
       may manage the queues they own); it can be reassigned (MANAGE-only) via
       UpdateReviewQueue's `new_owner`. On a no-auth server it is meaningless and
       may be unset. For a USER queue it is the assigned user (attribution only).
       
      optional string created_by = 5;
      Parameters:
      value - The bytes for createdBy to set.
      Returns:
      This builder for chaining.
    • hasCreationTimeMs

      public boolean hasCreationTimeMs()
      optional int64 creation_time_ms = 6;
      Specified by:
      hasCreationTimeMs in interface ReviewQueues.ReviewQueueOrBuilder
      Returns:
      Whether the creationTimeMs field is set.
    • getCreationTimeMs

      public long getCreationTimeMs()
      optional int64 creation_time_ms = 6;
      Specified by:
      getCreationTimeMs in interface ReviewQueues.ReviewQueueOrBuilder
      Returns:
      The creationTimeMs.
    • setCreationTimeMs

      public ReviewQueues.ReviewQueue.Builder setCreationTimeMs(long value)
      optional int64 creation_time_ms = 6;
      Parameters:
      value - The creationTimeMs to set.
      Returns:
      This builder for chaining.
    • clearCreationTimeMs

      public ReviewQueues.ReviewQueue.Builder clearCreationTimeMs()
      optional int64 creation_time_ms = 6;
      Returns:
      This builder for chaining.
    • hasLastUpdateTimeMs

      public boolean hasLastUpdateTimeMs()
      optional int64 last_update_time_ms = 7;
      Specified by:
      hasLastUpdateTimeMs in interface ReviewQueues.ReviewQueueOrBuilder
      Returns:
      Whether the lastUpdateTimeMs field is set.
    • getLastUpdateTimeMs

      public long getLastUpdateTimeMs()
      optional int64 last_update_time_ms = 7;
      Specified by:
      getLastUpdateTimeMs in interface ReviewQueues.ReviewQueueOrBuilder
      Returns:
      The lastUpdateTimeMs.
    • setLastUpdateTimeMs

      public ReviewQueues.ReviewQueue.Builder setLastUpdateTimeMs(long value)
      optional int64 last_update_time_ms = 7;
      Parameters:
      value - The lastUpdateTimeMs to set.
      Returns:
      This builder for chaining.
    • clearLastUpdateTimeMs

      public ReviewQueues.ReviewQueue.Builder clearLastUpdateTimeMs()
      optional int64 last_update_time_ms = 7;
      Returns:
      This builder for chaining.
    • getUsersList

      public com.google.protobuf.ProtocolStringList getUsersList()
       Assigned-user pool (0..N; exactly one == name for a USER queue).
       
      repeated string users = 8;
      Specified by:
      getUsersList in interface ReviewQueues.ReviewQueueOrBuilder
      Returns:
      A list containing the users.
    • getUsersCount

      public int getUsersCount()
       Assigned-user pool (0..N; exactly one == name for a USER queue).
       
      repeated string users = 8;
      Specified by:
      getUsersCount in interface ReviewQueues.ReviewQueueOrBuilder
      Returns:
      The count of users.
    • getUsers

      public String getUsers(int index)
       Assigned-user pool (0..N; exactly one == name for a USER queue).
       
      repeated string users = 8;
      Specified by:
      getUsers in interface ReviewQueues.ReviewQueueOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The users at the given index.
    • getUsersBytes

      public com.google.protobuf.ByteString getUsersBytes(int index)
       Assigned-user pool (0..N; exactly one == name for a USER queue).
       
      repeated string users = 8;
      Specified by:
      getUsersBytes in interface ReviewQueues.ReviewQueueOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the users at the given index.
    • setUsers

      public ReviewQueues.ReviewQueue.Builder setUsers(int index, String value)
       Assigned-user pool (0..N; exactly one == name for a USER queue).
       
      repeated string users = 8;
      Parameters:
      index - The index to set the value at.
      value - The users to set.
      Returns:
      This builder for chaining.
    • addUsers

      public ReviewQueues.ReviewQueue.Builder addUsers(String value)
       Assigned-user pool (0..N; exactly one == name for a USER queue).
       
      repeated string users = 8;
      Parameters:
      value - The users to add.
      Returns:
      This builder for chaining.
    • addAllUsers

      public ReviewQueues.ReviewQueue.Builder addAllUsers(Iterable<String> values)
       Assigned-user pool (0..N; exactly one == name for a USER queue).
       
      repeated string users = 8;
      Parameters:
      values - The users to add.
      Returns:
      This builder for chaining.
    • clearUsers

      public ReviewQueues.ReviewQueue.Builder clearUsers()
       Assigned-user pool (0..N; exactly one == name for a USER queue).
       
      repeated string users = 8;
      Returns:
      This builder for chaining.
    • addUsersBytes

      public ReviewQueues.ReviewQueue.Builder addUsersBytes(com.google.protobuf.ByteString value)
       Assigned-user pool (0..N; exactly one == name for a USER queue).
       
      repeated string users = 8;
      Parameters:
      value - The bytes of the users to add.
      Returns:
      This builder for chaining.
    • getSchemaIdsList

      public com.google.protobuf.ProtocolStringList getSchemaIdsList()
       Attached label-schema ids (the chosen subset for a CUSTOM queue;
       empty for a USER queue).
       
      repeated string schema_ids = 9;
      Specified by:
      getSchemaIdsList in interface ReviewQueues.ReviewQueueOrBuilder
      Returns:
      A list containing the schemaIds.
    • getSchemaIdsCount

      public int getSchemaIdsCount()
       Attached label-schema ids (the chosen subset for a CUSTOM queue;
       empty for a USER queue).
       
      repeated string schema_ids = 9;
      Specified by:
      getSchemaIdsCount in interface ReviewQueues.ReviewQueueOrBuilder
      Returns:
      The count of schemaIds.
    • getSchemaIds

      public String getSchemaIds(int index)
       Attached label-schema ids (the chosen subset for a CUSTOM queue;
       empty for a USER queue).
       
      repeated string schema_ids = 9;
      Specified by:
      getSchemaIds in interface ReviewQueues.ReviewQueueOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The schemaIds at the given index.
    • getSchemaIdsBytes

      public com.google.protobuf.ByteString getSchemaIdsBytes(int index)
       Attached label-schema ids (the chosen subset for a CUSTOM queue;
       empty for a USER queue).
       
      repeated string schema_ids = 9;
      Specified by:
      getSchemaIdsBytes in interface ReviewQueues.ReviewQueueOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the schemaIds at the given index.
    • setSchemaIds

      public ReviewQueues.ReviewQueue.Builder setSchemaIds(int index, String value)
       Attached label-schema ids (the chosen subset for a CUSTOM queue;
       empty for a USER queue).
       
      repeated string schema_ids = 9;
      Parameters:
      index - The index to set the value at.
      value - The schemaIds to set.
      Returns:
      This builder for chaining.
    • addSchemaIds

      public ReviewQueues.ReviewQueue.Builder addSchemaIds(String value)
       Attached label-schema ids (the chosen subset for a CUSTOM queue;
       empty for a USER queue).
       
      repeated string schema_ids = 9;
      Parameters:
      value - The schemaIds to add.
      Returns:
      This builder for chaining.
    • addAllSchemaIds

      public ReviewQueues.ReviewQueue.Builder addAllSchemaIds(Iterable<String> values)
       Attached label-schema ids (the chosen subset for a CUSTOM queue;
       empty for a USER queue).
       
      repeated string schema_ids = 9;
      Parameters:
      values - The schemaIds to add.
      Returns:
      This builder for chaining.
    • clearSchemaIds

      public ReviewQueues.ReviewQueue.Builder clearSchemaIds()
       Attached label-schema ids (the chosen subset for a CUSTOM queue;
       empty for a USER queue).
       
      repeated string schema_ids = 9;
      Returns:
      This builder for chaining.
    • addSchemaIdsBytes

      public ReviewQueues.ReviewQueue.Builder addSchemaIdsBytes(com.google.protobuf.ByteString value)
       Attached label-schema ids (the chosen subset for a CUSTOM queue;
       empty for a USER queue).
       
      repeated string schema_ids = 9;
      Parameters:
      value - The bytes of the schemaIds to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final ReviewQueues.ReviewQueue.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<ReviewQueues.ReviewQueue.Builder>
    • mergeUnknownFields

      public final ReviewQueues.ReviewQueue.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<ReviewQueues.ReviewQueue.Builder>