Class ChainSet.Builder

  • All Implemented Interfaces:
    ChainSetOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    ChainSet

    public static final class ChainSet.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ChainSet.Builder>
    implements ChainSetOrBuilder
     Data used to configure a location set populated with the specified chains.
     
    Protobuf type google.ads.googleads.v15.common.ChainSet
    • 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<ChainSet.Builder>
      • clear

        public ChainSet.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<ChainSet.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<ChainSet.Builder>
      • getDefaultInstanceForType

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

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

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

        public ChainSet.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<ChainSet.Builder>
      • setField

        public ChainSet.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<ChainSet.Builder>
      • clearField

        public ChainSet.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<ChainSet.Builder>
      • clearOneof

        public ChainSet.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<ChainSet.Builder>
      • setRepeatedField

        public ChainSet.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<ChainSet.Builder>
      • addRepeatedField

        public ChainSet.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<ChainSet.Builder>
      • mergeFrom

        public ChainSet.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<ChainSet.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ChainSet.Builder>
      • mergeFrom

        public ChainSet.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<ChainSet.Builder>
        Throws:
        java.io.IOException
      • getRelationshipTypeValue

        public int getRelationshipTypeValue()
         Required. Immutable. Relationship type the specified chains have with this
         advertiser.
         
        .google.ads.googleads.v15.enums.ChainRelationshipTypeEnum.ChainRelationshipType relationship_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getRelationshipTypeValue in interface ChainSetOrBuilder
        Returns:
        The enum numeric value on the wire for relationshipType.
      • setRelationshipTypeValue

        public ChainSet.Builder setRelationshipTypeValue​(int value)
         Required. Immutable. Relationship type the specified chains have with this
         advertiser.
         
        .google.ads.googleads.v15.enums.ChainRelationshipTypeEnum.ChainRelationshipType relationship_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The enum numeric value on the wire for relationshipType to set.
        Returns:
        This builder for chaining.
      • getRelationshipType

        public ChainRelationshipTypeEnum.ChainRelationshipType getRelationshipType()
         Required. Immutable. Relationship type the specified chains have with this
         advertiser.
         
        .google.ads.googleads.v15.enums.ChainRelationshipTypeEnum.ChainRelationshipType relationship_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getRelationshipType in interface ChainSetOrBuilder
        Returns:
        The relationshipType.
      • setRelationshipType

        public ChainSet.Builder setRelationshipType​(ChainRelationshipTypeEnum.ChainRelationshipType value)
         Required. Immutable. Relationship type the specified chains have with this
         advertiser.
         
        .google.ads.googleads.v15.enums.ChainRelationshipTypeEnum.ChainRelationshipType relationship_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The relationshipType to set.
        Returns:
        This builder for chaining.
      • clearRelationshipType

        public ChainSet.Builder clearRelationshipType()
         Required. Immutable. Relationship type the specified chains have with this
         advertiser.
         
        .google.ads.googleads.v15.enums.ChainRelationshipTypeEnum.ChainRelationshipType relationship_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
        Returns:
        This builder for chaining.
      • getChainsList

        public java.util.List<ChainFilter> getChainsList()
         Required. A list of chain level filters, all filters are OR'ed together.
         
        repeated .google.ads.googleads.v15.common.ChainFilter chains = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getChainsList in interface ChainSetOrBuilder
      • getChainsCount

        public int getChainsCount()
         Required. A list of chain level filters, all filters are OR'ed together.
         
        repeated .google.ads.googleads.v15.common.ChainFilter chains = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getChainsCount in interface ChainSetOrBuilder
      • getChains

        public ChainFilter getChains​(int index)
         Required. A list of chain level filters, all filters are OR'ed together.
         
        repeated .google.ads.googleads.v15.common.ChainFilter chains = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getChains in interface ChainSetOrBuilder
      • setChains

        public ChainSet.Builder setChains​(int index,
                                          ChainFilter value)
         Required. A list of chain level filters, all filters are OR'ed together.
         
        repeated .google.ads.googleads.v15.common.ChainFilter chains = 2 [(.google.api.field_behavior) = REQUIRED];
      • setChains

        public ChainSet.Builder setChains​(int index,
                                          ChainFilter.Builder builderForValue)
         Required. A list of chain level filters, all filters are OR'ed together.
         
        repeated .google.ads.googleads.v15.common.ChainFilter chains = 2 [(.google.api.field_behavior) = REQUIRED];
      • addChains

        public ChainSet.Builder addChains​(ChainFilter value)
         Required. A list of chain level filters, all filters are OR'ed together.
         
        repeated .google.ads.googleads.v15.common.ChainFilter chains = 2 [(.google.api.field_behavior) = REQUIRED];
      • addChains

        public ChainSet.Builder addChains​(int index,
                                          ChainFilter value)
         Required. A list of chain level filters, all filters are OR'ed together.
         
        repeated .google.ads.googleads.v15.common.ChainFilter chains = 2 [(.google.api.field_behavior) = REQUIRED];
      • addChains

        public ChainSet.Builder addChains​(ChainFilter.Builder builderForValue)
         Required. A list of chain level filters, all filters are OR'ed together.
         
        repeated .google.ads.googleads.v15.common.ChainFilter chains = 2 [(.google.api.field_behavior) = REQUIRED];
      • addChains

        public ChainSet.Builder addChains​(int index,
                                          ChainFilter.Builder builderForValue)
         Required. A list of chain level filters, all filters are OR'ed together.
         
        repeated .google.ads.googleads.v15.common.ChainFilter chains = 2 [(.google.api.field_behavior) = REQUIRED];
      • addAllChains

        public ChainSet.Builder addAllChains​(java.lang.Iterable<? extends ChainFilter> values)
         Required. A list of chain level filters, all filters are OR'ed together.
         
        repeated .google.ads.googleads.v15.common.ChainFilter chains = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearChains

        public ChainSet.Builder clearChains()
         Required. A list of chain level filters, all filters are OR'ed together.
         
        repeated .google.ads.googleads.v15.common.ChainFilter chains = 2 [(.google.api.field_behavior) = REQUIRED];
      • removeChains

        public ChainSet.Builder removeChains​(int index)
         Required. A list of chain level filters, all filters are OR'ed together.
         
        repeated .google.ads.googleads.v15.common.ChainFilter chains = 2 [(.google.api.field_behavior) = REQUIRED];
      • getChainsBuilder

        public ChainFilter.Builder getChainsBuilder​(int index)
         Required. A list of chain level filters, all filters are OR'ed together.
         
        repeated .google.ads.googleads.v15.common.ChainFilter chains = 2 [(.google.api.field_behavior) = REQUIRED];
      • getChainsOrBuilder

        public ChainFilterOrBuilder getChainsOrBuilder​(int index)
         Required. A list of chain level filters, all filters are OR'ed together.
         
        repeated .google.ads.googleads.v15.common.ChainFilter chains = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getChainsOrBuilder in interface ChainSetOrBuilder
      • getChainsOrBuilderList

        public java.util.List<? extends ChainFilterOrBuilder> getChainsOrBuilderList()
         Required. A list of chain level filters, all filters are OR'ed together.
         
        repeated .google.ads.googleads.v15.common.ChainFilter chains = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getChainsOrBuilderList in interface ChainSetOrBuilder
      • addChainsBuilder

        public ChainFilter.Builder addChainsBuilder()
         Required. A list of chain level filters, all filters are OR'ed together.
         
        repeated .google.ads.googleads.v15.common.ChainFilter chains = 2 [(.google.api.field_behavior) = REQUIRED];
      • addChainsBuilder

        public ChainFilter.Builder addChainsBuilder​(int index)
         Required. A list of chain level filters, all filters are OR'ed together.
         
        repeated .google.ads.googleads.v15.common.ChainFilter chains = 2 [(.google.api.field_behavior) = REQUIRED];
      • getChainsBuilderList

        public java.util.List<ChainFilter.Builder> getChainsBuilderList()
         Required. A list of chain level filters, all filters are OR'ed together.
         
        repeated .google.ads.googleads.v15.common.ChainFilter chains = 2 [(.google.api.field_behavior) = REQUIRED];
      • setUnknownFields

        public final ChainSet.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<ChainSet.Builder>
      • mergeUnknownFields

        public final ChainSet.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<ChainSet.Builder>