Class MobileDeviceConstant.Builder

  • All Implemented Interfaces:
    MobileDeviceConstantOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    MobileDeviceConstant

    public static final class MobileDeviceConstant.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<MobileDeviceConstant.Builder>
    implements MobileDeviceConstantOrBuilder
     A mobile device constant.
     
    Protobuf type google.ads.googleads.v14.resources.MobileDeviceConstant
    • 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<MobileDeviceConstant.Builder>
      • clear

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

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

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

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

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

        public MobileDeviceConstant.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<MobileDeviceConstant.Builder>
      • clearField

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

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

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

        public MobileDeviceConstant.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MobileDeviceConstant.Builder>
      • isInitialized

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

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

        public java.lang.String getResourceName()
         Output only. The resource name of the mobile device constant.
         Mobile device constant resource names have the form:
        
         `mobileDeviceConstants/{criterion_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceName in interface MobileDeviceConstantOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

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

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

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

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

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

        public MobileDeviceConstant.Builder clearId()
         Output only. The ID of the mobile device constant.
         
        optional int64 id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasName

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

        public java.lang.String getName()
         Output only. The name of the mobile device.
         
        optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface MobileDeviceConstantOrBuilder
        Returns:
        The name.
      • getNameBytes

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

        public MobileDeviceConstant.Builder setName​(java.lang.String value)
         Output only. The name of the mobile device.
         
        optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public MobileDeviceConstant.Builder clearName()
         Output only. The name of the mobile device.
         
        optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public MobileDeviceConstant.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The name of the mobile device.
         
        optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasManufacturerName

        public boolean hasManufacturerName()
         Output only. The manufacturer of the mobile device.
         
        optional string manufacturer_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasManufacturerName in interface MobileDeviceConstantOrBuilder
        Returns:
        Whether the manufacturerName field is set.
      • getManufacturerName

        public java.lang.String getManufacturerName()
         Output only. The manufacturer of the mobile device.
         
        optional string manufacturer_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getManufacturerName in interface MobileDeviceConstantOrBuilder
        Returns:
        The manufacturerName.
      • getManufacturerNameBytes

        public com.google.protobuf.ByteString getManufacturerNameBytes()
         Output only. The manufacturer of the mobile device.
         
        optional string manufacturer_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getManufacturerNameBytes in interface MobileDeviceConstantOrBuilder
        Returns:
        The bytes for manufacturerName.
      • setManufacturerName

        public MobileDeviceConstant.Builder setManufacturerName​(java.lang.String value)
         Output only. The manufacturer of the mobile device.
         
        optional string manufacturer_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The manufacturerName to set.
        Returns:
        This builder for chaining.
      • clearManufacturerName

        public MobileDeviceConstant.Builder clearManufacturerName()
         Output only. The manufacturer of the mobile device.
         
        optional string manufacturer_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setManufacturerNameBytes

        public MobileDeviceConstant.Builder setManufacturerNameBytes​(com.google.protobuf.ByteString value)
         Output only. The manufacturer of the mobile device.
         
        optional string manufacturer_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for manufacturerName to set.
        Returns:
        This builder for chaining.
      • hasOperatingSystemName

        public boolean hasOperatingSystemName()
         Output only. The operating system of the mobile device.
         
        optional string operating_system_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasOperatingSystemName in interface MobileDeviceConstantOrBuilder
        Returns:
        Whether the operatingSystemName field is set.
      • getOperatingSystemName

        public java.lang.String getOperatingSystemName()
         Output only. The operating system of the mobile device.
         
        optional string operating_system_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getOperatingSystemName in interface MobileDeviceConstantOrBuilder
        Returns:
        The operatingSystemName.
      • getOperatingSystemNameBytes

        public com.google.protobuf.ByteString getOperatingSystemNameBytes()
         Output only. The operating system of the mobile device.
         
        optional string operating_system_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getOperatingSystemNameBytes in interface MobileDeviceConstantOrBuilder
        Returns:
        The bytes for operatingSystemName.
      • setOperatingSystemName

        public MobileDeviceConstant.Builder setOperatingSystemName​(java.lang.String value)
         Output only. The operating system of the mobile device.
         
        optional string operating_system_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The operatingSystemName to set.
        Returns:
        This builder for chaining.
      • clearOperatingSystemName

        public MobileDeviceConstant.Builder clearOperatingSystemName()
         Output only. The operating system of the mobile device.
         
        optional string operating_system_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setOperatingSystemNameBytes

        public MobileDeviceConstant.Builder setOperatingSystemNameBytes​(com.google.protobuf.ByteString value)
         Output only. The operating system of the mobile device.
         
        optional string operating_system_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for operatingSystemName to set.
        Returns:
        This builder for chaining.
      • getTypeValue

        public int getTypeValue()
         Output only. The type of mobile device.
         
        .google.ads.googleads.v14.enums.MobileDeviceTypeEnum.MobileDeviceType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTypeValue in interface MobileDeviceConstantOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public MobileDeviceConstant.Builder setTypeValue​(int value)
         Output only. The type of mobile device.
         
        .google.ads.googleads.v14.enums.MobileDeviceTypeEnum.MobileDeviceType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • setType

        public MobileDeviceConstant.Builder setType​(MobileDeviceTypeEnum.MobileDeviceType value)
         Output only. The type of mobile device.
         
        .google.ads.googleads.v14.enums.MobileDeviceTypeEnum.MobileDeviceType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public MobileDeviceConstant.Builder clearType()
         Output only. The type of mobile device.
         
        .google.ads.googleads.v14.enums.MobileDeviceTypeEnum.MobileDeviceType type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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