Class ModelRegistry.SearchModelVersions.Builder

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

public static final class ModelRegistry.SearchModelVersions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ModelRegistry.SearchModelVersions.Builder> implements ModelRegistry.SearchModelVersionsOrBuilder
Protobuf type mlflow.SearchModelVersions
  • 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<ModelRegistry.SearchModelVersions.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<ModelRegistry.SearchModelVersions.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<ModelRegistry.SearchModelVersions.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ModelRegistry.SearchModelVersions 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<ModelRegistry.SearchModelVersions.Builder>
    • setField

      public ModelRegistry.SearchModelVersions.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<ModelRegistry.SearchModelVersions.Builder>
    • clearField

      public ModelRegistry.SearchModelVersions.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<ModelRegistry.SearchModelVersions.Builder>
    • clearOneof

      public ModelRegistry.SearchModelVersions.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<ModelRegistry.SearchModelVersions.Builder>
    • setRepeatedField

      public ModelRegistry.SearchModelVersions.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<ModelRegistry.SearchModelVersions.Builder>
    • addRepeatedField

      public ModelRegistry.SearchModelVersions.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<ModelRegistry.SearchModelVersions.Builder>
    • mergeFrom

      public ModelRegistry.SearchModelVersions.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<ModelRegistry.SearchModelVersions.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<ModelRegistry.SearchModelVersions.Builder>
    • mergeFrom

      public ModelRegistry.SearchModelVersions.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<ModelRegistry.SearchModelVersions.Builder>
      Throws:
      IOException
    • hasFilter

      public boolean hasFilter()
       String filter condition, like "name='my-model-name'". Must be a single boolean condition,
       with string values wrapped in single quotes.
       
      optional string filter = 1;
      Specified by:
      hasFilter in interface ModelRegistry.SearchModelVersionsOrBuilder
      Returns:
      Whether the filter field is set.
    • getFilter

      public String getFilter()
       String filter condition, like "name='my-model-name'". Must be a single boolean condition,
       with string values wrapped in single quotes.
       
      optional string filter = 1;
      Specified by:
      getFilter in interface ModelRegistry.SearchModelVersionsOrBuilder
      Returns:
      The filter.
    • getFilterBytes

      public com.google.protobuf.ByteString getFilterBytes()
       String filter condition, like "name='my-model-name'". Must be a single boolean condition,
       with string values wrapped in single quotes.
       
      optional string filter = 1;
      Specified by:
      getFilterBytes in interface ModelRegistry.SearchModelVersionsOrBuilder
      Returns:
      The bytes for filter.
    • setFilter

       String filter condition, like "name='my-model-name'". Must be a single boolean condition,
       with string values wrapped in single quotes.
       
      optional string filter = 1;
      Parameters:
      value - The filter to set.
      Returns:
      This builder for chaining.
    • clearFilter

       String filter condition, like "name='my-model-name'". Must be a single boolean condition,
       with string values wrapped in single quotes.
       
      optional string filter = 1;
      Returns:
      This builder for chaining.
    • setFilterBytes

      public ModelRegistry.SearchModelVersions.Builder setFilterBytes(com.google.protobuf.ByteString value)
       String filter condition, like "name='my-model-name'". Must be a single boolean condition,
       with string values wrapped in single quotes.
       
      optional string filter = 1;
      Parameters:
      value - The bytes for filter to set.
      Returns:
      This builder for chaining.
    • hasMaxResults

      public boolean hasMaxResults()
       Maximum number of models desired. Max threshold is 200K. Backends may choose a lower default
       value and maximum threshold.
       
      optional int64 max_results = 2 [default = 200000];
      Specified by:
      hasMaxResults in interface ModelRegistry.SearchModelVersionsOrBuilder
      Returns:
      Whether the maxResults field is set.
    • getMaxResults

      public long getMaxResults()
       Maximum number of models desired. Max threshold is 200K. Backends may choose a lower default
       value and maximum threshold.
       
      optional int64 max_results = 2 [default = 200000];
      Specified by:
      getMaxResults in interface ModelRegistry.SearchModelVersionsOrBuilder
      Returns:
      The maxResults.
    • setMaxResults

      public ModelRegistry.SearchModelVersions.Builder setMaxResults(long value)
       Maximum number of models desired. Max threshold is 200K. Backends may choose a lower default
       value and maximum threshold.
       
      optional int64 max_results = 2 [default = 200000];
      Parameters:
      value - The maxResults to set.
      Returns:
      This builder for chaining.
    • clearMaxResults

       Maximum number of models desired. Max threshold is 200K. Backends may choose a lower default
       value and maximum threshold.
       
      optional int64 max_results = 2 [default = 200000];
      Returns:
      This builder for chaining.
    • getOrderByList

      public com.google.protobuf.ProtocolStringList getOrderByList()
       List of columns to be ordered by including model name, version, stage with an
       optional "DESC" or "ASC" annotation, where "ASC" is the default.
       Tiebreaks are done by latest stage transition timestamp, followed by name ASC, followed by
       version DESC.
       
      repeated string order_by = 3;
      Specified by:
      getOrderByList in interface ModelRegistry.SearchModelVersionsOrBuilder
      Returns:
      A list containing the orderBy.
    • getOrderByCount

      public int getOrderByCount()
       List of columns to be ordered by including model name, version, stage with an
       optional "DESC" or "ASC" annotation, where "ASC" is the default.
       Tiebreaks are done by latest stage transition timestamp, followed by name ASC, followed by
       version DESC.
       
      repeated string order_by = 3;
      Specified by:
      getOrderByCount in interface ModelRegistry.SearchModelVersionsOrBuilder
      Returns:
      The count of orderBy.
    • getOrderBy

      public String getOrderBy(int index)
       List of columns to be ordered by including model name, version, stage with an
       optional "DESC" or "ASC" annotation, where "ASC" is the default.
       Tiebreaks are done by latest stage transition timestamp, followed by name ASC, followed by
       version DESC.
       
      repeated string order_by = 3;
      Specified by:
      getOrderBy in interface ModelRegistry.SearchModelVersionsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The orderBy at the given index.
    • getOrderByBytes

      public com.google.protobuf.ByteString getOrderByBytes(int index)
       List of columns to be ordered by including model name, version, stage with an
       optional "DESC" or "ASC" annotation, where "ASC" is the default.
       Tiebreaks are done by latest stage transition timestamp, followed by name ASC, followed by
       version DESC.
       
      repeated string order_by = 3;
      Specified by:
      getOrderByBytes in interface ModelRegistry.SearchModelVersionsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the orderBy at the given index.
    • setOrderBy

      public ModelRegistry.SearchModelVersions.Builder setOrderBy(int index, String value)
       List of columns to be ordered by including model name, version, stage with an
       optional "DESC" or "ASC" annotation, where "ASC" is the default.
       Tiebreaks are done by latest stage transition timestamp, followed by name ASC, followed by
       version DESC.
       
      repeated string order_by = 3;
      Parameters:
      index - The index to set the value at.
      value - The orderBy to set.
      Returns:
      This builder for chaining.
    • addOrderBy

       List of columns to be ordered by including model name, version, stage with an
       optional "DESC" or "ASC" annotation, where "ASC" is the default.
       Tiebreaks are done by latest stage transition timestamp, followed by name ASC, followed by
       version DESC.
       
      repeated string order_by = 3;
      Parameters:
      value - The orderBy to add.
      Returns:
      This builder for chaining.
    • addAllOrderBy

       List of columns to be ordered by including model name, version, stage with an
       optional "DESC" or "ASC" annotation, where "ASC" is the default.
       Tiebreaks are done by latest stage transition timestamp, followed by name ASC, followed by
       version DESC.
       
      repeated string order_by = 3;
      Parameters:
      values - The orderBy to add.
      Returns:
      This builder for chaining.
    • clearOrderBy

       List of columns to be ordered by including model name, version, stage with an
       optional "DESC" or "ASC" annotation, where "ASC" is the default.
       Tiebreaks are done by latest stage transition timestamp, followed by name ASC, followed by
       version DESC.
       
      repeated string order_by = 3;
      Returns:
      This builder for chaining.
    • addOrderByBytes

      public ModelRegistry.SearchModelVersions.Builder addOrderByBytes(com.google.protobuf.ByteString value)
       List of columns to be ordered by including model name, version, stage with an
       optional "DESC" or "ASC" annotation, where "ASC" is the default.
       Tiebreaks are done by latest stage transition timestamp, followed by name ASC, followed by
       version DESC.
       
      repeated string order_by = 3;
      Parameters:
      value - The bytes of the orderBy to add.
      Returns:
      This builder for chaining.
    • hasPageToken

      public boolean hasPageToken()
       Pagination token to go to next page based on previous search query.
       
      optional string page_token = 4;
      Specified by:
      hasPageToken in interface ModelRegistry.SearchModelVersionsOrBuilder
      Returns:
      Whether the pageToken field is set.
    • getPageToken

      public String getPageToken()
       Pagination token to go to next page based on previous search query.
       
      optional string page_token = 4;
      Specified by:
      getPageToken in interface ModelRegistry.SearchModelVersionsOrBuilder
      Returns:
      The pageToken.
    • getPageTokenBytes

      public com.google.protobuf.ByteString getPageTokenBytes()
       Pagination token to go to next page based on previous search query.
       
      optional string page_token = 4;
      Specified by:
      getPageTokenBytes in interface ModelRegistry.SearchModelVersionsOrBuilder
      Returns:
      The bytes for pageToken.
    • setPageToken

       Pagination token to go to next page based on previous search query.
       
      optional string page_token = 4;
      Parameters:
      value - The pageToken to set.
      Returns:
      This builder for chaining.
    • clearPageToken

       Pagination token to go to next page based on previous search query.
       
      optional string page_token = 4;
      Returns:
      This builder for chaining.
    • setPageTokenBytes

      public ModelRegistry.SearchModelVersions.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
       Pagination token to go to next page based on previous search query.
       
      optional string page_token = 4;
      Parameters:
      value - The bytes for pageToken to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final ModelRegistry.SearchModelVersions.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<ModelRegistry.SearchModelVersions.Builder>
    • mergeUnknownFields

      public final ModelRegistry.SearchModelVersions.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<ModelRegistry.SearchModelVersions.Builder>