Class PacketMirroringMirroredResourceInfo.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

        public PacketMirroringMirroredResourceInfo 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PacketMirroringMirroredResourceInfo.Builder>
      • getInstancesList

        public List<PacketMirroringMirroredResourceInfoInstanceInfo> 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

        public PacketMirroringMirroredResourceInfo.Builder setInstances​(int index,
                                                                        PacketMirroringMirroredResourceInfoInstanceInfo value)
         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

        public PacketMirroringMirroredResourceInfo.Builder setInstances​(int index,
                                                                        PacketMirroringMirroredResourceInfoInstanceInfo.Builder builderForValue)
         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

        public PacketMirroringMirroredResourceInfo.Builder addInstances​(PacketMirroringMirroredResourceInfoInstanceInfo value)
         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

        public PacketMirroringMirroredResourceInfo.Builder addInstances​(int index,
                                                                        PacketMirroringMirroredResourceInfoInstanceInfo value)
         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

        public PacketMirroringMirroredResourceInfo.Builder addInstances​(PacketMirroringMirroredResourceInfoInstanceInfo.Builder builderForValue)
         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

        public PacketMirroringMirroredResourceInfo.Builder addInstances​(int index,
                                                                        PacketMirroringMirroredResourceInfoInstanceInfo.Builder builderForValue)
         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

        public PacketMirroringMirroredResourceInfo.Builder addAllInstances​(Iterable<? extends PacketMirroringMirroredResourceInfoInstanceInfo> values)
         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

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

        public PacketMirroringMirroredResourceInfoInstanceInfo.Builder 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

        public List<PacketMirroringMirroredResourceInfoInstanceInfo.Builder> 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;
      • 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
      • setSubnetworks

        public PacketMirroringMirroredResourceInfo.Builder setSubnetworks​(int index,
                                                                          PacketMirroringMirroredResourceInfoSubnetInfo value)
         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

        public PacketMirroringMirroredResourceInfo.Builder addSubnetworks​(int index,
                                                                          PacketMirroringMirroredResourceInfoSubnetInfo value)
         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

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

        public PacketMirroringMirroredResourceInfoSubnetInfo.Builder 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

        public PacketMirroringMirroredResourceInfo.Builder addTags​(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:
        value - The tags to add.
        Returns:
        This builder for chaining.
      • addAllTags

        public PacketMirroringMirroredResourceInfo.Builder addAllTags​(Iterable<String> values)
         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

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