Class ListSkusResponse.Builder (3.55.0)

public static final class ListSkusResponse.Builder extends GeneratedMessageV3.Builder<ListSkusResponse.Builder> implements ListSkusResponseOrBuilder

Response message for ListSkus.

Protobuf type google.cloud.channel.v1.ListSkusResponse

Static Methods

getDescriptor()

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

Methods

addAllSkus(Iterable<? extends Sku> values)

public ListSkusResponse.Builder addAllSkus(Iterable<? extends Sku> values)

The list of SKUs requested.

repeated .google.cloud.channel.v1.Sku skus = 1;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSkus(Sku value)

public ListSkusResponse.Builder addSkus(Sku value)

The list of SKUs requested.

repeated .google.cloud.channel.v1.Sku skus = 1;

Parameter
Name Description
value Sku
Returns
Type Description
ListSkusResponse.Builder

addSkus(Sku.Builder builderForValue)

public ListSkusResponse.Builder addSkus(Sku.Builder builderForValue)

The list of SKUs requested.

repeated .google.cloud.channel.v1.Sku skus = 1;

Parameter
Name Description
builderForValue Sku.Builder
Returns
Type Description
ListSkusResponse.Builder

addSkus(int index, Sku value)

public ListSkusResponse.Builder addSkus(int index, Sku value)

The list of SKUs requested.

repeated .google.cloud.channel.v1.Sku skus = 1;

Parameters
Name Description
index int
value Sku
Returns
Type Description
ListSkusResponse.Builder

addSkus(int index, Sku.Builder builderForValue)

public ListSkusResponse.Builder addSkus(int index, Sku.Builder builderForValue)

The list of SKUs requested.

repeated .google.cloud.channel.v1.Sku skus = 1;

Parameters
Name Description
index int
builderForValue Sku.Builder
Returns
Type Description
ListSkusResponse.Builder

addSkusBuilder()

public Sku.Builder addSkusBuilder()

The list of SKUs requested.

repeated .google.cloud.channel.v1.Sku skus = 1;

Returns
Type Description
Sku.Builder

addSkusBuilder(int index)

public Sku.Builder addSkusBuilder(int index)

The list of SKUs requested.

repeated .google.cloud.channel.v1.Sku skus = 1;

Parameter
Name Description
index int
Returns
Type Description
Sku.Builder

build()

public ListSkusResponse build()
Returns
Type Description
ListSkusResponse

buildPartial()

public ListSkusResponse buildPartial()
Returns
Type Description
ListSkusResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListSkusResponse.Builder clearNextPageToken()

A token to retrieve the next page of results.

string next_page_token = 2;

Returns
Type Description
ListSkusResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSkus()

public ListSkusResponse.Builder clearSkus()

The list of SKUs requested.

repeated .google.cloud.channel.v1.Sku skus = 1;

Returns
Type Description
ListSkusResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListSkusResponse getDefaultInstanceForType()
Returns
Type Description
ListSkusResponse

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.

getSkus(int index)

public Sku getSkus(int index)

The list of SKUs requested.

repeated .google.cloud.channel.v1.Sku skus = 1;

Parameter
Name Description
index int
Returns
Type Description
Sku

getSkusBuilder(int index)

public Sku.Builder getSkusBuilder(int index)

The list of SKUs requested.

repeated .google.cloud.channel.v1.Sku skus = 1;

Parameter
Name Description
index int
Returns
Type Description
Sku.Builder

getSkusBuilderList()

public List<Sku.Builder> getSkusBuilderList()

The list of SKUs requested.

repeated .google.cloud.channel.v1.Sku skus = 1;

Returns
Type Description
List<Builder>

getSkusCount()

public int getSkusCount()

The list of SKUs requested.

repeated .google.cloud.channel.v1.Sku skus = 1;

Returns
Type Description
int

getSkusList()

public List<Sku> getSkusList()

The list of SKUs requested.

repeated .google.cloud.channel.v1.Sku skus = 1;

Returns
Type Description
List<Sku>

getSkusOrBuilder(int index)

public SkuOrBuilder getSkusOrBuilder(int index)

The list of SKUs requested.

repeated .google.cloud.channel.v1.Sku skus = 1;

Parameter
Name Description
index int
Returns
Type Description
SkuOrBuilder

getSkusOrBuilderList()

public List<? extends SkuOrBuilder> getSkusOrBuilderList()

The list of SKUs requested.

repeated .google.cloud.channel.v1.Sku skus = 1;

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListSkusResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSkus(int index)

public ListSkusResponse.Builder removeSkus(int index)

The list of SKUs requested.

repeated .google.cloud.channel.v1.Sku skus = 1;

Parameter
Name Description
index int
Returns
Type Description
ListSkusResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListSkusResponse.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
ListSkusResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListSkusResponse.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
ListSkusResponse.Builder

This builder for chaining.

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

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

setSkus(int index, Sku value)

public ListSkusResponse.Builder setSkus(int index, Sku value)

The list of SKUs requested.

repeated .google.cloud.channel.v1.Sku skus = 1;

Parameters
Name Description
index int
value Sku
Returns
Type Description
ListSkusResponse.Builder

setSkus(int index, Sku.Builder builderForValue)

public ListSkusResponse.Builder setSkus(int index, Sku.Builder builderForValue)

The list of SKUs requested.

repeated .google.cloud.channel.v1.Sku skus = 1;

Parameters
Name Description
index int
builderForValue Sku.Builder
Returns
Type Description
ListSkusResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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