Class Tags (1.27.0)

public final class Tags extends GeneratedMessageV3 implements TagsOrBuilder

A set of instance tags.

Protobuf type google.cloud.compute.v1.Tags

Implements

TagsOrBuilder

Static Fields

FINGERPRINT_FIELD_NUMBER

public static final int FINGERPRINT_FIELD_NUMBER
Field Value
TypeDescription
int

ITEMS_FIELD_NUMBER

public static final int ITEMS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Tags getDefaultInstance()
Returns
TypeDescription
Tags

getDescriptor()

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

newBuilder()

public static Tags.Builder newBuilder()
Returns
TypeDescription
Tags.Builder

newBuilder(Tags prototype)

public static Tags.Builder newBuilder(Tags prototype)
Parameter
NameDescription
prototypeTags
Returns
TypeDescription
Tags.Builder

parseDelimitedFrom(InputStream input)

public static Tags parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Tags
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Tags parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Tags
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Tags parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Tags
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Tags parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Tags
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Tags parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Tags
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Tags parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Tags
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Tags parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Tags
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Tags parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Tags
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Tags parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Tags
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Tags parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Tags
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Tags parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Tags
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Tags parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Tags
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Tags> parser()
Returns
TypeDescription
Parser<Tags>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Tags getDefaultInstanceForType()
Returns
TypeDescription
Tags

getFingerprint()

public String getFingerprint()

Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update tags. You must always provide an up-to-date fingerprint hash in order to update or change tags. To see the latest fingerprint, make get() request to the instance.

optional string fingerprint = 234678500;

Returns
TypeDescription
String

The fingerprint.

getFingerprintBytes()

public ByteString getFingerprintBytes()

Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update tags. You must always provide an up-to-date fingerprint hash in order to update or change tags. To see the latest fingerprint, make get() request to the instance.

optional string fingerprint = 234678500;

Returns
TypeDescription
ByteString

The bytes for fingerprint.

getItems(int index)

public String getItems(int index)

An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.

repeated string items = 100526016;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The items at the given index.

getItemsBytes(int index)

public ByteString getItemsBytes(int index)

An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.

repeated string items = 100526016;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the items at the given index.

getItemsCount()

public int getItemsCount()

An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.

repeated string items = 100526016;

Returns
TypeDescription
int

The count of items.

getItemsList()

public ProtocolStringList getItemsList()

An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.

repeated string items = 100526016;

Returns
TypeDescription
ProtocolStringList

A list containing the items.

getParserForType()

public Parser<Tags> getParserForType()
Returns
TypeDescription
Parser<Tags>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasFingerprint()

public boolean hasFingerprint()

Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update tags. You must always provide an up-to-date fingerprint hash in order to update or change tags. To see the latest fingerprint, make get() request to the instance.

optional string fingerprint = 234678500;

Returns
TypeDescription
boolean

Whether the fingerprint field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Tags.Builder newBuilderForType()
Returns
TypeDescription
Tags.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Tags.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Tags.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Tags.Builder toBuilder()
Returns
TypeDescription
Tags.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException