Class ListSkusResponse.Builder (3.33.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.channel.v1.Sku>
Returns
TypeDescription
ListSkusResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListSkusResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueSku
Returns
TypeDescription
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
NameDescription
builderForValueSku.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueSku
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSku.Builder
Returns
TypeDescription
ListSkusResponse.Builder

addSkusBuilder()

public Sku.Builder addSkusBuilder()

The list of SKUs requested.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Sku.Builder

build()

public ListSkusResponse build()
Returns
TypeDescription
ListSkusResponse

buildPartial()

public ListSkusResponse buildPartial()
Returns
TypeDescription
ListSkusResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListSkusResponse.Builder clearNextPageToken()

A token to retrieve the next page of results.

string next_page_token = 2;

Returns
TypeDescription
ListSkusResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSkus()

public ListSkusResponse.Builder clearSkus()

The list of SKUs requested.

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

Returns
TypeDescription
ListSkusResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListSkusResponse getDefaultInstanceForType()
Returns
TypeDescription
ListSkusResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token to retrieve the next page of results.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to retrieve the next page of results.

string next_page_token = 2;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Sku

getSkusBuilder(int index)

public Sku.Builder getSkusBuilder(int index)

The list of SKUs requested.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Sku.Builder

getSkusBuilderList()

public List<Sku.Builder> getSkusBuilderList()

The list of SKUs requested.

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

Returns
TypeDescription
List<Builder>

getSkusCount()

public int getSkusCount()

The list of SKUs requested.

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

Returns
TypeDescription
int

getSkusList()

public List<Sku> getSkusList()

The list of SKUs requested.

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

Returns
TypeDescription
List<Sku>

getSkusOrBuilder(int index)

public SkuOrBuilder getSkusOrBuilder(int index)

The list of SKUs requested.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SkuOrBuilder

getSkusOrBuilderList()

public List<? extends SkuOrBuilder> getSkusOrBuilderList()

The list of SKUs requested.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListSkusResponse other)

public ListSkusResponse.Builder mergeFrom(ListSkusResponse other)
Parameter
NameDescription
otherListSkusResponse
Returns
TypeDescription
ListSkusResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListSkusResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListSkusResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListSkusResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueSku
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSku.Builder
Returns
TypeDescription
ListSkusResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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