Class DeviceInfo (0.1.0)

publicfinalclass DeviceInfoextendsGeneratedMessageV3implementsDeviceInfoOrBuilder

Information about the device being used (if any) when the event happened.

Protobuf type google.ads.datamanager.v1.DeviceInfo

Implements

DeviceInfoOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

IP_ADDRESS_FIELD_NUMBER

publicstaticfinalintIP_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

USER_AGENT_FIELD_NUMBER

publicstaticfinalintUSER_AGENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticDeviceInfogetDefaultInstance()
Returns
Type Description
DeviceInfo

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticDeviceInfo.BuildernewBuilder()
Returns
Type Description
DeviceInfo.Builder

newBuilder(DeviceInfo prototype)

publicstaticDeviceInfo.BuildernewBuilder(DeviceInfoprototype)
Parameter
Name Description
prototype DeviceInfo
Returns
Type Description
DeviceInfo.Builder

parseDelimitedFrom(InputStream input)

publicstaticDeviceInfoparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
DeviceInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticDeviceInfoparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeviceInfo
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticDeviceInfoparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
DeviceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticDeviceInfoparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeviceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticDeviceInfoparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
DeviceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticDeviceInfoparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeviceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticDeviceInfoparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DeviceInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticDeviceInfoparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeviceInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticDeviceInfoparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
DeviceInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticDeviceInfoparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeviceInfo
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticDeviceInfoparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DeviceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticDeviceInfoparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeviceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<DeviceInfo>parser()
Returns
Type Description
Parser<DeviceInfo>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicDeviceInfogetDefaultInstanceForType()
Returns
Type Description
DeviceInfo

getIpAddress()

publicStringgetIpAddress()

Optional. The IP address of the device for the given context.

Note: Google Ads does not support IP address matching for end users in the European Economic Area (EEA), United Kingdom (UK), or Switzerland (CH). Add logic to conditionally exclude sharing IP addresses from users from these regions and ensure that you provide users with clear and comprehensive information about the data you collect on your sites, apps, and other properties and get consent where required by law or any applicable Google policies. See the About offline conversion imports page for more details.

string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The ipAddress.

getIpAddressBytes()

publicByteStringgetIpAddressBytes()

Optional. The IP address of the device for the given context.

Note: Google Ads does not support IP address matching for end users in the European Economic Area (EEA), United Kingdom (UK), or Switzerland (CH). Add logic to conditionally exclude sharing IP addresses from users from these regions and ensure that you provide users with clear and comprehensive information about the data you collect on your sites, apps, and other properties and get consent where required by law or any applicable Google policies. See the About offline conversion imports page for more details.

string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for ipAddress.

getParserForType()

publicParser<DeviceInfo>getParserForType()
Returns
Type Description
Parser<DeviceInfo>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getUserAgent()

publicStringgetUserAgent()

Optional. The user-agent string of the device for the given context.

string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The userAgent.

getUserAgentBytes()

publicByteStringgetUserAgentBytes()

Optional. The user-agent string of the device for the given context.

string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for userAgent.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicDeviceInfo.BuildernewBuilderForType()
Returns
Type Description
DeviceInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedDeviceInfo.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DeviceInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicDeviceInfo.BuildertoBuilder()
Returns
Type Description
DeviceInfo.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.