Class Device

  • All Implemented Interfaces:
    DeviceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Device
    extends com.google.protobuf.GeneratedMessageV3
    implements DeviceOrBuilder
    Protobuf type common.Device
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • 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
      • getDeviceTypeValue

        public int getDeviceTypeValue()
        .common.DeviceType device_type = 1 [json_name = "deviceType"];
        Specified by:
        getDeviceTypeValue in interface DeviceOrBuilder
        Returns:
        The enum numeric value on the wire for deviceType.
      • getDeviceType

        public DeviceType getDeviceType()
        .common.DeviceType device_type = 1 [json_name = "deviceType"];
        Specified by:
        getDeviceType in interface DeviceOrBuilder
        Returns:
        The deviceType.
      • getBrand

        public String getBrand()
        string brand = 2 [json_name = "brand"];
        Specified by:
        getBrand in interface DeviceOrBuilder
        Returns:
        The brand.
      • getBrandBytes

        public com.google.protobuf.ByteString getBrandBytes()
        string brand = 2 [json_name = "brand"];
        Specified by:
        getBrandBytes in interface DeviceOrBuilder
        Returns:
        The bytes for brand.
      • getManufacturer

        public String getManufacturer()
        string manufacturer = 3 [json_name = "manufacturer"];
        Specified by:
        getManufacturer in interface DeviceOrBuilder
        Returns:
        The manufacturer.
      • getManufacturerBytes

        public com.google.protobuf.ByteString getManufacturerBytes()
        string manufacturer = 3 [json_name = "manufacturer"];
        Specified by:
        getManufacturerBytes in interface DeviceOrBuilder
        Returns:
        The bytes for manufacturer.
      • getIdentifier

        public String getIdentifier()
        string identifier = 4 [json_name = "identifier"];
        Specified by:
        getIdentifier in interface DeviceOrBuilder
        Returns:
        The identifier.
      • getIdentifierBytes

        public com.google.protobuf.ByteString getIdentifierBytes()
        string identifier = 4 [json_name = "identifier"];
        Specified by:
        getIdentifierBytes in interface DeviceOrBuilder
        Returns:
        The bytes for identifier.
      • getOsVersion

        public String getOsVersion()
        string os_version = 5 [json_name = "osVersion"];
        Specified by:
        getOsVersion in interface DeviceOrBuilder
        Returns:
        The osVersion.
      • getOsVersionBytes

        public com.google.protobuf.ByteString getOsVersionBytes()
        string os_version = 5 [json_name = "osVersion"];
        Specified by:
        getOsVersionBytes in interface DeviceOrBuilder
        Returns:
        The bytes for osVersion.
      • hasLocale

        @Deprecated
        public boolean hasLocale()
        Deprecated.
        .common.Locale locale = 6 [json_name = "locale", deprecated = true];
        Specified by:
        hasLocale in interface DeviceOrBuilder
        Returns:
        Whether the locale field is set.
      • getLocale

        @Deprecated
        public Locale getLocale()
        Deprecated.
        .common.Locale locale = 6 [json_name = "locale", deprecated = true];
        Specified by:
        getLocale in interface DeviceOrBuilder
        Returns:
        The locale.
      • hasScreen

        public boolean hasScreen()
        .common.Screen screen = 7 [json_name = "screen"];
        Specified by:
        hasScreen in interface DeviceOrBuilder
        Returns:
        Whether the screen field is set.
      • getScreen

        public Screen getScreen()
        .common.Screen screen = 7 [json_name = "screen"];
        Specified by:
        getScreen in interface DeviceOrBuilder
        Returns:
        The screen.
      • getIpAddress

        public String getIpAddress()
        string ip_address = 8 [json_name = "ipAddress"];
        Specified by:
        getIpAddress in interface DeviceOrBuilder
        Returns:
        The ipAddress.
      • getIpAddressBytes

        public com.google.protobuf.ByteString getIpAddressBytes()
        string ip_address = 8 [json_name = "ipAddress"];
        Specified by:
        getIpAddressBytes in interface DeviceOrBuilder
        Returns:
        The bytes for ipAddress.
      • hasLocation

        public boolean hasLocation()
        .common.Location location = 9 [json_name = "location"];
        Specified by:
        hasLocation in interface DeviceOrBuilder
        Returns:
        Whether the location field is set.
      • getLocation

        public Location getLocation()
        .common.Location location = 9 [json_name = "location"];
        Specified by:
        getLocation in interface DeviceOrBuilder
        Returns:
        The location.
      • hasBrowser

        public boolean hasBrowser()
        .common.Browser browser = 10 [json_name = "browser"];
        Specified by:
        hasBrowser in interface DeviceOrBuilder
        Returns:
        Whether the browser field is set.
      • getBrowser

        public Browser getBrowser()
        .common.Browser browser = 10 [json_name = "browser"];
        Specified by:
        getBrowser in interface DeviceOrBuilder
        Returns:
        The browser.
      • getPlatformAppVersion

        public String getPlatformAppVersion()
        string platform_app_version = 11 [json_name = "platformAppVersion"];
        Specified by:
        getPlatformAppVersion in interface DeviceOrBuilder
        Returns:
        The platformAppVersion.
      • getPlatformAppVersionBytes

        public com.google.protobuf.ByteString getPlatformAppVersionBytes()
        string platform_app_version = 11 [json_name = "platformAppVersion"];
        Specified by:
        getPlatformAppVersionBytes in interface DeviceOrBuilder
        Returns:
        The bytes for platformAppVersion.
      • getPromotedMobileSdkVersion

        public String getPromotedMobileSdkVersion()
        string promoted_mobile_sdk_version = 12 [json_name = "promotedMobileSdkVersion"];
        Specified by:
        getPromotedMobileSdkVersion in interface DeviceOrBuilder
        Returns:
        The promotedMobileSdkVersion.
      • getPromotedMobileSdkVersionBytes

        public com.google.protobuf.ByteString getPromotedMobileSdkVersionBytes()
        string promoted_mobile_sdk_version = 12 [json_name = "promotedMobileSdkVersion"];
        Specified by:
        getPromotedMobileSdkVersionBytes in interface DeviceOrBuilder
        Returns:
        The bytes for promotedMobileSdkVersion.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Device parseFrom​(ByteBuffer data)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Device parseFrom​(ByteBuffer data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Device parseFrom​(com.google.protobuf.ByteString data)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Device parseFrom​(com.google.protobuf.ByteString data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Device parseFrom​(byte[] data)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Device parseFrom​(byte[] data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Device parseFrom​(com.google.protobuf.CodedInputStream input,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Device.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Device.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Device.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Device getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Device> parser()
      • getParserForType

        public com.google.protobuf.Parser<Device> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Device getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder