public static final class Metadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder> implements MetadataOrBuilder
A metadata key/value entry.Protobuf type
google.cloud.compute.v1.Metadata| Modifier and Type | Method and Description |
|---|---|
Metadata.Builder |
addAllItems(Iterable<? extends Items> values)
Array of key/value pairs.
|
Metadata.Builder |
addItems(int index,
Items.Builder builderForValue)
Array of key/value pairs.
|
Metadata.Builder |
addItems(int index,
Items value)
Array of key/value pairs.
|
Metadata.Builder |
addItems(Items.Builder builderForValue)
Array of key/value pairs.
|
Metadata.Builder |
addItems(Items value)
Array of key/value pairs.
|
Items.Builder |
addItemsBuilder()
Array of key/value pairs.
|
Items.Builder |
addItemsBuilder(int index)
Array of key/value pairs.
|
Metadata.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Metadata |
build() |
Metadata |
buildPartial() |
Metadata.Builder |
clear() |
Metadata.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Metadata.Builder |
clearFingerprint()
Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking.
|
Metadata.Builder |
clearItems()
Array of key/value pairs.
|
Metadata.Builder |
clearKind()
[Output Only] Type of the resource.
|
Metadata.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Metadata.Builder |
clone() |
Metadata |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getFingerprint()
Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking.
|
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.
|
Items |
getItems(int index)
Array of key/value pairs.
|
Items.Builder |
getItemsBuilder(int index)
Array of key/value pairs.
|
List<Items.Builder> |
getItemsBuilderList()
Array of key/value pairs.
|
int |
getItemsCount()
Array of key/value pairs.
|
List<Items> |
getItemsList()
Array of key/value pairs.
|
ItemsOrBuilder |
getItemsOrBuilder(int index)
Array of key/value pairs.
|
List<? extends ItemsOrBuilder> |
getItemsOrBuilderList()
Array of key/value pairs.
|
String |
getKind()
[Output Only] Type of the resource.
|
com.google.protobuf.ByteString |
getKindBytes()
[Output Only] Type of the resource.
|
boolean |
hasFingerprint()
Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking.
|
boolean |
hasKind()
[Output Only] Type of the resource.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Metadata.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Metadata.Builder |
mergeFrom(com.google.protobuf.Message other) |
Metadata.Builder |
mergeFrom(Metadata other) |
Metadata.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Metadata.Builder |
removeItems(int index)
Array of key/value pairs.
|
Metadata.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Metadata.Builder |
setFingerprint(String value)
Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking.
|
Metadata.Builder |
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.
|
Metadata.Builder |
setItems(int index,
Items.Builder builderForValue)
Array of key/value pairs.
|
Metadata.Builder |
setItems(int index,
Items value)
Array of key/value pairs.
|
Metadata.Builder |
setKind(String value)
[Output Only] Type of the resource.
|
Metadata.Builder |
setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource.
|
Metadata.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Metadata.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>public Metadata.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>public Metadata getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Metadata build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Metadata buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Metadata.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>public Metadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>public Metadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>public Metadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>public Metadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>public Metadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>public Metadata.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Metadata.Builder>public Metadata.Builder mergeFrom(Metadata other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>public Metadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Metadata.Builder>IOExceptionpublic 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 error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
optional string fingerprint = 234678500;hasFingerprint in interface MetadataOrBuilderpublic String 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 error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
optional string fingerprint = 234678500;getFingerprint in interface MetadataOrBuilderpublic 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 error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
optional string fingerprint = 234678500;getFingerprintBytes in interface MetadataOrBuilderpublic Metadata.Builder setFingerprint(String value)
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 error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
optional string fingerprint = 234678500;value - The fingerprint to set.public Metadata.Builder 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 error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
optional string fingerprint = 234678500;public Metadata.Builder 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. 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 error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
optional string fingerprint = 234678500;value - The bytes for fingerprint to set.public List<Items> 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;getItemsList in interface MetadataOrBuilderpublic 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;getItemsCount in interface MetadataOrBuilderpublic Items getItems(int index)
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;getItems in interface MetadataOrBuilderpublic Metadata.Builder setItems(int index, Items value)
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;public Metadata.Builder setItems(int index, Items.Builder builderForValue)
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;public Metadata.Builder addItems(Items value)
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;public Metadata.Builder addItems(int index, Items value)
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;public Metadata.Builder addItems(Items.Builder builderForValue)
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;public Metadata.Builder addItems(int index, Items.Builder builderForValue)
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;public Metadata.Builder addAllItems(Iterable<? extends Items> values)
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;public Metadata.Builder 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;public Metadata.Builder removeItems(int index)
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;public Items.Builder getItemsBuilder(int index)
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;public ItemsOrBuilder getItemsOrBuilder(int index)
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 in interface MetadataOrBuilderpublic List<? extends ItemsOrBuilder> 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;getItemsOrBuilderList in interface MetadataOrBuilderpublic Items.Builder 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;public Items.Builder addItemsBuilder(int index)
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;public List<Items.Builder> 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;public boolean hasKind()
[Output Only] Type of the resource. Always compute#metadata for metadata.
optional string kind = 3292052;hasKind in interface MetadataOrBuilderpublic String getKind()
[Output Only] Type of the resource. Always compute#metadata for metadata.
optional string kind = 3292052;getKind in interface MetadataOrBuilderpublic com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#metadata for metadata.
optional string kind = 3292052;getKindBytes in interface MetadataOrBuilderpublic Metadata.Builder setKind(String value)
[Output Only] Type of the resource. Always compute#metadata for metadata.
optional string kind = 3292052;value - The kind to set.public Metadata.Builder clearKind()
[Output Only] Type of the resource. Always compute#metadata for metadata.
optional string kind = 3292052;public Metadata.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource. Always compute#metadata for metadata.
optional string kind = 3292052;value - The bytes for kind to set.public final Metadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>public final Metadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>Copyright © 2023 Google LLC. All rights reserved.