public static final class RouterNatRule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder> implements RouterNatRuleOrBuilder
Protobuf type
google.cloud.compute.v1.RouterNatRule| Modifier and Type | Method and Description |
|---|---|
RouterNatRule.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RouterNatRule |
build() |
RouterNatRule |
buildPartial() |
RouterNatRule.Builder |
clear() |
RouterNatRule.Builder |
clearAction()
The action to be enforced for traffic that matches this rule.
|
RouterNatRule.Builder |
clearDescription()
An optional description of this rule.
|
RouterNatRule.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RouterNatRule.Builder |
clearMatch()
CEL expression that specifies the match condition that egress traffic from a VM is evaluated against.
|
RouterNatRule.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RouterNatRule.Builder |
clearRuleNumber()
An integer uniquely identifying a rule in the list.
|
RouterNatRule.Builder |
clone() |
RouterNatRuleAction |
getAction()
The action to be enforced for traffic that matches this rule.
|
RouterNatRuleAction.Builder |
getActionBuilder()
The action to be enforced for traffic that matches this rule.
|
RouterNatRuleActionOrBuilder |
getActionOrBuilder()
The action to be enforced for traffic that matches this rule.
|
RouterNatRule |
getDefaultInstanceForType() |
String |
getDescription()
An optional description of this rule.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
An optional description of this rule.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getMatch()
CEL expression that specifies the match condition that egress traffic from a VM is evaluated against.
|
com.google.protobuf.ByteString |
getMatchBytes()
CEL expression that specifies the match condition that egress traffic from a VM is evaluated against.
|
int |
getRuleNumber()
An integer uniquely identifying a rule in the list.
|
boolean |
hasAction()
The action to be enforced for traffic that matches this rule.
|
boolean |
hasDescription()
An optional description of this rule.
|
boolean |
hasMatch()
CEL expression that specifies the match condition that egress traffic from a VM is evaluated against.
|
boolean |
hasRuleNumber()
An integer uniquely identifying a rule in the list.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RouterNatRule.Builder |
mergeAction(RouterNatRuleAction value)
The action to be enforced for traffic that matches this rule.
|
RouterNatRule.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RouterNatRule.Builder |
mergeFrom(com.google.protobuf.Message other) |
RouterNatRule.Builder |
mergeFrom(RouterNatRule other) |
RouterNatRule.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RouterNatRule.Builder |
setAction(RouterNatRuleAction.Builder builderForValue)
The action to be enforced for traffic that matches this rule.
|
RouterNatRule.Builder |
setAction(RouterNatRuleAction value)
The action to be enforced for traffic that matches this rule.
|
RouterNatRule.Builder |
setDescription(String value)
An optional description of this rule.
|
RouterNatRule.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this rule.
|
RouterNatRule.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RouterNatRule.Builder |
setMatch(String value)
CEL expression that specifies the match condition that egress traffic from a VM is evaluated against.
|
RouterNatRule.Builder |
setMatchBytes(com.google.protobuf.ByteString value)
CEL expression that specifies the match condition that egress traffic from a VM is evaluated against.
|
RouterNatRule.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RouterNatRule.Builder |
setRuleNumber(int value)
An integer uniquely identifying a rule in the list.
|
RouterNatRule.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>public RouterNatRule.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>public RouterNatRule getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RouterNatRule build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RouterNatRule buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RouterNatRule.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>public RouterNatRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>public RouterNatRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>public RouterNatRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>public RouterNatRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>public RouterNatRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>public RouterNatRule.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RouterNatRule.Builder>public RouterNatRule.Builder mergeFrom(RouterNatRule other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>public RouterNatRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RouterNatRule.Builder>IOExceptionpublic boolean hasAction()
The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;hasAction in interface RouterNatRuleOrBuilderpublic RouterNatRuleAction getAction()
The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;getAction in interface RouterNatRuleOrBuilderpublic RouterNatRule.Builder setAction(RouterNatRuleAction value)
The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;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;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;public RouterNatRule.Builder clearAction()
The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;public RouterNatRuleAction.Builder getActionBuilder()
The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;public RouterNatRuleActionOrBuilder getActionOrBuilder()
The action to be enforced for traffic that matches this rule.
optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;getActionOrBuilder in interface RouterNatRuleOrBuilderpublic boolean hasDescription()
An optional description of this rule.
optional string description = 422937596;hasDescription in interface RouterNatRuleOrBuilderpublic String getDescription()
An optional description of this rule.
optional string description = 422937596;getDescription in interface RouterNatRuleOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this rule.
optional string description = 422937596;getDescriptionBytes in interface RouterNatRuleOrBuilderpublic RouterNatRule.Builder setDescription(String value)
An optional description of this rule.
optional string description = 422937596;value - The description to set.public RouterNatRule.Builder clearDescription()
An optional description of this rule.
optional string description = 422937596;public RouterNatRule.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this rule.
optional string description = 422937596;value - The bytes for description to set.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;hasMatch in interface RouterNatRuleOrBuilderpublic 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;getMatch in interface RouterNatRuleOrBuilderpublic 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;getMatchBytes in interface RouterNatRuleOrBuilderpublic 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;value - The match to set.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;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;value - The bytes for match to set.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;hasRuleNumber in interface RouterNatRuleOrBuilderpublic 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;getRuleNumber in interface RouterNatRuleOrBuilderpublic 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;value - The ruleNumber to set.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;public final RouterNatRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>public final RouterNatRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>Copyright © 2023 Google LLC. All rights reserved.