Class PacketMirroringMirroredResourceInfo.Builder (1.44.0)

public static final class PacketMirroringMirroredResourceInfo.Builder extends GeneratedMessageV3.Builder<PacketMirroringMirroredResourceInfo.Builder> implements PacketMirroringMirroredResourceInfoOrBuilder

Protobuf type google.cloud.compute.v1.PacketMirroringMirroredResourceInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllInstances(Iterable<? extends PacketMirroringMirroredResourceInfoInstanceInfo> values)

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;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo>
Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

addAllSubnetworks(Iterable<? extends PacketMirroringMirroredResourceInfoSubnetInfo> values)

public PacketMirroringMirroredResourceInfo.Builder addAllSubnetworks(Iterable<? extends PacketMirroringMirroredResourceInfoSubnetInfo> values)

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;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfo>
Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

addAllTags(Iterable<String> values)

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;

Parameter
NameDescription
valuesIterable<String>

The tags to add.

Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

This builder for chaining.

addInstances(PacketMirroringMirroredResourceInfoInstanceInfo value)

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;

Parameter
NameDescription
valuePacketMirroringMirroredResourceInfoInstanceInfo
Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

addInstances(PacketMirroringMirroredResourceInfoInstanceInfo.Builder builderForValue)

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;

Parameter
NameDescription
builderForValuePacketMirroringMirroredResourceInfoInstanceInfo.Builder
Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

addInstances(int index, PacketMirroringMirroredResourceInfoInstanceInfo value)

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;

Parameters
NameDescription
indexint
valuePacketMirroringMirroredResourceInfoInstanceInfo
Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

addInstances(int index, PacketMirroringMirroredResourceInfoInstanceInfo.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValuePacketMirroringMirroredResourceInfoInstanceInfo.Builder
Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

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;

Returns
TypeDescription
PacketMirroringMirroredResourceInfoInstanceInfo.Builder

addInstancesBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
PacketMirroringMirroredResourceInfoInstanceInfo.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSubnetworks(PacketMirroringMirroredResourceInfoSubnetInfo value)

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

Parameter
NameDescription
valuePacketMirroringMirroredResourceInfoSubnetInfo
Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

addSubnetworks(PacketMirroringMirroredResourceInfoSubnetInfo.Builder builderForValue)

public PacketMirroringMirroredResourceInfo.Builder addSubnetworks(PacketMirroringMirroredResourceInfoSubnetInfo.Builder builderForValue)

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;

Parameter
NameDescription
builderForValuePacketMirroringMirroredResourceInfoSubnetInfo.Builder
Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

addSubnetworks(int index, PacketMirroringMirroredResourceInfoSubnetInfo value)

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;

Parameters
NameDescription
indexint
valuePacketMirroringMirroredResourceInfoSubnetInfo
Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

addSubnetworks(int index, PacketMirroringMirroredResourceInfoSubnetInfo.Builder builderForValue)

public PacketMirroringMirroredResourceInfo.Builder addSubnetworks(int index, PacketMirroringMirroredResourceInfoSubnetInfo.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValuePacketMirroringMirroredResourceInfoSubnetInfo.Builder
Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

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;

Returns
TypeDescription
PacketMirroringMirroredResourceInfoSubnetInfo.Builder

addSubnetworksBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
PacketMirroringMirroredResourceInfoSubnetInfo.Builder

addTags(String value)

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;

Parameter
NameDescription
valueString

The tags to add.

Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

This builder for chaining.

addTagsBytes(ByteString value)

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

Parameter
NameDescription
valueByteString

The bytes of the tags to add.

Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

This builder for chaining.

build()

public PacketMirroringMirroredResourceInfo build()
Returns
TypeDescription
PacketMirroringMirroredResourceInfo

buildPartial()

public PacketMirroringMirroredResourceInfo buildPartial()
Returns
TypeDescription
PacketMirroringMirroredResourceInfo

clear()

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

clearField(Descriptors.FieldDescriptor field)

public PacketMirroringMirroredResourceInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder
Overrides

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;

Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

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;

Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

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

This builder for chaining.

clone()

public PacketMirroringMirroredResourceInfo.Builder clone()
Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder
Overrides

getDefaultInstanceForType()

public PacketMirroringMirroredResourceInfo getDefaultInstanceForType()
Returns
TypeDescription
PacketMirroringMirroredResourceInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstances(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
PacketMirroringMirroredResourceInfoInstanceInfo

getInstancesBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
PacketMirroringMirroredResourceInfoInstanceInfo.Builder

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;

Returns
TypeDescription
List<Builder>

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;

Returns
TypeDescription
int

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;

Returns
TypeDescription
List<PacketMirroringMirroredResourceInfoInstanceInfo>

getInstancesOrBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
PacketMirroringMirroredResourceInfoInstanceInfoOrBuilder

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;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfoOrBuilder>

getSubnetworks(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
PacketMirroringMirroredResourceInfoSubnetInfo

getSubnetworksBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
PacketMirroringMirroredResourceInfoSubnetInfo.Builder

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;

Returns
TypeDescription
List<Builder>

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;

Returns
TypeDescription
int

getSubnetworksList()

public List<PacketMirroringMirroredResourceInfoSubnetInfo> 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;

Returns
TypeDescription
List<PacketMirroringMirroredResourceInfoSubnetInfo>

getSubnetworksOrBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
PacketMirroringMirroredResourceInfoSubnetInfoOrBuilder

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;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfoOrBuilder>

getTags(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The tags at the given index.

getTagsBytes(int index)

public 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the tags at the given index.

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;

Returns
TypeDescription
int

The count of tags.

getTagsList()

public 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;

Returns
TypeDescription
ProtocolStringList

A list containing the tags.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PacketMirroringMirroredResourceInfo other)

public PacketMirroringMirroredResourceInfo.Builder mergeFrom(PacketMirroringMirroredResourceInfo other)
Parameter
NameDescription
otherPacketMirroringMirroredResourceInfo
Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeInstances(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

removeSubnetworks(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstances(int index, PacketMirroringMirroredResourceInfoInstanceInfo value)

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;

Parameters
NameDescription
indexint
valuePacketMirroringMirroredResourceInfoInstanceInfo
Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

setInstances(int index, PacketMirroringMirroredResourceInfoInstanceInfo.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValuePacketMirroringMirroredResourceInfoInstanceInfo.Builder
Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PacketMirroringMirroredResourceInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder
Overrides

setSubnetworks(int index, PacketMirroringMirroredResourceInfoSubnetInfo value)

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;

Parameters
NameDescription
indexint
valuePacketMirroringMirroredResourceInfoSubnetInfo
Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

setSubnetworks(int index, PacketMirroringMirroredResourceInfoSubnetInfo.Builder builderForValue)

public PacketMirroringMirroredResourceInfo.Builder setSubnetworks(int index, PacketMirroringMirroredResourceInfoSubnetInfo.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValuePacketMirroringMirroredResourceInfoSubnetInfo.Builder
Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

setTags(int index, String value)

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
NameDescription
indexint

The index to set the value at.

valueString

The tags to set.

Returns
TypeDescription
PacketMirroringMirroredResourceInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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