Class ProductDetail.Builder (0.3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProductDetail.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ProductDetail.Builder
Overrides

build()

public ProductDetail build()
Returns
TypeDescription
ProductDetail

buildPartial()

public ProductDetail buildPartial()
Returns
TypeDescription
ProductDetail

clear()

public ProductDetail.Builder clear()
Returns
TypeDescription
ProductDetail.Builder
Overrides

clearAttributeName()

public ProductDetail.Builder clearAttributeName()

The name of the product detail.

string attribute_name = 2;

Returns
TypeDescription
ProductDetail.Builder

This builder for chaining.

clearAttributeValue()

public ProductDetail.Builder clearAttributeValue()

The value of the product detail.

string attribute_value = 3;

Returns
TypeDescription
ProductDetail.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ProductDetail.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ProductDetail.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ProductDetail.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ProductDetail.Builder
Overrides

clearSectionName()

public ProductDetail.Builder clearSectionName()

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

string section_name = 1;

Returns
TypeDescription
ProductDetail.Builder

This builder for chaining.

clone()

public ProductDetail.Builder clone()
Returns
TypeDescription
ProductDetail.Builder
Overrides

getAttributeName()

public String getAttributeName()

The name of the product detail.

string attribute_name = 2;

Returns
TypeDescription
String

The attributeName.

getAttributeNameBytes()

public ByteString getAttributeNameBytes()

The name of the product detail.

string attribute_name = 2;

Returns
TypeDescription
ByteString

The bytes for attributeName.

getAttributeValue()

public String getAttributeValue()

The value of the product detail.

string attribute_value = 3;

Returns
TypeDescription
String

The attributeValue.

getAttributeValueBytes()

public ByteString getAttributeValueBytes()

The value of the product detail.

string attribute_value = 3;

Returns
TypeDescription
ByteString

The bytes for attributeValue.

getDefaultInstanceForType()

public ProductDetail getDefaultInstanceForType()
Returns
TypeDescription
ProductDetail

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSectionName()

public String getSectionName()

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

string section_name = 1;

Returns
TypeDescription
String

The sectionName.

getSectionNameBytes()

public ByteString getSectionNameBytes()

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

string section_name = 1;

Returns
TypeDescription
ByteString

The bytes for sectionName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProductDetail.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProductDetail.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ProductDetail.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ProductDetail.Builder
Overrides

mergeFrom(ProductDetail other)

public ProductDetail.Builder mergeFrom(ProductDetail other)
Parameter
NameDescription
otherProductDetail
Returns
TypeDescription
ProductDetail.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProductDetail.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ProductDetail.Builder
Overrides

setAttributeName(String value)

public ProductDetail.Builder setAttributeName(String value)

The name of the product detail.

string attribute_name = 2;

Parameter
NameDescription
valueString

The attributeName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for attributeName to set.

Returns
TypeDescription
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
NameDescription
valueString

The attributeValue to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for attributeValue to set.

Returns
TypeDescription
ProductDetail.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ProductDetail.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ProductDetail.Builder
Overrides

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

public ProductDetail.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The sectionName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for sectionName to set.

Returns
TypeDescription
ProductDetail.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ProductDetail.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ProductDetail.Builder
Overrides