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
google.cloud.compute.v1.RouterNatRuleAction
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RouterNatRuleAction.Builder
addAllSourceNatActiveIps(Iterable<String> values)
A list of URLs of the IP resources used for this NAT rule.RouterNatRuleAction.Builder
addAllSourceNatDrainIps(Iterable<String> values)
A list of URLs of the IP resources to be drained.RouterNatRuleAction.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RouterNatRuleAction.Builder
addSourceNatActiveIps(String value)
A list of URLs of the IP resources used for this NAT rule.RouterNatRuleAction.Builder
addSourceNatActiveIpsBytes(com.google.protobuf.ByteString value)
A list of URLs of the IP resources used for this NAT rule.RouterNatRuleAction.Builder
addSourceNatDrainIps(String value)
A list of URLs of the IP resources to be drained.RouterNatRuleAction.Builder
addSourceNatDrainIpsBytes(com.google.protobuf.ByteString value)
A list of URLs of the IP resources to be drained.RouterNatRuleAction
build()
RouterNatRuleAction
buildPartial()
RouterNatRuleAction.Builder
clear()
RouterNatRuleAction.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
RouterNatRuleAction.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
RouterNatRuleAction.Builder
clearSourceNatActiveIps()
A list of URLs of the IP resources used for this NAT rule.RouterNatRuleAction.Builder
clearSourceNatDrainIps()
A list of URLs of the IP resources to be drained.RouterNatRuleAction.Builder
clone()
RouterNatRuleAction
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getSourceNatActiveIps(int index)
A list of URLs of the IP resources used for this NAT rule.com.google.protobuf.ByteString
getSourceNatActiveIpsBytes(int index)
A list of URLs of the IP resources used for this NAT rule.int
getSourceNatActiveIpsCount()
A list of URLs of the IP resources used for this NAT rule.com.google.protobuf.ProtocolStringList
getSourceNatActiveIpsList()
A list of URLs of the IP resources used for this NAT rule.String
getSourceNatDrainIps(int index)
A list of URLs of the IP resources to be drained.com.google.protobuf.ByteString
getSourceNatDrainIpsBytes(int index)
A list of URLs of the IP resources to be drained.int
getSourceNatDrainIpsCount()
A list of URLs of the IP resources to be drained.com.google.protobuf.ProtocolStringList
getSourceNatDrainIpsList()
A list of URLs of the IP resources to be drained.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
RouterNatRuleAction.Builder
mergeFrom(RouterNatRuleAction other)
RouterNatRuleAction.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RouterNatRuleAction.Builder
mergeFrom(com.google.protobuf.Message other)
RouterNatRuleAction.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
RouterNatRuleAction.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RouterNatRuleAction.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
RouterNatRuleAction.Builder
setSourceNatActiveIps(int index, String value)
A list of URLs of the IP resources used for this NAT rule.RouterNatRuleAction.Builder
setSourceNatDrainIps(int index, String value)
A list of URLs of the IP resources to be drained.RouterNatRuleAction.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRuleAction.Builder>
-
clear
public RouterNatRuleAction.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRuleAction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRuleAction.Builder>
-
getDefaultInstanceForType
public RouterNatRuleAction getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RouterNatRuleAction build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RouterNatRuleAction buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RouterNatRuleAction.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRuleAction.Builder>
-
setField
public RouterNatRuleAction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRuleAction.Builder>
-
clearField
public RouterNatRuleAction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRuleAction.Builder>
-
clearOneof
public RouterNatRuleAction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRuleAction.Builder>
-
addRepeatedField
public RouterNatRuleAction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRuleAction.Builder>
-
mergeFrom
public RouterNatRuleAction.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RouterNatRuleAction.Builder>
-
mergeFrom
public RouterNatRuleAction.Builder mergeFrom(RouterNatRuleAction other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getSourceNatActiveIpsList
in 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:
getSourceNatActiveIpsCount
in 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:
getSourceNatActiveIps
in 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:
getSourceNatActiveIpsBytes
in 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:
getSourceNatDrainIpsList
in 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:
getSourceNatDrainIpsCount
in 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:
getSourceNatDrainIps
in 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:
getSourceNatDrainIpsBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRuleAction.Builder>
-
mergeUnknownFields
public final RouterNatRuleAction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRuleAction.Builder>
-
-