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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<RouterNatRuleAction.Builder> implements RouterNatRuleActionOrBuilder
Protobuf typegoogle.cloud.compute.v1.RouterNatRuleAction
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RouterNatRuleAction.BuilderaddAllSourceNatActiveIps(Iterable<String> values)A list of URLs of the IP resources used for this NAT rule.RouterNatRuleAction.BuilderaddAllSourceNatDrainIps(Iterable<String> values)A list of URLs of the IP resources to be drained.RouterNatRuleAction.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RouterNatRuleAction.BuilderaddSourceNatActiveIps(String value)A list of URLs of the IP resources used for this NAT rule.RouterNatRuleAction.BuilderaddSourceNatActiveIpsBytes(com.google.protobuf.ByteString value)A list of URLs of the IP resources used for this NAT rule.RouterNatRuleAction.BuilderaddSourceNatDrainIps(String value)A list of URLs of the IP resources to be drained.RouterNatRuleAction.BuilderaddSourceNatDrainIpsBytes(com.google.protobuf.ByteString value)A list of URLs of the IP resources to be drained.RouterNatRuleActionbuild()RouterNatRuleActionbuildPartial()RouterNatRuleAction.Builderclear()RouterNatRuleAction.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RouterNatRuleAction.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RouterNatRuleAction.BuilderclearSourceNatActiveIps()A list of URLs of the IP resources used for this NAT rule.RouterNatRuleAction.BuilderclearSourceNatDrainIps()A list of URLs of the IP resources to be drained.RouterNatRuleAction.Builderclone()RouterNatRuleActiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetSourceNatActiveIps(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.intgetSourceNatActiveIpsCount()A list of URLs of the IP resources used for this NAT rule.com.google.protobuf.ProtocolStringListgetSourceNatActiveIpsList()A list of URLs of the IP resources used for this NAT rule.StringgetSourceNatDrainIps(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.intgetSourceNatDrainIpsCount()A list of URLs of the IP resources to be drained.com.google.protobuf.ProtocolStringListgetSourceNatDrainIpsList()A list of URLs of the IP resources to be drained.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RouterNatRuleAction.BuildermergeFrom(RouterNatRuleAction other)RouterNatRuleAction.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RouterNatRuleAction.BuildermergeFrom(com.google.protobuf.Message other)RouterNatRuleAction.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RouterNatRuleAction.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RouterNatRuleAction.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RouterNatRuleAction.BuildersetSourceNatActiveIps(int index, String value)A list of URLs of the IP resources used for this NAT rule.RouterNatRuleAction.BuildersetSourceNatDrainIps(int index, String value)A list of URLs of the IP resources to be drained.RouterNatRuleAction.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRuleAction.Builder>
-
clear
public RouterNatRuleAction.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<RouterNatRuleAction.Builder>
-
getDefaultInstanceForType
public RouterNatRuleAction getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RouterNatRuleAction build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RouterNatRuleAction buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RouterNatRuleAction.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRuleAction.Builder>
-
setField
public RouterNatRuleAction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRuleAction.Builder>
-
clearField
public RouterNatRuleAction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRuleAction.Builder>
-
clearOneof
public RouterNatRuleAction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRuleAction.Builder>
-
setRepeatedField
public RouterNatRuleAction.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRuleAction.Builder>
-
addRepeatedField
public RouterNatRuleAction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRuleAction.Builder>
-
mergeFrom
public RouterNatRuleAction.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RouterNatRuleAction.Builder>
-
mergeFrom
public RouterNatRuleAction.Builder mergeFrom(RouterNatRuleAction other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
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
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:
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
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:
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
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:
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRuleAction.Builder>
-
mergeUnknownFields
public final RouterNatRuleAction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRuleAction.Builder>
-
-