Class PacketMirroringFilter.Builder (1.59.0)

public static final class PacketMirroringFilter.Builder extends GeneratedMessageV3.Builder<PacketMirroringFilter.Builder> implements PacketMirroringFilterOrBuilder

Protobuf type google.cloud.compute.v1.PacketMirroringFilter

Static Methods

getDescriptor()

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

Methods

addAllCidrRanges(Iterable<String> values)

public PacketMirroringFilter.Builder addAllCidrRanges(Iterable<String> values)

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
values Iterable<String>

The cidrRanges to add.

Returns
Type Description
PacketMirroringFilter.Builder

This builder for chaining.

addAllIPProtocols(Iterable<String> values)

public PacketMirroringFilter.Builder addAllIPProtocols(Iterable<String> values)

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
values Iterable<String>

The iPProtocols to add.

Returns
Type Description
PacketMirroringFilter.Builder

This builder for chaining.

addCidrRanges(String value)

public PacketMirroringFilter.Builder addCidrRanges(String value)

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
value String

The cidrRanges to add.

Returns
Type Description
PacketMirroringFilter.Builder

This builder for chaining.

addCidrRangesBytes(ByteString value)

public PacketMirroringFilter.Builder addCidrRangesBytes(ByteString value)

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
value ByteString

The bytes of the cidrRanges to add.

Returns
Type Description
PacketMirroringFilter.Builder

This builder for chaining.

addIPProtocols(String value)

public PacketMirroringFilter.Builder addIPProtocols(String value)

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
value String

The iPProtocols to add.

Returns
Type Description
PacketMirroringFilter.Builder

This builder for chaining.

addIPProtocolsBytes(ByteString value)

public PacketMirroringFilter.Builder addIPProtocolsBytes(ByteString value)

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
value ByteString

The bytes of the iPProtocols to add.

Returns
Type Description
PacketMirroringFilter.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PacketMirroringFilter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PacketMirroringFilter.Builder
Overrides

build()

public PacketMirroringFilter build()
Returns
Type Description
PacketMirroringFilter

buildPartial()

public PacketMirroringFilter buildPartial()
Returns
Type Description
PacketMirroringFilter

clear()

public PacketMirroringFilter.Builder clear()
Returns
Type Description
PacketMirroringFilter.Builder
Overrides

clearCidrRanges()

public PacketMirroringFilter.Builder clearCidrRanges()

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
PacketMirroringFilter.Builder

This builder for chaining.

clearDirection()

public PacketMirroringFilter.Builder clearDirection()

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
PacketMirroringFilter.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PacketMirroringFilter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PacketMirroringFilter.Builder
Overrides

clearIPProtocols()

public PacketMirroringFilter.Builder clearIPProtocols()

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
PacketMirroringFilter.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PacketMirroringFilter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PacketMirroringFilter.Builder
Overrides

clone()

public PacketMirroringFilter.Builder clone()
Returns
Type Description
PacketMirroringFilter.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PacketMirroringFilter other)

public PacketMirroringFilter.Builder mergeFrom(PacketMirroringFilter other)
Parameter
Name Description
other PacketMirroringFilter
Returns
Type Description
PacketMirroringFilter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PacketMirroringFilter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PacketMirroringFilter.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PacketMirroringFilter.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PacketMirroringFilter.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PacketMirroringFilter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PacketMirroringFilter.Builder
Overrides

setCidrRanges(int index, String value)

public PacketMirroringFilter.Builder setCidrRanges(int index, String value)

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;

Parameters
Name Description
index int

The index to set the value at.

value String

The cidrRanges to set.

Returns
Type Description
PacketMirroringFilter.Builder

This builder for chaining.

setDirection(String value)

public PacketMirroringFilter.Builder setDirection(String value)

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;

Parameter
Name Description
value String

The direction to set.

Returns
Type Description
PacketMirroringFilter.Builder

This builder for chaining.

setDirectionBytes(ByteString value)

public PacketMirroringFilter.Builder setDirectionBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for direction to set.

Returns
Type Description
PacketMirroringFilter.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PacketMirroringFilter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PacketMirroringFilter.Builder
Overrides

setIPProtocols(int index, String value)

public PacketMirroringFilter.Builder setIPProtocols(int index, String value)

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;

Parameters
Name Description
index int

The index to set the value at.

value String

The iPProtocols to set.

Returns
Type Description
PacketMirroringFilter.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PacketMirroringFilter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PacketMirroringFilter.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PacketMirroringFilter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PacketMirroringFilter.Builder
Overrides