- 1.55.0 (latest)
- 1.54.0
- 1.53.0
- 1.52.0
- 1.50.0
- 1.49.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.38.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.1.10
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()
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
values |
Iterable<String> The targetServiceAccounts to add. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
values |
Iterable<String> The targetTags to add. |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public FirewallInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value |
String The targetServiceAccounts to add. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes of the targetServiceAccounts to add. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value |
String The targetTags to add. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes of the targetTags to add. |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
build()
public FirewallInfo build()
Returns | |
---|---|
Type | Description |
FirewallInfo |
buildPartial()
public FirewallInfo buildPartial()
Returns | |
---|---|
Type | Description |
FirewallInfo |
clear()
public FirewallInfo.Builder clear()
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
clearAction()
public FirewallInfo.Builder clearAction()
Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP
string action = 4;
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
clearDirection()
public FirewallInfo.Builder clearDirection()
Possible values: INGRESS, EGRESS
string direction = 3;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public FirewallInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
clearFirewallRuleType()
public FirewallInfo.Builder clearFirewallRuleType()
The firewall rule's type.
.google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public FirewallInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
clearPriority()
public FirewallInfo.Builder clearPriority()
The priority of the firewall rule.
int32 priority = 5;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
clone()
public FirewallInfo.Builder clone()
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
getAction()
public String getAction()
Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP
string action = 4;
Returns | |
---|---|
Type | Description |
String |
The action. |
getActionBytes()
public ByteString getActionBytes()
Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP
string action = 4;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for action. |
getDefaultInstanceForType()
public FirewallInfo getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
FirewallInfo |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 | |
---|---|
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;
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 | |
---|---|
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;
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. |
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 | |
---|---|
Type | Description |
ByteString |
The bytes for policy. |
getPriority()
public int getPriority()
The priority of the firewall rule.
int32 priority = 5;
Returns | |
---|---|
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;
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 | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
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;
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. |
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for uri. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(FirewallInfo other)
public FirewallInfo.Builder mergeFrom(FirewallInfo other)
Parameter | |
---|---|
Name | Description |
other |
FirewallInfo |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public FirewallInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public FirewallInfo.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FirewallInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
setAction(String value)
public FirewallInfo.Builder setAction(String value)
Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP
string action = 4;
Parameter | |
---|---|
Name | Description |
value |
String The action to set. |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
setActionBytes(ByteString value)
public FirewallInfo.Builder setActionBytes(ByteString value)
Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP
string action = 4;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for action to set. |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
setDirection(String value)
public FirewallInfo.Builder setDirection(String value)
Possible values: INGRESS, EGRESS
string direction = 3;
Parameter | |
---|---|
Name | Description |
value |
String The direction to set. |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
setDirectionBytes(ByteString value)
public FirewallInfo.Builder setDirectionBytes(ByteString value)
Possible values: INGRESS, EGRESS
string direction = 3;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for direction to set. |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
setDisplayName(String value)
public FirewallInfo.Builder setDisplayName(String value)
The display name of the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules.
string display_name = 1;
Parameter | |
---|---|
Name | Description |
value |
String The displayName to set. |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public FirewallInfo.Builder setDisplayNameBytes(ByteString value)
The display name of the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules.
string display_name = 1;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for displayName to set. |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public FirewallInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
setFirewallRuleType(FirewallInfo.FirewallRuleType value)
public FirewallInfo.Builder setFirewallRuleType(FirewallInfo.FirewallRuleType value)
The firewall rule's type.
.google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;
Parameter | |
---|---|
Name | Description |
value |
FirewallInfo.FirewallRuleType The firewallRuleType to set. |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
setFirewallRuleTypeValue(int value)
public FirewallInfo.Builder setFirewallRuleTypeValue(int value)
The firewall rule's type.
.google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for firewallRuleType to set. |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
setNetworkUri(String value)
public FirewallInfo.Builder setNetworkUri(String value)
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;
Parameter | |
---|---|
Name | Description |
value |
String The networkUri to set. |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
setNetworkUriBytes(ByteString value)
public FirewallInfo.Builder setNetworkUriBytes(ByteString value)
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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for networkUri to set. |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
setPolicy(String value)
public FirewallInfo.Builder setPolicy(String value)
The hierarchical firewall policy that this rule is associated with. This field is not applicable to VPC firewall rules.
string policy = 9;
Parameter | |
---|---|
Name | Description |
value |
String The policy to set. |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
setPolicyBytes(ByteString value)
public FirewallInfo.Builder setPolicyBytes(ByteString value)
The hierarchical firewall policy that this rule is associated with. This field is not applicable to VPC firewall rules.
string policy = 9;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for policy to set. |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
setPriority(int value)
public FirewallInfo.Builder setPriority(int value)
The priority of the firewall rule.
int32 priority = 5;
Parameter | |
---|---|
Name | Description |
value |
int The priority to set. |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public FirewallInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
setTargetServiceAccounts(int index, String value)
public FirewallInfo.Builder setTargetServiceAccounts(int index, String value)
The target service accounts specified by the firewall rule.
repeated string target_service_accounts = 8;
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
String The targetServiceAccounts to set. |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
setTargetTags(int index, String value)
public FirewallInfo.Builder setTargetTags(int index, 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;
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
String The targetTags to set. |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final FirewallInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
setUri(String value)
public FirewallInfo.Builder setUri(String value)
The URI of the VPC firewall rule. This field is not applicable to implied firewall rules or hierarchical firewall policy rules.
string uri = 2;
Parameter | |
---|---|
Name | Description |
value |
String The uri to set. |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |
setUriBytes(ByteString value)
public FirewallInfo.Builder setUriBytes(ByteString value)
The URI of the VPC firewall rule. This field is not applicable to implied firewall rules or hierarchical firewall policy rules.
string uri = 2;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for uri to set. |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
This builder for chaining. |