- 2.55.0 (latest)
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.6
- 2.4.3
- 2.3.2
public static final class Inventory.Builder extends 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.
Protobuf type google.cloud.osconfig.v1alpha.Inventory
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Inventory.BuilderImplements
InventoryOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Inventory.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Inventory.Builder |
build()
public Inventory build()
Returns | |
---|---|
Type | Description |
Inventory |
buildPartial()
public Inventory buildPartial()
Returns | |
---|---|
Type | Description |
Inventory |
clear()
public Inventory.Builder clear()
Returns | |
---|---|
Type | Description |
Inventory.Builder |
clearField(Descriptors.FieldDescriptor field)
public Inventory.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Inventory.Builder |
clearItems()
public Inventory.Builder clearItems()
Returns | |
---|---|
Type | Description |
Inventory.Builder |
clearName()
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];
Returns | |
---|---|
Type | Description |
Inventory.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Inventory.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Inventory.Builder |
clearOsInfo()
public Inventory.Builder clearOsInfo()
Output only. Base level operating system information for the VM.
.google.cloud.osconfig.v1alpha.Inventory.OsInfo os_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Inventory.Builder |
clearUpdateTime()
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];
Returns | |
---|---|
Type | Description |
Inventory.Builder |
clone()
public Inventory.Builder clone()
Returns | |
---|---|
Type | Description |
Inventory.Builder |
containsItems(String key)
public boolean containsItems(String key)
Output only. 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.v1alpha.Inventory.Item> items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
boolean |
getDefaultInstanceForType()
public Inventory getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Inventory |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getItems() (deprecated)
public Map<String,Inventory.Item> getItems()
Use #getItemsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,Item> |
getItemsCount()
public int getItemsCount()
Output only. 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.v1alpha.Inventory.Item> items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int |
getItemsMap()
public Map<String,Inventory.Item> getItemsMap()
Output only. 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.v1alpha.Inventory.Item> items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Map<String,Item> |
getItemsOrDefault(String key, Inventory.Item defaultValue)
public Inventory.Item getItemsOrDefault(String key, Inventory.Item defaultValue)
Output only. 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.v1alpha.Inventory.Item> items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
key |
String |
defaultValue |
Inventory.Item |
Returns | |
---|---|
Type | Description |
Inventory.Item |
getItemsOrThrow(String key)
public Inventory.Item getItemsOrThrow(String key)
Output only. 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.v1alpha.Inventory.Item> items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
Inventory.Item |
getMutableItems() (deprecated)
public Map<String,Inventory.Item> getMutableItems()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,Item> |
getName()
public 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];
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public 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];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getOsInfo()
public Inventory.OsInfo getOsInfo()
Output only. Base level operating system information for the VM.
.google.cloud.osconfig.v1alpha.Inventory.OsInfo os_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Inventory.OsInfo |
The osInfo. |
getOsInfoBuilder()
public Inventory.OsInfo.Builder getOsInfoBuilder()
Output only. Base level operating system information for the VM.
.google.cloud.osconfig.v1alpha.Inventory.OsInfo os_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Inventory.OsInfo.Builder |
getOsInfoOrBuilder()
public Inventory.OsInfoOrBuilder getOsInfoOrBuilder()
Output only. Base level operating system information for the VM.
.google.cloud.osconfig.v1alpha.Inventory.OsInfo os_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Inventory.OsInfoOrBuilder |
getUpdateTime()
public 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];
Returns | |
---|---|
Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public 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];
Returns | |
---|---|
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public 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];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
hasOsInfo()
public boolean hasOsInfo()
Output only. Base level operating system information for the VM.
.google.cloud.osconfig.v1alpha.Inventory.OsInfo os_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the osInfo field is set. |
hasUpdateTime()
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];
Returns | |
---|---|
Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(Inventory other)
public Inventory.Builder mergeFrom(Inventory other)
Parameter | |
---|---|
Name | Description |
other |
Inventory |
Returns | |
---|---|
Type | Description |
Inventory.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Inventory.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Inventory.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Inventory.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Inventory.Builder |
mergeOsInfo(Inventory.OsInfo value)
public Inventory.Builder mergeOsInfo(Inventory.OsInfo value)
Output only. Base level operating system information for the VM.
.google.cloud.osconfig.v1alpha.Inventory.OsInfo os_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Inventory.OsInfo |
Returns | |
---|---|
Type | Description |
Inventory.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Inventory.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Inventory.Builder |
mergeUpdateTime(Timestamp value)
public Inventory.Builder mergeUpdateTime(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];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
Inventory.Builder |
putAllItems(Map<String,Inventory.Item> values)
public Inventory.Builder putAllItems(Map<String,Inventory.Item> values)
Output only. 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.v1alpha.Inventory.Item> items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
values |
Map<String,Item> |
Returns | |
---|---|
Type | Description |
Inventory.Builder |
putItems(String key, Inventory.Item value)
public Inventory.Builder putItems(String key, Inventory.Item value)
Output only. 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.v1alpha.Inventory.Item> items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
key |
String |
value |
Inventory.Item |
Returns | |
---|---|
Type | Description |
Inventory.Builder |
putItemsBuilderIfAbsent(String key)
public Inventory.Item.Builder putItemsBuilderIfAbsent(String key)
Output only. 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.v1alpha.Inventory.Item> items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
Inventory.Item.Builder |
removeItems(String key)
public Inventory.Builder removeItems(String key)
Output only. 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.v1alpha.Inventory.Item> items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
Inventory.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Inventory.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Inventory.Builder |
setName(String value)
public 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];
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
Inventory.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Inventory.Builder setNameBytes(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];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
Inventory.Builder |
This builder for chaining. |
setOsInfo(Inventory.OsInfo value)
public Inventory.Builder setOsInfo(Inventory.OsInfo value)
Output only. Base level operating system information for the VM.
.google.cloud.osconfig.v1alpha.Inventory.OsInfo os_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Inventory.OsInfo |
Returns | |
---|---|
Type | Description |
Inventory.Builder |
setOsInfo(Inventory.OsInfo.Builder builderForValue)
public Inventory.Builder setOsInfo(Inventory.OsInfo.Builder builderForValue)
Output only. Base level operating system information for the VM.
.google.cloud.osconfig.v1alpha.Inventory.OsInfo os_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Inventory.OsInfo.Builder |
Returns | |
---|---|
Type | Description |
Inventory.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Inventory.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Inventory.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Inventory.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Inventory.Builder |
setUpdateTime(Timestamp value)
public Inventory.Builder setUpdateTime(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];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
Inventory.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public Inventory.Builder setUpdateTime(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];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
Inventory.Builder |