public static final class StandardOffer.PriceModel.SkuList.Builder extends GeneratedMessage.Builder<StandardOffer.PriceModel.SkuList.Builder> implements StandardOffer.PriceModel.SkuListOrBuilderA collection of SKUs.
Protobuf type google.cloud.commerceproducer.v1beta.StandardOffer.PriceModel.SkuList
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > StandardOffer.PriceModel.SkuList.BuilderImplements
StandardOffer.PriceModel.SkuListOrBuilderStatic 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 |
StringThe 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 |
ByteStringThe 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 |
|
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 |
|
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 |
intThe 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 |
intThe 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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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 |
intThe index to set the value at. |
value |
StringThe skus to set. |
| Returns | |
|---|---|
| Type | Description |
StandardOffer.PriceModel.SkuList.Builder |
This builder for chaining. |