Class OperatingSystemVersionConstant.Builder

  • All Implemented Interfaces:
    OperatingSystemVersionConstantOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.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.v10.resources.OperatingSystemVersionConstant
    • Method Detail

      • 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>
      • 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

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

        public OperatingSystemVersionConstant.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                       int index,
                                                                       java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OperatingSystemVersionConstant.Builder>
      • 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 java.io.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:
        java.io.IOException
      • getResourceName

        public java.lang.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​(java.lang.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

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

        public OperatingSystemVersionConstant.Builder setName​(java.lang.String value)
         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

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

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