Class InstanceInfo.Builder (1.31.0)

public static final class InstanceInfo.Builder extends GeneratedMessageV3.Builder<InstanceInfo.Builder> implements InstanceInfoOrBuilder

For display only. Metadata associated with a Compute Engine instance.

Protobuf type google.cloud.networkmanagement.v1beta1.InstanceInfo

Static Methods

getDescriptor()

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

Methods

addAllNetworkTags(Iterable<String> values)

public InstanceInfo.Builder addAllNetworkTags(Iterable<String> values)

Network tags configured on the instance.

repeated string network_tags = 7;

Parameter
NameDescription
valuesIterable<String>

The networkTags to add.

Returns
TypeDescription
InstanceInfo.Builder

This builder for chaining.

addNetworkTags(String value)

public InstanceInfo.Builder addNetworkTags(String value)

Network tags configured on the instance.

repeated string network_tags = 7;

Parameter
NameDescription
valueString

The networkTags to add.

Returns
TypeDescription
InstanceInfo.Builder

This builder for chaining.

addNetworkTagsBytes(ByteString value)

public InstanceInfo.Builder addNetworkTagsBytes(ByteString value)

Network tags configured on the instance.

repeated string network_tags = 7;

Parameter
NameDescription
valueByteString

The bytes of the networkTags to add.

Returns
TypeDescription
InstanceInfo.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InstanceInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)