Package com.google.cloud.compute.v1
Class Tags.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Tags.Builder>
com.google.cloud.compute.v1.Tags.Builder
- All Implemented Interfaces:
TagsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Tags
public static final class Tags.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Tags.Builder>
implements TagsOrBuilder
A set of instance tags.Protobuf type
google.cloud.compute.v1.Tags-
Method Summary
Modifier and TypeMethodDescriptionaddAllItems(Iterable<String> values) An array of tags.An array of tags.addItemsBytes(com.google.protobuf.ByteString value) An array of tags.build()clear()Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking.An array of tags.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSpecifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking.com.google.protobuf.ByteStringSpecifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking.getItems(int index) An array of tags.com.google.protobuf.ByteStringgetItemsBytes(int index) An array of tags.intAn array of tags.com.google.protobuf.ProtocolStringListAn array of tags.booleanSpecifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setFingerprint(String value) Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking.setFingerprintBytes(com.google.protobuf.ByteString value) Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking.An array of tags.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Tags.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Tags.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Tags.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Tags.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Tags.Builder>
-
mergeFrom
public Tags.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Tags.Builder>- Throws:
IOException
-
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;- Specified by:
hasFingerprintin interfaceTagsOrBuilder- Returns:
- Whether the fingerprint field is set.
-
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;- Specified by:
getFingerprintin interfaceTagsOrBuilder- Returns:
- The fingerprint.
-
getFingerprintBytes
public com.google.protobuf.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;- Specified by:
getFingerprintBytesin interfaceTagsOrBuilder- Returns:
- The bytes for fingerprint.
-
setFingerprint
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;- Parameters:
value- The fingerprint to set.- Returns:
- This builder for chaining.
-
clearFingerprint
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:
- This builder for chaining.
-
setFingerprintBytes
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;- Parameters:
value- The bytes for fingerprint to set.- Returns:
- This builder for chaining.
-
getItemsList
public com.google.protobuf.ProtocolStringList getItemsList()An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
repeated string items = 100526016;- Specified by:
getItemsListin interfaceTagsOrBuilder- Returns:
- A list containing the items.
-
getItemsCount
public int getItemsCount()An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
repeated string items = 100526016;- Specified by:
getItemsCountin interfaceTagsOrBuilder- Returns:
- The count of items.
-
getItems
An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
repeated string items = 100526016;- Specified by:
getItemsin interfaceTagsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The items at the given index.
-
getItemsBytes
public com.google.protobuf.ByteString getItemsBytes(int index) An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
repeated string items = 100526016;- Specified by:
getItemsBytesin interfaceTagsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the items at the given index.
-
setItems
An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
repeated string items = 100526016;- Parameters:
index- The index to set the value at.value- The items to set.- Returns:
- This builder for chaining.
-
addItems
An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
repeated string items = 100526016;- Parameters:
value- The items to add.- Returns:
- This builder for chaining.
-
addAllItems
An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
repeated string items = 100526016;- Parameters:
values- The items to add.- Returns:
- This builder for chaining.
-
clearItems
An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
repeated string items = 100526016;- Returns:
- This builder for chaining.
-
addItemsBytes
An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
repeated string items = 100526016;- Parameters:
value- The bytes of the items to add.- Returns:
- This builder for chaining.
-