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.v18.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,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 type
google.ads.googleads.v18.resources.FeedAttribute-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearId()ID of the attribute.Indicates that data corresponding to this attribute is part of a FeedItem's unique key.The name of the attribute.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Data type for feed attribute.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlonggetId()ID of the attribute.booleanIndicates that data corresponding to this attribute is part of a FeedItem's unique key.getName()The name of the attribute.com.google.protobuf.ByteStringThe name of the attribute.getType()Data type for feed attribute.intData type for feed attribute.booleanhasId()ID of the attribute.booleanIndicates 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.FieldAccessorTablefinal booleanmergeFrom(FeedAttribute other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final FeedAttribute.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setId(long value) ID of the attribute.setIsPartOfKey(boolean value) Indicates that data corresponding to this attribute is part of a FeedItem's unique key.The name of the attribute.setNameBytes(com.google.protobuf.ByteString value) The name of the attribute.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Data type for feed attribute.setTypeValue(int value) Data type for feed attribute.final 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
-
clearOneof
- 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, 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, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FeedAttribute.Builder>
-
mergeFrom
-
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 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:
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
ID of the attribute.
optional int64 id = 5;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
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
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
The name of the attribute. Required.
optional string name = 6;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the attribute. Required.
optional string name = 6;- Returns:
- This builder for chaining.
-
setNameBytes
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.v18.enums.FeedAttributeTypeEnum.FeedAttributeType type = 3;- Specified by:
getTypeValuein interfaceFeedAttributeOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
Data type for feed attribute. Required.
.google.ads.googleads.v18.enums.FeedAttributeTypeEnum.FeedAttributeType type = 3;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
Data type for feed attribute. Required.
.google.ads.googleads.v18.enums.FeedAttributeTypeEnum.FeedAttributeType type = 3;- Specified by:
getTypein interfaceFeedAttributeOrBuilder- Returns:
- The type.
-
setType
Data type for feed attribute. Required.
.google.ads.googleads.v18.enums.FeedAttributeTypeEnum.FeedAttributeType type = 3;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Data type for feed attribute. Required.
.google.ads.googleads.v18.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
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
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>
-