Class PrivateConnectivityRule.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, PrivateConnectivityRuleOrBuilder, java.lang.Cloneable
    Enclosing class:
    PrivateConnectivityRule

    public static final class PrivateConnectivityRule.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<PrivateConnectivityRule.Builder>
    implements PrivateConnectivityRuleOrBuilder
     A private connectivity rule allows connections from a specific private vpc only.
     
    Protobuf type temporal.api.cloud.connectivityrule.v1.PrivateConnectivityRule
    • 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<PrivateConnectivityRule.Builder>
      • clear

        public PrivateConnectivityRule.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.GeneratedMessageV3.Builder<PrivateConnectivityRule.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<PrivateConnectivityRule.Builder>
      • getDefaultInstanceForType

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

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

        public PrivateConnectivityRule buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public PrivateConnectivityRule.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<PrivateConnectivityRule.Builder>
      • setField

        public PrivateConnectivityRule.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<PrivateConnectivityRule.Builder>
      • clearField

        public PrivateConnectivityRule.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<PrivateConnectivityRule.Builder>
      • clearOneof

        public PrivateConnectivityRule.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PrivateConnectivityRule.Builder>
      • setRepeatedField

        public PrivateConnectivityRule.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                int index,
                                                                java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PrivateConnectivityRule.Builder>
      • addRepeatedField

        public PrivateConnectivityRule.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PrivateConnectivityRule.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PrivateConnectivityRule.Builder>
      • mergeFrom

        public PrivateConnectivityRule.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws java.io.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<PrivateConnectivityRule.Builder>
        Throws:
        java.io.IOException
      • getConnectionId

        public java.lang.String getConnectionId()
         Connection id provided to enforce the private connectivity. This is required both by AWS and GCP.
         
        string connection_id = 1;
        Specified by:
        getConnectionId in interface PrivateConnectivityRuleOrBuilder
        Returns:
        The connectionId.
      • getConnectionIdBytes

        public com.google.protobuf.ByteString getConnectionIdBytes()
         Connection id provided to enforce the private connectivity. This is required both by AWS and GCP.
         
        string connection_id = 1;
        Specified by:
        getConnectionIdBytes in interface PrivateConnectivityRuleOrBuilder
        Returns:
        The bytes for connectionId.
      • setConnectionId

        public PrivateConnectivityRule.Builder setConnectionId​(java.lang.String value)
         Connection id provided to enforce the private connectivity. This is required both by AWS and GCP.
         
        string connection_id = 1;
        Parameters:
        value - The connectionId to set.
        Returns:
        This builder for chaining.
      • clearConnectionId

        public PrivateConnectivityRule.Builder clearConnectionId()
         Connection id provided to enforce the private connectivity. This is required both by AWS and GCP.
         
        string connection_id = 1;
        Returns:
        This builder for chaining.
      • setConnectionIdBytes

        public PrivateConnectivityRule.Builder setConnectionIdBytes​(com.google.protobuf.ByteString value)
         Connection id provided to enforce the private connectivity. This is required both by AWS and GCP.
         
        string connection_id = 1;
        Parameters:
        value - The bytes for connectionId to set.
        Returns:
        This builder for chaining.
      • getGcpProjectId

        public java.lang.String getGcpProjectId()
         For GCP private connectivity service, GCP needs both GCP project id and the Private Service Connect Connection IDs
         AWS only needs the connection_id
         
        string gcp_project_id = 2;
        Specified by:
        getGcpProjectId in interface PrivateConnectivityRuleOrBuilder
        Returns:
        The gcpProjectId.
      • getGcpProjectIdBytes

        public com.google.protobuf.ByteString getGcpProjectIdBytes()
         For GCP private connectivity service, GCP needs both GCP project id and the Private Service Connect Connection IDs
         AWS only needs the connection_id
         
        string gcp_project_id = 2;
        Specified by:
        getGcpProjectIdBytes in interface PrivateConnectivityRuleOrBuilder
        Returns:
        The bytes for gcpProjectId.
      • setGcpProjectId

        public PrivateConnectivityRule.Builder setGcpProjectId​(java.lang.String value)
         For GCP private connectivity service, GCP needs both GCP project id and the Private Service Connect Connection IDs
         AWS only needs the connection_id
         
        string gcp_project_id = 2;
        Parameters:
        value - The gcpProjectId to set.
        Returns:
        This builder for chaining.
      • clearGcpProjectId

        public PrivateConnectivityRule.Builder clearGcpProjectId()
         For GCP private connectivity service, GCP needs both GCP project id and the Private Service Connect Connection IDs
         AWS only needs the connection_id
         
        string gcp_project_id = 2;
        Returns:
        This builder for chaining.
      • setGcpProjectIdBytes

        public PrivateConnectivityRule.Builder setGcpProjectIdBytes​(com.google.protobuf.ByteString value)
         For GCP private connectivity service, GCP needs both GCP project id and the Private Service Connect Connection IDs
         AWS only needs the connection_id
         
        string gcp_project_id = 2;
        Parameters:
        value - The bytes for gcpProjectId to set.
        Returns:
        This builder for chaining.
      • getRegion

        public java.lang.String getRegion()
         The region of the connectivity rule. This should align with the namespace.
         Example: "aws-us-west-2"
         
        string region = 3;
        Specified by:
        getRegion in interface PrivateConnectivityRuleOrBuilder
        Returns:
        The region.
      • getRegionBytes

        public com.google.protobuf.ByteString getRegionBytes()
         The region of the connectivity rule. This should align with the namespace.
         Example: "aws-us-west-2"
         
        string region = 3;
        Specified by:
        getRegionBytes in interface PrivateConnectivityRuleOrBuilder
        Returns:
        The bytes for region.
      • setRegion

        public PrivateConnectivityRule.Builder setRegion​(java.lang.String value)
         The region of the connectivity rule. This should align with the namespace.
         Example: "aws-us-west-2"
         
        string region = 3;
        Parameters:
        value - The region to set.
        Returns:
        This builder for chaining.
      • clearRegion

        public PrivateConnectivityRule.Builder clearRegion()
         The region of the connectivity rule. This should align with the namespace.
         Example: "aws-us-west-2"
         
        string region = 3;
        Returns:
        This builder for chaining.
      • setRegionBytes

        public PrivateConnectivityRule.Builder setRegionBytes​(com.google.protobuf.ByteString value)
         The region of the connectivity rule. This should align with the namespace.
         Example: "aws-us-west-2"
         
        string region = 3;
        Parameters:
        value - The bytes for region to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

        public final PrivateConnectivityRule.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<PrivateConnectivityRule.Builder>