Send feedback
Class Tags (1.16.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.16.0 keyboard_arrow_down
public final class Tags extends GeneratedMessageV3 implements TagsOrBuilder
A set of instance tags.
Protobuf type google.cloud.compute.v1.Tags
Static Fields
public static final int FINGERPRINT_FIELD_NUMBER
Field Value
public static final int ITEMS_FIELD_NUMBER
Field Value
Static Methods
public static Tags getDefaultInstance ()
Returns
public static final Descriptors . Descriptor getDescriptor ()
Returns
public static Tags . Builder newBuilder ()
Returns
public static Tags . Builder newBuilder ( Tags prototype )
Parameter
Name Description prototype Tags
Returns
public static Tags parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static Tags parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Tags parseFrom ( byte [] data )
Parameter
Name Description data byte []
Returns
Exceptions
public static Tags parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Tags parseFrom ( ByteString data )
Parameter
Returns
Exceptions
public static Tags parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Tags parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static Tags parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Tags parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static Tags parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Tags parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
public static Tags parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Parser<Tags> parser ()
Returns
Methods
public boolean equals ( Object obj )
Parameter
Returns
Overrides
public Tags getDefaultInstanceForType ()
Returns
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
Type Description String The fingerprint.
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
Type Description ByteString The bytes for fingerprint.
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
Name Description index int
The index of the element to return.
Returns
Type Description String The items at the given 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
Name Description index int
The index of the value to return.
Returns
Type Description ByteString The bytes of the items at the given index.
public int getItemsCount ()
An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
repeated string items = 100526016;
Returns
Type Description int The count of items.
public ProtocolStringList getItemsList ()
An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
repeated string items = 100526016;
Returns
public Parser<Tags> getParserForType ()
Returns
Overrides
public int getSerializedSize ()
Returns
Overrides
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
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
Type Description boolean Whether the fingerprint field is set.
Returns
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
public final boolean isInitialized ()
Returns
Overrides
public Tags . Builder newBuilderForType ()
Returns
protected Tags . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
public Tags . Builder toBuilder ()
Returns
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-04 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-10-04 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-04 UTC."]]