Class UpdateDeviceRegistryRequest.Builder (2.48.0)

public static final class UpdateDeviceRegistryRequest.Builder extends GeneratedMessageV3.Builder<UpdateDeviceRegistryRequest.Builder> implements UpdateDeviceRegistryRequestOrBuilder

Request for UpdateDeviceRegistry.

Protobuf type google.cloud.iot.v1.UpdateDeviceRegistryRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateDeviceRegistryRequest build()
Returns
Type Description
UpdateDeviceRegistryRequest

buildPartial()

public UpdateDeviceRegistryRequest buildPartial()
Returns
Type Description
UpdateDeviceRegistryRequest

clear()

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

clearDeviceRegistry()

public UpdateDeviceRegistryRequest.Builder clearDeviceRegistry()

Required. The new values for the device registry. The id field must be empty, and the name field must indicate the path of the resource. For example, projects/example-project/locations/us-central1/registries/my-registry.

.google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateDeviceRegistryRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateDeviceRegistryRequest.Builder clearUpdateMask()

Required. Only updates the device_registry 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: event_notification_config, http_config, mqtt_config, and state_notification_config.

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

Returns
Type Description
UpdateDeviceRegistryRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateDeviceRegistryRequest getDefaultInstanceForType()
Returns
Type Description
UpdateDeviceRegistryRequest

getDescriptorForType()

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

getDeviceRegistry()

public DeviceRegistry getDeviceRegistry()

Required. The new values for the device registry. The id field must be empty, and the name field must indicate the path of the resource. For example, projects/example-project/locations/us-central1/registries/my-registry.

.google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeviceRegistry

The deviceRegistry.

getDeviceRegistryBuilder()

public DeviceRegistry.Builder getDeviceRegistryBuilder()

Required. The new values for the device registry. The id field must be empty, and the name field must indicate the path of the resource. For example, projects/example-project/locations/us-central1/registries/my-registry.

.google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeviceRegistry.Builder

getDeviceRegistryOrBuilder()

public DeviceRegistryOrBuilder getDeviceRegistryOrBuilder()

Required. The new values for the device registry. The id field must be empty, and the name field must indicate the path of the resource. For example, projects/example-project/locations/us-central1/registries/my-registry.

.google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeviceRegistryOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Required. Only updates the device_registry 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: event_notification_config, http_config, mqtt_config, and state_notification_config.

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

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. Only updates the device_registry 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: event_notification_config, http_config, mqtt_config, and state_notification_config.

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

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. Only updates the device_registry 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: event_notification_config, http_config, mqtt_config, and state_notification_config.

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

Returns
Type Description
FieldMaskOrBuilder

hasDeviceRegistry()

public boolean hasDeviceRegistry()

Required. The new values for the device registry. The id field must be empty, and the name field must indicate the path of the resource. For example, projects/example-project/locations/us-central1/registries/my-registry.

.google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the deviceRegistry field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. Only updates the device_registry 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: event_notification_config, http_config, mqtt_config, and state_notification_config.

.google.protobuf.FieldMask update_mask = 2 [(.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

mergeDeviceRegistry(DeviceRegistry value)

public UpdateDeviceRegistryRequest.Builder mergeDeviceRegistry(DeviceRegistry value)

Required. The new values for the device registry. The id field must be empty, and the name field must indicate the path of the resource. For example, projects/example-project/locations/us-central1/registries/my-registry.

.google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DeviceRegistry
Returns
Type Description
UpdateDeviceRegistryRequest.Builder

mergeFrom(UpdateDeviceRegistryRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateDeviceRegistryRequest.Builder mergeUpdateMask(FieldMask value)

Required. Only updates the device_registry 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: event_notification_config, http_config, mqtt_config, and state_notification_config.

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

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateDeviceRegistryRequest.Builder

setDeviceRegistry(DeviceRegistry value)

public UpdateDeviceRegistryRequest.Builder setDeviceRegistry(DeviceRegistry value)

Required. The new values for the device registry. The id field must be empty, and the name field must indicate the path of the resource. For example, projects/example-project/locations/us-central1/registries/my-registry.

.google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DeviceRegistry
Returns
Type Description
UpdateDeviceRegistryRequest.Builder

setDeviceRegistry(DeviceRegistry.Builder builderForValue)

public UpdateDeviceRegistryRequest.Builder setDeviceRegistry(DeviceRegistry.Builder builderForValue)

Required. The new values for the device registry. The id field must be empty, and the name field must indicate the path of the resource. For example, projects/example-project/locations/us-central1/registries/my-registry.

.google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue DeviceRegistry.Builder
Returns
Type Description
UpdateDeviceRegistryRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateDeviceRegistryRequest.Builder setUpdateMask(FieldMask value)

Required. Only updates the device_registry 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: event_notification_config, http_config, mqtt_config, and state_notification_config.

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

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateDeviceRegistryRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateDeviceRegistryRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. Only updates the device_registry 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: event_notification_config, http_config, mqtt_config, and state_notification_config.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateDeviceRegistryRequest.Builder