Class Product (3.33.0)

public final class Product extends GeneratedMessageV3 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 Fields

MARKETING_INFO_FIELD_NUMBER

public static final int MARKETING_INFO_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Product getDefaultInstance()
Returns
TypeDescription
Product

getDescriptor()

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

newBuilder()

public static Product.Builder newBuilder()
Returns
TypeDescription
Product.Builder

newBuilder(Product prototype)

public static Product.Builder newBuilder(Product prototype)
Parameter
NameDescription
prototypeProduct
Returns
TypeDescription
Product.Builder

parseDelimitedFrom(InputStream input)

public static Product parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Product
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Product parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Product
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Product parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Product
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Product parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Product
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Product parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Product
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Product parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Product
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Product parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Product
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Product parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Product
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Product parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Product
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Product parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Product
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Product parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Product
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Product parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Product
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Product> parser()
Returns
TypeDescription
Parser<Product>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Product getDefaultInstanceForType()
Returns
TypeDescription
Product

getMarketingInfo()

public MarketingInfo getMarketingInfo()

Marketing information for the product.

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

Returns
TypeDescription
MarketingInfo

The marketingInfo.

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.

getParserForType()

public Parser<Product> getParserForType()
Returns
TypeDescription
Parser<Product>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Product.Builder newBuilderForType()
Returns
TypeDescription
Product.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Product.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Product.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Product.Builder toBuilder()
Returns
TypeDescription
Product.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException