Class StandardOffer.PriceModel.SkuList.Builder (0.1.0)

public static final class StandardOffer.PriceModel.SkuList.Builder extends GeneratedMessage.Builder<StandardOffer.PriceModel.SkuList.Builder> implements StandardOffer.PriceModel.SkuListOrBuilder

A collection of SKUs.

Protobuf type google.cloud.commerceproducer.v1beta.StandardOffer.PriceModel.SkuList

Static Methods

getDescriptor()

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

Methods

addAllSkus(Iterable<String> values)

public StandardOffer.PriceModel.SkuList.Builder addAllSkus(Iterable<String> values)

Output only. List of SKUs by name.

repeated string skus = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The skus to add.

Returns
Type Description
StandardOffer.PriceModel.SkuList.Builder

This builder for chaining.

addSkus(String value)

public StandardOffer.PriceModel.SkuList.Builder addSkus(String value)

Output only. List of SKUs by name.

repeated string skus = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The skus to add.

Returns
Type Description
StandardOffer.PriceModel.SkuList.Builder

This builder for chaining.

addSkusBytes(ByteString value)

public StandardOffer.PriceModel.SkuList.Builder addSkusBytes(ByteString value)

Output only. List of SKUs by name.

repeated string skus = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the skus to add.

Returns
Type Description
StandardOffer.PriceModel.SkuList.Builder

This builder for chaining.

build()

public StandardOffer.PriceModel.SkuList build()
Returns
Type Description
StandardOffer.PriceModel.SkuList

buildPartial()

public StandardOffer.PriceModel.SkuList buildPartial()
Returns
Type Description
StandardOffer.PriceModel.SkuList

clear()

public StandardOffer.PriceModel.SkuList.Builder clear()
Returns
Type Description
StandardOffer.PriceModel.SkuList.Builder
Overrides

clearSkus()

public StandardOffer.PriceModel.SkuList.Builder clearSkus()

Output only. List of SKUs by name.

repeated string skus = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
StandardOffer.PriceModel.SkuList.Builder

This builder for chaining.

getDefaultInstanceForType()

public StandardOffer.PriceModel.SkuList getDefaultInstanceForType()
Returns
Type Description
StandardOffer.PriceModel.SkuList

getDescriptorForType()

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

getSkus(int index)

public String getSkus(int index)

Output only. List of SKUs by name.

repeated string skus = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

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)

Output only. List of SKUs by name.

repeated string skus = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

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()

Output only. List of SKUs by name.

repeated string skus = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of skus.

getSkusList()

public ProtocolStringList getSkusList()

Output only. List of SKUs by name.

repeated string skus = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the skus.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StandardOffer.PriceModel.SkuList other)

public StandardOffer.PriceModel.SkuList.Builder mergeFrom(StandardOffer.PriceModel.SkuList other)
Parameter
Name Description
other StandardOffer.PriceModel.SkuList
Returns
Type Description
StandardOffer.PriceModel.SkuList.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public StandardOffer.PriceModel.SkuList.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StandardOffer.PriceModel.SkuList.Builder
Overrides

setSkus(int index, String value)

public StandardOffer.PriceModel.SkuList.Builder setSkus(int index, String value)

Output only. List of SKUs by name.

repeated string skus = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The skus to set.

Returns
Type Description
StandardOffer.PriceModel.SkuList.Builder

This builder for chaining.