Class Inventory.OsInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Inventory.OsInfo.Builder>
com.google.cloud.osconfig.v1alpha.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.GeneratedMessage.Builder<Inventory.OsInfo.Builder> implements Inventory.OsInfoOrBuilder
 Operating system information for the VM.
 
Protobuf type google.cloud.osconfig.v1alpha.Inventory.OsInfo
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Inventory.OsInfo.Builder>
    • clear

      public Inventory.OsInfo.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Inventory.OsInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Inventory.OsInfo.Builder>
    • getDefaultInstanceForType

      public Inventory.OsInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Inventory.OsInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Inventory.OsInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Inventory.OsInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.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 interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Inventory.OsInfo.Builder>
      Throws:
      IOException
    • getHostname

      public String getHostname()
       The VM hostname.
       
      string hostname = 9;
      Specified by:
      getHostname in interface Inventory.OsInfoOrBuilder
      Returns:
      The hostname.
    • getHostnameBytes

      public com.google.protobuf.ByteString getHostnameBytes()
       The VM hostname.
       
      string hostname = 9;
      Specified by:
      getHostnameBytes in interface Inventory.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 interface Inventory.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 interface Inventory.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 interface Inventory.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 interface Inventory.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 interface Inventory.OsInfoOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       The version of the operating system.
       
      string version = 4;
      Specified by:
      getVersionBytes in interface Inventory.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 interface Inventory.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 interface Inventory.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 interface Inventory.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 interface Inventory.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 interface Inventory.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 interface Inventory.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 interface Inventory.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 interface Inventory.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.