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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
MARKETING_INFO_FIELD_NUMBER
public static final int MARKETING_INFO_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static Product getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Product.Builder newBuilder()
newBuilder(Product prototype)
public static Product.Builder newBuilder(Product prototype)
Parameter |
---|
Name | Description |
prototype | Product
|
public static Product parseDelimitedFrom(InputStream input)
public static Product parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Product parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Product parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Product parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Product parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Product parseFrom(CodedInputStream input)
public static Product parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Product parseFrom(InputStream input)
public static Product parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Product parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Product parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Product> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public Product getDefaultInstanceForType()
getMarketingInfo()
public MarketingInfo getMarketingInfo()
Marketing information for the product.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
getMarketingInfoOrBuilder()
public MarketingInfoOrBuilder getMarketingInfoOrBuilder()
Marketing information for the product.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
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 |
---|
Type | Description |
ByteString | The bytes for name.
|
getParserForType()
public Parser<Product> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
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 |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Product.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Product.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Product.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides