Class CreateDeviceRegistryRequest.Builder (2.3.6)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateDeviceRegistryRequest build()
Returns
TypeDescription
CreateDeviceRegistryRequest

buildPartial()

public CreateDeviceRegistryRequest buildPartial()
Returns
TypeDescription
CreateDeviceRegistryRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateDeviceRegistryRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateDeviceRegistryRequest

getDescriptorForType()

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

Whether the deviceRegistry field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDeviceRegistry(DeviceRegistry value)

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

mergeFrom(CreateDeviceRegistryRequest other)

public CreateDeviceRegistryRequest.Builder mergeFrom(CreateDeviceRegistryRequest other)
Parameter
NameDescription
otherCreateDeviceRegistryRequest
Returns
TypeDescription
CreateDeviceRegistryRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateDeviceRegistryRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateDeviceRegistryRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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