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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Tile.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
Returns |
Type |
Description |
Tile |
|
buildPartial()
public Tile buildPartial()
Returns |
Type |
Description |
Tile |
|
clear()
public Tile.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Tile.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Tile.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearProductAttribute()
public Tile.Builder clearProductAttribute()
clearProductAttributeInterval()
public Tile.Builder clearProductAttributeInterval()
The product attribute key-numeric interval.
.google.cloud.retail.v2.ProductAttributeInterval product_attribute_interval = 2;
clearProductAttributeValue()
public Tile.Builder clearProductAttributeValue()
The product attribute key-value.
.google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1;
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()
Overrides
getDefaultInstanceForType()
public Tile getDefaultInstanceForType()
Returns |
Type |
Description |
Tile |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getProductAttributeCase()
public Tile.ProductAttributeCase getProductAttributeCase()
getProductAttributeInterval()
public ProductAttributeInterval getProductAttributeInterval()
The product attribute key-numeric interval.
.google.cloud.retail.v2.ProductAttributeInterval product_attribute_interval = 2;
getProductAttributeIntervalBuilder()
public ProductAttributeInterval.Builder getProductAttributeIntervalBuilder()
The product attribute key-numeric interval.
.google.cloud.retail.v2.ProductAttributeInterval product_attribute_interval = 2;
getProductAttributeIntervalOrBuilder()
public ProductAttributeIntervalOrBuilder getProductAttributeIntervalOrBuilder()
The product attribute key-numeric interval.
.google.cloud.retail.v2.ProductAttributeInterval product_attribute_interval = 2;
getProductAttributeValue()
public ProductAttributeValue getProductAttributeValue()
The product attribute key-value.
.google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1;
getProductAttributeValueBuilder()
public ProductAttributeValue.Builder getProductAttributeValueBuilder()
The product attribute key-value.
.google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1;
getProductAttributeValueOrBuilder()
public ProductAttributeValueOrBuilder getProductAttributeValueOrBuilder()
The product attribute key-value.
.google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Tile other)
public Tile.Builder mergeFrom(Tile other)
Parameter |
Name |
Description |
other |
Tile
|
public Tile.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Tile.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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;
mergeProductAttributeValue(ProductAttributeValue value)
public Tile.Builder mergeProductAttributeValue(ProductAttributeValue value)
The product attribute key-value.
.google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Tile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Tile.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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;
setProductAttributeValue(ProductAttributeValue value)
public Tile.Builder setProductAttributeValue(ProductAttributeValue value)
The product attribute key-value.
.google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1;
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Tile.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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)
Overrides