Class DeviceInfo.Builder (2.84.0)

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

Device information collected from the job seeker, candidate, or other entity conducting the job search. Providing this information improves the quality of the search results across devices.

Protobuf type google.cloud.talent.v4.DeviceInfo

Implements

DeviceInfoOrBuilder

Static 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
Overrides

clearDeviceType()

public DeviceInfo.Builder clearDeviceType()

Type of the device.

.google.cloud.talent.v4.DeviceInfo.DeviceType device_type = 1;

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

clearId()

public DeviceInfo.Builder clearId()

A device-specific ID. The ID must be a unique identifier that distinguishes the device from other devices.

string id = 2;

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
Overrides

getDeviceType()

public DeviceInfo.DeviceType getDeviceType()

Type of the device.

.google.cloud.talent.v4.DeviceInfo.DeviceType device_type = 1;

Returns
Type Description
DeviceInfo.DeviceType

The deviceType.

getDeviceTypeValue()

public int getDeviceTypeValue()

Type of the device.

.google.cloud.talent.v4.DeviceInfo.DeviceType device_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for deviceType.

getId()

public String getId()

A device-specific ID. The ID must be a unique identifier that distinguishes the device from other devices.

string id = 2;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

A device-specific ID. The ID must be a unique identifier that distinguishes the device from other devices.

string id = 2;

Returns
Type Description
ByteString

The bytes for id.

internalGetFieldAccessorTable()

protected GeneratedMessage.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

setDeviceType(DeviceInfo.DeviceType value)

public DeviceInfo.Builder setDeviceType(DeviceInfo.DeviceType value)

Type of the device.

.google.cloud.talent.v4.DeviceInfo.DeviceType device_type = 1;

Parameter
Name Description
value DeviceInfo.DeviceType

The deviceType to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setDeviceTypeValue(int value)

public DeviceInfo.Builder setDeviceTypeValue(int value)

Type of the device.

.google.cloud.talent.v4.DeviceInfo.DeviceType device_type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for deviceType to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setId(String value)

public DeviceInfo.Builder setId(String value)

A device-specific ID. The ID must be a unique identifier that distinguishes the device from other devices.

string id = 2;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setIdBytes(ByteString value)

public DeviceInfo.Builder setIdBytes(ByteString value)

A device-specific ID. The ID must be a unique identifier that distinguishes the device from other devices.

string id = 2;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.