public static final class Product.Builder extends GeneratedMessageV3.Builder<Product.Builder> implements ProductOrBuilder
Products for Google SPLA.
Protobuf type google.cloud.licensemanager.v1.Product
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Product.BuilderImplements
ProductOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Product.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Product.Builder |
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. |
clearField(Descriptors.FieldDescriptor field)
public Product.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Product.Builder |
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. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Product.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Product.Builder |
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. |
clone()
public Product.Builder clone()
Returns | |
---|---|
Type | Description |
Product.Builder |
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 GeneratedMessageV3.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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Product.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
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 |
String The 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 |
ByteString The 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 |
String The 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 |
ByteString The bytes for displayName to set. |
Returns | |
---|---|
Type | Description |
Product.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Product.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Product.Builder |
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 |
String The 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 |
ByteString The 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 |
String The 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 |
ByteString The bytes for productCompany to set. |
Returns | |
---|---|
Type | Description |
Product.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Product.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Product.Builder |
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 |
String The 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 |
ByteString The 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.State The 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 |
int The enum numeric value on the wire for state to set. |
Returns | |
---|---|
Type | Description |
Product.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Product.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Product.Builder |
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 |
String The 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 |
ByteString The bytes for version to set. |
Returns | |
---|---|
Type | Description |
Product.Builder |
This builder for chaining. |