Class PacketMirroringFilter.Builder (1.28.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
TypeDescription
Descriptor

Methods

addAllCidrRanges(Iterable<String> values)

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

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

The cidrRanges to add.

Returns
TypeDescription
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 traffic is mirrored.

repeated string I_p_protocols = 98544854;

Parameter
NameDescription
valuesIterable<String>

The iPProtocols to add.

Returns
TypeDescription
PacketMirroringFilter.Builder

This builder for chaining.

addCidrRanges(String value)

public PacketMirroringFilter.Builder addCidrRanges(String value)

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
valueString

The cidrRanges to add.

Returns
TypeDescription
PacketMirroringFilter.Builder

This builder for chaining.

addCidrRangesBytes(ByteString value)

public PacketMirroringFilter.Builder addCidrRangesBytes(ByteString value)

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
valueByteString

The bytes of the cidrRanges to add.

Returns
TypeDescription
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 traffic is mirrored.

repeated string I_p_protocols = 98544854;

Parameter
NameDescription
valueString

The iPProtocols to add.

Returns
TypeDescription
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 traffic is mirrored.

repeated string I_p_protocols = 98544854;

Parameter
NameDescription
valueByteString

The bytes of the iPProtocols to add.

Returns
TypeDescription
PacketMirroringFilter.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PacketMirroringFilter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PacketMirroringFilter.Builder
Overrides

build()

public PacketMirroringFilter build()
Returns
TypeDescription
PacketMirroringFilter

buildPartial()

public PacketMirroringFilter buildPartial()
Returns
TypeDescription
PacketMirroringFilter

clear()

public PacketMirroringFilter.Builder clear()
Returns
TypeDescription
PacketMirroringFilter.Builder
Overrides

clearCidrRanges()

public PacketMirroringFilter.Builder clearCidrRanges()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PacketMirroringFilter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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 traffic is mirrored.

repeated string I_p_protocols = 98544854;

Returns
TypeDescription
PacketMirroringFilter.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PacketMirroringFilter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PacketMirroringFilter.Builder
Overrides

clone()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PacketMirroringFilter other)

public PacketMirroringFilter.Builder mergeFrom(PacketMirroringFilter other)
Parameter
NameDescription
otherPacketMirroringFilter
Returns
TypeDescription
PacketMirroringFilter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PacketMirroringFilter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PacketMirroringFilter.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PacketMirroringFilter.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PacketMirroringFilter.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PacketMirroringFilter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PacketMirroringFilter.Builder
Overrides

setCidrRanges(int index, String value)

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

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;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The cidrRanges to set.

Returns
TypeDescription
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
NameDescription
valueString

The direction to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for direction to set.

Returns
TypeDescription
PacketMirroringFilter.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PacketMirroringFilter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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 traffic is mirrored.

repeated string I_p_protocols = 98544854;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The iPProtocols to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PacketMirroringFilter.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PacketMirroringFilter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PacketMirroringFilter.Builder
Overrides