Class ProductSuite.Builder (0.1.0)

public static final class ProductSuite.Builder extends GeneratedMessage.Builder<ProductSuite.Builder> implements ProductSuiteOrBuilder

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

Protobuf type google.cloud.productregistry.v1.ProductSuite

Static Methods

getDescriptor()

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

Methods

addAllLogicalProducts(Iterable<String> values)

public ProductSuite.Builder addAllLogicalProducts(Iterable<String> values)

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
values Iterable<String>

The logicalProducts to add.

Returns
Type Description
ProductSuite.Builder

This builder for chaining.

addLogicalProducts(String value)

public ProductSuite.Builder addLogicalProducts(String value)

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
value String

The logicalProducts to add.

Returns
Type Description
ProductSuite.Builder

This builder for chaining.

addLogicalProductsBytes(ByteString value)

public ProductSuite.Builder addLogicalProductsBytes(ByteString value)

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
value ByteString

The bytes of the logicalProducts to add.

Returns
Type Description
ProductSuite.Builder

This builder for chaining.

build()

public ProductSuite build()
Returns
Type Description
ProductSuite

buildPartial()

public ProductSuite buildPartial()
Returns
Type Description
ProductSuite

clear()

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

clearLogicalProducts()

public ProductSuite.Builder clearLogicalProducts()

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
ProductSuite.Builder

This builder for chaining.

clearName()

public ProductSuite.Builder clearName()

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

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

Returns
Type Description
ProductSuite.Builder

This builder for chaining.

clearReplaced()

public ProductSuite.Builder clearReplaced()

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
ProductSuite.Builder

This builder for chaining.

clearReplacement()

public ProductSuite.Builder clearReplacement()

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
ProductSuite.Builder

This builder for chaining.

clearTitle()

public ProductSuite.Builder clearTitle()

Title of the ProductSuite.

string title = 2;

Returns
Type Description
ProductSuite.Builder

This builder for chaining.

getDefaultInstanceForType()

public ProductSuite getDefaultInstanceForType()
Returns
Type Description
ProductSuite

getDescriptorForType()

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

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.

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProductSuite other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setLogicalProducts(int index, String value)

public ProductSuite.Builder setLogicalProducts(int index, String value)

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) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The logicalProducts to set.

Returns
Type Description
ProductSuite.Builder

This builder for chaining.

setName(String value)

public ProductSuite.Builder setName(String value)

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

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ProductSuite.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ProductSuite.Builder setNameBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ProductSuite.Builder

This builder for chaining.

setReplaced(boolean value)

public ProductSuite.Builder setReplaced(boolean value)

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];

Parameter
Name Description
value boolean

The replaced to set.

Returns
Type Description
ProductSuite.Builder

This builder for chaining.

setReplacement(String value)

public ProductSuite.Builder setReplacement(String value)

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) = { ... }

Parameter
Name Description
value String

The replacement to set.

Returns
Type Description
ProductSuite.Builder

This builder for chaining.

setReplacementBytes(ByteString value)

public ProductSuite.Builder setReplacementBytes(ByteString value)

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) = { ... }

Parameter
Name Description
value ByteString

The bytes for replacement to set.

Returns
Type Description
ProductSuite.Builder

This builder for chaining.

setTitle(String value)

public ProductSuite.Builder setTitle(String value)

Title of the ProductSuite.

string title = 2;

Parameter
Name Description
value String

The title to set.

Returns
Type Description
ProductSuite.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public ProductSuite.Builder setTitleBytes(ByteString value)

Title of the ProductSuite.

string title = 2;

Parameter
Name Description
value ByteString

The bytes for title to set.

Returns
Type Description
ProductSuite.Builder

This builder for chaining.