Class QueryEligibleBillingAccountsRequest.Builder (3.59.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
Type Description
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
Name Description
values Iterable<String>

The skus to add.

Returns
Type Description
QueryEligibleBillingAccountsRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QueryEligibleBillingAccountsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The skus to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the skus to add.

Returns
Type Description
QueryEligibleBillingAccountsRequest.Builder

This builder for chaining.

build()

public QueryEligibleBillingAccountsRequest build()
Returns
Type Description
QueryEligibleBillingAccountsRequest

buildPartial()

public QueryEligibleBillingAccountsRequest buildPartial()
Returns
Type Description
QueryEligibleBillingAccountsRequest

clear()

public QueryEligibleBillingAccountsRequest.Builder clear()
Returns
Type Description
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
Type Description
QueryEligibleBillingAccountsRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public QueryEligibleBillingAccountsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
QueryEligibleBillingAccountsRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public QueryEligibleBillingAccountsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
QueryEligibleBillingAccountsRequest.Builder

This builder for chaining.

clone()

public QueryEligibleBillingAccountsRequest.Builder clone()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for customer.

getDefaultInstanceForType()

public QueryEligibleBillingAccountsRequest getDefaultInstanceForType()
Returns
Type Description
QueryEligibleBillingAccountsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the skus.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(QueryEligibleBillingAccountsRequest other)

public QueryEligibleBillingAccountsRequest.Builder mergeFrom(QueryEligibleBillingAccountsRequest other)
Parameter
Name Description
other QueryEligibleBillingAccountsRequest
Returns
Type Description
QueryEligibleBillingAccountsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QueryEligibleBillingAccountsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryEligibleBillingAccountsRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public QueryEligibleBillingAccountsRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
QueryEligibleBillingAccountsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QueryEligibleBillingAccountsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value String

The customer to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for customer to set.

Returns
Type Description
QueryEligibleBillingAccountsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public QueryEligibleBillingAccountsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QueryEligibleBillingAccountsRequest.Builder
Overrides

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

public QueryEligibleBillingAccountsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The skus to set.

Returns
Type Description
QueryEligibleBillingAccountsRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final QueryEligibleBillingAccountsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QueryEligibleBillingAccountsRequest.Builder
Overrides