Class NetworkTags.Builder (2.88.0)

public static final class NetworkTags.Builder extends GeneratedMessage.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
Type Description
Descriptor

Methods

addAllTags(Iterable<String> values)

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

List of network tags.

repeated string tags = 1;

Parameter
Name Description
values Iterable<String>

The tags to add.

Returns
Type Description
NetworkTags.Builder

This builder for chaining.

addTags(String value)

public NetworkTags.Builder addTags(String value)

List of network tags.

repeated string tags = 1;

Parameter
Name Description
value String

The tags to add.

Returns
Type Description
NetworkTags.Builder

This builder for chaining.

addTagsBytes(ByteString value)

public NetworkTags.Builder addTagsBytes(ByteString value)

List of network tags.

repeated string tags = 1;

Parameter
Name Description
value ByteString

The bytes of the tags to add.

Returns
Type Description
NetworkTags.Builder

This builder for chaining.

build()

public NetworkTags build()
Returns
Type Description
NetworkTags

buildPartial()

public NetworkTags buildPartial()
Returns
Type Description
NetworkTags

clear()

public NetworkTags.Builder clear()
Returns
Type Description
NetworkTags.Builder
Overrides

clearTags()

public NetworkTags.Builder clearTags()

List of network tags.

repeated string tags = 1;

Returns
Type Description
NetworkTags.Builder

This builder for chaining.

getDefaultInstanceForType()

public NetworkTags getDefaultInstanceForType()
Returns
Type Description
NetworkTags

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getTags(int index)

public String getTags(int index)

List of network tags.

repeated string tags = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The tags at the given index.

getTagsBytes(int index)

public ByteString getTagsBytes(int index)

List of network tags.

repeated string tags = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the tags at the given index.

getTagsCount()

public int getTagsCount()

List of network tags.

repeated string tags = 1;

Returns
Type Description
int

The count of tags.

getTagsList()

public ProtocolStringList getTagsList()

List of network tags.

repeated string tags = 1;

Returns
Type Description
ProtocolStringList

A list containing the tags.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NetworkTags other)

public NetworkTags.Builder mergeFrom(NetworkTags other)
Parameter
Name Description
other NetworkTags
Returns
Type Description
NetworkTags.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NetworkTags.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkTags.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public NetworkTags.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NetworkTags.Builder
Overrides

setTags(int index, String value)

public NetworkTags.Builder setTags(int index, String value)

List of network tags.

repeated string tags = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The tags to set.

Returns
Type Description
NetworkTags.Builder

This builder for chaining.