Package com.google.cloud.compute.v1
Class RouterNatSubnetworkToNat.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RouterNatSubnetworkToNat.Builder>
com.google.cloud.compute.v1.RouterNatSubnetworkToNat.Builder
- All Implemented Interfaces:
RouterNatSubnetworkToNatOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RouterNatSubnetworkToNat
public static final class RouterNatSubnetworkToNat.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RouterNatSubnetworkToNat.Builder>
implements RouterNatSubnetworkToNatOrBuilder
Defines the IP ranges that want to use NAT for a subnetwork.Protobuf type
google.cloud.compute.v1.RouterNatSubnetworkToNat-
Method Summary
Modifier and TypeMethodDescriptionaddAllSecondaryIpRangeNames(Iterable<String> values) A list of the secondary ranges of the Subnetwork that are allowed to use NAT.addAllSourceIpRangesToNat(Iterable<String> values) Specify the options for NAT ranges in the Subnetwork.addSecondaryIpRangeNames(String value) A list of the secondary ranges of the Subnetwork that are allowed to use NAT.addSecondaryIpRangeNamesBytes(com.google.protobuf.ByteString value) A list of the secondary ranges of the Subnetwork that are allowed to use NAT.addSourceIpRangesToNat(String value) Specify the options for NAT ranges in the Subnetwork.addSourceIpRangesToNatBytes(com.google.protobuf.ByteString value) Specify the options for NAT ranges in the Subnetwork.build()clear()URL for the subnetwork resource that will use NAT.A list of the secondary ranges of the Subnetwork that are allowed to use NAT.Specify the options for NAT ranges in the Subnetwork.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()URL for the subnetwork resource that will use NAT.com.google.protobuf.ByteStringURL for the subnetwork resource that will use NAT.getSecondaryIpRangeNames(int index) A list of the secondary ranges of the Subnetwork that are allowed to use NAT.com.google.protobuf.ByteStringgetSecondaryIpRangeNamesBytes(int index) A list of the secondary ranges of the Subnetwork that are allowed to use NAT.intA list of the secondary ranges of the Subnetwork that are allowed to use NAT.com.google.protobuf.ProtocolStringListA list of the secondary ranges of the Subnetwork that are allowed to use NAT.getSourceIpRangesToNat(int index) Specify the options for NAT ranges in the Subnetwork.com.google.protobuf.ByteStringgetSourceIpRangesToNatBytes(int index) Specify the options for NAT ranges in the Subnetwork.intSpecify the options for NAT ranges in the Subnetwork.com.google.protobuf.ProtocolStringListSpecify the options for NAT ranges in the Subnetwork.booleanhasName()URL for the subnetwork resource that will use NAT.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) URL for the subnetwork resource that will use NAT.setNameBytes(com.google.protobuf.ByteString value) URL for the subnetwork resource that will use NAT.setSecondaryIpRangeNames(int index, String value) A list of the secondary ranges of the Subnetwork that are allowed to use NAT.setSourceIpRangesToNat(int index, String value) Specify the options for NAT ranges in the Subnetwork.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<RouterNatSubnetworkToNat.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<RouterNatSubnetworkToNat.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<RouterNatSubnetworkToNat.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<RouterNatSubnetworkToNat.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RouterNatSubnetworkToNat.Builder>
-
mergeFrom
public RouterNatSubnetworkToNat.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<RouterNatSubnetworkToNat.Builder>- Throws:
IOException
-
hasName
public boolean hasName()URL for the subnetwork resource that will use NAT.
optional string name = 3373707;- Specified by:
hasNamein interfaceRouterNatSubnetworkToNatOrBuilder- Returns:
- Whether the name field is set.
-
getName
URL for the subnetwork resource that will use NAT.
optional string name = 3373707;- Specified by:
getNamein interfaceRouterNatSubnetworkToNatOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()URL for the subnetwork resource that will use NAT.
optional string name = 3373707;- Specified by:
getNameBytesin interfaceRouterNatSubnetworkToNatOrBuilder- Returns:
- The bytes for name.
-
setName
URL for the subnetwork resource that will use NAT.
optional string name = 3373707;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
URL for the subnetwork resource that will use NAT.
optional string name = 3373707;- Returns:
- This builder for chaining.
-
setNameBytes
URL for the subnetwork resource that will use NAT.
optional string name = 3373707;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getSecondaryIpRangeNamesList
public com.google.protobuf.ProtocolStringList getSecondaryIpRangeNamesList()A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat.
repeated string secondary_ip_range_names = 264315097;- Specified by:
getSecondaryIpRangeNamesListin interfaceRouterNatSubnetworkToNatOrBuilder- Returns:
- A list containing the secondaryIpRangeNames.
-
getSecondaryIpRangeNamesCount
public int getSecondaryIpRangeNamesCount()A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat.
repeated string secondary_ip_range_names = 264315097;- Specified by:
getSecondaryIpRangeNamesCountin interfaceRouterNatSubnetworkToNatOrBuilder- Returns:
- The count of secondaryIpRangeNames.
-
getSecondaryIpRangeNames
A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat.
repeated string secondary_ip_range_names = 264315097;- Specified by:
getSecondaryIpRangeNamesin interfaceRouterNatSubnetworkToNatOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The secondaryIpRangeNames at the given index.
-
getSecondaryIpRangeNamesBytes
public com.google.protobuf.ByteString getSecondaryIpRangeNamesBytes(int index) A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat.
repeated string secondary_ip_range_names = 264315097;- Specified by:
getSecondaryIpRangeNamesBytesin interfaceRouterNatSubnetworkToNatOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the secondaryIpRangeNames at the given index.
-
setSecondaryIpRangeNames
A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat.
repeated string secondary_ip_range_names = 264315097;- Parameters:
index- The index to set the value at.value- The secondaryIpRangeNames to set.- Returns:
- This builder for chaining.
-
addSecondaryIpRangeNames
A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat.
repeated string secondary_ip_range_names = 264315097;- Parameters:
value- The secondaryIpRangeNames to add.- Returns:
- This builder for chaining.
-
addAllSecondaryIpRangeNames
A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat.
repeated string secondary_ip_range_names = 264315097;- Parameters:
values- The secondaryIpRangeNames to add.- Returns:
- This builder for chaining.
-
clearSecondaryIpRangeNames
A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat.
repeated string secondary_ip_range_names = 264315097;- Returns:
- This builder for chaining.
-
addSecondaryIpRangeNamesBytes
public RouterNatSubnetworkToNat.Builder addSecondaryIpRangeNamesBytes(com.google.protobuf.ByteString value) A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat.
repeated string secondary_ip_range_names = 264315097;- Parameters:
value- The bytes of the secondaryIpRangeNames to add.- Returns:
- This builder for chaining.
-
getSourceIpRangesToNatList
public com.google.protobuf.ProtocolStringList getSourceIpRangesToNatList()Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] Check the SourceIpRangesToNat enum for the list of possible values.
repeated string source_ip_ranges_to_nat = 388310386;- Specified by:
getSourceIpRangesToNatListin interfaceRouterNatSubnetworkToNatOrBuilder- Returns:
- A list containing the sourceIpRangesToNat.
-
getSourceIpRangesToNatCount
public int getSourceIpRangesToNatCount()Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] Check the SourceIpRangesToNat enum for the list of possible values.
repeated string source_ip_ranges_to_nat = 388310386;- Specified by:
getSourceIpRangesToNatCountin interfaceRouterNatSubnetworkToNatOrBuilder- Returns:
- The count of sourceIpRangesToNat.
-
getSourceIpRangesToNat
Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] Check the SourceIpRangesToNat enum for the list of possible values.
repeated string source_ip_ranges_to_nat = 388310386;- Specified by:
getSourceIpRangesToNatin interfaceRouterNatSubnetworkToNatOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The sourceIpRangesToNat at the given index.
-
getSourceIpRangesToNatBytes
public com.google.protobuf.ByteString getSourceIpRangesToNatBytes(int index) Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] Check the SourceIpRangesToNat enum for the list of possible values.
repeated string source_ip_ranges_to_nat = 388310386;- Specified by:
getSourceIpRangesToNatBytesin interfaceRouterNatSubnetworkToNatOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the sourceIpRangesToNat at the given index.
-
setSourceIpRangesToNat
Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] Check the SourceIpRangesToNat enum for the list of possible values.
repeated string source_ip_ranges_to_nat = 388310386;- Parameters:
index- The index to set the value at.value- The sourceIpRangesToNat to set.- Returns:
- This builder for chaining.
-
addSourceIpRangesToNat
Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] Check the SourceIpRangesToNat enum for the list of possible values.
repeated string source_ip_ranges_to_nat = 388310386;- Parameters:
value- The sourceIpRangesToNat to add.- Returns:
- This builder for chaining.
-
addAllSourceIpRangesToNat
Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] Check the SourceIpRangesToNat enum for the list of possible values.
repeated string source_ip_ranges_to_nat = 388310386;- Parameters:
values- The sourceIpRangesToNat to add.- Returns:
- This builder for chaining.
-
clearSourceIpRangesToNat
Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] Check the SourceIpRangesToNat enum for the list of possible values.
repeated string source_ip_ranges_to_nat = 388310386;- Returns:
- This builder for chaining.
-
addSourceIpRangesToNatBytes
public RouterNatSubnetworkToNat.Builder addSourceIpRangesToNatBytes(com.google.protobuf.ByteString value) Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] Check the SourceIpRangesToNat enum for the list of possible values.
repeated string source_ip_ranges_to_nat = 388310386;- Parameters:
value- The bytes of the sourceIpRangesToNat to add.- Returns:
- This builder for chaining.
-