Class Inventory.OsInfo.Builder (2.57.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Inventory.OsInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Inventory.OsInfo.Builder
Overrides

build()

public Inventory.OsInfo build()
Returns
Type Description
Inventory.OsInfo

buildPartial()

public Inventory.OsInfo buildPartial()
Returns
Type Description
Inventory.OsInfo

clear()

public Inventory.OsInfo.Builder clear()
Returns
Type Description
Inventory.OsInfo.Builder
Overrides

clearArchitecture()

public Inventory.OsInfo.Builder clearArchitecture()

The system architecture of the operating system.

string architecture = 5;

Returns
Type Description
Inventory.OsInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Inventory.OsInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Inventory.OsInfo.Builder
Overrides

clearHostname()

public Inventory.OsInfo.Builder clearHostname()

The VM hostname.

string hostname = 9;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
Inventory.OsInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Inventory.OsInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
Inventory.OsInfo.Builder

This builder for chaining.

clearVersion()

public Inventory.OsInfo.Builder clearVersion()

The version of the operating system.

string version = 4;

Returns
Type Description
Inventory.OsInfo.Builder

This builder for chaining.

clone()

public Inventory.OsInfo.Builder clone()
Returns
Type Description
Inventory.OsInfo.Builder
Overrides

getArchitecture()

public String getArchitecture()

The system architecture of the operating system.

string architecture = 5;

Returns
Type Description
String

The architecture.

getArchitectureBytes()

public ByteString getArchitectureBytes()

The system architecture of the operating system.

string architecture = 5;

Returns
Type Description
ByteString

The bytes for architecture.

getDefaultInstanceForType()

public Inventory.OsInfo getDefaultInstanceForType()
Returns
Type Description
Inventory.OsInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHostname()

public String getHostname()

The VM hostname.

string hostname = 9;

Returns
Type Description
String

The hostname.

getHostnameBytes()

public ByteString getHostnameBytes()

The VM hostname.

string hostname = 9;

Returns
Type Description
ByteString

The bytes for hostname.

getKernelRelease()

public String getKernelRelease()

The kernel release of the operating system.

string kernel_release = 7;

Returns
Type Description
String

The kernelRelease.

getKernelReleaseBytes()

public ByteString getKernelReleaseBytes()

The kernel release of the operating system.

string kernel_release = 7;

Returns
Type Description
ByteString

The bytes for kernelRelease.

getKernelVersion()

public String getKernelVersion()

The kernel version of the operating system.

string kernel_version = 6;

Returns
Type Description
String

The kernelVersion.

getKernelVersionBytes()

public ByteString getKernelVersionBytes()

The kernel version of the operating system.

string kernel_version = 6;

Returns
Type Description
ByteString

The bytes for kernelVersion.

getLongName()

public String getLongName()

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

string long_name = 2;

Returns
Type Description
String

The longName.

getLongNameBytes()

public ByteString getLongNameBytes()

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

string long_name = 2;

Returns
Type Description
ByteString

The bytes for longName.

getOsconfigAgentVersion()

public String getOsconfigAgentVersion()

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

string osconfig_agent_version = 8;

Returns
Type Description
String

The osconfigAgentVersion.

getOsconfigAgentVersionBytes()

public ByteString getOsconfigAgentVersionBytes()

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

string osconfig_agent_version = 8;

Returns
Type Description
ByteString

The bytes for osconfigAgentVersion.

getShortName()

public String getShortName()

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

string short_name = 3;

Returns
Type Description
String

The shortName.

getShortNameBytes()

public ByteString getShortNameBytes()

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

string short_name = 3;

Returns
Type Description
ByteString

The bytes for shortName.

getVersion()

public String getVersion()

The version of the operating system.

string version = 4;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

The version of the operating system.

string version = 4;

Returns
Type Description
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Inventory.OsInfo other)

public Inventory.OsInfo.Builder mergeFrom(Inventory.OsInfo other)
Parameter
Name Description
other Inventory.OsInfo
Returns
Type Description
Inventory.OsInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Inventory.OsInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Inventory.OsInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Inventory.OsInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Inventory.OsInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Inventory.OsInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Inventory.OsInfo.Builder
Overrides

setArchitecture(String value)

public Inventory.OsInfo.Builder setArchitecture(String value)

The system architecture of the operating system.

string architecture = 5;

Parameter
Name Description
value String

The architecture to set.

Returns
Type Description
Inventory.OsInfo.Builder

This builder for chaining.

setArchitectureBytes(ByteString value)

public Inventory.OsInfo.Builder setArchitectureBytes(ByteString value)

The system architecture of the operating system.

string architecture = 5;

Parameter
Name Description
value ByteString

The bytes for architecture to set.

Returns
Type Description
Inventory.OsInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Inventory.OsInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Inventory.OsInfo.Builder
Overrides

setHostname(String value)

public Inventory.OsInfo.Builder setHostname(String value)

The VM hostname.

string hostname = 9;

Parameter
Name Description
value String

The hostname to set.

Returns
Type Description
Inventory.OsInfo.Builder

This builder for chaining.

setHostnameBytes(ByteString value)

public Inventory.OsInfo.Builder setHostnameBytes(ByteString value)

The VM hostname.

string hostname = 9;

Parameter
Name Description
value ByteString

The bytes for hostname to set.

Returns
Type Description
Inventory.OsInfo.Builder

This builder for chaining.

setKernelRelease(String value)

public Inventory.OsInfo.Builder setKernelRelease(String value)

The kernel release of the operating system.

string kernel_release = 7;

Parameter
Name Description
value String

The kernelRelease to set.

Returns
Type Description
Inventory.OsInfo.Builder

This builder for chaining.

setKernelReleaseBytes(ByteString value)

public Inventory.OsInfo.Builder setKernelReleaseBytes(ByteString value)

The kernel release of the operating system.

string kernel_release = 7;

Parameter
Name Description
value ByteString

The bytes for kernelRelease to set.

Returns
Type Description
Inventory.OsInfo.Builder

This builder for chaining.

setKernelVersion(String value)

public Inventory.OsInfo.Builder setKernelVersion(String value)

The kernel version of the operating system.

string kernel_version = 6;

Parameter
Name Description
value String

The kernelVersion to set.

Returns
Type Description
Inventory.OsInfo.Builder

This builder for chaining.

setKernelVersionBytes(ByteString value)

public Inventory.OsInfo.Builder setKernelVersionBytes(ByteString value)

The kernel version of the operating system.

string kernel_version = 6;

Parameter
Name Description
value ByteString

The bytes for kernelVersion to set.

Returns
Type Description
Inventory.OsInfo.Builder

This builder for chaining.

setLongName(String value)

public Inventory.OsInfo.Builder setLongName(String value)

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

string long_name = 2;

Parameter
Name Description
value String

The longName to set.

Returns
Type Description
Inventory.OsInfo.Builder

This builder for chaining.

setLongNameBytes(ByteString value)

public Inventory.OsInfo.Builder setLongNameBytes(ByteString value)

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

string long_name = 2;

Parameter
Name Description
value ByteString

The bytes for longName to set.

Returns
Type Description
Inventory.OsInfo.Builder

This builder for chaining.

setOsconfigAgentVersion(String value)

public Inventory.OsInfo.Builder setOsconfigAgentVersion(String value)

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

string osconfig_agent_version = 8;

Parameter
Name Description
value String

The osconfigAgentVersion to set.

Returns
Type Description
Inventory.OsInfo.Builder

This builder for chaining.

setOsconfigAgentVersionBytes(ByteString value)

public Inventory.OsInfo.Builder setOsconfigAgentVersionBytes(ByteString value)

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

string osconfig_agent_version = 8;

Parameter
Name Description
value ByteString

The bytes for osconfigAgentVersion to set.

Returns
Type Description
Inventory.OsInfo.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Inventory.OsInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Inventory.OsInfo.Builder
Overrides

setShortName(String value)

public Inventory.OsInfo.Builder setShortName(String value)

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

string short_name = 3;

Parameter
Name Description
value String

The shortName to set.

Returns
Type Description
Inventory.OsInfo.Builder

This builder for chaining.

setShortNameBytes(ByteString value)

public Inventory.OsInfo.Builder setShortNameBytes(ByteString value)

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

string short_name = 3;

Parameter
Name Description
value ByteString

The bytes for shortName to set.

Returns
Type Description
Inventory.OsInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Inventory.OsInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Inventory.OsInfo.Builder
Overrides

setVersion(String value)

public Inventory.OsInfo.Builder setVersion(String value)

The version of the operating system.

string version = 4;

Parameter
Name Description
value String

The version to set.

Returns
Type Description
Inventory.OsInfo.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public Inventory.OsInfo.Builder setVersionBytes(ByteString value)

The version of the operating system.

string version = 4;

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
Inventory.OsInfo.Builder

This builder for chaining.