Send feedback
Class Sku.Builder (3.15.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.15.0 keyboard_arrow_down
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.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 ()
Returns
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
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]