Class Sku.Builder (3.52.0)

public static final class Sku.Builder extends GeneratedMessageV3.Builder<Sku.Builder> implements SkuOrBuilder

Represents a product's purchasable Stock Keeping Unit (SKU). SKUs represent the different variations of the product. For example, Google Workspace Business Standard and Google Workspace Business Plus are Google Workspace product SKUs.

Protobuf type google.cloud.channel.v1.Sku

Implements

SkuOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Sku.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Sku.Builder
Overrides

build()

public Sku build()
Returns
Type Description
Sku

buildPartial()

public Sku buildPartial()
Returns
Type Description
Sku

clear()

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

clearField(Descriptors.FieldDescriptor field)

public Sku.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Sku.Builder
Overrides

clearMarketingInfo()

public Sku.Builder clearMarketingInfo()

Marketing information for the SKU.

.google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Returns
Type Description
Sku.Builder

clearName()

public Sku.Builder clearName()

Resource Name of the SKU. Format: products/{product_id}/skus/{sku_id}

string name = 1;

Returns
Type Description
Sku.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Sku.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Sku.Builder
Overrides

clearProduct()

public Sku.Builder clearProduct()

Product the SKU is associated with.

.google.cloud.channel.v1.Product product = 3;

Returns
Type Description
Sku.Builder

clone()

public Sku.Builder clone()
Returns
Type Description
Sku.Builder
Overrides

getDefaultInstanceForType()

public Sku getDefaultInstanceForType()
Returns
Type Description
Sku

getDescriptorForType()

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

getMarketingInfo()

public MarketingInfo getMarketingInfo()

Marketing information for the SKU.

.google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Returns
Type Description
MarketingInfo

The marketingInfo.

getMarketingInfoBuilder()

public MarketingInfo.Builder getMarketingInfoBuilder()

Marketing information for the SKU.

.google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Returns
Type Description
MarketingInfo.Builder

getMarketingInfoOrBuilder()

public MarketingInfoOrBuilder getMarketingInfoOrBuilder()

Marketing information for the SKU.

.google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Returns
Type Description
MarketingInfoOrBuilder

getName()

public String getName()

Resource Name of the SKU. Format: products/{product_id}/skus/{sku_id}

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Resource Name of the SKU. Format: products/{product_id}/skus/{sku_id}

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getProduct()

public Product getProduct()

Product the SKU is associated with.

.google.cloud.channel.v1.Product product = 3;

Returns
Type Description
Product

The product.

getProductBuilder()

public Product.Builder getProductBuilder()

Product the SKU is associated with.

.google.cloud.channel.v1.Product product = 3;

Returns
Type Description
Product.Builder

getProductOrBuilder()

public ProductOrBuilder getProductOrBuilder()

Product the SKU is associated with.

.google.cloud.channel.v1.Product product = 3;

Returns
Type Description
ProductOrBuilder

hasMarketingInfo()

public boolean hasMarketingInfo()

Marketing information for the SKU.

.google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Returns
Type Description
boolean

Whether the marketingInfo field is set.

hasProduct()

public boolean hasProduct()

Product the SKU is associated with.

.google.cloud.channel.v1.Product product = 3;

Returns
Type Description
boolean

Whether the product field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Sku other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMarketingInfo(MarketingInfo value)

public Sku.Builder mergeMarketingInfo(MarketingInfo value)

Marketing information for the SKU.

.google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Parameter
Name Description
value MarketingInfo
Returns
Type Description
Sku.Builder

mergeProduct(Product value)

public Sku.Builder mergeProduct(Product value)

Product the SKU is associated with.

.google.cloud.channel.v1.Product product = 3;

Parameter
Name Description
value Product
Returns
Type Description
Sku.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Sku.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Sku.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Sku.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Sku.Builder
Overrides

setMarketingInfo(MarketingInfo value)

public Sku.Builder setMarketingInfo(MarketingInfo value)

Marketing information for the SKU.

.google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Parameter
Name Description
value MarketingInfo
Returns
Type Description
Sku.Builder

setMarketingInfo(MarketingInfo.Builder builderForValue)

public Sku.Builder setMarketingInfo(MarketingInfo.Builder builderForValue)

Marketing information for the SKU.

.google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Parameter
Name Description
builderForValue MarketingInfo.Builder
Returns
Type Description
Sku.Builder

setName(String value)

public Sku.Builder setName(String value)

Resource Name of the SKU. Format: products/{product_id}/skus/{sku_id}

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Sku.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Sku.Builder setNameBytes(ByteString value)

Resource Name of the SKU. Format: products/{product_id}/skus/{sku_id}

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Sku.Builder

This builder for chaining.

setProduct(Product value)

public Sku.Builder setProduct(Product value)

Product the SKU is associated with.

.google.cloud.channel.v1.Product product = 3;

Parameter
Name Description
value Product
Returns
Type Description
Sku.Builder

setProduct(Product.Builder builderForValue)

public Sku.Builder setProduct(Product.Builder builderForValue)

Product the SKU is associated with.

.google.cloud.channel.v1.Product product = 3;

Parameter
Name Description
builderForValue Product.Builder
Returns
Type Description
Sku.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Sku.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Sku.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Sku.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Sku.Builder
Overrides