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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Inventory.OsInfobuild()Inventory.OsInfobuildPartial()Inventory.OsInfo.Builderclear()Inventory.OsInfo.BuilderclearArchitecture()The system architecture of the operating system.Inventory.OsInfo.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Inventory.OsInfo.BuilderclearHostname()The VM hostname.Inventory.OsInfo.BuilderclearKernelRelease()The kernel release of the operating system.Inventory.OsInfo.BuilderclearKernelVersion()The kernel version of the operating system.Inventory.OsInfo.BuilderclearLongName()The operating system long name.Inventory.OsInfo.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Inventory.OsInfo.BuilderclearOsconfigAgentVersion()The current version of the OS Config agent running on the VM.Inventory.OsInfo.BuilderclearShortName()The operating system short name.Inventory.OsInfo.BuilderclearVersion()The version of the operating system.Inventory.OsInfo.Builderclone()StringgetArchitecture()The system architecture of the operating system.com.google.protobuf.ByteStringgetArchitectureBytes()The system architecture of the operating system.Inventory.OsInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetHostname()The VM hostname.com.google.protobuf.ByteStringgetHostnameBytes()The VM hostname.StringgetKernelRelease()The kernel release of the operating system.com.google.protobuf.ByteStringgetKernelReleaseBytes()The kernel release of the operating system.StringgetKernelVersion()The kernel version of the operating system.com.google.protobuf.ByteStringgetKernelVersionBytes()The kernel version of the operating system.StringgetLongName()The operating system long name.com.google.protobuf.ByteStringgetLongNameBytes()The operating system long name.StringgetOsconfigAgentVersion()The current version of the OS Config agent running on the VM.com.google.protobuf.ByteStringgetOsconfigAgentVersionBytes()The current version of the OS Config agent running on the VM.StringgetShortName()The operating system short name.com.google.protobuf.ByteStringgetShortNameBytes()The operating system short name.StringgetVersion()The version of the operating system.com.google.protobuf.ByteStringgetVersionBytes()The version of the operating system.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Inventory.OsInfo.BuildermergeFrom(Inventory.OsInfo other)Inventory.OsInfo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Inventory.OsInfo.BuildermergeFrom(com.google.protobuf.Message other)Inventory.OsInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Inventory.OsInfo.BuildersetArchitecture(String value)The system architecture of the operating system.Inventory.OsInfo.BuildersetArchitectureBytes(com.google.protobuf.ByteString value)The system architecture of the operating system.Inventory.OsInfo.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Inventory.OsInfo.BuildersetHostname(String value)The VM hostname.Inventory.OsInfo.BuildersetHostnameBytes(com.google.protobuf.ByteString value)The VM hostname.Inventory.OsInfo.BuildersetKernelRelease(String value)The kernel release of the operating system.Inventory.OsInfo.BuildersetKernelReleaseBytes(com.google.protobuf.ByteString value)The kernel release of the operating system.Inventory.OsInfo.BuildersetKernelVersion(String value)The kernel version of the operating system.Inventory.OsInfo.BuildersetKernelVersionBytes(com.google.protobuf.ByteString value)The kernel version of the operating system.Inventory.OsInfo.BuildersetLongName(String value)The operating system long name.Inventory.OsInfo.BuildersetLongNameBytes(com.google.protobuf.ByteString value)The operating system long name.Inventory.OsInfo.BuildersetOsconfigAgentVersion(String value)The current version of the OS Config agent running on the VM.Inventory.OsInfo.BuildersetOsconfigAgentVersionBytes(com.google.protobuf.ByteString value)The current version of the OS Config agent running on the VM.Inventory.OsInfo.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Inventory.OsInfo.BuildersetShortName(String value)The operating system short name.Inventory.OsInfo.BuildersetShortNameBytes(com.google.protobuf.ByteString value)The operating system short name.Inventory.OsInfo.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Inventory.OsInfo.BuildersetVersion(String value)The version of the operating system.Inventory.OsInfo.BuildersetVersionBytes(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
clear
public Inventory.OsInfo.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
getDefaultInstanceForType
public Inventory.OsInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Inventory.OsInfo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Inventory.OsInfo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Inventory.OsInfo.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
setField
public Inventory.OsInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
clearField
public Inventory.OsInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
clearOneof
public Inventory.OsInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
addRepeatedField
public Inventory.OsInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
mergeFrom
public Inventory.OsInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Inventory.OsInfo.Builder>
-
mergeFrom
public Inventory.OsInfo.Builder mergeFrom(Inventory.OsInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Inventory.OsInfo.Builder>- Throws:
IOException
-
getHostname
public String getHostname()
The VM hostname.
string hostname = 9;- Specified by:
getHostnamein interfaceInventory.OsInfoOrBuilder- Returns:
- The hostname.
-
getHostnameBytes
public com.google.protobuf.ByteString getHostnameBytes()
The VM hostname.
string hostname = 9;- Specified by:
getHostnameBytesin 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:
getLongNamein 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:
getLongNameBytesin 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:
getShortNamein 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:
getShortNameBytesin 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:
getVersionin interfaceInventory.OsInfoOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()
The version of the operating system.
string version = 4;- Specified by:
getVersionBytesin 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:
getArchitecturein interfaceInventory.OsInfoOrBuilder- Returns:
- The architecture.
-
getArchitectureBytes
public com.google.protobuf.ByteString getArchitectureBytes()
The system architecture of the operating system.
string architecture = 5;- Specified by:
getArchitectureBytesin 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:
getKernelVersionin 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:
getKernelVersionBytesin 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:
getKernelReleasein 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:
getKernelReleaseBytesin 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:
getOsconfigAgentVersionin 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:
getOsconfigAgentVersionBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
mergeUnknownFields
public final Inventory.OsInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
-
-