Class GeoTargetConstant.Builder

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

    public static final class GeoTargetConstant.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<GeoTargetConstant.Builder>
    implements GeoTargetConstantOrBuilder
     A geo target constant.
     
    Protobuf type google.ads.googleads.v10.resources.GeoTargetConstant
    • 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<GeoTargetConstant.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

        public java.lang.String getResourceName()
         Output only. The resource name of the geo target constant.
         Geo target constant resource names have the form:
         `geoTargetConstants/{geo_target_constant_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceName in interface GeoTargetConstantOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         Output only. The resource name of the geo target constant.
         Geo target constant resource names have the form:
         `geoTargetConstants/{geo_target_constant_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceNameBytes in interface GeoTargetConstantOrBuilder
        Returns:
        The bytes for resourceName.
      • setResourceName

        public GeoTargetConstant.Builder setResourceName​(java.lang.String value)
         Output only. The resource name of the geo target constant.
         Geo target constant resource names have the form:
         `geoTargetConstants/{geo_target_constant_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The resourceName to set.
        Returns:
        This builder for chaining.
      • clearResourceName

        public GeoTargetConstant.Builder clearResourceName()
         Output only. The resource name of the geo target constant.
         Geo target constant resource names have the form:
         `geoTargetConstants/{geo_target_constant_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setResourceNameBytes

        public GeoTargetConstant.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         Output only. The resource name of the geo target constant.
         Geo target constant resource names have the form:
         `geoTargetConstants/{geo_target_constant_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for resourceName to set.
        Returns:
        This builder for chaining.
      • hasId

        public boolean hasId()
         Output only. The ID of the geo target constant.
         
        optional int64 id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasId in interface GeoTargetConstantOrBuilder
        Returns:
        Whether the id field is set.
      • getId

        public long getId()
         Output only. The ID of the geo target constant.
         
        optional int64 id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getId in interface GeoTargetConstantOrBuilder
        Returns:
        The id.
      • setId

        public GeoTargetConstant.Builder setId​(long value)
         Output only. The ID of the geo target constant.
         
        optional int64 id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public GeoTargetConstant.Builder clearId()
         Output only. The ID of the geo target constant.
         
        optional int64 id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasName

        public boolean hasName()
         Output only. Geo target constant English name.
         
        optional string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasName in interface GeoTargetConstantOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public java.lang.String getName()
         Output only. Geo target constant English name.
         
        optional string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface GeoTargetConstantOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. Geo target constant English name.
         
        optional string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface GeoTargetConstantOrBuilder
        Returns:
        The bytes for name.
      • setName

        public GeoTargetConstant.Builder setName​(java.lang.String value)
         Output only. Geo target constant English name.
         
        optional string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public GeoTargetConstant.Builder clearName()
         Output only. Geo target constant English name.
         
        optional string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public GeoTargetConstant.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. Geo target constant English name.
         
        optional string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasCountryCode

        public boolean hasCountryCode()
         Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
         
        optional string country_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCountryCode in interface GeoTargetConstantOrBuilder
        Returns:
        Whether the countryCode field is set.
      • getCountryCode

        public java.lang.String getCountryCode()
         Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
         
        optional string country_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCountryCode in interface GeoTargetConstantOrBuilder
        Returns:
        The countryCode.
      • getCountryCodeBytes

        public com.google.protobuf.ByteString getCountryCodeBytes()
         Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
         
        optional string country_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCountryCodeBytes in interface GeoTargetConstantOrBuilder
        Returns:
        The bytes for countryCode.
      • setCountryCode

        public GeoTargetConstant.Builder setCountryCode​(java.lang.String value)
         Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
         
        optional string country_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The countryCode to set.
        Returns:
        This builder for chaining.
      • clearCountryCode

        public GeoTargetConstant.Builder clearCountryCode()
         Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
         
        optional string country_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setCountryCodeBytes

        public GeoTargetConstant.Builder setCountryCodeBytes​(com.google.protobuf.ByteString value)
         Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
         
        optional string country_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for countryCode to set.
        Returns:
        This builder for chaining.
      • hasTargetType

        public boolean hasTargetType()
         Output only. Geo target constant target type.
         
        optional string target_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasTargetType in interface GeoTargetConstantOrBuilder
        Returns:
        Whether the targetType field is set.
      • getTargetType

        public java.lang.String getTargetType()
         Output only. Geo target constant target type.
         
        optional string target_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTargetType in interface GeoTargetConstantOrBuilder
        Returns:
        The targetType.
      • getTargetTypeBytes

        public com.google.protobuf.ByteString getTargetTypeBytes()
         Output only. Geo target constant target type.
         
        optional string target_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTargetTypeBytes in interface GeoTargetConstantOrBuilder
        Returns:
        The bytes for targetType.
      • setTargetType

        public GeoTargetConstant.Builder setTargetType​(java.lang.String value)
         Output only. Geo target constant target type.
         
        optional string target_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The targetType to set.
        Returns:
        This builder for chaining.
      • clearTargetType

        public GeoTargetConstant.Builder clearTargetType()
         Output only. Geo target constant target type.
         
        optional string target_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setTargetTypeBytes

        public GeoTargetConstant.Builder setTargetTypeBytes​(com.google.protobuf.ByteString value)
         Output only. Geo target constant target type.
         
        optional string target_type = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for targetType to set.
        Returns:
        This builder for chaining.
      • getStatusValue

        public int getStatusValue()
         Output only. Geo target constant status.
         
        .google.ads.googleads.v10.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStatusValue in interface GeoTargetConstantOrBuilder
        Returns:
        The enum numeric value on the wire for status.
      • setStatusValue

        public GeoTargetConstant.Builder setStatusValue​(int value)
         Output only. Geo target constant status.
         
        .google.ads.googleads.v10.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public GeoTargetConstant.Builder clearStatus()
         Output only. Geo target constant status.
         
        .google.ads.googleads.v10.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasCanonicalName

        public boolean hasCanonicalName()
         Output only. The fully qualified English name, consisting of the target's name and that
         of its parent and country.
         
        optional string canonical_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCanonicalName in interface GeoTargetConstantOrBuilder
        Returns:
        Whether the canonicalName field is set.
      • getCanonicalName

        public java.lang.String getCanonicalName()
         Output only. The fully qualified English name, consisting of the target's name and that
         of its parent and country.
         
        optional string canonical_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCanonicalName in interface GeoTargetConstantOrBuilder
        Returns:
        The canonicalName.
      • getCanonicalNameBytes

        public com.google.protobuf.ByteString getCanonicalNameBytes()
         Output only. The fully qualified English name, consisting of the target's name and that
         of its parent and country.
         
        optional string canonical_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCanonicalNameBytes in interface GeoTargetConstantOrBuilder
        Returns:
        The bytes for canonicalName.
      • setCanonicalName

        public GeoTargetConstant.Builder setCanonicalName​(java.lang.String value)
         Output only. The fully qualified English name, consisting of the target's name and that
         of its parent and country.
         
        optional string canonical_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The canonicalName to set.
        Returns:
        This builder for chaining.
      • clearCanonicalName

        public GeoTargetConstant.Builder clearCanonicalName()
         Output only. The fully qualified English name, consisting of the target's name and that
         of its parent and country.
         
        optional string canonical_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setCanonicalNameBytes

        public GeoTargetConstant.Builder setCanonicalNameBytes​(com.google.protobuf.ByteString value)
         Output only. The fully qualified English name, consisting of the target's name and that
         of its parent and country.
         
        optional string canonical_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for canonicalName to set.
        Returns:
        This builder for chaining.
      • hasParentGeoTarget

        public boolean hasParentGeoTarget()
         Output only. The resource name of the parent geo target constant.
         Geo target constant resource names have the form:
         `geoTargetConstants/{parent_geo_target_constant_id}`
         
        optional string parent_geo_target = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        hasParentGeoTarget in interface GeoTargetConstantOrBuilder
        Returns:
        Whether the parentGeoTarget field is set.
      • getParentGeoTarget

        public java.lang.String getParentGeoTarget()
         Output only. The resource name of the parent geo target constant.
         Geo target constant resource names have the form:
         `geoTargetConstants/{parent_geo_target_constant_id}`
         
        optional string parent_geo_target = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentGeoTarget in interface GeoTargetConstantOrBuilder
        Returns:
        The parentGeoTarget.
      • getParentGeoTargetBytes

        public com.google.protobuf.ByteString getParentGeoTargetBytes()
         Output only. The resource name of the parent geo target constant.
         Geo target constant resource names have the form:
         `geoTargetConstants/{parent_geo_target_constant_id}`
         
        optional string parent_geo_target = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentGeoTargetBytes in interface GeoTargetConstantOrBuilder
        Returns:
        The bytes for parentGeoTarget.
      • setParentGeoTarget

        public GeoTargetConstant.Builder setParentGeoTarget​(java.lang.String value)
         Output only. The resource name of the parent geo target constant.
         Geo target constant resource names have the form:
         `geoTargetConstants/{parent_geo_target_constant_id}`
         
        optional string parent_geo_target = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parentGeoTarget to set.
        Returns:
        This builder for chaining.
      • clearParentGeoTarget

        public GeoTargetConstant.Builder clearParentGeoTarget()
         Output only. The resource name of the parent geo target constant.
         Geo target constant resource names have the form:
         `geoTargetConstants/{parent_geo_target_constant_id}`
         
        optional string parent_geo_target = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentGeoTargetBytes

        public GeoTargetConstant.Builder setParentGeoTargetBytes​(com.google.protobuf.ByteString value)
         Output only. The resource name of the parent geo target constant.
         Geo target constant resource names have the form:
         `geoTargetConstants/{parent_geo_target_constant_id}`
         
        optional string parent_geo_target = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parentGeoTarget to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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