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
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
MATCH_FIELD_NUMBER
public static final int MATCH_FIELD_NUMBER
Field Value
RULE_NUMBER_FIELD_NUMBER
public static final int RULE_NUMBER_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static RouterNatRule getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static RouterNatRule.Builder newBuilder()
Returns
newBuilder(RouterNatRule prototype)
public static RouterNatRule.Builder newBuilder(RouterNatRule prototype)
Parameter
Returns
public static RouterNatRule parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static RouterNatRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static RouterNatRule parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RouterNatRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static RouterNatRule parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RouterNatRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RouterNatRule parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static RouterNatRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RouterNatRule parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static RouterNatRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static RouterNatRule parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RouterNatRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<RouterNatRule> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAction()
public RouterNatRuleAction getAction()
The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;
Returns
getActionOrBuilder()
public RouterNatRuleActionOrBuilder getActionOrBuilder()
The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;
Returns
getDefaultInstanceForType()
public RouterNatRule getDefaultInstanceForType()
Returns
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 == '/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 == '/projects/my-project/global/hub/hub-1'"
optional string match = 103668165;
Returns
getParserForType()
public Parser<RouterNatRule> getParserForType()
Returns
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
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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 == '/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
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public RouterNatRule.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RouterNatRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public RouterNatRule.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions