Class OperatingSystemVersionConstant.Builder

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

public static final class OperatingSystemVersionConstant.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OperatingSystemVersionConstant.Builder> implements OperatingSystemVersionConstantOrBuilder
 A mobile operating system version or a range of versions, depending on
 `operator_type`. List of available mobile platforms at
 https://developers.google.com/google-ads/api/reference/data/codes-formats#mobile-platforms
 
Protobuf type google.ads.googleads.v18.resources.OperatingSystemVersionConstant
  • 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<OperatingSystemVersionConstant.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<OperatingSystemVersionConstant.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<OperatingSystemVersionConstant.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

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

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

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

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

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

    • isInitialized

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

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

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

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

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

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

      public long getId()
       Output only. The ID of the operating system version.
       
      optional int64 id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getId in interface OperatingSystemVersionConstantOrBuilder
      Returns:
      The id.
    • setId

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

       Output only. The ID of the operating system version.
       
      optional int64 id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       Output only. Name of the operating system.
       
      optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasName in interface OperatingSystemVersionConstantOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Output only. Name of the operating system.
       
      optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface OperatingSystemVersionConstantOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. Name of the operating system.
       
      optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface OperatingSystemVersionConstantOrBuilder
      Returns:
      The bytes for name.
    • setName

       Output only. Name of the operating system.
       
      optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Output only. Name of the operating system.
       
      optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public OperatingSystemVersionConstant.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. Name of the operating system.
       
      optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasOsMajorVersion

      public boolean hasOsMajorVersion()
       Output only. The OS Major Version number.
       
      optional int32 os_major_version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasOsMajorVersion in interface OperatingSystemVersionConstantOrBuilder
      Returns:
      Whether the osMajorVersion field is set.
    • getOsMajorVersion

      public int getOsMajorVersion()
       Output only. The OS Major Version number.
       
      optional int32 os_major_version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOsMajorVersion in interface OperatingSystemVersionConstantOrBuilder
      Returns:
      The osMajorVersion.
    • setOsMajorVersion

      public OperatingSystemVersionConstant.Builder setOsMajorVersion(int value)
       Output only. The OS Major Version number.
       
      optional int32 os_major_version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The osMajorVersion to set.
      Returns:
      This builder for chaining.
    • clearOsMajorVersion

      public OperatingSystemVersionConstant.Builder clearOsMajorVersion()
       Output only. The OS Major Version number.
       
      optional int32 os_major_version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasOsMinorVersion

      public boolean hasOsMinorVersion()
       Output only. The OS Minor Version number.
       
      optional int32 os_minor_version = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasOsMinorVersion in interface OperatingSystemVersionConstantOrBuilder
      Returns:
      Whether the osMinorVersion field is set.
    • getOsMinorVersion

      public int getOsMinorVersion()
       Output only. The OS Minor Version number.
       
      optional int32 os_minor_version = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOsMinorVersion in interface OperatingSystemVersionConstantOrBuilder
      Returns:
      The osMinorVersion.
    • setOsMinorVersion

      public OperatingSystemVersionConstant.Builder setOsMinorVersion(int value)
       Output only. The OS Minor Version number.
       
      optional int32 os_minor_version = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The osMinorVersion to set.
      Returns:
      This builder for chaining.
    • clearOsMinorVersion

      public OperatingSystemVersionConstant.Builder clearOsMinorVersion()
       Output only. The OS Minor Version number.
       
      optional int32 os_minor_version = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getOperatorTypeValue

      public int getOperatorTypeValue()
       Output only. Determines whether this constant represents a single version
       or a range of versions.
       
      .google.ads.googleads.v18.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOperatorTypeValue in interface OperatingSystemVersionConstantOrBuilder
      Returns:
      The enum numeric value on the wire for operatorType.
    • setOperatorTypeValue

      public OperatingSystemVersionConstant.Builder setOperatorTypeValue(int value)
       Output only. Determines whether this constant represents a single version
       or a range of versions.
       
      .google.ads.googleads.v18.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for operatorType to set.
      Returns:
      This builder for chaining.
    • getOperatorType

       Output only. Determines whether this constant represents a single version
       or a range of versions.
       
      .google.ads.googleads.v18.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOperatorType in interface OperatingSystemVersionConstantOrBuilder
      Returns:
      The operatorType.
    • setOperatorType

       Output only. Determines whether this constant represents a single version
       or a range of versions.
       
      .google.ads.googleads.v18.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The operatorType to set.
      Returns:
      This builder for chaining.
    • clearOperatorType

      public OperatingSystemVersionConstant.Builder clearOperatorType()
       Output only. Determines whether this constant represents a single version
       or a range of versions.
       
      .google.ads.googleads.v18.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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