Class Instance.PrivateConfig.Builder

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

public static final class Instance.PrivateConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<Instance.PrivateConfig.Builder> implements Instance.PrivateConfigOrBuilder
 PrivateConfig includes settings for private instance.
 
Protobuf type google.cloud.securesourcemanager.v1.Instance.PrivateConfig
  • 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.PrivateConfig.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.PrivateConfig.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.PrivateConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public Instance.PrivateConfig.Builder setIsPrivate(boolean value)
       Required. Immutable. Indicate if it's private instance.
       
      bool is_private = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The isPrivate to set.
      Returns:
      This builder for chaining.
    • clearIsPrivate

      public Instance.PrivateConfig.Builder clearIsPrivate()
       Required. Immutable. Indicate if it's private instance.
       
      bool is_private = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • 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.
    • setCaPool

      public Instance.PrivateConfig.Builder setCaPool(String value)
       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) = { ... }
      Parameters:
      value - The caPool to set.
      Returns:
      This builder for chaining.
    • clearCaPool

      public Instance.PrivateConfig.Builder clearCaPool()
       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) = { ... }
      Returns:
      This builder for chaining.
    • setCaPoolBytes

      public Instance.PrivateConfig.Builder setCaPoolBytes(com.google.protobuf.ByteString value)
       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) = { ... }
      Parameters:
      value - The bytes for caPool to set.
      Returns:
      This builder for chaining.
    • 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.
    • setHttpServiceAttachment

      public Instance.PrivateConfig.Builder setHttpServiceAttachment(String value)
       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) = { ... }
      Parameters:
      value - The httpServiceAttachment to set.
      Returns:
      This builder for chaining.
    • clearHttpServiceAttachment

      public Instance.PrivateConfig.Builder clearHttpServiceAttachment()
       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) = { ... }
      Returns:
      This builder for chaining.
    • setHttpServiceAttachmentBytes

      public Instance.PrivateConfig.Builder setHttpServiceAttachmentBytes(com.google.protobuf.ByteString value)
       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) = { ... }
      Parameters:
      value - The bytes for httpServiceAttachment to set.
      Returns:
      This builder for chaining.
    • 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.
    • setSshServiceAttachment

      public Instance.PrivateConfig.Builder setSshServiceAttachment(String value)
       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) = { ... }
      Parameters:
      value - The sshServiceAttachment to set.
      Returns:
      This builder for chaining.
    • clearSshServiceAttachment

      public Instance.PrivateConfig.Builder clearSshServiceAttachment()
       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) = { ... }
      Returns:
      This builder for chaining.
    • setSshServiceAttachmentBytes

      public Instance.PrivateConfig.Builder setSshServiceAttachmentBytes(com.google.protobuf.ByteString value)
       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) = { ... }
      Parameters:
      value - The bytes for sshServiceAttachment to set.
      Returns:
      This builder for chaining.
    • 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.
    • setPscAllowedProjects

      public Instance.PrivateConfig.Builder setPscAllowedProjects(int index, String value)
       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];
      Parameters:
      index - The index to set the value at.
      value - The pscAllowedProjects to set.
      Returns:
      This builder for chaining.
    • addPscAllowedProjects

      public Instance.PrivateConfig.Builder addPscAllowedProjects(String value)
       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];
      Parameters:
      value - The pscAllowedProjects to add.
      Returns:
      This builder for chaining.
    • addAllPscAllowedProjects

      public Instance.PrivateConfig.Builder addAllPscAllowedProjects(Iterable<String> values)
       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];
      Parameters:
      values - The pscAllowedProjects to add.
      Returns:
      This builder for chaining.
    • clearPscAllowedProjects

      public Instance.PrivateConfig.Builder clearPscAllowedProjects()
       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];
      Returns:
      This builder for chaining.
    • addPscAllowedProjectsBytes

      public Instance.PrivateConfig.Builder addPscAllowedProjectsBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes of the pscAllowedProjects to add.
      Returns:
      This builder for chaining.
    • 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.
    • setCustomHostConfig

       Optional. Custom host config for the instance.
       
      .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL];
    • setCustomHostConfig

       Optional. Custom host config for the instance.
       
      .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL];
    • mergeCustomHostConfig

       Optional. Custom host config for the instance.
       
      .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL];
    • clearCustomHostConfig

      public Instance.PrivateConfig.Builder clearCustomHostConfig()
       Optional. Custom host config for the instance.
       
      .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getCustomHostConfigBuilder

      public Instance.PrivateConfig.CustomHostConfig.Builder getCustomHostConfigBuilder()
       Optional. Custom host config for the instance.
       
      .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL];
    • 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