public static final class FirewallPolicyRule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRule.Builder> implements FirewallPolicyRuleOrBuilder
Represents a rule that describes one or more match conditions along with the action to be taken when traffic matches this condition (allow or deny).Protobuf type
google.cloud.compute.v1.FirewallPolicyRule| Modifier and Type | Method and Description |
|---|---|
FirewallPolicyRule.Builder |
addAllTargetResources(Iterable<String> values)
A list of network resource URLs to which this rule applies.
|
FirewallPolicyRule.Builder |
addAllTargetSecureTags(Iterable<? extends FirewallPolicyRuleSecureTag> values)
A list of secure tags that controls which instances the firewall rule applies to.
|
FirewallPolicyRule.Builder |
addAllTargetServiceAccounts(Iterable<String> values)
A list of service accounts indicating the sets of instances that are applied with this rule.
|
FirewallPolicyRule.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
FirewallPolicyRule.Builder |
addTargetResources(String value)
A list of network resource URLs to which this rule applies.
|
FirewallPolicyRule.Builder |
addTargetResourcesBytes(com.google.protobuf.ByteString value)
A list of network resource URLs to which this rule applies.
|
FirewallPolicyRule.Builder |
addTargetSecureTags(FirewallPolicyRuleSecureTag.Builder builderForValue)
A list of secure tags that controls which instances the firewall rule applies to.
|
FirewallPolicyRule.Builder |
addTargetSecureTags(FirewallPolicyRuleSecureTag value)
A list of secure tags that controls which instances the firewall rule applies to.
|
FirewallPolicyRule.Builder |
addTargetSecureTags(int index,
FirewallPolicyRuleSecureTag.Builder builderForValue)
A list of secure tags that controls which instances the firewall rule applies to.
|
FirewallPolicyRule.Builder |
addTargetSecureTags(int index,
FirewallPolicyRuleSecureTag value)
A list of secure tags that controls which instances the firewall rule applies to.
|
FirewallPolicyRuleSecureTag.Builder |
addTargetSecureTagsBuilder()
A list of secure tags that controls which instances the firewall rule applies to.
|
FirewallPolicyRuleSecureTag.Builder |
addTargetSecureTagsBuilder(int index)
A list of secure tags that controls which instances the firewall rule applies to.
|
FirewallPolicyRule.Builder |
addTargetServiceAccounts(String value)
A list of service accounts indicating the sets of instances that are applied with this rule.
|
FirewallPolicyRule.Builder |
addTargetServiceAccountsBytes(com.google.protobuf.ByteString value)
A list of service accounts indicating the sets of instances that are applied with this rule.
|
FirewallPolicyRule |
build() |
FirewallPolicyRule |
buildPartial() |
FirewallPolicyRule.Builder |
clear() |
FirewallPolicyRule.Builder |
clearAction()
The Action to perform when the client connection triggers the rule.
|
FirewallPolicyRule.Builder |
clearDescription()
An optional description for this resource.
|
FirewallPolicyRule.Builder |
clearDirection()
The direction in which this rule applies.
|
FirewallPolicyRule.Builder |
clearDisabled()
Denotes whether the firewall policy rule is disabled.
|
FirewallPolicyRule.Builder |
clearEnableLogging()
Denotes whether to enable logging for a particular rule.
|
FirewallPolicyRule.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
FirewallPolicyRule.Builder |
clearKind()
[Output only] Type of the resource.
|
FirewallPolicyRule.Builder |
clearMatch()
A match condition that incoming traffic is evaluated against.
|
FirewallPolicyRule.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
FirewallPolicyRule.Builder |
clearPriority()
An integer indicating the priority of a rule in the list.
|
FirewallPolicyRule.Builder |
clearRuleName()
An optional name for the rule.
|
FirewallPolicyRule.Builder |
clearRuleTupleCount()
[Output Only] Calculation of the complexity of a single firewall policy rule.
|
FirewallPolicyRule.Builder |
clearTargetResources()
A list of network resource URLs to which this rule applies.
|
FirewallPolicyRule.Builder |
clearTargetSecureTags()
A list of secure tags that controls which instances the firewall rule applies to.
|
FirewallPolicyRule.Builder |
clearTargetServiceAccounts()
A list of service accounts indicating the sets of instances that are applied with this rule.
|
FirewallPolicyRule.Builder |
clone() |
String |
getAction()
The Action to perform when the client connection triggers the rule.
|
com.google.protobuf.ByteString |
getActionBytes()
The Action to perform when the client connection triggers the rule.
|
FirewallPolicyRule |
getDefaultInstanceForType() |
String |
getDescription()
An optional description for this resource.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
An optional description for this resource.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDirection()
The direction in which this rule applies.
|
com.google.protobuf.ByteString |
getDirectionBytes()
The direction in which this rule applies.
|
boolean |
getDisabled()
Denotes whether the firewall policy rule is disabled.
|
boolean |
getEnableLogging()
Denotes whether to enable logging for a particular rule.
|
String |
getKind()
[Output only] Type of the resource.
|
com.google.protobuf.ByteString |
getKindBytes()
[Output only] Type of the resource.
|
FirewallPolicyRuleMatcher |
getMatch()
A match condition that incoming traffic is evaluated against.
|
FirewallPolicyRuleMatcher.Builder |
getMatchBuilder()
A match condition that incoming traffic is evaluated against.
|
FirewallPolicyRuleMatcherOrBuilder |
getMatchOrBuilder()
A match condition that incoming traffic is evaluated against.
|
int |
getPriority()
An integer indicating the priority of a rule in the list.
|
String |
getRuleName()
An optional name for the rule.
|
com.google.protobuf.ByteString |
getRuleNameBytes()
An optional name for the rule.
|
int |
getRuleTupleCount()
[Output Only] Calculation of the complexity of a single firewall policy rule.
|
String |
getTargetResources(int index)
A list of network resource URLs to which this rule applies.
|
com.google.protobuf.ByteString |
getTargetResourcesBytes(int index)
A list of network resource URLs to which this rule applies.
|
int |
getTargetResourcesCount()
A list of network resource URLs to which this rule applies.
|
com.google.protobuf.ProtocolStringList |
getTargetResourcesList()
A list of network resource URLs to which this rule applies.
|
FirewallPolicyRuleSecureTag |
getTargetSecureTags(int index)
A list of secure tags that controls which instances the firewall rule applies to.
|
FirewallPolicyRuleSecureTag.Builder |
getTargetSecureTagsBuilder(int index)
A list of secure tags that controls which instances the firewall rule applies to.
|
List<FirewallPolicyRuleSecureTag.Builder> |
getTargetSecureTagsBuilderList()
A list of secure tags that controls which instances the firewall rule applies to.
|
int |
getTargetSecureTagsCount()
A list of secure tags that controls which instances the firewall rule applies to.
|
List<FirewallPolicyRuleSecureTag> |
getTargetSecureTagsList()
A list of secure tags that controls which instances the firewall rule applies to.
|
FirewallPolicyRuleSecureTagOrBuilder |
getTargetSecureTagsOrBuilder(int index)
A list of secure tags that controls which instances the firewall rule applies to.
|
List<? extends FirewallPolicyRuleSecureTagOrBuilder> |
getTargetSecureTagsOrBuilderList()
A list of secure tags that controls which instances the firewall rule applies to.
|
String |
getTargetServiceAccounts(int index)
A list of service accounts indicating the sets of instances that are applied with this rule.
|
com.google.protobuf.ByteString |
getTargetServiceAccountsBytes(int index)
A list of service accounts indicating the sets of instances that are applied with this rule.
|
int |
getTargetServiceAccountsCount()
A list of service accounts indicating the sets of instances that are applied with this rule.
|
com.google.protobuf.ProtocolStringList |
getTargetServiceAccountsList()
A list of service accounts indicating the sets of instances that are applied with this rule.
|
boolean |
hasAction()
The Action to perform when the client connection triggers the rule.
|
boolean |
hasDescription()
An optional description for this resource.
|
boolean |
hasDirection()
The direction in which this rule applies.
|
boolean |
hasDisabled()
Denotes whether the firewall policy rule is disabled.
|
boolean |
hasEnableLogging()
Denotes whether to enable logging for a particular rule.
|
boolean |
hasKind()
[Output only] Type of the resource.
|
boolean |
hasMatch()
A match condition that incoming traffic is evaluated against.
|
boolean |
hasPriority()
An integer indicating the priority of a rule in the list.
|
boolean |
hasRuleName()
An optional name for the rule.
|
boolean |
hasRuleTupleCount()
[Output Only] Calculation of the complexity of a single firewall policy rule.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
FirewallPolicyRule.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
FirewallPolicyRule.Builder |
mergeFrom(FirewallPolicyRule other) |
FirewallPolicyRule.Builder |
mergeFrom(com.google.protobuf.Message other) |
FirewallPolicyRule.Builder |
mergeMatch(FirewallPolicyRuleMatcher value)
A match condition that incoming traffic is evaluated against.
|
FirewallPolicyRule.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
FirewallPolicyRule.Builder |
removeTargetSecureTags(int index)
A list of secure tags that controls which instances the firewall rule applies to.
|
FirewallPolicyRule.Builder |
setAction(String value)
The Action to perform when the client connection triggers the rule.
|
FirewallPolicyRule.Builder |
setActionBytes(com.google.protobuf.ByteString value)
The Action to perform when the client connection triggers the rule.
|
FirewallPolicyRule.Builder |
setDescription(String value)
An optional description for this resource.
|
FirewallPolicyRule.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description for this resource.
|
FirewallPolicyRule.Builder |
setDirection(String value)
The direction in which this rule applies.
|
FirewallPolicyRule.Builder |
setDirectionBytes(com.google.protobuf.ByteString value)
The direction in which this rule applies.
|
FirewallPolicyRule.Builder |
setDisabled(boolean value)
Denotes whether the firewall policy rule is disabled.
|
FirewallPolicyRule.Builder |
setEnableLogging(boolean value)
Denotes whether to enable logging for a particular rule.
|
FirewallPolicyRule.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
FirewallPolicyRule.Builder |
setKind(String value)
[Output only] Type of the resource.
|
FirewallPolicyRule.Builder |
setKindBytes(com.google.protobuf.ByteString value)
[Output only] Type of the resource.
|
FirewallPolicyRule.Builder |
setMatch(FirewallPolicyRuleMatcher.Builder builderForValue)
A match condition that incoming traffic is evaluated against.
|
FirewallPolicyRule.Builder |
setMatch(FirewallPolicyRuleMatcher value)
A match condition that incoming traffic is evaluated against.
|
FirewallPolicyRule.Builder |
setPriority(int value)
An integer indicating the priority of a rule in the list.
|
FirewallPolicyRule.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
FirewallPolicyRule.Builder |
setRuleName(String value)
An optional name for the rule.
|
FirewallPolicyRule.Builder |
setRuleNameBytes(com.google.protobuf.ByteString value)
An optional name for the rule.
|
FirewallPolicyRule.Builder |
setRuleTupleCount(int value)
[Output Only] Calculation of the complexity of a single firewall policy rule.
|
FirewallPolicyRule.Builder |
setTargetResources(int index,
String value)
A list of network resource URLs to which this rule applies.
|
FirewallPolicyRule.Builder |
setTargetSecureTags(int index,
FirewallPolicyRuleSecureTag.Builder builderForValue)
A list of secure tags that controls which instances the firewall rule applies to.
|
FirewallPolicyRule.Builder |
setTargetSecureTags(int index,
FirewallPolicyRuleSecureTag value)
A list of secure tags that controls which instances the firewall rule applies to.
|
FirewallPolicyRule.Builder |
setTargetServiceAccounts(int index,
String value)
A list of service accounts indicating the sets of instances that are applied with this rule.
|
FirewallPolicyRule.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<FirewallPolicyRule.Builder>public FirewallPolicyRule.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRule.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<FirewallPolicyRule.Builder>public FirewallPolicyRule getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic FirewallPolicyRule build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic FirewallPolicyRule buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic FirewallPolicyRule.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRule.Builder>public FirewallPolicyRule.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<FirewallPolicyRule.Builder>public FirewallPolicyRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRule.Builder>public FirewallPolicyRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRule.Builder>public FirewallPolicyRule.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<FirewallPolicyRule.Builder>public FirewallPolicyRule.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<FirewallPolicyRule.Builder>public FirewallPolicyRule.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FirewallPolicyRule.Builder>public FirewallPolicyRule.Builder mergeFrom(FirewallPolicyRule other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRule.Builder>public FirewallPolicyRule.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<FirewallPolicyRule.Builder>IOExceptionpublic boolean hasAction()
The Action to perform when the client connection triggers the rule. Valid actions are "allow", "deny" and "goto_next".
optional string action = 187661878;hasAction in interface FirewallPolicyRuleOrBuilderpublic String getAction()
The Action to perform when the client connection triggers the rule. Valid actions are "allow", "deny" and "goto_next".
optional string action = 187661878;getAction in interface FirewallPolicyRuleOrBuilderpublic com.google.protobuf.ByteString getActionBytes()
The Action to perform when the client connection triggers the rule. Valid actions are "allow", "deny" and "goto_next".
optional string action = 187661878;getActionBytes in interface FirewallPolicyRuleOrBuilderpublic FirewallPolicyRule.Builder setAction(String value)
The Action to perform when the client connection triggers the rule. Valid actions are "allow", "deny" and "goto_next".
optional string action = 187661878;value - The action to set.public FirewallPolicyRule.Builder clearAction()
The Action to perform when the client connection triggers the rule. Valid actions are "allow", "deny" and "goto_next".
optional string action = 187661878;public FirewallPolicyRule.Builder setActionBytes(com.google.protobuf.ByteString value)
The Action to perform when the client connection triggers the rule. Valid actions are "allow", "deny" and "goto_next".
optional string action = 187661878;value - The bytes for action to set.public boolean hasDescription()
An optional description for this resource.
optional string description = 422937596;hasDescription in interface FirewallPolicyRuleOrBuilderpublic String getDescription()
An optional description for this resource.
optional string description = 422937596;getDescription in interface FirewallPolicyRuleOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
An optional description for this resource.
optional string description = 422937596;getDescriptionBytes in interface FirewallPolicyRuleOrBuilderpublic FirewallPolicyRule.Builder setDescription(String value)
An optional description for this resource.
optional string description = 422937596;value - The description to set.public FirewallPolicyRule.Builder clearDescription()
An optional description for this resource.
optional string description = 422937596;public FirewallPolicyRule.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description for this resource.
optional string description = 422937596;value - The bytes for description to set.public boolean hasDirection()
The direction in which this rule applies. Check the Direction enum for the list of possible values.
optional string direction = 111150975;hasDirection in interface FirewallPolicyRuleOrBuilderpublic String getDirection()
The direction in which this rule applies. Check the Direction enum for the list of possible values.
optional string direction = 111150975;getDirection in interface FirewallPolicyRuleOrBuilderpublic com.google.protobuf.ByteString getDirectionBytes()
The direction in which this rule applies. Check the Direction enum for the list of possible values.
optional string direction = 111150975;getDirectionBytes in interface FirewallPolicyRuleOrBuilderpublic FirewallPolicyRule.Builder setDirection(String value)
The direction in which this rule applies. Check the Direction enum for the list of possible values.
optional string direction = 111150975;value - The direction to set.public FirewallPolicyRule.Builder clearDirection()
The direction in which this rule applies. Check the Direction enum for the list of possible values.
optional string direction = 111150975;public FirewallPolicyRule.Builder setDirectionBytes(com.google.protobuf.ByteString value)
The direction in which this rule applies. Check the Direction enum for the list of possible values.
optional string direction = 111150975;value - The bytes for direction to set.public boolean hasDisabled()
Denotes whether the firewall policy rule is disabled. When set to true, the firewall policy rule is not enforced and traffic behaves as if it did not exist. If this is unspecified, the firewall policy rule will be enabled.
optional bool disabled = 270940796;hasDisabled in interface FirewallPolicyRuleOrBuilderpublic boolean getDisabled()
Denotes whether the firewall policy rule is disabled. When set to true, the firewall policy rule is not enforced and traffic behaves as if it did not exist. If this is unspecified, the firewall policy rule will be enabled.
optional bool disabled = 270940796;getDisabled in interface FirewallPolicyRuleOrBuilderpublic FirewallPolicyRule.Builder setDisabled(boolean value)
Denotes whether the firewall policy rule is disabled. When set to true, the firewall policy rule is not enforced and traffic behaves as if it did not exist. If this is unspecified, the firewall policy rule will be enabled.
optional bool disabled = 270940796;value - The disabled to set.public FirewallPolicyRule.Builder clearDisabled()
Denotes whether the firewall policy rule is disabled. When set to true, the firewall policy rule is not enforced and traffic behaves as if it did not exist. If this is unspecified, the firewall policy rule will be enabled.
optional bool disabled = 270940796;public boolean hasEnableLogging()
Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you cannot enable logging on "goto_next" rules.
optional bool enable_logging = 295396515;hasEnableLogging in interface FirewallPolicyRuleOrBuilderpublic boolean getEnableLogging()
Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you cannot enable logging on "goto_next" rules.
optional bool enable_logging = 295396515;getEnableLogging in interface FirewallPolicyRuleOrBuilderpublic FirewallPolicyRule.Builder setEnableLogging(boolean value)
Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you cannot enable logging on "goto_next" rules.
optional bool enable_logging = 295396515;value - The enableLogging to set.public FirewallPolicyRule.Builder clearEnableLogging()
Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you cannot enable logging on "goto_next" rules.
optional bool enable_logging = 295396515;public boolean hasKind()
[Output only] Type of the resource. Always compute#firewallPolicyRule for firewall policy rules
optional string kind = 3292052;hasKind in interface FirewallPolicyRuleOrBuilderpublic String getKind()
[Output only] Type of the resource. Always compute#firewallPolicyRule for firewall policy rules
optional string kind = 3292052;getKind in interface FirewallPolicyRuleOrBuilderpublic com.google.protobuf.ByteString getKindBytes()
[Output only] Type of the resource. Always compute#firewallPolicyRule for firewall policy rules
optional string kind = 3292052;getKindBytes in interface FirewallPolicyRuleOrBuilderpublic FirewallPolicyRule.Builder setKind(String value)
[Output only] Type of the resource. Always compute#firewallPolicyRule for firewall policy rules
optional string kind = 3292052;value - The kind to set.public FirewallPolicyRule.Builder clearKind()
[Output only] Type of the resource. Always compute#firewallPolicyRule for firewall policy rules
optional string kind = 3292052;public FirewallPolicyRule.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output only] Type of the resource. Always compute#firewallPolicyRule for firewall policy rules
optional string kind = 3292052;value - The bytes for kind to set.public boolean hasMatch()
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
optional .google.cloud.compute.v1.FirewallPolicyRuleMatcher match = 103668165;hasMatch in interface FirewallPolicyRuleOrBuilderpublic FirewallPolicyRuleMatcher getMatch()
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
optional .google.cloud.compute.v1.FirewallPolicyRuleMatcher match = 103668165;getMatch in interface FirewallPolicyRuleOrBuilderpublic FirewallPolicyRule.Builder setMatch(FirewallPolicyRuleMatcher value)
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
optional .google.cloud.compute.v1.FirewallPolicyRuleMatcher match = 103668165;public FirewallPolicyRule.Builder setMatch(FirewallPolicyRuleMatcher.Builder builderForValue)
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
optional .google.cloud.compute.v1.FirewallPolicyRuleMatcher match = 103668165;public FirewallPolicyRule.Builder mergeMatch(FirewallPolicyRuleMatcher value)
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
optional .google.cloud.compute.v1.FirewallPolicyRuleMatcher match = 103668165;public FirewallPolicyRule.Builder clearMatch()
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
optional .google.cloud.compute.v1.FirewallPolicyRuleMatcher match = 103668165;public FirewallPolicyRuleMatcher.Builder getMatchBuilder()
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
optional .google.cloud.compute.v1.FirewallPolicyRuleMatcher match = 103668165;public FirewallPolicyRuleMatcherOrBuilder getMatchOrBuilder()
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
optional .google.cloud.compute.v1.FirewallPolicyRuleMatcher match = 103668165;getMatchOrBuilder in interface FirewallPolicyRuleOrBuilderpublic boolean hasPriority()
An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest prority.
optional int32 priority = 445151652;hasPriority in interface FirewallPolicyRuleOrBuilderpublic int getPriority()
An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest prority.
optional int32 priority = 445151652;getPriority in interface FirewallPolicyRuleOrBuilderpublic FirewallPolicyRule.Builder setPriority(int value)
An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest prority.
optional int32 priority = 445151652;value - The priority to set.public FirewallPolicyRule.Builder clearPriority()
An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest prority.
optional int32 priority = 445151652;public boolean hasRuleName()
An optional name for the rule. This field is not a unique identifier and can be updated.
optional string rule_name = 55286254;hasRuleName in interface FirewallPolicyRuleOrBuilderpublic String getRuleName()
An optional name for the rule. This field is not a unique identifier and can be updated.
optional string rule_name = 55286254;getRuleName in interface FirewallPolicyRuleOrBuilderpublic com.google.protobuf.ByteString getRuleNameBytes()
An optional name for the rule. This field is not a unique identifier and can be updated.
optional string rule_name = 55286254;getRuleNameBytes in interface FirewallPolicyRuleOrBuilderpublic FirewallPolicyRule.Builder setRuleName(String value)
An optional name for the rule. This field is not a unique identifier and can be updated.
optional string rule_name = 55286254;value - The ruleName to set.public FirewallPolicyRule.Builder clearRuleName()
An optional name for the rule. This field is not a unique identifier and can be updated.
optional string rule_name = 55286254;public FirewallPolicyRule.Builder setRuleNameBytes(com.google.protobuf.ByteString value)
An optional name for the rule. This field is not a unique identifier and can be updated.
optional string rule_name = 55286254;value - The bytes for ruleName to set.public boolean hasRuleTupleCount()
[Output Only] Calculation of the complexity of a single firewall policy rule.
optional int32 rule_tuple_count = 388342037;hasRuleTupleCount in interface FirewallPolicyRuleOrBuilderpublic int getRuleTupleCount()
[Output Only] Calculation of the complexity of a single firewall policy rule.
optional int32 rule_tuple_count = 388342037;getRuleTupleCount in interface FirewallPolicyRuleOrBuilderpublic FirewallPolicyRule.Builder setRuleTupleCount(int value)
[Output Only] Calculation of the complexity of a single firewall policy rule.
optional int32 rule_tuple_count = 388342037;value - The ruleTupleCount to set.public FirewallPolicyRule.Builder clearRuleTupleCount()
[Output Only] Calculation of the complexity of a single firewall policy rule.
optional int32 rule_tuple_count = 388342037;public com.google.protobuf.ProtocolStringList getTargetResourcesList()
A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule.
repeated string target_resources = 528230647;getTargetResourcesList in interface FirewallPolicyRuleOrBuilderpublic int getTargetResourcesCount()
A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule.
repeated string target_resources = 528230647;getTargetResourcesCount in interface FirewallPolicyRuleOrBuilderpublic String getTargetResources(int index)
A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule.
repeated string target_resources = 528230647;getTargetResources in interface FirewallPolicyRuleOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getTargetResourcesBytes(int index)
A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule.
repeated string target_resources = 528230647;getTargetResourcesBytes in interface FirewallPolicyRuleOrBuilderindex - The index of the value to return.public FirewallPolicyRule.Builder setTargetResources(int index, String value)
A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule.
repeated string target_resources = 528230647;index - The index to set the value at.value - The targetResources to set.public FirewallPolicyRule.Builder addTargetResources(String value)
A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule.
repeated string target_resources = 528230647;value - The targetResources to add.public FirewallPolicyRule.Builder addAllTargetResources(Iterable<String> values)
A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule.
repeated string target_resources = 528230647;values - The targetResources to add.public FirewallPolicyRule.Builder clearTargetResources()
A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule.
repeated string target_resources = 528230647;public FirewallPolicyRule.Builder addTargetResourcesBytes(com.google.protobuf.ByteString value)
A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule.
repeated string target_resources = 528230647;value - The bytes of the targetResources to add.public List<FirewallPolicyRuleSecureTag> getTargetSecureTagsList()
A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
getTargetSecureTagsList in interface FirewallPolicyRuleOrBuilderpublic int getTargetSecureTagsCount()
A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
getTargetSecureTagsCount in interface FirewallPolicyRuleOrBuilderpublic FirewallPolicyRuleSecureTag getTargetSecureTags(int index)
A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
getTargetSecureTags in interface FirewallPolicyRuleOrBuilderpublic FirewallPolicyRule.Builder setTargetSecureTags(int index, FirewallPolicyRuleSecureTag value)
A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
public FirewallPolicyRule.Builder setTargetSecureTags(int index, FirewallPolicyRuleSecureTag.Builder builderForValue)
A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
public FirewallPolicyRule.Builder addTargetSecureTags(FirewallPolicyRuleSecureTag value)
A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
public FirewallPolicyRule.Builder addTargetSecureTags(int index, FirewallPolicyRuleSecureTag value)
A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
public FirewallPolicyRule.Builder addTargetSecureTags(FirewallPolicyRuleSecureTag.Builder builderForValue)
A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
public FirewallPolicyRule.Builder addTargetSecureTags(int index, FirewallPolicyRuleSecureTag.Builder builderForValue)
A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
public FirewallPolicyRule.Builder addAllTargetSecureTags(Iterable<? extends FirewallPolicyRuleSecureTag> values)
A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
public FirewallPolicyRule.Builder clearTargetSecureTags()
A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
public FirewallPolicyRule.Builder removeTargetSecureTags(int index)
A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
public FirewallPolicyRuleSecureTag.Builder getTargetSecureTagsBuilder(int index)
A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
public FirewallPolicyRuleSecureTagOrBuilder getTargetSecureTagsOrBuilder(int index)
A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
getTargetSecureTagsOrBuilder in interface FirewallPolicyRuleOrBuilderpublic List<? extends FirewallPolicyRuleSecureTagOrBuilder> getTargetSecureTagsOrBuilderList()
A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
getTargetSecureTagsOrBuilderList in interface FirewallPolicyRuleOrBuilderpublic FirewallPolicyRuleSecureTag.Builder addTargetSecureTagsBuilder()
A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
public FirewallPolicyRuleSecureTag.Builder addTargetSecureTagsBuilder(int index)
A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
public List<FirewallPolicyRuleSecureTag.Builder> getTargetSecureTagsBuilderList()
A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403;
public com.google.protobuf.ProtocolStringList getTargetServiceAccountsList()
A list of service accounts indicating the sets of instances that are applied with this rule.
repeated string target_service_accounts = 457639710;getTargetServiceAccountsList in interface FirewallPolicyRuleOrBuilderpublic int getTargetServiceAccountsCount()
A list of service accounts indicating the sets of instances that are applied with this rule.
repeated string target_service_accounts = 457639710;getTargetServiceAccountsCount in interface FirewallPolicyRuleOrBuilderpublic String getTargetServiceAccounts(int index)
A list of service accounts indicating the sets of instances that are applied with this rule.
repeated string target_service_accounts = 457639710;getTargetServiceAccounts in interface FirewallPolicyRuleOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getTargetServiceAccountsBytes(int index)
A list of service accounts indicating the sets of instances that are applied with this rule.
repeated string target_service_accounts = 457639710;getTargetServiceAccountsBytes in interface FirewallPolicyRuleOrBuilderindex - The index of the value to return.public FirewallPolicyRule.Builder setTargetServiceAccounts(int index, String value)
A list of service accounts indicating the sets of instances that are applied with this rule.
repeated string target_service_accounts = 457639710;index - The index to set the value at.value - The targetServiceAccounts to set.public FirewallPolicyRule.Builder addTargetServiceAccounts(String value)
A list of service accounts indicating the sets of instances that are applied with this rule.
repeated string target_service_accounts = 457639710;value - The targetServiceAccounts to add.public FirewallPolicyRule.Builder addAllTargetServiceAccounts(Iterable<String> values)
A list of service accounts indicating the sets of instances that are applied with this rule.
repeated string target_service_accounts = 457639710;values - The targetServiceAccounts to add.public FirewallPolicyRule.Builder clearTargetServiceAccounts()
A list of service accounts indicating the sets of instances that are applied with this rule.
repeated string target_service_accounts = 457639710;public FirewallPolicyRule.Builder addTargetServiceAccountsBytes(com.google.protobuf.ByteString value)
A list of service accounts indicating the sets of instances that are applied with this rule.
repeated string target_service_accounts = 457639710;value - The bytes of the targetServiceAccounts to add.public final FirewallPolicyRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRule.Builder>public final FirewallPolicyRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRule.Builder>Copyright © 2023 Google LLC. All rights reserved.