Class NetworkTags.Builder (2.22.0)

public static final class NetworkTags.Builder extends GeneratedMessageV3.Builder<NetworkTags.Builder> implements NetworkTagsOrBuilder

Collection of Compute Engine network tags that can be applied to a node's underlying VM instance. (See tags field in NodeConfig).

Protobuf type google.container.v1beta1.NetworkTags

Static Methods

getDescriptor()

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

Methods

addAllTags(Iterable<String> values)

public NetworkTags.Builder addAllTags(Iterable<String> values)

List of network tags.

repeated string tags = 1;

Parameter
NameDescription
valuesIterable<String>

The tags to add.

Returns
TypeDescription
NetworkTags.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTags(String value)

public NetworkTags.Builder addTags(String value)

List of network tags.

repeated string tags = 1;

Parameter
NameDescription
valueString

The tags to add.

Returns
TypeDescription
NetworkTags.Builder

This builder for chaining.

addTagsBytes(ByteString value)

public NetworkTags.Builder addTagsBytes(ByteString value)

List of network tags.

repeated string tags = 1;

Parameter
NameDescription
valueByteString

The bytes of the tags to add.

Returns
TypeDescription
NetworkTags.Builder

This builder for chaining.

build()

public NetworkTags build()
Returns
TypeDescription
NetworkTags

buildPartial()

public NetworkTags buildPartial()
Returns
TypeDescription
NetworkTags

clear()

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

clearField(Descriptors.FieldDescriptor field)

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