public static final class LogicalProduct.Builder extends GeneratedMessage.Builder<LogicalProduct.Builder> implements LogicalProductOrBuilderRepresents an independent service offering that can be provisioned by a customer.
Protobuf type google.cloud.productregistry.v1.LogicalProduct
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > LogicalProduct.BuilderImplements
LogicalProductOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllVariants(Iterable<String> values)
public LogicalProduct.Builder addAllVariants(Iterable<String> values)Output only. Child variant resource references. Format: logicalProducts/{logical_product}/variants/{variant}
repeated string variants = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The variants to add. |
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
This builder for chaining. |
addVariants(String value)
public LogicalProduct.Builder addVariants(String value)Output only. Child variant resource references. Format: logicalProducts/{logical_product}/variants/{variant}
repeated string variants = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe variants to add. |
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
This builder for chaining. |
addVariantsBytes(ByteString value)
public LogicalProduct.Builder addVariantsBytes(ByteString value)Output only. Child variant resource references. Format: logicalProducts/{logical_product}/variants/{variant}
repeated string variants = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the variants to add. |
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
This builder for chaining. |
build()
public LogicalProduct build()| Returns | |
|---|---|
| Type | Description |
LogicalProduct |
|
buildPartial()
public LogicalProduct buildPartial()| Returns | |
|---|---|
| Type | Description |
LogicalProduct |
|
clear()
public LogicalProduct.Builder clear()| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
|
clearLifecycleState()
public LogicalProduct.Builder clearLifecycleState()Output only. Current Lifecycle state of the logical product.
.google.cloud.productregistry.v1.LifecycleState lifecycle_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
This builder for chaining. |
clearName()
public LogicalProduct.Builder clearName()Identifier. The resource name of the LogicalProduct. Format: logicalProducts/{logical_product}.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
This builder for chaining. |
clearProductSuite()
public LogicalProduct.Builder clearProductSuite()Product suite associated with the logical product. Format: productSuites/{product_suite}.
string product_suite = 3 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
This builder for chaining. |
clearReplaced()
public LogicalProduct.Builder clearReplaced() Output only. Indicates whether the logical product has been replaced. If
false, the product is active. If true, the product has been replaced by
another type, and the replacement field contains the resource name of
that replacement.
bool replaced = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
This builder for chaining. |
clearReplacement()
public LogicalProduct.Builder clearReplacement()Output only. The resource name of the Logical Entity that the logical product is replaced by. This field is only populated when this logical product is replaced by some other type. Eg: logicalProducts/{logical_product}/variants/{variant}, productSuites/{product_suite}, etc.
string replacement = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
This builder for chaining. |
clearTitle()
public LogicalProduct.Builder clearTitle()Display name of the LogicalProduct.
string title = 2;
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
This builder for chaining. |
clearVariants()
public LogicalProduct.Builder clearVariants()Output only. Child variant resource references. Format: logicalProducts/{logical_product}/variants/{variant}
repeated string variants = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public LogicalProduct getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
LogicalProduct |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLifecycleState()
public LifecycleState getLifecycleState()Output only. Current Lifecycle state of the logical product.
.google.cloud.productregistry.v1.LifecycleState lifecycle_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
LifecycleState |
The lifecycleState. |
getLifecycleStateValue()
public int getLifecycleStateValue()Output only. Current Lifecycle state of the logical product.
.google.cloud.productregistry.v1.LifecycleState lifecycle_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for lifecycleState. |
getName()
public String getName()Identifier. The resource name of the LogicalProduct. Format: logicalProducts/{logical_product}.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Identifier. The resource name of the LogicalProduct. Format: logicalProducts/{logical_product}.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getProductSuite()
public String getProductSuite()Product suite associated with the logical product. Format: productSuites/{product_suite}.
string product_suite = 3 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The productSuite. |
getProductSuiteBytes()
public ByteString getProductSuiteBytes()Product suite associated with the logical product. Format: productSuites/{product_suite}.
string product_suite = 3 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for productSuite. |
getReplaced()
public boolean getReplaced() Output only. Indicates whether the logical product has been replaced. If
false, the product is active. If true, the product has been replaced by
another type, and the replacement field contains the resource name of
that replacement.
bool replaced = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
The replaced. |
getReplacement()
public String getReplacement()Output only. The resource name of the Logical Entity that the logical product is replaced by. This field is only populated when this logical product is replaced by some other type. Eg: logicalProducts/{logical_product}/variants/{variant}, productSuites/{product_suite}, etc.
string replacement = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The replacement. |
getReplacementBytes()
public ByteString getReplacementBytes()Output only. The resource name of the Logical Entity that the logical product is replaced by. This field is only populated when this logical product is replaced by some other type. Eg: logicalProducts/{logical_product}/variants/{variant}, productSuites/{product_suite}, etc.
string replacement = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for replacement. |
getTitle()
public String getTitle()Display name of the LogicalProduct.
string title = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The title. |
getTitleBytes()
public ByteString getTitleBytes()Display name of the LogicalProduct.
string title = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for title. |
getVariants(int index)
public String getVariants(int index)Output only. Child variant resource references. Format: logicalProducts/{logical_product}/variants/{variant}
repeated string variants = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The variants at the given index. |
getVariantsBytes(int index)
public ByteString getVariantsBytes(int index)Output only. Child variant resource references. Format: logicalProducts/{logical_product}/variants/{variant}
repeated string variants = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the variants at the given index. |
getVariantsCount()
public int getVariantsCount()Output only. Child variant resource references. Format: logicalProducts/{logical_product}/variants/{variant}
repeated string variants = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
int |
The count of variants. |
getVariantsList()
public ProtocolStringList getVariantsList()Output only. Child variant resource references. Format: logicalProducts/{logical_product}/variants/{variant}
repeated string variants = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the variants. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(LogicalProduct other)
public LogicalProduct.Builder mergeFrom(LogicalProduct other)| Parameter | |
|---|---|
| Name | Description |
other |
LogicalProduct |
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LogicalProduct.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public LogicalProduct.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
|
setLifecycleState(LifecycleState value)
public LogicalProduct.Builder setLifecycleState(LifecycleState value)Output only. Current Lifecycle state of the logical product.
.google.cloud.productregistry.v1.LifecycleState lifecycle_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
LifecycleStateThe lifecycleState to set. |
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
This builder for chaining. |
setLifecycleStateValue(int value)
public LogicalProduct.Builder setLifecycleStateValue(int value)Output only. Current Lifecycle state of the logical product.
.google.cloud.productregistry.v1.LifecycleState lifecycle_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for lifecycleState to set. |
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
This builder for chaining. |
setName(String value)
public LogicalProduct.Builder setName(String value)Identifier. The resource name of the LogicalProduct. Format: logicalProducts/{logical_product}.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public LogicalProduct.Builder setNameBytes(ByteString value)Identifier. The resource name of the LogicalProduct. Format: logicalProducts/{logical_product}.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
This builder for chaining. |
setProductSuite(String value)
public LogicalProduct.Builder setProductSuite(String value)Product suite associated with the logical product. Format: productSuites/{product_suite}.
string product_suite = 3 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe productSuite to set. |
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
This builder for chaining. |
setProductSuiteBytes(ByteString value)
public LogicalProduct.Builder setProductSuiteBytes(ByteString value)Product suite associated with the logical product. Format: productSuites/{product_suite}.
string product_suite = 3 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for productSuite to set. |
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
This builder for chaining. |
setReplaced(boolean value)
public LogicalProduct.Builder setReplaced(boolean value) Output only. Indicates whether the logical product has been replaced. If
false, the product is active. If true, the product has been replaced by
another type, and the replacement field contains the resource name of
that replacement.
bool replaced = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe replaced to set. |
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
This builder for chaining. |
setReplacement(String value)
public LogicalProduct.Builder setReplacement(String value)Output only. The resource name of the Logical Entity that the logical product is replaced by. This field is only populated when this logical product is replaced by some other type. Eg: logicalProducts/{logical_product}/variants/{variant}, productSuites/{product_suite}, etc.
string replacement = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe replacement to set. |
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
This builder for chaining. |
setReplacementBytes(ByteString value)
public LogicalProduct.Builder setReplacementBytes(ByteString value)Output only. The resource name of the Logical Entity that the logical product is replaced by. This field is only populated when this logical product is replaced by some other type. Eg: logicalProducts/{logical_product}/variants/{variant}, productSuites/{product_suite}, etc.
string replacement = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for replacement to set. |
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
This builder for chaining. |
setTitle(String value)
public LogicalProduct.Builder setTitle(String value)Display name of the LogicalProduct.
string title = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe title to set. |
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
This builder for chaining. |
setTitleBytes(ByteString value)
public LogicalProduct.Builder setTitleBytes(ByteString value)Display name of the LogicalProduct.
string title = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for title to set. |
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
This builder for chaining. |
setVariants(int index, String value)
public LogicalProduct.Builder setVariants(int index, String value)Output only. Child variant resource references. Format: logicalProducts/{logical_product}/variants/{variant}
repeated string variants = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe variants to set. |
| Returns | |
|---|---|
| Type | Description |
LogicalProduct.Builder |
This builder for chaining. |