public static interface HostType.HostOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
String |
getHostname()
required string hostname = 2; |
com.google.protobuf.ByteString |
getHostnameBytes()
required string hostname = 2; |
String |
getId()
required string id = 1; |
com.google.protobuf.ByteString |
getIdBytes()
required string id = 1; |
String |
getMachineType()
optional string machine_type = 3; |
com.google.protobuf.ByteString |
getMachineTypeBytes()
optional string machine_type = 3; |
String |
getMachineVersion()
optional string machine_version = 4; |
com.google.protobuf.ByteString |
getMachineVersionBytes()
optional string machine_version = 4; |
String |
getSoftwareType()
optional string software_type = 5; |
com.google.protobuf.ByteString |
getSoftwareTypeBytes()
optional string software_type = 5; |
String |
getSoftwareVersion()
optional string software_version = 6; |
com.google.protobuf.ByteString |
getSoftwareVersionBytes()
optional string software_version = 6; |
boolean |
hasHostname()
required string hostname = 2; |
boolean |
hasId()
required string id = 1; |
boolean |
hasMachineType()
optional string machine_type = 3; |
boolean |
hasMachineVersion()
optional string machine_version = 4; |
boolean |
hasSoftwareType()
optional string software_type = 5; |
boolean |
hasSoftwareVersion()
optional string software_version = 6; |
boolean hasId()
required string id = 1;
Arbitrary string (hopefully) uniquely identifying the host. The following sources should be used for determining this string (in order of preference for each platform): Linux * contents of /etc/machine-id (excluding whitespace characters) * contents of /var/lib/dbus/machine-id (excluding whitespace characters) * As a last resort, the value may be omitted in which case the hostname will be used as a means of identifying the host. Windows Since the appropriate C API function (GetComputerObjectName) is difficult to use in some languages, the hostname should be used instead. MacOS Since the appropriate C API function (gethostuuid) is difficult to use in some languages, the hostname should be used instead. Other operating systems A unique id provided by the operating should be used when it can easily be used from all languages (i.e. readable from file), otherwise the hostname should be used.
String getId()
required string id = 1;
Arbitrary string (hopefully) uniquely identifying the host. The following sources should be used for determining this string (in order of preference for each platform): Linux * contents of /etc/machine-id (excluding whitespace characters) * contents of /var/lib/dbus/machine-id (excluding whitespace characters) * As a last resort, the value may be omitted in which case the hostname will be used as a means of identifying the host. Windows Since the appropriate C API function (GetComputerObjectName) is difficult to use in some languages, the hostname should be used instead. MacOS Since the appropriate C API function (gethostuuid) is difficult to use in some languages, the hostname should be used instead. Other operating systems A unique id provided by the operating should be used when it can easily be used from all languages (i.e. readable from file), otherwise the hostname should be used.
com.google.protobuf.ByteString getIdBytes()
required string id = 1;
Arbitrary string (hopefully) uniquely identifying the host. The following sources should be used for determining this string (in order of preference for each platform): Linux * contents of /etc/machine-id (excluding whitespace characters) * contents of /var/lib/dbus/machine-id (excluding whitespace characters) * As a last resort, the value may be omitted in which case the hostname will be used as a means of identifying the host. Windows Since the appropriate C API function (GetComputerObjectName) is difficult to use in some languages, the hostname should be used instead. MacOS Since the appropriate C API function (gethostuuid) is difficult to use in some languages, the hostname should be used instead. Other operating systems A unique id provided by the operating should be used when it can easily be used from all languages (i.e. readable from file), otherwise the hostname should be used.
boolean hasHostname()
required string hostname = 2;
Human-readable name of the host.
String getHostname()
required string hostname = 2;
Human-readable name of the host.
com.google.protobuf.ByteString getHostnameBytes()
required string hostname = 2;
Human-readable name of the host.
boolean hasMachineType()
optional string machine_type = 3;
Type of the machine, usually CPU architecture. The value is a lower-case string that identifies the processor family and potentially associated system architecture, generally without indicating a specific vendor or version. For 32-bit and 64-bit CPUs in the x86 family, the values "x86" and "x86_64" should be used.
String getMachineType()
optional string machine_type = 3;
Type of the machine, usually CPU architecture. The value is a lower-case string that identifies the processor family and potentially associated system architecture, generally without indicating a specific vendor or version. For 32-bit and 64-bit CPUs in the x86 family, the values "x86" and "x86_64" should be used.
com.google.protobuf.ByteString getMachineTypeBytes()
optional string machine_type = 3;
Type of the machine, usually CPU architecture. The value is a lower-case string that identifies the processor family and potentially associated system architecture, generally without indicating a specific vendor or version. For 32-bit and 64-bit CPUs in the x86 family, the values "x86" and "x86_64" should be used.
boolean hasMachineVersion()
optional string machine_version = 4;
Version of the machine within its type, usually CPU identification string. On Linux, the value of the "model name" field in the "/proc/cpuinfo" file can be used.
String getMachineVersion()
optional string machine_version = 4;
Version of the machine within its type, usually CPU identification string. On Linux, the value of the "model name" field in the "/proc/cpuinfo" file can be used.
com.google.protobuf.ByteString getMachineVersionBytes()
optional string machine_version = 4;
Version of the machine within its type, usually CPU identification string. On Linux, the value of the "model name" field in the "/proc/cpuinfo" file can be used.
boolean hasSoftwareType()
optional string software_type = 5;
Type of the operating system running on the machine, usually the kernel name. The value is a lower-case string that identifies the operating system running on the machine without indicating a specific version of that operating system. For Linux, MacOS and Windows the strings "linux", "darwin" and "win32" should be used respectively.
String getSoftwareType()
optional string software_type = 5;
Type of the operating system running on the machine, usually the kernel name. The value is a lower-case string that identifies the operating system running on the machine without indicating a specific version of that operating system. For Linux, MacOS and Windows the strings "linux", "darwin" and "win32" should be used respectively.
com.google.protobuf.ByteString getSoftwareTypeBytes()
optional string software_type = 5;
Type of the operating system running on the machine, usually the kernel name. The value is a lower-case string that identifies the operating system running on the machine without indicating a specific version of that operating system. For Linux, MacOS and Windows the strings "linux", "darwin" and "win32" should be used respectively.
boolean hasSoftwareVersion()
optional string software_version = 6;
Version of the operating system within its type, usually the kernel version string. On Linux and MacOS, the output of the command "uname -r".
String getSoftwareVersion()
optional string software_version = 6;
Version of the operating system within its type, usually the kernel version string. On Linux and MacOS, the output of the command "uname -r".
com.google.protobuf.ByteString getSoftwareVersionBytes()
optional string software_version = 6;
Version of the operating system within its type, usually the kernel version string. On Linux and MacOS, the output of the command "uname -r".
Copyright © 2018 CoR-Lab. All rights reserved.