public final class Tags extends GeneratedMessageV3 implements TagsOrBuilder
A set of instance tags.
Protobuf type google.cloud.compute.v1.Tags
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int FINGERPRINT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int ITEMS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static Tags getDefaultInstance()
Returns |
Type |
Description |
Tags |
|
public static final Descriptors.Descriptor getDescriptor()
public static Tags.Builder newBuilder()
public static Tags.Builder newBuilder(Tags prototype)
Parameter |
Name |
Description |
prototype |
Tags
|
public static Tags parseDelimitedFrom(InputStream input)
Returns |
Type |
Description |
Tags |
|
public static Tags parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Tags |
|
public static Tags parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
Returns |
Type |
Description |
Tags |
|
public static Tags parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Tags |
|
public static Tags parseFrom(ByteString data)
Returns |
Type |
Description |
Tags |
|
public static Tags parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Tags |
|
public static Tags parseFrom(CodedInputStream input)
Returns |
Type |
Description |
Tags |
|
public static Tags parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Tags |
|
public static Tags parseFrom(InputStream input)
Returns |
Type |
Description |
Tags |
|
public static Tags parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Tags |
|
public static Tags parseFrom(ByteBuffer data)
Returns |
Type |
Description |
Tags |
|
public static Tags parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Tags |
|
public static Parser<Tags> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public Tags getDefaultInstanceForType()
Returns |
Type |
Description |
Tags |
|
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;
public Parser<Tags> getParserForType()
Overrides
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
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 |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Tags.Builder newBuilderForType()
protected Tags.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public Tags.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides