public static final class UpdateDeviceRequest.Builder extends GeneratedMessageV3.Builder<UpdateDeviceRequest.Builder> implements UpdateDeviceRequestOrBuilder
Request for UpdateDevice
.
Protobuf type google.cloud.iot.v1.UpdateDeviceRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UpdateDeviceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public UpdateDeviceRequest build()
buildPartial()
public UpdateDeviceRequest buildPartial()
clear()
public UpdateDeviceRequest.Builder clear()
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];
clearField(Descriptors.FieldDescriptor field)
public UpdateDeviceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public UpdateDeviceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clone()
public UpdateDeviceRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public UpdateDeviceRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
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];
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];
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];
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()
Overrides
isInitialized()
public final boolean isInitialized()
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 |
---|
Name | Description |
value | Device
|
mergeFrom(UpdateDeviceRequest other)
public UpdateDeviceRequest.Builder mergeFrom(UpdateDeviceRequest other)
public UpdateDeviceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public UpdateDeviceRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UpdateDeviceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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];
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 |
---|
Name | Description |
value | Device
|
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];
setField(Descriptors.FieldDescriptor field, Object value)
public UpdateDeviceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UpdateDeviceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateDeviceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
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];
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
|