Class RegionSnapshotUpdateKmsKeyRequest (1.105.0)

public final class RegionSnapshotUpdateKmsKeyRequest extends GeneratedMessage implements RegionSnapshotUpdateKmsKeyRequestOrBuilder

Protobuf type google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > RegionSnapshotUpdateKmsKeyRequest

Static Fields

KMS_KEY_NAME_FIELD_NUMBER

public static final int KMS_KEY_NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RegionSnapshotUpdateKmsKeyRequest getDefaultInstance()
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest

getDescriptor()

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

newBuilder()

public static RegionSnapshotUpdateKmsKeyRequest.Builder newBuilder()
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest.Builder

newBuilder(RegionSnapshotUpdateKmsKeyRequest prototype)

public static RegionSnapshotUpdateKmsKeyRequest.Builder newBuilder(RegionSnapshotUpdateKmsKeyRequest prototype)
Parameter
Name Description
prototype RegionSnapshotUpdateKmsKeyRequest
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest.Builder

parseDelimitedFrom(InputStream input)

public static RegionSnapshotUpdateKmsKeyRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RegionSnapshotUpdateKmsKeyRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RegionSnapshotUpdateKmsKeyRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RegionSnapshotUpdateKmsKeyRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RegionSnapshotUpdateKmsKeyRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RegionSnapshotUpdateKmsKeyRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RegionSnapshotUpdateKmsKeyRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RegionSnapshotUpdateKmsKeyRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RegionSnapshotUpdateKmsKeyRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RegionSnapshotUpdateKmsKeyRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RegionSnapshotUpdateKmsKeyRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RegionSnapshotUpdateKmsKeyRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RegionSnapshotUpdateKmsKeyRequest> parser()
Returns
Type Description
Parser<RegionSnapshotUpdateKmsKeyRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public RegionSnapshotUpdateKmsKeyRequest getDefaultInstanceForType()
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest

getKmsKeyName()

public String getKmsKeyName()

Optional. The new KMS key to replace the current one on the snapshot. If empty, the snapshot will be re-encrypted using the primary version of the snapshot's current KMS key.

The KMS key can be provided in the following formats:

  • projects/project_id/locations/region/keyRings/region/cryptoKeys/key

optional string kms_key_name = 484373913;

Returns
Type Description
String

The kmsKeyName.

getKmsKeyNameBytes()

public ByteString getKmsKeyNameBytes()

Optional. The new KMS key to replace the current one on the snapshot. If empty, the snapshot will be re-encrypted using the primary version of the snapshot's current KMS key.

The KMS key can be provided in the following formats:

  • projects/project_id/locations/region/keyRings/region/cryptoKeys/key

optional string kms_key_name = 484373913;

Returns
Type Description
ByteString

The bytes for kmsKeyName.

getParserForType()

public Parser<RegionSnapshotUpdateKmsKeyRequest> getParserForType()
Returns
Type Description
Parser<RegionSnapshotUpdateKmsKeyRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasKmsKeyName()

public boolean hasKmsKeyName()

Optional. The new KMS key to replace the current one on the snapshot. If empty, the snapshot will be re-encrypted using the primary version of the snapshot's current KMS key.

The KMS key can be provided in the following formats:

  • projects/project_id/locations/region/keyRings/region/cryptoKeys/key

optional string kms_key_name = 484373913;

Returns
Type Description
boolean

Whether the kmsKeyName field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RegionSnapshotUpdateKmsKeyRequest.Builder newBuilderForType()
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected RegionSnapshotUpdateKmsKeyRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest.Builder
Overrides

toBuilder()

public RegionSnapshotUpdateKmsKeyRequest.Builder toBuilder()
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException