public static final class Inventory.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Inventory.Builder> implements InventoryOrBuilder
This API resource represents the available inventory data for a Compute Engine virtual machine (VM) instance at a given point in time. You can use this API resource to determine the inventory data of your VM. For more information, see [Information provided by OS inventory management](https://cloud.google.com/compute/docs/instances/os-inventory-management#data-collected).Protobuf type
google.cloud.osconfig.v1.Inventory| Modifier and Type | Method and Description |
|---|---|
Inventory.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Inventory |
build() |
Inventory |
buildPartial() |
Inventory.Builder |
clear() |
Inventory.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Inventory.Builder |
clearItems() |
Inventory.Builder |
clearName()
Output only.
|
Inventory.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Inventory.Builder |
clearOsInfo()
Base level operating system information for the VM.
|
Inventory.Builder |
clearUpdateTime()
Output only.
|
Inventory.Builder |
clone() |
boolean |
containsItems(String key)
Inventory items related to the VM keyed by an opaque unique identifier for
each inventory item.
|
Inventory |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,Inventory.Item> |
getItems()
Deprecated.
|
int |
getItemsCount()
Inventory items related to the VM keyed by an opaque unique identifier for
each inventory item.
|
Map<String,Inventory.Item> |
getItemsMap()
Inventory items related to the VM keyed by an opaque unique identifier for
each inventory item.
|
Inventory.Item |
getItemsOrDefault(String key,
Inventory.Item defaultValue)
Inventory items related to the VM keyed by an opaque unique identifier for
each inventory item.
|
Inventory.Item |
getItemsOrThrow(String key)
Inventory items related to the VM keyed by an opaque unique identifier for
each inventory item.
|
Map<String,Inventory.Item> |
getMutableItems()
Deprecated.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
Inventory.OsInfo |
getOsInfo()
Base level operating system information for the VM.
|
Inventory.OsInfo.Builder |
getOsInfoBuilder()
Base level operating system information for the VM.
|
Inventory.OsInfoOrBuilder |
getOsInfoOrBuilder()
Base level operating system information for the VM.
|
com.google.protobuf.Timestamp |
getUpdateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getUpdateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
boolean |
hasOsInfo()
Base level operating system information for the VM.
|
boolean |
hasUpdateTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Inventory.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Inventory.Builder |
mergeFrom(Inventory other) |
Inventory.Builder |
mergeFrom(com.google.protobuf.Message other) |
Inventory.Builder |
mergeOsInfo(Inventory.OsInfo value)
Base level operating system information for the VM.
|
Inventory.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Inventory.Builder |
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
Inventory.Builder |
putAllItems(Map<String,Inventory.Item> values)
Inventory items related to the VM keyed by an opaque unique identifier for
each inventory item.
|
Inventory.Builder |
putItems(String key,
Inventory.Item value)
Inventory items related to the VM keyed by an opaque unique identifier for
each inventory item.
|
Inventory.Builder |
removeItems(String key)
Inventory items related to the VM keyed by an opaque unique identifier for
each inventory item.
|
Inventory.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Inventory.Builder |
setName(String value)
Output only.
|
Inventory.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Output only.
|
Inventory.Builder |
setOsInfo(Inventory.OsInfo.Builder builderForValue)
Base level operating system information for the VM.
|
Inventory.Builder |
setOsInfo(Inventory.OsInfo value)
Base level operating system information for the VM.
|
Inventory.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Inventory.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Inventory.Builder |
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
Inventory.Builder |
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapFieldReflection, internalGetMutableMapFieldReflection, 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, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Inventory.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Inventory.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Inventory.Builder>public Inventory.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Inventory.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<Inventory.Builder>public Inventory getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Inventory build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Inventory buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Inventory.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Inventory.Builder>public Inventory.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<Inventory.Builder>public Inventory.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Inventory.Builder>public Inventory.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Inventory.Builder>public Inventory.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<Inventory.Builder>public Inventory.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<Inventory.Builder>public Inventory.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Inventory.Builder>public Inventory.Builder mergeFrom(Inventory other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Inventory.Builder>public Inventory.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<Inventory.Builder>IOExceptionpublic String getName()
Output only. The `Inventory` API resource name.
Format:
`projects/{project_number}/locations/{location}/instances/{instance_id}/inventory`
string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface InventoryOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. The `Inventory` API resource name.
Format:
`projects/{project_number}/locations/{location}/instances/{instance_id}/inventory`
string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface InventoryOrBuilderpublic Inventory.Builder setName(String value)
Output only. The `Inventory` API resource name.
Format:
`projects/{project_number}/locations/{location}/instances/{instance_id}/inventory`
string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The name to set.public Inventory.Builder clearName()
Output only. The `Inventory` API resource name.
Format:
`projects/{project_number}/locations/{location}/instances/{instance_id}/inventory`
string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];public Inventory.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The `Inventory` API resource name.
Format:
`projects/{project_number}/locations/{location}/instances/{instance_id}/inventory`
string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for name to set.public boolean hasOsInfo()
Base level operating system information for the VM.
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;hasOsInfo in interface InventoryOrBuilderpublic Inventory.OsInfo getOsInfo()
Base level operating system information for the VM.
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;getOsInfo in interface InventoryOrBuilderpublic Inventory.Builder setOsInfo(Inventory.OsInfo value)
Base level operating system information for the VM.
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;public Inventory.Builder setOsInfo(Inventory.OsInfo.Builder builderForValue)
Base level operating system information for the VM.
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;public Inventory.Builder mergeOsInfo(Inventory.OsInfo value)
Base level operating system information for the VM.
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;public Inventory.Builder clearOsInfo()
Base level operating system information for the VM.
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;public Inventory.OsInfo.Builder getOsInfoBuilder()
Base level operating system information for the VM.
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;public Inventory.OsInfoOrBuilder getOsInfoOrBuilder()
Base level operating system information for the VM.
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;getOsInfoOrBuilder in interface InventoryOrBuilderpublic int getItemsCount()
InventoryOrBuilderInventory items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version.
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;getItemsCount in interface InventoryOrBuilderpublic boolean containsItems(String key)
Inventory items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version.
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;containsItems in interface InventoryOrBuilder@Deprecated public Map<String,Inventory.Item> getItems()
getItemsMap() instead.getItems in interface InventoryOrBuilderpublic Map<String,Inventory.Item> getItemsMap()
Inventory items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version.
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;getItemsMap in interface InventoryOrBuilderpublic Inventory.Item getItemsOrDefault(String key, Inventory.Item defaultValue)
Inventory items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version.
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;getItemsOrDefault in interface InventoryOrBuilderpublic Inventory.Item getItemsOrThrow(String key)
Inventory items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version.
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;getItemsOrThrow in interface InventoryOrBuilderpublic Inventory.Builder clearItems()
public Inventory.Builder removeItems(String key)
Inventory items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version.
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;@Deprecated public Map<String,Inventory.Item> getMutableItems()
public Inventory.Builder putItems(String key, Inventory.Item value)
Inventory items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version.
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;public Inventory.Builder putAllItems(Map<String,Inventory.Item> values)
Inventory items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version.
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;public boolean hasUpdateTime()
Output only. Timestamp of the last reported inventory for the VM.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasUpdateTime in interface InventoryOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
Output only. Timestamp of the last reported inventory for the VM.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTime in interface InventoryOrBuilderpublic Inventory.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. Timestamp of the last reported inventory for the VM.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Inventory.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Timestamp of the last reported inventory for the VM.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Inventory.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. Timestamp of the last reported inventory for the VM.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Inventory.Builder clearUpdateTime()
Output only. Timestamp of the last reported inventory for the VM.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Output only. Timestamp of the last reported inventory for the VM.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Timestamp of the last reported inventory for the VM.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTimeOrBuilder in interface InventoryOrBuilderpublic final Inventory.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Inventory.Builder>public final Inventory.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Inventory.Builder>Copyright © 2024 Google LLC. All rights reserved.