Class PrivateServiceConnectConfig.Builder

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

public static final class PrivateServiceConnectConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<PrivateServiceConnectConfig.Builder> implements PrivateServiceConnectConfigOrBuilder
 Represents configuration for private service connect.
 
Protobuf type google.cloud.aiplatform.v1.PrivateServiceConnectConfig
  • 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<PrivateServiceConnectConfig.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<PrivateServiceConnectConfig.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<PrivateServiceConnectConfig.Builder>
    • getDefaultInstanceForType

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

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

      public PrivateServiceConnectConfig.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<PrivateServiceConnectConfig.Builder>
      Throws:
      IOException
    • getEnablePrivateServiceConnect

      public boolean getEnablePrivateServiceConnect()
       Required. If true, expose the IndexEndpoint via private service connect.
       
      bool enable_private_service_connect = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEnablePrivateServiceConnect in interface PrivateServiceConnectConfigOrBuilder
      Returns:
      The enablePrivateServiceConnect.
    • setEnablePrivateServiceConnect

      public PrivateServiceConnectConfig.Builder setEnablePrivateServiceConnect(boolean value)
       Required. If true, expose the IndexEndpoint via private service connect.
       
      bool enable_private_service_connect = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enablePrivateServiceConnect to set.
      Returns:
      This builder for chaining.
    • clearEnablePrivateServiceConnect

      public PrivateServiceConnectConfig.Builder clearEnablePrivateServiceConnect()
       Required. If true, expose the IndexEndpoint via private service connect.
       
      bool enable_private_service_connect = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getProjectAllowlistList

      public com.google.protobuf.ProtocolStringList getProjectAllowlistList()
       A list of Projects from which the forwarding rule will target the service
       attachment.
       
      repeated string project_allowlist = 2;
      Specified by:
      getProjectAllowlistList in interface PrivateServiceConnectConfigOrBuilder
      Returns:
      A list containing the projectAllowlist.
    • getProjectAllowlistCount

      public int getProjectAllowlistCount()
       A list of Projects from which the forwarding rule will target the service
       attachment.
       
      repeated string project_allowlist = 2;
      Specified by:
      getProjectAllowlistCount in interface PrivateServiceConnectConfigOrBuilder
      Returns:
      The count of projectAllowlist.
    • getProjectAllowlist

      public String getProjectAllowlist(int index)
       A list of Projects from which the forwarding rule will target the service
       attachment.
       
      repeated string project_allowlist = 2;
      Specified by:
      getProjectAllowlist in interface PrivateServiceConnectConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The projectAllowlist at the given index.
    • getProjectAllowlistBytes

      public com.google.protobuf.ByteString getProjectAllowlistBytes(int index)
       A list of Projects from which the forwarding rule will target the service
       attachment.
       
      repeated string project_allowlist = 2;
      Specified by:
      getProjectAllowlistBytes in interface PrivateServiceConnectConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the projectAllowlist at the given index.
    • setProjectAllowlist

      public PrivateServiceConnectConfig.Builder setProjectAllowlist(int index, String value)
       A list of Projects from which the forwarding rule will target the service
       attachment.
       
      repeated string project_allowlist = 2;
      Parameters:
      index - The index to set the value at.
      value - The projectAllowlist to set.
      Returns:
      This builder for chaining.
    • addProjectAllowlist

      public PrivateServiceConnectConfig.Builder addProjectAllowlist(String value)
       A list of Projects from which the forwarding rule will target the service
       attachment.
       
      repeated string project_allowlist = 2;
      Parameters:
      value - The projectAllowlist to add.
      Returns:
      This builder for chaining.
    • addAllProjectAllowlist

      public PrivateServiceConnectConfig.Builder addAllProjectAllowlist(Iterable<String> values)
       A list of Projects from which the forwarding rule will target the service
       attachment.
       
      repeated string project_allowlist = 2;
      Parameters:
      values - The projectAllowlist to add.
      Returns:
      This builder for chaining.
    • clearProjectAllowlist

      public PrivateServiceConnectConfig.Builder clearProjectAllowlist()
       A list of Projects from which the forwarding rule will target the service
       attachment.
       
      repeated string project_allowlist = 2;
      Returns:
      This builder for chaining.
    • addProjectAllowlistBytes

      public PrivateServiceConnectConfig.Builder addProjectAllowlistBytes(com.google.protobuf.ByteString value)
       A list of Projects from which the forwarding rule will target the service
       attachment.
       
      repeated string project_allowlist = 2;
      Parameters:
      value - The bytes of the projectAllowlist to add.
      Returns:
      This builder for chaining.
    • getPscAutomationConfigsList

      public List<PSCAutomationConfig> getPscAutomationConfigsList()
       Optional. List of projects and networks where the PSC endpoints will be
       created. This field is used by Online Inference(Prediction) only.
       
      repeated .google.cloud.aiplatform.v1.PSCAutomationConfig psc_automation_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPscAutomationConfigsList in interface PrivateServiceConnectConfigOrBuilder
    • getPscAutomationConfigsCount

      public int getPscAutomationConfigsCount()
       Optional. List of projects and networks where the PSC endpoints will be
       created. This field is used by Online Inference(Prediction) only.
       
      repeated .google.cloud.aiplatform.v1.PSCAutomationConfig psc_automation_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPscAutomationConfigsCount in interface PrivateServiceConnectConfigOrBuilder
    • getPscAutomationConfigs

      public PSCAutomationConfig getPscAutomationConfigs(int index)
       Optional. List of projects and networks where the PSC endpoints will be
       created. This field is used by Online Inference(Prediction) only.
       
      repeated .google.cloud.aiplatform.v1.PSCAutomationConfig psc_automation_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPscAutomationConfigs in interface PrivateServiceConnectConfigOrBuilder
    • setPscAutomationConfigs

      public PrivateServiceConnectConfig.Builder setPscAutomationConfigs(int index, PSCAutomationConfig value)
       Optional. List of projects and networks where the PSC endpoints will be
       created. This field is used by Online Inference(Prediction) only.
       
      repeated .google.cloud.aiplatform.v1.PSCAutomationConfig psc_automation_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setPscAutomationConfigs

      public PrivateServiceConnectConfig.Builder setPscAutomationConfigs(int index, PSCAutomationConfig.Builder builderForValue)
       Optional. List of projects and networks where the PSC endpoints will be
       created. This field is used by Online Inference(Prediction) only.
       
      repeated .google.cloud.aiplatform.v1.PSCAutomationConfig psc_automation_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addPscAutomationConfigs

      public PrivateServiceConnectConfig.Builder addPscAutomationConfigs(PSCAutomationConfig value)
       Optional. List of projects and networks where the PSC endpoints will be
       created. This field is used by Online Inference(Prediction) only.
       
      repeated .google.cloud.aiplatform.v1.PSCAutomationConfig psc_automation_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addPscAutomationConfigs

      public PrivateServiceConnectConfig.Builder addPscAutomationConfigs(int index, PSCAutomationConfig value)
       Optional. List of projects and networks where the PSC endpoints will be
       created. This field is used by Online Inference(Prediction) only.
       
      repeated .google.cloud.aiplatform.v1.PSCAutomationConfig psc_automation_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addPscAutomationConfigs

      public PrivateServiceConnectConfig.Builder addPscAutomationConfigs(PSCAutomationConfig.Builder builderForValue)
       Optional. List of projects and networks where the PSC endpoints will be
       created. This field is used by Online Inference(Prediction) only.
       
      repeated .google.cloud.aiplatform.v1.PSCAutomationConfig psc_automation_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addPscAutomationConfigs

      public PrivateServiceConnectConfig.Builder addPscAutomationConfigs(int index, PSCAutomationConfig.Builder builderForValue)
       Optional. List of projects and networks where the PSC endpoints will be
       created. This field is used by Online Inference(Prediction) only.
       
      repeated .google.cloud.aiplatform.v1.PSCAutomationConfig psc_automation_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addAllPscAutomationConfigs

      public PrivateServiceConnectConfig.Builder addAllPscAutomationConfigs(Iterable<? extends PSCAutomationConfig> values)
       Optional. List of projects and networks where the PSC endpoints will be
       created. This field is used by Online Inference(Prediction) only.
       
      repeated .google.cloud.aiplatform.v1.PSCAutomationConfig psc_automation_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearPscAutomationConfigs

      public PrivateServiceConnectConfig.Builder clearPscAutomationConfigs()
       Optional. List of projects and networks where the PSC endpoints will be
       created. This field is used by Online Inference(Prediction) only.
       
      repeated .google.cloud.aiplatform.v1.PSCAutomationConfig psc_automation_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
    • removePscAutomationConfigs

      public PrivateServiceConnectConfig.Builder removePscAutomationConfigs(int index)
       Optional. List of projects and networks where the PSC endpoints will be
       created. This field is used by Online Inference(Prediction) only.
       
      repeated .google.cloud.aiplatform.v1.PSCAutomationConfig psc_automation_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getPscAutomationConfigsBuilder

      public PSCAutomationConfig.Builder getPscAutomationConfigsBuilder(int index)
       Optional. List of projects and networks where the PSC endpoints will be
       created. This field is used by Online Inference(Prediction) only.
       
      repeated .google.cloud.aiplatform.v1.PSCAutomationConfig psc_automation_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getPscAutomationConfigsOrBuilder

      public PSCAutomationConfigOrBuilder getPscAutomationConfigsOrBuilder(int index)
       Optional. List of projects and networks where the PSC endpoints will be
       created. This field is used by Online Inference(Prediction) only.
       
      repeated .google.cloud.aiplatform.v1.PSCAutomationConfig psc_automation_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPscAutomationConfigsOrBuilder in interface PrivateServiceConnectConfigOrBuilder
    • getPscAutomationConfigsOrBuilderList

      public List<? extends PSCAutomationConfigOrBuilder> getPscAutomationConfigsOrBuilderList()
       Optional. List of projects and networks where the PSC endpoints will be
       created. This field is used by Online Inference(Prediction) only.
       
      repeated .google.cloud.aiplatform.v1.PSCAutomationConfig psc_automation_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPscAutomationConfigsOrBuilderList in interface PrivateServiceConnectConfigOrBuilder
    • addPscAutomationConfigsBuilder

      public PSCAutomationConfig.Builder addPscAutomationConfigsBuilder()
       Optional. List of projects and networks where the PSC endpoints will be
       created. This field is used by Online Inference(Prediction) only.
       
      repeated .google.cloud.aiplatform.v1.PSCAutomationConfig psc_automation_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addPscAutomationConfigsBuilder

      public PSCAutomationConfig.Builder addPscAutomationConfigsBuilder(int index)
       Optional. List of projects and networks where the PSC endpoints will be
       created. This field is used by Online Inference(Prediction) only.
       
      repeated .google.cloud.aiplatform.v1.PSCAutomationConfig psc_automation_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getPscAutomationConfigsBuilderList

      public List<PSCAutomationConfig.Builder> getPscAutomationConfigsBuilderList()
       Optional. List of projects and networks where the PSC endpoints will be
       created. This field is used by Online Inference(Prediction) only.
       
      repeated .google.cloud.aiplatform.v1.PSCAutomationConfig psc_automation_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getServiceAttachment

      public String getServiceAttachment()
       Output only. The name of the generated service attachment resource.
       This is only populated if the endpoint is deployed with
       PrivateServiceConnect.
       
      string service_attachment = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServiceAttachment in interface PrivateServiceConnectConfigOrBuilder
      Returns:
      The serviceAttachment.
    • getServiceAttachmentBytes

      public com.google.protobuf.ByteString getServiceAttachmentBytes()
       Output only. The name of the generated service attachment resource.
       This is only populated if the endpoint is deployed with
       PrivateServiceConnect.
       
      string service_attachment = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServiceAttachmentBytes in interface PrivateServiceConnectConfigOrBuilder
      Returns:
      The bytes for serviceAttachment.
    • setServiceAttachment

      public PrivateServiceConnectConfig.Builder setServiceAttachment(String value)
       Output only. The name of the generated service attachment resource.
       This is only populated if the endpoint is deployed with
       PrivateServiceConnect.
       
      string service_attachment = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The serviceAttachment to set.
      Returns:
      This builder for chaining.
    • clearServiceAttachment

      public PrivateServiceConnectConfig.Builder clearServiceAttachment()
       Output only. The name of the generated service attachment resource.
       This is only populated if the endpoint is deployed with
       PrivateServiceConnect.
       
      string service_attachment = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setServiceAttachmentBytes

      public PrivateServiceConnectConfig.Builder setServiceAttachmentBytes(com.google.protobuf.ByteString value)
       Output only. The name of the generated service attachment resource.
       This is only populated if the endpoint is deployed with
       PrivateServiceConnect.
       
      string service_attachment = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for serviceAttachment to set.
      Returns:
      This builder for chaining.