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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Sku.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Sku buildPartial()
Returns
clear()
public Sku.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Sku.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMarketingInfo()
public Sku.Builder clearMarketingInfo()
Marketing information for the SKU.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Returns
clearName()
public Sku.Builder clearName()
Resource Name of the SKU.
Format: products/{product_id}/skus/{sku_id}
string name = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Sku.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearProduct()
public Sku.Builder clearProduct()
Product the SKU is associated with.
.google.cloud.channel.v1.Product product = 3;
Returns
clone()
public Sku.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Sku getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMarketingInfo()
public MarketingInfo getMarketingInfo()
Marketing information for the SKU.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Returns
getMarketingInfoBuilder()
public MarketingInfo.Builder getMarketingInfoBuilder()
Marketing information for the SKU.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Returns
getMarketingInfoOrBuilder()
public MarketingInfoOrBuilder getMarketingInfoOrBuilder()
Marketing information for the SKU.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Returns
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
getProduct()
public Product getProduct()
Product the SKU is associated with.
.google.cloud.channel.v1.Product product = 3;
Returns
getProductBuilder()
public Product.Builder getProductBuilder()
Product the SKU is associated with.
.google.cloud.channel.v1.Product product = 3;
Returns
getProductOrBuilder()
public ProductOrBuilder getProductOrBuilder()
Product the SKU is associated with.
.google.cloud.channel.v1.Product product = 3;
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Sku other)
public Sku.Builder mergeFrom(Sku other)
Parameter
Returns
public Sku.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Sku.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeMarketingInfo(MarketingInfo value)
public Sku.Builder mergeMarketingInfo(MarketingInfo value)
Marketing information for the SKU.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Parameter
Returns
mergeProduct(Product value)
public Sku.Builder mergeProduct(Product value)
Product the SKU is associated with.
.google.cloud.channel.v1.Product product = 3;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Sku.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Sku.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setMarketingInfo(MarketingInfo value)
public Sku.Builder setMarketingInfo(MarketingInfo value)
Marketing information for the SKU.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Parameter
Returns
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
Returns
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
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
setProduct(Product value)
public Sku.Builder setProduct(Product value)
Product the SKU is associated with.
.google.cloud.channel.v1.Product product = 3;
Parameter
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Sku.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Sku.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides