Package com.google.cloud.compute.v1
Class Metadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Metadata.Builder>
com.google.cloud.compute.v1.Metadata.Builder
- All Implemented Interfaces:
MetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Metadata
public static final class Metadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Metadata.Builder>
implements MetadataOrBuilder
A metadata key/value entry.Protobuf type
google.cloud.compute.v1.Metadata-
Method Summary
Modifier and TypeMethodDescriptionaddAllItems(Iterable<? extends Items> values) Array of key/value pairs.Array of key/value pairs.addItems(int index, Items.Builder builderForValue) Array of key/value pairs.Array of key/value pairs.addItems(Items.Builder builderForValue) Array of key/value pairs.Array of key/value pairs.addItemsBuilder(int index) Array of key/value pairs.build()clear()Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking.Array of key/value pairs.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSpecifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking.com.google.protobuf.ByteStringSpecifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking.getItems(int index) Array of key/value pairs.getItemsBuilder(int index) Array of key/value pairs.Array of key/value pairs.intArray of key/value pairs.Array of key/value pairs.getItemsOrBuilder(int index) Array of key/value pairs.List<? extends ItemsOrBuilder>Array of key/value pairs.getKind()Output only.com.google.protobuf.ByteStringOutput only.booleanSpecifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking.booleanhasKind()Output only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeItems(int index) Array of key/value pairs.setFingerprint(String value) Specifies a fingerprint for this request, which is essentially a hash of the metadata's 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 metadata's contents and used for optimistic locking.Array of key/value pairs.setItems(int index, Items.Builder builderForValue) Array of key/value pairs.Output only.setKindBytes(com.google.protobuf.ByteString value) Output only.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<Metadata.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<Metadata.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<Metadata.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<Metadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Metadata.Builder>
-
mergeFrom
public Metadata.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<Metadata.Builder>- Throws:
IOException
-
hasFingerprint
public boolean hasFingerprint()Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
optional string fingerprint = 234678500;- Specified by:
hasFingerprintin interfaceMetadataOrBuilder- Returns:
- Whether the fingerprint field is set.
-
getFingerprint
Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
optional string fingerprint = 234678500;- Specified by:
getFingerprintin interfaceMetadataOrBuilder- Returns:
- The fingerprint.
-
getFingerprintBytes
public com.google.protobuf.ByteString getFingerprintBytes()Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
optional string fingerprint = 234678500;- Specified by:
getFingerprintBytesin interfaceMetadataOrBuilder- Returns:
- The bytes for fingerprint.
-
setFingerprint
Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
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 metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
optional string fingerprint = 234678500;- Returns:
- This builder for chaining.
-
setFingerprintBytes
Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
optional string fingerprint = 234678500;- Parameters:
value- The bytes for fingerprint to set.- Returns:
- This builder for chaining.
-
getItemsList
Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
repeated .google.cloud.compute.v1.Items items = 100526016;- Specified by:
getItemsListin interfaceMetadataOrBuilder
-
getItemsCount
public int getItemsCount()Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
repeated .google.cloud.compute.v1.Items items = 100526016;- Specified by:
getItemsCountin interfaceMetadataOrBuilder
-
getItems
Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
repeated .google.cloud.compute.v1.Items items = 100526016;- Specified by:
getItemsin interfaceMetadataOrBuilder
-
setItems
Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
repeated .google.cloud.compute.v1.Items items = 100526016; -
setItems
Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
repeated .google.cloud.compute.v1.Items items = 100526016; -
addItems
Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
repeated .google.cloud.compute.v1.Items items = 100526016; -
addItems
Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
repeated .google.cloud.compute.v1.Items items = 100526016; -
addItems
Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
repeated .google.cloud.compute.v1.Items items = 100526016; -
addItems
Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
repeated .google.cloud.compute.v1.Items items = 100526016; -
addAllItems
Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
repeated .google.cloud.compute.v1.Items items = 100526016; -
clearItems
Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
repeated .google.cloud.compute.v1.Items items = 100526016; -
removeItems
Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
repeated .google.cloud.compute.v1.Items items = 100526016; -
getItemsBuilder
Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
repeated .google.cloud.compute.v1.Items items = 100526016; -
getItemsOrBuilder
Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
repeated .google.cloud.compute.v1.Items items = 100526016;- Specified by:
getItemsOrBuilderin interfaceMetadataOrBuilder
-
getItemsOrBuilderList
Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
repeated .google.cloud.compute.v1.Items items = 100526016;- Specified by:
getItemsOrBuilderListin interfaceMetadataOrBuilder
-
addItemsBuilder
Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
repeated .google.cloud.compute.v1.Items items = 100526016; -
addItemsBuilder
Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
repeated .google.cloud.compute.v1.Items items = 100526016; -
getItemsBuilderList
Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
repeated .google.cloud.compute.v1.Items items = 100526016; -
hasKind
public boolean hasKind()Output only. [Output Only] Type of the resource. Always compute#metadata for metadata.
optional string kind = 3292052;- Specified by:
hasKindin interfaceMetadataOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
Output only. [Output Only] Type of the resource. Always compute#metadata for metadata.
optional string kind = 3292052;- Specified by:
getKindin interfaceMetadataOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()Output only. [Output Only] Type of the resource. Always compute#metadata for metadata.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceMetadataOrBuilder- Returns:
- The bytes for kind.
-
setKind
Output only. [Output Only] Type of the resource. Always compute#metadata for metadata.
optional string kind = 3292052;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
Output only. [Output Only] Type of the resource. Always compute#metadata for metadata.
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
Output only. [Output Only] Type of the resource. Always compute#metadata for metadata.
optional string kind = 3292052;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-