Class CreateDeviceRegistryRequest.Builder (2.42.0)

public static final class CreateDeviceRegistryRequest.Builder extends GeneratedMessageV3.Builder<CreateDeviceRegistryRequest.Builder> implements CreateDeviceRegistryRequestOrBuilder

Request for CreateDeviceRegistry.

Protobuf type google.cloud.iot.v1.CreateDeviceRegistryRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateDeviceRegistryRequest build()
Returns
Type Description
CreateDeviceRegistryRequest

buildPartial()

public CreateDeviceRegistryRequest buildPartial()
Returns
Type Description
CreateDeviceRegistryRequest

clear()

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

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];

Returns
Type Description
CreateDeviceRegistryRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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
Type Description
CreateDeviceRegistryRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateDeviceRegistryRequest getDefaultInstanceForType()
Returns
Type Description
CreateDeviceRegistryRequest

getDescriptorForType()

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

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];

Returns
Type Description
DeviceRegistry

The deviceRegistry.

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];

Returns
Type Description
DeviceRegistry.Builder

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];

Returns
Type Description
DeviceRegistryOrBuilder

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) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public 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) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

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];

Returns
Type Description
boolean

Whether the deviceRegistry field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDeviceRegistry(DeviceRegistry value)

public 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];

Parameter
Name Description
value DeviceRegistry
Returns
Type Description
CreateDeviceRegistryRequest.Builder

mergeFrom(CreateDeviceRegistryRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDeviceRegistry(DeviceRegistry value)

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];

Parameter
Name Description
value DeviceRegistry
Returns
Type Description
CreateDeviceRegistryRequest.Builder

setDeviceRegistry(DeviceRegistry.Builder builderForValue)

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];

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

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) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateDeviceRegistryRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateDeviceRegistryRequest.Builder setParentBytes(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) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateDeviceRegistryRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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