Class 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 type google.cloud.osconfig.v1.Inventory.OsInfo
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Inventory.OsInfo.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
      • clearField

        public Inventory.OsInfo.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
      • clearOneof

        public Inventory.OsInfo.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • setUnknownFields

        public final Inventory.OsInfo.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>
      • mergeUnknownFields

        public final Inventory.OsInfo.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Inventory.OsInfo.Builder>