Class UpdateDeviceRequest.Builder (2.49.0)

public static final class UpdateDeviceRequest.Builder extends GeneratedMessageV3.Builder<UpdateDeviceRequest.Builder> implements UpdateDeviceRequestOrBuilder

Request for UpdateDevice.

Protobuf type google.cloud.iot.v1.UpdateDeviceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateDeviceRequest build()
Returns
Type Description
UpdateDeviceRequest

buildPartial()

public UpdateDeviceRequest buildPartial()
Returns
Type Description
UpdateDeviceRequest

clear()

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

clearDevice()

public UpdateDeviceRequest.Builder clearDevice()

Required. The new values for the device. The id and num_id fields must be empty, and the field name must specify the name path. For example, projects/p0/locations/us-central1/registries/registry0/devices/device0or projects/p0/locations/us-central1/registries/registry0/devices/{num_id}.

.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateDeviceRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateDeviceRequest.Builder clearUpdateMask()

Required. Only updates the device fields indicated by this mask. The field mask must not be empty, and it must not contain fields that are immutable or only set by the server. Mutable top-level fields: credentials, blocked, and metadata

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateDeviceRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateDeviceRequest getDefaultInstanceForType()
Returns
Type Description
UpdateDeviceRequest

getDescriptorForType()

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

getDevice()

public Device getDevice()

Required. The new values for the device. The id and num_id fields must be empty, and the field name must specify the name path. For example, projects/p0/locations/us-central1/registries/registry0/devices/device0or projects/p0/locations/us-central1/registries/registry0/devices/{num_id}.

.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Device

The device.

getDeviceBuilder()

public Device.Builder getDeviceBuilder()

Required. The new values for the device. The id and num_id fields must be empty, and the field name must specify the name path. For example, projects/p0/locations/us-central1/registries/registry0/devices/device0or projects/p0/locations/us-central1/registries/registry0/devices/{num_id}.

.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Device.Builder

getDeviceOrBuilder()

public DeviceOrBuilder getDeviceOrBuilder()

Required. The new values for the device. The id and num_id fields must be empty, and the field name must specify the name path. For example, projects/p0/locations/us-central1/registries/registry0/devices/device0or projects/p0/locations/us-central1/registries/registry0/devices/{num_id}.

.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeviceOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Required. Only updates the device fields indicated by this mask. The field mask must not be empty, and it must not contain fields that are immutable or only set by the server. Mutable top-level fields: credentials, blocked, and metadata

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. Only updates the device fields indicated by this mask. The field mask must not be empty, and it must not contain fields that are immutable or only set by the server. Mutable top-level fields: credentials, blocked, and metadata

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. Only updates the device fields indicated by this mask. The field mask must not be empty, and it must not contain fields that are immutable or only set by the server. Mutable top-level fields: credentials, blocked, and metadata

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMaskOrBuilder

hasDevice()

public boolean hasDevice()

Required. The new values for the device. The id and num_id fields must be empty, and the field name must specify the name path. For example, projects/p0/locations/us-central1/registries/registry0/devices/device0or projects/p0/locations/us-central1/registries/registry0/devices/{num_id}.

.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the device field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. Only updates the device fields indicated by this mask. The field mask must not be empty, and it must not contain fields that are immutable or only set by the server. Mutable top-level fields: credentials, blocked, and metadata

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDevice(Device value)

public UpdateDeviceRequest.Builder mergeDevice(Device value)

Required. The new values for the device. The id and num_id fields must be empty, and the field name must specify the name path. For example, projects/p0/locations/us-central1/registries/registry0/devices/device0or projects/p0/locations/us-central1/registries/registry0/devices/{num_id}.

.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Device
Returns
Type Description
UpdateDeviceRequest.Builder

mergeFrom(UpdateDeviceRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateDeviceRequest.Builder mergeUpdateMask(FieldMask value)

Required. Only updates the device fields indicated by this mask. The field mask must not be empty, and it must not contain fields that are immutable or only set by the server. Mutable top-level fields: credentials, blocked, and metadata

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateDeviceRequest.Builder

setDevice(Device value)

public UpdateDeviceRequest.Builder setDevice(Device value)

Required. The new values for the device. The id and num_id fields must be empty, and the field name must specify the name path. For example, projects/p0/locations/us-central1/registries/registry0/devices/device0or projects/p0/locations/us-central1/registries/registry0/devices/{num_id}.

.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Device
Returns
Type Description
UpdateDeviceRequest.Builder

setDevice(Device.Builder builderForValue)

public UpdateDeviceRequest.Builder setDevice(Device.Builder builderForValue)

Required. The new values for the device. The id and num_id fields must be empty, and the field name must specify the name path. For example, projects/p0/locations/us-central1/registries/registry0/devices/device0or projects/p0/locations/us-central1/registries/registry0/devices/{num_id}.

.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Device.Builder
Returns
Type Description
UpdateDeviceRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateDeviceRequest.Builder setUpdateMask(FieldMask value)

Required. Only updates the device fields indicated by this mask. The field mask must not be empty, and it must not contain fields that are immutable or only set by the server. Mutable top-level fields: credentials, blocked, and metadata

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateDeviceRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateDeviceRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. Only updates the device fields indicated by this mask. The field mask must not be empty, and it must not contain fields that are immutable or only set by the server. Mutable top-level fields: credentials, blocked, and metadata

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateDeviceRequest.Builder