Class Product.Builder (3.6.0)

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

Implements

ProductOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Product.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Product.Builder
Overrides

build()

public Product build()
Returns
TypeDescription
Product

buildPartial()

public Product buildPartial()
Returns
TypeDescription
Product

clear()

public Product.Builder clear()
Returns
TypeDescription
Product.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Product.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Product.Builder
Overrides

clearMarketingInfo()

public Product.Builder clearMarketingInfo()

Marketing information for the product.

.google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Returns
TypeDescription
Product.Builder

clearName()

public Product.Builder clearName()

Resource Name of the Product. Format: products/{product_id}

string name = 1;

Returns
TypeDescription
Product.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Product.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Product.Builder
Overrides

clone()

public Product.Builder clone()
Returns
TypeDescription
Product.Builder
Overrides

getDefaultInstanceForType()

public Product getDefaultInstanceForType()
Returns
TypeDescription
Product

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMarketingInfo()

public MarketingInfo getMarketingInfo()

Marketing information for the product.

.google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Returns
TypeDescription
MarketingInfo

The marketingInfo.

getMarketingInfoBuilder()

public MarketingInfo.Builder getMarketingInfoBuilder()

Marketing information for the product.

.google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Returns
TypeDescription
MarketingInfo.Builder

getMarketingInfoOrBuilder()

public MarketingInfoOrBuilder getMarketingInfoOrBuilder()

Marketing information for the product.

.google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Returns
TypeDescription
MarketingInfoOrBuilder

getName()

public String getName()

Resource Name of the Product. Format: products/{product_id}

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Resource Name of the Product. Format: products/{product_id}

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

hasMarketingInfo()

public boolean hasMarketingInfo()

Marketing information for the product.

.google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Returns
TypeDescription
boolean

Whether the marketingInfo field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Product other)

public Product.Builder mergeFrom(Product other)
Parameter
NameDescription
otherProduct
Returns
TypeDescription
Product.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Product.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Product.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Product.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Product.Builder
Overrides

mergeMarketingInfo(MarketingInfo value)

public Product.Builder mergeMarketingInfo(MarketingInfo value)

Marketing information for the product.

.google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Parameter
NameDescription
valueMarketingInfo
Returns
TypeDescription
Product.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Product.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Product.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Product.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Product.Builder
Overrides

setMarketingInfo(MarketingInfo value)

public Product.Builder setMarketingInfo(MarketingInfo value)

Marketing information for the product.

.google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Parameter
NameDescription
valueMarketingInfo
Returns
TypeDescription
Product.Builder

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
NameDescription
builderForValueMarketingInfo.Builder
Returns
TypeDescription
Product.Builder

setName(String value)

public Product.Builder setName(String value)

Resource Name of the Product. Format: products/{product_id}

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Product.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Product.Builder setNameBytes(ByteString value)

Resource Name of the Product. Format: products/{product_id}

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Product.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Product.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Product.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Product.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Product.Builder
Overrides