Package com.google.cloud.compute.v1
Class FirewallPolicyRule
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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
public final class FirewallPolicyRule extends com.google.protobuf.GeneratedMessageV3 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
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FirewallPolicyRule.Builder
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).static class
FirewallPolicyRule.Direction
The direction in which this rule applies.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ACTION_FIELD_NUMBER
static int
DESCRIPTION_FIELD_NUMBER
static int
DIRECTION_FIELD_NUMBER
static int
DISABLED_FIELD_NUMBER
static int
ENABLE_LOGGING_FIELD_NUMBER
static int
KIND_FIELD_NUMBER
static int
MATCH_FIELD_NUMBER
static int
PRIORITY_FIELD_NUMBER
static int
RULE_NAME_FIELD_NUMBER
static int
RULE_TUPLE_COUNT_FIELD_NUMBER
static int
TARGET_RESOURCES_FIELD_NUMBER
static int
TARGET_SECURE_TAGS_FIELD_NUMBER
static int
TARGET_SERVICE_ACCOUNTS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
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.static FirewallPolicyRule
getDefaultInstance()
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()
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.FirewallPolicyRuleMatcherOrBuilder
getMatchOrBuilder()
A match condition that incoming traffic is evaluated against.com.google.protobuf.Parser<FirewallPolicyRule>
getParserForType()
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.int
getSerializedSize()
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.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.int
hashCode()
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()
static FirewallPolicyRule.Builder
newBuilder()
static FirewallPolicyRule.Builder
newBuilder(FirewallPolicyRule prototype)
FirewallPolicyRule.Builder
newBuilderForType()
protected FirewallPolicyRule.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static FirewallPolicyRule
parseDelimitedFrom(InputStream input)
static FirewallPolicyRule
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static FirewallPolicyRule
parseFrom(byte[] data)
static FirewallPolicyRule
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static FirewallPolicyRule
parseFrom(com.google.protobuf.ByteString data)
static FirewallPolicyRule
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static FirewallPolicyRule
parseFrom(com.google.protobuf.CodedInputStream input)
static FirewallPolicyRule
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static FirewallPolicyRule
parseFrom(InputStream input)
static FirewallPolicyRule
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static FirewallPolicyRule
parseFrom(ByteBuffer data)
static FirewallPolicyRule
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<FirewallPolicyRule>
parser()
FirewallPolicyRule.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ACTION_FIELD_NUMBER
public static final int ACTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DIRECTION_FIELD_NUMBER
public static final int DIRECTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISABLED_FIELD_NUMBER
public static final int DISABLED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENABLE_LOGGING_FIELD_NUMBER
public static final int ENABLE_LOGGING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MATCH_FIELD_NUMBER
public static final int MATCH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRIORITY_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RULE_NAME_FIELD_NUMBER
public static final int RULE_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RULE_TUPLE_COUNT_FIELD_NUMBER
public static final int RULE_TUPLE_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TARGET_RESOURCES_FIELD_NUMBER
public static final int TARGET_RESOURCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TARGET_SECURE_TAGS_FIELD_NUMBER
public static final int TARGET_SECURE_TAGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TARGET_SERVICE_ACCOUNTS_FIELD_NUMBER
public static final int TARGET_SERVICE_ACCOUNTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
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
-
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
-
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
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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
public static FirewallPolicyRule parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static FirewallPolicyRule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static FirewallPolicyRule parseDelimitedFrom(InputStream input) throws IOException
- 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
public FirewallPolicyRule.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static FirewallPolicyRule.Builder newBuilder()
-
newBuilder
public static FirewallPolicyRule.Builder newBuilder(FirewallPolicyRule prototype)
-
toBuilder
public FirewallPolicyRule.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected FirewallPolicyRule.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static FirewallPolicyRule getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<FirewallPolicyRule> parser()
-
getParserForType
public com.google.protobuf.Parser<FirewallPolicyRule> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public FirewallPolicyRule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-