Send feedback
Class Product.Builder (3.7.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.7.0 keyboard_arrow_down
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
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-27 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-27 UTC."],[],[]]