Class 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 type google.ads.googleads.v14.resources.FeedAttribute
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
      • clear

        public FeedAttribute.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
      • getDefaultInstanceForType

        public FeedAttribute getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public FeedAttribute build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public FeedAttribute buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public FeedAttribute.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
      • clearField

        public FeedAttribute.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
      • clearOneof

        public FeedAttribute.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
      • mergeFrom

        public FeedAttribute.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FeedAttribute.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface FeedAttributeOrBuilder
        Returns:
        Whether the id field is set.
      • getId

        public long getId()
         ID of the attribute.
         
        optional int64 id = 5;
        Specified by:
        getId in interface FeedAttributeOrBuilder
        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 interface FeedAttributeOrBuilder
        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 interface FeedAttributeOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of the attribute. Required.
         
        optional string name = 6;
        Specified by:
        getNameBytes in interface FeedAttributeOrBuilder
        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 interface FeedAttributeOrBuilder
        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.
      • 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 interface FeedAttributeOrBuilder
        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 interface FeedAttributeOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>
      • mergeUnknownFields

        public final FeedAttribute.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FeedAttribute.Builder>