public final class FirewallInfo extends GeneratedMessageV3 implements FirewallInfoOrBuilder
For display only. Metadata associated with a VPC firewall rule, an implied
VPC firewall rule, or a hierarchical firewall policy rule.
Protobuf type google.cloud.networkmanagement.v1.FirewallInfo
Static Fields
ACTION_FIELD_NUMBER
public static final int ACTION_FIELD_NUMBER
Field Value
DIRECTION_FIELD_NUMBER
public static final int DIRECTION_FIELD_NUMBER
Field Value
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
FIREWALL_RULE_TYPE_FIELD_NUMBER
public static final int FIREWALL_RULE_TYPE_FIELD_NUMBER
Field Value
NETWORK_URI_FIELD_NUMBER
public static final int NETWORK_URI_FIELD_NUMBER
Field Value
POLICY_FIELD_NUMBER
public static final int POLICY_FIELD_NUMBER
Field Value
PRIORITY_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER
Field Value
TARGET_SERVICE_ACCOUNTS_FIELD_NUMBER
public static final int TARGET_SERVICE_ACCOUNTS_FIELD_NUMBER
Field Value
public static final int TARGET_TAGS_FIELD_NUMBER
Field Value
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static FirewallInfo getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static FirewallInfo.Builder newBuilder()
Returns
newBuilder(FirewallInfo prototype)
public static FirewallInfo.Builder newBuilder(FirewallInfo prototype)
Parameter
Returns
public static FirewallInfo parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static FirewallInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static FirewallInfo parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static FirewallInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static FirewallInfo parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static FirewallInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FirewallInfo parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static FirewallInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FirewallInfo parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static FirewallInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static FirewallInfo parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static FirewallInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<FirewallInfo> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAction()
public String getAction()
Possible values: ALLOW, DENY
string action = 4;
Returns
Type | Description |
String | The action.
|
getActionBytes()
public ByteString getActionBytes()
Possible values: ALLOW, DENY
string action = 4;
Returns
getDefaultInstanceForType()
public FirewallInfo getDefaultInstanceForType()
Returns
getDirection()
public String getDirection()
Possible values: INGRESS, EGRESS
string direction = 3;
Returns
Type | Description |
String | The direction.
|
getDirectionBytes()
public ByteString getDirectionBytes()
Possible values: INGRESS, EGRESS
string direction = 3;
Returns
getDisplayName()
public String getDisplayName()
The display name of the VPC firewall rule. This field is not applicable
to hierarchical firewall policy rules.
string display_name = 1;
Returns
Type | Description |
String | The displayName.
|
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
The display name of the VPC firewall rule. This field is not applicable
to hierarchical firewall policy rules.
string display_name = 1;
Returns
Type | Description |
ByteString | The bytes for displayName.
|
getFirewallRuleType()
public FirewallInfo.FirewallRuleType getFirewallRuleType()
The firewall rule's type.
.google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;
Returns
getFirewallRuleTypeValue()
public int getFirewallRuleTypeValue()
The firewall rule's type.
.google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;
Returns
Type | Description |
int | The enum numeric value on the wire for firewallRuleType.
|
getNetworkUri()
public String getNetworkUri()
The URI of the VPC network that the firewall rule is associated with.
This field is not applicable to hierarchical firewall policy rules.
string network_uri = 6;
Returns
Type | Description |
String | The networkUri.
|
getNetworkUriBytes()
public ByteString getNetworkUriBytes()
The URI of the VPC network that the firewall rule is associated with.
This field is not applicable to hierarchical firewall policy rules.
string network_uri = 6;
Returns
Type | Description |
ByteString | The bytes for networkUri.
|
getParserForType()
public Parser<FirewallInfo> getParserForType()
Returns
Overrides
getPolicy()
public String getPolicy()
The hierarchical firewall policy that this rule is associated with.
This field is not applicable to VPC firewall rules.
string policy = 9;
Returns
Type | Description |
String | The policy.
|
getPolicyBytes()
public ByteString getPolicyBytes()
The hierarchical firewall policy that this rule is associated with.
This field is not applicable to VPC firewall rules.
string policy = 9;
Returns
getPriority()
The priority of the firewall rule.
int32 priority = 5;
Returns
Type | Description |
int | The priority.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getTargetServiceAccounts(int index)
public String getTargetServiceAccounts(int index)
The target service accounts specified by the firewall rule.
repeated string target_service_accounts = 8;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The targetServiceAccounts at the given index.
|
getTargetServiceAccountsBytes(int index)
public ByteString getTargetServiceAccountsBytes(int index)
The target service accounts specified by the firewall rule.
repeated string target_service_accounts = 8;
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the targetServiceAccounts at the given index.
|
getTargetServiceAccountsCount()
public int getTargetServiceAccountsCount()
The target service accounts specified by the firewall rule.
repeated string target_service_accounts = 8;
Returns
Type | Description |
int | The count of targetServiceAccounts.
|
getTargetServiceAccountsList()
public ProtocolStringList getTargetServiceAccountsList()
The target service accounts specified by the firewall rule.
repeated string target_service_accounts = 8;
Returns
public String getTargetTags(int index)
The target tags defined by the VPC firewall rule. This field is not
applicable to hierarchical firewall policy rules.
repeated string target_tags = 7;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The targetTags at the given index.
|
public ByteString getTargetTagsBytes(int index)
The target tags defined by the VPC firewall rule. This field is not
applicable to hierarchical firewall policy rules.
repeated string target_tags = 7;
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the targetTags at the given index.
|
public int getTargetTagsCount()
The target tags defined by the VPC firewall rule. This field is not
applicable to hierarchical firewall policy rules.
repeated string target_tags = 7;
Returns
Type | Description |
int | The count of targetTags.
|
public ProtocolStringList getTargetTagsList()
The target tags defined by the VPC firewall rule. This field is not
applicable to hierarchical firewall policy rules.
repeated string target_tags = 7;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getUri()
The URI of the VPC firewall rule. This field is not applicable to
implied firewall rules or hierarchical firewall policy rules.
string uri = 2;
Returns
getUriBytes()
public ByteString getUriBytes()
The URI of the VPC firewall rule. This field is not applicable to
implied firewall rules or hierarchical firewall policy rules.
string uri = 2;
Returns
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public FirewallInfo.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected FirewallInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public FirewallInfo.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions