Package com.google.cloud.osconfig.v1
Class Inventory.OsInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
- com.google.cloud.osconfig.v1.Inventory.OsInfo.Builder
-
- All Implemented Interfaces:
Inventory.OsInfoOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Inventory.OsInfo
public static final class Inventory.OsInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder> implements Inventory.OsInfoOrBuilder
Operating system information for the VM.
Protobuf typegoogle.cloud.osconfig.v1.Inventory.OsInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Inventory.OsInfo.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Inventory.OsInfo
build()
Inventory.OsInfo
buildPartial()
Inventory.OsInfo.Builder
clear()
Inventory.OsInfo.Builder
clearArchitecture()
The system architecture of the operating system.Inventory.OsInfo.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Inventory.OsInfo.Builder
clearHostname()
The VM hostname.Inventory.OsInfo.Builder
clearKernelRelease()
The kernel release of the operating system.Inventory.OsInfo.Builder
clearKernelVersion()
The kernel version of the operating system.Inventory.OsInfo.Builder
clearLongName()
The operating system long name.Inventory.OsInfo.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Inventory.OsInfo.Builder
clearOsconfigAgentVersion()
The current version of the OS Config agent running on the VM.Inventory.OsInfo.Builder
clearShortName()
The operating system short name.Inventory.OsInfo.Builder
clearVersion()
The version of the operating system.Inventory.OsInfo.Builder
clone()
String
getArchitecture()
The system architecture of the operating system.com.google.protobuf.ByteString
getArchitectureBytes()
The system architecture of the operating system.Inventory.OsInfo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getHostname()
The VM hostname.com.google.protobuf.ByteString
getHostnameBytes()
The VM hostname.String
getKernelRelease()
The kernel release of the operating system.com.google.protobuf.ByteString
getKernelReleaseBytes()
The kernel release of the operating system.String
getKernelVersion()
The kernel version of the operating system.com.google.protobuf.ByteString
getKernelVersionBytes()
The kernel version of the operating system.String
getLongName()
The operating system long name.com.google.protobuf.ByteString
getLongNameBytes()
The operating system long name.String
getOsconfigAgentVersion()
The current version of the OS Config agent running on the VM.com.google.protobuf.ByteString
getOsconfigAgentVersionBytes()
The current version of the OS Config agent running on the VM.String
getShortName()
The operating system short name.com.google.protobuf.ByteString
getShortNameBytes()
The operating system short name.String
getVersion()
The version of the operating system.com.google.protobuf.ByteString
getVersionBytes()
The version of the operating system.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Inventory.OsInfo.Builder
mergeFrom(Inventory.OsInfo other)
Inventory.OsInfo.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Inventory.OsInfo.Builder
mergeFrom(com.google.protobuf.Message other)
Inventory.OsInfo.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Inventory.OsInfo.Builder
setArchitecture(String value)
The system architecture of the operating system.Inventory.OsInfo.Builder
setArchitectureBytes(com.google.protobuf.ByteString value)
The system architecture of the operating system.Inventory.OsInfo.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Inventory.OsInfo.Builder
setHostname(String value)
The VM hostname.Inventory.OsInfo.Builder
setHostnameBytes(com.google.protobuf.ByteString value)
The VM hostname.Inventory.OsInfo.Builder
setKernelRelease(String value)
The kernel release of the operating system.Inventory.OsInfo.Builder
setKernelReleaseBytes(com.google.protobuf.ByteString value)
The kernel release of the operating system.Inventory.OsInfo.Builder
setKernelVersion(String value)
The kernel version of the operating system.Inventory.OsInfo.Builder
setKernelVersionBytes(com.google.protobuf.ByteString value)
The kernel version of the operating system.Inventory.OsInfo.Builder
setLongName(String value)
The operating system long name.Inventory.OsInfo.Builder
setLongNameBytes(com.google.protobuf.ByteString value)
The operating system long name.Inventory.OsInfo.Builder
setOsconfigAgentVersion(String value)
The current version of the OS Config agent running on the VM.Inventory.OsInfo.Builder
setOsconfigAgentVersionBytes(com.google.protobuf.ByteString value)
The current version of the OS Config agent running on the VM.Inventory.OsInfo.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Inventory.OsInfo.Builder
setShortName(String value)
The operating system short name.Inventory.OsInfo.Builder
setShortNameBytes(com.google.protobuf.ByteString value)
The operating system short name.Inventory.OsInfo.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Inventory.OsInfo.Builder
setVersion(String value)
The version of the operating system.Inventory.OsInfo.Builder
setVersionBytes(com.google.protobuf.ByteString value)
The version of the operating system.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
clear
public Inventory.OsInfo.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
getDefaultInstanceForType
public Inventory.OsInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Inventory.OsInfo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Inventory.OsInfo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Inventory.OsInfo.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
setField
public Inventory.OsInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
clearField
public Inventory.OsInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
clearOneof
public Inventory.OsInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
setRepeatedField
public Inventory.OsInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
addRepeatedField
public Inventory.OsInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
mergeFrom
public Inventory.OsInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Inventory.OsInfo.Builder>
-
mergeFrom
public Inventory.OsInfo.Builder mergeFrom(Inventory.OsInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
mergeFrom
public Inventory.OsInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Inventory.OsInfo.Builder>
- Throws:
IOException
-
getHostname
public String getHostname()
The VM hostname.
string hostname = 9;
- Specified by:
getHostname
in interfaceInventory.OsInfoOrBuilder
- Returns:
- The hostname.
-
getHostnameBytes
public com.google.protobuf.ByteString getHostnameBytes()
The VM hostname.
string hostname = 9;
- Specified by:
getHostnameBytes
in interfaceInventory.OsInfoOrBuilder
- Returns:
- The bytes for hostname.
-
setHostname
public Inventory.OsInfo.Builder setHostname(String value)
The VM hostname.
string hostname = 9;
- Parameters:
value
- The hostname to set.- Returns:
- This builder for chaining.
-
clearHostname
public Inventory.OsInfo.Builder clearHostname()
The VM hostname.
string hostname = 9;
- Returns:
- This builder for chaining.
-
setHostnameBytes
public Inventory.OsInfo.Builder setHostnameBytes(com.google.protobuf.ByteString value)
The VM hostname.
string hostname = 9;
- Parameters:
value
- The bytes for hostname to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getLongName
in interfaceInventory.OsInfoOrBuilder
- Returns:
- The longName.
-
getLongNameBytes
public com.google.protobuf.ByteString getLongNameBytes()
The operating system long name. For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 Datacenter'.
string long_name = 2;
- Specified by:
getLongNameBytes
in interfaceInventory.OsInfoOrBuilder
- Returns:
- The bytes for longName.
-
setLongName
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;
- Parameters:
value
- The longName to set.- Returns:
- 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:
- This builder for chaining.
-
setLongNameBytes
public Inventory.OsInfo.Builder setLongNameBytes(com.google.protobuf.ByteString value)
The operating system long name. For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 Datacenter'.
string long_name = 2;
- Parameters:
value
- The bytes for longName to set.- Returns:
- This builder for chaining.
-
getShortName
public String getShortName()
The operating system short name. For example, 'windows' or 'debian'.
string short_name = 3;
- Specified by:
getShortName
in interfaceInventory.OsInfoOrBuilder
- Returns:
- The shortName.
-
getShortNameBytes
public com.google.protobuf.ByteString getShortNameBytes()
The operating system short name. For example, 'windows' or 'debian'.
string short_name = 3;
- Specified by:
getShortNameBytes
in interfaceInventory.OsInfoOrBuilder
- Returns:
- The bytes for shortName.
-
setShortName
public Inventory.OsInfo.Builder setShortName(String value)
The operating system short name. For example, 'windows' or 'debian'.
string short_name = 3;
- Parameters:
value
- The shortName to set.- Returns:
- 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:
- This builder for chaining.
-
setShortNameBytes
public Inventory.OsInfo.Builder setShortNameBytes(com.google.protobuf.ByteString value)
The operating system short name. For example, 'windows' or 'debian'.
string short_name = 3;
- Parameters:
value
- The bytes for shortName to set.- Returns:
- This builder for chaining.
-
getVersion
public String getVersion()
The version of the operating system.
string version = 4;
- Specified by:
getVersion
in interfaceInventory.OsInfoOrBuilder
- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()
The version of the operating system.
string version = 4;
- Specified by:
getVersionBytes
in interfaceInventory.OsInfoOrBuilder
- Returns:
- The bytes for version.
-
setVersion
public Inventory.OsInfo.Builder setVersion(String value)
The version of the operating system.
string version = 4;
- Parameters:
value
- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
public Inventory.OsInfo.Builder clearVersion()
The version of the operating system.
string version = 4;
- Returns:
- This builder for chaining.
-
setVersionBytes
public Inventory.OsInfo.Builder setVersionBytes(com.google.protobuf.ByteString value)
The version of the operating system.
string version = 4;
- Parameters:
value
- The bytes for version to set.- Returns:
- This builder for chaining.
-
getArchitecture
public String getArchitecture()
The system architecture of the operating system.
string architecture = 5;
- Specified by:
getArchitecture
in interfaceInventory.OsInfoOrBuilder
- Returns:
- The architecture.
-
getArchitectureBytes
public com.google.protobuf.ByteString getArchitectureBytes()
The system architecture of the operating system.
string architecture = 5;
- Specified by:
getArchitectureBytes
in interfaceInventory.OsInfoOrBuilder
- Returns:
- The bytes for architecture.
-
setArchitecture
public Inventory.OsInfo.Builder setArchitecture(String value)
The system architecture of the operating system.
string architecture = 5;
- Parameters:
value
- The architecture to set.- Returns:
- This builder for chaining.
-
clearArchitecture
public Inventory.OsInfo.Builder clearArchitecture()
The system architecture of the operating system.
string architecture = 5;
- Returns:
- This builder for chaining.
-
setArchitectureBytes
public Inventory.OsInfo.Builder setArchitectureBytes(com.google.protobuf.ByteString value)
The system architecture of the operating system.
string architecture = 5;
- Parameters:
value
- The bytes for architecture to set.- Returns:
- This builder for chaining.
-
getKernelVersion
public String getKernelVersion()
The kernel version of the operating system.
string kernel_version = 6;
- Specified by:
getKernelVersion
in interfaceInventory.OsInfoOrBuilder
- Returns:
- The kernelVersion.
-
getKernelVersionBytes
public com.google.protobuf.ByteString getKernelVersionBytes()
The kernel version of the operating system.
string kernel_version = 6;
- Specified by:
getKernelVersionBytes
in interfaceInventory.OsInfoOrBuilder
- Returns:
- The bytes for kernelVersion.
-
setKernelVersion
public Inventory.OsInfo.Builder setKernelVersion(String value)
The kernel version of the operating system.
string kernel_version = 6;
- Parameters:
value
- The kernelVersion to set.- Returns:
- This builder for chaining.
-
clearKernelVersion
public Inventory.OsInfo.Builder clearKernelVersion()
The kernel version of the operating system.
string kernel_version = 6;
- Returns:
- This builder for chaining.
-
setKernelVersionBytes
public Inventory.OsInfo.Builder setKernelVersionBytes(com.google.protobuf.ByteString value)
The kernel version of the operating system.
string kernel_version = 6;
- Parameters:
value
- The bytes for kernelVersion to set.- Returns:
- This builder for chaining.
-
getKernelRelease
public String getKernelRelease()
The kernel release of the operating system.
string kernel_release = 7;
- Specified by:
getKernelRelease
in interfaceInventory.OsInfoOrBuilder
- Returns:
- The kernelRelease.
-
getKernelReleaseBytes
public com.google.protobuf.ByteString getKernelReleaseBytes()
The kernel release of the operating system.
string kernel_release = 7;
- Specified by:
getKernelReleaseBytes
in interfaceInventory.OsInfoOrBuilder
- Returns:
- The bytes for kernelRelease.
-
setKernelRelease
public Inventory.OsInfo.Builder setKernelRelease(String value)
The kernel release of the operating system.
string kernel_release = 7;
- Parameters:
value
- The kernelRelease to set.- Returns:
- This builder for chaining.
-
clearKernelRelease
public Inventory.OsInfo.Builder clearKernelRelease()
The kernel release of the operating system.
string kernel_release = 7;
- Returns:
- This builder for chaining.
-
setKernelReleaseBytes
public Inventory.OsInfo.Builder setKernelReleaseBytes(com.google.protobuf.ByteString value)
The kernel release of the operating system.
string kernel_release = 7;
- Parameters:
value
- The bytes for kernelRelease to set.- Returns:
- This builder for chaining.
-
getOsconfigAgentVersion
public String getOsconfigAgentVersion()
The current version of the OS Config agent running on the VM.
string osconfig_agent_version = 8;
- Specified by:
getOsconfigAgentVersion
in interfaceInventory.OsInfoOrBuilder
- Returns:
- The osconfigAgentVersion.
-
getOsconfigAgentVersionBytes
public com.google.protobuf.ByteString getOsconfigAgentVersionBytes()
The current version of the OS Config agent running on the VM.
string osconfig_agent_version = 8;
- Specified by:
getOsconfigAgentVersionBytes
in interfaceInventory.OsInfoOrBuilder
- Returns:
- The bytes for osconfigAgentVersion.
-
setOsconfigAgentVersion
public Inventory.OsInfo.Builder setOsconfigAgentVersion(String value)
The current version of the OS Config agent running on the VM.
string osconfig_agent_version = 8;
- Parameters:
value
- The osconfigAgentVersion to set.- Returns:
- This builder for chaining.
-
clearOsconfigAgentVersion
public Inventory.OsInfo.Builder clearOsconfigAgentVersion()
The current version of the OS Config agent running on the VM.
string osconfig_agent_version = 8;
- Returns:
- This builder for chaining.
-
setOsconfigAgentVersionBytes
public Inventory.OsInfo.Builder setOsconfigAgentVersionBytes(com.google.protobuf.ByteString value)
The current version of the OS Config agent running on the VM.
string osconfig_agent_version = 8;
- Parameters:
value
- The bytes for osconfigAgentVersion to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Inventory.OsInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
mergeUnknownFields
public final Inventory.OsInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
-