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