Class DeviceInfo.Builder (0.1.0)

public static final class DeviceInfo.Builder extends GeneratedMessageV3.Builder<DeviceInfo.Builder> implements DeviceInfoOrBuilder

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

Protobuf type google.ads.datamanager.v1.DeviceInfo

Implements

DeviceInfoOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DeviceInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DeviceInfo.Builder
Overrides

build()

public DeviceInfo build()
Returns
Type Description
DeviceInfo

buildPartial()

public DeviceInfo buildPartial()
Returns
Type Description
DeviceInfo

clear()

public DeviceInfo.Builder clear()
Returns
Type Description
DeviceInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DeviceInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DeviceInfo.Builder
Overrides

clearIpAddress()

public DeviceInfo.Builder clearIpAddress()

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
DeviceInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DeviceInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DeviceInfo.Builder
Overrides

clearUserAgent()

public DeviceInfo.Builder clearUserAgent()

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

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

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

clone()

public DeviceInfo.Builder clone()
Returns
Type Description
DeviceInfo.Builder
Overrides

getDefaultInstanceForType()

public DeviceInfo getDefaultInstanceForType()
Returns
Type Description
DeviceInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getIpAddress()

public String getIpAddress()

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()

public ByteString getIpAddressBytes()

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.

getUserAgent()

public String getUserAgent()

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()

public ByteString getUserAgentBytes()

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeviceInfo other)

public DeviceInfo.Builder mergeFrom(DeviceInfo other)
Parameter
Name Description
other DeviceInfo
Returns
Type Description
DeviceInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DeviceInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeviceInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DeviceInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DeviceInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeviceInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DeviceInfo.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DeviceInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DeviceInfo.Builder
Overrides

setIpAddress(String value)

public DeviceInfo.Builder setIpAddress(String value)

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];

Parameter
Name Description
value String

The ipAddress to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public DeviceInfo.Builder setIpAddressBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for ipAddress to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DeviceInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DeviceInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DeviceInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DeviceInfo.Builder
Overrides

setUserAgent(String value)

public DeviceInfo.Builder setUserAgent(String value)

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

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

Parameter
Name Description
value String

The userAgent to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setUserAgentBytes(ByteString value)

public DeviceInfo.Builder setUserAgentBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for userAgent to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.