Class LogicalProductVariant (0.1.0)

public final class LogicalProductVariant extends GeneratedMessage 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 Fields

LIFECYCLE_STATE_FIELD_NUMBER

public static final int LIFECYCLE_STATE_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

REPLACED_FIELD_NUMBER

public static final int REPLACED_FIELD_NUMBER
Field Value
Type Description
int

REPLACEMENT_FIELD_NUMBER

public static final int REPLACEMENT_FIELD_NUMBER
Field Value
Type Description
int

TITLE_FIELD_NUMBER

public static final int TITLE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static LogicalProductVariant getDefaultInstance()
Returns
Type Description
LogicalProductVariant

getDescriptor()

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

newBuilder()

public static LogicalProductVariant.Builder newBuilder()
Returns
Type Description
LogicalProductVariant.Builder

newBuilder(LogicalProductVariant prototype)

public static LogicalProductVariant.Builder newBuilder(LogicalProductVariant prototype)
Parameter
Name Description
prototype LogicalProductVariant
Returns
Type Description
LogicalProductVariant.Builder

parseDelimitedFrom(InputStream input)

public static LogicalProductVariant parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LogicalProductVariant
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LogicalProductVariant parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogicalProductVariant
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static LogicalProductVariant parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
LogicalProductVariant
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LogicalProductVariant parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogicalProductVariant
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LogicalProductVariant parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
LogicalProductVariant
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LogicalProductVariant parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogicalProductVariant
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LogicalProductVariant parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LogicalProductVariant
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LogicalProductVariant parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogicalProductVariant
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static LogicalProductVariant parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LogicalProductVariant
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LogicalProductVariant parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogicalProductVariant
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static LogicalProductVariant parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LogicalProductVariant
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LogicalProductVariant parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogicalProductVariant
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<LogicalProductVariant> parser()
Returns
Type Description
Parser<LogicalProductVariant>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public LogicalProductVariant getDefaultInstanceForType()
Returns
Type Description
LogicalProductVariant

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.

getParserForType()

public Parser<LogicalProductVariant> getParserForType()
Returns
Type Description
Parser<LogicalProductVariant>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public LogicalProductVariant.Builder newBuilderForType()
Returns
Type Description
LogicalProductVariant.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected LogicalProductVariant.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LogicalProductVariant.Builder
Overrides

toBuilder()

public LogicalProductVariant.Builder toBuilder()
Returns
Type Description
LogicalProductVariant.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException