Class PacketMirroringMirroredResourceInfo.Builder (1.19.0)

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

Protobuf type google.cloud.compute.v1.PacketMirroringMirroredResourceInfo

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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

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

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 Returns

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 Returns

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 Returns

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 Returns

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PacketMirroringMirroredResourceInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns 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 Returns

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 Returns

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 Returns

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 Returns

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

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

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

buildPartial()

public PacketMirroringMirroredResourceInfo buildPartial()
Returns

clear()

public PacketMirroringMirroredResourceInfo.Builder clear()
Returns Overrides

clearField(Descriptors.FieldDescriptor field)

public PacketMirroringMirroredResourceInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns 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

clearOneof(Descriptors.OneofDescriptor oneof)

public PacketMirroringMirroredResourceInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns 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

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 Overrides

getDefaultInstanceForType()

public PacketMirroringMirroredResourceInfo getDefaultInstanceForType()
Returns

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

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

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

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

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

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

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

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

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 Returns

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PacketMirroringMirroredResourceInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns 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

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

setField(Descriptors.FieldDescriptor field, Object value)

public PacketMirroringMirroredResourceInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns 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 Returns

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 Returns

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 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 Returns

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 Returns

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 Overrides