Class GoogleLocalServicesInfo.Builder

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

public static final class GoogleLocalServicesInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<GoogleLocalServicesInfo.Builder> implements GoogleLocalServicesInfoOrBuilder
 Local services info for the asset group.
 
Protobuf type google.ads.googleads.v24.resources.GoogleLocalServicesInfo
  • 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<GoogleLocalServicesInfo.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<GoogleLocalServicesInfo.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<GoogleLocalServicesInfo.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public GoogleLocalServicesInfo.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<GoogleLocalServicesInfo.Builder>
      Throws:
      IOException
    • hasCategoryId

      public boolean hasCategoryId()
       Immutable. The local services category associated with this asset group.
       That is, XCAT format - xcat:service_area_business_plumber. See
       https://developers.google.com/google-ads/api/data/codes-formats#local-services-category-ids
       This field cannot be modified after the AssetGroup has been created.
       
      optional string category_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasCategoryId in interface GoogleLocalServicesInfoOrBuilder
      Returns:
      Whether the categoryId field is set.
    • getCategoryId

      public String getCategoryId()
       Immutable. The local services category associated with this asset group.
       That is, XCAT format - xcat:service_area_business_plumber. See
       https://developers.google.com/google-ads/api/data/codes-formats#local-services-category-ids
       This field cannot be modified after the AssetGroup has been created.
       
      optional string category_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getCategoryId in interface GoogleLocalServicesInfoOrBuilder
      Returns:
      The categoryId.
    • getCategoryIdBytes

      public com.google.protobuf.ByteString getCategoryIdBytes()
       Immutable. The local services category associated with this asset group.
       That is, XCAT format - xcat:service_area_business_plumber. See
       https://developers.google.com/google-ads/api/data/codes-formats#local-services-category-ids
       This field cannot be modified after the AssetGroup has been created.
       
      optional string category_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getCategoryIdBytes in interface GoogleLocalServicesInfoOrBuilder
      Returns:
      The bytes for categoryId.
    • setCategoryId

      public GoogleLocalServicesInfo.Builder setCategoryId(String value)
       Immutable. The local services category associated with this asset group.
       That is, XCAT format - xcat:service_area_business_plumber. See
       https://developers.google.com/google-ads/api/data/codes-formats#local-services-category-ids
       This field cannot be modified after the AssetGroup has been created.
       
      optional string category_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The categoryId to set.
      Returns:
      This builder for chaining.
    • clearCategoryId

      public GoogleLocalServicesInfo.Builder clearCategoryId()
       Immutable. The local services category associated with this asset group.
       That is, XCAT format - xcat:service_area_business_plumber. See
       https://developers.google.com/google-ads/api/data/codes-formats#local-services-category-ids
       This field cannot be modified after the AssetGroup has been created.
       
      optional string category_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setCategoryIdBytes

      public GoogleLocalServicesInfo.Builder setCategoryIdBytes(com.google.protobuf.ByteString value)
       Immutable. The local services category associated with this asset group.
       That is, XCAT format - xcat:service_area_business_plumber. See
       https://developers.google.com/google-ads/api/data/codes-formats#local-services-category-ids
       This field cannot be modified after the AssetGroup has been created.
       
      optional string category_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for categoryId to set.
      Returns:
      This builder for chaining.
    • getCalloutsList

      public List<LocalServicesCallout> getCalloutsList()
       Callouts selected by the advertiser to show.
       
      repeated .google.ads.googleads.v24.resources.LocalServicesCallout callouts = 2;
      Specified by:
      getCalloutsList in interface GoogleLocalServicesInfoOrBuilder
    • getCalloutsCount

      public int getCalloutsCount()
       Callouts selected by the advertiser to show.
       
      repeated .google.ads.googleads.v24.resources.LocalServicesCallout callouts = 2;
      Specified by:
      getCalloutsCount in interface GoogleLocalServicesInfoOrBuilder
    • getCallouts

      public LocalServicesCallout getCallouts(int index)
       Callouts selected by the advertiser to show.
       
      repeated .google.ads.googleads.v24.resources.LocalServicesCallout callouts = 2;
      Specified by:
      getCallouts in interface GoogleLocalServicesInfoOrBuilder
    • setCallouts

      public GoogleLocalServicesInfo.Builder setCallouts(int index, LocalServicesCallout value)
       Callouts selected by the advertiser to show.
       
      repeated .google.ads.googleads.v24.resources.LocalServicesCallout callouts = 2;
    • setCallouts

      public GoogleLocalServicesInfo.Builder setCallouts(int index, LocalServicesCallout.Builder builderForValue)
       Callouts selected by the advertiser to show.
       
      repeated .google.ads.googleads.v24.resources.LocalServicesCallout callouts = 2;
    • addCallouts

       Callouts selected by the advertiser to show.
       
      repeated .google.ads.googleads.v24.resources.LocalServicesCallout callouts = 2;
    • addCallouts

      public GoogleLocalServicesInfo.Builder addCallouts(int index, LocalServicesCallout value)
       Callouts selected by the advertiser to show.
       
      repeated .google.ads.googleads.v24.resources.LocalServicesCallout callouts = 2;
    • addCallouts

      public GoogleLocalServicesInfo.Builder addCallouts(LocalServicesCallout.Builder builderForValue)
       Callouts selected by the advertiser to show.
       
      repeated .google.ads.googleads.v24.resources.LocalServicesCallout callouts = 2;
    • addCallouts

      public GoogleLocalServicesInfo.Builder addCallouts(int index, LocalServicesCallout.Builder builderForValue)
       Callouts selected by the advertiser to show.
       
      repeated .google.ads.googleads.v24.resources.LocalServicesCallout callouts = 2;
    • addAllCallouts

      public GoogleLocalServicesInfo.Builder addAllCallouts(Iterable<? extends LocalServicesCallout> values)
       Callouts selected by the advertiser to show.
       
      repeated .google.ads.googleads.v24.resources.LocalServicesCallout callouts = 2;
    • clearCallouts

      public GoogleLocalServicesInfo.Builder clearCallouts()
       Callouts selected by the advertiser to show.
       
      repeated .google.ads.googleads.v24.resources.LocalServicesCallout callouts = 2;
    • removeCallouts

      public GoogleLocalServicesInfo.Builder removeCallouts(int index)
       Callouts selected by the advertiser to show.
       
      repeated .google.ads.googleads.v24.resources.LocalServicesCallout callouts = 2;
    • getCalloutsBuilder

      public LocalServicesCallout.Builder getCalloutsBuilder(int index)
       Callouts selected by the advertiser to show.
       
      repeated .google.ads.googleads.v24.resources.LocalServicesCallout callouts = 2;
    • getCalloutsOrBuilder

      public LocalServicesCalloutOrBuilder getCalloutsOrBuilder(int index)
       Callouts selected by the advertiser to show.
       
      repeated .google.ads.googleads.v24.resources.LocalServicesCallout callouts = 2;
      Specified by:
      getCalloutsOrBuilder in interface GoogleLocalServicesInfoOrBuilder
    • getCalloutsOrBuilderList

      public List<? extends LocalServicesCalloutOrBuilder> getCalloutsOrBuilderList()
       Callouts selected by the advertiser to show.
       
      repeated .google.ads.googleads.v24.resources.LocalServicesCallout callouts = 2;
      Specified by:
      getCalloutsOrBuilderList in interface GoogleLocalServicesInfoOrBuilder
    • addCalloutsBuilder

      public LocalServicesCallout.Builder addCalloutsBuilder()
       Callouts selected by the advertiser to show.
       
      repeated .google.ads.googleads.v24.resources.LocalServicesCallout callouts = 2;
    • addCalloutsBuilder

      public LocalServicesCallout.Builder addCalloutsBuilder(int index)
       Callouts selected by the advertiser to show.
       
      repeated .google.ads.googleads.v24.resources.LocalServicesCallout callouts = 2;
    • getCalloutsBuilderList

      public List<LocalServicesCallout.Builder> getCalloutsBuilderList()
       Callouts selected by the advertiser to show.
       
      repeated .google.ads.googleads.v24.resources.LocalServicesCallout callouts = 2;