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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PacketMirroringFilter.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PacketMirroringFilter.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PacketMirroringFilter.Builder>
    • getDefaultInstanceForType

      public PacketMirroringFilter getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public PacketMirroringFilter build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PacketMirroringFilter buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PacketMirroringFilter.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PacketMirroringFilter.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getIPProtocolsList in interface PacketMirroringFilterOrBuilder
      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:
      getIPProtocolsCount in interface PacketMirroringFilterOrBuilder
      Returns:
      The count of iPProtocols.
    • getIPProtocols

      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;
      Specified by:
      getIPProtocols in interface PacketMirroringFilterOrBuilder
      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:
      getIPProtocolsBytes in interface PacketMirroringFilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the iPProtocols at the given index.
    • setIPProtocols

      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:
      index - The index to set the value at.
      value - The iPProtocols to set.
      Returns:
      This builder for chaining.
    • addIPProtocols

      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;
      Parameters:
      value - The iPProtocols to add.
      Returns:
      This builder for chaining.
    • addAllIPProtocols

      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;
      Parameters:
      values - The iPProtocols to add.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • addIPProtocolsBytes

      public PacketMirroringFilter.Builder addIPProtocolsBytes(com.google.protobuf.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;
      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:
      getCidrRangesList in interface PacketMirroringFilterOrBuilder
      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:
      getCidrRangesCount in interface PacketMirroringFilterOrBuilder
      Returns:
      The count of cidrRanges.
    • getCidrRanges

      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;
      Specified by:
      getCidrRanges in interface PacketMirroringFilterOrBuilder
      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:
      getCidrRangesBytes in interface PacketMirroringFilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the cidrRanges at the given index.
    • setCidrRanges

      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:
      index - The index to set the value at.
      value - The cidrRanges to set.
      Returns:
      This builder for chaining.
    • addCidrRanges

      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;
      Parameters:
      value - The cidrRanges to add.
      Returns:
      This builder for chaining.
    • addAllCidrRanges

      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;
      Parameters:
      values - The cidrRanges to add.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • addCidrRangesBytes

      public PacketMirroringFilter.Builder 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. 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:
      hasDirection in interface PacketMirroringFilterOrBuilder
      Returns:
      Whether the direction field is set.
    • 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;
      Specified by:
      getDirection in interface PacketMirroringFilterOrBuilder
      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:
      getDirectionBytes in interface PacketMirroringFilterOrBuilder
      Returns:
      The bytes for direction.
    • setDirection

      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;
      Parameters:
      value - The direction to set.
      Returns:
      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:
      This builder for chaining.
    • setDirectionBytes

      public PacketMirroringFilter.Builder setDirectionBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for direction to set.
      Returns:
      This builder for chaining.