Class RegionSnapshotUpdateKmsKeyRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RegionSnapshotUpdateKmsKeyRequest.Builder>
com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.Builder
All Implemented Interfaces:
RegionSnapshotUpdateKmsKeyRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RegionSnapshotUpdateKmsKeyRequest

public static final class RegionSnapshotUpdateKmsKeyRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<RegionSnapshotUpdateKmsKeyRequest.Builder> implements RegionSnapshotUpdateKmsKeyRequestOrBuilder
 
Protobuf type google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<RegionSnapshotUpdateKmsKeyRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<RegionSnapshotUpdateKmsKeyRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<RegionSnapshotUpdateKmsKeyRequest.Builder>
    • getDefaultInstanceForType

      public RegionSnapshotUpdateKmsKeyRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public RegionSnapshotUpdateKmsKeyRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public RegionSnapshotUpdateKmsKeyRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RegionSnapshotUpdateKmsKeyRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<RegionSnapshotUpdateKmsKeyRequest.Builder>
    • mergeFrom

      public RegionSnapshotUpdateKmsKeyRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RegionSnapshotUpdateKmsKeyRequest.Builder>
      Throws:
      IOException
    • 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;
      Specified by:
      hasKmsKeyName in interface RegionSnapshotUpdateKmsKeyRequestOrBuilder
      Returns:
      Whether the kmsKeyName field is set.
    • 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;
      Specified by:
      getKmsKeyName in interface RegionSnapshotUpdateKmsKeyRequestOrBuilder
      Returns:
      The kmsKeyName.
    • getKmsKeyNameBytes

      public com.google.protobuf.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;
      Specified by:
      getKmsKeyNameBytes in interface RegionSnapshotUpdateKmsKeyRequestOrBuilder
      Returns:
      The bytes for kmsKeyName.
    • setKmsKeyName

      public RegionSnapshotUpdateKmsKeyRequest.Builder setKmsKeyName(String value)
       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;
      Parameters:
      value - The kmsKeyName to set.
      Returns:
      This builder for chaining.
    • clearKmsKeyName

       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:
      This builder for chaining.
    • setKmsKeyNameBytes

      public RegionSnapshotUpdateKmsKeyRequest.Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for kmsKeyName to set.
      Returns:
      This builder for chaining.