public static final class Product.Builder extends GeneratedMessage.Builder<Product.Builder> implements ProductOrBuilderProducts for Google SPLA.
Protobuf type google.cloud.licensemanager.v1.Product
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Product.BuilderImplements
ProductOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Product build()| Returns | |
|---|---|
| Type | Description |
Product |
|
buildPartial()
public Product buildPartial()| Returns | |
|---|---|
| Type | Description |
Product |
|
clear()
public Product.Builder clear()| Returns | |
|---|---|
| Type | Description |
Product.Builder |
|
clearDescription()
public Product.Builder clearDescription()Required. Human-readable, detailed description of the Product
string description = 6 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
This builder for chaining. |
clearDisplayName()
public Product.Builder clearDisplayName()Required. Human-readable name of the Product
string display_name = 7 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
This builder for chaining. |
clearName()
public Product.Builder clearName()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 |
Product.Builder |
This builder for chaining. |
clearProductCompany()
public Product.Builder clearProductCompany()Required. Company that released the product.
string product_company = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
This builder for chaining. |
clearSku()
public Product.Builder clearSku()Required. SKU for mapping to the Billing/Subscription resource.
string sku = 5 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
This builder for chaining. |
clearState()
public Product.Builder clearState()Output only. State of the product.
.google.cloud.licensemanager.v1.Product.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
This builder for chaining. |
clearVersion()
public Product.Builder clearVersion()Required. Version of the product.
string version = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Product getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Product |
|
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. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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()
public String 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. |
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. |
getSku()
public String 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];
| Returns | |
|---|---|
| Type | Description |
Product.State |
The state. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Product other)
public Product.Builder mergeFrom(Product other)| Parameter | |
|---|---|
| Name | Description |
other |
Product |
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Product.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Product.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
|
setDescription(String value)
public Product.Builder setDescription(String value)Required. Human-readable, detailed description of the Product
string description = 6 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public Product.Builder setDescriptionBytes(ByteString value)Required. Human-readable, detailed description of the Product
string description = 6 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
This builder for chaining. |
setDisplayName(String value)
public Product.Builder setDisplayName(String value)Required. Human-readable name of the Product
string display_name = 7 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe displayName to set. |
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public Product.Builder setDisplayNameBytes(ByteString value)Required. Human-readable name of the Product
string display_name = 7 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for displayName to set. |
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
This builder for chaining. |
setName(String value)
public Product.Builder setName(String value)Identifier. Full name of the product resource. ex "projects/1/locations/us-central1/products/office-2021"
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Product.Builder setNameBytes(ByteString value)Identifier. Full name of the product resource. ex "projects/1/locations/us-central1/products/office-2021"
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
This builder for chaining. |
setProductCompany(String value)
public Product.Builder setProductCompany(String value)Required. Company that released the product.
string product_company = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe productCompany to set. |
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
This builder for chaining. |
setProductCompanyBytes(ByteString value)
public Product.Builder setProductCompanyBytes(ByteString value)Required. Company that released the product.
string product_company = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for productCompany to set. |
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
This builder for chaining. |
setSku(String value)
public Product.Builder setSku(String value)Required. SKU for mapping to the Billing/Subscription resource.
string sku = 5 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe sku to set. |
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
This builder for chaining. |
setSkuBytes(ByteString value)
public Product.Builder setSkuBytes(ByteString value)Required. SKU for mapping to the Billing/Subscription resource.
string sku = 5 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for sku to set. |
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
This builder for chaining. |
setState(Product.State value)
public Product.Builder setState(Product.State value)Output only. State of the product.
.google.cloud.licensemanager.v1.Product.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Product.StateThe state to set. |
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
This builder for chaining. |
setStateValue(int value)
public Product.Builder setStateValue(int value)Output only. State of the product.
.google.cloud.licensemanager.v1.Product.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
This builder for chaining. |
setVersion(String value)
public Product.Builder setVersion(String value)Required. Version of the product.
string version = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe version to set. |
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
This builder for chaining. |
setVersionBytes(ByteString value)
public Product.Builder setVersionBytes(ByteString value)Required. Version of the product.
string version = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for version to set. |
| Returns | |
|---|---|
| Type | Description |
Product.Builder |
This builder for chaining. |