Class QueryEligibleBillingAccountsRequest.Builder (3.35.0)

public static final class QueryEligibleBillingAccountsRequest.Builder extends GeneratedMessageV3.Builder<QueryEligibleBillingAccountsRequest.Builder> implements QueryEligibleBillingAccountsRequestOrBuilder

Request message for QueryEligibleBillingAccounts.

Protobuf type google.cloud.channel.v1.QueryEligibleBillingAccountsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllSkus(Iterable<String> values)

public QueryEligibleBillingAccountsRequest.Builder addAllSkus(Iterable<String> values)

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];

Parameter
NameDescription
valuesIterable<String>

The skus to add.

Returns
TypeDescription
QueryEligibleBillingAccountsRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QueryEligibleBillingAccountsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
QueryEligibleBillingAccountsRequest.Builder
Overrides

addSkus(String value)

public QueryEligibleBillingAccountsRequest.Builder addSkus(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];

Parameter
NameDescription
valueString

The skus to add.

Returns
TypeDescription
QueryEligibleBillingAccountsRequest.Builder

This builder for chaining.

addSkusBytes(ByteString value)

public QueryEligibleBillingAccountsRequest.Builder addSkusBytes(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];

Parameter
NameDescription
valueByteString

The bytes of the skus to add.

Returns
TypeDescription
QueryEligibleBillingAccountsRequest.Builder

This builder for chaining.

build()

public QueryEligibleBillingAccountsRequest build()
Returns
TypeDescription
QueryEligibleBillingAccountsRequest

buildPartial()

public QueryEligibleBillingAccountsRequest buildPartial()
Returns
TypeDescription
QueryEligibleBillingAccountsRequest

clear()

public QueryEligibleBillingAccountsRequest.Builder clear()
Returns
TypeDescription
QueryEligibleBillingAccountsRequest.Builder
Overrides

clearCustomer()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public QueryEligibleBillingAccountsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
QueryEligibleBillingAccountsRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public QueryEligibleBillingAccountsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
QueryEligibleBillingAccountsRequest.Builder
Overrides

clearSkus()

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

This builder for chaining.

clone()

public QueryEligibleBillingAccountsRequest.Builder clone()
Returns
TypeDescription
QueryEligibleBillingAccountsRequest.Builder
Overrides

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) = { ... }

Returns
TypeDescription
String

The customer.

getCustomerBytes()

public 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) = { ... }

Returns
TypeDescription
ByteString

The bytes for customer.

getDefaultInstanceForType()

public QueryEligibleBillingAccountsRequest getDefaultInstanceForType()
Returns
TypeDescription
QueryEligibleBillingAccountsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSkus(int index)

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];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The skus at the given index.

getSkusBytes(int index)

public 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];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the skus at the given index.

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];

Returns
TypeDescription
int

The count of skus.

getSkusList()

public 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];

Returns
TypeDescription
ProtocolStringList

A list containing the skus.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(QueryEligibleBillingAccountsRequest other)

public QueryEligibleBillingAccountsRequest.Builder mergeFrom(QueryEligibleBillingAccountsRequest other)
Parameter
NameDescription
otherQueryEligibleBillingAccountsRequest
Returns
TypeDescription
QueryEligibleBillingAccountsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QueryEligibleBillingAccountsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryEligibleBillingAccountsRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public QueryEligibleBillingAccountsRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
QueryEligibleBillingAccountsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QueryEligibleBillingAccountsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
QueryEligibleBillingAccountsRequest.Builder
Overrides

setCustomer(String value)

public QueryEligibleBillingAccountsRequest.Builder setCustomer(String 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) = { ... }

Parameter
NameDescription
valueString

The customer to set.

Returns
TypeDescription
QueryEligibleBillingAccountsRequest.Builder

This builder for chaining.

setCustomerBytes(ByteString value)

public QueryEligibleBillingAccountsRequest.Builder setCustomerBytes(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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for customer to set.

Returns
TypeDescription
QueryEligibleBillingAccountsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public QueryEligibleBillingAccountsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
QueryEligibleBillingAccountsRequest.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public QueryEligibleBillingAccountsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
QueryEligibleBillingAccountsRequest.Builder
Overrides

setSkus(int index, String value)

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
NameDescription
indexint

The index to set the value at.

valueString

The skus to set.

Returns
TypeDescription
QueryEligibleBillingAccountsRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final QueryEligibleBillingAccountsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
QueryEligibleBillingAccountsRequest.Builder
Overrides