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

Protobuf type google.container.v1.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

clearOneof(Descriptors.OneofDescriptor oneof)

public NetworkTags.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NetworkTags.Builder
Overrides

clearTags()

public NetworkTags.Builder clearTags()

List of network tags.

repeated string tags = 1;

Returns
TypeDescription
NetworkTags.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public NetworkTags getDefaultInstanceForType()
Returns
TypeDescription
NetworkTags

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTags(int index)

public String getTags(int index)

List of network tags.

repeated string tags = 1;

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)

List of network tags.

repeated string tags = 1;

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()

List of network tags.

repeated string tags = 1;

Returns
TypeDescription
int

The count of tags.

getTagsList()

public ProtocolStringList getTagsList()

List of network tags.

repeated string tags = 1;

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(NetworkTags other)

public NetworkTags.Builder mergeFrom(NetworkTags other)
Parameter
NameDescription
otherNetworkTags
Returns
TypeDescription
NetworkTags.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkTags.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NetworkTags.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public NetworkTags.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The tags to set.

Returns
TypeDescription
NetworkTags.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final NetworkTags.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NetworkTags.Builder
Overrides