Package com.google.cloud.compute.v1
Class RouterNatRuleAction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RouterNatRuleAction.Builder>
com.google.cloud.compute.v1.RouterNatRuleAction.Builder
- All Implemented Interfaces:
RouterNatRuleActionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RouterNatRuleAction
public static final class RouterNatRuleAction.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RouterNatRuleAction.Builder>
implements RouterNatRuleActionOrBuilder
Protobuf type
google.cloud.compute.v1.RouterNatRuleAction-
Method Summary
Modifier and TypeMethodDescriptionaddAllSourceNatActiveIps(Iterable<String> values) A list of URLs of the IP resources used for this NAT rule.addAllSourceNatActiveRanges(Iterable<String> values) A list of URLs of the subnetworks used as source ranges for this NAT Rule.addAllSourceNatDrainIps(Iterable<String> values) A list of URLs of the IP resources to be drained.addAllSourceNatDrainRanges(Iterable<String> values) A list of URLs of subnetworks representing source ranges to be drained.addSourceNatActiveIps(String value) A list of URLs of the IP resources used for this NAT rule.addSourceNatActiveIpsBytes(com.google.protobuf.ByteString value) A list of URLs of the IP resources used for this NAT rule.addSourceNatActiveRanges(String value) A list of URLs of the subnetworks used as source ranges for this NAT Rule.addSourceNatActiveRangesBytes(com.google.protobuf.ByteString value) A list of URLs of the subnetworks used as source ranges for this NAT Rule.addSourceNatDrainIps(String value) A list of URLs of the IP resources to be drained.addSourceNatDrainIpsBytes(com.google.protobuf.ByteString value) A list of URLs of the IP resources to be drained.addSourceNatDrainRanges(String value) A list of URLs of subnetworks representing source ranges to be drained.addSourceNatDrainRangesBytes(com.google.protobuf.ByteString value) A list of URLs of subnetworks representing source ranges to be drained.build()clear()A list of URLs of the IP resources used for this NAT rule.A list of URLs of the subnetworks used as source ranges for this NAT Rule.A list of URLs of the IP resources to be drained.A list of URLs of subnetworks representing source ranges to be drained.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetSourceNatActiveIps(int index) A list of URLs of the IP resources used for this NAT rule.com.google.protobuf.ByteStringgetSourceNatActiveIpsBytes(int index) A list of URLs of the IP resources used for this NAT rule.intA list of URLs of the IP resources used for this NAT rule.com.google.protobuf.ProtocolStringListA list of URLs of the IP resources used for this NAT rule.getSourceNatActiveRanges(int index) A list of URLs of the subnetworks used as source ranges for this NAT Rule.com.google.protobuf.ByteStringgetSourceNatActiveRangesBytes(int index) A list of URLs of the subnetworks used as source ranges for this NAT Rule.intA list of URLs of the subnetworks used as source ranges for this NAT Rule.com.google.protobuf.ProtocolStringListA list of URLs of the subnetworks used as source ranges for this NAT Rule.getSourceNatDrainIps(int index) A list of URLs of the IP resources to be drained.com.google.protobuf.ByteStringgetSourceNatDrainIpsBytes(int index) A list of URLs of the IP resources to be drained.intA list of URLs of the IP resources to be drained.com.google.protobuf.ProtocolStringListA list of URLs of the IP resources to be drained.getSourceNatDrainRanges(int index) A list of URLs of subnetworks representing source ranges to be drained.com.google.protobuf.ByteStringgetSourceNatDrainRangesBytes(int index) A list of URLs of subnetworks representing source ranges to be drained.intA list of URLs of subnetworks representing source ranges to be drained.com.google.protobuf.ProtocolStringListA list of URLs of subnetworks representing source ranges to be drained.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(RouterNatRuleAction other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setSourceNatActiveIps(int index, String value) A list of URLs of the IP resources used for this NAT rule.setSourceNatActiveRanges(int index, String value) A list of URLs of the subnetworks used as source ranges for this NAT Rule.setSourceNatDrainIps(int index, String value) A list of URLs of the IP resources to be drained.setSourceNatDrainRanges(int index, String value) A list of URLs of subnetworks representing source ranges to be drained.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RouterNatRuleAction.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RouterNatRuleAction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RouterNatRuleAction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RouterNatRuleAction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RouterNatRuleAction.Builder>
-
mergeFrom
public RouterNatRuleAction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getSourceNatActiveIpsListin interfaceRouterNatRuleActionOrBuilder- 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:
getSourceNatActiveIpsCountin interfaceRouterNatRuleActionOrBuilder- Returns:
- The count of sourceNatActiveIps.
-
getSourceNatActiveIps
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:
getSourceNatActiveIpsin interfaceRouterNatRuleActionOrBuilder- 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:
getSourceNatActiveIpsBytesin interfaceRouterNatRuleActionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the sourceNatActiveIps at the given index.
-
setSourceNatActiveIps
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
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
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
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
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.
-
getSourceNatActiveRangesList
public com.google.protobuf.ProtocolStringList getSourceNatActiveRangesList()A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT. This field is used for private NAT.
repeated string source_nat_active_ranges = 190556269;- Specified by:
getSourceNatActiveRangesListin interfaceRouterNatRuleActionOrBuilder- Returns:
- A list containing the sourceNatActiveRanges.
-
getSourceNatActiveRangesCount
public int getSourceNatActiveRangesCount()A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT. This field is used for private NAT.
repeated string source_nat_active_ranges = 190556269;- Specified by:
getSourceNatActiveRangesCountin interfaceRouterNatRuleActionOrBuilder- Returns:
- The count of sourceNatActiveRanges.
-
getSourceNatActiveRanges
A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT. This field is used for private NAT.
repeated string source_nat_active_ranges = 190556269;- Specified by:
getSourceNatActiveRangesin interfaceRouterNatRuleActionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The sourceNatActiveRanges at the given index.
-
getSourceNatActiveRangesBytes
public com.google.protobuf.ByteString getSourceNatActiveRangesBytes(int index) A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT. This field is used for private NAT.
repeated string source_nat_active_ranges = 190556269;- Specified by:
getSourceNatActiveRangesBytesin interfaceRouterNatRuleActionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the sourceNatActiveRanges at the given index.
-
setSourceNatActiveRanges
A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT. This field is used for private NAT.
repeated string source_nat_active_ranges = 190556269;- Parameters:
index- The index to set the value at.value- The sourceNatActiveRanges to set.- Returns:
- This builder for chaining.
-
addSourceNatActiveRanges
A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT. This field is used for private NAT.
repeated string source_nat_active_ranges = 190556269;- Parameters:
value- The sourceNatActiveRanges to add.- Returns:
- This builder for chaining.
-
addAllSourceNatActiveRanges
A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT. This field is used for private NAT.
repeated string source_nat_active_ranges = 190556269;- Parameters:
values- The sourceNatActiveRanges to add.- Returns:
- This builder for chaining.
-
clearSourceNatActiveRanges
A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT. This field is used for private NAT.
repeated string source_nat_active_ranges = 190556269;- Returns:
- This builder for chaining.
-
addSourceNatActiveRangesBytes
public RouterNatRuleAction.Builder addSourceNatActiveRangesBytes(com.google.protobuf.ByteString value) A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT. This field is used for private NAT.
repeated string source_nat_active_ranges = 190556269;- Parameters:
value- The bytes of the sourceNatActiveRanges 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:
getSourceNatDrainIpsListin interfaceRouterNatRuleActionOrBuilder- 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:
getSourceNatDrainIpsCountin interfaceRouterNatRuleActionOrBuilder- Returns:
- The count of sourceNatDrainIps.
-
getSourceNatDrainIps
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:
getSourceNatDrainIpsin interfaceRouterNatRuleActionOrBuilder- 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:
getSourceNatDrainIpsBytesin interfaceRouterNatRuleActionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the sourceNatDrainIps at the given index.
-
setSourceNatDrainIps
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
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
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
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
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.
-
getSourceNatDrainRangesList
public com.google.protobuf.ProtocolStringList getSourceNatDrainRangesList()A list of URLs of subnetworks representing source ranges to be drained. This is only supported on patch/update, and these subnetworks must have previously been used as active ranges in this NAT Rule. This field is used for private NAT.
repeated string source_nat_drain_ranges = 84802815;- Specified by:
getSourceNatDrainRangesListin interfaceRouterNatRuleActionOrBuilder- Returns:
- A list containing the sourceNatDrainRanges.
-
getSourceNatDrainRangesCount
public int getSourceNatDrainRangesCount()A list of URLs of subnetworks representing source ranges to be drained. This is only supported on patch/update, and these subnetworks must have previously been used as active ranges in this NAT Rule. This field is used for private NAT.
repeated string source_nat_drain_ranges = 84802815;- Specified by:
getSourceNatDrainRangesCountin interfaceRouterNatRuleActionOrBuilder- Returns:
- The count of sourceNatDrainRanges.
-
getSourceNatDrainRanges
A list of URLs of subnetworks representing source ranges to be drained. This is only supported on patch/update, and these subnetworks must have previously been used as active ranges in this NAT Rule. This field is used for private NAT.
repeated string source_nat_drain_ranges = 84802815;- Specified by:
getSourceNatDrainRangesin interfaceRouterNatRuleActionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The sourceNatDrainRanges at the given index.
-
getSourceNatDrainRangesBytes
public com.google.protobuf.ByteString getSourceNatDrainRangesBytes(int index) A list of URLs of subnetworks representing source ranges to be drained. This is only supported on patch/update, and these subnetworks must have previously been used as active ranges in this NAT Rule. This field is used for private NAT.
repeated string source_nat_drain_ranges = 84802815;- Specified by:
getSourceNatDrainRangesBytesin interfaceRouterNatRuleActionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the sourceNatDrainRanges at the given index.
-
setSourceNatDrainRanges
A list of URLs of subnetworks representing source ranges to be drained. This is only supported on patch/update, and these subnetworks must have previously been used as active ranges in this NAT Rule. This field is used for private NAT.
repeated string source_nat_drain_ranges = 84802815;- Parameters:
index- The index to set the value at.value- The sourceNatDrainRanges to set.- Returns:
- This builder for chaining.
-
addSourceNatDrainRanges
A list of URLs of subnetworks representing source ranges to be drained. This is only supported on patch/update, and these subnetworks must have previously been used as active ranges in this NAT Rule. This field is used for private NAT.
repeated string source_nat_drain_ranges = 84802815;- Parameters:
value- The sourceNatDrainRanges to add.- Returns:
- This builder for chaining.
-
addAllSourceNatDrainRanges
A list of URLs of subnetworks representing source ranges to be drained. This is only supported on patch/update, and these subnetworks must have previously been used as active ranges in this NAT Rule. This field is used for private NAT.
repeated string source_nat_drain_ranges = 84802815;- Parameters:
values- The sourceNatDrainRanges to add.- Returns:
- This builder for chaining.
-
clearSourceNatDrainRanges
A list of URLs of subnetworks representing source ranges to be drained. This is only supported on patch/update, and these subnetworks must have previously been used as active ranges in this NAT Rule. This field is used for private NAT.
repeated string source_nat_drain_ranges = 84802815;- Returns:
- This builder for chaining.
-
addSourceNatDrainRangesBytes
public RouterNatRuleAction.Builder addSourceNatDrainRangesBytes(com.google.protobuf.ByteString value) A list of URLs of subnetworks representing source ranges to be drained. This is only supported on patch/update, and these subnetworks must have previously been used as active ranges in this NAT Rule. This field is used for private NAT.
repeated string source_nat_drain_ranges = 84802815;- Parameters:
value- The bytes of the sourceNatDrainRanges to add.- Returns:
- This builder for chaining.
-