Class RouterNatRuleAction.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<RouterNatRuleAction.Builder>
      • clear

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

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

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

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

        public RouterNatRuleAction.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<RouterNatRuleAction.Builder>
      • setField

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

        public RouterNatRuleAction.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<RouterNatRuleAction.Builder>
      • clearOneof

        public RouterNatRuleAction.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<RouterNatRuleAction.Builder>
      • setRepeatedField

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

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

        public RouterNatRuleAction.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<RouterNatRuleAction.Builder>
      • isInitialized

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

        public RouterNatRuleAction.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<RouterNatRuleAction.Builder>
        Throws:
        IOException
      • getSourceNatActiveIpsList

        public com.google.protobuf.ProtocolStringList getSourceNatActiveIpsList()
         A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid static external IP addresses assigned to the project. This field is used for public NAT.
         
        repeated string source_nat_active_ips = 210378229;
        Specified by:
        getSourceNatActiveIpsList in interface RouterNatRuleActionOrBuilder
        Returns:
        A list containing the sourceNatActiveIps.
      • getSourceNatActiveIpsCount

        public int getSourceNatActiveIpsCount()
         A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid static external IP addresses assigned to the project. This field is used for public NAT.
         
        repeated string source_nat_active_ips = 210378229;
        Specified by:
        getSourceNatActiveIpsCount in interface RouterNatRuleActionOrBuilder
        Returns:
        The count of sourceNatActiveIps.
      • getSourceNatActiveIps

        public String getSourceNatActiveIps​(int index)
         A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid static external IP addresses assigned to the project. This field is used for public NAT.
         
        repeated string source_nat_active_ips = 210378229;
        Specified by:
        getSourceNatActiveIps in interface RouterNatRuleActionOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The sourceNatActiveIps at the given index.
      • getSourceNatActiveIpsBytes

        public com.google.protobuf.ByteString getSourceNatActiveIpsBytes​(int index)
         A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid static external IP addresses assigned to the project. This field is used for public NAT.
         
        repeated string source_nat_active_ips = 210378229;
        Specified by:
        getSourceNatActiveIpsBytes in interface RouterNatRuleActionOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the sourceNatActiveIps at the given index.
      • setSourceNatActiveIps

        public RouterNatRuleAction.Builder setSourceNatActiveIps​(int index,
                                                                 String value)
         A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid static external IP addresses assigned to the project. This field is used for public NAT.
         
        repeated string source_nat_active_ips = 210378229;
        Parameters:
        index - The index to set the value at.
        value - The sourceNatActiveIps to set.
        Returns:
        This builder for chaining.
      • addSourceNatActiveIps

        public RouterNatRuleAction.Builder addSourceNatActiveIps​(String value)
         A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid static external IP addresses assigned to the project. This field is used for public NAT.
         
        repeated string source_nat_active_ips = 210378229;
        Parameters:
        value - The sourceNatActiveIps to add.
        Returns:
        This builder for chaining.
      • addAllSourceNatActiveIps

        public RouterNatRuleAction.Builder addAllSourceNatActiveIps​(Iterable<String> values)
         A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid static external IP addresses assigned to the project. This field is used for public NAT.
         
        repeated string source_nat_active_ips = 210378229;
        Parameters:
        values - The sourceNatActiveIps to add.
        Returns:
        This builder for chaining.
      • clearSourceNatActiveIps

        public RouterNatRuleAction.Builder clearSourceNatActiveIps()
         A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid static external IP addresses assigned to the project. This field is used for public NAT.
         
        repeated string source_nat_active_ips = 210378229;
        Returns:
        This builder for chaining.
      • addSourceNatActiveIpsBytes

        public RouterNatRuleAction.Builder addSourceNatActiveIpsBytes​(com.google.protobuf.ByteString value)
         A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid static external IP addresses assigned to the project. This field is used for public NAT.
         
        repeated string source_nat_active_ips = 210378229;
        Parameters:
        value - The bytes of the sourceNatActiveIps to add.
        Returns:
        This builder for chaining.
      • getSourceNatDrainIpsList

        public com.google.protobuf.ProtocolStringList getSourceNatDrainIpsList()
         A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule only. This field is used for public NAT.
         
        repeated string source_nat_drain_ips = 340812451;
        Specified by:
        getSourceNatDrainIpsList in interface RouterNatRuleActionOrBuilder
        Returns:
        A list containing the sourceNatDrainIps.
      • getSourceNatDrainIpsCount

        public int getSourceNatDrainIpsCount()
         A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule only. This field is used for public NAT.
         
        repeated string source_nat_drain_ips = 340812451;
        Specified by:
        getSourceNatDrainIpsCount in interface RouterNatRuleActionOrBuilder
        Returns:
        The count of sourceNatDrainIps.
      • getSourceNatDrainIps

        public String getSourceNatDrainIps​(int index)
         A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule only. This field is used for public NAT.
         
        repeated string source_nat_drain_ips = 340812451;
        Specified by:
        getSourceNatDrainIps in interface RouterNatRuleActionOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The sourceNatDrainIps at the given index.
      • getSourceNatDrainIpsBytes

        public com.google.protobuf.ByteString getSourceNatDrainIpsBytes​(int index)
         A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule only. This field is used for public NAT.
         
        repeated string source_nat_drain_ips = 340812451;
        Specified by:
        getSourceNatDrainIpsBytes in interface RouterNatRuleActionOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the sourceNatDrainIps at the given index.
      • setSourceNatDrainIps

        public RouterNatRuleAction.Builder setSourceNatDrainIps​(int index,
                                                                String value)
         A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule only. This field is used for public NAT.
         
        repeated string source_nat_drain_ips = 340812451;
        Parameters:
        index - The index to set the value at.
        value - The sourceNatDrainIps to set.
        Returns:
        This builder for chaining.
      • addSourceNatDrainIps

        public RouterNatRuleAction.Builder addSourceNatDrainIps​(String value)
         A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule only. This field is used for public NAT.
         
        repeated string source_nat_drain_ips = 340812451;
        Parameters:
        value - The sourceNatDrainIps to add.
        Returns:
        This builder for chaining.
      • addAllSourceNatDrainIps

        public RouterNatRuleAction.Builder addAllSourceNatDrainIps​(Iterable<String> values)
         A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule only. This field is used for public NAT.
         
        repeated string source_nat_drain_ips = 340812451;
        Parameters:
        values - The sourceNatDrainIps to add.
        Returns:
        This builder for chaining.
      • clearSourceNatDrainIps

        public RouterNatRuleAction.Builder clearSourceNatDrainIps()
         A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule only. This field is used for public NAT.
         
        repeated string source_nat_drain_ips = 340812451;
        Returns:
        This builder for chaining.
      • addSourceNatDrainIpsBytes

        public RouterNatRuleAction.Builder addSourceNatDrainIpsBytes​(com.google.protobuf.ByteString value)
         A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule only. This field is used for public NAT.
         
        repeated string source_nat_drain_ips = 340812451;
        Parameters:
        value - The bytes of the sourceNatDrainIps to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final RouterNatRuleAction.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<RouterNatRuleAction.Builder>
      • mergeUnknownFields

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