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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Inventory.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public Inventory buildPartial()
clear()
public Inventory.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Inventory.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearItems()
public Inventory.Builder clearItems()
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public Inventory.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
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];
clone()
public Inventory.Builder clone()
Overrides
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
|
getDefaultInstanceForType()
public Inventory getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getItems()
public Map<String,Inventory.Item> getItems()
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];
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];
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
|
getMutableItems()
public Map<String,Inventory.Item> getMutableItems()
Use alternate mutation accessors instead.
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];
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];
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];
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];
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];
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()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Inventory other)
public Inventory.Builder mergeFrom(Inventory other)
public Inventory.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Inventory.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Inventory.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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];
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];
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];
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public Inventory.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
|
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.
|
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];
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];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Inventory.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Inventory.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
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];
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
|