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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Sku.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
Returns |
---|
Type | Description |
Sku | |
buildPartial()
public Sku buildPartial()
Returns |
---|
Type | Description |
Sku | |
clear()
public Sku.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Sku.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearMarketingInfo()
public Sku.Builder clearMarketingInfo()
Marketing information for the SKU.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
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)
Overrides
clearProduct()
public Sku.Builder clearProduct()
Product the SKU is associated with.
.google.cloud.channel.v1.Product product = 3;
clone()
public Sku.Builder clone()
Overrides
getDefaultInstanceForType()
public Sku getDefaultInstanceForType()
Returns |
---|
Type | Description |
Sku | |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMarketingInfo()
public MarketingInfo getMarketingInfo()
Marketing information for the SKU.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
getMarketingInfoBuilder()
public MarketingInfo.Builder getMarketingInfoBuilder()
Marketing information for the SKU.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
getMarketingInfoOrBuilder()
public MarketingInfoOrBuilder getMarketingInfoOrBuilder()
Marketing information for the SKU.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
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;
getProductOrBuilder()
public ProductOrBuilder getProductOrBuilder()
Product the SKU is associated with.
.google.cloud.channel.v1.Product product = 3;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Sku other)
public Sku.Builder mergeFrom(Sku other)
Parameter |
---|
Name | Description |
other | Sku
|
public Sku.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Sku.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeMarketingInfo(MarketingInfo value)
public Sku.Builder mergeMarketingInfo(MarketingInfo value)
Marketing information for the SKU.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
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
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Sku.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Sku.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setMarketingInfo(MarketingInfo value)
public Sku.Builder setMarketingInfo(MarketingInfo value)
Marketing information for the SKU.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
setMarketingInfo(MarketingInfo.Builder builderForValue)
public Sku.Builder setMarketingInfo(MarketingInfo.Builder builderForValue)
Marketing information for the SKU.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
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
|
setProduct(Product.Builder builderForValue)
public Sku.Builder setProduct(Product.Builder builderForValue)
Product the SKU is associated with.
.google.cloud.channel.v1.Product product = 3;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Sku.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Sku.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides