Class UpdateDeviceRegistryRequest.Builder (2.34.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateDeviceRegistryRequest build()
Returns
TypeDescription
UpdateDeviceRegistryRequest

buildPartial()

public UpdateDeviceRegistryRequest buildPartial()
Returns
TypeDescription
UpdateDeviceRegistryRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public UpdateDeviceRegistryRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateDeviceRegistryRequest

getDescriptorForType()

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

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
NameDescription
valueDeviceRegistry
Returns
TypeDescription
UpdateDeviceRegistryRequest.Builder

mergeFrom(UpdateDeviceRegistryRequest other)

public UpdateDeviceRegistryRequest.Builder mergeFrom(UpdateDeviceRegistryRequest other)
Parameter
NameDescription
otherUpdateDeviceRegistryRequest
Returns
TypeDescription
UpdateDeviceRegistryRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateDeviceRegistryRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
valueDeviceRegistry
Returns
TypeDescription
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
NameDescription
builderForValueDeviceRegistry.Builder
Returns
TypeDescription
UpdateDeviceRegistryRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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