Class FeedAttribute.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
-
- com.google.ads.googleads.v15.resources.FeedAttribute.Builder
-
- All Implemented Interfaces:
FeedAttributeOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- FeedAttribute
public static final class FeedAttribute.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder> implements FeedAttributeOrBuilder
FeedAttributes define the types of data expected to be present in a Feed. A single FeedAttribute specifies the expected type of the FeedItemAttributes with the same FeedAttributeId. Optionally, a FeedAttribute can be marked as being part of a FeedItem's unique key.
Protobuf typegoogle.ads.googleads.v15.resources.FeedAttribute
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FeedAttribute.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)FeedAttributebuild()FeedAttributebuildPartial()FeedAttribute.Builderclear()FeedAttribute.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)FeedAttribute.BuilderclearId()ID of the attribute.FeedAttribute.BuilderclearIsPartOfKey()Indicates that data corresponding to this attribute is part of a FeedItem's unique key.FeedAttribute.BuilderclearName()The name of the attribute.FeedAttribute.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)FeedAttribute.BuilderclearType()Data type for feed attribute.FeedAttribute.Builderclone()FeedAttributegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()longgetId()ID of the attribute.booleangetIsPartOfKey()Indicates that data corresponding to this attribute is part of a FeedItem's unique key.java.lang.StringgetName()The name of the attribute.com.google.protobuf.ByteStringgetNameBytes()The name of the attribute.FeedAttributeTypeEnum.FeedAttributeTypegetType()Data type for feed attribute.intgetTypeValue()Data type for feed attribute.booleanhasId()ID of the attribute.booleanhasIsPartOfKey()Indicates that data corresponding to this attribute is part of a FeedItem's unique key.booleanhasName()The name of the attribute.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()FeedAttribute.BuildermergeFrom(FeedAttribute other)FeedAttribute.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)FeedAttribute.BuildermergeFrom(com.google.protobuf.Message other)FeedAttribute.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)FeedAttribute.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)FeedAttribute.BuildersetId(long value)ID of the attribute.FeedAttribute.BuildersetIsPartOfKey(boolean value)Indicates that data corresponding to this attribute is part of a FeedItem's unique key.FeedAttribute.BuildersetName(java.lang.String value)The name of the attribute.FeedAttribute.BuildersetNameBytes(com.google.protobuf.ByteString value)The name of the attribute.FeedAttribute.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)FeedAttribute.BuildersetType(FeedAttributeTypeEnum.FeedAttributeType value)Data type for feed attribute.FeedAttribute.BuildersetTypeValue(int value)Data type for feed attribute.FeedAttribute.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
-
clear
public FeedAttribute.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<FeedAttribute.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.GeneratedMessageV3.Builder<FeedAttribute.Builder>
-
getDefaultInstanceForType
public FeedAttribute getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public FeedAttribute build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public FeedAttribute buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public FeedAttribute.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<FeedAttribute.Builder>
-
setField
public FeedAttribute.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<FeedAttribute.Builder>
-
clearField
public FeedAttribute.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
-
clearOneof
public FeedAttribute.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
-
setRepeatedField
public FeedAttribute.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<FeedAttribute.Builder>
-
addRepeatedField
public FeedAttribute.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<FeedAttribute.Builder>
-
mergeFrom
public FeedAttribute.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FeedAttribute.Builder>
-
mergeFrom
public FeedAttribute.Builder mergeFrom(FeedAttribute other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
-
mergeFrom
public FeedAttribute.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<FeedAttribute.Builder>- Throws:
java.io.IOException
-
hasId
public boolean hasId()
ID of the attribute.
optional int64 id = 5;- Specified by:
hasIdin interfaceFeedAttributeOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()
ID of the attribute.
optional int64 id = 5;- Specified by:
getIdin interfaceFeedAttributeOrBuilder- Returns:
- The id.
-
setId
public FeedAttribute.Builder setId(long value)
ID of the attribute.
optional int64 id = 5;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
public FeedAttribute.Builder clearId()
ID of the attribute.
optional int64 id = 5;- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()
The name of the attribute. Required.
optional string name = 6;- Specified by:
hasNamein interfaceFeedAttributeOrBuilder- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
The name of the attribute. Required.
optional string name = 6;- Specified by:
getNamein interfaceFeedAttributeOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of the attribute. Required.
optional string name = 6;- Specified by:
getNameBytesin interfaceFeedAttributeOrBuilder- Returns:
- The bytes for name.
-
setName
public FeedAttribute.Builder setName(java.lang.String value)
The name of the attribute. Required.
optional string name = 6;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public FeedAttribute.Builder clearName()
The name of the attribute. Required.
optional string name = 6;- Returns:
- This builder for chaining.
-
setNameBytes
public FeedAttribute.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the attribute. Required.
optional string name = 6;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()
Data type for feed attribute. Required.
.google.ads.googleads.v15.enums.FeedAttributeTypeEnum.FeedAttributeType type = 3;- Specified by:
getTypeValuein interfaceFeedAttributeOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public FeedAttribute.Builder setTypeValue(int value)
Data type for feed attribute. Required.
.google.ads.googleads.v15.enums.FeedAttributeTypeEnum.FeedAttributeType type = 3;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public FeedAttributeTypeEnum.FeedAttributeType getType()
Data type for feed attribute. Required.
.google.ads.googleads.v15.enums.FeedAttributeTypeEnum.FeedAttributeType type = 3;- Specified by:
getTypein interfaceFeedAttributeOrBuilder- Returns:
- The type.
-
setType
public FeedAttribute.Builder setType(FeedAttributeTypeEnum.FeedAttributeType value)
Data type for feed attribute. Required.
.google.ads.googleads.v15.enums.FeedAttributeTypeEnum.FeedAttributeType type = 3;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public FeedAttribute.Builder clearType()
Data type for feed attribute. Required.
.google.ads.googleads.v15.enums.FeedAttributeTypeEnum.FeedAttributeType type = 3;- Returns:
- This builder for chaining.
-
hasIsPartOfKey
public boolean hasIsPartOfKey()
Indicates that data corresponding to this attribute is part of a FeedItem's unique key. It defaults to false if it is unspecified. Note that a unique key is not required in a Feed's schema, in which case the FeedItems must be referenced by their feed_item_id.
optional bool is_part_of_key = 7;- Specified by:
hasIsPartOfKeyin interfaceFeedAttributeOrBuilder- Returns:
- Whether the isPartOfKey field is set.
-
getIsPartOfKey
public boolean getIsPartOfKey()
Indicates that data corresponding to this attribute is part of a FeedItem's unique key. It defaults to false if it is unspecified. Note that a unique key is not required in a Feed's schema, in which case the FeedItems must be referenced by their feed_item_id.
optional bool is_part_of_key = 7;- Specified by:
getIsPartOfKeyin interfaceFeedAttributeOrBuilder- Returns:
- The isPartOfKey.
-
setIsPartOfKey
public FeedAttribute.Builder setIsPartOfKey(boolean value)
Indicates that data corresponding to this attribute is part of a FeedItem's unique key. It defaults to false if it is unspecified. Note that a unique key is not required in a Feed's schema, in which case the FeedItems must be referenced by their feed_item_id.
optional bool is_part_of_key = 7;- Parameters:
value- The isPartOfKey to set.- Returns:
- This builder for chaining.
-
clearIsPartOfKey
public FeedAttribute.Builder clearIsPartOfKey()
Indicates that data corresponding to this attribute is part of a FeedItem's unique key. It defaults to false if it is unspecified. Note that a unique key is not required in a Feed's schema, in which case the FeedItems must be referenced by their feed_item_id.
optional bool is_part_of_key = 7;- Returns:
- This builder for chaining.
-
setUnknownFields
public final FeedAttribute.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
-
mergeUnknownFields
public final FeedAttribute.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
-
-