Class CarrierConstant.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CarrierConstant.Builder>
com.google.ads.googleads.v18.resources.CarrierConstant.Builder
All Implemented Interfaces:
CarrierConstantOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CarrierConstant

public static final class CarrierConstant.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CarrierConstant.Builder> implements CarrierConstantOrBuilder
 A carrier criterion that can be used in campaign targeting.
 
Protobuf type google.ads.googleads.v18.resources.CarrierConstant
  • Method Details

    • 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<CarrierConstant.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public CarrierConstant.Builder mergeFrom(CarrierConstant other)
    • isInitialized

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

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

      public String getResourceName()
       Output only. The resource name of the carrier criterion.
       Carrier criterion resource names have the form:
      
       `carrierConstants/{criterion_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface CarrierConstantOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Output only. The resource name of the carrier criterion.
       Carrier criterion resource names have the form:
      
       `carrierConstants/{criterion_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceNameBytes in interface CarrierConstantOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public CarrierConstant.Builder setResourceName(String value)
       Output only. The resource name of the carrier criterion.
       Carrier criterion resource names have the form:
      
       `carrierConstants/{criterion_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 CarrierConstant.Builder clearResourceName()
       Output only. The resource name of the carrier criterion.
       Carrier criterion resource names have the form:
      
       `carrierConstants/{criterion_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public CarrierConstant.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       Output only. The resource name of the carrier criterion.
       Carrier criterion resource names have the form:
      
       `carrierConstants/{criterion_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 carrier criterion.
       
      optional int64 id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasId in interface CarrierConstantOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public long getId()
       Output only. The ID of the carrier criterion.
       
      optional int64 id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getId in interface CarrierConstantOrBuilder
      Returns:
      The id.
    • setId

      public CarrierConstant.Builder setId(long value)
       Output only. The ID of the carrier criterion.
       
      optional int64 id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public CarrierConstant.Builder clearId()
       Output only. The ID of the carrier criterion.
       
      optional int64 id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       Output only. The full name of the carrier in English.
       
      optional string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasName in interface CarrierConstantOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Output only. The full name of the carrier in English.
       
      optional string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface CarrierConstantOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The full name of the carrier in English.
       
      optional string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface CarrierConstantOrBuilder
      Returns:
      The bytes for name.
    • setName

      public CarrierConstant.Builder setName(String value)
       Output only. The full name of the carrier in English.
       
      optional string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public CarrierConstant.Builder clearName()
       Output only. The full name of the carrier in English.
       
      optional string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public CarrierConstant.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. The full name of the carrier in English.
       
      optional string name = 6 [(.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 country code of the country where the carrier is located,
       for example, "AR", "FR", etc.
       
      optional string country_code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCountryCode in interface CarrierConstantOrBuilder
      Returns:
      Whether the countryCode field is set.
    • getCountryCode

      public String getCountryCode()
       Output only. The country code of the country where the carrier is located,
       for example, "AR", "FR", etc.
       
      optional string country_code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCountryCode in interface CarrierConstantOrBuilder
      Returns:
      The countryCode.
    • getCountryCodeBytes

      public com.google.protobuf.ByteString getCountryCodeBytes()
       Output only. The country code of the country where the carrier is located,
       for example, "AR", "FR", etc.
       
      optional string country_code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCountryCodeBytes in interface CarrierConstantOrBuilder
      Returns:
      The bytes for countryCode.
    • setCountryCode

      public CarrierConstant.Builder setCountryCode(String value)
       Output only. The country code of the country where the carrier is located,
       for example, "AR", "FR", etc.
       
      optional string country_code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The countryCode to set.
      Returns:
      This builder for chaining.
    • clearCountryCode

      public CarrierConstant.Builder clearCountryCode()
       Output only. The country code of the country where the carrier is located,
       for example, "AR", "FR", etc.
       
      optional string country_code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setCountryCodeBytes

      public CarrierConstant.Builder setCountryCodeBytes(com.google.protobuf.ByteString value)
       Output only. The country code of the country where the carrier is located,
       for example, "AR", "FR", etc.
       
      optional string country_code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for countryCode to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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