Class StandardOffer.PriceModel.SkuGroupList.Builder (0.1.0)

public static final class StandardOffer.PriceModel.SkuGroupList.Builder extends GeneratedMessage.Builder<StandardOffer.PriceModel.SkuGroupList.Builder> implements StandardOffer.PriceModel.SkuGroupListOrBuilder

A collection of SkuGroups.

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

Static Methods

getDescriptor()

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

Methods

addAllSkuGroups(Iterable<String> values)

public StandardOffer.PriceModel.SkuGroupList.Builder addAllSkuGroups(Iterable<String> values)

Output only. List of SkuGroups by name.

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

Parameter
Name Description
values Iterable<String>

The skuGroups to add.

Returns
Type Description
StandardOffer.PriceModel.SkuGroupList.Builder

This builder for chaining.

addSkuGroups(String value)

public StandardOffer.PriceModel.SkuGroupList.Builder addSkuGroups(String value)

Output only. List of SkuGroups by name.

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

Parameter
Name Description
value String

The skuGroups to add.

Returns
Type Description
StandardOffer.PriceModel.SkuGroupList.Builder

This builder for chaining.

addSkuGroupsBytes(ByteString value)

public StandardOffer.PriceModel.SkuGroupList.Builder addSkuGroupsBytes(ByteString value)

Output only. List of SkuGroups by name.

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

Parameter
Name Description
value ByteString

The bytes of the skuGroups to add.

Returns
Type Description
StandardOffer.PriceModel.SkuGroupList.Builder

This builder for chaining.

build()

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

buildPartial()

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

clear()

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

clearSkuGroups()

public StandardOffer.PriceModel.SkuGroupList.Builder clearSkuGroups()

Output only. List of SkuGroups by name.

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

Returns
Type Description
StandardOffer.PriceModel.SkuGroupList.Builder

This builder for chaining.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getSkuGroups(int index)

public String getSkuGroups(int index)

Output only. List of SkuGroups by name.

repeated string sku_groups = 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 skuGroups at the given index.

getSkuGroupsBytes(int index)

public ByteString getSkuGroupsBytes(int index)

Output only. List of SkuGroups by name.

repeated string sku_groups = 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 skuGroups at the given index.

getSkuGroupsCount()

public int getSkuGroupsCount()

Output only. List of SkuGroups by name.

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

Returns
Type Description
int

The count of skuGroups.

getSkuGroupsList()

public ProtocolStringList getSkuGroupsList()

Output only. List of SkuGroups by name.

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

Returns
Type Description
ProtocolStringList

A list containing the skuGroups.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StandardOffer.PriceModel.SkuGroupList other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setSkuGroups(int index, String value)

public StandardOffer.PriceModel.SkuGroupList.Builder setSkuGroups(int index, String value)

Output only. List of SkuGroups by name.

repeated string sku_groups = 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 skuGroups to set.

Returns
Type Description
StandardOffer.PriceModel.SkuGroupList.Builder

This builder for chaining.