Class UpdateDeviceRequest.Builder (2.8.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateDeviceRequest build()
Returns
TypeDescription
UpdateDeviceRequest

buildPartial()

public UpdateDeviceRequest buildPartial()
Returns
TypeDescription
UpdateDeviceRequest

clear()

public UpdateDeviceRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
UpdateDeviceRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateDeviceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
UpdateDeviceRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateDeviceRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateDeviceRequest

getDescriptorForType()

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

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

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

mergeFrom(UpdateDeviceRequest other)

public UpdateDeviceRequest.Builder mergeFrom(UpdateDeviceRequest other)
Parameter
NameDescription
otherUpdateDeviceRequest
Returns
TypeDescription
UpdateDeviceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateDeviceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
valueDevice
Returns
TypeDescription
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
NameDescription
builderForValueDevice.Builder
Returns
TypeDescription
UpdateDeviceRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public UpdateDeviceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateDeviceRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateDeviceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateDeviceRequest.Builder