public static final class Product.Builder extends GeneratedMessageV3.Builder<Product.Builder> implements ProductOrBuilder
A Product is the entity a customer uses when placing an order. For example,
Google Workspace, Google Voice, etc.
Protobuf type google.cloud.channel.v1.Product
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Product.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Product buildPartial()
Returns
clear()
public Product.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Product.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMarketingInfo()
public Product.Builder clearMarketingInfo()
Marketing information for the product.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Returns
clearName()
public Product.Builder clearName()
Resource Name of the Product.
Format: products/{product_id}
string name = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Product.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public Product.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Product getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMarketingInfo()
public MarketingInfo getMarketingInfo()
Marketing information for the product.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Returns
getMarketingInfoBuilder()
public MarketingInfo.Builder getMarketingInfoBuilder()
Marketing information for the product.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Returns
getMarketingInfoOrBuilder()
public MarketingInfoOrBuilder getMarketingInfoOrBuilder()
Marketing information for the product.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Returns
getName()
Resource Name of the Product.
Format: products/{product_id}
string name = 1;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Resource Name of the Product.
Format: products/{product_id}
string name = 1;
Returns
hasMarketingInfo()
public boolean hasMarketingInfo()
Marketing information for the product.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Returns
Type | Description |
boolean | Whether the marketingInfo field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Product other)
public Product.Builder mergeFrom(Product other)
Parameter
Returns
public Product.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Product.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeMarketingInfo(MarketingInfo value)
public Product.Builder mergeMarketingInfo(MarketingInfo value)
Marketing information for the product.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Product.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Product.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setMarketingInfo(MarketingInfo value)
public Product.Builder setMarketingInfo(MarketingInfo value)
Marketing information for the product.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Parameter
Returns
setMarketingInfo(MarketingInfo.Builder builderForValue)
public Product.Builder setMarketingInfo(MarketingInfo.Builder builderForValue)
Marketing information for the product.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Parameter
Returns
setName(String value)
public Product.Builder setName(String value)
Resource Name of the Product.
Format: products/{product_id}
string name = 1;
Parameter
Name | Description |
value | String
The name to set.
|
Returns
setNameBytes(ByteString value)
public Product.Builder setNameBytes(ByteString value)
Resource Name of the Product.
Format: products/{product_id}
string name = 1;
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Product.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Product.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides