Class CreateDeviceRegistryRequest.Builder

    • 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<CreateDeviceRegistryRequest.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<CreateDeviceRegistryRequest.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public CreateDeviceRegistryRequest.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<CreateDeviceRegistryRequest.Builder>
        Throws:
        IOException
      • getParent

        public String getParent()
         Required. The project and cloud region where this device registry must be created.
         For example, `projects/example-project/locations/us-central1`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface CreateDeviceRegistryRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The project and cloud region where this device registry must be created.
         For example, `projects/example-project/locations/us-central1`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface CreateDeviceRegistryRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public CreateDeviceRegistryRequest.Builder setParent​(String value)
         Required. The project and cloud region where this device registry must be created.
         For example, `projects/example-project/locations/us-central1`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public CreateDeviceRegistryRequest.Builder clearParent()
         Required. The project and cloud region where this device registry must be created.
         For example, `projects/example-project/locations/us-central1`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public CreateDeviceRegistryRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The project and cloud region where this device registry must be created.
         For example, `projects/example-project/locations/us-central1`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • hasDeviceRegistry

        public boolean hasDeviceRegistry()
         Required. The device registry. The field `name` must be empty. The server will
         generate that field from the device registry `id` provided and the
         `parent` field.
         
        .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasDeviceRegistry in interface CreateDeviceRegistryRequestOrBuilder
        Returns:
        Whether the deviceRegistry field is set.
      • getDeviceRegistry

        public DeviceRegistry getDeviceRegistry()
         Required. The device registry. The field `name` must be empty. The server will
         generate that field from the device registry `id` provided and the
         `parent` field.
         
        .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDeviceRegistry in interface CreateDeviceRegistryRequestOrBuilder
        Returns:
        The deviceRegistry.
      • setDeviceRegistry

        public CreateDeviceRegistryRequest.Builder setDeviceRegistry​(DeviceRegistry value)
         Required. The device registry. The field `name` must be empty. The server will
         generate that field from the device registry `id` provided and the
         `parent` field.
         
        .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED];
      • setDeviceRegistry

        public CreateDeviceRegistryRequest.Builder setDeviceRegistry​(DeviceRegistry.Builder builderForValue)
         Required. The device registry. The field `name` must be empty. The server will
         generate that field from the device registry `id` provided and the
         `parent` field.
         
        .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergeDeviceRegistry

        public CreateDeviceRegistryRequest.Builder mergeDeviceRegistry​(DeviceRegistry value)
         Required. The device registry. The field `name` must be empty. The server will
         generate that field from the device registry `id` provided and the
         `parent` field.
         
        .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearDeviceRegistry

        public CreateDeviceRegistryRequest.Builder clearDeviceRegistry()
         Required. The device registry. The field `name` must be empty. The server will
         generate that field from the device registry `id` provided and the
         `parent` field.
         
        .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED];
      • getDeviceRegistryBuilder

        public DeviceRegistry.Builder getDeviceRegistryBuilder()
         Required. The device registry. The field `name` must be empty. The server will
         generate that field from the device registry `id` provided and the
         `parent` field.
         
        .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED];
      • getDeviceRegistryOrBuilder

        public DeviceRegistryOrBuilder getDeviceRegistryOrBuilder()
         Required. The device registry. The field `name` must be empty. The server will
         generate that field from the device registry `id` provided and the
         `parent` field.
         
        .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDeviceRegistryOrBuilder in interface CreateDeviceRegistryRequestOrBuilder
      • mergeUnknownFields

        public final CreateDeviceRegistryRequest.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<CreateDeviceRegistryRequest.Builder>