Class PacketMirroringFilter (1.64.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
Type Description
int

DIRECTION_FIELD_NUMBER

public static final int DIRECTION_FIELD_NUMBER
Field Value
Type Description
int

I_P_PROTOCOLS_FIELD_NUMBER

public static final int I_P_PROTOCOLS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PacketMirroringFilter getDefaultInstance()
Returns
Type Description
PacketMirroringFilter

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static PacketMirroringFilter.Builder newBuilder()
Returns
Type Description
PacketMirroringFilter.Builder

newBuilder(PacketMirroringFilter prototype)

public static PacketMirroringFilter.Builder newBuilder(PacketMirroringFilter prototype)
Parameter
Name Description
prototype PacketMirroringFilter
Returns
Type Description
PacketMirroringFilter.Builder

parseDelimitedFrom(InputStream input)

public static PacketMirroringFilter parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PacketMirroringFilter
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PacketMirroringFilter parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PacketMirroringFilter
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PacketMirroringFilter parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PacketMirroringFilter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PacketMirroringFilter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PacketMirroringFilter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PacketMirroringFilter parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PacketMirroringFilter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PacketMirroringFilter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PacketMirroringFilter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PacketMirroringFilter parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PacketMirroringFilter
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PacketMirroringFilter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PacketMirroringFilter
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PacketMirroringFilter parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PacketMirroringFilter
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PacketMirroringFilter parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PacketMirroringFilter
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PacketMirroringFilter parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PacketMirroringFilter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PacketMirroringFilter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PacketMirroringFilter
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PacketMirroringFilter> parser()
Returns
Type Description
Parser<PacketMirroringFilter>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCidrRanges(int index)

public String getCidrRanges(int index)

One or more IPv4 or IPv6 CIDR ranges that apply as filters on the source (ingress) or destination (egress) IP in the IP header. If no ranges are specified, all IPv4 traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use "0.0.0.0/0,::/0".

repeated string cidr_ranges = 487901697;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The cidrRanges at the given index.

getCidrRangesBytes(int index)

public ByteString getCidrRangesBytes(int index)

One or more IPv4 or IPv6 CIDR ranges that apply as filters on the source (ingress) or destination (egress) IP in the IP header. If no ranges are specified, all IPv4 traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use "0.0.0.0/0,::/0".

repeated string cidr_ranges = 487901697;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the cidrRanges at the given index.

getCidrRangesCount()

public int getCidrRangesCount()

One or more IPv4 or IPv6 CIDR ranges that apply as filters on the source (ingress) or destination (egress) IP in the IP header. If no ranges are specified, all IPv4 traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use "0.0.0.0/0,::/0".

repeated string cidr_ranges = 487901697;

Returns
Type Description
int

The count of cidrRanges.

getCidrRangesList()

public ProtocolStringList getCidrRangesList()

One or more IPv4 or IPv6 CIDR ranges that apply as filters on the source (ingress) or destination (egress) IP in the IP header. If no ranges are specified, all IPv4 traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use "0.0.0.0/0,::/0".

repeated string cidr_ranges = 487901697;

Returns
Type Description
ProtocolStringList

A list containing the cidrRanges.

getDefaultInstanceForType()

public PacketMirroringFilter getDefaultInstanceForType()
Returns
Type Description
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
Type Description
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
Type Description
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 IPv4 traffic is mirrored.

repeated string I_p_protocols = 98544854;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
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 IPv4 traffic is mirrored.

repeated string I_p_protocols = 98544854;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
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 IPv4 traffic is mirrored.

repeated string I_p_protocols = 98544854;

Returns
Type Description
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 IPv4 traffic is mirrored.

repeated string I_p_protocols = 98544854;

Returns
Type Description
ProtocolStringList

A list containing the iPProtocols.

getParserForType()

public Parser<PacketMirroringFilter> getParserForType()
Returns
Type Description
Parser<PacketMirroringFilter>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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
Type Description
boolean

Whether the direction field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PacketMirroringFilter.Builder newBuilderForType()
Returns
Type Description
PacketMirroringFilter.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PacketMirroringFilter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PacketMirroringFilter.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PacketMirroringFilter.Builder toBuilder()
Returns
Type Description
PacketMirroringFilter.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException