public final class IpRule extends GeneratedMessage implements IpRuleOrBuilder
IP rule information.
Protobuf type google.cloud.securitycenter.v2.IpRule
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
PORT_RANGES_FIELD_NUMBER
public static final int PORT_RANGES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PROTOCOL_FIELD_NUMBER
public static final int PROTOCOL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static IpRule getDefaultInstance()
| Returns |
| Type |
Description |
IpRule |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static IpRule.Builder newBuilder()
newBuilder(IpRule prototype)
public static IpRule.Builder newBuilder(IpRule prototype)
| Parameter |
| Name |
Description |
prototype |
IpRule
|
public static IpRule parseDelimitedFrom(InputStream input)
| Returns |
| Type |
Description |
IpRule |
|
public static IpRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
IpRule |
|
parseFrom(byte[] data)
public static IpRule parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
| Returns |
| Type |
Description |
IpRule |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static IpRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
IpRule |
|
parseFrom(ByteString data)
public static IpRule parseFrom(ByteString data)
| Returns |
| Type |
Description |
IpRule |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static IpRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
IpRule |
|
public static IpRule parseFrom(CodedInputStream input)
| Returns |
| Type |
Description |
IpRule |
|
public static IpRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
IpRule |
|
public static IpRule parseFrom(InputStream input)
| Returns |
| Type |
Description |
IpRule |
|
public static IpRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
IpRule |
|
parseFrom(ByteBuffer data)
public static IpRule parseFrom(ByteBuffer data)
| Returns |
| Type |
Description |
IpRule |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static IpRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
IpRule |
|
parser()
public static Parser<IpRule> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public IpRule getDefaultInstanceForType()
| Returns |
| Type |
Description |
IpRule |
|
getParserForType()
public Parser<IpRule> getParserForType()
Overrides
getPortRanges(int index)
public IpRule.PortRange getPortRanges(int index)
Optional. An optional list of ports to which this rule applies. This field
is only applicable for the UDP or (S)TCP protocols. Each entry must be
either an integer or a range including a min and max port number.
repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getPortRangesCount()
public int getPortRangesCount()
Optional. An optional list of ports to which this rule applies. This field
is only applicable for the UDP or (S)TCP protocols. Each entry must be
either an integer or a range including a min and max port number.
repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
|
getPortRangesList()
public List<IpRule.PortRange> getPortRangesList()
Optional. An optional list of ports to which this rule applies. This field
is only applicable for the UDP or (S)TCP protocols. Each entry must be
either an integer or a range including a min and max port number.
repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL];
getPortRangesOrBuilder(int index)
public IpRule.PortRangeOrBuilder getPortRangesOrBuilder(int index)
Optional. An optional list of ports to which this rule applies. This field
is only applicable for the UDP or (S)TCP protocols. Each entry must be
either an integer or a range including a min and max port number.
repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getPortRangesOrBuilderList()
public List<? extends IpRule.PortRangeOrBuilder> getPortRangesOrBuilderList()
Optional. An optional list of ports to which this rule applies. This field
is only applicable for the UDP or (S)TCP protocols. Each entry must be
either an integer or a range including a min and max port number.
repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.securitycenter.v2.IpRule.PortRangeOrBuilder> |
|
getProtocol()
public String getProtocol()
The IP protocol this rule applies to. This value can either be one of the
following well known protocol strings (TCP, UDP, ICMP, ESP, AH, IPIP,
SCTP) or a string representation of the integer value.
string protocol = 1;
| Returns |
| Type |
Description |
String |
The protocol.
|
getProtocolBytes()
public ByteString getProtocolBytes()
The IP protocol this rule applies to. This value can either be one of the
following well known protocol strings (TCP, UDP, ICMP, ESP, AH, IPIP,
SCTP) or a string representation of the integer value.
string protocol = 1;
| Returns |
| Type |
Description |
ByteString |
The bytes for protocol.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public IpRule.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected IpRule.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public IpRule.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides