public static final class CreateDeviceRegistryRequest.Builder extends GeneratedMessageV3.Builder<CreateDeviceRegistryRequest.Builder> implements CreateDeviceRegistryRequestOrBuilder
Request for CreateDeviceRegistry
.
Protobuf type google.cloud.iot.v1.CreateDeviceRegistryRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateDeviceRegistryRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateDeviceRegistryRequest build()
Returns
buildPartial()
public CreateDeviceRegistryRequest buildPartial()
Returns
clear()
public CreateDeviceRegistryRequest.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public CreateDeviceRegistryRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateDeviceRegistryRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public CreateDeviceRegistryRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CreateDeviceRegistryRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
mergeFrom(CreateDeviceRegistryRequest other)
public CreateDeviceRegistryRequest.Builder mergeFrom(CreateDeviceRegistryRequest other)
Parameter
Returns
public CreateDeviceRegistryRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateDeviceRegistryRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateDeviceRegistryRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public CreateDeviceRegistryRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateDeviceRegistryRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateDeviceRegistryRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides