Class ListOffersRequest.Builder

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

public static final class ListOffersRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListOffersRequest.Builder> implements ListOffersRequestOrBuilder
 Request message for ListOffers.
 
Protobuf type google.cloud.channel.v1.ListOffersRequest
  • 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<ListOffersRequest.Builder>
    • clear

      public ListOffersRequest.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<ListOffersRequest.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<ListOffersRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListOffersRequest.Builder mergeFrom(ListOffersRequest other)
    • isInitialized

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

      public ListOffersRequest.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<ListOffersRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The resource name of the reseller account from which to list
       Offers. Parent uses the format: accounts/{account_id}.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParent in interface ListOffersRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The resource name of the reseller account from which to list
       Offers. Parent uses the format: accounts/{account_id}.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParentBytes in interface ListOffersRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public ListOffersRequest.Builder setParent(String value)
       Required. The resource name of the reseller account from which to list
       Offers. Parent uses the format: accounts/{account_id}.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public ListOffersRequest.Builder clearParent()
       Required. The resource name of the reseller account from which to list
       Offers. Parent uses the format: accounts/{account_id}.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setParentBytes

      public ListOffersRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the reseller account from which to list
       Offers. Parent uses the format: accounts/{account_id}.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for parent 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 500 Offers. 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 ListOffersRequestOrBuilder
      Returns:
      The pageSize.
    • setPageSize

      public ListOffersRequest.Builder setPageSize(int value)
       Optional. Requested page size. Server might return fewer results than
       requested. If unspecified, returns at most 500 Offers. 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 ListOffersRequest.Builder clearPageSize()
       Optional. Requested page size. Server might return fewer results than
       requested. If unspecified, returns at most 500 Offers. 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 ListOffersRequestOrBuilder
      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 ListOffersRequestOrBuilder
      Returns:
      The bytes for pageToken.
    • setPageToken

      public ListOffersRequest.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 ListOffersRequest.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 ListOffersRequest.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.
    • getFilter

      public String getFilter()
       Optional. The expression to filter results by name (name of
       the Offer), sku.name (name of the SKU), or sku.product.name (name of the
       Product).
       Example 1: sku.product.name=products/p1 AND sku.name!=products/p1/skus/s1
       Example 2: name=accounts/a1/offers/o1
       
      string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilter in interface ListOffersRequestOrBuilder
      Returns:
      The filter.
    • getFilterBytes

      public com.google.protobuf.ByteString getFilterBytes()
       Optional. The expression to filter results by name (name of
       the Offer), sku.name (name of the SKU), or sku.product.name (name of the
       Product).
       Example 1: sku.product.name=products/p1 AND sku.name!=products/p1/skus/s1
       Example 2: name=accounts/a1/offers/o1
       
      string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilterBytes in interface ListOffersRequestOrBuilder
      Returns:
      The bytes for filter.
    • setFilter

      public ListOffersRequest.Builder setFilter(String value)
       Optional. The expression to filter results by name (name of
       the Offer), sku.name (name of the SKU), or sku.product.name (name of the
       Product).
       Example 1: sku.product.name=products/p1 AND sku.name!=products/p1/skus/s1
       Example 2: name=accounts/a1/offers/o1
       
      string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The filter to set.
      Returns:
      This builder for chaining.
    • clearFilter

      public ListOffersRequest.Builder clearFilter()
       Optional. The expression to filter results by name (name of
       the Offer), sku.name (name of the SKU), or sku.product.name (name of the
       Product).
       Example 1: sku.product.name=products/p1 AND sku.name!=products/p1/skus/s1
       Example 2: name=accounts/a1/offers/o1
       
      string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setFilterBytes

      public ListOffersRequest.Builder setFilterBytes(com.google.protobuf.ByteString value)
       Optional. The expression to filter results by name (name of
       the Offer), sku.name (name of the SKU), or sku.product.name (name of the
       Product).
       Example 1: sku.product.name=products/p1 AND sku.name!=products/p1/skus/s1
       Example 2: name=accounts/a1/offers/o1
       
      string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for filter 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 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCode in interface ListOffersRequestOrBuilder
      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 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCodeBytes in interface ListOffersRequestOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

      public ListOffersRequest.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 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The languageCode to set.
      Returns:
      This builder for chaining.
    • clearLanguageCode

      public ListOffersRequest.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 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setLanguageCodeBytes

      public ListOffersRequest.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 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for languageCode to set.
      Returns:
      This builder for chaining.
    • getShowFutureOffers

      public boolean getShowFutureOffers()
       Optional. A boolean flag that determines if a response returns future
       offers 30 days from now. If the show_future_offers is true, the response
       will only contain offers that are scheduled to be available 30 days from
       now.
       
      bool show_future_offers = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getShowFutureOffers in interface ListOffersRequestOrBuilder
      Returns:
      The showFutureOffers.
    • setShowFutureOffers

      public ListOffersRequest.Builder setShowFutureOffers(boolean value)
       Optional. A boolean flag that determines if a response returns future
       offers 30 days from now. If the show_future_offers is true, the response
       will only contain offers that are scheduled to be available 30 days from
       now.
       
      bool show_future_offers = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The showFutureOffers to set.
      Returns:
      This builder for chaining.
    • clearShowFutureOffers

      public ListOffersRequest.Builder clearShowFutureOffers()
       Optional. A boolean flag that determines if a response returns future
       offers 30 days from now. If the show_future_offers is true, the response
       will only contain offers that are scheduled to be available 30 days from
       now.
       
      bool show_future_offers = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.