Package com.google.cloud.compute.v1
Class PacketMirroringFilter.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PacketMirroringFilter.Builder>
com.google.cloud.compute.v1.PacketMirroringFilter.Builder
- All Implemented Interfaces:
PacketMirroringFilterOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PacketMirroringFilter
public static final class PacketMirroringFilter.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PacketMirroringFilter.Builder>
implements PacketMirroringFilterOrBuilder
Protobuf type
google.cloud.compute.v1.PacketMirroringFilter-
Method Summary
Modifier and TypeMethodDescriptionaddAllCidrRanges(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.addAllIPProtocols(Iterable<String> values) Protocols that apply as filter on mirrored traffic.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.addCidrRangesBytes(com.google.protobuf.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.addIPProtocols(String value) Protocols that apply as filter on mirrored traffic.addIPProtocolsBytes(com.google.protobuf.ByteString value) Protocols that apply as filter on mirrored traffic.build()clear()One or more IPv4 or IPv6 CIDR ranges that apply as filters on the source (ingress) or destination (egress) IP in the IP header.Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH.Protocols that apply as filter on mirrored traffic.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.com.google.protobuf.ByteStringgetCidrRangesBytes(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.intOne or more IPv4 or IPv6 CIDR ranges that apply as filters on the source (ingress) or destination (egress) IP in the IP header.com.google.protobuf.ProtocolStringListOne or more IPv4 or IPv6 CIDR ranges that apply as filters on the source (ingress) or destination (egress) IP in the IP header.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDirection of traffic to mirror, either INGRESS, EGRESS, or BOTH.com.google.protobuf.ByteStringDirection of traffic to mirror, either INGRESS, EGRESS, or BOTH.getIPProtocols(int index) Protocols that apply as filter on mirrored traffic.com.google.protobuf.ByteStringgetIPProtocolsBytes(int index) Protocols that apply as filter on mirrored traffic.intProtocols that apply as filter on mirrored traffic.com.google.protobuf.ProtocolStringListProtocols that apply as filter on mirrored traffic.booleanDirection of traffic to mirror, either INGRESS, EGRESS, or BOTH.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(PacketMirroringFilter other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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.setDirection(String value) Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH.setDirectionBytes(com.google.protobuf.ByteString value) Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH.setIPProtocols(int index, String value) Protocols that apply as filter on mirrored traffic.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PacketMirroringFilter.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PacketMirroringFilter.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PacketMirroringFilter.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PacketMirroringFilter.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PacketMirroringFilter.Builder>
-
mergeFrom
public PacketMirroringFilter.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PacketMirroringFilter.Builder>- Throws:
IOException
-
getIPProtocolsList
public com.google.protobuf.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;- Specified by:
getIPProtocolsListin interfacePacketMirroringFilterOrBuilder- Returns:
- A list containing the iPProtocols.
-
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;- Specified by:
getIPProtocolsCountin interfacePacketMirroringFilterOrBuilder- Returns:
- The count of iPProtocols.
-
getIPProtocols
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;- Specified by:
getIPProtocolsin interfacePacketMirroringFilterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The iPProtocols at the given index.
-
getIPProtocolsBytes
public com.google.protobuf.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;- Specified by:
getIPProtocolsBytesin interfacePacketMirroringFilterOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the iPProtocols at the given index.
-
setIPProtocols
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:
index- The index to set the value at.value- The iPProtocols to set.- Returns:
- This builder for chaining.
-
addIPProtocols
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:
value- The iPProtocols to add.- Returns:
- This builder for chaining.
-
addAllIPProtocols
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:
values- The iPProtocols to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addIPProtocolsBytes
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:
value- The bytes of the iPProtocols to add.- Returns:
- This builder for chaining.
-
getCidrRangesList
public com.google.protobuf.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;- Specified by:
getCidrRangesListin interfacePacketMirroringFilterOrBuilder- Returns:
- A list containing the cidrRanges.
-
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;- Specified by:
getCidrRangesCountin interfacePacketMirroringFilterOrBuilder- Returns:
- The count of cidrRanges.
-
getCidrRanges
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;- Specified by:
getCidrRangesin interfacePacketMirroringFilterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The cidrRanges at the given index.
-
getCidrRangesBytes
public com.google.protobuf.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;- Specified by:
getCidrRangesBytesin interfacePacketMirroringFilterOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the cidrRanges at the given index.
-
setCidrRanges
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:
index- The index to set the value at.value- The cidrRanges to set.- Returns:
- This builder for chaining.
-
addCidrRanges
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:
value- The cidrRanges to add.- Returns:
- This builder for chaining.
-
addAllCidrRanges
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:
values- The cidrRanges to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addCidrRangesBytes
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:
value- The bytes of the cidrRanges to add.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasDirectionin interfacePacketMirroringFilterOrBuilder- Returns:
- Whether the direction field is set.
-
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;- Specified by:
getDirectionin interfacePacketMirroringFilterOrBuilder- Returns:
- The direction.
-
getDirectionBytes
public com.google.protobuf.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;- Specified by:
getDirectionBytesin interfacePacketMirroringFilterOrBuilder- Returns:
- The bytes for direction.
-
setDirection
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;- Parameters:
value- The direction to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setDirectionBytes
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;- Parameters:
value- The bytes for direction to set.- Returns:
- This builder for chaining.
-