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
google.cloud.compute.v1.RouterNatRule
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(RouterNatRule other)
RouterNatRule.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RouterNatRule.Builder
mergeFrom(com.google.protobuf.Message other)
RouterNatRule.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
RouterNatRule.Builder
setAction(RouterNatRuleAction value)
The action to be enforced for traffic that matches this rule.RouterNatRule.Builder
setAction(RouterNatRuleAction.Builder builderForValue)
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)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>
-
clear
public RouterNatRule.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>
-
getDefaultInstanceForType
public RouterNatRule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RouterNatRule build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RouterNatRule buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RouterNatRule.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>
-
setField
public RouterNatRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>
-
clearField
public RouterNatRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>
-
clearOneof
public RouterNatRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>
-
setRepeatedField
public RouterNatRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>
-
addRepeatedField
public RouterNatRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>
-
mergeFrom
public RouterNatRule.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RouterNatRule.Builder>
-
mergeFrom
public RouterNatRule.Builder mergeFrom(RouterNatRule other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasAction
in 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:
getAction
in 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:
getActionOrBuilder
in interfaceRouterNatRuleOrBuilder
-
hasDescription
public boolean hasDescription()
An optional description of this rule.
optional string description = 422937596;
- Specified by:
hasDescription
in interfaceRouterNatRuleOrBuilder
- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
An optional description of this rule.
optional string description = 422937596;
- Specified by:
getDescription
in interfaceRouterNatRuleOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this rule.
optional string description = 422937596;
- Specified by:
getDescriptionBytes
in 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:
hasMatch
in 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:
getMatch
in 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:
getMatchBytes
in 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:
hasRuleNumber
in 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:
getRuleNumber
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>
-
mergeUnknownFields
public final RouterNatRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNatRule.Builder>
-
-