Class Instance.PrivateConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig
All Implemented Interfaces:
Instance.PrivateConfigOrBuilder, 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.PrivateConfig extends com.google.protobuf.GeneratedMessage implements Instance.PrivateConfigOrBuilder
 PrivateConfig includes settings for private instance.
 
Protobuf type google.cloud.securesourcemanager.v1.Instance.PrivateConfig
See Also:
  • Field Details

    • IS_PRIVATE_FIELD_NUMBER

      public static final int IS_PRIVATE_FIELD_NUMBER
      See Also:
    • CA_POOL_FIELD_NUMBER

      public static final int CA_POOL_FIELD_NUMBER
      See Also:
    • HTTP_SERVICE_ATTACHMENT_FIELD_NUMBER

      public static final int HTTP_SERVICE_ATTACHMENT_FIELD_NUMBER
      See Also:
    • SSH_SERVICE_ATTACHMENT_FIELD_NUMBER

      public static final int SSH_SERVICE_ATTACHMENT_FIELD_NUMBER
      See Also:
    • PSC_ALLOWED_PROJECTS_FIELD_NUMBER

      public static final int PSC_ALLOWED_PROJECTS_FIELD_NUMBER
      See Also:
    • CUSTOM_HOST_CONFIG_FIELD_NUMBER

      public static final int CUSTOM_HOST_CONFIG_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
    • getIsPrivate

      public boolean getIsPrivate()
       Required. Immutable. Indicate if it's private instance.
       
      bool is_private = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIsPrivate in interface Instance.PrivateConfigOrBuilder
      Returns:
      The isPrivate.
    • getCaPool

      public String getCaPool()
       Optional. Immutable. CA pool resource, resource must in the format of
       `projects/{project}/locations/{location}/caPools/{ca_pool}`.
       
      string ca_pool = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCaPool in interface Instance.PrivateConfigOrBuilder
      Returns:
      The caPool.
    • getCaPoolBytes

      public com.google.protobuf.ByteString getCaPoolBytes()
       Optional. Immutable. CA pool resource, resource must in the format of
       `projects/{project}/locations/{location}/caPools/{ca_pool}`.
       
      string ca_pool = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCaPoolBytes in interface Instance.PrivateConfigOrBuilder
      Returns:
      The bytes for caPool.
    • getHttpServiceAttachment

      public String getHttpServiceAttachment()
       Output only. Service Attachment for HTTP, resource is in the format of
       `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
       
      string http_service_attachment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getHttpServiceAttachment in interface Instance.PrivateConfigOrBuilder
      Returns:
      The httpServiceAttachment.
    • getHttpServiceAttachmentBytes

      public com.google.protobuf.ByteString getHttpServiceAttachmentBytes()
       Output only. Service Attachment for HTTP, resource is in the format of
       `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
       
      string http_service_attachment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getHttpServiceAttachmentBytes in interface Instance.PrivateConfigOrBuilder
      Returns:
      The bytes for httpServiceAttachment.
    • getSshServiceAttachment

      public String getSshServiceAttachment()
       Output only. Service Attachment for SSH, resource is in the format of
       `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
       
      string ssh_service_attachment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getSshServiceAttachment in interface Instance.PrivateConfigOrBuilder
      Returns:
      The sshServiceAttachment.
    • getSshServiceAttachmentBytes

      public com.google.protobuf.ByteString getSshServiceAttachmentBytes()
       Output only. Service Attachment for SSH, resource is in the format of
       `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
       
      string ssh_service_attachment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getSshServiceAttachmentBytes in interface Instance.PrivateConfigOrBuilder
      Returns:
      The bytes for sshServiceAttachment.
    • getPscAllowedProjectsList

      public com.google.protobuf.ProtocolStringList getPscAllowedProjectsList()
       Optional. Additional allowed projects for setting up PSC connections.
       Instance host project is automatically allowed and does not need to be
       included in this list.
       
      repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPscAllowedProjectsList in interface Instance.PrivateConfigOrBuilder
      Returns:
      A list containing the pscAllowedProjects.
    • getPscAllowedProjectsCount

      public int getPscAllowedProjectsCount()
       Optional. Additional allowed projects for setting up PSC connections.
       Instance host project is automatically allowed and does not need to be
       included in this list.
       
      repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPscAllowedProjectsCount in interface Instance.PrivateConfigOrBuilder
      Returns:
      The count of pscAllowedProjects.
    • getPscAllowedProjects

      public String getPscAllowedProjects(int index)
       Optional. Additional allowed projects for setting up PSC connections.
       Instance host project is automatically allowed and does not need to be
       included in this list.
       
      repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPscAllowedProjects in interface Instance.PrivateConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The pscAllowedProjects at the given index.
    • getPscAllowedProjectsBytes

      public com.google.protobuf.ByteString getPscAllowedProjectsBytes(int index)
       Optional. Additional allowed projects for setting up PSC connections.
       Instance host project is automatically allowed and does not need to be
       included in this list.
       
      repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPscAllowedProjectsBytes in interface Instance.PrivateConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the pscAllowedProjects at the given index.
    • hasCustomHostConfig

      public boolean hasCustomHostConfig()
       Optional. Custom host config for the instance.
       
      .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCustomHostConfig in interface Instance.PrivateConfigOrBuilder
      Returns:
      Whether the customHostConfig field is set.
    • getCustomHostConfig

      public Instance.PrivateConfig.CustomHostConfig getCustomHostConfig()
       Optional. Custom host config for the instance.
       
      .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomHostConfig in interface Instance.PrivateConfigOrBuilder
      Returns:
      The customHostConfig.
    • getCustomHostConfigOrBuilder

      public Instance.PrivateConfig.CustomHostConfigOrBuilder getCustomHostConfigOrBuilder()
       Optional. Custom host config for the instance.
       
      .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomHostConfigOrBuilder in interface Instance.PrivateConfigOrBuilder
    • 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.PrivateConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static Instance.PrivateConfig getDefaultInstance()
    • parser

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

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