public static final class DeviceInfo.Builder extends GeneratedMessage.Builder<DeviceInfo.Builder> implements DeviceInfoOrBuilderInformation about the device being used (if any) when the event happened.
Protobuf type google.ads.datamanager.v1.DeviceInfo
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DeviceInfo.BuilderImplements
DeviceInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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. |
getDefaultInstanceForType()
public DeviceInfo getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DeviceInfo |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DeviceInfo.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DeviceInfo.Builder |
|
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 |
StringThe 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 |
ByteStringThe bytes for ipAddress to set. |
| Returns | |
|---|---|
| Type | Description |
DeviceInfo.Builder |
This builder for chaining. |
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 |
StringThe 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 |
ByteStringThe bytes for userAgent to set. |
| Returns | |
|---|---|
| Type | Description |
DeviceInfo.Builder |
This builder for chaining. |