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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UpdateDeviceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public UpdateDeviceRequest build()
Returns
buildPartial()
public UpdateDeviceRequest buildPartial()
Returns
clear()
public UpdateDeviceRequest.Builder clear()
Returns
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/device0
or
projects/p0/locations/us-central1/registries/registry0/devices/{num_id}
.
.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearField(Descriptors.FieldDescriptor field)
public UpdateDeviceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public UpdateDeviceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public UpdateDeviceRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public UpdateDeviceRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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/device0
or
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/device0
or
projects/p0/locations/us-central1/registries/registry0/devices/{num_id}
.
.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
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/device0
or
projects/p0/locations/us-central1/registries/registry0/devices/{num_id}
.
.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
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
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
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
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/device0
or
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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/device0
or
projects/p0/locations/us-central1/registries/registry0/devices/{num_id}
.
.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeFrom(UpdateDeviceRequest other)
public UpdateDeviceRequest.Builder mergeFrom(UpdateDeviceRequest other)
Parameter
Returns
public UpdateDeviceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public UpdateDeviceRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UpdateDeviceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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/device0
or
projects/p0/locations/us-central1/registries/registry0/devices/{num_id}
.
.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
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/device0
or
projects/p0/locations/us-central1/registries/registry0/devices/{num_id}
.
.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public UpdateDeviceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UpdateDeviceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateDeviceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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