Class LanguageConstant.Builder

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

public static final class LanguageConstant.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LanguageConstant.Builder> implements LanguageConstantOrBuilder
 A language.
 
Protobuf type google.ads.googleads.v18.resources.LanguageConstant
  • 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<LanguageConstant.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public LanguageConstant.Builder mergeFrom(LanguageConstant other)
    • isInitialized

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

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

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

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

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

      public LanguageConstant.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       Output only. The resource name of the language constant.
       Language constant resource names have the form:
      
       `languageConstants/{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 language constant.
       
      optional int64 id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasId in interface LanguageConstantOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public long getId()
       Output only. The ID of the language constant.
       
      optional int64 id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getId in interface LanguageConstantOrBuilder
      Returns:
      The id.
    • setId

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

      public LanguageConstant.Builder clearId()
       Output only. The ID of the language constant.
       
      optional int64 id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasCode

      public boolean hasCode()
       Output only. The language code, for example, "en_US", "en_AU", "es", "fr",
       etc.
       
      optional string code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCode in interface LanguageConstantOrBuilder
      Returns:
      Whether the code field is set.
    • getCode

      public String getCode()
       Output only. The language code, for example, "en_US", "en_AU", "es", "fr",
       etc.
       
      optional string code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCode in interface LanguageConstantOrBuilder
      Returns:
      The code.
    • getCodeBytes

      public com.google.protobuf.ByteString getCodeBytes()
       Output only. The language code, for example, "en_US", "en_AU", "es", "fr",
       etc.
       
      optional string code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCodeBytes in interface LanguageConstantOrBuilder
      Returns:
      The bytes for code.
    • setCode

      public LanguageConstant.Builder setCode(String value)
       Output only. The language code, for example, "en_US", "en_AU", "es", "fr",
       etc.
       
      optional string code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The code to set.
      Returns:
      This builder for chaining.
    • clearCode

      public LanguageConstant.Builder clearCode()
       Output only. The language code, for example, "en_US", "en_AU", "es", "fr",
       etc.
       
      optional string code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setCodeBytes

      public LanguageConstant.Builder setCodeBytes(com.google.protobuf.ByteString value)
       Output only. The language code, for example, "en_US", "en_AU", "es", "fr",
       etc.
       
      optional string code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for code to set.
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       Output only. The full name of the language in English, for example,
       "English (US)", "Spanish", etc.
       
      optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasName in interface LanguageConstantOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Output only. The full name of the language in English, for example,
       "English (US)", "Spanish", etc.
       
      optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface LanguageConstantOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The full name of the language in English, for example,
       "English (US)", "Spanish", etc.
       
      optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface LanguageConstantOrBuilder
      Returns:
      The bytes for name.
    • setName

      public LanguageConstant.Builder setName(String value)
       Output only. The full name of the language in English, for example,
       "English (US)", "Spanish", etc.
       
      optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public LanguageConstant.Builder clearName()
       Output only. The full name of the language in English, for example,
       "English (US)", "Spanish", etc.
       
      optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public LanguageConstant.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. The full name of the language in English, for example,
       "English (US)", "Spanish", etc.
       
      optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasTargetable

      public boolean hasTargetable()
       Output only. Whether the language is targetable.
       
      optional bool targetable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasTargetable in interface LanguageConstantOrBuilder
      Returns:
      Whether the targetable field is set.
    • getTargetable

      public boolean getTargetable()
       Output only. Whether the language is targetable.
       
      optional bool targetable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTargetable in interface LanguageConstantOrBuilder
      Returns:
      The targetable.
    • setTargetable

      public LanguageConstant.Builder setTargetable(boolean value)
       Output only. Whether the language is targetable.
       
      optional bool targetable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The targetable to set.
      Returns:
      This builder for chaining.
    • clearTargetable

      public LanguageConstant.Builder clearTargetable()
       Output only. Whether the language is targetable.
       
      optional bool targetable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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