Class Inventory.OsInfo.Builder (2.16.0)

public static final class Inventory.OsInfo.Builder extends GeneratedMessageV3.Builder<Inventory.OsInfo.Builder> implements Inventory.OsInfoOrBuilder

Operating system information for the VM.

Protobuf type google.cloud.osconfig.v1alpha.Inventory.OsInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Inventory.OsInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Inventory.OsInfo.Builder
Overrides

build()

public Inventory.OsInfo build()
Returns
TypeDescription
Inventory.OsInfo

buildPartial()

public Inventory.OsInfo buildPartial()
Returns
TypeDescription
Inventory.OsInfo

clear()

public Inventory.OsInfo.Builder clear()
Returns
TypeDescription
Inventory.OsInfo.Builder
Overrides

clearArchitecture()

public Inventory.OsInfo.Builder clearArchitecture()

The system architecture of the operating system.

string architecture = 5;

Returns
TypeDescription
Inventory.OsInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Inventory.OsInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Inventory.OsInfo.Builder
Overrides

clearHostname()

public Inventory.OsInfo.Builder clearHostname()

The VM hostname.

string hostname = 9;

Returns
TypeDescription
Inventory.OsInfo.Builder

This builder for chaining.

clearKernelRelease()

public Inventory.OsInfo.Builder clearKernelRelease()

The kernel release of the operating system.

string kernel_release = 7;

Returns
TypeDescription
Inventory.OsInfo.Builder

This builder for chaining.

clearKernelVersion()

public Inventory.OsInfo.Builder clearKernelVersion()

The kernel version of the operating system.

string kernel_version = 6;

Returns
TypeDescription
Inventory.OsInfo.Builder

This builder for chaining.

clearLongName()

public Inventory.OsInfo.Builder clearLongName()

The operating system long name. For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 Datacenter'.

string long_name = 2;

Returns
TypeDescription
Inventory.OsInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Inventory.OsInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Inventory.OsInfo.Builder
Overrides

clearOsconfigAgentVersion()

public Inventory.OsInfo.Builder clearOsconfigAgentVersion()

The current version of the OS Config agent running on the VM.

string osconfig_agent_version = 8;

Returns
TypeDescription
Inventory.OsInfo.Builder

This builder for chaining.

clearShortName()

public Inventory.OsInfo.Builder clearShortName()

The operating system short name. For example, 'windows' or 'debian'.

string short_name = 3;

Returns
TypeDescription
Inventory.OsInfo.Builder

This builder for chaining.

clearVersion()

public Inventory.OsInfo.Builder clearVersion()

The version of the operating system.

string version = 4;

Returns
TypeDescription
Inventory.OsInfo.Builder

This builder for chaining.

clone()

public Inventory.OsInfo.Builder clone()
Returns
TypeDescription
Inventory.OsInfo.Builder
Overrides

getArchitecture()

public String getArchitecture()

The system architecture of the operating system.

string architecture = 5;

Returns
TypeDescription
String

The architecture.

getArchitectureBytes()

public ByteString getArchitectureBytes()

The system architecture of the operating system.

string architecture = 5;

Returns
TypeDescription
ByteString

The bytes for architecture.

getDefaultInstanceForType()

public Inventory.OsInfo getDefaultInstanceForType()
Returns
TypeDescription
Inventory.OsInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHostname()