Class DeviceRegistry.Builder

  • All Implemented Interfaces:
    DeviceRegistryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    DeviceRegistry

    public static final class DeviceRegistry.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<DeviceRegistry.Builder>
    implements DeviceRegistryOrBuilder
     A container for a group of devices.
     
    Protobuf type google.cloud.iot.v1.DeviceRegistry
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceRegistry.Builder>
      • clear

        public DeviceRegistry.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceRegistry.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceRegistry.Builder>
      • getDefaultInstanceForType

        public DeviceRegistry getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public DeviceRegistry build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public DeviceRegistry buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public DeviceRegistry.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceRegistry.Builder>
      • setField

        public DeviceRegistry.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceRegistry.Builder>
      • clearField

        public DeviceRegistry.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceRegistry.Builder>
      • clearOneof

        public DeviceRegistry.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceRegistry.Builder>
      • setRepeatedField

        public DeviceRegistry.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       int index,
                                                       Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceRegistry.Builder>
      • addRepeatedField

        public DeviceRegistry.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceRegistry.Builder>
      • mergeFrom

        public DeviceRegistry.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DeviceRegistry.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceRegistry.Builder>
      • mergeFrom

        public DeviceRegistry.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DeviceRegistry.Builder>
        Throws:
        IOException
      • getId

        public String getId()
         The identifier of this device registry. For example, `myRegistry`.
         
        string id = 1;
        Specified by:
        getId in interface DeviceRegistryOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         The identifier of this device registry. For example, `myRegistry`.
         
        string id = 1;
        Specified by:
        getIdBytes in interface DeviceRegistryOrBuilder
        Returns:
        The bytes for id.
      • setId

        public DeviceRegistry.Builder setId​(String value)
         The identifier of this device registry. For example, `myRegistry`.
         
        string id = 1;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public DeviceRegistry.Builder clearId()
         The identifier of this device registry. For example, `myRegistry`.
         
        string id = 1;
        Returns:
        This builder for chaining.
      • setIdBytes

        public DeviceRegistry.Builder setIdBytes​(com.google.protobuf.ByteString value)
         The identifier of this device registry. For example, `myRegistry`.
         
        string id = 1;
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • getName

        public String getName()
         The resource path name. For example,
         `projects/example-project/locations/us-central1/registries/my-registry`.
         
        string name = 2;
        Specified by:
        getName in interface DeviceRegistryOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The resource path name. For example,
         `projects/example-project/locations/us-central1/registries/my-registry`.
         
        string name = 2;
        Specified by:
        getNameBytes in interface DeviceRegistryOrBuilder
        Returns:
        The bytes for name.
      • setName

        public DeviceRegistry.Builder setName​(String value)
         The resource path name. For example,
         `projects/example-project/locations/us-central1/registries/my-registry`.
         
        string name = 2;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public DeviceRegistry.Builder clearName()
         The resource path name. For example,
         `projects/example-project/locations/us-central1/registries/my-registry`.
         
        string name = 2;
        Returns:
        This builder for chaining.
      • setNameBytes

        public DeviceRegistry.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The resource path name. For example,
         `projects/example-project/locations/us-central1/registries/my-registry`.
         
        string name = 2;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • 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;
        Specified by:
        getEventNotificationConfigsList in interface DeviceRegistryOrBuilder
      • 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;
        Specified by:
        getEventNotificationConfigsCount in interface DeviceRegistryOrBuilder
      • getEventNotificationConfigs

        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;
        Specified by:
        getEventNotificationConfigs in interface DeviceRegistryOrBuilder
      • setEventNotificationConfigs

        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;
      • setEventNotificationConfigs

        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;
      • addEventNotificationConfigs

        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;
      • addEventNotificationConfigs

        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;
      • addEventNotificationConfigs

        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;
      • addEventNotificationConfigs

        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;
      • addAllEventNotificationConfigs

        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;
      • 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;
      • removeEventNotificationConfigs

        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;
      • getEventNotificationConfigsBuilder

        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;
      • getEventNotificationConfigsOrBuilder

        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;
        Specified by:
        getEventNotificationConfigsOrBuilder in interface DeviceRegistryOrBuilder
      • 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;
        Specified by:
        getEventNotificationConfigsOrBuilderList in interface DeviceRegistryOrBuilder
      • 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;
      • addEventNotificationConfigsBuilder

        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;
      • 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;
      • 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;
        Specified by:
        hasStateNotificationConfig in interface DeviceRegistryOrBuilder
        Returns:
        Whether the stateNotificationConfig field is set.
      • 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;
        Specified by:
        getStateNotificationConfig in interface DeviceRegistryOrBuilder
        Returns:
        The stateNotificationConfig.
      • setStateNotificationConfig

        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;
      • setStateNotificationConfig

        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;
      • mergeStateNotificationConfig

        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;
      • 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;
      • 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;
      • 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;
        Specified by:
        getStateNotificationConfigOrBuilder in interface DeviceRegistryOrBuilder
      • hasMqttConfig

        public boolean hasMqttConfig()
         The MQTT configuration for this device registry.
         
        .google.cloud.iot.v1.MqttConfig mqtt_config = 4;
        Specified by:
        hasMqttConfig in interface DeviceRegistryOrBuilder
        Returns:
        Whether the mqttConfig field is set.
      • getMqttConfig

        public MqttConfig getMqttConfig()
         The MQTT configuration for this device registry.
         
        .google.cloud.iot.v1.MqttConfig mqtt_config = 4;
        Specified by:
        getMqttConfig in interface DeviceRegistryOrBuilder
        Returns:
        The mqttConfig.
      • setMqttConfig

        public DeviceRegistry.Builder setMqttConfig​(MqttConfig value)
         The MQTT configuration for this device registry.
         
        .google.cloud.iot.v1.MqttConfig mqtt_config = 4;
      • mergeMqttConfig

        public DeviceRegistry.Builder mergeMqttConfig​(MqttConfig value)
         The MQTT configuration for this device registry.
         
        .google.cloud.iot.v1.MqttConfig mqtt_config = 4;
      • clearMqttConfig

        public DeviceRegistry.Builder clearMqttConfig()
         The MQTT configuration for this device registry.
         
        .google.cloud.iot.v1.MqttConfig mqtt_config = 4;
      • getMqttConfigBuilder

        public MqttConfig.Builder getMqttConfigBuilder()
         The MQTT configuration for this device registry.
         
        .google.cloud.iot.v1.MqttConfig mqtt_config = 4;
      • hasHttpConfig

        public boolean hasHttpConfig()
         The DeviceService (HTTP) configuration for this device registry.
         
        .google.cloud.iot.v1.HttpConfig http_config = 9;
        Specified by:
        hasHttpConfig in interface DeviceRegistryOrBuilder
        Returns:
        Whether the httpConfig field is set.
      • getHttpConfig

        public HttpConfig getHttpConfig()
         The DeviceService (HTTP) configuration for this device registry.
         
        .google.cloud.iot.v1.HttpConfig http_config = 9;
        Specified by:
        getHttpConfig in interface DeviceRegistryOrBuilder
        Returns:
        The httpConfig.
      • setHttpConfig

        public DeviceRegistry.Builder setHttpConfig​(HttpConfig value)
         The DeviceService (HTTP) configuration for this device registry.
         
        .google.cloud.iot.v1.HttpConfig http_config = 9;
      • setHttpConfig

        public DeviceRegistry.Builder setHttpConfig​(HttpConfig.Builder builderForValue)
         The DeviceService (HTTP) configuration for this device registry.
         
        .google.cloud.iot.v1.HttpConfig http_config = 9;
      • mergeHttpConfig

        public DeviceRegistry.Builder mergeHttpConfig​(HttpConfig value)
         The DeviceService (HTTP) configuration for this device registry.
         
        .google.cloud.iot.v1.HttpConfig http_config = 9;
      • clearHttpConfig

        public DeviceRegistry.Builder clearHttpConfig()
         The DeviceService (HTTP) configuration for this device registry.
         
        .google.cloud.iot.v1.HttpConfig http_config = 9;
      • getHttpConfigBuilder

        public HttpConfig.Builder getHttpConfigBuilder()
         The DeviceService (HTTP) configuration for this device registry.
         
        .google.cloud.iot.v1.HttpConfig http_config = 9;
      • 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;
        Specified by:
        getLogLevelValue in interface DeviceRegistryOrBuilder
        Returns:
        The enum numeric value on the wire for logLevel.
      • setLogLevelValue

        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;
        Parameters:
        value - The enum numeric value on the wire for logLevel to set.
        Returns:
        This builder for chaining.
      • 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;
        Specified by:
        getLogLevel in interface DeviceRegistryOrBuilder
        Returns:
        The logLevel.
      • setLogLevel

        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;
        Parameters:
        value - The logLevel to set.
        Returns:
        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:
        This builder for chaining.
      • 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;
        Specified by:
        getCredentialsList in interface DeviceRegistryOrBuilder
      • 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;
        Specified by:
        getCredentialsCount in interface DeviceRegistryOrBuilder
      • getCredentials

        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;
        Specified by:
        getCredentials in interface DeviceRegistryOrBuilder
      • setCredentials

        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;
      • setCredentials

        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;
      • addCredentials

        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;
      • addCredentials

        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;
      • addCredentials

        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;
      • addCredentials

        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;
      • addAllCredentials

        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;
      • 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;
      • removeCredentials

        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;
      • getCredentialsBuilder

        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;
      • getCredentialsOrBuilder

        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;
        Specified by:
        getCredentialsOrBuilder in interface DeviceRegistryOrBuilder
      • 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;
        Specified by:
        getCredentialsOrBuilderList in interface DeviceRegistryOrBuilder
      • 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;
      • addCredentialsBuilder

        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;
      • 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;
      • setUnknownFields

        public final DeviceRegistry.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceRegistry.Builder>
      • mergeUnknownFields

        public final DeviceRegistry.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceRegistry.Builder>