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
Fields
MARKETING_INFO_FIELD_NUMBER
public static final int MARKETING_INFO_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstance()
public static Product getDefaultInstance()
Returns
getDefaultInstanceForType()
public Product getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getMarketingInfo()
public MarketingInfo getMarketingInfo()
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
getParserForType()
public Parser<Product> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static Product.Builder newBuilder()
Returns
newBuilder(Product prototype)
public static Product.Builder newBuilder(Product prototype)
Parameter
Returns
newBuilderForType()
public Product.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Product.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static Product parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Product parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Product parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Product parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Product parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Product parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Product parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Product parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Product parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Product parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Product parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Product parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Product> parser()
Returns
toBuilder()
public Product.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions