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.v14.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.v14.resources.FeedAttribute
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FeedAttribute.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
FeedAttribute
build()
FeedAttribute
buildPartial()
FeedAttribute.Builder
clear()
FeedAttribute.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
FeedAttribute.Builder
clearId()
ID of the attribute.FeedAttribute.Builder
clearIsPartOfKey()
Indicates that data corresponding to this attribute is part of a FeedItem's unique key.FeedAttribute.Builder
clearName()
The name of the attribute.FeedAttribute.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
FeedAttribute.Builder
clearType()
Data type for feed attribute.FeedAttribute.Builder
clone()
FeedAttribute
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getId()
ID of the attribute.boolean
getIsPartOfKey()
Indicates that data corresponding to this attribute is part of a FeedItem's unique key.java.lang.String
getName()
The name of the attribute.com.google.protobuf.ByteString
getNameBytes()
The name of the attribute.FeedAttributeTypeEnum.FeedAttributeType
getType()
Data type for feed attribute.int
getTypeValue()
Data type for feed attribute.boolean
hasId()
ID of the attribute.boolean
hasIsPartOfKey()
Indicates that data corresponding to this attribute is part of a FeedItem's unique key.boolean
hasName()
The name of the attribute.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
FeedAttribute.Builder
mergeFrom(FeedAttribute other)
FeedAttribute.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
FeedAttribute.Builder
mergeFrom(com.google.protobuf.Message other)
FeedAttribute.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
FeedAttribute.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
FeedAttribute.Builder
setId(long value)
ID of the attribute.FeedAttribute.Builder
setIsPartOfKey(boolean value)
Indicates that data corresponding to this attribute is part of a FeedItem's unique key.FeedAttribute.Builder
setName(java.lang.String value)
The name of the attribute.FeedAttribute.Builder
setNameBytes(com.google.protobuf.ByteString value)
The name of the attribute.FeedAttribute.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
FeedAttribute.Builder
setType(FeedAttributeTypeEnum.FeedAttributeType value)
Data type for feed attribute.FeedAttribute.Builder
setTypeValue(int value)
Data type for feed attribute.FeedAttribute.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
-
clear
public FeedAttribute.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
-
getDefaultInstanceForType
public FeedAttribute getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public FeedAttribute build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public FeedAttribute buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public FeedAttribute.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
-
setField
public FeedAttribute.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
-
clearField
public FeedAttribute.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
-
clearOneof
public FeedAttribute.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
-
addRepeatedField
public FeedAttribute.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
-
mergeFrom
public FeedAttribute.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FeedAttribute.Builder>
-
mergeFrom
public FeedAttribute.Builder mergeFrom(FeedAttribute other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasId
in interfaceFeedAttributeOrBuilder
- Returns:
- Whether the id field is set.
-
getId
public long getId()
ID of the attribute.
optional int64 id = 5;
- Specified by:
getId
in 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:
hasName
in 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:
getName
in interfaceFeedAttributeOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of the attribute. Required.
optional string name = 6;
- Specified by:
getNameBytes
in 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.v14.enums.FeedAttributeTypeEnum.FeedAttributeType type = 3;
- Specified by:
getTypeValue
in 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.v14.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.v14.enums.FeedAttributeTypeEnum.FeedAttributeType type = 3;
- Specified by:
getType
in interfaceFeedAttributeOrBuilder
- Returns:
- The type.
-
setType
public FeedAttribute.Builder setType(FeedAttributeTypeEnum.FeedAttributeType value)
Data type for feed attribute. Required.
.google.ads.googleads.v14.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.v14.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:
hasIsPartOfKey
in 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:
getIsPartOfKey
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
-
mergeUnknownFields
public final FeedAttribute.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
-
-