Class Instance.Config.Builder

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

public static final class Instance.Config.Builder extends com.google.protobuf.GeneratedMessage.Builder<Instance.Config.Builder> implements Instance.ConfigOrBuilder
 Available configurations to provision an Instance.
 
Protobuf type google.cloud.apigeeregistry.v1.Instance.Config
  • 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<Instance.Config.Builder>
    • clear

      public Instance.Config.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<Instance.Config.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<Instance.Config.Builder>
    • getDefaultInstanceForType

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

      public Instance.Config build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public Instance.Config.Builder mergeFrom(Instance.Config other)
    • isInitialized

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

      public Instance.Config.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<Instance.Config.Builder>
      Throws:
      IOException
    • getLocation

      public String getLocation()
       Output only. The GCP location where the Instance resides.
       
      string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLocation in interface Instance.ConfigOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       Output only. The GCP location where the Instance resides.
       
      string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLocationBytes in interface Instance.ConfigOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public Instance.Config.Builder setLocation(String value)
       Output only. The GCP location where the Instance resides.
       
      string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

      public Instance.Config.Builder clearLocation()
       Output only. The GCP location where the Instance resides.
       
      string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setLocationBytes

      public Instance.Config.Builder setLocationBytes(com.google.protobuf.ByteString value)
       Output only. The GCP location where the Instance resides.
       
      string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.
    • getCmekKeyName

      public String getCmekKeyName()
       Required. The Customer Managed Encryption Key (CMEK) used for data encryption.
       The CMEK name should follow the format of
       `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`,
       where the `location` must match InstanceConfig.location.
       
      string cmek_key_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCmekKeyName in interface Instance.ConfigOrBuilder
      Returns:
      The cmekKeyName.
    • getCmekKeyNameBytes

      public com.google.protobuf.ByteString getCmekKeyNameBytes()
       Required. The Customer Managed Encryption Key (CMEK) used for data encryption.
       The CMEK name should follow the format of
       `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`,
       where the `location` must match InstanceConfig.location.
       
      string cmek_key_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCmekKeyNameBytes in interface Instance.ConfigOrBuilder
      Returns:
      The bytes for cmekKeyName.
    • setCmekKeyName

      public Instance.Config.Builder setCmekKeyName(String value)
       Required. The Customer Managed Encryption Key (CMEK) used for data encryption.
       The CMEK name should follow the format of
       `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`,
       where the `location` must match InstanceConfig.location.
       
      string cmek_key_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The cmekKeyName to set.
      Returns:
      This builder for chaining.
    • clearCmekKeyName

      public Instance.Config.Builder clearCmekKeyName()
       Required. The Customer Managed Encryption Key (CMEK) used for data encryption.
       The CMEK name should follow the format of
       `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`,
       where the `location` must match InstanceConfig.location.
       
      string cmek_key_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setCmekKeyNameBytes

      public Instance.Config.Builder setCmekKeyNameBytes(com.google.protobuf.ByteString value)
       Required. The Customer Managed Encryption Key (CMEK) used for data encryption.
       The CMEK name should follow the format of
       `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`,
       where the `location` must match InstanceConfig.location.
       
      string cmek_key_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for cmekKeyName to set.
      Returns:
      This builder for chaining.