Class CreateDeviceRegistryRequest (2.3.0)

public final class CreateDeviceRegistryRequest extends GeneratedMessageV3 implements CreateDeviceRegistryRequestOrBuilder

Request for CreateDeviceRegistry.

Protobuf type google.cloud.iot.v1.CreateDeviceRegistryRequest

Static Fields

DEVICE_REGISTRY_FIELD_NUMBER

public static final int DEVICE_REGISTRY_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateDeviceRegistryRequest getDefaultInstance()
Returns
TypeDescription
CreateDeviceRegistryRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CreateDeviceRegistryRequest.Builder newBuilder()
Returns
TypeDescription
CreateDeviceRegistryRequest.Builder

newBuilder(CreateDeviceRegistryRequest prototype)

public static CreateDeviceRegistryRequest.Builder newBuilder(CreateDeviceRegistryRequest prototype)
Parameter
NameDescription
prototypeCreateDeviceRegistryRequest
Returns
TypeDescription
CreateDeviceRegistryRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateDeviceRegistryRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateDeviceRegistryRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateDeviceRegistryRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateDeviceRegistryRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CreateDeviceRegistryRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateDeviceRegistryRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateDeviceRegistryRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateDeviceRegistryRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateDeviceRegistryRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateDeviceRegistryRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateDeviceRegistryRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateDeviceRegistryRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateDeviceRegistryRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateDeviceRegistryRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateDeviceRegistryRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateDeviceRegistryRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CreateDeviceRegistryRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateDeviceRegistryRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateDeviceRegistryRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateDeviceRegistryRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CreateDeviceRegistryRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateDeviceRegistryRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateDeviceRegistryRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateDeviceRegistryRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CreateDeviceRegistryRequest> parser()
Returns
TypeDescription
Parser<CreateDeviceRegistryRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CreateDeviceRegistryRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateDeviceRegistryRequest

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.

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.

getParserForType()

public Parser<CreateDeviceRegistryRequest> getParserForType()
Returns
TypeDescription
Parser<CreateDeviceRegistryRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CreateDeviceRegistryRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateDeviceRegistryRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateDeviceRegistryRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateDeviceRegistryRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CreateDeviceRegistryRequest.Builder toBuilder()
Returns
TypeDescription
CreateDeviceRegistryRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException