Class PrivateServiceConnectConfig.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

        public PrivateServiceConnectConfig 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • mergeUnknownFields

        public final PrivateServiceConnectConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PrivateServiceConnectConfig.Builder>