Class Instance.PscAutoConnectionConfig

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

public static final class Instance.PscAutoConnectionConfig extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • CONSUMER_PROJECT_FIELD_NUMBER

      public static final int CONSUMER_PROJECT_FIELD_NUMBER
      See Also:
    • CONSUMER_NETWORK_FIELD_NUMBER

      public static final int CONSUMER_NETWORK_FIELD_NUMBER
      See Also:
    • IP_ADDRESS_FIELD_NUMBER

      public static final int IP_ADDRESS_FIELD_NUMBER
      See Also:
    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
    • CONSUMER_NETWORK_STATUS_FIELD_NUMBER

      public static final int CONSUMER_NETWORK_STATUS_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Instance.PscAutoConnectionConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance.PscAutoConnectionConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance.PscAutoConnectionConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance.PscAutoConnectionConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance.PscAutoConnectionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance.PscAutoConnectionConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance.PscAutoConnectionConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Instance.PscAutoConnectionConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Instance.PscAutoConnectionConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Instance.PscAutoConnectionConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Instance.PscAutoConnectionConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Instance.PscAutoConnectionConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Instance.PscAutoConnectionConfig.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Instance.PscAutoConnectionConfig.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Instance.PscAutoConnectionConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Instance.PscAutoConnectionConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Instance.PscAutoConnectionConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<Instance.PscAutoConnectionConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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