Class CreateKeyHandleRequest (2.60.0)

public final class CreateKeyHandleRequest extends GeneratedMessageV3 implements CreateKeyHandleRequestOrBuilder

Request message for Autokey.CreateKeyHandle.

Protobuf type google.cloud.kms.v1.CreateKeyHandleRequest

Static Fields

KEY_HANDLE_FIELD_NUMBER

public static final int KEY_HANDLE_FIELD_NUMBER
Field Value
TypeDescription
int

KEY_HANDLE_ID_FIELD_NUMBER

public static final int KEY_HANDLE_ID_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 CreateKeyHandleRequest getDefaultInstance()
Returns
TypeDescription
CreateKeyHandleRequest

getDescriptor()

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

newBuilder()

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

newBuilder(CreateKeyHandleRequest )

public static CreateKeyHandleRequest.Builder newBuilder(CreateKeyHandleRequest )
Parameter
NameDescription
CreateKeyHandleRequest
Returns
TypeDescription
CreateKeyHandleRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public CreateKeyHandleRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateKeyHandleRequest

getKeyHandle()

public KeyHandle getKeyHandle()

Required. KeyHandle to create.

.google.cloud.kms.v1.KeyHandle key_handle = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
KeyHandle

The keyHandle.

getKeyHandleId()

public String getKeyHandleId()

Optional. Id of the KeyHandle. Must be unique to the resource project and location. If not provided by the caller, a new UUID is used.

string key_handle_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The keyHandleId.

getKeyHandleIdBytes()

public ByteString getKeyHandleIdBytes()

Optional. Id of the KeyHandle. Must be unique to the resource project and location. If not provided by the caller, a new UUID is used.

string key_handle_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for keyHandleId.

getKeyHandleOrBuilder()

public KeyHandleOrBuilder getKeyHandleOrBuilder()

Required. KeyHandle to create.

.google.cloud.kms.v1.KeyHandle key_handle = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
KeyHandleOrBuilder

getParent()

public String getParent()

Required. Name of the resource project and location to create the KeyHandle in, e.g. projects/{PROJECT_ID}/locations/{LOCATION}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Name of the resource project and location to create the KeyHandle in, e.g. projects/{PROJECT_ID}/locations/{LOCATION}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasKeyHandle()

public boolean hasKeyHandle()

Required. KeyHandle to create.

.google.cloud.kms.v1.KeyHandle key_handle = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the keyHandle 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 CreateKeyHandleRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateKeyHandleRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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