Class FetchModelsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FetchModelsResponse.Builder>
com.google.cloud.gkerecommender.v1.FetchModelsResponse.Builder
All Implemented Interfaces:
FetchModelsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
FetchModelsResponse

public static final class FetchModelsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<FetchModelsResponse.Builder> implements FetchModelsResponseOrBuilder
 Response message for
 [GkeInferenceQuickstart.FetchModels][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchModels].
 
Protobuf type google.cloud.gkerecommender.v1.FetchModelsResponse
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FetchModelsResponse.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.GeneratedMessage.Builder<FetchModelsResponse.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.GeneratedMessage.Builder<FetchModelsResponse.Builder>
    • getDefaultInstanceForType

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

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

      public FetchModelsResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

    • isInitialized

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

      public FetchModelsResponse.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<FetchModelsResponse.Builder>
      Throws:
      IOException
    • getModelsList

      public com.google.protobuf.ProtocolStringList getModelsList()
       Output only. List of available models. Open-source models follow the
       Huggingface Hub `owner/model_name` format.
       
      repeated string models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getModelsList in interface FetchModelsResponseOrBuilder
      Returns:
      A list containing the models.
    • getModelsCount

      public int getModelsCount()
       Output only. List of available models. Open-source models follow the
       Huggingface Hub `owner/model_name` format.
       
      repeated string models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getModelsCount in interface FetchModelsResponseOrBuilder
      Returns:
      The count of models.
    • getModels

      public String getModels(int index)
       Output only. List of available models. Open-source models follow the
       Huggingface Hub `owner/model_name` format.
       
      repeated string models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getModels in interface FetchModelsResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The models at the given index.
    • getModelsBytes

      public com.google.protobuf.ByteString getModelsBytes(int index)
       Output only. List of available models. Open-source models follow the
       Huggingface Hub `owner/model_name` format.
       
      repeated string models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getModelsBytes in interface FetchModelsResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the models at the given index.
    • setModels

      public FetchModelsResponse.Builder setModels(int index, String value)
       Output only. List of available models. Open-source models follow the
       Huggingface Hub `owner/model_name` format.
       
      repeated string models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The models to set.
      Returns:
      This builder for chaining.
    • addModels

      public FetchModelsResponse.Builder addModels(String value)
       Output only. List of available models. Open-source models follow the
       Huggingface Hub `owner/model_name` format.
       
      repeated string models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The models to add.
      Returns:
      This builder for chaining.
    • addAllModels

      public FetchModelsResponse.Builder addAllModels(Iterable<String> values)
       Output only. List of available models. Open-source models follow the
       Huggingface Hub `owner/model_name` format.
       
      repeated string models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The models to add.
      Returns:
      This builder for chaining.
    • clearModels

      public FetchModelsResponse.Builder clearModels()
       Output only. List of available models. Open-source models follow the
       Huggingface Hub `owner/model_name` format.
       
      repeated string models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • addModelsBytes

      public FetchModelsResponse.Builder addModelsBytes(com.google.protobuf.ByteString value)
       Output only. List of available models. Open-source models follow the
       Huggingface Hub `owner/model_name` format.
       
      repeated string models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes of the models to add.
      Returns:
      This builder for chaining.
    • getNextPageToken

      public String getNextPageToken()
       Output only. A token which may be sent as
       [page_token][FetchModelsResponse.page_token] in a subsequent
       `FetchModelsResponse` call to retrieve the next page of results.
       If this field is omitted or empty, then there are no more results to
       return.
       
      string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNextPageToken in interface FetchModelsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       Output only. A token which may be sent as
       [page_token][FetchModelsResponse.page_token] in a subsequent
       `FetchModelsResponse` call to retrieve the next page of results.
       If this field is omitted or empty, then there are no more results to
       return.
       
      string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNextPageTokenBytes in interface FetchModelsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public FetchModelsResponse.Builder setNextPageToken(String value)
       Output only. A token which may be sent as
       [page_token][FetchModelsResponse.page_token] in a subsequent
       `FetchModelsResponse` call to retrieve the next page of results.
       If this field is omitted or empty, then there are no more results to
       return.
       
      string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public FetchModelsResponse.Builder clearNextPageToken()
       Output only. A token which may be sent as
       [page_token][FetchModelsResponse.page_token] in a subsequent
       `FetchModelsResponse` call to retrieve the next page of results.
       If this field is omitted or empty, then there are no more results to
       return.
       
      string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public FetchModelsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       Output only. A token which may be sent as
       [page_token][FetchModelsResponse.page_token] in a subsequent
       `FetchModelsResponse` call to retrieve the next page of results.
       If this field is omitted or empty, then there are no more results to
       return.
       
      string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.