Class GeographicView.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GeographicView.Builder>
com.google.ads.googleads.v23.resources.GeographicView.Builder
All Implemented Interfaces:
GeographicViewOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GeographicView

public static final class GeographicView.Builder extends com.google.protobuf.GeneratedMessage.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.v23.resources.GeographicView
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public GeographicView.Builder mergeFrom(GeographicView other)
    • isInitialized

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

      public GeographicView.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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:
      IOException
    • getResourceName

      public 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(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.v23.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.v23.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.
    • getLocationType

      public GeoTargetingTypeEnum.GeoTargetingType getLocationType()
       Output only. Type of the geo targeting of the campaign.
       
      .google.ads.googleads.v23.enums.GeoTargetingTypeEnum.GeoTargetingType location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLocationType in interface GeographicViewOrBuilder
      Returns:
      The locationType.
    • setLocationType

       Output only. Type of the geo targeting of the campaign.
       
      .google.ads.googleads.v23.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.v23.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.