Class PacketMirroringFilter (1.13.0)

public final class PacketMirroringFilter extends GeneratedMessageV3 implements PacketMirroringFilterOrBuilder

Protobuf type google.cloud.compute.v1.PacketMirroringFilter

Static Fields

CIDR_RANGES_FIELD_NUMBER

public static final int CIDR_RANGES_FIELD_NUMBER
Field Value
TypeDescription
int

DIRECTION_FIELD_NUMBER

public static final int DIRECTION_FIELD_NUMBER
Field Value
TypeDescription
int

I_P_PROTOCOLS_FIELD_NUMBER

public static final int I_P_PROTOCOLS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PacketMirroringFilter getDefaultInstance()
Returns
TypeDescription
PacketMirroringFilter

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static PacketMirroringFilter.Builder newBuilder()
Returns
TypeDescription
PacketMirroringFilter.Builder

newBuilder(PacketMirroringFilter prototype)

public static PacketMirroringFilter.Builder newBuilder(PacketMirroringFilter prototype)
Parameter
NameDescription
prototypePacketMirroringFilter
Returns
TypeDescription
PacketMirroringFilter.Builder

parseDelimitedFrom(InputStream input)

public static PacketMirroringFilter parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PacketMirroringFilter
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PacketMirroringFilter parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PacketMirroringFilter
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PacketMirroringFilter parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PacketMirroringFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PacketMirroringFilter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PacketMirroringFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PacketMirroringFilter parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PacketMirroringFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PacketMirroringFilter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PacketMirroringFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PacketMirroringFilter parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PacketMirroringFilter
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PacketMirroringFilter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PacketMirroringFilter
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PacketMirroringFilter parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PacketMirroringFilter
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PacketMirroringFilter parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PacketMirroringFilter
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PacketMirroringFilter parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PacketMirroringFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PacketMirroringFilter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PacketMirroringFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PacketMirroringFilter> parser()
Returns
TypeDescription
Parser<PacketMirroringFilter>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCidrRanges(int index)

public String getCidrRanges(int index)

IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.

repeated string cidr_ranges = 487901697;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The cidrRanges at the given index.

getCidrRangesBytes(int index)

public ByteString getCidrRangesBytes(int index)

IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.

repeated string cidr_ranges = 487901697;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the cidrRanges at the given index.

getCidrRangesCount()

public int getCidrRangesCount()

IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.

repeated string cidr_ranges = 487901697;

Returns
TypeDescription
int

The count of cidrRanges.

getCidrRangesList()

public ProtocolStringList getCidrRangesList()

IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.

repeated string cidr_ranges = 487901697;

Returns
TypeDescription
ProtocolStringList

A list containing the cidrRanges.

getDefaultInstanceForType()

public PacketMirroringFilter getDefaultInstanceForType()
Returns
TypeDescription
PacketMirroringFilter

getDirection()

public String getDirection()

Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH. Check the Direction enum for the list of possible values.

optional string direction = 111150975;

Returns
TypeDescription
String

The direction.

getDirectionBytes()

public ByteString getDirectionBytes()

Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH. Check the Direction enum for the list of possible values.

optional string direction = 111150975;

Returns
TypeDescription
ByteString

The bytes for direction.

getIPProtocols(int index)

public String getIPProtocols(int index)

Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.

repeated string I_p_protocols = 98544854;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The iPProtocols at the given index.

getIPProtocolsBytes(int index)

public ByteString getIPProtocolsBytes(int index)

Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.

repeated string I_p_protocols = 98544854;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the iPProtocols at the given index.

getIPProtocolsCount()

public int getIPProtocolsCount()

Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.

repeated string I_p_protocols = 98544854;

Returns
TypeDescription
int

The count of iPProtocols.

getIPProtocolsList()

public ProtocolStringList getIPProtocolsList()

Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.

repeated string I_p_protocols = 98544854;

Returns
TypeDescription
ProtocolStringList

A list containing the iPProtocols.

getParserForType()

public Parser<PacketMirroringFilter> getParserForType()
Returns
TypeDescription
Parser<PacketMirroringFilter>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasDirection()

public boolean hasDirection()

Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH. Check the Direction enum for the list of possible values.

optional string direction = 111150975;

Returns
TypeDescription
boolean

Whether the direction field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PacketMirroringFilter.Builder newBuilderForType()
Returns
TypeDescription
PacketMirroringFilter.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PacketMirroringFilter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PacketMirroringFilter.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PacketMirroringFilter.Builder toBuilder()
Returns
TypeDescription
PacketMirroringFilter.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException