Class GetDeviceRequest.Builder (2.51.0)

public static final class GetDeviceRequest.Builder extends GeneratedMessageV3.Builder<GetDeviceRequest.Builder> implements GetDeviceRequestOrBuilder

Request for GetDevice.

Protobuf type google.cloud.iot.v1.GetDeviceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetDeviceRequest build()
Returns
Type Description
GetDeviceRequest

buildPartial()

public GetDeviceRequest buildPartial()
Returns
Type Description
GetDeviceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFieldMask()

public GetDeviceRequest.Builder clearFieldMask()

The fields of the Device resource to be returned in the response. If the field mask is unset or empty, all fields are returned. Fields have to be provided in snake_case format, for example: last_heartbeat_time.

.google.protobuf.FieldMask field_mask = 2;

Returns
Type Description
GetDeviceRequest.Builder

clearName()

public GetDeviceRequest.Builder clearName()

Required. The name of the device. For example, projects/p0/locations/us-central1/registries/registry0/devices/device0 or projects/p0/locations/us-central1/registries/registry0/devices/{num_id}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
GetDeviceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetDeviceRequest getDefaultInstanceForType()
Returns
Type Description
GetDeviceRequest

getDescriptorForType()

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

getFieldMask()

public FieldMask getFieldMask()

The fields of the Device resource to be returned in the response. If the field mask is unset or empty, all fields are returned. Fields have to be provided in snake_case format, for example: last_heartbeat_time.

.google.protobuf.FieldMask field_mask = 2;

Returns
Type Description
FieldMask

The fieldMask.

getFieldMaskBuilder()

public FieldMask.Builder getFieldMaskBuilder()

The fields of the Device resource to be returned in the response. If the field mask is unset or empty, all fields are returned. Fields have to be provided in snake_case format, for example: last_heartbeat_time.

.google.protobuf.FieldMask field_mask = 2;

Returns
Type Description
Builder

getFieldMaskOrBuilder()

public FieldMaskOrBuilder getFieldMaskOrBuilder()

The fields of the Device resource to be returned in the response. If the field mask is unset or empty, all fields are returned. Fields have to be provided in snake_case format, for example: last_heartbeat_time.

.google.protobuf.FieldMask field_mask = 2;

Returns
Type Description
FieldMaskOrBuilder

getName()

public String getName()

Required. The name of the device. For example, projects/p0/locations/us-central1/registries/registry0/devices/device0 or projects/p0/locations/us-central1/registries/registry0/devices/{num_id}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the device. For example, projects/p0/locations/us-central1/registries/registry0/devices/device0 or projects/p0/locations/us-central1/registries/registry0/devices/{num_id}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

hasFieldMask()

public boolean hasFieldMask()

The fields of the Device resource to be returned in the response. If the field mask is unset or empty, all fields are returned. Fields have to be provided in snake_case format, for example: last_heartbeat_time.

.google.protobuf.FieldMask field_mask = 2;

Returns
Type Description
boolean

Whether the fieldMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFieldMask(FieldMask value)

public GetDeviceRequest.Builder mergeFieldMask(FieldMask value)

The fields of the Device resource to be returned in the response. If the field mask is unset or empty, all fields are returned. Fields have to be provided in snake_case format, for example: last_heartbeat_time.

.google.protobuf.FieldMask field_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
GetDeviceRequest.Builder

mergeFrom(GetDeviceRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFieldMask(FieldMask value)

public GetDeviceRequest.Builder setFieldMask(FieldMask value)

The fields of the Device resource to be returned in the response. If the field mask is unset or empty, all fields are returned. Fields have to be provided in snake_case format, for example: last_heartbeat_time.

.google.protobuf.FieldMask field_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
GetDeviceRequest.Builder

setFieldMask(FieldMask.Builder builderForValue)

public GetDeviceRequest.Builder setFieldMask(FieldMask.Builder builderForValue)

The fields of the Device resource to be returned in the response. If the field mask is unset or empty, all fields are returned. Fields have to be provided in snake_case format, for example: last_heartbeat_time.

.google.protobuf.FieldMask field_mask = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
GetDeviceRequest.Builder

setName(String value)

public GetDeviceRequest.Builder setName(String value)

Required. The name of the device. For example, projects/p0/locations/us-central1/registries/registry0/devices/device0 or projects/p0/locations/us-central1/registries/registry0/devices/{num_id}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetDeviceRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetDeviceRequest.Builder setNameBytes(ByteString value)

Required. The name of the device. For example, projects/p0/locations/us-central1/registries/registry0/devices/device0 or projects/p0/locations/us-central1/registries/registry0/devices/{num_id}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetDeviceRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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