Class NetworkTags.Builder (2.45.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
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.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NetworkTags.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NetworkTags.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public NetworkTags.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NetworkTags.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public NetworkTags.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkTags.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NetworkTags.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public NetworkTags.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NetworkTags.Builder
Overrides

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

public NetworkTags.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
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.

setUnknownFields(UnknownFieldSet unknownFields)

public final NetworkTags.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NetworkTags.Builder
Overrides