public final class RouterNatRule extends GeneratedMessageV3 implements RouterNatRuleOrBuilder
Protobuf type google.cloud.compute.v1.RouterNatRule
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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 == '//networkconnectivity.googleapis.com/projects/my-project/locations/global/hubs/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 == '//networkconnectivity.googleapis.com/projects/my-project/locations/global/hubs/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
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 == '//networkconnectivity.googleapis.com/projects/my-project/locations/global/hubs/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)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public RouterNatRule.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides