Class ListProductsRequest.Builder

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

public static final class ListProductsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListProductsRequest.Builder> implements ListProductsRequestOrBuilder
 Request message for ListProducts.
 
Protobuf type google.cloud.channel.v1.ListProductsRequest
  • 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<ListProductsRequest.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<ListProductsRequest.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<ListProductsRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListProductsRequest.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<ListProductsRequest.Builder>
      Throws:
      IOException
    • getAccount

      public String getAccount()
       Required. The resource name of the reseller account.
       Format: accounts/{account_id}.
       
      string account = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAccount in interface ListProductsRequestOrBuilder
      Returns:
      The account.
    • getAccountBytes

      public com.google.protobuf.ByteString getAccountBytes()
       Required. The resource name of the reseller account.
       Format: accounts/{account_id}.
       
      string account = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAccountBytes in interface ListProductsRequestOrBuilder
      Returns:
      The bytes for account.
    • setAccount

      public ListProductsRequest.Builder setAccount(String value)
       Required. The resource name of the reseller account.
       Format: accounts/{account_id}.
       
      string account = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The account to set.
      Returns:
      This builder for chaining.
    • clearAccount

      public ListProductsRequest.Builder clearAccount()
       Required. The resource name of the reseller account.
       Format: accounts/{account_id}.
       
      string account = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setAccountBytes

      public ListProductsRequest.Builder setAccountBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the reseller account.
       Format: accounts/{account_id}.
       
      string account = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for account to set.
      Returns:
      This builder for chaining.
    • getPageSize

      public int getPageSize()
       Optional. Requested page size. Server might return fewer results than
       requested. If unspecified, returns at most 100 Products. The maximum value
       is 1000; the server will coerce values above 1000.
       
      int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageSize in interface ListProductsRequestOrBuilder
      Returns:
      The pageSize.
    • setPageSize

      public ListProductsRequest.Builder setPageSize(int value)
       Optional. Requested page size. Server might return fewer results than
       requested. If unspecified, returns at most 100 Products. The maximum value
       is 1000; the server will coerce values above 1000.
       
      int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The pageSize to set.
      Returns:
      This builder for chaining.
    • clearPageSize

      public ListProductsRequest.Builder clearPageSize()
       Optional. Requested page size. Server might return fewer results than
       requested. If unspecified, returns at most 100 Products. The maximum value
       is 1000; the server will coerce values above 1000.
       
      int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getPageToken

      public String getPageToken()
       Optional. A token for a page of results other than the first page.
       
      string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageToken in interface ListProductsRequestOrBuilder
      Returns:
      The pageToken.
    • getPageTokenBytes

      public com.google.protobuf.ByteString getPageTokenBytes()
       Optional. A token for a page of results other than the first page.
       
      string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageTokenBytes in interface ListProductsRequestOrBuilder
      Returns:
      The bytes for pageToken.
    • setPageToken

      public ListProductsRequest.Builder setPageToken(String value)
       Optional. A token for a page of results other than the first page.
       
      string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The pageToken to set.
      Returns:
      This builder for chaining.
    • clearPageToken

      public ListProductsRequest.Builder clearPageToken()
       Optional. A token for a page of results other than the first page.
       
      string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setPageTokenBytes

      public ListProductsRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
       Optional. A token for a page of results other than the first page.
       
      string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for pageToken to set.
      Returns:
      This builder for chaining.
    • getLanguageCode

      public String getLanguageCode()
       Optional. The BCP-47 language code. For example, "en-US". The
       response will localize in the corresponding language code, if specified.
       The default value is "en-US".
       
      string language_code = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCode in interface ListProductsRequestOrBuilder
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      public com.google.protobuf.ByteString getLanguageCodeBytes()
       Optional. The BCP-47 language code. For example, "en-US". The
       response will localize in the corresponding language code, if specified.
       The default value is "en-US".
       
      string language_code = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCodeBytes in interface ListProductsRequestOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

      public ListProductsRequest.Builder setLanguageCode(String value)
       Optional. The BCP-47 language code. For example, "en-US". The
       response will localize in the corresponding language code, if specified.
       The default value is "en-US".
       
      string language_code = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The languageCode to set.
      Returns:
      This builder for chaining.
    • clearLanguageCode

      public ListProductsRequest.Builder clearLanguageCode()
       Optional. The BCP-47 language code. For example, "en-US". The
       response will localize in the corresponding language code, if specified.
       The default value is "en-US".
       
      string language_code = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setLanguageCodeBytes

      public ListProductsRequest.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
       Optional. The BCP-47 language code. For example, "en-US". The
       response will localize in the corresponding language code, if specified.
       The default value is "en-US".
       
      string language_code = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for languageCode to set.
      Returns:
      This builder for chaining.