Class CloudExportAdditionalProperties.Builder (0.5.0)

public static final class CloudExportAdditionalProperties.Builder extends GeneratedMessageV3.Builder<CloudExportAdditionalProperties.Builder> implements CloudExportAdditionalPropertiesOrBuilder

Product property for the Cloud Retail API. For example, properties for a TV product could be "Screen-Resolution" or "Screen-Size".

Protobuf type google.shopping.merchant.products.v1beta.CloudExportAdditionalProperties

Static Methods

getDescriptor()

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

Methods

addAllFloatValue(Iterable<? extends Float> values)

public CloudExportAdditionalProperties.Builder addAllFloatValue(Iterable<? extends Float> values)

Float values of the given property. For example for a TV product 1.2345. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order.

repeated float float_value = 5;

Parameter
Name Description
values Iterable<? extends java.lang.Float>

The floatValue to add.

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

addAllIntValue(Iterable<? extends Long> values)

public CloudExportAdditionalProperties.Builder addAllIntValue(Iterable<? extends Long> values)

Integer values of the given property. For example, 1080 for a TV product's Screen Resolution. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order.

repeated int64 int_value = 4;

Parameter
Name Description
values Iterable<? extends java.lang.Long>

The intValue to add.

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

addAllTextValue(Iterable<String> values)

public CloudExportAdditionalProperties.Builder addAllTextValue(Iterable<String> values)

Text value of the given property. For example, "8K(UHD)" could be a text value for a TV product. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order. Maximum string size is 256 characters.

repeated string text_value = 2;

Parameter
Name Description
values Iterable<String>

The textValue to add.

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

addFloatValue(float value)

public CloudExportAdditionalProperties.Builder addFloatValue(float value)

Float values of the given property. For example for a TV product 1.2345. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order.

repeated float float_value = 5;

Parameter
Name Description
value float

The floatValue to add.

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

addIntValue(long value)

public CloudExportAdditionalProperties.Builder addIntValue(long value)

Integer values of the given property. For example, 1080 for a TV product's Screen Resolution. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order.

repeated int64 int_value = 4;

Parameter
Name Description
value long

The intValue to add.

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTextValue(String value)

public CloudExportAdditionalProperties.Builder addTextValue(String value)

Text value of the given property. For example, "8K(UHD)" could be a text value for a TV product. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order. Maximum string size is 256 characters.

repeated string text_value = 2;

Parameter
Name Description
value String

The textValue to add.

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

addTextValueBytes(ByteString value)

public CloudExportAdditionalProperties.Builder addTextValueBytes(ByteString value)

Text value of the given property. For example, "8K(UHD)" could be a text value for a TV product. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order. Maximum string size is 256 characters.

repeated string text_value = 2;

Parameter
Name Description
value ByteString

The bytes of the textValue to add.

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

build()

public CloudExportAdditionalProperties build()
Returns
Type Description
CloudExportAdditionalProperties

buildPartial()

public CloudExportAdditionalProperties buildPartial()
Returns
Type Description
CloudExportAdditionalProperties

clear()

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

clearBoolValue()

public CloudExportAdditionalProperties.Builder clearBoolValue()

Boolean value of the given property. For example for a TV product, "True" or "False" if the screen is UHD.

optional bool bool_value = 3;

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFloatValue()

public CloudExportAdditionalProperties.Builder clearFloatValue()

Float values of the given property. For example for a TV product 1.2345. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order.

repeated float float_value = 5;

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

clearIntValue()

public CloudExportAdditionalProperties.Builder clearIntValue()

Integer values of the given property. For example, 1080 for a TV product's Screen Resolution. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order.

repeated int64 int_value = 4;

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

clearMaxValue()

public CloudExportAdditionalProperties.Builder clearMaxValue()

Maximum float value of the given property. For example for a TV product 100.00.

optional float max_value = 7;

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

clearMinValue()

public CloudExportAdditionalProperties.Builder clearMinValue()

Minimum float value of the given property. For example for a TV product 1.00.

optional float min_value = 6;

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPropertyName()

public CloudExportAdditionalProperties.Builder clearPropertyName()

Name of the given property. For example, "Screen-Resolution" for a TV product. Maximum string size is 256 characters.

optional string property_name = 1;

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

clearTextValue()

public CloudExportAdditionalProperties.Builder clearTextValue()

Text value of the given property. For example, "8K(UHD)" could be a text value for a TV product. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order. Maximum string size is 256 characters.

repeated string text_value = 2;

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

clearUnitCode()

public CloudExportAdditionalProperties.Builder clearUnitCode()

Unit of the given property. For example, "Pixels" for a TV product. Maximum string size is 256B.

optional string unit_code = 8;

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

clone()

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

getBoolValue()

public boolean getBoolValue()

Boolean value of the given property. For example for a TV product, "True" or "False" if the screen is UHD.

optional bool bool_value = 3;

Returns
Type Description
boolean

The boolValue.

getDefaultInstanceForType()

public CloudExportAdditionalProperties getDefaultInstanceForType()
Returns
Type Description
CloudExportAdditionalProperties

getDescriptorForType()

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

getFloatValue(int index)

public float getFloatValue(int index)

Float values of the given property. For example for a TV product 1.2345. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order.

repeated float float_value = 5;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
float

The floatValue at the given index.

getFloatValueCount()

public int getFloatValueCount()

Float values of the given property. For example for a TV product 1.2345. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order.

repeated float float_value = 5;

Returns
Type Description
int

The count of floatValue.

getFloatValueList()

public List<Float> getFloatValueList()

Float values of the given property. For example for a TV product 1.2345. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order.

repeated float float_value = 5;

Returns
Type Description
List<Float>

A list containing the floatValue.

getIntValue(int index)

public long getIntValue(int index)

Integer values of the given property. For example, 1080 for a TV product's Screen Resolution. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order.

repeated int64 int_value = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
long

The intValue at the given index.

getIntValueCount()

public int getIntValueCount()

Integer values of the given property. For example, 1080 for a TV product's Screen Resolution. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order.

repeated int64 int_value = 4;

Returns
Type Description
int

The count of intValue.

getIntValueList()

public List<Long> getIntValueList()

Integer values of the given property. For example, 1080 for a TV product's Screen Resolution. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order.

repeated int64 int_value = 4;

Returns
Type Description
List<Long>

A list containing the intValue.

getMaxValue()

public float getMaxValue()

Maximum float value of the given property. For example for a TV product 100.00.

optional float max_value = 7;

Returns
Type Description
float

The maxValue.

getMinValue()

public float getMinValue()

Minimum float value of the given property. For example for a TV product 1.00.

optional float min_value = 6;

Returns
Type Description
float

The minValue.

getPropertyName()

public String getPropertyName()

Name of the given property. For example, "Screen-Resolution" for a TV product. Maximum string size is 256 characters.

optional string property_name = 1;

Returns
Type Description
String

The propertyName.

getPropertyNameBytes()

public ByteString getPropertyNameBytes()

Name of the given property. For example, "Screen-Resolution" for a TV product. Maximum string size is 256 characters.

optional string property_name = 1;

Returns
Type Description
ByteString

The bytes for propertyName.

getTextValue(int index)

public String getTextValue(int index)

Text value of the given property. For example, "8K(UHD)" could be a text value for a TV product. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order. Maximum string size is 256 characters.

repeated string text_value = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The textValue at the given index.

getTextValueBytes(int index)

public ByteString getTextValueBytes(int index)

Text value of the given property. For example, "8K(UHD)" could be a text value for a TV product. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order. Maximum string size is 256 characters.

repeated string text_value = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the textValue at the given index.

getTextValueCount()

public int getTextValueCount()

Text value of the given property. For example, "8K(UHD)" could be a text value for a TV product. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order. Maximum string size is 256 characters.

repeated string text_value = 2;

Returns
Type Description
int

The count of textValue.

getTextValueList()

public ProtocolStringList getTextValueList()

Text value of the given property. For example, "8K(UHD)" could be a text value for a TV product. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order. Maximum string size is 256 characters.

repeated string text_value = 2;

Returns
Type Description
ProtocolStringList

A list containing the textValue.

getUnitCode()

public String getUnitCode()

Unit of the given property. For example, "Pixels" for a TV product. Maximum string size is 256B.

optional string unit_code = 8;

Returns
Type Description
String

The unitCode.

getUnitCodeBytes()

public ByteString getUnitCodeBytes()

Unit of the given property. For example, "Pixels" for a TV product. Maximum string size is 256B.

optional string unit_code = 8;

Returns
Type Description
ByteString

The bytes for unitCode.

hasBoolValue()

public boolean hasBoolValue()

Boolean value of the given property. For example for a TV product, "True" or "False" if the screen is UHD.

optional bool bool_value = 3;

Returns
Type Description
boolean

Whether the boolValue field is set.

hasMaxValue()

public boolean hasMaxValue()

Maximum float value of the given property. For example for a TV product 100.00.

optional float max_value = 7;

Returns
Type Description
boolean

Whether the maxValue field is set.

hasMinValue()

public boolean hasMinValue()

Minimum float value of the given property. For example for a TV product 1.00.

optional float min_value = 6;

Returns
Type Description
boolean

Whether the minValue field is set.

hasPropertyName()

public boolean hasPropertyName()

Name of the given property. For example, "Screen-Resolution" for a TV product. Maximum string size is 256 characters.

optional string property_name = 1;

Returns
Type Description
boolean

Whether the propertyName field is set.

hasUnitCode()

public boolean hasUnitCode()

Unit of the given property. For example, "Pixels" for a TV product. Maximum string size is 256B.

optional string unit_code = 8;

Returns
Type Description
boolean

Whether the unitCode field is set.

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 CloudExportAdditionalProperties.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudExportAdditionalProperties.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(CloudExportAdditionalProperties other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBoolValue(boolean value)

public CloudExportAdditionalProperties.Builder setBoolValue(boolean value)

Boolean value of the given property. For example for a TV product, "True" or "False" if the screen is UHD.

optional bool bool_value = 3;

Parameter
Name Description
value boolean

The boolValue to set.

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFloatValue(int index, float value)

public CloudExportAdditionalProperties.Builder setFloatValue(int index, float value)

Float values of the given property. For example for a TV product 1.2345. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order.

repeated float float_value = 5;

Parameters
Name Description
index int

The index to set the value at.

value float

The floatValue to set.

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

setIntValue(int index, long value)

public CloudExportAdditionalProperties.Builder setIntValue(int index, long value)

Integer values of the given property. For example, 1080 for a TV product's Screen Resolution. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order.

repeated int64 int_value = 4;

Parameters
Name Description
index int

The index to set the value at.

value long

The intValue to set.

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

setMaxValue(float value)

public CloudExportAdditionalProperties.Builder setMaxValue(float value)

Maximum float value of the given property. For example for a TV product 100.00.

optional float max_value = 7;

Parameter
Name Description
value float

The maxValue to set.

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

setMinValue(float value)

public CloudExportAdditionalProperties.Builder setMinValue(float value)

Minimum float value of the given property. For example for a TV product 1.00.

optional float min_value = 6;

Parameter
Name Description
value float

The minValue to set.

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

setPropertyName(String value)

public CloudExportAdditionalProperties.Builder setPropertyName(String value)

Name of the given property. For example, "Screen-Resolution" for a TV product. Maximum string size is 256 characters.

optional string property_name = 1;

Parameter
Name Description
value String

The propertyName to set.

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

setPropertyNameBytes(ByteString value)

public CloudExportAdditionalProperties.Builder setPropertyNameBytes(ByteString value)

Name of the given property. For example, "Screen-Resolution" for a TV product. Maximum string size is 256 characters.

optional string property_name = 1;

Parameter
Name Description
value ByteString

The bytes for propertyName to set.

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

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

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

setTextValue(int index, String value)

public CloudExportAdditionalProperties.Builder setTextValue(int index, String value)

Text value of the given property. For example, "8K(UHD)" could be a text value for a TV product. Maximum repeatedness of this value is 400. Values are stored in an arbitrary but consistent order. Maximum string size is 256 characters.

repeated string text_value = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The textValue to set.

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

setUnitCode(String value)

public CloudExportAdditionalProperties.Builder setUnitCode(String value)

Unit of the given property. For example, "Pixels" for a TV product. Maximum string size is 256B.

optional string unit_code = 8;

Parameter
Name Description
value String

The unitCode to set.

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

setUnitCodeBytes(ByteString value)

public CloudExportAdditionalProperties.Builder setUnitCodeBytes(ByteString value)

Unit of the given property. For example, "Pixels" for a TV product. Maximum string size is 256B.

optional string unit_code = 8;

Parameter
Name Description
value ByteString

The bytes for unitCode to set.

Returns
Type Description
CloudExportAdditionalProperties.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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