Package com.google.cloud.compute.v1
Class FirewallPolicyRule
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.FirewallPolicyRule
- All Implemented Interfaces:
FirewallPolicyRuleOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class FirewallPolicyRule
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a rule that describes one or more match conditions along with the action to be taken when traffic matches this condition (allow or deny).static enumThe direction in which this rule applies.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe Action to perform when the client connection triggers the rule.com.google.protobuf.ByteStringThe Action to perform when the client connection triggers the rule.static FirewallPolicyRuleAn optional description for this resource.com.google.protobuf.ByteStringAn optional description for this resource.static final com.google.protobuf.Descriptors.DescriptorThe direction in which this rule applies.com.google.protobuf.ByteStringThe direction in which this rule applies.booleanDenotes whether the firewall policy rule is disabled.booleanDenotes whether to enable logging for a particular rule.getKind()Output only.com.google.protobuf.ByteStringOutput only.getMatch()A match condition that incoming traffic is evaluated against.A match condition that incoming traffic is evaluated against.com.google.protobuf.Parser<FirewallPolicyRule>intAn integer indicating the priority of a rule in the list.An optional name for the rule.com.google.protobuf.ByteStringAn optional name for the rule.intOutput only.A fully-qualified URL of a SecurityProfile resource instance.com.google.protobuf.ByteStringA fully-qualified URL of a SecurityProfile resource instance.intgetTargetResources(int index) A list of network resource URLs to which this rule applies.com.google.protobuf.ByteStringgetTargetResourcesBytes(int index) A list of network resource URLs to which this rule applies.intA list of network resource URLs to which this rule applies.com.google.protobuf.ProtocolStringListA list of network resource URLs to which this rule applies.getTargetSecureTags(int index) A list of secure tags that controls which instances the firewall rule applies to.intA list of secure tags that controls which instances the firewall rule applies to.A list of secure tags that controls which instances the firewall rule applies to.getTargetSecureTagsOrBuilder(int index) A list of secure tags that controls which instances the firewall rule applies to.List<? extends FirewallPolicyRuleSecureTagOrBuilder>A list of secure tags that controls which instances the firewall rule applies to.getTargetServiceAccounts(int index) A list of service accounts indicating the sets of instances that are applied with this rule.com.google.protobuf.ByteStringgetTargetServiceAccountsBytes(int index) A list of service accounts indicating the sets of instances that are applied with this rule.intA list of service accounts indicating the sets of instances that are applied with this rule.com.google.protobuf.ProtocolStringListA list of service accounts indicating the sets of instances that are applied with this rule.booleanBoolean flag indicating if the traffic should be TLS decrypted.booleanThe Action to perform when the client connection triggers the rule.booleanAn optional description for this resource.booleanThe direction in which this rule applies.booleanDenotes whether the firewall policy rule is disabled.booleanDenotes whether to enable logging for a particular rule.inthashCode()booleanhasKind()Output only.booleanhasMatch()A match condition that incoming traffic is evaluated against.booleanAn integer indicating the priority of a rule in the list.booleanAn optional name for the rule.booleanOutput only.booleanA fully-qualified URL of a SecurityProfile resource instance.booleanBoolean flag indicating if the traffic should be TLS decrypted.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic FirewallPolicyRule.Builderstatic FirewallPolicyRule.BuildernewBuilder(FirewallPolicyRule prototype) protected FirewallPolicyRule.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static FirewallPolicyRuleparseDelimitedFrom(InputStream input) static FirewallPolicyRuleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FirewallPolicyRuleparseFrom(byte[] data) static FirewallPolicyRuleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FirewallPolicyRuleparseFrom(com.google.protobuf.ByteString data) static FirewallPolicyRuleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FirewallPolicyRuleparseFrom(com.google.protobuf.CodedInputStream input) static FirewallPolicyRuleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FirewallPolicyRuleparseFrom(InputStream input) static FirewallPolicyRuleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FirewallPolicyRuleparseFrom(ByteBuffer data) static FirewallPolicyRuleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<FirewallPolicyRule>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ACTION_FIELD_NUMBER
public static final int ACTION_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
DIRECTION_FIELD_NUMBER
public static final int DIRECTION_FIELD_NUMBER- See Also:
-
DISABLED_FIELD_NUMBER
public static final int DISABLED_FIELD_NUMBER- See Also:
-
ENABLE_LOGGING_FIELD_NUMBER
public static final int ENABLE_LOGGING_FIELD_NUMBER- See Also:
-
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER- See Also:
-
MATCH_FIELD_NUMBER
public static final int MATCH_FIELD_NUMBER- See Also:
-
PRIORITY_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER- See Also:
-
RULE_NAME_FIELD_NUMBER
public static final int RULE_NAME_FIELD_NUMBER- See Also:
-
RULE_TUPLE_COUNT_FIELD_NUMBER
public static final int RULE_TUPLE_COUNT_FIELD_NUMBER- See Also:
-
SECURITY_PROFILE_GROUP_FIELD_NUMBER
public static final int SECURITY_PROFILE_GROUP_FIELD_NUMBER- See Also:
-
TARGET_RESOURCES_FIELD_NUMBER
public static final int TARGET_RESOURCES_FIELD_NUMBER- See Also:
-
TARGET_SECURE_TAGS_FIELD_NUMBER
public static final int TARGET_SECURE_TAGS_FIELD_NUMBER- See Also:
-
TARGET_SERVICE_ACCOUNTS_FIELD_NUMBER
public static final int TARGET_SERVICE_ACCOUNTS_FIELD_NUMBER- See Also:
-
TLS_INSPECT_FIELD_NUMBER
public static final int TLS_INSPECT_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasAction
public boolean hasAction()The Action to perform when the client connection triggers the rule. Valid actions for firewall rules are: "allow", "deny", "apply_security_profile_group" and "goto_next". Valid actions for packet mirroring rules are: "mirror", "do_not_mirror" and "goto_next".
optional string action = 187661878;- Specified by:
hasActionin interfaceFirewallPolicyRuleOrBuilder- Returns:
- Whether the action field is set.
-
getAction
The Action to perform when the client connection triggers the rule. Valid actions for firewall rules are: "allow", "deny", "apply_security_profile_group" and "goto_next". Valid actions for packet mirroring rules are: "mirror", "do_not_mirror" and "goto_next".
optional string action = 187661878;- Specified by:
getActionin interfaceFirewallPolicyRuleOrBuilder- Returns:
- The action.
-
getActionBytes
public com.google.protobuf.ByteString getActionBytes()The Action to perform when the client connection triggers the rule. Valid actions for firewall rules are: "allow", "deny", "apply_security_profile_group" and "goto_next". Valid actions for packet mirroring rules are: "mirror", "do_not_mirror" and "goto_next".
optional string action = 187661878;- Specified by:
getActionBytesin interfaceFirewallPolicyRuleOrBuilder- Returns:
- The bytes for action.
-
hasDescription
public boolean hasDescription()An optional description for this resource.
optional string description = 422937596;- Specified by:
hasDescriptionin interfaceFirewallPolicyRuleOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
An optional description for this resource.
optional string description = 422937596;- Specified by:
getDescriptionin interfaceFirewallPolicyRuleOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()An optional description for this resource.
optional string description = 422937596;- Specified by:
getDescriptionBytesin interfaceFirewallPolicyRuleOrBuilder- Returns:
- The bytes for description.
-
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:
hasDirectionin interfaceFirewallPolicyRuleOrBuilder- Returns:
- Whether the direction field is set.
-
getDirection
The direction in which this rule applies. Check the Direction enum for the list of possible values.
optional string direction = 111150975;- Specified by:
getDirectionin 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:
getDirectionBytesin interfaceFirewallPolicyRuleOrBuilder- Returns:
- The bytes for direction.
-
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:
hasDisabledin 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:
getDisabledin interfaceFirewallPolicyRuleOrBuilder- Returns:
- The disabled.
-
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:
hasEnableLoggingin 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:
getEnableLoggingin interfaceFirewallPolicyRuleOrBuilder- Returns:
- The enableLogging.
-
hasKind
public boolean hasKind()Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules andcompute#packetMirroringRule for packet mirroring rules.
optional string kind = 3292052;- Specified by:
hasKindin interfaceFirewallPolicyRuleOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules andcompute#packetMirroringRule for packet mirroring rules.
optional string kind = 3292052;- Specified by:
getKindin interfaceFirewallPolicyRuleOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules andcompute#packetMirroringRule for packet mirroring rules.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceFirewallPolicyRuleOrBuilder- Returns:
- The bytes for kind.
-
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:
hasMatchin interfaceFirewallPolicyRuleOrBuilder- Returns:
- Whether the match field is set.
-
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:
getMatchin interfaceFirewallPolicyRuleOrBuilder- Returns:
- The match.
-
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:
getMatchOrBuilderin 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 priority.
optional int32 priority = 445151652;- Specified by:
hasPriorityin 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 priority.
optional int32 priority = 445151652;- Specified by:
getPriorityin interfaceFirewallPolicyRuleOrBuilder- Returns:
- The priority.
-
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:
hasRuleNamein interfaceFirewallPolicyRuleOrBuilder- Returns:
- Whether the ruleName field is set.
-
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:
getRuleNamein 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:
getRuleNameBytesin interfaceFirewallPolicyRuleOrBuilder- Returns:
- The bytes for ruleName.
-
hasRuleTupleCount
public boolean hasRuleTupleCount()Output only. [Output Only] Calculation of the complexity of a single firewall policy rule.
optional int32 rule_tuple_count = 388342037;- Specified by:
hasRuleTupleCountin interfaceFirewallPolicyRuleOrBuilder- Returns:
- Whether the ruleTupleCount field is set.
-
getRuleTupleCount
public int getRuleTupleCount()Output only. [Output Only] Calculation of the complexity of a single firewall policy rule.
optional int32 rule_tuple_count = 388342037;- Specified by:
getRuleTupleCountin interfaceFirewallPolicyRuleOrBuilder- Returns:
- The ruleTupleCount.
-
hasSecurityProfileGroup
public boolean hasSecurityProfileGroup()A fully-qualified URL of a SecurityProfile resource instance. Example: https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group Must be specified if action is one of 'apply_security_profile_group' or 'mirror'. Cannot be specified for other actions.optional string security_profile_group = 207411626;- Specified by:
hasSecurityProfileGroupin interfaceFirewallPolicyRuleOrBuilder- Returns:
- Whether the securityProfileGroup field is set.
-
getSecurityProfileGroup
A fully-qualified URL of a SecurityProfile resource instance. Example: https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group Must be specified if action is one of 'apply_security_profile_group' or 'mirror'. Cannot be specified for other actions.optional string security_profile_group = 207411626;- Specified by:
getSecurityProfileGroupin interfaceFirewallPolicyRuleOrBuilder- Returns:
- The securityProfileGroup.
-
getSecurityProfileGroupBytes
public com.google.protobuf.ByteString getSecurityProfileGroupBytes()A fully-qualified URL of a SecurityProfile resource instance. Example: https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group Must be specified if action is one of 'apply_security_profile_group' or 'mirror'. Cannot be specified for other actions.optional string security_profile_group = 207411626;- Specified by:
getSecurityProfileGroupBytesin interfaceFirewallPolicyRuleOrBuilder- Returns:
- The bytes for securityProfileGroup.
-
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:
getTargetResourcesListin 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:
getTargetResourcesCountin interfaceFirewallPolicyRuleOrBuilder- Returns:
- The count of targetResources.
-
getTargetResources
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:
getTargetResourcesin 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:
getTargetResourcesBytesin interfaceFirewallPolicyRuleOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the targetResources at the given index.
-
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 astargetServiceAccounts. If neither targetServiceAccounts nortargetSecureTag 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:
getTargetSecureTagsListin interfaceFirewallPolicyRuleOrBuilder
-
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 astargetServiceAccounts. If neither targetServiceAccounts nortargetSecureTag 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:
getTargetSecureTagsOrBuilderListin 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 astargetServiceAccounts. If neither targetServiceAccounts nortargetSecureTag 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:
getTargetSecureTagsCountin interfaceFirewallPolicyRuleOrBuilder
-
getTargetSecureTags
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 astargetServiceAccounts. If neither targetServiceAccounts nortargetSecureTag 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:
getTargetSecureTagsin interfaceFirewallPolicyRuleOrBuilder
-
getTargetSecureTagsOrBuilder
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 astargetServiceAccounts. If neither targetServiceAccounts nortargetSecureTag 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:
getTargetSecureTagsOrBuilderin interfaceFirewallPolicyRuleOrBuilder
-
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:
getTargetServiceAccountsListin 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:
getTargetServiceAccountsCountin interfaceFirewallPolicyRuleOrBuilder- Returns:
- The count of targetServiceAccounts.
-
getTargetServiceAccounts
A list of service accounts indicating the sets of instances that are applied with this rule.
repeated string target_service_accounts = 457639710;- Specified by:
getTargetServiceAccountsin 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:
getTargetServiceAccountsBytesin interfaceFirewallPolicyRuleOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the targetServiceAccounts at the given index.
-
hasTlsInspect
public boolean hasTlsInspect()Boolean flag indicating if the traffic should be TLS decrypted. Can be set only if action = 'apply_security_profile_group' and cannot be set for other actions.
optional bool tls_inspect = 43425488;- Specified by:
hasTlsInspectin interfaceFirewallPolicyRuleOrBuilder- Returns:
- Whether the tlsInspect field is set.
-
getTlsInspect
public boolean getTlsInspect()Boolean flag indicating if the traffic should be TLS decrypted. Can be set only if action = 'apply_security_profile_group' and cannot be set for other actions.
optional bool tls_inspect = 43425488;- Specified by:
getTlsInspectin interfaceFirewallPolicyRuleOrBuilder- Returns:
- The tlsInspect.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static FirewallPolicyRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FirewallPolicyRule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FirewallPolicyRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FirewallPolicyRule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FirewallPolicyRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FirewallPolicyRule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static FirewallPolicyRule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static FirewallPolicyRule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static FirewallPolicyRule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static FirewallPolicyRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected FirewallPolicyRule.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-