Class ProductSuite (0.1.0)

public final class ProductSuite extends GeneratedMessage implements ProductSuiteOrBuilder

Represents a unified grouping of products sharing a common brand and market positioning.

Protobuf type google.cloud.productregistry.v1.ProductSuite

Static Fields

LOGICAL_PRODUCTS_FIELD_NUMBER

public static final int LOGICAL_PRODUCTS_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 ProductSuite getDefaultInstance()
Returns
Type Description
ProductSuite

getDescriptor()

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

newBuilder()

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

newBuilder(ProductSuite prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ProductSuite getDefaultInstanceForType()
Returns
Type Description
ProductSuite

getLogicalProducts(int index)

public String getLogicalProducts(int index)

Output only. LogicalProducts under this suite. Format: logicalProducts/{logical_product}

repeated string logical_products = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The logicalProducts at the given index.

getLogicalProductsBytes(int index)

public ByteString getLogicalProductsBytes(int index)

Output only. LogicalProducts under this suite. Format: logicalProducts/{logical_product}

repeated string logical_products = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the logicalProducts at the given index.

getLogicalProductsCount()

public int getLogicalProductsCount()

Output only. LogicalProducts under this suite. Format: logicalProducts/{logical_product}

repeated string logical_products = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of logicalProducts.

getLogicalProductsList()

public ProtocolStringList getLogicalProductsList()

Output only. LogicalProducts under this suite. Format: logicalProducts/{logical_product}

repeated string logical_products = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the logicalProducts.

getName()

public String getName()

Identifier. The resource name of the ProductSuite. Format: productSuites/{product_suite}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the ProductSuite. Format: productSuites/{product_suite}

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

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getReplaced()

public boolean getReplaced()

Output only. Indicates whether the product suite has been replaced. If false, the product suite is active. If true, the product suite 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 product suite is replaced by. This field is only populated when this product suite is replaced by some other type. Eg: logicalProducts/{logical_product}, logicalProducts/{logical_product}/variants/{variant}, 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 product suite is replaced by. This field is only populated when this product suite is replaced by some other type. Eg: logicalProducts/{logical_product}, logicalProducts/{logical_product}/variants/{variant}, 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()

Title of the ProductSuite.

string title = 2;

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Title of the ProductSuite.

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 ProductSuite.Builder newBuilderForType()
Returns
Type Description
ProductSuite.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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