public static final class FirewallInfo.Builder extends GeneratedMessageV3.Builder<FirewallInfo.Builder> 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > FirewallInfo.BuilderImplements
FirewallInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllTargetServiceAccounts(Iterable<String> values)
public FirewallInfo.Builder addAllTargetServiceAccounts(Iterable<String> values)
The target service accounts specified by the firewall rule.
repeated string target_service_accounts = 8;
Name | Description |
values | Iterable<String> The targetServiceAccounts to add. |
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
addAllTargetTags(Iterable<String> values)
public FirewallInfo.Builder addAllTargetTags(Iterable<String> values)
The target tags defined by the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules.
repeated string target_tags = 7;
Name | Description |
values | Iterable<String> The targetTags to add. |
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public FirewallInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
FirewallInfo.Builder |
addTargetServiceAccounts(String value)
public FirewallInfo.Builder addTargetServiceAccounts(String value)
The target service accounts specified by the firewall rule.
repeated string target_service_accounts = 8;
Name | Description |
value | String The targetServiceAccounts to add. |
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
addTargetServiceAccountsBytes(ByteString value)
public FirewallInfo.Builder addTargetServiceAccountsBytes(ByteString value)
The target service accounts specified by the firewall rule.
repeated string target_service_accounts = 8;
Name | Description |
value | ByteString The bytes of the targetServiceAccounts to add. |
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
addTargetTags(String value)
public FirewallInfo.Builder addTargetTags(String value)
The target tags defined by the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules.
repeated string target_tags = 7;
Name | Description |
value | String The targetTags to add. |
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
addTargetTagsBytes(ByteString value)
public FirewallInfo.Builder addTargetTagsBytes(ByteString value)
The target tags defined by the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules.
repeated string target_tags = 7;
Name | Description |
value | ByteString The bytes of the targetTags to add. |
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
build()
public FirewallInfo build()
Type | Description |
FirewallInfo |
buildPartial()
public FirewallInfo buildPartial()
Type | Description |
FirewallInfo |
clear()
public FirewallInfo.Builder clear()
Type | Description |
FirewallInfo.Builder |
clearAction()
public FirewallInfo.Builder clearAction()
Possible values: ALLOW, DENY
string action = 4;
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
clearDirection()
public FirewallInfo.Builder clearDirection()
Possible values: INGRESS, EGRESS
string direction = 3;
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
clearDisplayName()
public FirewallInfo.Builder clearDisplayName()
The display name of the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules.
string display_name = 1;
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public FirewallInfo.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
FirewallInfo.Builder |
clearFirewallRuleType()
public FirewallInfo.Builder clearFirewallRuleType()
The firewall rule's type.
.google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
clearNetworkUri()
public FirewallInfo.Builder clearNetworkUri()
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;
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public FirewallInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
FirewallInfo.Builder |
clearPolicy()
public FirewallInfo.Builder clearPolicy()
The hierarchical firewall policy that this rule is associated with. This field is not applicable to VPC firewall rules.
string policy = 9;
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
clearPriority()
public FirewallInfo.Builder clearPriority()
The priority of the firewall rule.
int32 priority = 5;
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
clearTargetServiceAccounts()
public FirewallInfo.Builder clearTargetServiceAccounts()
The target service accounts specified by the firewall rule.
repeated string target_service_accounts = 8;
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
clearTargetTags()
public FirewallInfo.Builder clearTargetTags()
The target tags defined by the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules.
repeated string target_tags = 7;
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
clearUri()
public FirewallInfo.Builder clearUri()
The URI of the VPC firewall rule. This field is not applicable to implied firewall rules or hierarchical firewall policy rules.
string uri = 2;
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
clone()
public FirewallInfo.Builder clone()
Type | Description |
FirewallInfo.Builder |
getAction()
public String getAction()
Possible values: ALLOW, DENY
string action = 4;
Type | Description |
String | The action. |
getActionBytes()
public ByteString getActionBytes()
Possible values: ALLOW, DENY
string action = 4;
Type | Description |
ByteString | The bytes for action. |
getDefaultInstanceForType()
public FirewallInfo getDefaultInstanceForType()
Type | Description |
FirewallInfo |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDirection()
public String getDirection()
Possible values: INGRESS, EGRESS
string direction = 3;
Type | Description |
String | The direction. |
getDirectionBytes()
public ByteString getDirectionBytes()
Possible values: INGRESS, EGRESS
string direction = 3;
Type | Description |
ByteString | The bytes for direction. |
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;
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;
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;
Type | Description |
FirewallInfo.FirewallRuleType | The firewallRuleType. |
getFirewallRuleTypeValue()
public int getFirewallRuleTypeValue()
The firewall rule's type.
.google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;
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;
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;
Type | Description |
ByteString | The bytes for networkUri. |
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;
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;
Type | Description |
ByteString | The bytes for policy. |
getPriority()
public int getPriority()
The priority of the firewall rule.
int32 priority = 5;
Type | Description |
int | The priority. |
getTargetServiceAccounts(int index)
public String getTargetServiceAccounts(int index)
The target service accounts specified by the firewall rule.
repeated string target_service_accounts = 8;
Name | Description |
index | int The index of the element to return. |
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;
Name | Description |
index | int The index of the value to return. |
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;
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;
Type | Description |
ProtocolStringList | A list containing the targetServiceAccounts. |
getTargetTags(int index)
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;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The targetTags at the given index. |
getTargetTagsBytes(int 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;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the targetTags at the given index. |
getTargetTagsCount()
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;
Type | Description |
int | The count of targetTags. |
getTargetTagsList()
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;
Type | Description |
ProtocolStringList | A list containing the targetTags. |
getUri()
public String 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;
Type | Description |
String | The uri. |
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;
Type | Description |
ByteString | The bytes for uri. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(FirewallInfo other)
public FirewallInfo.Builder mergeFrom(FirewallInfo other)
Name | Description |
other | FirewallInfo |
Type | Description |
FirewallInfo.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public FirewallInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
FirewallInfo.Builder |