Package com.google.cloud.compute.v1
Class FirewallPolicyRule.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRule.Builder>
-
- com.google.cloud.compute.v1.FirewallPolicyRule.Builder
-
- All Implemented Interfaces:
FirewallPolicyRuleOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- FirewallPolicyRule
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 typegoogle.cloud.compute.v1.FirewallPolicyRule
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(int index, 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(FirewallPolicyRuleSecureTag value)
A list of secure tags that controls which instances the firewall rule applies to.FirewallPolicyRule.Builder
addTargetSecureTags(FirewallPolicyRuleSecureTag.Builder builderForValue)
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(FirewallPolicyRule other)
FirewallPolicyRule.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
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 value)
A match condition that incoming traffic is evaluated against.FirewallPolicyRule.Builder
setMatch(FirewallPolicyRuleMatcher.Builder builderForValue)
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 value)
A list of secure tags that controls which instances the firewall rule applies to.FirewallPolicyRule.Builder
setTargetSecureTags(int index, FirewallPolicyRuleSecureTag.Builder builderForValue)
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)
-
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<FirewallPolicyRule.Builder>
-
clear
public FirewallPolicyRule.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<FirewallPolicyRule.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<FirewallPolicyRule.Builder>
-
getDefaultInstanceForType
public FirewallPolicyRule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public FirewallPolicyRule build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public FirewallPolicyRule buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public FirewallPolicyRule.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<FirewallPolicyRule.Builder>
-
setField
public FirewallPolicyRule.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<FirewallPolicyRule.Builder>
-
clearField
public FirewallPolicyRule.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<FirewallPolicyRule.Builder>
-
clearOneof
public FirewallPolicyRule.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<FirewallPolicyRule.Builder>
-
setRepeatedField
public FirewallPolicyRule.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<FirewallPolicyRule.Builder>
-
addRepeatedField
public FirewallPolicyRule.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<FirewallPolicyRule.Builder>
-
mergeFrom
public FirewallPolicyRule.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FirewallPolicyRule.Builder>
-
mergeFrom
public FirewallPolicyRule.Builder mergeFrom(FirewallPolicyRule other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRule.Builder>
-
mergeFrom
public FirewallPolicyRule.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<FirewallPolicyRule.Builder>
- Throws:
IOException
-
hasAction
public 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;
- Specified by:
hasAction
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- Whether the action field is set.
-
getAction
public 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;
- Specified by:
getAction
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- The action.
-
getActionBytes
public 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;
- Specified by:
getActionBytes
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- The bytes for action.
-
setAction
public 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;
- Parameters:
value
- The action to set.- Returns:
- This builder for chaining.
-
clearAction
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;
- Returns:
- This builder for chaining.
-
setActionBytes
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;
- Parameters:
value
- The bytes for action to set.- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()
An optional description for this resource.
optional string description = 422937596;
- Specified by:
hasDescription
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
An optional description for this resource.
optional string description = 422937596;
- Specified by:
getDescription
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
An optional description for this resource.
optional string description = 422937596;
- Specified by:
getDescriptionBytes
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public FirewallPolicyRule.Builder setDescription(String value)
An optional description for this resource.
optional string description = 422937596;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public FirewallPolicyRule.Builder clearDescription()
An optional description for this resource.
optional string description = 422937596;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public FirewallPolicyRule.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description for this resource.
optional string description = 422937596;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasDirection
public boolean hasDirection()
The direction in which this rule applies. Check the Direction enum for the list of possible values.
optional string direction = 111150975;
- Specified by:
hasDirection
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- Whether the direction field is set.
-
getDirection
public String getDirection()
The direction in which this rule applies. Check the Direction enum for the list of possible values.
optional string direction = 111150975;
- Specified by:
getDirection
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- The direction.
-
getDirectionBytes
public 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;
- Specified by:
getDirectionBytes
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- The bytes for direction.
-
setDirection
public 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;
- Parameters:
value
- The direction to set.- Returns:
- This builder for chaining.
-
clearDirection
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;
- Returns:
- This builder for chaining.
-
setDirectionBytes
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;
- Parameters:
value
- The bytes for direction to set.- Returns:
- This builder for chaining.
-
hasDisabled
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;
- Specified by:
hasDisabled
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- Whether the disabled field is set.
-
getDisabled
public 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;
- Specified by:
getDisabled
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- The disabled.
-
setDisabled
public 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;
- Parameters:
value
- The disabled to set.- Returns:
- This builder for chaining.
-
clearDisabled
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;
- Returns:
- This builder for chaining.
-
hasEnableLogging
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;
- Specified by:
hasEnableLogging
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- Whether the enableLogging field is set.
-
getEnableLogging
public 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;
- Specified by:
getEnableLogging
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- The enableLogging.
-
setEnableLogging
public 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;
- Parameters:
value
- The enableLogging to set.- Returns:
- This builder for chaining.
-
clearEnableLogging
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;
- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()
[Output only] Type of the resource. Always compute#firewallPolicyRule for firewall policy rules
optional string kind = 3292052;
- Specified by:
hasKind
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
[Output only] Type of the resource. Always compute#firewallPolicyRule for firewall policy rules
optional string kind = 3292052;
- Specified by:
getKind
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
[Output only] Type of the resource. Always compute#firewallPolicyRule for firewall policy rules
optional string kind = 3292052;
- Specified by:
getKindBytes
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- The bytes for kind.
-
setKind
public FirewallPolicyRule.Builder setKind(String value)
[Output only] Type of the resource. Always compute#firewallPolicyRule for firewall policy rules
optional string kind = 3292052;
- Parameters:
value
- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public FirewallPolicyRule.Builder clearKind()
[Output only] Type of the resource. Always compute#firewallPolicyRule for firewall policy rules
optional string kind = 3292052;
- Returns:
- This builder for chaining.
-
setKindBytes
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;
- Parameters:
value
- The bytes for kind to set.- Returns:
- This builder for chaining.
-
hasMatch
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;
- Specified by:
hasMatch
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- Whether the match field is set.
-
getMatch
public 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;
- Specified by:
getMatch
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- The match.
-
setMatch
public 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;
-
setMatch
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;
-
mergeMatch
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;
-
clearMatch
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;
-
getMatchBuilder
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;
-
getMatchOrBuilder
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;
- Specified by:
getMatchOrBuilder
in interfaceFirewallPolicyRuleOrBuilder
-
hasPriority
public 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;
- Specified by:
hasPriority
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- Whether the priority field is set.
-
getPriority
public 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;
- Specified by:
getPriority
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- The priority.
-
setPriority
public 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;
- Parameters:
value
- The priority to set.- Returns:
- This builder for chaining.
-
clearPriority
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;
- Returns:
- This builder for chaining.
-
hasRuleName
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;
- Specified by:
hasRuleName
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- Whether the ruleName field is set.
-
getRuleName
public String getRuleName()
An optional name for the rule. This field is not a unique identifier and can be updated.
optional string rule_name = 55286254;
- Specified by:
getRuleName
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- The ruleName.
-
getRuleNameBytes
public 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;
- Specified by:
getRuleNameBytes
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- The bytes for ruleName.
-
setRuleName
public 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;
- Parameters:
value
- The ruleName to set.- Returns:
- This builder for chaining.
-
clearRuleName
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;
- Returns:
- This builder for chaining.
-
setRuleNameBytes
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;
- Parameters:
value
- The bytes for ruleName to set.- Returns:
- This builder for chaining.
-
hasRuleTupleCount
public boolean hasRuleTupleCount()
[Output Only] Calculation of the complexity of a single firewall policy rule.
optional int32 rule_tuple_count = 388342037;
- Specified by:
hasRuleTupleCount
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- Whether the ruleTupleCount field is set.
-
getRuleTupleCount
public int getRuleTupleCount()
[Output Only] Calculation of the complexity of a single firewall policy rule.
optional int32 rule_tuple_count = 388342037;
- Specified by:
getRuleTupleCount
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- The ruleTupleCount.
-
setRuleTupleCount
public FirewallPolicyRule.Builder setRuleTupleCount(int value)
[Output Only] Calculation of the complexity of a single firewall policy rule.
optional int32 rule_tuple_count = 388342037;
- Parameters:
value
- The ruleTupleCount to set.- Returns:
- This builder for chaining.
-
clearRuleTupleCount
public FirewallPolicyRule.Builder clearRuleTupleCount()
[Output Only] Calculation of the complexity of a single firewall policy rule.
optional int32 rule_tuple_count = 388342037;
- Returns:
- This builder for chaining.
-
getTargetResourcesList
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;
- Specified by:
getTargetResourcesList
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- A list containing the targetResources.
-
getTargetResourcesCount
public 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;
- Specified by:
getTargetResourcesCount
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- The count of targetResources.
-
getTargetResources
public 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;
- Specified by:
getTargetResources
in interfaceFirewallPolicyRuleOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The targetResources at the given index.
-
getTargetResourcesBytes
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;
- Specified by:
getTargetResourcesBytes
in interfaceFirewallPolicyRuleOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the targetResources at the given index.
-
setTargetResources
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;
- Parameters:
index
- The index to set the value at.value
- The targetResources to set.- Returns:
- This builder for chaining.
-
addTargetResources
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;
- Parameters:
value
- The targetResources to add.- Returns:
- This builder for chaining.
-
addAllTargetResources
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;
- Parameters:
values
- The targetResources to add.- Returns:
- This builder for chaining.
-
clearTargetResources
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;
- Returns:
- This builder for chaining.
-
addTargetResourcesBytes
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;
- Parameters:
value
- The bytes of the targetResources to add.- Returns:
- This builder for chaining.
-
getTargetSecureTagsList
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;
- Specified by:
getTargetSecureTagsList
in interfaceFirewallPolicyRuleOrBuilder
-
getTargetSecureTagsCount
public 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;
- Specified by:
getTargetSecureTagsCount
in interfaceFirewallPolicyRuleOrBuilder
-
getTargetSecureTags
public 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;
- Specified by:
getTargetSecureTags
in interfaceFirewallPolicyRuleOrBuilder
-
setTargetSecureTags
public 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;
-
setTargetSecureTags
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;
-
addTargetSecureTags
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;
-
addTargetSecureTags
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;
-
addTargetSecureTags
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;
-
addTargetSecureTags
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;
-
addAllTargetSecureTags
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;
-
clearTargetSecureTags
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;
-
removeTargetSecureTags
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;
-
getTargetSecureTagsBuilder
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;
-
getTargetSecureTagsOrBuilder
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;
- Specified by:
getTargetSecureTagsOrBuilder
in interfaceFirewallPolicyRuleOrBuilder
-
getTargetSecureTagsOrBuilderList
public 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;
- Specified by:
getTargetSecureTagsOrBuilderList
in interfaceFirewallPolicyRuleOrBuilder
-
addTargetSecureTagsBuilder
public 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;
-
addTargetSecureTagsBuilder
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;
-
getTargetSecureTagsBuilderList
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;
-
getTargetServiceAccountsList
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;
- Specified by:
getTargetServiceAccountsList
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- A list containing the targetServiceAccounts.
-
getTargetServiceAccountsCount
public int getTargetServiceAccountsCount()
A list of service accounts indicating the sets of instances that are applied with this rule.
repeated string target_service_accounts = 457639710;
- Specified by:
getTargetServiceAccountsCount
in interfaceFirewallPolicyRuleOrBuilder
- Returns:
- The count of targetServiceAccounts.
-
getTargetServiceAccounts
public 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;
- Specified by:
getTargetServiceAccounts
in interfaceFirewallPolicyRuleOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The targetServiceAccounts at the given index.
-
getTargetServiceAccountsBytes
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;
- Specified by:
getTargetServiceAccountsBytes
in interfaceFirewallPolicyRuleOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the targetServiceAccounts at the given index.
-
setTargetServiceAccounts
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;
- Parameters:
index
- The index to set the value at.value
- The targetServiceAccounts to set.- Returns:
- This builder for chaining.
-
addTargetServiceAccounts
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;
- Parameters:
value
- The targetServiceAccounts to add.- Returns:
- This builder for chaining.
-
addAllTargetServiceAccounts
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;
- Parameters:
values
- The targetServiceAccounts to add.- Returns:
- This builder for chaining.
-
clearTargetServiceAccounts
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;
- Returns:
- This builder for chaining.
-
addTargetServiceAccountsBytes
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;
- Parameters:
value
- The bytes of the targetServiceAccounts to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final FirewallPolicyRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRule.Builder>
-
mergeUnknownFields
public final FirewallPolicyRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRule.Builder>
-
-