public interface IpRulesOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getAllowed()
public abstract Allowed getAllowed()
Tuple with allowed rules.
.google.cloud.securitycenter.v2.Allowed allowed = 2;
Returns | |
---|---|
Type | Description |
Allowed |
The allowed. |
getAllowedOrBuilder()
public abstract AllowedOrBuilder getAllowedOrBuilder()
Tuple with allowed rules.
.google.cloud.securitycenter.v2.Allowed allowed = 2;
Returns | |
---|---|
Type | Description |
AllowedOrBuilder |
getDenied()
public abstract Denied getDenied()
Tuple with denied rules.
.google.cloud.securitycenter.v2.Denied denied = 3;
Returns | |
---|---|
Type | Description |
Denied |
The denied. |
getDeniedOrBuilder()
public abstract DeniedOrBuilder getDeniedOrBuilder()
Tuple with denied rules.
.google.cloud.securitycenter.v2.Denied denied = 3;
Returns | |
---|---|
Type | Description |
DeniedOrBuilder |
getDestinationIpRanges(int index)
public abstract String getDestinationIpRanges(int index)
If destination IP ranges are specified, the firewall rule applies only to traffic that has a destination IP address in these ranges. These ranges must be expressed in CIDR format. Only supports IPv4.
repeated string destination_ip_ranges = 5;
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String |
The destinationIpRanges at the given index. |
getDestinationIpRangesBytes(int index)
public abstract ByteString getDestinationIpRangesBytes(int index)
If destination IP ranges are specified, the firewall rule applies only to traffic that has a destination IP address in these ranges. These ranges must be expressed in CIDR format. Only supports IPv4.
repeated string destination_ip_ranges = 5;
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString |
The bytes of the destinationIpRanges at the given index. |
getDestinationIpRangesCount()
public abstract int getDestinationIpRangesCount()
If destination IP ranges are specified, the firewall rule applies only to traffic that has a destination IP address in these ranges. These ranges must be expressed in CIDR format. Only supports IPv4.
repeated string destination_ip_ranges = 5;
Returns | |
---|---|
Type | Description |
int |
The count of destinationIpRanges. |
getDestinationIpRangesList()
public abstract List<String> getDestinationIpRangesList()
If destination IP ranges are specified, the firewall rule applies only to traffic that has a destination IP address in these ranges. These ranges must be expressed in CIDR format. Only supports IPv4.
repeated string destination_ip_ranges = 5;
Returns | |
---|---|
Type | Description |
List<String> |
A list containing the destinationIpRanges. |
getDirection()
public abstract IpRules.Direction getDirection()
The direction that the rule is applicable to, one of ingress or egress.
.google.cloud.securitycenter.v2.IpRules.Direction direction = 1;
Returns | |
---|---|
Type | Description |
IpRules.Direction |
The direction. |
getDirectionValue()
public abstract int getDirectionValue()
The direction that the rule is applicable to, one of ingress or egress.
.google.cloud.securitycenter.v2.IpRules.Direction direction = 1;
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for direction. |
getExposedServices(int index)
public abstract String getExposedServices(int index)
Name of the network protocol service, such as FTP, that is exposed by the open port. Follows the naming convention available at: https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
repeated string exposed_services = 6;
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String |
The exposedServices at the given index. |
getExposedServicesBytes(int index)
public abstract ByteString getExposedServicesBytes(int index)
Name of the network protocol service, such as FTP, that is exposed by the open port. Follows the naming convention available at: https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
repeated string exposed_services = 6;
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString |
The bytes of the exposedServices at the given index. |
getExposedServicesCount()
public abstract int getExposedServicesCount()
Name of the network protocol service, such as FTP, that is exposed by the open port. Follows the naming convention available at: https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
repeated string exposed_services = 6;
Returns | |
---|---|
Type | Description |
int |
The count of exposedServices. |
getExposedServicesList()
public abstract List<String> getExposedServicesList()
Name of the network protocol service, such as FTP, that is exposed by the open port. Follows the naming convention available at: https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
repeated string exposed_services = 6;
Returns | |
---|---|
Type | Description |
List<String> |
A list containing the exposedServices. |
getRulesCase()
public abstract IpRules.RulesCase getRulesCase()
Returns | |
---|---|
Type | Description |
IpRules.RulesCase |
getSourceIpRanges(int index)
public abstract String getSourceIpRanges(int index)
If source IP ranges are specified, the firewall rule applies only to traffic that has a source IP address in these ranges. These ranges must be expressed in CIDR format. Only supports IPv4.
repeated string source_ip_ranges = 4;
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String |
The sourceIpRanges at the given index. |
getSourceIpRangesBytes(int index)
public abstract ByteString getSourceIpRangesBytes(int index)
If source IP ranges are specified, the firewall rule applies only to traffic that has a source IP address in these ranges. These ranges must be expressed in CIDR format. Only supports IPv4.
repeated string source_ip_ranges = 4;
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString |
The bytes of the sourceIpRanges at the given index. |
getSourceIpRangesCount()
public abstract int getSourceIpRangesCount()
If source IP ranges are specified, the firewall rule applies only to traffic that has a source IP address in these ranges. These ranges must be expressed in CIDR format. Only supports IPv4.
repeated string source_ip_ranges = 4;
Returns | |
---|---|
Type | Description |
int |
The count of sourceIpRanges. |
getSourceIpRangesList()
public abstract List<String> getSourceIpRangesList()
If source IP ranges are specified, the firewall rule applies only to traffic that has a source IP address in these ranges. These ranges must be expressed in CIDR format. Only supports IPv4.
repeated string source_ip_ranges = 4;
Returns | |
---|---|
Type | Description |
List<String> |
A list containing the sourceIpRanges. |
hasAllowed()
public abstract boolean hasAllowed()
Tuple with allowed rules.
.google.cloud.securitycenter.v2.Allowed allowed = 2;
Returns | |
---|---|
Type | Description |
boolean |
Whether the allowed field is set. |
hasDenied()
public abstract boolean hasDenied()
Tuple with denied rules.
.google.cloud.securitycenter.v2.Denied denied = 3;
Returns | |
---|---|
Type | Description |
boolean |
Whether the denied field is set. |