public final class RegionDiskUpdateKmsKeyRequest extends GeneratedMessage implements RegionDiskUpdateKmsKeyRequestOrBuilder Protobuf type google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > RegionDiskUpdateKmsKeyRequestImplements
RegionDiskUpdateKmsKeyRequestOrBuilderStatic 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 RegionDiskUpdateKmsKeyRequest getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
RegionDiskUpdateKmsKeyRequest |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static RegionDiskUpdateKmsKeyRequest.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
RegionDiskUpdateKmsKeyRequest.Builder |
|
newBuilder(RegionDiskUpdateKmsKeyRequest prototype)
public static RegionDiskUpdateKmsKeyRequest.Builder newBuilder(RegionDiskUpdateKmsKeyRequest prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
RegionDiskUpdateKmsKeyRequest |
| Returns | |
|---|---|
| Type | Description |
RegionDiskUpdateKmsKeyRequest.Builder |
|
parseDelimitedFrom(InputStream input)
public static RegionDiskUpdateKmsKeyRequest parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
RegionDiskUpdateKmsKeyRequest |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RegionDiskUpdateKmsKeyRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RegionDiskUpdateKmsKeyRequest |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static RegionDiskUpdateKmsKeyRequest parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
RegionDiskUpdateKmsKeyRequest |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RegionDiskUpdateKmsKeyRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RegionDiskUpdateKmsKeyRequest |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static RegionDiskUpdateKmsKeyRequest parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
RegionDiskUpdateKmsKeyRequest |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RegionDiskUpdateKmsKeyRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RegionDiskUpdateKmsKeyRequest |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static RegionDiskUpdateKmsKeyRequest parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
RegionDiskUpdateKmsKeyRequest |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RegionDiskUpdateKmsKeyRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RegionDiskUpdateKmsKeyRequest |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static RegionDiskUpdateKmsKeyRequest parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
RegionDiskUpdateKmsKeyRequest |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RegionDiskUpdateKmsKeyRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RegionDiskUpdateKmsKeyRequest |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static RegionDiskUpdateKmsKeyRequest parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
RegionDiskUpdateKmsKeyRequest |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RegionDiskUpdateKmsKeyRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RegionDiskUpdateKmsKeyRequest |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<RegionDiskUpdateKmsKeyRequest> parser()| Returns | |
|---|---|
| Type | Description |
Parser<RegionDiskUpdateKmsKeyRequest> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public RegionDiskUpdateKmsKeyRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RegionDiskUpdateKmsKeyRequest |
|
getKmsKeyName()
public String getKmsKeyName()Optional. The new KMS key to replace the current one on the disk. If empty, the disk will be re-encrypted using the primary version of the disk's current KMS key.
The KMS key can be provided in the following formats:
- projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
Where project is the project ID or project number.
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 disk. If empty, the disk will be re-encrypted using the primary version of the disk's current KMS key.
The KMS key can be provided in the following formats:
- projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
Where project is the project ID or project number.
optional string kms_key_name = 484373913;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kmsKeyName. |
getParserForType()
public Parser<RegionDiskUpdateKmsKeyRequest> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<RegionDiskUpdateKmsKeyRequest> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hasKmsKeyName()
public boolean hasKmsKeyName()Optional. The new KMS key to replace the current one on the disk. If empty, the disk will be re-encrypted using the primary version of the disk's current KMS key.
The KMS key can be provided in the following formats:
- projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
Where project is the project ID or project number.
optional string kms_key_name = 484373913;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the kmsKeyName field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public RegionDiskUpdateKmsKeyRequest.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
RegionDiskUpdateKmsKeyRequest.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected RegionDiskUpdateKmsKeyRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
RegionDiskUpdateKmsKeyRequest.Builder |
|
toBuilder()
public RegionDiskUpdateKmsKeyRequest.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
RegionDiskUpdateKmsKeyRequest.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|