Class InitializeEncryptionSpecRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InitializeEncryptionSpecRequest.Builder>
com.google.cloud.dialogflow.v2.InitializeEncryptionSpecRequest.Builder
All Implemented Interfaces:
InitializeEncryptionSpecRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
InitializeEncryptionSpecRequest

public static final class InitializeEncryptionSpecRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<InitializeEncryptionSpecRequest.Builder> implements InitializeEncryptionSpecRequestOrBuilder
 The request to initialize a location-level encryption specification.
 
Protobuf type google.cloud.dialogflow.v2.InitializeEncryptionSpecRequest
  • 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<InitializeEncryptionSpecRequest.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<InitializeEncryptionSpecRequest.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<InitializeEncryptionSpecRequest.Builder>
    • getDefaultInstanceForType

      public InitializeEncryptionSpecRequest 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 InitializeEncryptionSpecRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public InitializeEncryptionSpecRequest.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<InitializeEncryptionSpecRequest.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<InitializeEncryptionSpecRequest.Builder>
    • mergeFrom

      public InitializeEncryptionSpecRequest.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<InitializeEncryptionSpecRequest.Builder>
      Throws:
      IOException
    • hasEncryptionSpec

      public boolean hasEncryptionSpec()
       Required. The encryption spec used for CMEK encryption. It is required that
       the kms key is in the same region as the endpoint. The same key will be
       used for all provisioned resources, if encryption is available. If the
       kms_key_name is left empty, no encryption will be enforced.
       
      .google.cloud.dialogflow.v2.EncryptionSpec encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasEncryptionSpec in interface InitializeEncryptionSpecRequestOrBuilder
      Returns:
      Whether the encryptionSpec field is set.
    • getEncryptionSpec

      public EncryptionSpec getEncryptionSpec()
       Required. The encryption spec used for CMEK encryption. It is required that
       the kms key is in the same region as the endpoint. The same key will be
       used for all provisioned resources, if encryption is available. If the
       kms_key_name is left empty, no encryption will be enforced.
       
      .google.cloud.dialogflow.v2.EncryptionSpec encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEncryptionSpec in interface InitializeEncryptionSpecRequestOrBuilder
      Returns:
      The encryptionSpec.
    • setEncryptionSpec

      public InitializeEncryptionSpecRequest.Builder setEncryptionSpec(EncryptionSpec value)
       Required. The encryption spec used for CMEK encryption. It is required that
       the kms key is in the same region as the endpoint. The same key will be
       used for all provisioned resources, if encryption is available. If the
       kms_key_name is left empty, no encryption will be enforced.
       
      .google.cloud.dialogflow.v2.EncryptionSpec encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED];
    • setEncryptionSpec

      public InitializeEncryptionSpecRequest.Builder setEncryptionSpec(EncryptionSpec.Builder builderForValue)
       Required. The encryption spec used for CMEK encryption. It is required that
       the kms key is in the same region as the endpoint. The same key will be
       used for all provisioned resources, if encryption is available. If the
       kms_key_name is left empty, no encryption will be enforced.
       
      .google.cloud.dialogflow.v2.EncryptionSpec encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeEncryptionSpec

      public InitializeEncryptionSpecRequest.Builder mergeEncryptionSpec(EncryptionSpec value)
       Required. The encryption spec used for CMEK encryption. It is required that
       the kms key is in the same region as the endpoint. The same key will be
       used for all provisioned resources, if encryption is available. If the
       kms_key_name is left empty, no encryption will be enforced.
       
      .google.cloud.dialogflow.v2.EncryptionSpec encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearEncryptionSpec

      public InitializeEncryptionSpecRequest.Builder clearEncryptionSpec()
       Required. The encryption spec used for CMEK encryption. It is required that
       the kms key is in the same region as the endpoint. The same key will be
       used for all provisioned resources, if encryption is available. If the
       kms_key_name is left empty, no encryption will be enforced.
       
      .google.cloud.dialogflow.v2.EncryptionSpec encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED];
    • getEncryptionSpecBuilder

      public EncryptionSpec.Builder getEncryptionSpecBuilder()
       Required. The encryption spec used for CMEK encryption. It is required that
       the kms key is in the same region as the endpoint. The same key will be
       used for all provisioned resources, if encryption is available. If the
       kms_key_name is left empty, no encryption will be enforced.
       
      .google.cloud.dialogflow.v2.EncryptionSpec encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED];
    • getEncryptionSpecOrBuilder

      public EncryptionSpecOrBuilder getEncryptionSpecOrBuilder()
       Required. The encryption spec used for CMEK encryption. It is required that
       the kms key is in the same region as the endpoint. The same key will be
       used for all provisioned resources, if encryption is available. If the
       kms_key_name is left empty, no encryption will be enforced.
       
      .google.cloud.dialogflow.v2.EncryptionSpec encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEncryptionSpecOrBuilder in interface InitializeEncryptionSpecRequestOrBuilder