Class Tile.Builder (2.55.0)

public static final class Tile.Builder extends GeneratedMessageV3.Builder<Tile.Builder> implements TileOrBuilder

This field specifies the tile information including an attribute key, attribute value. More fields will be added in the future, eg: product id or product counts, etc.

Protobuf type google.cloud.retail.v2.Tile

Implements

TileOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Tile.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Tile.Builder
Overrides

build()

public Tile build()
Returns
Type Description
Tile

buildPartial()

public Tile buildPartial()
Returns
Type Description
Tile

clear()

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

clearField(Descriptors.FieldDescriptor field)

public Tile.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Tile.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Tile.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Tile.Builder
Overrides

clearProductAttribute()

public Tile.Builder clearProductAttribute()
Returns
Type Description
Tile.Builder

clearProductAttributeInterval()

public Tile.Builder clearProductAttributeInterval()

The product attribute key-numeric interval.

.google.cloud.retail.v2.ProductAttributeInterval product_attribute_interval = 2;

Returns
Type Description
Tile.Builder

clearProductAttributeValue()

public Tile.Builder clearProductAttributeValue()

The product attribute key-value.

.google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1;

Returns
Type Description
Tile.Builder

clearRepresentativeProductId()

public Tile.Builder clearRepresentativeProductId()

The representative product id for this tile.

string representative_product_id = 3;

Returns
Type Description
Tile.Builder

This builder for chaining.

clone()

public Tile.Builder clone()
Returns
Type Description
Tile.Builder
Overrides

getDefaultInstanceForType()

public Tile getDefaultInstanceForType()
Returns
Type Description
Tile

getDescriptorForType()

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

getProductAttributeCase()

public Tile.ProductAttributeCase getProductAttributeCase()
Returns
Type Description
Tile.ProductAttributeCase

getProductAttributeInterval()

public ProductAttributeInterval getProductAttributeInterval()

The product attribute key-numeric interval.

.google.cloud.retail.v2.ProductAttributeInterval product_attribute_interval = 2;

Returns
Type Description
ProductAttributeInterval

The productAttributeInterval.

getProductAttributeIntervalBuilder()

public ProductAttributeInterval.Builder getProductAttributeIntervalBuilder()

The product attribute key-numeric interval.

.google.cloud.retail.v2.ProductAttributeInterval product_attribute_interval = 2;

Returns
Type Description
ProductAttributeInterval.Builder

getProductAttributeIntervalOrBuilder()

public ProductAttributeIntervalOrBuilder getProductAttributeIntervalOrBuilder()

The product attribute key-numeric interval.

.google.cloud.retail.v2.ProductAttributeInterval product_attribute_interval = 2;

Returns
Type Description
ProductAttributeIntervalOrBuilder

getProductAttributeValue()

public ProductAttributeValue getProductAttributeValue()

The product attribute key-value.

.google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1;

Returns
Type Description
ProductAttributeValue

The productAttributeValue.

getProductAttributeValueBuilder()

public ProductAttributeValue.Builder getProductAttributeValueBuilder()

The product attribute key-value.

.google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1;

Returns
Type Description
ProductAttributeValue.Builder

getProductAttributeValueOrBuilder()

public ProductAttributeValueOrBuilder getProductAttributeValueOrBuilder()

The product attribute key-value.

.google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1;

Returns
Type Description
ProductAttributeValueOrBuilder

getRepresentativeProductId()

public String getRepresentativeProductId()

The representative product id for this tile.

string representative_product_id = 3;

Returns
Type Description
String

The representativeProductId.

getRepresentativeProductIdBytes()

public ByteString getRepresentativeProductIdBytes()

The representative product id for this tile.

string representative_product_id = 3;

Returns
Type Description
ByteString

The bytes for representativeProductId.

hasProductAttributeInterval()

public boolean hasProductAttributeInterval()

The product attribute key-numeric interval.

.google.cloud.retail.v2.ProductAttributeInterval product_attribute_interval = 2;

Returns
Type Description
boolean

Whether the productAttributeInterval field is set.

hasProductAttributeValue()

public boolean hasProductAttributeValue()

The product attribute key-value.

.google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1;

Returns
Type Description
boolean

Whether the productAttributeValue field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Tile other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeProductAttributeInterval(ProductAttributeInterval value)

public Tile.Builder mergeProductAttributeInterval(ProductAttributeInterval value)

The product attribute key-numeric interval.

.google.cloud.retail.v2.ProductAttributeInterval product_attribute_interval = 2;

Parameter
Name Description
value ProductAttributeInterval
Returns
Type Description
Tile.Builder

mergeProductAttributeValue(ProductAttributeValue value)

public Tile.Builder mergeProductAttributeValue(ProductAttributeValue value)

The product attribute key-value.

.google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1;

Parameter
Name Description
value ProductAttributeValue
Returns
Type Description
Tile.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Tile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Tile.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Tile.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Tile.Builder
Overrides

setProductAttributeInterval(ProductAttributeInterval value)

public Tile.Builder setProductAttributeInterval(ProductAttributeInterval value)

The product attribute key-numeric interval.

.google.cloud.retail.v2.ProductAttributeInterval product_attribute_interval = 2;

Parameter
Name Description
value ProductAttributeInterval
Returns
Type Description
Tile.Builder

setProductAttributeInterval(ProductAttributeInterval.Builder builderForValue)

public Tile.Builder setProductAttributeInterval(ProductAttributeInterval.Builder builderForValue)

The product attribute key-numeric interval.

.google.cloud.retail.v2.ProductAttributeInterval product_attribute_interval = 2;

Parameter
Name Description
builderForValue ProductAttributeInterval.Builder
Returns
Type Description
Tile.Builder

setProductAttributeValue(ProductAttributeValue value)

public Tile.Builder setProductAttributeValue(ProductAttributeValue value)

The product attribute key-value.

.google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1;

Parameter
Name Description
value ProductAttributeValue
Returns
Type Description
Tile.Builder

setProductAttributeValue(ProductAttributeValue.Builder builderForValue)

public Tile.Builder setProductAttributeValue(ProductAttributeValue.Builder builderForValue)

The product attribute key-value.

.google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1;

Parameter
Name Description
builderForValue ProductAttributeValue.Builder
Returns
Type Description
Tile.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Tile.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Tile.Builder
Overrides

setRepresentativeProductId(String value)

public Tile.Builder setRepresentativeProductId(String value)

The representative product id for this tile.

string representative_product_id = 3;

Parameter
Name Description
value String

The representativeProductId to set.

Returns
Type Description
Tile.Builder

This builder for chaining.

setRepresentativeProductIdBytes(ByteString value)

public Tile.Builder setRepresentativeProductIdBytes(ByteString value)

The representative product id for this tile.

string representative_product_id = 3;

Parameter
Name Description
value ByteString

The bytes for representativeProductId to set.

Returns
Type Description
Tile.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Tile.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Tile.Builder
Overrides