Class ProductDetail.Builder (0.21.0)

public static final class ProductDetail.Builder extends GeneratedMessageV3.Builder<ProductDetail.Builder> implements ProductDetailOrBuilder

The product details.

Protobuf type google.shopping.css.v1.ProductDetail

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ProductDetail build()
Returns
Type Description
ProductDetail

buildPartial()

public ProductDetail buildPartial()
Returns
Type Description
ProductDetail

clear()

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

clearAttributeName()

public ProductDetail.Builder clearAttributeName()

The name of the product detail.

string attribute_name = 2;

Returns
Type Description
ProductDetail.Builder

This builder for chaining.

clearAttributeValue()

public ProductDetail.Builder clearAttributeValue()

The value of the product detail.

string attribute_value = 3;

Returns
Type Description
ProductDetail.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSectionName()

public ProductDetail.Builder clearSectionName()

The section header used to group a set of product details.

string section_name = 1;

Returns
Type Description
ProductDetail.Builder

This builder for chaining.

clone()

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

getAttributeName()

public String getAttributeName()

The name of the product detail.

string attribute_name = 2;

Returns
Type Description
String

The attributeName.

getAttributeNameBytes()

public ByteString getAttributeNameBytes()

The name of the product detail.

string attribute_name = 2;

Returns
Type Description
ByteString

The bytes for attributeName.

getAttributeValue()

public String getAttributeValue()

The value of the product detail.

string attribute_value = 3;

Returns
Type Description
String

The attributeValue.

getAttributeValueBytes()

public ByteString getAttributeValueBytes()

The value of the product detail.

string attribute_value = 3;

Returns
Type Description
ByteString

The bytes for attributeValue.

getDefaultInstanceForType()

public ProductDetail getDefaultInstanceForType()
Returns
Type Description
ProductDetail

getDescriptorForType()

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

getSectionName()

public String getSectionName()

The section header used to group a set of product details.

string section_name = 1;

Returns
Type Description
String

The sectionName.

getSectionNameBytes()

public ByteString getSectionNameBytes()

The section header used to group a set of product details.

string section_name = 1;

Returns
Type Description
ByteString

The bytes for sectionName.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ProductDetail other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAttributeName(String value)

public ProductDetail.Builder setAttributeName(String value)

The name of the product detail.

string attribute_name = 2;

Parameter
Name Description
value String

The attributeName to set.

Returns
Type Description
ProductDetail.Builder

This builder for chaining.

setAttributeNameBytes(ByteString value)

public ProductDetail.Builder setAttributeNameBytes(ByteString value)

The name of the product detail.

string attribute_name = 2;

Parameter
Name Description
value ByteString

The bytes for attributeName to set.

Returns
Type Description
ProductDetail.Builder

This builder for chaining.

setAttributeValue(String value)

public ProductDetail.Builder setAttributeValue(String value)

The value of the product detail.

string attribute_value = 3;

Parameter
Name Description
value String

The attributeValue to set.

Returns
Type Description
ProductDetail.Builder

This builder for chaining.

setAttributeValueBytes(ByteString value)

public ProductDetail.Builder setAttributeValueBytes(ByteString value)

The value of the product detail.

string attribute_value = 3;

Parameter
Name Description
value ByteString

The bytes for attributeValue to set.

Returns
Type Description
ProductDetail.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSectionName(String value)

public ProductDetail.Builder setSectionName(String value)

The section header used to group a set of product details.

string section_name = 1;

Parameter
Name Description
value String

The sectionName to set.

Returns
Type Description
ProductDetail.Builder

This builder for chaining.

setSectionNameBytes(ByteString value)

public ProductDetail.Builder setSectionNameBytes(ByteString value)

The section header used to group a set of product details.

string section_name = 1;

Parameter
Name Description
value ByteString

The bytes for sectionName to set.

Returns
Type Description
ProductDetail.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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