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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DeviceInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public DeviceInfo build()
buildPartial()
public DeviceInfo buildPartial()
clear()
public DeviceInfo.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public DeviceInfo.Builder clearField(Descriptors.FieldDescriptor field)
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public DeviceInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clone()
public DeviceInfo.Builder clone()
Overrides
getDefaultInstanceForType()
public DeviceInfo getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(DeviceInfo other)
public DeviceInfo.Builder mergeFrom(DeviceInfo other)
public DeviceInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public DeviceInfo.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DeviceInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public DeviceInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DeviceInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final DeviceInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|