Class DeviceRegistry.Builder (2.27.0)

public static final class DeviceRegistry.Builder extends GeneratedMessageV3.Builder<DeviceRegistry.Builder> implements DeviceRegistryOrBuilder

A container for a group of devices.

Protobuf type google.cloud.iot.v1.DeviceRegistry

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllCredentials(Iterable<? extends RegistryCredential> values)

public DeviceRegistry.Builder addAllCredentials(Iterable<? extends RegistryCredential> values)

The credentials used to verify the device credentials. No more than 10 credentials can be bound to a single registry at a time. The verification process occurs at the time of device creation or update. If this field is empty, no verification is performed. Otherwise, the credentials of a newly created device or added credentials of an updated device should be signed with one of these registry credentials.

Note, however, that existing devices will never be affected by modifications to this list of credentials: after a device has been successfully created in a registry, it should be able to connect even if its registry credentials are revoked, deleted, or modified.

repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.iot.v1.RegistryCredential>
Returns
TypeDescription
DeviceRegistry.Builder

addAllEventNotificationConfigs(Iterable<? extends EventNotificationConfig> values)

public DeviceRegistry.Builder addAllEventNotificationConfigs(Iterable<? extends EventNotificationConfig> values)

The configuration for notification of telemetry events received from the device. All telemetry events that were successfully published by the device and acknowledged by Cloud IoT Core are guaranteed to be delivered to Cloud Pub/Sub. If multiple configurations match a message, only the first matching configuration is used. If you try to publish a device telemetry event using MQTT without specifying a Cloud Pub/Sub topic for the device's registry, the connection closes automatically. If you try to do so using an HTTP connection, an error is returned. Up to 10 configurations may be provided.

repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.iot.v1.EventNotificationConfig>
Returns
TypeDescription
DeviceRegistry.Builder

addCredentials(RegistryCredential value)

public DeviceRegistry.Builder addCredentials(RegistryCredential value)

The credentials used to verify the device credentials. No more than 10 credentials can be bound to a single registry at a time. The verification process occurs at the time of device creation or update. If this field is empty, no verification is performed. Otherwise, the credentials of a newly created device or added credentials of an updated device should be signed with one of these registry credentials.

Note, however, that existing devices will never be affected by modifications to this list of credentials: after a device has been successfully created in a registry, it should be able to connect even if its registry credentials are revoked, deleted, or modified.

repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;

Parameter
NameDescription
valueRegistryCredential
Returns
TypeDescription
DeviceRegistry.Builder

addCredentials(RegistryCredential.Builder builderForValue)

public DeviceRegistry.Builder addCredentials(RegistryCredential.Builder builderForValue)

The credentials used to verify the device credentials. No more than 10 credentials can be bound to a single registry at a time. The verification process occurs at the time of device creation or update. If this field is empty, no verification is performed. Otherwise, the credentials of a newly created device or added credentials of an updated device should be signed with one of these registry credentials.

Note, however, that existing devices will never be affected by modifications to this list of credentials: after a device has been successfully created in a registry, it should be able to connect even if its registry credentials are revoked, deleted, or modified.

repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;

Parameter
NameDescription
builderForValueRegistryCredential.Builder
Returns
TypeDescription
DeviceRegistry.Builder

addCredentials(int index, RegistryCredential value)

public DeviceRegistry.Builder addCredentials(int index, RegistryCredential value)

The credentials used to verify the device credentials. No more than 10 credentials can be bound to a single registry at a time. The verification process occurs at the time of device creation or update. If this field is empty, no verification is performed. Otherwise, the credentials of a newly created device or added credentials of an updated device should be signed with one of these registry credentials.

Note, however, that existing devices will never be affected by modifications to this list of credentials: after a device has been successfully created in a registry, it should be able to connect even if its registry credentials are revoked, deleted, or modified.

repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;

Parameters
NameDescription
indexint
valueRegistryCredential
Returns
TypeDescription
DeviceRegistry.Builder

addCredentials(int index, RegistryCredential.Builder builderForValue)

public DeviceRegistry.Builder addCredentials(int index, RegistryCredential.Builder builderForValue)

The credentials used to verify the device credentials. No more than 10 credentials can be bound to a single registry at a time. The verification process occurs at the time of device creation or update. If this field is empty, no verification is performed. Otherwise, the credentials of a newly created device or added credentials of an updated device should be signed with one of these registry credentials.

Note, however, that existing devices will never be affected by modifications to this list of credentials: after a device has been successfully created in a registry, it should be able to connect even if its registry credentials are revoked, deleted, or modified.

repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;

Parameters
NameDescription
indexint
builderForValueRegistryCredential.Builder
Returns
TypeDescription
DeviceRegistry.Builder

addCredentialsBuilder()

public RegistryCredential.Builder addCredentialsBuilder()

The credentials used to verify the device credentials. No more than 10 credentials can be bound to a single registry at a time. The verification process occurs at the time of device creation or update. If this field is empty, no verification is performed. Otherwise, the credentials of a newly created device or added credentials of an updated device should be signed with one of these registry credentials.

Note, however, that existing devices will never be affected by modifications to this list of credentials: after a device has been successfully created in a registry, it should be able to connect even if its registry credentials are revoked, deleted, or modified.

repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;

Returns
TypeDescription
RegistryCredential.Builder

addCredentialsBuilder(int index)

public RegistryCredential.Builder addCredentialsBuilder(int index)

The credentials used to verify the device credentials. No more than 10 credentials can be bound to a single registry at a time. The verification process occurs at the time of device creation or update. If this field is empty, no verification is performed. Otherwise, the credentials of a newly created device or added credentials of an updated device should be signed with one of these registry credentials.

Note, however, that existing devices will never be affected by modifications to this list of credentials: after a device has been successfully created in a registry, it should be able to connect even if its registry credentials are revoked, deleted, or modified.

repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
RegistryCredential.Builder

addEventNotificationConfigs(EventNotificationConfig value)

public DeviceRegistry.Builder addEventNotificationConfigs(EventNotificationConfig value)

The configuration for notification of telemetry events received from the device. All telemetry events that were successfully published by the device and acknowledged by Cloud IoT Core are guaranteed to be delivered to Cloud Pub/Sub. If multiple configurations match a message, only the first matching configuration is used. If you try to publish a device telemetry event using MQTT without specifying a Cloud Pub/Sub topic for the device's registry, the connection closes automatically. If you try to do so using an HTTP connection, an error is returned. Up to 10 configurations may be provided.

repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10;

Parameter
NameDescription
valueEventNotificationConfig
Returns
TypeDescription
DeviceRegistry.Builder

addEventNotificationConfigs(EventNotificationConfig.Builder builderForValue)

public DeviceRegistry.Builder addEventNotificationConfigs(EventNotificationConfig.Builder builderForValue)

The configuration for notification of telemetry events received from the device. All telemetry events that were successfully published by the device and acknowledged by Cloud IoT Core are guaranteed to be delivered to Cloud Pub/Sub. If multiple configurations match a message, only the first matching configuration is used. If you try to publish a device telemetry event using MQTT without specifying a Cloud Pub/Sub topic for the device's registry, the connection closes automatically. If you try to do so using an HTTP connection, an error is returned. Up to 10 configurations may be provided.

repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10;

Parameter
NameDescription
builderForValueEventNotificationConfig.Builder
Returns
TypeDescription
DeviceRegistry.Builder

addEventNotificationConfigs(int index, EventNotificationConfig value)

public DeviceRegistry.Builder addEventNotificationConfigs(int index, EventNotificationConfig value)

The configuration for notification of telemetry events received from the device. All telemetry events that were successfully published by the device and acknowledged by Cloud IoT Core are guaranteed to be delivered to Cloud Pub/Sub. If multiple configurations match a message, only the first matching configuration is used. If you try to publish a device telemetry event using MQTT without specifying a Cloud Pub/Sub topic for the device's registry, the connection closes automatically. If you try to do so using an HTTP connection, an error is returned. Up to 10 configurations may be provided.

repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10;

Parameters
NameDescription
indexint
valueEventNotificationConfig
Returns
TypeDescription
DeviceRegistry.Builder

addEventNotificationConfigs(int index, EventNotificationConfig.Builder builderForValue)

public DeviceRegistry.Builder addEventNotificationConfigs(int index, EventNotificationConfig.Builder builderForValue)

The configuration for notification of telemetry events received from the device. All telemetry events that were successfully published by the device and acknowledged by Cloud IoT Core are guaranteed to be delivered to Cloud Pub/Sub. If multiple configurations match a message, only the first matching configuration is used. If you try to publish a device telemetry event using MQTT without specifying a Cloud Pub/Sub topic for the device's registry, the connection closes automatically. If you try to do so using an HTTP connection, an error is returned. Up to 10 configurations may be provided.

repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10;

Parameters
NameDescription
indexint
builderForValueEventNotificationConfig.Builder
Returns
TypeDescription
DeviceRegistry.Builder

addEventNotificationConfigsBuilder()

public EventNotificationConfig.Builder addEventNotificationConfigsBuilder()

The configuration for notification of telemetry events received from the device. All telemetry events that were successfully published by the device and acknowledged by Cloud IoT Core are guaranteed to be delivered to Cloud Pub/Sub. If multiple configurations match a message, only the first matching configuration is used. If you try to publish a device telemetry event using MQTT without specifying a Cloud Pub/Sub topic for the device's registry, the connection closes automatically. If you try to do so using an HTTP connection, an error is returned. Up to 10 configurations may be provided.

repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10;

Returns
TypeDescription
EventNotificationConfig.Builder

addEventNotificationConfigsBuilder(int index)

public EventNotificationConfig.Builder addEventNotificationConfigsBuilder(int index)

The configuration for notification of telemetry events received from the device. All telemetry events that were successfully published by the device and acknowledged by Cloud IoT Core are guaranteed to be delivered to Cloud Pub/Sub. If multiple configurations match a message, only the first matching configuration is used. If you try to publish a device telemetry event using MQTT without specifying a Cloud Pub/Sub topic for the device's registry, the connection closes automatically. If you try to do so using an HTTP connection, an error is returned. Up to 10 configurations may be provided.

repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
EventNotificationConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeviceRegistry build()
Returns
TypeDescription
DeviceRegistry

buildPartial()

public DeviceRegistry buildPartial()
Returns
TypeDescription
DeviceRegistry

clear()

public DeviceRegistry.Builder clear()
Returns
TypeDescription
DeviceRegistry.Builder
Overrides

clearCredentials()

public DeviceRegistry.Builder clearCredentials()

The credentials used to verify the device credentials. No more than 10 credentials can be bound to a single registry at a time. The verification process occurs at the time of device creation or update. If this field is empty, no verification is performed. Otherwise, the credentials of a newly created device or added credentials of an updated device should be signed with one of these registry credentials.

Note, however, that existing devices will never be affected by modifications to this list of credentials: after a device has been successfully created in a registry, it should be able to connect even if its registry credentials are revoked, deleted, or modified.

repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;

Returns
TypeDescription
DeviceRegistry.Builder

clearEventNotificationConfigs()

public DeviceRegistry.Builder clearEventNotificationConfigs()

The configuration for notification of telemetry events received from the device. All telemetry events that were successfully published by the device and acknowledged by Cloud IoT Core are guaranteed to be delivered to Cloud Pub/Sub. If multiple configurations match a message, only the first matching configuration is used. If you try to publish a device telemetry event using MQTT without specifying a Cloud Pub/Sub topic for the device's registry, the connection closes automatically. If you try to do so using an HTTP connection, an error is returned. Up to 10 configurations may be provided.

repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10;

Returns
TypeDescription
DeviceRegistry.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearHttpConfig()

public DeviceRegistry.Builder clearHttpConfig()

The DeviceService (HTTP) configuration for this device registry.

.google.cloud.iot.v1.HttpConfig http_config = 9;

Returns
TypeDescription
DeviceRegistry.Builder

clearId()

public DeviceRegistry.Builder clearId()

The identifier of this device registry. For example, myRegistry.

string id = 1;

Returns
TypeDescription
DeviceRegistry.Builder

This builder for chaining.

clearLogLevel()

public DeviceRegistry.Builder clearLogLevel()

Beta Feature

The default logging verbosity for activity from devices in this registry. The verbosity level can be overridden by Device.log_level.

.google.cloud.iot.v1.LogLevel log_level = 11;

Returns
TypeDescription
DeviceRegistry.Builder

This builder for chaining.

clearMqttConfig()

public DeviceRegistry.Builder clearMqttConfig()

The MQTT configuration for this device registry.

.google.cloud.iot.v1.MqttConfig mqtt_config = 4;

Returns
TypeDescription
DeviceRegistry.Builder

clearName()

public DeviceRegistry.Builder clearName()

The resource path name. For example, projects/example-project/locations/us-central1/registries/my-registry.

string name = 2;

Returns
TypeDescription
DeviceRegistry.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DeviceRegistry.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DeviceRegistry.Builder
Overrides

clearStateNotificationConfig()

public DeviceRegistry.Builder clearStateNotificationConfig()

The configuration for notification of new states received from the device. State updates are guaranteed to be stored in the state history, but notifications to Cloud Pub/Sub are not guaranteed. For example, if permissions are misconfigured or the specified topic doesn't exist, no notification will be published but the state will still be stored in Cloud IoT Core.

.google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7;

Returns
TypeDescription
DeviceRegistry.Builder

clone()

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

getCredentials(int index)

public RegistryCredential getCredentials(int index)

The credentials used to verify the device credentials. No more than 10 credentials can be bound to a single registry at a time. The verification process occurs at the time of device creation or update. If this field is empty, no verification is performed. Otherwise, the credentials of a newly created device or added credentials of an updated device should be signed with one of these registry credentials.

Note, however, that existing devices will never be affected by modifications to this list of credentials: after a device has been successfully created in a registry, it should be able to connect even if its registry credentials are revoked, deleted, or modified.

repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
RegistryCredential

getCredentialsBuilder(int index)

public RegistryCredential.Builder getCredentialsBuilder(int index)

The credentials used to verify the device credentials. No more than 10 credentials can be bound to a single registry at a time. The verification process occurs at the time of device creation or update. If this field is empty, no verification is performed. Otherwise, the credentials of a newly created device or added credentials of an updated device should be signed with one of these registry credentials.

Note, however, that existing devices will never be affected by modifications to this list of credentials: after a device has been successfully created in a registry, it should be able to connect even if its registry credentials are revoked, deleted, or modified.

repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
RegistryCredential.Builder

getCredentialsBuilderList()

public List<RegistryCredential.Builder> getCredentialsBuilderList()

The credentials used to verify the device credentials. No more than 10 credentials can be bound to a single registry at a time. The verification process occurs at the time of device creation or update. If this field is empty, no verification is performed. Otherwise, the credentials of a newly created device or added credentials of an updated device should be signed with one of these registry credentials.

Note, however, that existing devices will never be affected by modifications to this list of credentials: after a device has been successfully created in a registry, it should be able to connect even if its registry credentials are revoked, deleted, or modified.

repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;

Returns
TypeDescription
List<Builder>

getCredentialsCount()

public int getCredentialsCount()

The credentials used to verify the device credentials. No more than 10 credentials can be bound to a single registry at a time. The verification process occurs at the time of device creation or update. If this field is empty, no verification is performed. Otherwise, the credentials of a newly created device or added credentials of an updated device should be signed with one of these registry credentials.

Note, however, that existing devices will never be affected by modifications to this list of credentials: after a device has been successfully created in a registry, it should be able to connect even if its registry credentials are revoked, deleted, or modified.

repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;

Returns
TypeDescription
int

getCredentialsList()

public List<RegistryCredential> getCredentialsList()

The credentials used to verify the device credentials. No more than 10 credentials can be bound to a single registry at a time. The verification process occurs at the time of device creation or update. If this field is empty, no verification is performed. Otherwise, the credentials of a newly created device or added credentials of an updated device should be signed with one of these registry credentials.

Note, however, that existing devices will never be affected by modifications to this list of credentials: after a device has been successfully created in a registry, it should be able to connect even if its registry credentials are revoked, deleted, or modified.

repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;

Returns
TypeDescription
List<RegistryCredential>

getCredentialsOrBuilder(int index)

public RegistryCredentialOrBuilder getCredentialsOrBuilder(int index)

The credentials used to verify the device credentials. No more than 10 credentials can be bound to a single registry at a time. The verification process occurs at the time of device creation or update. If this field is empty, no verification is performed. Otherwise, the credentials of a newly created device or added credentials of an updated device should be signed with one of these registry credentials.

Note, however, that existing devices will never be affected by modifications to this list of credentials: after a device has been successfully created in a registry, it should be able to connect even if its registry credentials are revoked, deleted, or modified.

repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
RegistryCredentialOrBuilder

getCredentialsOrBuilderList()

public List<? extends RegistryCredentialOrBuilder> getCredentialsOrBuilderList()

The credentials used to verify the device credentials. No more than 10 credentials can be bound to a single registry at a time. The verification process occurs at the time of device creation or update. If this field is empty, no verification is performed. Otherwise, the credentials of a newly created device or added credentials of an updated device should be signed with one of these registry credentials.

Note, however, that existing devices will never be affected by modifications to this list of credentials: after a device has been successfully created in a registry, it should be able to connect even if its registry credentials are revoked, deleted, or modified.

repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;

Returns
TypeDescription
List<? extends com.google.cloud.iot.v1.RegistryCredentialOrBuilder>

getDefaultInstanceForType()

public DeviceRegistry getDefaultInstanceForType()
Returns
TypeDescription
DeviceRegistry

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEventNotificationConfigs(int index)

public EventNotificationConfig getEventNotificationConfigs(int index)

The configuration for notification of telemetry events received from the device. All telemetry events that were successfully published by the device and acknowledged by Cloud IoT Core are guaranteed to be delivered to Cloud Pub/Sub. If multiple configurations match a message, only the first matching configuration is used. If you try to publish a device telemetry event using MQTT without specifying a Cloud Pub/Sub topic for the device's registry, the connection closes automatically. If you try to do so using an HTTP connection, an error is returned. Up to 10 configurations may be provided.

repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
EventNotificationConfig

getEventNotificationConfigsBuilder(int index)

public EventNotificationConfig.Builder getEventNotificationConfigsBuilder(int index)

The configuration for notification of telemetry events received from the device. All telemetry events that were successfully published by the device and acknowledged by Cloud IoT Core are guaranteed to be delivered to Cloud Pub/Sub. If multiple configurations match a message, only the first matching configuration is used. If you try to publish a device telemetry event using MQTT without specifying a Cloud Pub/Sub topic for the device's registry, the connection closes automatically. If you try to do so using an HTTP connection, an error is returned. Up to 10 configurations may be provided.

repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
EventNotificationConfig.Builder

getEventNotificationConfigsBuilderList()

public List<EventNotificationConfig.Builder> getEventNotificationConfigsBuilderList()

The configuration for notification of telemetry events received from the device. All telemetry events that were successfully published by the device and acknowledged by Cloud IoT Core are guaranteed to be delivered to Cloud Pub/Sub. If multiple configurations match a message, only the first matching configuration is used. If you try to publish a device telemetry event using MQTT without specifying a Cloud Pub/Sub topic for the device's registry, the connection closes automatically. If you try to do so using an HTTP connection, an error is returned. Up to 10 configurations may be provided.

repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10;

Returns
TypeDescription
List<Builder>

getEventNotificationConfigsCount()

public int getEventNotificationConfigsCount()

The configuration for notification of telemetry events received from the device. All telemetry events that were successfully published by the device and acknowledged by Cloud IoT Core are guaranteed to be delivered to Cloud Pub/Sub. If multiple configurations match a message, only the first matching configuration is used. If you try to publish a device telemetry event using MQTT without specifying a Cloud Pub/Sub topic for the device's registry, the connection closes automatically. If you try to do so using an HTTP connection, an error is returned. Up to 10 configurations may be provided.

repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10;

Returns
TypeDescription
int

getEventNotificationConfigsList()

public List<EventNotificationConfig> getEventNotificationConfigsList()

The configuration for notification of telemetry events received from the device. All telemetry events that were successfully published by the device and acknowledged by Cloud IoT Core are guaranteed to be delivered to Cloud Pub/Sub. If multiple configurations match a message, only the first matching configuration is used. If you try to publish a device telemetry event using MQTT without specifying a Cloud Pub/Sub topic for the device's registry, the connection closes automatically. If you try to do so using an HTTP connection, an error is returned. Up to 10 configurations may be provided.

repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10;

Returns
TypeDescription
List<EventNotificationConfig>

getEventNotificationConfigsOrBuilder(int index)

public EventNotificationConfigOrBuilder getEventNotificationConfigsOrBuilder(int index)

The configuration for notification of telemetry events received from the device. All telemetry events that were successfully published by the device and acknowledged by Cloud IoT Core are guaranteed to be delivered to Cloud Pub/Sub. If multiple configurations match a message, only the first matching configuration is used. If you try to publish a device telemetry event using MQTT without specifying a Cloud Pub/Sub topic for the device's registry, the connection closes automatically. If you try to do so using an HTTP connection, an error is returned. Up to 10 configurations may be provided.

repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
EventNotificationConfigOrBuilder

getEventNotificationConfigsOrBuilderList()

public List<? extends EventNotificationConfigOrBuilder> getEventNotificationConfigsOrBuilderList()

The configuration for notification of telemetry events received from the device. All telemetry events that were successfully published by the device and acknowledged by Cloud IoT Core are guaranteed to be delivered to Cloud Pub/Sub. If multiple configurations match a message, only the first matching configuration is used. If you try to publish a device telemetry event using MQTT without specifying a Cloud Pub/Sub topic for the device's registry, the connection closes automatically. If you try to do so using an HTTP connection, an error is returned. Up to 10 configurations may be provided.

repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10;

Returns
TypeDescription
List<? extends com.google.cloud.iot.v1.EventNotificationConfigOrBuilder>

getHttpConfig()

public HttpConfig getHttpConfig()

The DeviceService (HTTP) configuration for this device registry.

.google.cloud.iot.v1.HttpConfig http_config = 9;

Returns
TypeDescription
HttpConfig

The httpConfig.

getHttpConfigBuilder()

public HttpConfig.Builder getHttpConfigBuilder()

The DeviceService (HTTP) configuration for this device registry.

.google.cloud.iot.v1.HttpConfig http_config = 9;

Returns
TypeDescription
HttpConfig.Builder

getHttpConfigOrBuilder()

public HttpConfigOrBuilder getHttpConfigOrBuilder()

The DeviceService (HTTP) configuration for this device registry.

.google.cloud.iot.v1.HttpConfig http_config = 9;

Returns
TypeDescription
HttpConfigOrBuilder

getId()

public String getId()

The identifier of this device registry. For example, myRegistry.

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

The identifier of this device registry. For example, myRegistry.

string id = 1;

Returns
TypeDescription
ByteString

The bytes for id.

getLogLevel()

public LogLevel getLogLevel()

Beta Feature

The default logging verbosity for activity from devices in this registry. The verbosity level can be overridden by Device.log_level.

.google.cloud.iot.v1.LogLevel log_level = 11;

Returns
TypeDescription
LogLevel

The logLevel.

getLogLevelValue()

public int getLogLevelValue()

Beta Feature

The default logging verbosity for activity from devices in this registry. The verbosity level can be overridden by Device.log_level.

.google.cloud.iot.v1.LogLevel log_level = 11;

Returns
TypeDescription
int

The enum numeric value on the wire for logLevel.

getMqttConfig()

public MqttConfig getMqttConfig()

The MQTT configuration for this device registry.

.google.cloud.iot.v1.MqttConfig mqtt_config = 4;

Returns
TypeDescription
MqttConfig

The mqttConfig.

getMqttConfigBuilder()

public MqttConfig.Builder getMqttConfigBuilder()

The MQTT configuration for this device registry.

.google.cloud.iot.v1.MqttConfig mqtt_config = 4;

Returns
TypeDescription
MqttConfig.Builder

getMqttConfigOrBuilder()

public MqttConfigOrBuilder getMqttConfigOrBuilder()

The MQTT configuration for this device registry.

.google.cloud.iot.v1.MqttConfig mqtt_config = 4;

Returns
TypeDescription
MqttConfigOrBuilder

getName()

public String getName()

The resource path name. For example, projects/example-project/locations/us-central1/registries/my-registry.

string name = 2;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource path name. For example, projects/example-project/locations/us-central1/registries/my-registry.

string name = 2;

Returns
TypeDescription
ByteString

The bytes for name.

getStateNotificationConfig()

public StateNotificationConfig getStateNotificationConfig()

The configuration for notification of new states received from the device. State updates are guaranteed to be stored in the state history, but notifications to Cloud Pub/Sub are not guaranteed. For example, if permissions are misconfigured or the specified topic doesn't exist, no notification will be published but the state will still be stored in Cloud IoT Core.

.google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7;

Returns
TypeDescription
StateNotificationConfig

The stateNotificationConfig.

getStateNotificationConfigBuilder()

public StateNotificationConfig.Builder getStateNotificationConfigBuilder()

The configuration for notification of new states received from the device. State updates are guaranteed to be stored in the state history, but notifications to Cloud Pub/Sub are not guaranteed. For example, if permissions are misconfigured or the specified topic doesn't exist, no notification will be published but the state will still be stored in Cloud IoT Core.

.google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7;

Returns
TypeDescription
StateNotificationConfig.Builder

getStateNotificationConfigOrBuilder()

public StateNotificationConfigOrBuilder getStateNotificationConfigOrBuilder()

The configuration for notification of new states received from the device. State updates are guaranteed to be stored in the state history, but notifications to Cloud Pub/Sub are not guaranteed. For example, if permissions are misconfigured or the specified topic doesn't exist, no notification will be published but the state will still be stored in Cloud IoT Core.

.google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7;

Returns
TypeDescription
StateNotificationConfigOrBuilder

hasHttpConfig()

public boolean hasHttpConfig()

The DeviceService (HTTP) configuration for this device registry.

.google.cloud.iot.v1.HttpConfig http_config = 9;

Returns
TypeDescription
boolean

Whether the httpConfig field is set.

hasMqttConfig()

public boolean hasMqttConfig()

The MQTT configuration for this device registry.

.google.cloud.iot.v1.MqttConfig mqtt_config = 4;

Returns
TypeDescription
boolean

Whether the mqttConfig field is set.

hasStateNotificationConfig()

public boolean hasStateNotificationConfig()

The configuration for notification of new states received from the device. State updates are guaranteed to be stored in the state history, but notifications to Cloud Pub/Sub are not guaranteed. For example, if permissions are misconfigured or the specified topic doesn't exist, no notification will be published but the state will still be stored in Cloud IoT Core.

.google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7;

Returns
TypeDescription
boolean

Whether the stateNotificationConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DeviceRegistry other)

public DeviceRegistry.Builder mergeFrom(DeviceRegistry other)
Parameter
NameDescription
otherDeviceRegistry
Returns
TypeDescription
DeviceRegistry.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeHttpConfig(HttpConfig value)

public DeviceRegistry.Builder mergeHttpConfig(HttpConfig value)

The DeviceService (HTTP) configuration for this device registry.

.google.cloud.iot.v1.HttpConfig http_config = 9;

Parameter
NameDescription
valueHttpConfig
Returns
TypeDescription
DeviceRegistry.Builder

mergeMqttConfig(MqttConfig value)

public DeviceRegistry.Builder mergeMqttConfig(MqttConfig value)

The MQTT configuration for this device registry.

.google.cloud.iot.v1.MqttConfig mqtt_config = 4;

Parameter
NameDescription
valueMqttConfig
Returns
TypeDescription
DeviceRegistry.Builder

mergeStateNotificationConfig(StateNotificationConfig value)

public DeviceRegistry.Builder mergeStateNotificationConfig(StateNotificationConfig value)

The configuration for notification of new states received from the device. State updates are guaranteed to be stored in the state history, but notifications to Cloud Pub/Sub are not guaranteed. For example, if permissions are misconfigured or the specified topic doesn't exist, no notification will be published but the state will still be stored in Cloud IoT Core.

.google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7;

Parameter
NameDescription
valueStateNotificationConfig
Returns
TypeDescription
DeviceRegistry.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeviceRegistry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeviceRegistry.Builder
Overrides

removeCredentials(int index)

public DeviceRegistry.Builder removeCredentials(int index)

The credentials used to verify the device credentials. No more than 10 credentials can be bound to a single registry at a time. The verification process occurs at the time of device creation or update. If this field is empty, no verification is performed. Otherwise, the credentials of a newly created device or added credentials of an updated device should be signed with one of these registry credentials.

Note, however, that existing devices will never be affected by modifications to this list of credentials: after a device has been successfully created in a registry, it should be able to connect even if its registry credentials are revoked, deleted, or modified.

repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
DeviceRegistry.Builder

removeEventNotificationConfigs(int index)

public DeviceRegistry.Builder removeEventNotificationConfigs(int index)

The configuration for notification of telemetry events received from the device. All telemetry events that were successfully published by the device and acknowledged by Cloud IoT Core are guaranteed to be delivered to Cloud Pub/Sub. If multiple configurations match a message, only the first matching configuration is used. If you try to publish a device telemetry event using MQTT without specifying a Cloud Pub/Sub topic for the device's registry, the connection closes automatically. If you try to do so using an HTTP connection, an error is returned. Up to 10 configurations may be provided.

repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
DeviceRegistry.Builder

setCredentials(int index, RegistryCredential value)

public DeviceRegistry.Builder setCredentials(int index, RegistryCredential value)

The credentials used to verify the device credentials. No more than 10 credentials can be bound to a single registry at a time. The verification process occurs at the time of device creation or update. If this field is empty, no verification is performed. Otherwise, the credentials of a newly created device or added credentials of an updated device should be signed with one of these registry credentials.

Note, however, that existing devices will never be affected by modifications to this list of credentials: after a device has been successfully created in a registry, it should be able to connect even if its registry credentials are revoked, deleted, or modified.

repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;

Parameters
NameDescription
indexint
valueRegistryCredential
Returns
TypeDescription
DeviceRegistry.Builder

setCredentials(int index, RegistryCredential.Builder builderForValue)

public DeviceRegistry.Builder setCredentials(int index, RegistryCredential.Builder builderForValue)

The credentials used to verify the device credentials. No more than 10 credentials can be bound to a single registry at a time. The verification process occurs at the time of device creation or update. If this field is empty, no verification is performed. Otherwise, the credentials of a newly created device or added credentials of an updated device should be signed with one of these registry credentials.

Note, however, that existing devices will never be affected by modifications to this list of credentials: after a device has been successfully created in a registry, it should be able to connect even if its registry credentials are revoked, deleted, or modified.

repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;

Parameters
NameDescription
indexint
builderForValueRegistryCredential.Builder
Returns
TypeDescription
DeviceRegistry.Builder

setEventNotificationConfigs(int index, EventNotificationConfig value)

public DeviceRegistry.Builder setEventNotificationConfigs(int index, EventNotificationConfig value)

The configuration for notification of telemetry events received from the device. All telemetry events that were successfully published by the device and acknowledged by Cloud IoT Core are guaranteed to be delivered to Cloud Pub/Sub. If multiple configurations match a message, only the first matching configuration is used. If you try to publish a device telemetry event using MQTT without specifying a Cloud Pub/Sub topic for the device's registry, the connection closes automatically. If you try to do so using an HTTP connection, an error is returned. Up to 10 configurations may be provided.

repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10;

Parameters
NameDescription
indexint
valueEventNotificationConfig
Returns
TypeDescription
DeviceRegistry.Builder

setEventNotificationConfigs(int index, EventNotificationConfig.Builder builderForValue)

public DeviceRegistry.Builder setEventNotificationConfigs(int index, EventNotificationConfig.Builder builderForValue)

The configuration for notification of telemetry events received from the device. All telemetry events that were successfully published by the device and acknowledged by Cloud IoT Core are guaranteed to be delivered to Cloud Pub/Sub. If multiple configurations match a message, only the first matching configuration is used. If you try to publish a device telemetry event using MQTT without specifying a Cloud Pub/Sub topic for the device's registry, the connection closes automatically. If you try to do so using an HTTP connection, an error is returned. Up to 10 configurations may be provided.

repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10;

Parameters
NameDescription
indexint
builderForValueEventNotificationConfig.Builder
Returns
TypeDescription
DeviceRegistry.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setHttpConfig(HttpConfig value)

public DeviceRegistry.Builder setHttpConfig(HttpConfig value)

The DeviceService (HTTP) configuration for this device registry.

.google.cloud.iot.v1.HttpConfig http_config = 9;

Parameter
NameDescription
valueHttpConfig
Returns
TypeDescription
DeviceRegistry.Builder

setHttpConfig(HttpConfig.Builder builderForValue)

public DeviceRegistry.Builder setHttpConfig(HttpConfig.Builder builderForValue)

The DeviceService (HTTP) configuration for this device registry.

.google.cloud.iot.v1.HttpConfig http_config = 9;

Parameter
NameDescription
builderForValueHttpConfig.Builder
Returns
TypeDescription
DeviceRegistry.Builder

setId(String value)

public DeviceRegistry.Builder setId(String value)

The identifier of this device registry. For example, myRegistry.

string id = 1;

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
DeviceRegistry.Builder

This builder for chaining.

setIdBytes(ByteString value)

public DeviceRegistry.Builder setIdBytes(ByteString value)

The identifier of this device registry. For example, myRegistry.

string id = 1;

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
DeviceRegistry.Builder

This builder for chaining.

setLogLevel(LogLevel value)

public DeviceRegistry.Builder setLogLevel(LogLevel value)

Beta Feature

The default logging verbosity for activity from devices in this registry. The verbosity level can be overridden by Device.log_level.

.google.cloud.iot.v1.LogLevel log_level = 11;

Parameter
NameDescription
valueLogLevel

The logLevel to set.

Returns
TypeDescription
DeviceRegistry.Builder

This builder for chaining.

setLogLevelValue(int value)

public DeviceRegistry.Builder setLogLevelValue(int value)

Beta Feature

The default logging verbosity for activity from devices in this registry. The verbosity level can be overridden by Device.log_level.

.google.cloud.iot.v1.LogLevel log_level = 11;

Parameter
NameDescription
valueint

The enum numeric value on the wire for logLevel to set.

Returns
TypeDescription
DeviceRegistry.Builder

This builder for chaining.

setMqttConfig(MqttConfig value)

public DeviceRegistry.Builder setMqttConfig(MqttConfig value)

The MQTT configuration for this device registry.

.google.cloud.iot.v1.MqttConfig mqtt_config = 4;

Parameter
NameDescription
valueMqttConfig
Returns
TypeDescription
DeviceRegistry.Builder

setMqttConfig(MqttConfig.Builder builderForValue)

public DeviceRegistry.Builder setMqttConfig(MqttConfig.Builder builderForValue)

The MQTT configuration for this device registry.

.google.cloud.iot.v1.MqttConfig mqtt_config = 4;

Parameter
NameDescription
builderForValueMqttConfig.Builder
Returns
TypeDescription
DeviceRegistry.Builder

setName(String value)

public DeviceRegistry.Builder setName(String value)

The resource path name. For example, projects/example-project/locations/us-central1/registries/my-registry.

string name = 2;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
DeviceRegistry.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeviceRegistry.Builder setNameBytes(ByteString value)

The resource path name. For example, projects/example-project/locations/us-central1/registries/my-registry.

string name = 2;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DeviceRegistry.Builder

This builder for chaining.

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

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

setStateNotificationConfig(StateNotificationConfig value)

public DeviceRegistry.Builder setStateNotificationConfig(StateNotificationConfig value)

The configuration for notification of new states received from the device. State updates are guaranteed to be stored in the state history, but notifications to Cloud Pub/Sub are not guaranteed. For example, if permissions are misconfigured or the specified topic doesn't exist, no notification will be published but the state will still be stored in Cloud IoT Core.

.google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7;

Parameter
NameDescription
valueStateNotificationConfig
Returns
TypeDescription
DeviceRegistry.Builder

setStateNotificationConfig(StateNotificationConfig.Builder builderForValue)

public DeviceRegistry.Builder setStateNotificationConfig(StateNotificationConfig.Builder builderForValue)

The configuration for notification of new states received from the device. State updates are guaranteed to be stored in the state history, but notifications to Cloud Pub/Sub are not guaranteed. For example, if permissions are misconfigured or the specified topic doesn't exist, no notification will be published but the state will still be stored in Cloud IoT Core.

.google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7;

Parameter
NameDescription
builderForValueStateNotificationConfig.Builder
Returns
TypeDescription
DeviceRegistry.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final DeviceRegistry.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeviceRegistry.Builder
Overrides