Class Inventory.OsInfo.Builder (2.5.6)

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.v1.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()

public String getHostname()

The VM hostname.

string hostname = 9;

Returns
TypeDescription
String

The hostname.

getHostnameBytes()

public ByteString getHostnameBytes()

The VM hostname.

string hostname = 9;

Returns
TypeDescription
ByteString

The bytes for hostname.

getKernelRelease()

public String getKernelRelease()

The kernel release of the operating system.

string kernel_release = 7;

Returns
TypeDescription
String

The kernelRelease.

getKernelReleaseBytes()

public ByteString getKernelReleaseBytes()

The kernel release of the operating system.

string kernel_release = 7;

Returns
TypeDescription
ByteString

The bytes for kernelRelease.

getKernelVersion()

public String getKernelVersion()

The kernel version of the operating system.

string kernel_version = 6;

Returns
TypeDescription
String

The kernelVersion.

getKernelVersionBytes()

public ByteString getKernelVersionBytes()

The kernel version of the operating system.

string kernel_version = 6;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for osconfigAgentVersion.

getShortName()

public String getShortName()

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

string short_name = 3;

Returns
TypeDescription
String

The shortName.

getShortNameBytes()

public ByteString getShortNameBytes()

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

string short_name = 3;

Returns
TypeDescription
ByteString

The bytes for shortName.

getVersion()

public String getVersion()

The version of the operating system.

string version = 4;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

The version of the operating system.

string version = 4;

Returns
TypeDescription
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Inventory.OsInfo other)

public Inventory.OsInfo.Builder mergeFrom(Inventory.OsInfo other)
Parameter
NameDescription
otherInventory.OsInfo
Returns
TypeDescription
Inventory.OsInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Inventory.OsInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Inventory.OsInfo.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Inventory.OsInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Inventory.OsInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Inventory.OsInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The architecture to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for architecture to set.

Returns
TypeDescription
Inventory.OsInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setHostname(String value)

public Inventory.OsInfo.Builder setHostname(String value)

The VM hostname.

string hostname = 9;

Parameter
NameDescription
valueString

The hostname to set.

Returns
TypeDescription
Inventory.OsInfo.Builder

This builder for chaining.

setHostnameBytes(ByteString value)

public Inventory.OsInfo.Builder setHostnameBytes(ByteString value)

The VM hostname.

string hostname = 9;

Parameter
NameDescription
valueByteString

The bytes for hostname to set.

Returns
TypeDescription
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
NameDescription
valueString

The kernelRelease to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for kernelRelease to set.

Returns
TypeDescription
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
NameDescription
valueString

The kernelVersion to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for kernelVersion to set.

Returns
TypeDescription
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
NameDescription
valueString

The longName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for longName to set.

Returns
TypeDescription
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
NameDescription
valueString

The osconfigAgentVersion to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for osconfigAgentVersion to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The shortName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for shortName to set.

Returns
TypeDescription
Inventory.OsInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Inventory.OsInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Inventory.OsInfo.Builder
Overrides

setVersion(String value)

public Inventory.OsInfo.Builder setVersion(String value)

The version of the operating system.

string version = 4;

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
Inventory.OsInfo.Builder

This builder for chaining.