public final class FirewallPolicyRuleMatcher extends GeneratedMessageV3 implements FirewallPolicyRuleMatcherOrBuilder
Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified.
Protobuf type google.cloud.compute.v1.FirewallPolicyRuleMatcher
Static Fields
DEST_IP_RANGES_FIELD_NUMBER
public static final int DEST_IP_RANGES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
LAYER4_CONFIGS_FIELD_NUMBER
public static final int LAYER4_CONFIGS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SRC_IP_RANGES_FIELD_NUMBER
public static final int SRC_IP_RANGES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int SRC_SECURE_TAGS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static FirewallPolicyRuleMatcher getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static FirewallPolicyRuleMatcher.Builder newBuilder()
newBuilder(FirewallPolicyRuleMatcher prototype)
public static FirewallPolicyRuleMatcher.Builder newBuilder(FirewallPolicyRuleMatcher prototype)
public static FirewallPolicyRuleMatcher parseDelimitedFrom(InputStream input)
public static FirewallPolicyRuleMatcher parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static FirewallPolicyRuleMatcher parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static FirewallPolicyRuleMatcher parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static FirewallPolicyRuleMatcher parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static FirewallPolicyRuleMatcher parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static FirewallPolicyRuleMatcher parseFrom(CodedInputStream input)
public static FirewallPolicyRuleMatcher parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static FirewallPolicyRuleMatcher parseFrom(InputStream input)
public static FirewallPolicyRuleMatcher parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static FirewallPolicyRuleMatcher parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static FirewallPolicyRuleMatcher parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<FirewallPolicyRuleMatcher> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public FirewallPolicyRuleMatcher getDefaultInstanceForType()
getDestIpRanges(int index)
public String getDestIpRanges(int index)
CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000.
repeated string dest_ip_ranges = 337357713;
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
String | The destIpRanges at the given index.
|
getDestIpRangesBytes(int index)
public ByteString getDestIpRangesBytes(int index)
CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000.
repeated string dest_ip_ranges = 337357713;
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
Type | Description |
ByteString | The bytes of the destIpRanges at the given index.
|
getDestIpRangesCount()
public int getDestIpRangesCount()
CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000.
repeated string dest_ip_ranges = 337357713;
Returns |
---|
Type | Description |
int | The count of destIpRanges.
|
getDestIpRangesList()
public ProtocolStringList getDestIpRangesList()
CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000.
repeated string dest_ip_ranges = 337357713;
getLayer4Configs(int index)
public FirewallPolicyRuleMatcherLayer4Config getLayer4Configs(int index)
Pairs of IP protocols and ports that the rule should match.
repeated .google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4Config layer4_configs = 373534261;
Parameter |
---|
Name | Description |
index | int
|
getLayer4ConfigsCount()
public int getLayer4ConfigsCount()
Pairs of IP protocols and ports that the rule should match.
repeated .google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4Config layer4_configs = 373534261;
Returns |
---|
Type | Description |
int | |
getLayer4ConfigsList()
public List<FirewallPolicyRuleMatcherLayer4Config> getLayer4ConfigsList()
Pairs of IP protocols and ports that the rule should match.
repeated .google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4Config layer4_configs = 373534261;
getLayer4ConfigsOrBuilder(int index)
public FirewallPolicyRuleMatcherLayer4ConfigOrBuilder getLayer4ConfigsOrBuilder(int index)
Pairs of IP protocols and ports that the rule should match.
repeated .google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4Config layer4_configs = 373534261;
Parameter |
---|
Name | Description |
index | int
|
getLayer4ConfigsOrBuilderList()
public List<? extends FirewallPolicyRuleMatcherLayer4ConfigOrBuilder> getLayer4ConfigsOrBuilderList()
Pairs of IP protocols and ports that the rule should match.
repeated .google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4Config layer4_configs = 373534261;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4ConfigOrBuilder> | |
getParserForType()
public Parser<FirewallPolicyRuleMatcher> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getSrcIpRanges(int index)
public String getSrcIpRanges(int index)
CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000.
repeated string src_ip_ranges = 432128083;
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
String | The srcIpRanges at the given index.
|
getSrcIpRangesBytes(int index)
public ByteString getSrcIpRangesBytes(int index)
CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000.
repeated string src_ip_ranges = 432128083;
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
Type | Description |
ByteString | The bytes of the srcIpRanges at the given index.
|
getSrcIpRangesCount()
public int getSrcIpRangesCount()
CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000.
repeated string src_ip_ranges = 432128083;
Returns |
---|
Type | Description |
int | The count of srcIpRanges.
|
getSrcIpRangesList()
public ProtocolStringList getSrcIpRangesList()
CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000.
repeated string src_ip_ranges = 432128083;
public FirewallPolicyRuleSecureTag getSrcSecureTags(int index)
List of secure tag values, which should be matched at the source of the traffic. For INGRESS rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be ignored. Maximum number of source tag values allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag src_secure_tags = 508791302;
Parameter |
---|
Name | Description |
index | int
|
public int getSrcSecureTagsCount()
List of secure tag values, which should be matched at the source of the traffic. For INGRESS rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be ignored. Maximum number of source tag values allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag src_secure_tags = 508791302;
Returns |
---|
Type | Description |
int | |
public List<FirewallPolicyRuleSecureTag> getSrcSecureTagsList()
List of secure tag values, which should be matched at the source of the traffic. For INGRESS rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be ignored. Maximum number of source tag values allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag src_secure_tags = 508791302;
public FirewallPolicyRuleSecureTagOrBuilder getSrcSecureTagsOrBuilder(int index)
List of secure tag values, which should be matched at the source of the traffic. For INGRESS rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be ignored. Maximum number of source tag values allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag src_secure_tags = 508791302;
Parameter |
---|
Name | Description |
index | int
|
public List<? extends FirewallPolicyRuleSecureTagOrBuilder> getSrcSecureTagsOrBuilderList()
List of secure tag values, which should be matched at the source of the traffic. For INGRESS rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be ignored. Maximum number of source tag values allowed is 256.
repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag src_secure_tags = 508791302;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.compute.v1.FirewallPolicyRuleSecureTagOrBuilder> | |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public FirewallPolicyRuleMatcher.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected FirewallPolicyRuleMatcher.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public FirewallPolicyRuleMatcher.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides