Class Instance.PscAutoConnectionConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Instance.PscAutoConnectionConfig.Builder>
com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder
All Implemented Interfaces:
Instance.PscAutoConnectionConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Instance.PscAutoConnectionConfig

public static final class Instance.PscAutoConnectionConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<Instance.PscAutoConnectionConfig.Builder> implements Instance.PscAutoConnectionConfigOrBuilder
 Configuration for setting up PSC service automation. Consumer projects in
 the configs will be allowlisted automatically for the instance.
 
Protobuf type google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig
  • 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.PscAutoConnectionConfig.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.PscAutoConnectionConfig.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.PscAutoConnectionConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public String getConsumerProject()
       The consumer project to which the PSC service automation endpoint will
       be created.
       
      string consumer_project = 1;
      Specified by:
      getConsumerProject in interface Instance.PscAutoConnectionConfigOrBuilder
      Returns:
      The consumerProject.
    • getConsumerProjectBytes

      public com.google.protobuf.ByteString getConsumerProjectBytes()
       The consumer project to which the PSC service automation endpoint will
       be created.
       
      string consumer_project = 1;
      Specified by:
      getConsumerProjectBytes in interface Instance.PscAutoConnectionConfigOrBuilder
      Returns:
      The bytes for consumerProject.
    • setConsumerProject

      public Instance.PscAutoConnectionConfig.Builder setConsumerProject(String value)
       The consumer project to which the PSC service automation endpoint will
       be created.
       
      string consumer_project = 1;
      Parameters:
      value - The consumerProject to set.
      Returns:
      This builder for chaining.
    • clearConsumerProject

      public Instance.PscAutoConnectionConfig.Builder clearConsumerProject()
       The consumer project to which the PSC service automation endpoint will
       be created.
       
      string consumer_project = 1;
      Returns:
      This builder for chaining.
    • setConsumerProjectBytes

      public Instance.PscAutoConnectionConfig.Builder setConsumerProjectBytes(com.google.protobuf.ByteString value)
       The consumer project to which the PSC service automation endpoint will
       be created.
       
      string consumer_project = 1;
      Parameters:
      value - The bytes for consumerProject to set.
      Returns:
      This builder for chaining.
    • getConsumerNetwork

      public String getConsumerNetwork()
       The consumer network for the PSC service automation, example:
       "projects/vpc-host-project/global/networks/default".
       The consumer network might be hosted a different project than the
       consumer project.
       
      string consumer_network = 2;
      Specified by:
      getConsumerNetwork in interface Instance.PscAutoConnectionConfigOrBuilder
      Returns:
      The consumerNetwork.
    • getConsumerNetworkBytes

      public com.google.protobuf.ByteString getConsumerNetworkBytes()
       The consumer network for the PSC service automation, example:
       "projects/vpc-host-project/global/networks/default".
       The consumer network might be hosted a different project than the
       consumer project.
       
      string consumer_network = 2;
      Specified by:
      getConsumerNetworkBytes in interface Instance.PscAutoConnectionConfigOrBuilder
      Returns:
      The bytes for consumerNetwork.
    • setConsumerNetwork

      public Instance.PscAutoConnectionConfig.Builder setConsumerNetwork(String value)
       The consumer network for the PSC service automation, example:
       "projects/vpc-host-project/global/networks/default".
       The consumer network might be hosted a different project than the
       consumer project.
       
      string consumer_network = 2;
      Parameters:
      value - The consumerNetwork to set.
      Returns:
      This builder for chaining.
    • clearConsumerNetwork

      public Instance.PscAutoConnectionConfig.Builder clearConsumerNetwork()
       The consumer network for the PSC service automation, example:
       "projects/vpc-host-project/global/networks/default".
       The consumer network might be hosted a different project than the
       consumer project.
       
      string consumer_network = 2;
      Returns:
      This builder for chaining.
    • setConsumerNetworkBytes

      public Instance.PscAutoConnectionConfig.Builder setConsumerNetworkBytes(com.google.protobuf.ByteString value)
       The consumer network for the PSC service automation, example:
       "projects/vpc-host-project/global/networks/default".
       The consumer network might be hosted a different project than the
       consumer project.
       
      string consumer_network = 2;
      Parameters:
      value - The bytes for consumerNetwork to set.
      Returns:
      This builder for chaining.
    • getIpAddress

      public String getIpAddress()
       Output only. The IP address of the PSC service automation endpoint.
       
      string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getIpAddress in interface Instance.PscAutoConnectionConfigOrBuilder
      Returns:
      The ipAddress.
    • getIpAddressBytes

      public com.google.protobuf.ByteString getIpAddressBytes()
       Output only. The IP address of the PSC service automation endpoint.
       
      string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getIpAddressBytes in interface Instance.PscAutoConnectionConfigOrBuilder
      Returns:
      The bytes for ipAddress.
    • setIpAddress

      public Instance.PscAutoConnectionConfig.Builder setIpAddress(String value)
       Output only. The IP address of the PSC service automation endpoint.
       
      string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The ipAddress to set.
      Returns:
      This builder for chaining.
    • clearIpAddress

       Output only. The IP address of the PSC service automation endpoint.
       
      string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Returns:
      This builder for chaining.
    • setIpAddressBytes

      public Instance.PscAutoConnectionConfig.Builder setIpAddressBytes(com.google.protobuf.ByteString value)
       Output only. The IP address of the PSC service automation endpoint.
       
      string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The bytes for ipAddress to set.
      Returns:
      This builder for chaining.
    • getStatus

      public String getStatus()
       Output only. The status of the PSC service automation connection.
       Possible values:
       "STATE_UNSPECIFIED" - An invalid state as the default case.
       "ACTIVE" - The connection has been created successfully.
       "FAILED" - The connection is not functional since some resources on the
       connection fail to be created.
       "CREATING" - The connection is being created.
       "DELETING" - The connection is being deleted.
       "CREATE_REPAIRING" - The connection is being repaired to complete
       creation.
       "DELETE_REPAIRING" - The connection is being repaired to complete
       deletion.
       
      string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatus in interface Instance.PscAutoConnectionConfigOrBuilder
      Returns:
      The status.
    • getStatusBytes

      public com.google.protobuf.ByteString getStatusBytes()
       Output only. The status of the PSC service automation connection.
       Possible values:
       "STATE_UNSPECIFIED" - An invalid state as the default case.
       "ACTIVE" - The connection has been created successfully.
       "FAILED" - The connection is not functional since some resources on the
       connection fail to be created.
       "CREATING" - The connection is being created.
       "DELETING" - The connection is being deleted.
       "CREATE_REPAIRING" - The connection is being repaired to complete
       creation.
       "DELETE_REPAIRING" - The connection is being repaired to complete
       deletion.
       
      string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatusBytes in interface Instance.PscAutoConnectionConfigOrBuilder
      Returns:
      The bytes for status.
    • setStatus

       Output only. The status of the PSC service automation connection.
       Possible values:
       "STATE_UNSPECIFIED" - An invalid state as the default case.
       "ACTIVE" - The connection has been created successfully.
       "FAILED" - The connection is not functional since some resources on the
       connection fail to be created.
       "CREATING" - The connection is being created.
       "DELETING" - The connection is being deleted.
       "CREATE_REPAIRING" - The connection is being repaired to complete
       creation.
       "DELETE_REPAIRING" - The connection is being repaired to complete
       deletion.
       
      string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

       Output only. The status of the PSC service automation connection.
       Possible values:
       "STATE_UNSPECIFIED" - An invalid state as the default case.
       "ACTIVE" - The connection has been created successfully.
       "FAILED" - The connection is not functional since some resources on the
       connection fail to be created.
       "CREATING" - The connection is being created.
       "DELETING" - The connection is being deleted.
       "CREATE_REPAIRING" - The connection is being repaired to complete
       creation.
       "DELETE_REPAIRING" - The connection is being repaired to complete
       deletion.
       
      string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setStatusBytes

      public Instance.PscAutoConnectionConfig.Builder setStatusBytes(com.google.protobuf.ByteString value)
       Output only. The status of the PSC service automation connection.
       Possible values:
       "STATE_UNSPECIFIED" - An invalid state as the default case.
       "ACTIVE" - The connection has been created successfully.
       "FAILED" - The connection is not functional since some resources on the
       connection fail to be created.
       "CREATING" - The connection is being created.
       "DELETING" - The connection is being deleted.
       "CREATE_REPAIRING" - The connection is being repaired to complete
       creation.
       "DELETE_REPAIRING" - The connection is being repaired to complete
       deletion.
       
      string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for status to set.
      Returns:
      This builder for chaining.
    • getConsumerNetworkStatus

      public String getConsumerNetworkStatus()
       Output only. The status of the service connection policy.
       Possible values:
       "STATE_UNSPECIFIED" - Default state, when Connection Map is created
       initially.
       "VALID" - Set when policy and map configuration is valid, and their
       matching can lead to allowing creation of PSC Connections subject to
       other constraints like connections limit.
       "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for
       this network and Service Class
       "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for
       this network and Service Class
       "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance
       project is not in AllowedGoogleProducersResourceHierarchyLevels of the
       matching ServiceConnectionPolicy.
       
      string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConsumerNetworkStatus in interface Instance.PscAutoConnectionConfigOrBuilder
      Returns:
      The consumerNetworkStatus.
    • getConsumerNetworkStatusBytes

      public com.google.protobuf.ByteString getConsumerNetworkStatusBytes()
       Output only. The status of the service connection policy.
       Possible values:
       "STATE_UNSPECIFIED" - Default state, when Connection Map is created
       initially.
       "VALID" - Set when policy and map configuration is valid, and their
       matching can lead to allowing creation of PSC Connections subject to
       other constraints like connections limit.
       "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for
       this network and Service Class
       "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for
       this network and Service Class
       "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance
       project is not in AllowedGoogleProducersResourceHierarchyLevels of the
       matching ServiceConnectionPolicy.
       
      string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConsumerNetworkStatusBytes in interface Instance.PscAutoConnectionConfigOrBuilder
      Returns:
      The bytes for consumerNetworkStatus.
    • setConsumerNetworkStatus

      public Instance.PscAutoConnectionConfig.Builder setConsumerNetworkStatus(String value)
       Output only. The status of the service connection policy.
       Possible values:
       "STATE_UNSPECIFIED" - Default state, when Connection Map is created
       initially.
       "VALID" - Set when policy and map configuration is valid, and their
       matching can lead to allowing creation of PSC Connections subject to
       other constraints like connections limit.
       "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for
       this network and Service Class
       "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for
       this network and Service Class
       "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance
       project is not in AllowedGoogleProducersResourceHierarchyLevels of the
       matching ServiceConnectionPolicy.
       
      string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The consumerNetworkStatus to set.
      Returns:
      This builder for chaining.
    • clearConsumerNetworkStatus

      public Instance.PscAutoConnectionConfig.Builder clearConsumerNetworkStatus()
       Output only. The status of the service connection policy.
       Possible values:
       "STATE_UNSPECIFIED" - Default state, when Connection Map is created
       initially.
       "VALID" - Set when policy and map configuration is valid, and their
       matching can lead to allowing creation of PSC Connections subject to
       other constraints like connections limit.
       "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for
       this network and Service Class
       "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for
       this network and Service Class
       "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance
       project is not in AllowedGoogleProducersResourceHierarchyLevels of the
       matching ServiceConnectionPolicy.
       
      string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setConsumerNetworkStatusBytes

      public Instance.PscAutoConnectionConfig.Builder setConsumerNetworkStatusBytes(com.google.protobuf.ByteString value)
       Output only. The status of the service connection policy.
       Possible values:
       "STATE_UNSPECIFIED" - Default state, when Connection Map is created
       initially.
       "VALID" - Set when policy and map configuration is valid, and their
       matching can lead to allowing creation of PSC Connections subject to
       other constraints like connections limit.
       "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for
       this network and Service Class
       "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for
       this network and Service Class
       "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance
       project is not in AllowedGoogleProducersResourceHierarchyLevels of the
       matching ServiceConnectionPolicy.
       
      string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for consumerNetworkStatus to set.
      Returns:
      This builder for chaining.