Class PacketMirroringMirroredResourceInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PacketMirroringMirroredResourceInfo.Builder>
com.google.cloud.compute.v1.PacketMirroringMirroredResourceInfo.Builder
All Implemented Interfaces:
PacketMirroringMirroredResourceInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PacketMirroringMirroredResourceInfo

public static final class PacketMirroringMirroredResourceInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<PacketMirroringMirroredResourceInfo.Builder> implements PacketMirroringMirroredResourceInfoOrBuilder
 
Protobuf type google.cloud.compute.v1.PacketMirroringMirroredResourceInfo
  • 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<PacketMirroringMirroredResourceInfo.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<PacketMirroringMirroredResourceInfo.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<PacketMirroringMirroredResourceInfo.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public PacketMirroringMirroredResourceInfo.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<PacketMirroringMirroredResourceInfo.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<PacketMirroringMirroredResourceInfo.Builder>
    • mergeFrom

      public PacketMirroringMirroredResourceInfo.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<PacketMirroringMirroredResourceInfo.Builder>
      Throws:
      IOException
    • getInstancesList

       A set of virtual machine instances that are being mirrored.
       They must live in zones contained in the same region as this
       packetMirroring.
      
       Note that this config will apply only to those network interfaces of the
       Instances that belong to the network specified in this packetMirroring.
      
       You may specify a maximum of 50 Instances.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo instances = 29097598;
      Specified by:
      getInstancesList in interface PacketMirroringMirroredResourceInfoOrBuilder
    • getInstancesCount

      public int getInstancesCount()
       A set of virtual machine instances that are being mirrored.
       They must live in zones contained in the same region as this
       packetMirroring.
      
       Note that this config will apply only to those network interfaces of the
       Instances that belong to the network specified in this packetMirroring.
      
       You may specify a maximum of 50 Instances.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo instances = 29097598;
      Specified by:
      getInstancesCount in interface PacketMirroringMirroredResourceInfoOrBuilder
    • getInstances

      public PacketMirroringMirroredResourceInfoInstanceInfo getInstances(int index)
       A set of virtual machine instances that are being mirrored.
       They must live in zones contained in the same region as this
       packetMirroring.
      
       Note that this config will apply only to those network interfaces of the
       Instances that belong to the network specified in this packetMirroring.
      
       You may specify a maximum of 50 Instances.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo instances = 29097598;
      Specified by:
      getInstances in interface PacketMirroringMirroredResourceInfoOrBuilder
    • setInstances

       A set of virtual machine instances that are being mirrored.
       They must live in zones contained in the same region as this
       packetMirroring.
      
       Note that this config will apply only to those network interfaces of the
       Instances that belong to the network specified in this packetMirroring.
      
       You may specify a maximum of 50 Instances.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo instances = 29097598;
    • setInstances

       A set of virtual machine instances that are being mirrored.
       They must live in zones contained in the same region as this
       packetMirroring.
      
       Note that this config will apply only to those network interfaces of the
       Instances that belong to the network specified in this packetMirroring.
      
       You may specify a maximum of 50 Instances.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo instances = 29097598;
    • addInstances

       A set of virtual machine instances that are being mirrored.
       They must live in zones contained in the same region as this
       packetMirroring.
      
       Note that this config will apply only to those network interfaces of the
       Instances that belong to the network specified in this packetMirroring.
      
       You may specify a maximum of 50 Instances.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo instances = 29097598;
    • addInstances

       A set of virtual machine instances that are being mirrored.
       They must live in zones contained in the same region as this
       packetMirroring.
      
       Note that this config will apply only to those network interfaces of the
       Instances that belong to the network specified in this packetMirroring.
      
       You may specify a maximum of 50 Instances.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo instances = 29097598;
    • addInstances

       A set of virtual machine instances that are being mirrored.
       They must live in zones contained in the same region as this
       packetMirroring.
      
       Note that this config will apply only to those network interfaces of the
       Instances that belong to the network specified in this packetMirroring.
      
       You may specify a maximum of 50 Instances.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo instances = 29097598;
    • addInstances

       A set of virtual machine instances that are being mirrored.
       They must live in zones contained in the same region as this
       packetMirroring.
      
       Note that this config will apply only to those network interfaces of the
       Instances that belong to the network specified in this packetMirroring.
      
       You may specify a maximum of 50 Instances.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo instances = 29097598;
    • addAllInstances

       A set of virtual machine instances that are being mirrored.
       They must live in zones contained in the same region as this
       packetMirroring.
      
       Note that this config will apply only to those network interfaces of the
       Instances that belong to the network specified in this packetMirroring.
      
       You may specify a maximum of 50 Instances.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo instances = 29097598;
    • clearInstances

       A set of virtual machine instances that are being mirrored.
       They must live in zones contained in the same region as this
       packetMirroring.
      
       Note that this config will apply only to those network interfaces of the
       Instances that belong to the network specified in this packetMirroring.
      
       You may specify a maximum of 50 Instances.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo instances = 29097598;
    • removeInstances

      public PacketMirroringMirroredResourceInfo.Builder removeInstances(int index)
       A set of virtual machine instances that are being mirrored.
       They must live in zones contained in the same region as this
       packetMirroring.
      
       Note that this config will apply only to those network interfaces of the
       Instances that belong to the network specified in this packetMirroring.
      
       You may specify a maximum of 50 Instances.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo instances = 29097598;
    • getInstancesBuilder

      public PacketMirroringMirroredResourceInfoInstanceInfo.Builder getInstancesBuilder(int index)
       A set of virtual machine instances that are being mirrored.
       They must live in zones contained in the same region as this
       packetMirroring.
      
       Note that this config will apply only to those network interfaces of the
       Instances that belong to the network specified in this packetMirroring.
      
       You may specify a maximum of 50 Instances.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo instances = 29097598;
    • getInstancesOrBuilder

      public PacketMirroringMirroredResourceInfoInstanceInfoOrBuilder getInstancesOrBuilder(int index)
       A set of virtual machine instances that are being mirrored.
       They must live in zones contained in the same region as this
       packetMirroring.
      
       Note that this config will apply only to those network interfaces of the
       Instances that belong to the network specified in this packetMirroring.
      
       You may specify a maximum of 50 Instances.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo instances = 29097598;
      Specified by:
      getInstancesOrBuilder in interface PacketMirroringMirroredResourceInfoOrBuilder
    • getInstancesOrBuilderList

      public List<? extends PacketMirroringMirroredResourceInfoInstanceInfoOrBuilder> getInstancesOrBuilderList()
       A set of virtual machine instances that are being mirrored.
       They must live in zones contained in the same region as this
       packetMirroring.
      
       Note that this config will apply only to those network interfaces of the
       Instances that belong to the network specified in this packetMirroring.
      
       You may specify a maximum of 50 Instances.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo instances = 29097598;
      Specified by:
      getInstancesOrBuilderList in interface PacketMirroringMirroredResourceInfoOrBuilder
    • addInstancesBuilder

       A set of virtual machine instances that are being mirrored.
       They must live in zones contained in the same region as this
       packetMirroring.
      
       Note that this config will apply only to those network interfaces of the
       Instances that belong to the network specified in this packetMirroring.
      
       You may specify a maximum of 50 Instances.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo instances = 29097598;
    • addInstancesBuilder

      public PacketMirroringMirroredResourceInfoInstanceInfo.Builder addInstancesBuilder(int index)
       A set of virtual machine instances that are being mirrored.
       They must live in zones contained in the same region as this
       packetMirroring.
      
       Note that this config will apply only to those network interfaces of the
       Instances that belong to the network specified in this packetMirroring.
      
       You may specify a maximum of 50 Instances.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo instances = 29097598;
    • getInstancesBuilderList

       A set of virtual machine instances that are being mirrored.
       They must live in zones contained in the same region as this
       packetMirroring.
      
       Note that this config will apply only to those network interfaces of the
       Instances that belong to the network specified in this packetMirroring.
      
       You may specify a maximum of 50 Instances.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo instances = 29097598;
    • getSubnetworksList

       A set of subnetworks for which traffic from/to all VM instances will be
       mirrored. They must live in the same region as this packetMirroring.
      
       You may specify a maximum of 5 subnetworks.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfo subnetworks = 415853125;
      Specified by:
      getSubnetworksList in interface PacketMirroringMirroredResourceInfoOrBuilder
    • getSubnetworksCount

      public int getSubnetworksCount()
       A set of subnetworks for which traffic from/to all VM instances will be
       mirrored. They must live in the same region as this packetMirroring.
      
       You may specify a maximum of 5 subnetworks.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfo subnetworks = 415853125;
      Specified by:
      getSubnetworksCount in interface PacketMirroringMirroredResourceInfoOrBuilder
    • getSubnetworks

      public PacketMirroringMirroredResourceInfoSubnetInfo getSubnetworks(int index)
       A set of subnetworks for which traffic from/to all VM instances will be
       mirrored. They must live in the same region as this packetMirroring.
      
       You may specify a maximum of 5 subnetworks.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfo subnetworks = 415853125;
      Specified by:
      getSubnetworks in interface PacketMirroringMirroredResourceInfoOrBuilder
    • setSubnetworks

       A set of subnetworks for which traffic from/to all VM instances will be
       mirrored. They must live in the same region as this packetMirroring.
      
       You may specify a maximum of 5 subnetworks.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfo subnetworks = 415853125;
    • setSubnetworks

       A set of subnetworks for which traffic from/to all VM instances will be
       mirrored. They must live in the same region as this packetMirroring.
      
       You may specify a maximum of 5 subnetworks.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfo subnetworks = 415853125;
    • addSubnetworks

       A set of subnetworks for which traffic from/to all VM instances will be
       mirrored. They must live in the same region as this packetMirroring.
      
       You may specify a maximum of 5 subnetworks.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfo subnetworks = 415853125;
    • addSubnetworks

       A set of subnetworks for which traffic from/to all VM instances will be
       mirrored. They must live in the same region as this packetMirroring.
      
       You may specify a maximum of 5 subnetworks.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfo subnetworks = 415853125;
    • addSubnetworks

       A set of subnetworks for which traffic from/to all VM instances will be
       mirrored. They must live in the same region as this packetMirroring.
      
       You may specify a maximum of 5 subnetworks.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfo subnetworks = 415853125;
    • addSubnetworks

       A set of subnetworks for which traffic from/to all VM instances will be
       mirrored. They must live in the same region as this packetMirroring.
      
       You may specify a maximum of 5 subnetworks.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfo subnetworks = 415853125;
    • addAllSubnetworks

       A set of subnetworks for which traffic from/to all VM instances will be
       mirrored. They must live in the same region as this packetMirroring.
      
       You may specify a maximum of 5 subnetworks.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfo subnetworks = 415853125;
    • clearSubnetworks

       A set of subnetworks for which traffic from/to all VM instances will be
       mirrored. They must live in the same region as this packetMirroring.
      
       You may specify a maximum of 5 subnetworks.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfo subnetworks = 415853125;
    • removeSubnetworks

      public PacketMirroringMirroredResourceInfo.Builder removeSubnetworks(int index)
       A set of subnetworks for which traffic from/to all VM instances will be
       mirrored. They must live in the same region as this packetMirroring.
      
       You may specify a maximum of 5 subnetworks.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfo subnetworks = 415853125;
    • getSubnetworksBuilder

      public PacketMirroringMirroredResourceInfoSubnetInfo.Builder getSubnetworksBuilder(int index)
       A set of subnetworks for which traffic from/to all VM instances will be
       mirrored. They must live in the same region as this packetMirroring.
      
       You may specify a maximum of 5 subnetworks.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfo subnetworks = 415853125;
    • getSubnetworksOrBuilder

      public PacketMirroringMirroredResourceInfoSubnetInfoOrBuilder getSubnetworksOrBuilder(int index)
       A set of subnetworks for which traffic from/to all VM instances will be
       mirrored. They must live in the same region as this packetMirroring.
      
       You may specify a maximum of 5 subnetworks.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfo subnetworks = 415853125;
      Specified by:
      getSubnetworksOrBuilder in interface PacketMirroringMirroredResourceInfoOrBuilder
    • getSubnetworksOrBuilderList

      public List<? extends PacketMirroringMirroredResourceInfoSubnetInfoOrBuilder> getSubnetworksOrBuilderList()
       A set of subnetworks for which traffic from/to all VM instances will be
       mirrored. They must live in the same region as this packetMirroring.
      
       You may specify a maximum of 5 subnetworks.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfo subnetworks = 415853125;
      Specified by:
      getSubnetworksOrBuilderList in interface PacketMirroringMirroredResourceInfoOrBuilder
    • addSubnetworksBuilder

       A set of subnetworks for which traffic from/to all VM instances will be
       mirrored. They must live in the same region as this packetMirroring.
      
       You may specify a maximum of 5 subnetworks.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfo subnetworks = 415853125;
    • addSubnetworksBuilder

      public PacketMirroringMirroredResourceInfoSubnetInfo.Builder addSubnetworksBuilder(int index)
       A set of subnetworks for which traffic from/to all VM instances will be
       mirrored. They must live in the same region as this packetMirroring.
      
       You may specify a maximum of 5 subnetworks.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfo subnetworks = 415853125;
    • getSubnetworksBuilderList

      public List<PacketMirroringMirroredResourceInfoSubnetInfo.Builder> getSubnetworksBuilderList()
       A set of subnetworks for which traffic from/to all VM instances will be
       mirrored. They must live in the same region as this packetMirroring.
      
       You may specify a maximum of 5 subnetworks.
       
      repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfo subnetworks = 415853125;
    • getTagsList

      public com.google.protobuf.ProtocolStringList getTagsList()
       A set of mirrored tags. Traffic from/to all VM instances that have one or
       more of these tags will be mirrored.
       
      repeated string tags = 3552281;
      Specified by:
      getTagsList in interface PacketMirroringMirroredResourceInfoOrBuilder
      Returns:
      A list containing the tags.
    • getTagsCount

      public int getTagsCount()
       A set of mirrored tags. Traffic from/to all VM instances that have one or
       more of these tags will be mirrored.
       
      repeated string tags = 3552281;
      Specified by:
      getTagsCount in interface PacketMirroringMirroredResourceInfoOrBuilder
      Returns:
      The count of tags.
    • getTags

      public String getTags(int index)
       A set of mirrored tags. Traffic from/to all VM instances that have one or
       more of these tags will be mirrored.
       
      repeated string tags = 3552281;
      Specified by:
      getTags in interface PacketMirroringMirroredResourceInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The tags at the given index.
    • getTagsBytes

      public com.google.protobuf.ByteString getTagsBytes(int index)
       A set of mirrored tags. Traffic from/to all VM instances that have one or
       more of these tags will be mirrored.
       
      repeated string tags = 3552281;
      Specified by:
      getTagsBytes in interface PacketMirroringMirroredResourceInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tags at the given index.
    • setTags

      public PacketMirroringMirroredResourceInfo.Builder setTags(int index, String value)
       A set of mirrored tags. Traffic from/to all VM instances that have one or
       more of these tags will be mirrored.
       
      repeated string tags = 3552281;
      Parameters:
      index - The index to set the value at.
      value - The tags to set.
      Returns:
      This builder for chaining.
    • addTags

       A set of mirrored tags. Traffic from/to all VM instances that have one or
       more of these tags will be mirrored.
       
      repeated string tags = 3552281;
      Parameters:
      value - The tags to add.
      Returns:
      This builder for chaining.
    • addAllTags

       A set of mirrored tags. Traffic from/to all VM instances that have one or
       more of these tags will be mirrored.
       
      repeated string tags = 3552281;
      Parameters:
      values - The tags to add.
      Returns:
      This builder for chaining.
    • clearTags

       A set of mirrored tags. Traffic from/to all VM instances that have one or
       more of these tags will be mirrored.
       
      repeated string tags = 3552281;
      Returns:
      This builder for chaining.
    • addTagsBytes

      public PacketMirroringMirroredResourceInfo.Builder addTagsBytes(com.google.protobuf.ByteString value)
       A set of mirrored tags. Traffic from/to all VM instances that have one or
       more of these tags will be mirrored.
       
      repeated string tags = 3552281;
      Parameters:
      value - The bytes of the tags to add.
      Returns:
      This builder for chaining.