Class Instance.PscInstanceConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig
All Implemented Interfaces:
Instance.PscInstanceConfigOrBuilder, 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.PscInstanceConfig extends com.google.protobuf.GeneratedMessage implements Instance.PscInstanceConfigOrBuilder
 PscInstanceConfig contains PSC related configuration at an
 instance level.
 
Protobuf type google.cloud.alloydb.v1beta.Instance.PscInstanceConfig
See Also:
  • Field Details

    • ALLOWED_CONSUMER_PROJECTS_FIELD_NUMBER

      public static final int ALLOWED_CONSUMER_PROJECTS_FIELD_NUMBER
      See Also:
    • PSC_DNS_NAME_FIELD_NUMBER

      public static final int PSC_DNS_NAME_FIELD_NUMBER
      See Also:
    • PSC_INTERFACE_CONFIGS_FIELD_NUMBER

      public static final int PSC_INTERFACE_CONFIGS_FIELD_NUMBER
      See Also:
    • PSC_AUTO_CONNECTIONS_FIELD_NUMBER

      public static final int PSC_AUTO_CONNECTIONS_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
    • getServiceAttachmentLink

      public String getServiceAttachmentLink()
       Output only. The service attachment created when Private
       Service Connect (PSC) is enabled for the instance.
       The name of the resource will be in the format of
       `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
       
      string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getServiceAttachmentLink in interface Instance.PscInstanceConfigOrBuilder
      Returns:
      The serviceAttachmentLink.
    • getServiceAttachmentLinkBytes

      public com.google.protobuf.ByteString getServiceAttachmentLinkBytes()
       Output only. The service attachment created when Private
       Service Connect (PSC) is enabled for the instance.
       The name of the resource will be in the format of
       `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
       
      string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getServiceAttachmentLinkBytes in interface Instance.PscInstanceConfigOrBuilder
      Returns:
      The bytes for serviceAttachmentLink.
    • getAllowedConsumerProjectsList

      public com.google.protobuf.ProtocolStringList getAllowedConsumerProjectsList()
       Optional. List of consumer projects that are allowed to create
       PSC endpoints to service-attachments to this instance.
       
      repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowedConsumerProjectsList in interface Instance.PscInstanceConfigOrBuilder
      Returns:
      A list containing the allowedConsumerProjects.
    • getAllowedConsumerProjectsCount

      public int getAllowedConsumerProjectsCount()
       Optional. List of consumer projects that are allowed to create
       PSC endpoints to service-attachments to this instance.
       
      repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowedConsumerProjectsCount in interface Instance.PscInstanceConfigOrBuilder
      Returns:
      The count of allowedConsumerProjects.
    • getAllowedConsumerProjects

      public String getAllowedConsumerProjects(int index)
       Optional. List of consumer projects that are allowed to create
       PSC endpoints to service-attachments to this instance.
       
      repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowedConsumerProjects in interface Instance.PscInstanceConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The allowedConsumerProjects at the given index.
    • getAllowedConsumerProjectsBytes

      public com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index)
       Optional. List of consumer projects that are allowed to create
       PSC endpoints to service-attachments to this instance.
       
      repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowedConsumerProjectsBytes in interface Instance.PscInstanceConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allowedConsumerProjects at the given index.
    • getPscDnsName

      public String getPscDnsName()
       Output only. The DNS name of the instance for PSC connectivity.
       Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
       
      string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPscDnsName in interface Instance.PscInstanceConfigOrBuilder
      Returns:
      The pscDnsName.
    • getPscDnsNameBytes

      public com.google.protobuf.ByteString getPscDnsNameBytes()
       Output only. The DNS name of the instance for PSC connectivity.
       Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
       
      string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPscDnsNameBytes in interface Instance.PscInstanceConfigOrBuilder
      Returns:
      The bytes for pscDnsName.
    • getPscInterfaceConfigsList

      public List<Instance.PscInterfaceConfig> getPscInterfaceConfigsList()
       Optional. Configurations for setting up PSC interfaces attached to the
       instance which are used for outbound connectivity. Only primary instances
       can have PSC interface attached. Currently we only support 0 or 1 PSC
       interface.
       
      repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPscInterfaceConfigsList in interface Instance.PscInstanceConfigOrBuilder
    • getPscInterfaceConfigsOrBuilderList

      public List<? extends Instance.PscInterfaceConfigOrBuilder> getPscInterfaceConfigsOrBuilderList()
       Optional. Configurations for setting up PSC interfaces attached to the
       instance which are used for outbound connectivity. Only primary instances
       can have PSC interface attached. Currently we only support 0 or 1 PSC
       interface.
       
      repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPscInterfaceConfigsOrBuilderList in interface Instance.PscInstanceConfigOrBuilder
    • getPscInterfaceConfigsCount

      public int getPscInterfaceConfigsCount()
       Optional. Configurations for setting up PSC interfaces attached to the
       instance which are used for outbound connectivity. Only primary instances
       can have PSC interface attached. Currently we only support 0 or 1 PSC
       interface.
       
      repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPscInterfaceConfigsCount in interface Instance.PscInstanceConfigOrBuilder
    • getPscInterfaceConfigs

      public Instance.PscInterfaceConfig getPscInterfaceConfigs(int index)
       Optional. Configurations for setting up PSC interfaces attached to the
       instance which are used for outbound connectivity. Only primary instances
       can have PSC interface attached. Currently we only support 0 or 1 PSC
       interface.
       
      repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPscInterfaceConfigs in interface Instance.PscInstanceConfigOrBuilder
    • getPscInterfaceConfigsOrBuilder

      public Instance.PscInterfaceConfigOrBuilder getPscInterfaceConfigsOrBuilder(int index)
       Optional. Configurations for setting up PSC interfaces attached to the
       instance which are used for outbound connectivity. Only primary instances
       can have PSC interface attached. Currently we only support 0 or 1 PSC
       interface.
       
      repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPscInterfaceConfigsOrBuilder in interface Instance.PscInstanceConfigOrBuilder
    • getPscAutoConnectionsList

      public List<Instance.PscAutoConnectionConfig> getPscAutoConnectionsList()
       Optional. Configurations for setting up PSC service automation.
       
      repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPscAutoConnectionsList in interface Instance.PscInstanceConfigOrBuilder
    • getPscAutoConnectionsOrBuilderList

      public List<? extends Instance.PscAutoConnectionConfigOrBuilder> getPscAutoConnectionsOrBuilderList()
       Optional. Configurations for setting up PSC service automation.
       
      repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPscAutoConnectionsOrBuilderList in interface Instance.PscInstanceConfigOrBuilder
    • getPscAutoConnectionsCount

      public int getPscAutoConnectionsCount()
       Optional. Configurations for setting up PSC service automation.
       
      repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPscAutoConnectionsCount in interface Instance.PscInstanceConfigOrBuilder
    • getPscAutoConnections

      public Instance.PscAutoConnectionConfig getPscAutoConnections(int index)
       Optional. Configurations for setting up PSC service automation.
       
      repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPscAutoConnections in interface Instance.PscInstanceConfigOrBuilder
    • getPscAutoConnectionsOrBuilder

      public Instance.PscAutoConnectionConfigOrBuilder getPscAutoConnectionsOrBuilder(int index)
       Optional. Configurations for setting up PSC service automation.
       
      repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPscAutoConnectionsOrBuilder in interface Instance.PscInstanceConfigOrBuilder
    • 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.PscInstanceConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static Instance.PscInstanceConfig 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.PscInstanceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

      public static Instance.PscInstanceConfig.Builder newBuilder(Instance.PscInstanceConfig prototype)
    • toBuilder

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

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

      public static Instance.PscInstanceConfig getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Instance.PscInstanceConfig> 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.PscInstanceConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder