Class LogicalProductVariant.Builder (0.1.0)

public static final class LogicalProductVariant.Builder extends GeneratedMessage.Builder<LogicalProductVariant.Builder> implements LogicalProductVariantOrBuilder

Represents a distinct offering derived from a primary product that retains core functionalities but offers specialized features for a specific market segment.

Protobuf type google.cloud.productregistry.v1.LogicalProductVariant

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public LogicalProductVariant build()
Returns
Type Description
LogicalProductVariant

buildPartial()

public LogicalProductVariant buildPartial()
Returns
Type Description
LogicalProductVariant

clear()

public LogicalProductVariant.Builder clear()
Returns
Type Description
LogicalProductVariant.Builder
Overrides

clearLifecycleState()

public LogicalProductVariant.Builder clearLifecycleState()

Output only. Current Lifecycle state of the logical product variant.

.google.cloud.productregistry.v1.LifecycleState lifecycle_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LogicalProductVariant.Builder

This builder for chaining.

clearName()

public LogicalProductVariant.Builder clearName()

Identifier. The resource name of the LogicalProductVariant. Format: logicalProducts/{logical_product}/variants/{variant}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
LogicalProductVariant.Builder

This builder for chaining.

clearReplaced()

public LogicalProductVariant.Builder clearReplaced()

Output only. Indicates whether the logical product variant has been replaced. If false, the variant is active. If true, the variant has been replaced by another type, and the replacement field contains the resource name of that replacement.

bool replaced = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LogicalProductVariant.Builder

This builder for chaining.

clearReplacement()

public LogicalProductVariant.Builder clearReplacement()

Output only. The resource name of the Logical Entity that the logical product variant is replaced by. This field is only populated when this logical product variant is replaced by some other type. Eg: logicalProducts/{logical_product}, productSuites/{product_suite}, etc.

string replacement = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
LogicalProductVariant.Builder

This builder for chaining.

clearTitle()

public LogicalProductVariant.Builder clearTitle()

Display name of the LogicalProductVariant.

string title = 2;

Returns
Type Description
LogicalProductVariant.Builder

This builder for chaining.

getDefaultInstanceForType()

public LogicalProductVariant getDefaultInstanceForType()
Returns
Type Description
LogicalProductVariant

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLifecycleState()

public LifecycleState getLifecycleState()

Output only. Current Lifecycle state of the logical product variant.

.google.cloud.productregistry.v1.LifecycleState lifecycle_state = 3 [(.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 variant.

.google.cloud.productregistry.v1.LifecycleState lifecycle_state = 3 [(.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 LogicalProductVariant. Format: logicalProducts/{logical_product}/variants/{variant}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the LogicalProductVariant. Format: logicalProducts/{logical_product}/variants/{variant}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getReplaced()

public boolean getReplaced()

Output only. Indicates whether the logical product variant has been replaced. If false, the variant is active. If true, the variant has been replaced by another type, and the replacement field contains the resource name of that replacement.

bool replaced = 4 [(.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 variant is replaced by. This field is only populated when this logical product variant is replaced by some other type. Eg: logicalProducts/{logical_product}, productSuites/{product_suite}, etc.

string replacement = 5 [(.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 variant is replaced by. This field is only populated when this logical product variant is replaced by some other type. Eg: logicalProducts/{logical_product}, productSuites/{product_suite}, etc.

string replacement = 5 [(.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 LogicalProductVariant.

string title = 2;

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Display name of the LogicalProductVariant.

string title = 2;

Returns
Type Description
ByteString

The bytes for title.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LogicalProductVariant other)

public LogicalProductVariant.Builder mergeFrom(LogicalProductVariant other)
Parameter
Name Description
other LogicalProductVariant
Returns
Type Description
LogicalProductVariant.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LogicalProductVariant.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogicalProductVariant.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LogicalProductVariant.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LogicalProductVariant.Builder
Overrides

setLifecycleState(LifecycleState value)

public LogicalProductVariant.Builder setLifecycleState(LifecycleState value)

Output only. Current Lifecycle state of the logical product variant.

.google.cloud.productregistry.v1.LifecycleState lifecycle_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value LifecycleState

The lifecycleState to set.

Returns
Type Description
LogicalProductVariant.Builder

This builder for chaining.

setLifecycleStateValue(int value)

public LogicalProductVariant.Builder setLifecycleStateValue(int value)

Output only. Current Lifecycle state of the logical product variant.

.google.cloud.productregistry.v1.LifecycleState lifecycle_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for lifecycleState to set.

Returns
Type Description
LogicalProductVariant.Builder

This builder for chaining.

setName(String value)

public LogicalProductVariant.Builder setName(String value)

Identifier. The resource name of the LogicalProductVariant. Format: logicalProducts/{logical_product}/variants/{variant}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
LogicalProductVariant.Builder

This builder for chaining.

setNameBytes(ByteString value)

public LogicalProductVariant.Builder setNameBytes(ByteString value)

Identifier. The resource name of the LogicalProductVariant. Format: logicalProducts/{logical_product}/variants/{variant}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
LogicalProductVariant.Builder

This builder for chaining.

setReplaced(boolean value)

public LogicalProductVariant.Builder setReplaced(boolean value)

Output only. Indicates whether the logical product variant has been replaced. If false, the variant is active. If true, the variant has been replaced by another type, and the replacement field contains the resource name of that replacement.

bool replaced = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The replaced to set.

Returns
Type Description
LogicalProductVariant.Builder

This builder for chaining.

setReplacement(String value)

public LogicalProductVariant.Builder setReplacement(String value)

Output only. The resource name of the Logical Entity that the logical product variant is replaced by. This field is only populated when this logical product variant is replaced by some other type. Eg: logicalProducts/{logical_product}, productSuites/{product_suite}, etc.

string replacement = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The replacement to set.

Returns
Type Description
LogicalProductVariant.Builder

This builder for chaining.

setReplacementBytes(ByteString value)

public LogicalProductVariant.Builder setReplacementBytes(ByteString value)

Output only. The resource name of the Logical Entity that the logical product variant is replaced by. This field is only populated when this logical product variant is replaced by some other type. Eg: logicalProducts/{logical_product}, productSuites/{product_suite}, etc.

string replacement = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for replacement to set.

Returns
Type Description
LogicalProductVariant.Builder

This builder for chaining.

setTitle(String value)

public LogicalProductVariant.Builder setTitle(String value)

Display name of the LogicalProductVariant.

string title = 2;

Parameter
Name Description
value String

The title to set.

Returns
Type Description
LogicalProductVariant.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public LogicalProductVariant.Builder setTitleBytes(ByteString value)

Display name of the LogicalProductVariant.

string title = 2;

Parameter
Name Description
value ByteString

The bytes for title to set.

Returns
Type Description
LogicalProductVariant.Builder

This builder for chaining.