Class FetchModelsRequest.Builder

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

public static final class FetchModelsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<FetchModelsRequest.Builder> implements FetchModelsRequestOrBuilder
 Request message for
 [GkeInferenceQuickstart.FetchModels][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchModels].
 
Protobuf type google.cloud.gkerecommender.v1.FetchModelsRequest
  • 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<FetchModelsRequest.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<FetchModelsRequest.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<FetchModelsRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public FetchModelsRequest.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<FetchModelsRequest.Builder>
      Throws:
      IOException
    • hasPageSize

      public boolean hasPageSize()
       Optional. The target number of results to return in a single response.
       If not specified, a default value will be chosen by the service.
       Note that the response may include a partial list and a caller should
       only rely on the response's
       [next_page_token][google.cloud.gkerecommender.v1.FetchModelsResponse.next_page_token]
       to determine if there are more instances left to be queried.
       
      optional int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasPageSize in interface FetchModelsRequestOrBuilder
      Returns:
      Whether the pageSize field is set.
    • getPageSize

      public int getPageSize()
       Optional. The target number of results to return in a single response.
       If not specified, a default value will be chosen by the service.
       Note that the response may include a partial list and a caller should
       only rely on the response's
       [next_page_token][google.cloud.gkerecommender.v1.FetchModelsResponse.next_page_token]
       to determine if there are more instances left to be queried.
       
      optional int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageSize in interface FetchModelsRequestOrBuilder
      Returns:
      The pageSize.
    • setPageSize

      public FetchModelsRequest.Builder setPageSize(int value)
       Optional. The target number of results to return in a single response.
       If not specified, a default value will be chosen by the service.
       Note that the response may include a partial list and a caller should
       only rely on the response's
       [next_page_token][google.cloud.gkerecommender.v1.FetchModelsResponse.next_page_token]
       to determine if there are more instances left to be queried.
       
      optional int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The pageSize to set.
      Returns:
      This builder for chaining.
    • clearPageSize

      public FetchModelsRequest.Builder clearPageSize()
       Optional. The target number of results to return in a single response.
       If not specified, a default value will be chosen by the service.
       Note that the response may include a partial list and a caller should
       only rely on the response's
       [next_page_token][google.cloud.gkerecommender.v1.FetchModelsResponse.next_page_token]
       to determine if there are more instances left to be queried.
       
      optional int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasPageToken

      public boolean hasPageToken()
       Optional. The value of
       [next_page_token][google.cloud.gkerecommender.v1.FetchModelsResponse.next_page_token]
       received from a previous `FetchModelsRequest` call.
       Provide this to retrieve the subsequent page in a multi-page list of
       results. When paginating, all other parameters provided to
       `FetchModelsRequest` must match the call that provided the page token.
       
      optional string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasPageToken in interface FetchModelsRequestOrBuilder
      Returns:
      Whether the pageToken field is set.
    • getPageToken

      public String getPageToken()
       Optional. The value of
       [next_page_token][google.cloud.gkerecommender.v1.FetchModelsResponse.next_page_token]
       received from a previous `FetchModelsRequest` call.
       Provide this to retrieve the subsequent page in a multi-page list of
       results. When paginating, all other parameters provided to
       `FetchModelsRequest` must match the call that provided the page token.
       
      optional string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageToken in interface FetchModelsRequestOrBuilder
      Returns:
      The pageToken.
    • getPageTokenBytes

      public com.google.protobuf.ByteString getPageTokenBytes()
       Optional. The value of
       [next_page_token][google.cloud.gkerecommender.v1.FetchModelsResponse.next_page_token]
       received from a previous `FetchModelsRequest` call.
       Provide this to retrieve the subsequent page in a multi-page list of
       results. When paginating, all other parameters provided to
       `FetchModelsRequest` must match the call that provided the page token.
       
      optional string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageTokenBytes in interface FetchModelsRequestOrBuilder
      Returns:
      The bytes for pageToken.
    • setPageToken

      public FetchModelsRequest.Builder setPageToken(String value)
       Optional. The value of
       [next_page_token][google.cloud.gkerecommender.v1.FetchModelsResponse.next_page_token]
       received from a previous `FetchModelsRequest` call.
       Provide this to retrieve the subsequent page in a multi-page list of
       results. When paginating, all other parameters provided to
       `FetchModelsRequest` must match the call that provided the page token.
       
      optional string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The pageToken to set.
      Returns:
      This builder for chaining.
    • clearPageToken

      public FetchModelsRequest.Builder clearPageToken()
       Optional. The value of
       [next_page_token][google.cloud.gkerecommender.v1.FetchModelsResponse.next_page_token]
       received from a previous `FetchModelsRequest` call.
       Provide this to retrieve the subsequent page in a multi-page list of
       results. When paginating, all other parameters provided to
       `FetchModelsRequest` must match the call that provided the page token.
       
      optional string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setPageTokenBytes

      public FetchModelsRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
       Optional. The value of
       [next_page_token][google.cloud.gkerecommender.v1.FetchModelsResponse.next_page_token]
       received from a previous `FetchModelsRequest` call.
       Provide this to retrieve the subsequent page in a multi-page list of
       results. When paginating, all other parameters provided to
       `FetchModelsRequest` must match the call that provided the page token.
       
      optional string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for pageToken to set.
      Returns:
      This builder for chaining.