Class SkuGroup.Builder (0.1.0)

public static final class SkuGroup.Builder extends GeneratedMessage.Builder<SkuGroup.Builder> implements SkuGroupOrBuilder

Message describing SkuGroup resource

Protobuf type google.cloud.commerceproducer.v1beta.SkuGroup

Implements

SkuGroupOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllCloudBillingSkus(Iterable<String> values)

public SkuGroup.Builder addAllCloudBillingSkus(Iterable<String> values)

Output only. Google SKUs included in the SkuGroup.

Used for partner products sold by Google, such as Premium Operating System Images sold for use in Compute Engine. This is not common. SKUs of this type are not present on this API and can instead be found on the Cloud Billing API or at https://cloud.google.com/skus.

Format: services/{service}/skus/{sku}

repeated string cloud_billing_skus = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The cloudBillingSkus to add.

Returns
Type Description
SkuGroup.Builder

This builder for chaining.

addAllSkus(Iterable<String> values)

public SkuGroup.Builder addAllSkus(Iterable<String> values)

Output only. Partner SKUs included in the SkuGroup. Format: projects/{project}/locations/{location}/services/{service}/skus/{sku}

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

Parameter
Name Description
values Iterable<String>

The skus to add.

Returns
Type Description
SkuGroup.Builder

This builder for chaining.

addCloudBillingSkus(String value)

public SkuGroup.Builder addCloudBillingSkus(String value)

Output only. Google SKUs included in the SkuGroup.

Used for partner products sold by Google, such as Premium Operating System Images sold for use in Compute Engine. This is not common. SKUs of this type are not present on this API and can instead be found on the Cloud Billing API or at https://cloud.google.com/skus.

Format: services/{service}/skus/{sku}

repeated string cloud_billing_skus = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The cloudBillingSkus to add.

Returns
Type Description
SkuGroup.Builder

This builder for chaining.

addCloudBillingSkusBytes(ByteString value)

public SkuGroup.Builder addCloudBillingSkusBytes(ByteString value)

Output only. Google SKUs included in the SkuGroup.

Used for partner products sold by Google, such as Premium Operating System Images sold for use in Compute Engine. This is not common. SKUs of this type are not present on this API and can instead be found on the Cloud Billing API or at https://cloud.google.com/skus.

Format: services/{service}/skus/{sku}

repeated string cloud_billing_skus = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the cloudBillingSkus to add.

Returns
Type Description
SkuGroup.Builder

This builder for chaining.

addSkus(String value)

public SkuGroup.Builder addSkus(String value)

Output only. Partner SKUs included in the SkuGroup. Format: projects/{project}/locations/{location}/services/{service}/skus/{sku}

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

Parameter
Name Description
value String

The skus to add.

Returns
Type Description
SkuGroup.Builder

This builder for chaining.

addSkusBytes(ByteString value)

public SkuGroup.Builder addSkusBytes(ByteString value)

Output only. Partner SKUs included in the SkuGroup. Format: projects/{project}/locations/{location}/services/{service}/skus/{sku}

repeated string skus = 2 [(.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
SkuGroup.Builder

This builder for chaining.

build()

public SkuGroup build()
Returns
Type Description
SkuGroup

buildPartial()

public SkuGroup buildPartial()
Returns
Type Description
SkuGroup

clear()

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

clearCloudBillingSkus()

public SkuGroup.Builder clearCloudBillingSkus()

Output only. Google SKUs included in the SkuGroup.

Used for partner products sold by Google, such as Premium Operating System Images sold for use in Compute Engine. This is not common. SKUs of this type are not present on this API and can instead be found on the Cloud Billing API or at https://cloud.google.com/skus.

Format: services/{service}/skus/{sku}

repeated string cloud_billing_skus = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SkuGroup.Builder

This builder for chaining.

clearName()

public SkuGroup.Builder clearName()

Output only. Identifier. Name of the SkuGroup.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
SkuGroup.Builder

This builder for chaining.

clearSkus()

public SkuGroup.Builder clearSkus()

Output only. Partner SKUs included in the SkuGroup. Format: projects/{project}/locations/{location}/services/{service}/skus/{sku}

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

Returns
Type Description
SkuGroup.Builder

This builder for chaining.

getCloudBillingSkus(int index)

public String getCloudBillingSkus(int index)

Output only. Google SKUs included in the SkuGroup.

Used for partner products sold by Google, such as Premium Operating System Images sold for use in Compute Engine. This is not common. SKUs of this type are not present on this API and can instead be found on the Cloud Billing API or at https://cloud.google.com/skus.

Format: services/{service}/skus/{sku}

repeated string cloud_billing_skus = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The cloudBillingSkus at the given index.

getCloudBillingSkusBytes(int index)

public ByteString getCloudBillingSkusBytes(int index)

Output only. Google SKUs included in the SkuGroup.

Used for partner products sold by Google, such as Premium Operating System Images sold for use in Compute Engine. This is not common. SKUs of this type are not present on this API and can instead be found on the Cloud Billing API or at https://cloud.google.com/skus.

Format: services/{service}/skus/{sku}

repeated string cloud_billing_skus = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the cloudBillingSkus at the given index.

getCloudBillingSkusCount()

public int getCloudBillingSkusCount()

Output only. Google SKUs included in the SkuGroup.

Used for partner products sold by Google, such as Premium Operating System Images sold for use in Compute Engine. This is not common. SKUs of this type are not present on this API and can instead be found on the Cloud Billing API or at https://cloud.google.com/skus.

Format: services/{service}/skus/{sku}

repeated string cloud_billing_skus = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of cloudBillingSkus.

getCloudBillingSkusList()

public ProtocolStringList getCloudBillingSkusList()

Output only. Google SKUs included in the SkuGroup.

Used for partner products sold by Google, such as Premium Operating System Images sold for use in Compute Engine. This is not common. SKUs of this type are not present on this API and can instead be found on the Cloud Billing API or at https://cloud.google.com/skus.

Format: services/{service}/skus/{sku}

repeated string cloud_billing_skus = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the cloudBillingSkus.

getDefaultInstanceForType()

public SkuGroup getDefaultInstanceForType()
Returns
Type Description
SkuGroup

getDescriptorForType()

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

getName()

public String getName()

Output only. Identifier. Name of the SkuGroup.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Identifier. Name of the SkuGroup.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getSkus(int index)

public String getSkus(int index)

Output only. Partner SKUs included in the SkuGroup. Format: projects/{project}/locations/{location}/services/{service}/skus/{sku}

repeated string skus = 2 [(.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. Partner SKUs included in the SkuGroup. Format: projects/{project}/locations/{location}/services/{service}/skus/{sku}

repeated string skus = 2 [(.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. Partner SKUs included in the SkuGroup. Format: projects/{project}/locations/{location}/services/{service}/skus/{sku}

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

Returns
Type Description
int

The count of skus.

getSkusList()

public ProtocolStringList getSkusList()

Output only. Partner SKUs included in the SkuGroup. Format: projects/{project}/locations/{location}/services/{service}/skus/{sku}

repeated string skus = 2 [(.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(SkuGroup other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCloudBillingSkus(int index, String value)

public SkuGroup.Builder setCloudBillingSkus(int index, String value)

Output only. Google SKUs included in the SkuGroup.

Used for partner products sold by Google, such as Premium Operating System Images sold for use in Compute Engine. This is not common. SKUs of this type are not present on this API and can instead be found on the Cloud Billing API or at https://cloud.google.com/skus.

Format: services/{service}/skus/{sku}

repeated string cloud_billing_skus = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The cloudBillingSkus to set.

Returns
Type Description
SkuGroup.Builder

This builder for chaining.

setName(String value)

public SkuGroup.Builder setName(String value)

Output only. Identifier. Name of the SkuGroup.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SkuGroup.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SkuGroup.Builder setNameBytes(ByteString value)

Output only. Identifier. Name of the SkuGroup.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SkuGroup.Builder

This builder for chaining.

setSkus(int index, String value)

public SkuGroup.Builder setSkus(int index, String value)

Output only. Partner SKUs included in the SkuGroup. Format: projects/{project}/locations/{location}/services/{service}/skus/{sku}

repeated string skus = 2 [(.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
SkuGroup.Builder

This builder for chaining.