Class ListPurchasableSkusResponse.Builder (3.51.0)

public static final class ListPurchasableSkusResponse.Builder extends GeneratedMessageV3.Builder<ListPurchasableSkusResponse.Builder> implements ListPurchasableSkusResponseOrBuilder

Response message for ListPurchasableSkus.

Protobuf type google.cloud.channel.v1.ListPurchasableSkusResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllPurchasableSkus(Iterable<? extends PurchasableSku> values)

public ListPurchasableSkusResponse.Builder addAllPurchasableSkus(Iterable<? extends PurchasableSku> values)

The list of SKUs requested.

repeated .google.cloud.channel.v1.PurchasableSku purchasable_skus = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.channel.v1.PurchasableSku>
Returns
Type Description
ListPurchasableSkusResponse.Builder

addPurchasableSkus(PurchasableSku value)

public ListPurchasableSkusResponse.Builder addPurchasableSkus(PurchasableSku value)

The list of SKUs requested.

repeated .google.cloud.channel.v1.PurchasableSku purchasable_skus = 1;

Parameter
Name Description
value PurchasableSku
Returns
Type Description
ListPurchasableSkusResponse.Builder

addPurchasableSkus(PurchasableSku.Builder builderForValue)

public ListPurchasableSkusResponse.Builder addPurchasableSkus(PurchasableSku.Builder builderForValue)

The list of SKUs requested.

repeated .google.cloud.channel.v1.PurchasableSku purchasable_skus = 1;

Parameter
Name Description
builderForValue PurchasableSku.Builder
Returns
Type Description
ListPurchasableSkusResponse.Builder

addPurchasableSkus(int index, PurchasableSku value)

public ListPurchasableSkusResponse.Builder addPurchasableSkus(int index, PurchasableSku value)

The list of SKUs requested.

repeated .google.cloud.channel.v1.PurchasableSku purchasable_skus = 1;

Parameters
Name Description
index int
value PurchasableSku
Returns
Type Description
ListPurchasableSkusResponse.Builder

addPurchasableSkus(int index, PurchasableSku.Builder builderForValue)

public ListPurchasableSkusResponse.Builder addPurchasableSkus(int index, PurchasableSku.Builder builderForValue)

The list of SKUs requested.

repeated .google.cloud.channel.v1.PurchasableSku purchasable_skus = 1;

Parameters
Name Description
index int
builderForValue PurchasableSku.Builder
Returns
Type Description
ListPurchasableSkusResponse.Builder

addPurchasableSkusBuilder()

public PurchasableSku.Builder addPurchasableSkusBuilder()

The list of SKUs requested.

repeated .google.cloud.channel.v1.PurchasableSku purchasable_skus = 1;

Returns
Type Description
PurchasableSku.Builder

addPurchasableSkusBuilder(int index)

public PurchasableSku.Builder addPurchasableSkusBuilder(int index)

The list of SKUs requested.

repeated .google.cloud.channel.v1.PurchasableSku purchasable_skus = 1;

Parameter
Name Description
index int
Returns
Type Description
PurchasableSku.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListPurchasableSkusResponse build()
Returns
Type Description
ListPurchasableSkusResponse

buildPartial()

public ListPurchasableSkusResponse buildPartial()
Returns
Type Description
ListPurchasableSkusResponse

clear()

public ListPurchasableSkusResponse.Builder clear()
Returns
Type Description
ListPurchasableSkusResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListPurchasableSkusResponse.Builder clearNextPageToken()

A token to retrieve the next page of results.

string next_page_token = 2;

Returns
Type Description
ListPurchasableSkusResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListPurchasableSkusResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListPurchasableSkusResponse.Builder
Overrides

clearPurchasableSkus()

public ListPurchasableSkusResponse.Builder clearPurchasableSkus()

The list of SKUs requested.

repeated .google.cloud.channel.v1.PurchasableSku purchasable_skus = 1;

Returns
Type Description
ListPurchasableSkusResponse.Builder

clone()

public ListPurchasableSkusResponse.Builder clone()
Returns
Type Description
ListPurchasableSkusResponse.Builder
Overrides

getDefaultInstanceForType()

public ListPurchasableSkusResponse getDefaultInstanceForType()
Returns
Type Description
ListPurchasableSkusResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token to retrieve the next page of results.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to retrieve the next page of results.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getPurchasableSkus(int index)

public PurchasableSku getPurchasableSkus(int index)

The list of SKUs requested.

repeated .google.cloud.channel.v1.PurchasableSku purchasable_skus = 1;

Parameter
Name Description
index int
Returns
Type Description
PurchasableSku

getPurchasableSkusBuilder(int index)

public PurchasableSku.Builder getPurchasableSkusBuilder(int index)

The list of SKUs requested.

repeated .google.cloud.channel.v1.PurchasableSku purchasable_skus = 1;

Parameter
Name Description
index int
Returns
Type Description
PurchasableSku.Builder

getPurchasableSkusBuilderList()

public List<PurchasableSku.Builder> getPurchasableSkusBuilderList()

The list of SKUs requested.

repeated .google.cloud.channel.v1.PurchasableSku purchasable_skus = 1;

Returns
Type Description
List<Builder>

getPurchasableSkusCount()

public int getPurchasableSkusCount()

The list of SKUs requested.

repeated .google.cloud.channel.v1.PurchasableSku purchasable_skus = 1;

Returns
Type Description
int

getPurchasableSkusList()

public List<PurchasableSku> getPurchasableSkusList()

The list of SKUs requested.

repeated .google.cloud.channel.v1.PurchasableSku purchasable_skus = 1;

Returns
Type Description
List<PurchasableSku>

getPurchasableSkusOrBuilder(int index)

public PurchasableSkuOrBuilder getPurchasableSkusOrBuilder(int index)

The list of SKUs requested.

repeated .google.cloud.channel.v1.PurchasableSku purchasable_skus = 1;

Parameter
Name Description
index int
Returns
Type Description
PurchasableSkuOrBuilder

getPurchasableSkusOrBuilderList()

public List<? extends PurchasableSkuOrBuilder> getPurchasableSkusOrBuilderList()

The list of SKUs requested.

repeated .google.cloud.channel.v1.PurchasableSku purchasable_skus = 1;

Returns
Type Description
List<? extends com.google.cloud.channel.v1.PurchasableSkuOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListPurchasableSkusResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListPurchasableSkusResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListPurchasableSkusResponse.Builder
Overrides

removePurchasableSkus(int index)

public ListPurchasableSkusResponse.Builder removePurchasableSkus(int index)

The list of SKUs requested.

repeated .google.cloud.channel.v1.PurchasableSku purchasable_skus = 1;

Parameter
Name Description
index int
Returns
Type Description
ListPurchasableSkusResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListPurchasableSkusResponse.Builder setNextPageToken(String value)

A token to retrieve the next page of results.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListPurchasableSkusResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListPurchasableSkusResponse.Builder setNextPageTokenBytes(ByteString value)

A token to retrieve the next page of results.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListPurchasableSkusResponse.Builder

This builder for chaining.

setPurchasableSkus(int index, PurchasableSku value)

public ListPurchasableSkusResponse.Builder setPurchasableSkus(int index, PurchasableSku value)

The list of SKUs requested.

repeated .google.cloud.channel.v1.PurchasableSku purchasable_skus = 1;

Parameters
Name Description
index int
value PurchasableSku
Returns
Type Description
ListPurchasableSkusResponse.Builder

setPurchasableSkus(int index, PurchasableSku.Builder builderForValue)

public ListPurchasableSkusResponse.Builder setPurchasableSkus(int index, PurchasableSku.Builder builderForValue)

The list of SKUs requested.

repeated .google.cloud.channel.v1.PurchasableSku purchasable_skus = 1;

Parameters
Name Description
index int
builderForValue PurchasableSku.Builder
Returns
Type Description
ListPurchasableSkusResponse.Builder

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

public ListPurchasableSkusResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListPurchasableSkusResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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