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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<RouterNatRule.Builder> implements RouterNatRuleOrBuilder
Protobuf typegoogle.cloud.compute.v1.RouterNatRule
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RouterNatRule.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RouterNatRulebuild()RouterNatRulebuildPartial()RouterNatRule.Builderclear()RouterNatRule.BuilderclearAction()The action to be enforced for traffic that matches this rule.RouterNatRule.BuilderclearDescription()An optional description of this rule.RouterNatRule.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RouterNatRule.BuilderclearMatch()CEL expression that specifies the match condition that egress traffic from a VM is evaluated against.RouterNatRule.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RouterNatRule.BuilderclearRuleNumber()An integer uniquely identifying a rule in the list.RouterNatRule.Builderclone()RouterNatRuleActiongetAction()The action to be enforced for traffic that matches this rule.RouterNatRuleAction.BuildergetActionBuilder()The action to be enforced for traffic that matches this rule.RouterNatRuleActionOrBuildergetActionOrBuilder()The action to be enforced for traffic that matches this rule.RouterNatRulegetDefaultInstanceForType()StringgetDescription()An optional description of this rule.com.google.protobuf.ByteStringgetDescriptionBytes()An optional description of this rule.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetMatch()CEL expression that specifies the match condition that egress traffic from a VM is evaluated against.com.google.protobuf.ByteStringgetMatchBytes()CEL expression that specifies the match condition that egress traffic from a VM is evaluated against.intgetRuleNumber()An integer uniquely identifying a rule in the list.booleanhasAction()The action to be enforced for traffic that matches this rule.booleanhasDescription()An optional description of this rule.booleanhasMatch()CEL expression that specifies the match condition that egress traffic from a VM is evaluated against.booleanhasRuleNumber()An integer uniquely identifying a rule in the list.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RouterNatRule.BuildermergeAction(RouterNatRuleAction value)The action to be enforced for traffic that matches this rule.RouterNatRule.BuildermergeFrom(RouterNatRule other)RouterNatRule.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RouterNatRule.BuildermergeFrom(com.google.protobuf.Message other)RouterNatRule.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RouterNatRule.BuildersetAction(RouterNatRuleAction value)The action to be enforced for traffic that matches this rule.RouterNatRule.BuildersetAction(RouterNatRuleAction.Builder builderForValue)The action to be enforced for traffic that matches this rule.RouterNatRule.BuildersetDescription(String value)An optional description of this rule.RouterNatRule.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)An optional description of this rule.RouterNatRule.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RouterNatRule.BuildersetMatch(String value)CEL expression that specifies the match condition that egress traffic from a VM is evaluated against.RouterNatRule.BuildersetMatchBytes(com.google.protobuf.ByteString value)CEL expression that specifies the match condition that egress traffic from a VM is evaluated against.RouterNatRule.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RouterNatRule.BuildersetRuleNumber(int value)An integer uniquely identifying a rule in the list.RouterNatRule.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>
-
clear
public RouterNatRule.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<RouterNatRule.Builder>
-
getDefaultInstanceForType
public RouterNatRule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RouterNatRule build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RouterNatRule buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RouterNatRule.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>
-
setField
public RouterNatRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>
-
clearField
public RouterNatRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>
-
clearOneof
public RouterNatRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>
-
setRepeatedField
public RouterNatRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>
-
addRepeatedField
public RouterNatRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>
-
mergeFrom
public RouterNatRule.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RouterNatRule.Builder>
-
mergeFrom
public RouterNatRule.Builder mergeFrom(RouterNatRule other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public RouterNatRuleAction 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
public RouterNatRule.Builder setAction(RouterNatRuleAction value)
The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;
-
setAction
public RouterNatRule.Builder setAction(RouterNatRuleAction.Builder builderForValue)
The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;
-
mergeAction
public RouterNatRule.Builder mergeAction(RouterNatRuleAction value)
The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;
-
clearAction
public RouterNatRule.Builder clearAction()
The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;
-
getActionBuilder
public RouterNatRuleAction.Builder getActionBuilder()
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;- 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
public String 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
public RouterNatRule.Builder setDescription(String value)
An optional description of this rule.
optional string description = 422937596;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public RouterNatRule.Builder clearDescription()
An optional description of this rule.
optional string description = 422937596;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public RouterNatRule.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
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 == 'https://networkconnectivity.googleapis.com/v1alpha1/projects/my-project/global/hub/hub-1'"
optional string match = 103668165;- Specified by:
hasMatchin interfaceRouterNatRuleOrBuilder- Returns:
- Whether the match field is set.
-
getMatch
public String 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;- 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 == 'https://networkconnectivity.googleapis.com/v1alpha1/projects/my-project/global/hub/hub-1'"
optional string match = 103668165;- Specified by:
getMatchBytesin interfaceRouterNatRuleOrBuilder- Returns:
- The bytes for match.
-
setMatch
public RouterNatRule.Builder setMatch(String value)
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;- Parameters:
value- The match to set.- Returns:
- This builder for chaining.
-
clearMatch
public RouterNatRule.Builder 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 == 'https://networkconnectivity.googleapis.com/v1alpha1/projects/my-project/global/hub/hub-1'"
optional string match = 103668165;- Returns:
- This builder for chaining.
-
setMatchBytes
public RouterNatRule.Builder setMatchBytes(com.google.protobuf.ByteString value)
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;- 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
public RouterNatRule.Builder setRuleNumber(int value)
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
public RouterNatRule.Builder 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.
-
setUnknownFields
public final RouterNatRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>
-
mergeUnknownFields
public final RouterNatRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>
-
-