Send feedback
Class RouterNatRule (1.26.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.26.0 keyboard_arrow_down
public final class RouterNatRule extends GeneratedMessageV3 implements RouterNatRuleOrBuilder
Protobuf type google.cloud.compute.v1.RouterNatRule
Static Fields
ACTION_FIELD_NUMBER
public static final int ACTION_FIELD_NUMBER
Field Value Type Description int
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value Type Description int
MATCH_FIELD_NUMBER
public static final int MATCH_FIELD_NUMBER
Field Value Type Description int
RULE_NUMBER_FIELD_NUMBER
public static final int RULE_NUMBER_FIELD_NUMBER
Field Value Type Description int
Static Methods
getDefaultInstance()
public static RouterNatRule getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static RouterNatRule . Builder newBuilder ()
newBuilder(RouterNatRule prototype)
public static RouterNatRule . Builder newBuilder ( RouterNatRule prototype )
public static RouterNatRule parseDelimitedFrom ( InputStream input )
public static RouterNatRule parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static RouterNatRule parseFrom ( byte [] data )
Parameter Name Description data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RouterNatRule parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static RouterNatRule parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RouterNatRule parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static RouterNatRule parseFrom ( CodedInputStream input )
public static RouterNatRule parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static RouterNatRule parseFrom ( InputStream input )
public static RouterNatRule parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static RouterNatRule parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RouterNatRule parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<RouterNatRule> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter Name Description obj
Object
Overrides
getAction()
public RouterNatRuleAction getAction ()
The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;
getActionOrBuilder()
public RouterNatRuleActionOrBuilder getActionOrBuilder ()
The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;
getDefaultInstanceForType()
public RouterNatRule getDefaultInstanceForType ()
getDescription()
public String getDescription ()
An optional description of this rule.
optional string description = 422937596;
Returns Type Description String
The description.
getDescriptionBytes()
public ByteString getDescriptionBytes ()
An optional description of this rule.
optional string description = 422937596;
Returns Type Description ByteString
The bytes for description.
getMatch()
CEL expression that specifies the match condition that egress traffic from a VM is evaluated against. If it evaluates to true, the corresponding action
is enforced. The following examples are valid match expressions for public NAT: "inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')" "destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'" The following example is a valid match expression for private NAT: "nexthop.hub == 'https://networkconnectivity.googleapis.com/v1alpha1/projects/my-project/global/hub/hub-1 '"
optional string match = 103668165;
Returns Type Description String
The match.
getMatchBytes()
public ByteString getMatchBytes ()
CEL expression that specifies the match condition that egress traffic from a VM is evaluated against. If it evaluates to true, the corresponding action
is enforced. The following examples are valid match expressions for public NAT: "inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')" "destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'" The following example is a valid match expression for private NAT: "nexthop.hub == 'https://networkconnectivity.googleapis.com/v1alpha1/projects/my-project/global/hub/hub-1 '"
optional string match = 103668165;
Returns Type Description ByteString
The bytes for match.
getParserForType()
public Parser<RouterNatRule> getParserForType ()
Overrides
getRuleNumber()
public int getRuleNumber ()
An integer uniquely identifying a rule in the list. The rule number must be a positive value between 0 and 65000, and must be unique among rules within a NAT.
optional uint32 rule_number = 535211500;
Returns Type Description int
The ruleNumber.
getSerializedSize()
public int getSerializedSize ()
Returns Type Description int
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Overrides
hasAction()
public boolean hasAction ()
The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;
Returns Type Description boolean
Whether the action field is set.
hasDescription()
public boolean hasDescription ()
An optional description of this rule.
optional string description = 422937596;
Returns Type Description boolean
Whether the description field is set.
hasMatch()
public boolean hasMatch ()
CEL expression that specifies the match condition that egress traffic from a VM is evaluated against. If it evaluates to true, the corresponding action
is enforced. The following examples are valid match expressions for public NAT: "inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')" "destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'" The following example is a valid match expression for private NAT: "nexthop.hub == 'https://networkconnectivity.googleapis.com/v1alpha1/projects/my-project/global/hub/hub-1 '"
optional string match = 103668165;
Returns Type Description boolean
Whether the match field is set.
hasRuleNumber()
public boolean hasRuleNumber ()
An integer uniquely identifying a rule in the list. The rule number must be a positive value between 0 and 65000, and must be unique among rules within a NAT.
optional uint32 rule_number = 535211500;
Returns Type Description boolean
Whether the ruleNumber field is set.
hashCode()
Returns Type Description int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public RouterNatRule . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RouterNatRule . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Overrides
toBuilder()
public RouterNatRule . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-04 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-10-04 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-04 UTC."]]