Class GetDeviceRequest.Builder (2.34.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetDeviceRequest build()
Returns
TypeDescription
GetDeviceRequest

buildPartial()

public GetDeviceRequest buildPartial()
Returns
TypeDescription
GetDeviceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public GetDeviceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
GetDeviceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetDeviceRequest getDefaultInstanceForType()
Returns
TypeDescription
GetDeviceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the fieldMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
GetDeviceRequest.Builder

mergeFrom(GetDeviceRequest other)

public GetDeviceRequest.Builder mergeFrom(GetDeviceRequest other)
Parameter
NameDescription
otherGetDeviceRequest
Returns
TypeDescription
GetDeviceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public GetDeviceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

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

The bytes for name to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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