Package com.google.shopping.type
Class CustomAttribute.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
- com.google.shopping.type.CustomAttribute.Builder
-
- All Implemented Interfaces:
com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CustomAttributeOrBuilder,java.lang.Cloneable
- Enclosing class:
- CustomAttribute
public static final class CustomAttribute.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder> implements CustomAttributeOrBuilder
A message that represents custom attributes. Exactly one of `value` or `group_values` must not be empty.
Protobuf typegoogle.shopping.type.CustomAttribute
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomAttribute.BuilderaddAllGroupValues(java.lang.Iterable<? extends CustomAttribute> values)Subattributes within this attribute group.CustomAttribute.BuilderaddGroupValues(int index, CustomAttribute value)Subattributes within this attribute group.CustomAttribute.BuilderaddGroupValues(int index, CustomAttribute.Builder builderForValue)Subattributes within this attribute group.CustomAttribute.BuilderaddGroupValues(CustomAttribute value)Subattributes within this attribute group.CustomAttribute.BuilderaddGroupValues(CustomAttribute.Builder builderForValue)Subattributes within this attribute group.CustomAttribute.BuilderaddGroupValuesBuilder()Subattributes within this attribute group.CustomAttribute.BuilderaddGroupValuesBuilder(int index)Subattributes within this attribute group.CustomAttribute.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)CustomAttributebuild()CustomAttributebuildPartial()CustomAttribute.Builderclear()CustomAttribute.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CustomAttribute.BuilderclearGroupValues()Subattributes within this attribute group.CustomAttribute.BuilderclearName()The name of the attribute.CustomAttribute.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CustomAttribute.BuilderclearValue()The value of the attribute.CustomAttribute.Builderclone()CustomAttributegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()CustomAttributegetGroupValues(int index)Subattributes within this attribute group.CustomAttribute.BuildergetGroupValuesBuilder(int index)Subattributes within this attribute group.java.util.List<CustomAttribute.Builder>getGroupValuesBuilderList()Subattributes within this attribute group.intgetGroupValuesCount()Subattributes within this attribute group.java.util.List<CustomAttribute>getGroupValuesList()Subattributes within this attribute group.CustomAttributeOrBuildergetGroupValuesOrBuilder(int index)Subattributes within this attribute group.java.util.List<? extends CustomAttributeOrBuilder>getGroupValuesOrBuilderList()Subattributes within this attribute group.java.lang.StringgetName()The name of the attribute.com.google.protobuf.ByteStringgetNameBytes()The name of the attribute.java.lang.StringgetValue()The value of the attribute.com.google.protobuf.ByteStringgetValueBytes()The value of the attribute.booleanhasName()The name of the attribute.booleanhasValue()The value of the attribute.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CustomAttribute.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CustomAttribute.BuildermergeFrom(com.google.protobuf.Message other)CustomAttribute.BuildermergeFrom(CustomAttribute other)CustomAttribute.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CustomAttribute.BuilderremoveGroupValues(int index)Subattributes within this attribute group.CustomAttribute.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)CustomAttribute.BuildersetGroupValues(int index, CustomAttribute value)Subattributes within this attribute group.CustomAttribute.BuildersetGroupValues(int index, CustomAttribute.Builder builderForValue)Subattributes within this attribute group.CustomAttribute.BuildersetName(java.lang.String value)The name of the attribute.CustomAttribute.BuildersetNameBytes(com.google.protobuf.ByteString value)The name of the attribute.CustomAttribute.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)CustomAttribute.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CustomAttribute.BuildersetValue(java.lang.String value)The value of the attribute.CustomAttribute.BuildersetValueBytes(com.google.protobuf.ByteString value)The value of the attribute.-
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension
-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Overrides:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
clear
public CustomAttribute.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CustomAttribute.Builder>
-
getDefaultInstanceForType
public CustomAttribute getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CustomAttribute build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CustomAttribute buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CustomAttribute.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
setField
public CustomAttribute.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
clearField
public CustomAttribute.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
clearOneof
public CustomAttribute.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
setRepeatedField
public CustomAttribute.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
addRepeatedField
public CustomAttribute.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
mergeFrom
public CustomAttribute.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CustomAttribute.Builder>
-
mergeFrom
public CustomAttribute.Builder mergeFrom(CustomAttribute other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,CustomAttribute.Builder>
-
mergeFrom
public CustomAttribute.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CustomAttribute.Builder>- Throws:
java.io.IOException
-
hasName
public boolean hasName()
The name of the attribute.
optional string name = 1;- Specified by:
hasNamein interfaceCustomAttributeOrBuilder- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
The name of the attribute.
optional string name = 1;- Specified by:
getNamein interfaceCustomAttributeOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of the attribute.
optional string name = 1;- Specified by:
getNameBytesin interfaceCustomAttributeOrBuilder- Returns:
- The bytes for name.
-
setName
public CustomAttribute.Builder setName(java.lang.String value)
The name of the attribute.
optional string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public CustomAttribute.Builder clearName()
The name of the attribute.
optional string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public CustomAttribute.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the attribute.
optional string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasValue
public boolean hasValue()
The value of the attribute. If `value` is not empty, `group_values` must be empty.
optional string value = 2;- Specified by:
hasValuein interfaceCustomAttributeOrBuilder- Returns:
- Whether the value field is set.
-
getValue
public java.lang.String getValue()
The value of the attribute. If `value` is not empty, `group_values` must be empty.
optional string value = 2;- Specified by:
getValuein interfaceCustomAttributeOrBuilder- Returns:
- The value.
-
getValueBytes
public com.google.protobuf.ByteString getValueBytes()
The value of the attribute. If `value` is not empty, `group_values` must be empty.
optional string value = 2;- Specified by:
getValueBytesin interfaceCustomAttributeOrBuilder- Returns:
- The bytes for value.
-
setValue
public CustomAttribute.Builder setValue(java.lang.String value)
The value of the attribute. If `value` is not empty, `group_values` must be empty.
optional string value = 2;- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setValueBytes
public CustomAttribute.Builder setValueBytes(com.google.protobuf.ByteString value)
The value of the attribute. If `value` is not empty, `group_values` must be empty.
optional string value = 2;- Parameters:
value- The bytes for value to set.- Returns:
- This builder for chaining.
-
getGroupValuesList
public java.util.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;- Specified by:
getGroupValuesListin interfaceCustomAttributeOrBuilder
-
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;- Specified by:
getGroupValuesCountin interfaceCustomAttributeOrBuilder
-
getGroupValues
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;- Specified by:
getGroupValuesin interfaceCustomAttributeOrBuilder
-
setGroupValues
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;
-
setGroupValues
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;
-
addGroupValues
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;
-
addGroupValues
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;
-
addGroupValues
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;
-
addGroupValues
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;
-
addAllGroupValues
public CustomAttribute.Builder addAllGroupValues(java.lang.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;
-
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;
-
removeGroupValues
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;
-
getGroupValuesBuilder
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;
-
getGroupValuesOrBuilder
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;- Specified by:
getGroupValuesOrBuilderin interfaceCustomAttributeOrBuilder
-
getGroupValuesOrBuilderList
public java.util.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;- Specified by:
getGroupValuesOrBuilderListin interfaceCustomAttributeOrBuilder
-
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;
-
addGroupValuesBuilder
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;
-
getGroupValuesBuilderList
public java.util.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;
-
setUnknownFields
public final CustomAttribute.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
mergeUnknownFields
public final CustomAttribute.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
-