Class GeographicView.Builder

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

    public static final class GeographicView.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<GeographicView.Builder>
    implements GeographicViewOrBuilder
     A geographic view.
    
     Geographic View includes all metrics aggregated at the country level,
     one row per country. It reports metrics at either actual physical location of
     the user or an area of interest. If other segment fields are used, you may
     get more than one row per country.
     
    Protobuf type google.ads.googleads.v14.resources.GeographicView
    • 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<GeographicView.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

        public java.lang.String getResourceName()
         Output only. The resource name of the geographic view.
         Geographic view resource names have the form:
        
         `customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceName in interface GeographicViewOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         Output only. The resource name of the geographic view.
         Geographic view resource names have the form:
        
         `customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceNameBytes in interface GeographicViewOrBuilder
        Returns:
        The bytes for resourceName.
      • setResourceName

        public GeographicView.Builder setResourceName​(java.lang.String value)
         Output only. The resource name of the geographic view.
         Geographic view resource names have the form:
        
         `customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}`
         
        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 GeographicView.Builder clearResourceName()
         Output only. The resource name of the geographic view.
         Geographic view resource names have the form:
        
         `customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setResourceNameBytes

        public GeographicView.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         Output only. The resource name of the geographic view.
         Geographic view resource names have the form:
        
         `customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}`
         
        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.
      • getLocationTypeValue

        public int getLocationTypeValue()
         Output only. Type of the geo targeting of the campaign.
         
        .google.ads.googleads.v14.enums.GeoTargetingTypeEnum.GeoTargetingType location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLocationTypeValue in interface GeographicViewOrBuilder
        Returns:
        The enum numeric value on the wire for locationType.
      • setLocationTypeValue

        public GeographicView.Builder setLocationTypeValue​(int value)
         Output only. Type of the geo targeting of the campaign.
         
        .google.ads.googleads.v14.enums.GeoTargetingTypeEnum.GeoTargetingType location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for locationType to set.
        Returns:
        This builder for chaining.
      • setLocationType

        public GeographicView.Builder setLocationType​(GeoTargetingTypeEnum.GeoTargetingType value)
         Output only. Type of the geo targeting of the campaign.
         
        .google.ads.googleads.v14.enums.GeoTargetingTypeEnum.GeoTargetingType location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The locationType to set.
        Returns:
        This builder for chaining.
      • clearLocationType

        public GeographicView.Builder clearLocationType()
         Output only. Type of the geo targeting of the campaign.
         
        .google.ads.googleads.v14.enums.GeoTargetingTypeEnum.GeoTargetingType location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasCountryCriterionId

        public boolean hasCountryCriterionId()
         Output only. Criterion Id for the country.
         
        optional int64 country_criterion_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCountryCriterionId in interface GeographicViewOrBuilder
        Returns:
        Whether the countryCriterionId field is set.
      • getCountryCriterionId

        public long getCountryCriterionId()
         Output only. Criterion Id for the country.
         
        optional int64 country_criterion_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCountryCriterionId in interface GeographicViewOrBuilder
        Returns:
        The countryCriterionId.
      • setCountryCriterionId

        public GeographicView.Builder setCountryCriterionId​(long value)
         Output only. Criterion Id for the country.
         
        optional int64 country_criterion_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The countryCriterionId to set.
        Returns:
        This builder for chaining.
      • clearCountryCriterionId

        public GeographicView.Builder clearCountryCriterionId()
         Output only. Criterion Id for the country.
         
        optional int64 country_criterion_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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