Class QueryEligibleBillingAccountsRequest.Builder

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

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

      public QueryEligibleBillingAccountsRequest 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 QueryEligibleBillingAccountsRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public QueryEligibleBillingAccountsRequest.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<QueryEligibleBillingAccountsRequest.Builder>
      Throws:
      IOException
    • getCustomer

      public String getCustomer()
       Required. The resource name of the customer to list eligible billing
       accounts for. Format: accounts/{account_id}/customers/{customer_id}.
       
      string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getCustomer in interface QueryEligibleBillingAccountsRequestOrBuilder
      Returns:
      The customer.
    • getCustomerBytes

      public com.google.protobuf.ByteString getCustomerBytes()
       Required. The resource name of the customer to list eligible billing
       accounts for. Format: accounts/{account_id}/customers/{customer_id}.
       
      string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getCustomerBytes in interface QueryEligibleBillingAccountsRequestOrBuilder
      Returns:
      The bytes for customer.
    • setCustomer

       Required. The resource name of the customer to list eligible billing
       accounts for. Format: accounts/{account_id}/customers/{customer_id}.
       
      string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The customer to set.
      Returns:
      This builder for chaining.
    • clearCustomer

       Required. The resource name of the customer to list eligible billing
       accounts for. Format: accounts/{account_id}/customers/{customer_id}.
       
      string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setCustomerBytes

      public QueryEligibleBillingAccountsRequest.Builder setCustomerBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the customer to list eligible billing
       accounts for. Format: accounts/{account_id}/customers/{customer_id}.
       
      string customer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for customer to set.
      Returns:
      This builder for chaining.
    • getSkusList

      public com.google.protobuf.ProtocolStringList getSkusList()
       Required. List of SKUs to list eligible billing accounts for. At least one
       SKU is required. Format: products/{product_id}/skus/{sku_id}.
       
      repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSkusList in interface QueryEligibleBillingAccountsRequestOrBuilder
      Returns:
      A list containing the skus.
    • getSkusCount

      public int getSkusCount()
       Required. List of SKUs to list eligible billing accounts for. At least one
       SKU is required. Format: products/{product_id}/skus/{sku_id}.
       
      repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSkusCount in interface QueryEligibleBillingAccountsRequestOrBuilder
      Returns:
      The count of skus.
    • getSkus

      public String getSkus(int index)
       Required. List of SKUs to list eligible billing accounts for. At least one
       SKU is required. Format: products/{product_id}/skus/{sku_id}.
       
      repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSkus in interface QueryEligibleBillingAccountsRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The skus at the given index.
    • getSkusBytes

      public com.google.protobuf.ByteString getSkusBytes(int index)
       Required. List of SKUs to list eligible billing accounts for. At least one
       SKU is required. Format: products/{product_id}/skus/{sku_id}.
       
      repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSkusBytes in interface QueryEligibleBillingAccountsRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the skus at the given index.
    • setSkus

      public QueryEligibleBillingAccountsRequest.Builder setSkus(int index, String value)
       Required. List of SKUs to list eligible billing accounts for. At least one
       SKU is required. Format: products/{product_id}/skus/{sku_id}.
       
      repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The skus to set.
      Returns:
      This builder for chaining.
    • addSkus

       Required. List of SKUs to list eligible billing accounts for. At least one
       SKU is required. Format: products/{product_id}/skus/{sku_id}.
       
      repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The skus to add.
      Returns:
      This builder for chaining.
    • addAllSkus

       Required. List of SKUs to list eligible billing accounts for. At least one
       SKU is required. Format: products/{product_id}/skus/{sku_id}.
       
      repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The skus to add.
      Returns:
      This builder for chaining.
    • clearSkus

       Required. List of SKUs to list eligible billing accounts for. At least one
       SKU is required. Format: products/{product_id}/skus/{sku_id}.
       
      repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addSkusBytes

      public QueryEligibleBillingAccountsRequest.Builder addSkusBytes(com.google.protobuf.ByteString value)
       Required. List of SKUs to list eligible billing accounts for. At least one
       SKU is required. Format: products/{product_id}/skus/{sku_id}.
       
      repeated string skus = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the skus to add.
      Returns:
      This builder for chaining.