Send feedback
Class Product (0.1.0)
Stay organized with collections
Save and categorize content based on your preferences.
public final class Product extends GeneratedMessageV3 implements ProductOrBuilder
Products for Google SPLA.
Protobuf type google.cloud.licensemanager.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>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type
Description
int
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type
Description
int
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
Type
Description
int
PRODUCT_COMPANY_FIELD_NUMBER
public static final int PRODUCT_COMPANY_FIELD_NUMBER
Field Value
Type
Description
int
SKU_FIELD_NUMBER
public static final int SKU_FIELD_NUMBER
Field Value
Type
Description
int
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field Value
Type
Description
int
VERSION_FIELD_NUMBER
public static final int VERSION_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 ()
getDescription()
public String getDescription ()
Required. Human-readable, detailed description of the Product
string description = 6 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The description.
getDescriptionBytes()
public ByteString getDescriptionBytes ()
Required. Human-readable, detailed description of the Product
string description = 6 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for description.
getDisplayName()
public String getDisplayName ()
Required. Human-readable name of the Product
string display_name = 7 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The displayName.
getDisplayNameBytes()
public ByteString getDisplayNameBytes ()
Required. Human-readable name of the Product
string display_name = 7 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for displayName.
getName()
Identifier. Full name of the product resource.
ex "projects/1/locations/us-central1/products/office-2021"
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns
Type
Description
String
The name.
getNameBytes()
public ByteString getNameBytes ()
Identifier. Full name of the product resource.
ex "projects/1/locations/us-central1/products/office-2021"
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns
Type
Description
ByteString
The bytes for name.
getParserForType()
public Parser<Product> getParserForType ()
Overrides
getProductCompany()
public String getProductCompany ()
Required. Company that released the product.
string product_company = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The productCompany.
getProductCompanyBytes()
public ByteString getProductCompanyBytes ()
Required. Company that released the product.
string product_company = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for productCompany.
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getSku()
Required. SKU for mapping to the Billing/Subscription resource.
string sku = 5 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The sku.
getSkuBytes()
public ByteString getSkuBytes ()
Required. SKU for mapping to the Billing/Subscription resource.
string sku = 5 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for sku.
getState()
public Product . State getState ()
Output only. State of the product.
.google.cloud.licensemanager.v1.Product.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue()
public int getStateValue ()
Output only. State of the product.
.google.cloud.licensemanager.v1.Product.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
int
The enum numeric value on the wire for state.
getVersion()
public String getVersion ()
Required. Version of the product.
string version = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The version.
getVersionBytes()
public ByteString getVersionBytes ()
Required. Version of the product.
string version = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for version.
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 )
Returns
Type
Description
Object
Overrides
toBuilder()
public Product . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
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-08-01 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-08-01 UTC."],[],[]]