Class BenchmarksLocation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BenchmarksLocation.Builder>
com.google.ads.googleads.v23.services.BenchmarksLocation.Builder
All Implemented Interfaces:
BenchmarksLocationOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BenchmarksLocation

public static final class BenchmarksLocation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BenchmarksLocation.Builder> implements BenchmarksLocationOrBuilder
 A location that supports benchmarks data.
 
Protobuf type google.ads.googleads.v23.services.BenchmarksLocation
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Overrides:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BenchmarksLocation.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<BenchmarksLocation.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<BenchmarksLocation.Builder>
    • getDefaultInstanceForType

      public BenchmarksLocation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

      public BenchmarksLocation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<BenchmarksLocation.Builder>
    • setField

      public BenchmarksLocation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<BenchmarksLocation.Builder>
    • clearField

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

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

      public BenchmarksLocation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BenchmarksLocation.Builder>
    • addRepeatedField

      public BenchmarksLocation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BenchmarksLocation.Builder>
    • mergeFrom

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

    • isInitialized

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

      public BenchmarksLocation.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<BenchmarksLocation.Builder>
      Throws:
      IOException
    • getLocationName

      public String getLocationName()
       The unique location name in English.
       
      string location_name = 1;
      Specified by:
      getLocationName in interface BenchmarksLocationOrBuilder
      Returns:
      The locationName.
    • getLocationNameBytes

      public com.google.protobuf.ByteString getLocationNameBytes()
       The unique location name in English.
       
      string location_name = 1;
      Specified by:
      getLocationNameBytes in interface BenchmarksLocationOrBuilder
      Returns:
      The bytes for locationName.
    • setLocationName

      public BenchmarksLocation.Builder setLocationName(String value)
       The unique location name in English.
       
      string location_name = 1;
      Parameters:
      value - The locationName to set.
      Returns:
      This builder for chaining.
    • clearLocationName

      public BenchmarksLocation.Builder clearLocationName()
       The unique location name in English.
       
      string location_name = 1;
      Returns:
      This builder for chaining.
    • setLocationNameBytes

      public BenchmarksLocation.Builder setLocationNameBytes(com.google.protobuf.ByteString value)
       The unique location name in English.
       
      string location_name = 1;
      Parameters:
      value - The bytes for locationName to set.
      Returns:
      This builder for chaining.
    • getLocationType

      public String getLocationType()
       The location's type. Location types correspond to target_type returned by
       searching location type in GoogleAdsService.Search/SearchStream.
       
      string location_type = 2;
      Specified by:
      getLocationType in interface BenchmarksLocationOrBuilder
      Returns:
      The locationType.
    • getLocationTypeBytes

      public com.google.protobuf.ByteString getLocationTypeBytes()
       The location's type. Location types correspond to target_type returned by
       searching location type in GoogleAdsService.Search/SearchStream.
       
      string location_type = 2;
      Specified by:
      getLocationTypeBytes in interface BenchmarksLocationOrBuilder
      Returns:
      The bytes for locationType.
    • setLocationType

      public BenchmarksLocation.Builder setLocationType(String value)
       The location's type. Location types correspond to target_type returned by
       searching location type in GoogleAdsService.Search/SearchStream.
       
      string location_type = 2;
      Parameters:
      value - The locationType to set.
      Returns:
      This builder for chaining.
    • clearLocationType

      public BenchmarksLocation.Builder clearLocationType()
       The location's type. Location types correspond to target_type returned by
       searching location type in GoogleAdsService.Search/SearchStream.
       
      string location_type = 2;
      Returns:
      This builder for chaining.
    • setLocationTypeBytes

      public BenchmarksLocation.Builder setLocationTypeBytes(com.google.protobuf.ByteString value)
       The location's type. Location types correspond to target_type returned by
       searching location type in GoogleAdsService.Search/SearchStream.
       
      string location_type = 2;
      Parameters:
      value - The bytes for locationType to set.
      Returns:
      This builder for chaining.
    • hasLocationInfo

      public boolean hasLocationInfo()
       Information on the geographic location, including the location ID.
       
      .google.ads.googleads.v23.common.LocationInfo location_info = 3;
      Specified by:
      hasLocationInfo in interface BenchmarksLocationOrBuilder
      Returns:
      Whether the locationInfo field is set.
    • getLocationInfo

      public LocationInfo getLocationInfo()
       Information on the geographic location, including the location ID.
       
      .google.ads.googleads.v23.common.LocationInfo location_info = 3;
      Specified by:
      getLocationInfo in interface BenchmarksLocationOrBuilder
      Returns:
      The locationInfo.
    • setLocationInfo

      public BenchmarksLocation.Builder setLocationInfo(LocationInfo value)
       Information on the geographic location, including the location ID.
       
      .google.ads.googleads.v23.common.LocationInfo location_info = 3;
    • setLocationInfo

      public BenchmarksLocation.Builder setLocationInfo(LocationInfo.Builder builderForValue)
       Information on the geographic location, including the location ID.
       
      .google.ads.googleads.v23.common.LocationInfo location_info = 3;
    • mergeLocationInfo

      public BenchmarksLocation.Builder mergeLocationInfo(LocationInfo value)
       Information on the geographic location, including the location ID.
       
      .google.ads.googleads.v23.common.LocationInfo location_info = 3;
    • clearLocationInfo

      public BenchmarksLocation.Builder clearLocationInfo()
       Information on the geographic location, including the location ID.
       
      .google.ads.googleads.v23.common.LocationInfo location_info = 3;
    • getLocationInfoBuilder

      public LocationInfo.Builder getLocationInfoBuilder()
       Information on the geographic location, including the location ID.
       
      .google.ads.googleads.v23.common.LocationInfo location_info = 3;
    • getLocationInfoOrBuilder

      public LocationInfoOrBuilder getLocationInfoOrBuilder()
       Information on the geographic location, including the location ID.
       
      .google.ads.googleads.v23.common.LocationInfo location_info = 3;
      Specified by:
      getLocationInfoOrBuilder in interface BenchmarksLocationOrBuilder
    • setUnknownFields

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

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