- 2.61.3 (latest)
- 2.61.2
- 2.60.0
- 2.59.2
- 2.58.0
- 2.57.0
- 2.56.0
- 2.54.1
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.1
- 2.49.0
- 2.48.0
- 2.46.0
- 2.45.1
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.1
- 2.38.0
- 2.37.1
- 2.36.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.1
- 2.24.0
- 2.23.1
- 2.22.1
- 2.21.1
- 2.15.0
- 2.14.3
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.6
- 2.8.4
- 2.7.4
public static final class CustomAttribute.Builder extends GeneratedMessageV3.Builder<CustomAttribute.Builder> implements CustomAttributeOrBuilder A message that represents custom attributes. Exactly one of value or
group_values must not be empty.
Protobuf type google.shopping.type.CustomAttribute
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CustomAttribute.BuilderImplements
CustomAttributeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllGroupValues(Iterable<? extends CustomAttribute> values)
public CustomAttribute.Builder addAllGroupValues(Iterable<? extends CustomAttribute> values) Subattributes within this attribute group. If
group_values is not empty, value must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.shopping.type.CustomAttribute> |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
addGroupValues(CustomAttribute value)
public CustomAttribute.Builder addGroupValues(CustomAttribute value) Subattributes within this attribute group. If
group_values is not empty, value must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
CustomAttribute |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
addGroupValues(CustomAttribute.Builder builderForValue)
public CustomAttribute.Builder addGroupValues(CustomAttribute.Builder builderForValue) Subattributes within this attribute group. If
group_values is not empty, value must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
CustomAttribute.Builder |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
addGroupValues(int index, CustomAttribute value)
public CustomAttribute.Builder addGroupValues(int index, CustomAttribute value) Subattributes within this attribute group. If
group_values is not empty, value must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
CustomAttribute |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
addGroupValues(int index, CustomAttribute.Builder builderForValue)
public CustomAttribute.Builder addGroupValues(int index, CustomAttribute.Builder builderForValue) Subattributes within this attribute group. If
group_values is not empty, value must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
CustomAttribute.Builder |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
addGroupValuesBuilder()
public CustomAttribute.Builder addGroupValuesBuilder() Subattributes within this attribute group. If
group_values is not empty, value must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
addGroupValuesBuilder(int index)
public CustomAttribute.Builder addGroupValuesBuilder(int index) Subattributes within this attribute group. If
group_values is not empty, value must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CustomAttribute.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
build()
public CustomAttribute build()| Returns | |
|---|---|
| Type | Description |
CustomAttribute |
|
buildPartial()
public CustomAttribute buildPartial()| Returns | |
|---|---|
| Type | Description |
CustomAttribute |
|
clear()
public CustomAttribute.Builder clear()| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public CustomAttribute.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
clearGroupValues()
public CustomAttribute.Builder clearGroupValues() Subattributes within this attribute group. If
group_values is not empty, value must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
clearName()
public CustomAttribute.Builder clearName()The name of the attribute.
optional string name = 1;
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public CustomAttribute.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
clearValue()
public CustomAttribute.Builder clearValue() The value of the attribute. If value is not empty, group_values must be
empty.
optional string value = 2;
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
This builder for chaining. |
clone()
public CustomAttribute.Builder clone()| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
getDefaultInstanceForType()
public CustomAttribute getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CustomAttribute |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getGroupValues(int index)
public CustomAttribute getGroupValues(int index) Subattributes within this attribute group. If
group_values is not empty, value must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute |
|
getGroupValuesBuilder(int index)
public CustomAttribute.Builder getGroupValuesBuilder(int index) Subattributes within this attribute group. If
group_values is not empty, value must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
getGroupValuesBuilderList()
public List<CustomAttribute.Builder> getGroupValuesBuilderList() Subattributes within this attribute group. If
group_values is not empty, value must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getGroupValuesCount()
public int getGroupValuesCount() Subattributes within this attribute group. If
group_values is not empty, value must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
| Returns | |
|---|---|
| Type | Description |
int |
|
getGroupValuesList()
public List<CustomAttribute> getGroupValuesList() Subattributes within this attribute group. If
group_values is not empty, value must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
| Returns | |
|---|---|
| Type | Description |
List<CustomAttribute> |
|
getGroupValuesOrBuilder(int index)
public CustomAttributeOrBuilder getGroupValuesOrBuilder(int index) Subattributes within this attribute group. If
group_values is not empty, value must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CustomAttributeOrBuilder |
|
getGroupValuesOrBuilderList()
public List<? extends CustomAttributeOrBuilder> getGroupValuesOrBuilderList() Subattributes within this attribute group. If
group_values is not empty, value must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.shopping.type.CustomAttributeOrBuilder> |
|
getName()
public String getName()The name of the attribute.
optional string name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()The name of the attribute.
optional string name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getValue()
public String getValue() The value of the attribute. If value is not empty, group_values must be
empty.
optional string value = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The value. |
getValueBytes()
public ByteString getValueBytes() The value of the attribute. If value is not empty, group_values must be
empty.
optional string value = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for value. |
hasName()
public boolean hasName()The name of the attribute.
optional string name = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the name field is set. |
hasValue()
public boolean hasValue() The value of the attribute. If value is not empty, group_values must be
empty.
optional string value = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the value field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CustomAttribute.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CustomAttribute.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
mergeFrom(CustomAttribute other)
public CustomAttribute.Builder mergeFrom(CustomAttribute other)| Parameter | |
|---|---|
| Name | Description |
other |
CustomAttribute |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CustomAttribute.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
removeGroupValues(int index)
public CustomAttribute.Builder removeGroupValues(int index) Subattributes within this attribute group. If
group_values is not empty, value must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public CustomAttribute.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
setGroupValues(int index, CustomAttribute value)
public CustomAttribute.Builder setGroupValues(int index, CustomAttribute value) Subattributes within this attribute group. If
group_values is not empty, value must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
CustomAttribute |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
setGroupValues(int index, CustomAttribute.Builder builderForValue)
public CustomAttribute.Builder setGroupValues(int index, CustomAttribute.Builder builderForValue) Subattributes within this attribute group. If
group_values is not empty, value must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
CustomAttribute.Builder |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
setName(String value)
public CustomAttribute.Builder setName(String value)The name of the attribute.
optional string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public CustomAttribute.Builder setNameBytes(ByteString value)The name of the attribute.
optional string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CustomAttribute.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final CustomAttribute.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
|
setValue(String value)
public CustomAttribute.Builder setValue(String value) The value of the attribute. If value is not empty, group_values must be
empty.
optional string value = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe value to set. |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
This builder for chaining. |
setValueBytes(ByteString value)
public CustomAttribute.Builder setValueBytes(ByteString value) The value of the attribute. If value is not empty, group_values must be
empty.
optional string value = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for value to set. |
| Returns | |
|---|---|
| Type | Description |
CustomAttribute.Builder |
This builder for chaining. |