Class NatInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NatInfo.Builder>
com.google.cloud.networkmanagement.v1beta1.NatInfo.Builder
- All Implemented Interfaces:
NatInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- NatInfo
public static final class NatInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<NatInfo.Builder>
implements NatInfoOrBuilder
For display only. Metadata associated with NAT.Protobuf type
google.cloud.networkmanagement.v1beta1.NatInfo-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Type of Cloud NAT gateway.The name of Cloud NAT Gateway.URI of the network where NAT translation takes place.Destination IP address after NAT translation.Destination port after NAT translation.Source IP address after NAT translation.Source port after NAT translation.Destination IP address before NAT translation.Destination port before NAT translation.Source IP address before NAT translation.Source port before NAT translation.IP protocol in string format, for example: "TCP", "UDP", "ICMP".Uri of the Cloud Router.Type of NAT.Type of Cloud NAT gateway.intType of Cloud NAT gateway.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe name of Cloud NAT Gateway.com.google.protobuf.ByteStringThe name of Cloud NAT Gateway.URI of the network where NAT translation takes place.com.google.protobuf.ByteStringURI of the network where NAT translation takes place.Destination IP address after NAT translation.com.google.protobuf.ByteStringDestination IP address after NAT translation.intDestination port after NAT translation.Source IP address after NAT translation.com.google.protobuf.ByteStringSource IP address after NAT translation.intSource port after NAT translation.Destination IP address before NAT translation.com.google.protobuf.ByteStringDestination IP address before NAT translation.intDestination port before NAT translation.Source IP address before NAT translation.com.google.protobuf.ByteStringSource IP address before NAT translation.intSource port before NAT translation.IP protocol in string format, for example: "TCP", "UDP", "ICMP".com.google.protobuf.ByteStringIP protocol in string format, for example: "TCP", "UDP", "ICMP".Uri of the Cloud Router.com.google.protobuf.ByteStringUri of the Cloud Router.getType()Type of NAT.intType of NAT.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Type of Cloud NAT gateway.setCloudNatGatewayTypeValue(int value) Type of Cloud NAT gateway.setNatGatewayName(String value) The name of Cloud NAT Gateway.setNatGatewayNameBytes(com.google.protobuf.ByteString value) The name of Cloud NAT Gateway.setNetworkUri(String value) URI of the network where NAT translation takes place.setNetworkUriBytes(com.google.protobuf.ByteString value) URI of the network where NAT translation takes place.setNewDestinationIp(String value) Destination IP address after NAT translation.setNewDestinationIpBytes(com.google.protobuf.ByteString value) Destination IP address after NAT translation.setNewDestinationPort(int value) Destination port after NAT translation.setNewSourceIp(String value) Source IP address after NAT translation.setNewSourceIpBytes(com.google.protobuf.ByteString value) Source IP address after NAT translation.setNewSourcePort(int value) Source port after NAT translation.setOldDestinationIp(String value) Destination IP address before NAT translation.setOldDestinationIpBytes(com.google.protobuf.ByteString value) Destination IP address before NAT translation.setOldDestinationPort(int value) Destination port before NAT translation.setOldSourceIp(String value) Source IP address before NAT translation.setOldSourceIpBytes(com.google.protobuf.ByteString value) Source IP address before NAT translation.setOldSourcePort(int value) Source port before NAT translation.setProtocol(String value) IP protocol in string format, for example: "TCP", "UDP", "ICMP".setProtocolBytes(com.google.protobuf.ByteString value) IP protocol in string format, for example: "TCP", "UDP", "ICMP".setRouterUri(String value) Uri of the Cloud Router.setRouterUriBytes(com.google.protobuf.ByteString value) Uri of the Cloud Router.setType(NatInfo.Type value) Type of NAT.setTypeValue(int value) Type of NAT.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<NatInfo.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<NatInfo.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<NatInfo.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<NatInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<NatInfo.Builder>
-
mergeFrom
public NatInfo.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<NatInfo.Builder>- Throws:
IOException
-
getTypeValue
public int getTypeValue()Type of NAT.
.google.cloud.networkmanagement.v1beta1.NatInfo.Type type = 1;- Specified by:
getTypeValuein interfaceNatInfoOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
Type of NAT.
.google.cloud.networkmanagement.v1beta1.NatInfo.Type type = 1;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
Type of NAT.
.google.cloud.networkmanagement.v1beta1.NatInfo.Type type = 1;- Specified by:
getTypein interfaceNatInfoOrBuilder- Returns:
- The type.
-
setType
Type of NAT.
.google.cloud.networkmanagement.v1beta1.NatInfo.Type type = 1;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Type of NAT.
.google.cloud.networkmanagement.v1beta1.NatInfo.Type type = 1;- Returns:
- This builder for chaining.
-
getProtocol
IP protocol in string format, for example: "TCP", "UDP", "ICMP".
string protocol = 2;- Specified by:
getProtocolin interfaceNatInfoOrBuilder- Returns:
- The protocol.
-
getProtocolBytes
public com.google.protobuf.ByteString getProtocolBytes()IP protocol in string format, for example: "TCP", "UDP", "ICMP".
string protocol = 2;- Specified by:
getProtocolBytesin interfaceNatInfoOrBuilder- Returns:
- The bytes for protocol.
-
setProtocol
IP protocol in string format, for example: "TCP", "UDP", "ICMP".
string protocol = 2;- Parameters:
value- The protocol to set.- Returns:
- This builder for chaining.
-
clearProtocol
IP protocol in string format, for example: "TCP", "UDP", "ICMP".
string protocol = 2;- Returns:
- This builder for chaining.
-
setProtocolBytes
IP protocol in string format, for example: "TCP", "UDP", "ICMP".
string protocol = 2;- Parameters:
value- The bytes for protocol to set.- Returns:
- This builder for chaining.
-
getNetworkUri
URI of the network where NAT translation takes place.
string network_uri = 3;- Specified by:
getNetworkUriin interfaceNatInfoOrBuilder- Returns:
- The networkUri.
-
getNetworkUriBytes
public com.google.protobuf.ByteString getNetworkUriBytes()URI of the network where NAT translation takes place.
string network_uri = 3;- Specified by:
getNetworkUriBytesin interfaceNatInfoOrBuilder- Returns:
- The bytes for networkUri.
-
setNetworkUri
URI of the network where NAT translation takes place.
string network_uri = 3;- Parameters:
value- The networkUri to set.- Returns:
- This builder for chaining.
-
clearNetworkUri
URI of the network where NAT translation takes place.
string network_uri = 3;- Returns:
- This builder for chaining.
-
setNetworkUriBytes
URI of the network where NAT translation takes place.
string network_uri = 3;- Parameters:
value- The bytes for networkUri to set.- Returns:
- This builder for chaining.
-
getOldSourceIp
Source IP address before NAT translation.
string old_source_ip = 4;- Specified by:
getOldSourceIpin interfaceNatInfoOrBuilder- Returns:
- The oldSourceIp.
-
getOldSourceIpBytes
public com.google.protobuf.ByteString getOldSourceIpBytes()Source IP address before NAT translation.
string old_source_ip = 4;- Specified by:
getOldSourceIpBytesin interfaceNatInfoOrBuilder- Returns:
- The bytes for oldSourceIp.
-
setOldSourceIp
Source IP address before NAT translation.
string old_source_ip = 4;- Parameters:
value- The oldSourceIp to set.- Returns:
- This builder for chaining.
-
clearOldSourceIp
Source IP address before NAT translation.
string old_source_ip = 4;- Returns:
- This builder for chaining.
-
setOldSourceIpBytes
Source IP address before NAT translation.
string old_source_ip = 4;- Parameters:
value- The bytes for oldSourceIp to set.- Returns:
- This builder for chaining.
-
getNewSourceIp
Source IP address after NAT translation.
string new_source_ip = 5;- Specified by:
getNewSourceIpin interfaceNatInfoOrBuilder- Returns:
- The newSourceIp.
-
getNewSourceIpBytes
public com.google.protobuf.ByteString getNewSourceIpBytes()Source IP address after NAT translation.
string new_source_ip = 5;- Specified by:
getNewSourceIpBytesin interfaceNatInfoOrBuilder- Returns:
- The bytes for newSourceIp.
-
setNewSourceIp
Source IP address after NAT translation.
string new_source_ip = 5;- Parameters:
value- The newSourceIp to set.- Returns:
- This builder for chaining.
-
clearNewSourceIp
Source IP address after NAT translation.
string new_source_ip = 5;- Returns:
- This builder for chaining.
-
setNewSourceIpBytes
Source IP address after NAT translation.
string new_source_ip = 5;- Parameters:
value- The bytes for newSourceIp to set.- Returns:
- This builder for chaining.
-
getOldDestinationIp
Destination IP address before NAT translation.
string old_destination_ip = 6;- Specified by:
getOldDestinationIpin interfaceNatInfoOrBuilder- Returns:
- The oldDestinationIp.
-
getOldDestinationIpBytes
public com.google.protobuf.ByteString getOldDestinationIpBytes()Destination IP address before NAT translation.
string old_destination_ip = 6;- Specified by:
getOldDestinationIpBytesin interfaceNatInfoOrBuilder- Returns:
- The bytes for oldDestinationIp.
-
setOldDestinationIp
Destination IP address before NAT translation.
string old_destination_ip = 6;- Parameters:
value- The oldDestinationIp to set.- Returns:
- This builder for chaining.
-
clearOldDestinationIp
Destination IP address before NAT translation.
string old_destination_ip = 6;- Returns:
- This builder for chaining.
-
setOldDestinationIpBytes
Destination IP address before NAT translation.
string old_destination_ip = 6;- Parameters:
value- The bytes for oldDestinationIp to set.- Returns:
- This builder for chaining.
-
getNewDestinationIp
Destination IP address after NAT translation.
string new_destination_ip = 7;- Specified by:
getNewDestinationIpin interfaceNatInfoOrBuilder- Returns:
- The newDestinationIp.
-
getNewDestinationIpBytes
public com.google.protobuf.ByteString getNewDestinationIpBytes()Destination IP address after NAT translation.
string new_destination_ip = 7;- Specified by:
getNewDestinationIpBytesin interfaceNatInfoOrBuilder- Returns:
- The bytes for newDestinationIp.
-
setNewDestinationIp
Destination IP address after NAT translation.
string new_destination_ip = 7;- Parameters:
value- The newDestinationIp to set.- Returns:
- This builder for chaining.
-
clearNewDestinationIp
Destination IP address after NAT translation.
string new_destination_ip = 7;- Returns:
- This builder for chaining.
-
setNewDestinationIpBytes
Destination IP address after NAT translation.
string new_destination_ip = 7;- Parameters:
value- The bytes for newDestinationIp to set.- Returns:
- This builder for chaining.
-
getOldSourcePort
public int getOldSourcePort()Source port before NAT translation. Only valid when protocol is TCP or UDP.
int32 old_source_port = 8;- Specified by:
getOldSourcePortin interfaceNatInfoOrBuilder- Returns:
- The oldSourcePort.
-
setOldSourcePort
Source port before NAT translation. Only valid when protocol is TCP or UDP.
int32 old_source_port = 8;- Parameters:
value- The oldSourcePort to set.- Returns:
- This builder for chaining.
-
clearOldSourcePort
Source port before NAT translation. Only valid when protocol is TCP or UDP.
int32 old_source_port = 8;- Returns:
- This builder for chaining.
-
getNewSourcePort
public int getNewSourcePort()Source port after NAT translation. Only valid when protocol is TCP or UDP.
int32 new_source_port = 9;- Specified by:
getNewSourcePortin interfaceNatInfoOrBuilder- Returns:
- The newSourcePort.
-
setNewSourcePort
Source port after NAT translation. Only valid when protocol is TCP or UDP.
int32 new_source_port = 9;- Parameters:
value- The newSourcePort to set.- Returns:
- This builder for chaining.
-
clearNewSourcePort
Source port after NAT translation. Only valid when protocol is TCP or UDP.
int32 new_source_port = 9;- Returns:
- This builder for chaining.
-
getOldDestinationPort
public int getOldDestinationPort()Destination port before NAT translation. Only valid when protocol is TCP or UDP.
int32 old_destination_port = 10;- Specified by:
getOldDestinationPortin interfaceNatInfoOrBuilder- Returns:
- The oldDestinationPort.
-
setOldDestinationPort
Destination port before NAT translation. Only valid when protocol is TCP or UDP.
int32 old_destination_port = 10;- Parameters:
value- The oldDestinationPort to set.- Returns:
- This builder for chaining.
-
clearOldDestinationPort
Destination port before NAT translation. Only valid when protocol is TCP or UDP.
int32 old_destination_port = 10;- Returns:
- This builder for chaining.
-
getNewDestinationPort
public int getNewDestinationPort()Destination port after NAT translation. Only valid when protocol is TCP or UDP.
int32 new_destination_port = 11;- Specified by:
getNewDestinationPortin interfaceNatInfoOrBuilder- Returns:
- The newDestinationPort.
-
setNewDestinationPort
Destination port after NAT translation. Only valid when protocol is TCP or UDP.
int32 new_destination_port = 11;- Parameters:
value- The newDestinationPort to set.- Returns:
- This builder for chaining.
-
clearNewDestinationPort
Destination port after NAT translation. Only valid when protocol is TCP or UDP.
int32 new_destination_port = 11;- Returns:
- This builder for chaining.
-
getRouterUri
Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
string router_uri = 12;- Specified by:
getRouterUriin interfaceNatInfoOrBuilder- Returns:
- The routerUri.
-
getRouterUriBytes
public com.google.protobuf.ByteString getRouterUriBytes()Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
string router_uri = 12;- Specified by:
getRouterUriBytesin interfaceNatInfoOrBuilder- Returns:
- The bytes for routerUri.
-
setRouterUri
Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
string router_uri = 12;- Parameters:
value- The routerUri to set.- Returns:
- This builder for chaining.
-
clearRouterUri
Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
string router_uri = 12;- Returns:
- This builder for chaining.
-
setRouterUriBytes
Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
string router_uri = 12;- Parameters:
value- The bytes for routerUri to set.- Returns:
- This builder for chaining.
-
getNatGatewayName
The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
string nat_gateway_name = 13;- Specified by:
getNatGatewayNamein interfaceNatInfoOrBuilder- Returns:
- The natGatewayName.
-
getNatGatewayNameBytes
public com.google.protobuf.ByteString getNatGatewayNameBytes()The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
string nat_gateway_name = 13;- Specified by:
getNatGatewayNameBytesin interfaceNatInfoOrBuilder- Returns:
- The bytes for natGatewayName.
-
setNatGatewayName
The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
string nat_gateway_name = 13;- Parameters:
value- The natGatewayName to set.- Returns:
- This builder for chaining.
-
clearNatGatewayName
The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
string nat_gateway_name = 13;- Returns:
- This builder for chaining.
-
setNatGatewayNameBytes
The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
string nat_gateway_name = 13;- Parameters:
value- The bytes for natGatewayName to set.- Returns:
- This builder for chaining.
-
getCloudNatGatewayTypeValue
public int getCloudNatGatewayTypeValue()Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT.
.google.cloud.networkmanagement.v1beta1.NatInfo.CloudNatGatewayType cloud_nat_gateway_type = 14;- Specified by:
getCloudNatGatewayTypeValuein interfaceNatInfoOrBuilder- Returns:
- The enum numeric value on the wire for cloudNatGatewayType.
-
setCloudNatGatewayTypeValue
Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT.
.google.cloud.networkmanagement.v1beta1.NatInfo.CloudNatGatewayType cloud_nat_gateway_type = 14;- Parameters:
value- The enum numeric value on the wire for cloudNatGatewayType to set.- Returns:
- This builder for chaining.
-
getCloudNatGatewayType
Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT.
.google.cloud.networkmanagement.v1beta1.NatInfo.CloudNatGatewayType cloud_nat_gateway_type = 14;- Specified by:
getCloudNatGatewayTypein interfaceNatInfoOrBuilder- Returns:
- The cloudNatGatewayType.
-
setCloudNatGatewayType
Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT.
.google.cloud.networkmanagement.v1beta1.NatInfo.CloudNatGatewayType cloud_nat_gateway_type = 14;- Parameters:
value- The cloudNatGatewayType to set.- Returns:
- This builder for chaining.
-
clearCloudNatGatewayType
Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT.
.google.cloud.networkmanagement.v1beta1.NatInfo.CloudNatGatewayType cloud_nat_gateway_type = 14;- Returns:
- This builder for chaining.
-