Class DeviceInfo.Builder (2.10.0)

public static final class DeviceInfo.Builder extends GeneratedMessageV3.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.v4beta1.DeviceInfo

Implements

DeviceInfoOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DeviceInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DeviceInfo.Builder
Overrides

build()

public DeviceInfo build()
Returns
TypeDescription
DeviceInfo

buildPartial()

public DeviceInfo buildPartial()
Returns
TypeDescription
DeviceInfo

clear()

public DeviceInfo.Builder clear()
Returns
TypeDescription
DeviceInfo.Builder
Overrides

clearDeviceType()

public DeviceInfo.Builder clearDeviceType()

Type of the device.

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

Returns
TypeDescription
DeviceInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DeviceInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DeviceInfo.Builder
Overrides

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DeviceInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DeviceInfo.Builder
Overrides

clone()

public DeviceInfo.Builder clone()
Returns
TypeDescription
DeviceInfo.Builder
Overrides

getDefaultInstanceForType()

public DeviceInfo getDefaultInstanceForType()
Returns
TypeDescription
DeviceInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDeviceType()

public DeviceInfo.DeviceType getDeviceType()

Type of the device.

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

Returns
TypeDescription
DeviceInfo.DeviceType

The deviceType.

getDeviceTypeValue()

public int getDeviceTypeValue()

Type of the device.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for id.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DeviceInfo other)

public DeviceInfo.Builder mergeFrom(DeviceInfo other)
Parameter
NameDescription
otherDeviceInfo
Returns
TypeDescription
DeviceInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DeviceInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeviceInfo.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DeviceInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DeviceInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeviceInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeviceInfo.Builder
Overrides

setDeviceType(DeviceInfo.DeviceType value)

public DeviceInfo.Builder setDeviceType(DeviceInfo.DeviceType value)

Type of the device.

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

Parameter
NameDescription
valueDeviceInfo.DeviceType

The deviceType to set.

Returns
TypeDescription
DeviceInfo.Builder

This builder for chaining.

setDeviceTypeValue(int value)

public DeviceInfo.Builder setDeviceTypeValue(int value)

Type of the device.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
DeviceInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DeviceInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DeviceInfo.Builder
Overrides

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
NameDescription
valueString

The id to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DeviceInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DeviceInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeviceInfo.Builder
Overrides