Package com.google.cloud.compute.v1
Class RouterNatRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RouterNatRule.Builder>
com.google.cloud.compute.v1.RouterNatRule.Builder
- All Implemented Interfaces:
RouterNatRuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RouterNatRule
public static final class RouterNatRule.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RouterNatRule.Builder>
implements RouterNatRuleOrBuilder
Protobuf type
google.cloud.compute.v1.RouterNatRule-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The action to be enforced for traffic that matches this rule.An optional description of this rule.CEL expression that specifies the match condition that egress traffic from a VM is evaluated against.An integer uniquely identifying a rule in the list.The action to be enforced for traffic that matches this rule.The action to be enforced for traffic that matches this rule.The action to be enforced for traffic that matches this rule.An optional description of this rule.com.google.protobuf.ByteStringAn optional description of this rule.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetMatch()CEL expression that specifies the match condition that egress traffic from a VM is evaluated against.com.google.protobuf.ByteStringCEL expression that specifies the match condition that egress traffic from a VM is evaluated against.intAn integer uniquely identifying a rule in the list.booleanThe action to be enforced for traffic that matches this rule.booleanAn optional description of this rule.booleanhasMatch()CEL expression that specifies the match condition that egress traffic from a VM is evaluated against.booleanAn integer uniquely identifying a rule in the list.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeAction(RouterNatRuleAction value) The action to be enforced for traffic that matches this rule.mergeFrom(RouterNatRule other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAction(RouterNatRuleAction value) The action to be enforced for traffic that matches this rule.setAction(RouterNatRuleAction.Builder builderForValue) The action to be enforced for traffic that matches this rule.setDescription(String value) An optional description of this rule.setDescriptionBytes(com.google.protobuf.ByteString value) An optional description of this rule.CEL expression that specifies the match condition that egress traffic from a VM is evaluated against.setMatchBytes(com.google.protobuf.ByteString value) CEL expression that specifies the match condition that egress traffic from a VM is evaluated against.setRuleNumber(int value) An integer uniquely identifying a rule in the list.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<RouterNatRule.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<RouterNatRule.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<RouterNatRule.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<RouterNatRule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RouterNatRule.Builder>
-
mergeFrom
public RouterNatRule.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<RouterNatRule.Builder>- Throws:
IOException
-
hasAction
public boolean hasAction()The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;- Specified by:
hasActionin interfaceRouterNatRuleOrBuilder- Returns:
- Whether the action field is set.
-
getAction
The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;- Specified by:
getActionin interfaceRouterNatRuleOrBuilder- Returns:
- The action.
-
setAction
The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878; -
setAction
The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878; -
mergeAction
The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878; -
clearAction
The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878; -
getActionBuilder
The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878; -
getActionOrBuilder
The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;- Specified by:
getActionOrBuilderin interfaceRouterNatRuleOrBuilder
-
hasDescription
public boolean hasDescription()An optional description of this rule.
optional string description = 422937596;- Specified by:
hasDescriptionin interfaceRouterNatRuleOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
An optional description of this rule.
optional string description = 422937596;- Specified by:
getDescriptionin interfaceRouterNatRuleOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()An optional description of this rule.
optional string description = 422937596;- Specified by:
getDescriptionBytesin interfaceRouterNatRuleOrBuilder- Returns:
- The bytes for description.
-
setDescription
An optional description of this rule.
optional string description = 422937596;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
An optional description of this rule.
optional string description = 422937596;- Returns:
- This builder for chaining.
-
setDescriptionBytes
An optional description of this rule.
optional string description = 422937596;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasMatchin interfaceRouterNatRuleOrBuilder- Returns:
- Whether the match field is set.
-
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;- Specified by:
getMatchin interfaceRouterNatRuleOrBuilder- Returns:
- The match.
-
getMatchBytes
public com.google.protobuf.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;- Specified by:
getMatchBytesin interfaceRouterNatRuleOrBuilder- Returns:
- The bytes for match.
-
setMatch
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;- Parameters:
value- The match to set.- Returns:
- This builder for chaining.
-
clearMatch
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:
- This builder for chaining.
-
setMatchBytes
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;- Parameters:
value- The bytes for match to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasRuleNumberin interfaceRouterNatRuleOrBuilder- Returns:
- Whether the ruleNumber field is set.
-
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;- Specified by:
getRuleNumberin interfaceRouterNatRuleOrBuilder- Returns:
- The ruleNumber.
-
setRuleNumber
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;- Parameters:
value- The ruleNumber to set.- Returns:
- This builder for chaining.
-
clearRuleNumber
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:
- This builder for chaining.
-