org.tensorflow.util.testlog.MachineConfiguration Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/util/test_log.proto
package org.tensorflow.util.testlog;
/**
* Protobuf type {@code tensorflow.MachineConfiguration}
*/
public final class MachineConfiguration extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.MachineConfiguration)
MachineConfigurationOrBuilder {
private static final long serialVersionUID = 0L;
// Use MachineConfiguration.newBuilder() to construct.
private MachineConfiguration(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MachineConfiguration() {
hostname_ = "";
serialIdentifier_ = "";
deviceInfo_ = java.util.Collections.emptyList();
availableDeviceInfo_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MachineConfiguration(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
hostname_ = s;
break;
}
case 18: {
org.tensorflow.util.testlog.PlatformInfo.Builder subBuilder = null;
if (platformInfo_ != null) {
subBuilder = platformInfo_.toBuilder();
}
platformInfo_ = input.readMessage(org.tensorflow.util.testlog.PlatformInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(platformInfo_);
platformInfo_ = subBuilder.buildPartial();
}
break;
}
case 26: {
org.tensorflow.util.testlog.CPUInfo.Builder subBuilder = null;
if (cpuInfo_ != null) {
subBuilder = cpuInfo_.toBuilder();
}
cpuInfo_ = input.readMessage(org.tensorflow.util.testlog.CPUInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(cpuInfo_);
cpuInfo_ = subBuilder.buildPartial();
}
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
deviceInfo_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
deviceInfo_.add(
input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
availableDeviceInfo_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
availableDeviceInfo_.add(
input.readMessage(org.tensorflow.util.testlog.AvailableDeviceInfo.parser(), extensionRegistry));
break;
}
case 50: {
org.tensorflow.util.testlog.MemoryInfo.Builder subBuilder = null;
if (memoryInfo_ != null) {
subBuilder = memoryInfo_.toBuilder();
}
memoryInfo_ = input.readMessage(org.tensorflow.util.testlog.MemoryInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(memoryInfo_);
memoryInfo_ = subBuilder.buildPartial();
}
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
serialIdentifier_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
deviceInfo_ = java.util.Collections.unmodifiableList(deviceInfo_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
availableDeviceInfo_ = java.util.Collections.unmodifiableList(availableDeviceInfo_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.util.testlog.TestLogProtos.internal_static_tensorflow_MachineConfiguration_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.util.testlog.TestLogProtos.internal_static_tensorflow_MachineConfiguration_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.util.testlog.MachineConfiguration.class, org.tensorflow.util.testlog.MachineConfiguration.Builder.class);
}
private int bitField0_;
public static final int HOSTNAME_FIELD_NUMBER = 1;
private volatile java.lang.Object hostname_;
/**
*
* Host name of machine that ran the benchmark.
*
*
* string hostname = 1;
*/
public java.lang.String getHostname() {
java.lang.Object ref = hostname_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostname_ = s;
return s;
}
}
/**
*
* Host name of machine that ran the benchmark.
*
*
* string hostname = 1;
*/
public com.google.protobuf.ByteString
getHostnameBytes() {
java.lang.Object ref = hostname_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SERIAL_IDENTIFIER_FIELD_NUMBER = 7;
private volatile java.lang.Object serialIdentifier_;
/**
*
* Unique serial number of the machine.
*
*
* string serial_identifier = 7;
*/
public java.lang.String getSerialIdentifier() {
java.lang.Object ref = serialIdentifier_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serialIdentifier_ = s;
return s;
}
}
/**
*
* Unique serial number of the machine.
*
*
* string serial_identifier = 7;
*/
public com.google.protobuf.ByteString
getSerialIdentifierBytes() {
java.lang.Object ref = serialIdentifier_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serialIdentifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PLATFORM_INFO_FIELD_NUMBER = 2;
private org.tensorflow.util.testlog.PlatformInfo platformInfo_;
/**
*
* Additional platform information.
*
*
* .tensorflow.PlatformInfo platform_info = 2;
*/
public boolean hasPlatformInfo() {
return platformInfo_ != null;
}
/**
*
* Additional platform information.
*
*
* .tensorflow.PlatformInfo platform_info = 2;
*/
public org.tensorflow.util.testlog.PlatformInfo getPlatformInfo() {
return platformInfo_ == null ? org.tensorflow.util.testlog.PlatformInfo.getDefaultInstance() : platformInfo_;
}
/**
*
* Additional platform information.
*
*
* .tensorflow.PlatformInfo platform_info = 2;
*/
public org.tensorflow.util.testlog.PlatformInfoOrBuilder getPlatformInfoOrBuilder() {
return getPlatformInfo();
}
public static final int CPU_INFO_FIELD_NUMBER = 3;
private org.tensorflow.util.testlog.CPUInfo cpuInfo_;
/**
*
* CPU Information.
*
*
* .tensorflow.CPUInfo cpu_info = 3;
*/
public boolean hasCpuInfo() {
return cpuInfo_ != null;
}
/**
*
* CPU Information.
*
*
* .tensorflow.CPUInfo cpu_info = 3;
*/
public org.tensorflow.util.testlog.CPUInfo getCpuInfo() {
return cpuInfo_ == null ? org.tensorflow.util.testlog.CPUInfo.getDefaultInstance() : cpuInfo_;
}
/**
*
* CPU Information.
*
*
* .tensorflow.CPUInfo cpu_info = 3;
*/
public org.tensorflow.util.testlog.CPUInfoOrBuilder getCpuInfoOrBuilder() {
return getCpuInfo();
}
public static final int DEVICE_INFO_FIELD_NUMBER = 4;
private java.util.List deviceInfo_;
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public java.util.List getDeviceInfoList() {
return deviceInfo_;
}
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public java.util.List extends com.google.protobuf.AnyOrBuilder>
getDeviceInfoOrBuilderList() {
return deviceInfo_;
}
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public int getDeviceInfoCount() {
return deviceInfo_.size();
}
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public com.google.protobuf.Any getDeviceInfo(int index) {
return deviceInfo_.get(index);
}
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public com.google.protobuf.AnyOrBuilder getDeviceInfoOrBuilder(
int index) {
return deviceInfo_.get(index);
}
public static final int AVAILABLE_DEVICE_INFO_FIELD_NUMBER = 5;
private java.util.List availableDeviceInfo_;
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public java.util.List getAvailableDeviceInfoList() {
return availableDeviceInfo_;
}
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public java.util.List extends org.tensorflow.util.testlog.AvailableDeviceInfoOrBuilder>
getAvailableDeviceInfoOrBuilderList() {
return availableDeviceInfo_;
}
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public int getAvailableDeviceInfoCount() {
return availableDeviceInfo_.size();
}
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public org.tensorflow.util.testlog.AvailableDeviceInfo getAvailableDeviceInfo(int index) {
return availableDeviceInfo_.get(index);
}
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public org.tensorflow.util.testlog.AvailableDeviceInfoOrBuilder getAvailableDeviceInfoOrBuilder(
int index) {
return availableDeviceInfo_.get(index);
}
public static final int MEMORY_INFO_FIELD_NUMBER = 6;
private org.tensorflow.util.testlog.MemoryInfo memoryInfo_;
/**
* .tensorflow.MemoryInfo memory_info = 6;
*/
public boolean hasMemoryInfo() {
return memoryInfo_ != null;
}
/**
* .tensorflow.MemoryInfo memory_info = 6;
*/
public org.tensorflow.util.testlog.MemoryInfo getMemoryInfo() {
return memoryInfo_ == null ? org.tensorflow.util.testlog.MemoryInfo.getDefaultInstance() : memoryInfo_;
}
/**
* .tensorflow.MemoryInfo memory_info = 6;
*/
public org.tensorflow.util.testlog.MemoryInfoOrBuilder getMemoryInfoOrBuilder() {
return getMemoryInfo();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getHostnameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_);
}
if (platformInfo_ != null) {
output.writeMessage(2, getPlatformInfo());
}
if (cpuInfo_ != null) {
output.writeMessage(3, getCpuInfo());
}
for (int i = 0; i < deviceInfo_.size(); i++) {
output.writeMessage(4, deviceInfo_.get(i));
}
for (int i = 0; i < availableDeviceInfo_.size(); i++) {
output.writeMessage(5, availableDeviceInfo_.get(i));
}
if (memoryInfo_ != null) {
output.writeMessage(6, getMemoryInfo());
}
if (!getSerialIdentifierBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, serialIdentifier_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getHostnameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_);
}
if (platformInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPlatformInfo());
}
if (cpuInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getCpuInfo());
}
for (int i = 0; i < deviceInfo_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, deviceInfo_.get(i));
}
for (int i = 0; i < availableDeviceInfo_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, availableDeviceInfo_.get(i));
}
if (memoryInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getMemoryInfo());
}
if (!getSerialIdentifierBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, serialIdentifier_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.util.testlog.MachineConfiguration)) {
return super.equals(obj);
}
org.tensorflow.util.testlog.MachineConfiguration other = (org.tensorflow.util.testlog.MachineConfiguration) obj;
boolean result = true;
result = result && getHostname()
.equals(other.getHostname());
result = result && getSerialIdentifier()
.equals(other.getSerialIdentifier());
result = result && (hasPlatformInfo() == other.hasPlatformInfo());
if (hasPlatformInfo()) {
result = result && getPlatformInfo()
.equals(other.getPlatformInfo());
}
result = result && (hasCpuInfo() == other.hasCpuInfo());
if (hasCpuInfo()) {
result = result && getCpuInfo()
.equals(other.getCpuInfo());
}
result = result && getDeviceInfoList()
.equals(other.getDeviceInfoList());
result = result && getAvailableDeviceInfoList()
.equals(other.getAvailableDeviceInfoList());
result = result && (hasMemoryInfo() == other.hasMemoryInfo());
if (hasMemoryInfo()) {
result = result && getMemoryInfo()
.equals(other.getMemoryInfo());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + HOSTNAME_FIELD_NUMBER;
hash = (53 * hash) + getHostname().hashCode();
hash = (37 * hash) + SERIAL_IDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getSerialIdentifier().hashCode();
if (hasPlatformInfo()) {
hash = (37 * hash) + PLATFORM_INFO_FIELD_NUMBER;
hash = (53 * hash) + getPlatformInfo().hashCode();
}
if (hasCpuInfo()) {
hash = (37 * hash) + CPU_INFO_FIELD_NUMBER;
hash = (53 * hash) + getCpuInfo().hashCode();
}
if (getDeviceInfoCount() > 0) {
hash = (37 * hash) + DEVICE_INFO_FIELD_NUMBER;
hash = (53 * hash) + getDeviceInfoList().hashCode();
}
if (getAvailableDeviceInfoCount() > 0) {
hash = (37 * hash) + AVAILABLE_DEVICE_INFO_FIELD_NUMBER;
hash = (53 * hash) + getAvailableDeviceInfoList().hashCode();
}
if (hasMemoryInfo()) {
hash = (37 * hash) + MEMORY_INFO_FIELD_NUMBER;
hash = (53 * hash) + getMemoryInfo().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.util.testlog.MachineConfiguration parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.util.testlog.MachineConfiguration parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.util.testlog.MachineConfiguration parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.util.testlog.MachineConfiguration parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.util.testlog.MachineConfiguration parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.util.testlog.MachineConfiguration parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.util.testlog.MachineConfiguration parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.util.testlog.MachineConfiguration parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.util.testlog.MachineConfiguration parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.util.testlog.MachineConfiguration parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.util.testlog.MachineConfiguration parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.util.testlog.MachineConfiguration parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.util.testlog.MachineConfiguration prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.MachineConfiguration}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.MachineConfiguration)
org.tensorflow.util.testlog.MachineConfigurationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.util.testlog.TestLogProtos.internal_static_tensorflow_MachineConfiguration_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.util.testlog.TestLogProtos.internal_static_tensorflow_MachineConfiguration_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.util.testlog.MachineConfiguration.class, org.tensorflow.util.testlog.MachineConfiguration.Builder.class);
}
// Construct using org.tensorflow.util.testlog.MachineConfiguration.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDeviceInfoFieldBuilder();
getAvailableDeviceInfoFieldBuilder();
}
}
public Builder clear() {
super.clear();
hostname_ = "";
serialIdentifier_ = "";
if (platformInfoBuilder_ == null) {
platformInfo_ = null;
} else {
platformInfo_ = null;
platformInfoBuilder_ = null;
}
if (cpuInfoBuilder_ == null) {
cpuInfo_ = null;
} else {
cpuInfo_ = null;
cpuInfoBuilder_ = null;
}
if (deviceInfoBuilder_ == null) {
deviceInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
deviceInfoBuilder_.clear();
}
if (availableDeviceInfoBuilder_ == null) {
availableDeviceInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
availableDeviceInfoBuilder_.clear();
}
if (memoryInfoBuilder_ == null) {
memoryInfo_ = null;
} else {
memoryInfo_ = null;
memoryInfoBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.util.testlog.TestLogProtos.internal_static_tensorflow_MachineConfiguration_descriptor;
}
public org.tensorflow.util.testlog.MachineConfiguration getDefaultInstanceForType() {
return org.tensorflow.util.testlog.MachineConfiguration.getDefaultInstance();
}
public org.tensorflow.util.testlog.MachineConfiguration build() {
org.tensorflow.util.testlog.MachineConfiguration result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.util.testlog.MachineConfiguration buildPartial() {
org.tensorflow.util.testlog.MachineConfiguration result = new org.tensorflow.util.testlog.MachineConfiguration(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.hostname_ = hostname_;
result.serialIdentifier_ = serialIdentifier_;
if (platformInfoBuilder_ == null) {
result.platformInfo_ = platformInfo_;
} else {
result.platformInfo_ = platformInfoBuilder_.build();
}
if (cpuInfoBuilder_ == null) {
result.cpuInfo_ = cpuInfo_;
} else {
result.cpuInfo_ = cpuInfoBuilder_.build();
}
if (deviceInfoBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
deviceInfo_ = java.util.Collections.unmodifiableList(deviceInfo_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.deviceInfo_ = deviceInfo_;
} else {
result.deviceInfo_ = deviceInfoBuilder_.build();
}
if (availableDeviceInfoBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020)) {
availableDeviceInfo_ = java.util.Collections.unmodifiableList(availableDeviceInfo_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.availableDeviceInfo_ = availableDeviceInfo_;
} else {
result.availableDeviceInfo_ = availableDeviceInfoBuilder_.build();
}
if (memoryInfoBuilder_ == null) {
result.memoryInfo_ = memoryInfo_;
} else {
result.memoryInfo_ = memoryInfoBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tensorflow.util.testlog.MachineConfiguration) {
return mergeFrom((org.tensorflow.util.testlog.MachineConfiguration)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.util.testlog.MachineConfiguration other) {
if (other == org.tensorflow.util.testlog.MachineConfiguration.getDefaultInstance()) return this;
if (!other.getHostname().isEmpty()) {
hostname_ = other.hostname_;
onChanged();
}
if (!other.getSerialIdentifier().isEmpty()) {
serialIdentifier_ = other.serialIdentifier_;
onChanged();
}
if (other.hasPlatformInfo()) {
mergePlatformInfo(other.getPlatformInfo());
}
if (other.hasCpuInfo()) {
mergeCpuInfo(other.getCpuInfo());
}
if (deviceInfoBuilder_ == null) {
if (!other.deviceInfo_.isEmpty()) {
if (deviceInfo_.isEmpty()) {
deviceInfo_ = other.deviceInfo_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureDeviceInfoIsMutable();
deviceInfo_.addAll(other.deviceInfo_);
}
onChanged();
}
} else {
if (!other.deviceInfo_.isEmpty()) {
if (deviceInfoBuilder_.isEmpty()) {
deviceInfoBuilder_.dispose();
deviceInfoBuilder_ = null;
deviceInfo_ = other.deviceInfo_;
bitField0_ = (bitField0_ & ~0x00000010);
deviceInfoBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDeviceInfoFieldBuilder() : null;
} else {
deviceInfoBuilder_.addAllMessages(other.deviceInfo_);
}
}
}
if (availableDeviceInfoBuilder_ == null) {
if (!other.availableDeviceInfo_.isEmpty()) {
if (availableDeviceInfo_.isEmpty()) {
availableDeviceInfo_ = other.availableDeviceInfo_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureAvailableDeviceInfoIsMutable();
availableDeviceInfo_.addAll(other.availableDeviceInfo_);
}
onChanged();
}
} else {
if (!other.availableDeviceInfo_.isEmpty()) {
if (availableDeviceInfoBuilder_.isEmpty()) {
availableDeviceInfoBuilder_.dispose();
availableDeviceInfoBuilder_ = null;
availableDeviceInfo_ = other.availableDeviceInfo_;
bitField0_ = (bitField0_ & ~0x00000020);
availableDeviceInfoBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAvailableDeviceInfoFieldBuilder() : null;
} else {
availableDeviceInfoBuilder_.addAllMessages(other.availableDeviceInfo_);
}
}
}
if (other.hasMemoryInfo()) {
mergeMemoryInfo(other.getMemoryInfo());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.util.testlog.MachineConfiguration parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.util.testlog.MachineConfiguration) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object hostname_ = "";
/**
*
* Host name of machine that ran the benchmark.
*
*
* string hostname = 1;
*/
public java.lang.String getHostname() {
java.lang.Object ref = hostname_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostname_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Host name of machine that ran the benchmark.
*
*
* string hostname = 1;
*/
public com.google.protobuf.ByteString
getHostnameBytes() {
java.lang.Object ref = hostname_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Host name of machine that ran the benchmark.
*
*
* string hostname = 1;
*/
public Builder setHostname(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hostname_ = value;
onChanged();
return this;
}
/**
*
* Host name of machine that ran the benchmark.
*
*
* string hostname = 1;
*/
public Builder clearHostname() {
hostname_ = getDefaultInstance().getHostname();
onChanged();
return this;
}
/**
*
* Host name of machine that ran the benchmark.
*
*
* string hostname = 1;
*/
public Builder setHostnameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hostname_ = value;
onChanged();
return this;
}
private java.lang.Object serialIdentifier_ = "";
/**
*
* Unique serial number of the machine.
*
*
* string serial_identifier = 7;
*/
public java.lang.String getSerialIdentifier() {
java.lang.Object ref = serialIdentifier_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serialIdentifier_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Unique serial number of the machine.
*
*
* string serial_identifier = 7;
*/
public com.google.protobuf.ByteString
getSerialIdentifierBytes() {
java.lang.Object ref = serialIdentifier_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serialIdentifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Unique serial number of the machine.
*
*
* string serial_identifier = 7;
*/
public Builder setSerialIdentifier(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serialIdentifier_ = value;
onChanged();
return this;
}
/**
*
* Unique serial number of the machine.
*
*
* string serial_identifier = 7;
*/
public Builder clearSerialIdentifier() {
serialIdentifier_ = getDefaultInstance().getSerialIdentifier();
onChanged();
return this;
}
/**
*
* Unique serial number of the machine.
*
*
* string serial_identifier = 7;
*/
public Builder setSerialIdentifierBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serialIdentifier_ = value;
onChanged();
return this;
}
private org.tensorflow.util.testlog.PlatformInfo platformInfo_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.PlatformInfo, org.tensorflow.util.testlog.PlatformInfo.Builder, org.tensorflow.util.testlog.PlatformInfoOrBuilder> platformInfoBuilder_;
/**
*
* Additional platform information.
*
*
* .tensorflow.PlatformInfo platform_info = 2;
*/
public boolean hasPlatformInfo() {
return platformInfoBuilder_ != null || platformInfo_ != null;
}
/**
*
* Additional platform information.
*
*
* .tensorflow.PlatformInfo platform_info = 2;
*/
public org.tensorflow.util.testlog.PlatformInfo getPlatformInfo() {
if (platformInfoBuilder_ == null) {
return platformInfo_ == null ? org.tensorflow.util.testlog.PlatformInfo.getDefaultInstance() : platformInfo_;
} else {
return platformInfoBuilder_.getMessage();
}
}
/**
*
* Additional platform information.
*
*
* .tensorflow.PlatformInfo platform_info = 2;
*/
public Builder setPlatformInfo(org.tensorflow.util.testlog.PlatformInfo value) {
if (platformInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
platformInfo_ = value;
onChanged();
} else {
platformInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
* Additional platform information.
*
*
* .tensorflow.PlatformInfo platform_info = 2;
*/
public Builder setPlatformInfo(
org.tensorflow.util.testlog.PlatformInfo.Builder builderForValue) {
if (platformInfoBuilder_ == null) {
platformInfo_ = builderForValue.build();
onChanged();
} else {
platformInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Additional platform information.
*
*
* .tensorflow.PlatformInfo platform_info = 2;
*/
public Builder mergePlatformInfo(org.tensorflow.util.testlog.PlatformInfo value) {
if (platformInfoBuilder_ == null) {
if (platformInfo_ != null) {
platformInfo_ =
org.tensorflow.util.testlog.PlatformInfo.newBuilder(platformInfo_).mergeFrom(value).buildPartial();
} else {
platformInfo_ = value;
}
onChanged();
} else {
platformInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Additional platform information.
*
*
* .tensorflow.PlatformInfo platform_info = 2;
*/
public Builder clearPlatformInfo() {
if (platformInfoBuilder_ == null) {
platformInfo_ = null;
onChanged();
} else {
platformInfo_ = null;
platformInfoBuilder_ = null;
}
return this;
}
/**
*
* Additional platform information.
*
*
* .tensorflow.PlatformInfo platform_info = 2;
*/
public org.tensorflow.util.testlog.PlatformInfo.Builder getPlatformInfoBuilder() {
onChanged();
return getPlatformInfoFieldBuilder().getBuilder();
}
/**
*
* Additional platform information.
*
*
* .tensorflow.PlatformInfo platform_info = 2;
*/
public org.tensorflow.util.testlog.PlatformInfoOrBuilder getPlatformInfoOrBuilder() {
if (platformInfoBuilder_ != null) {
return platformInfoBuilder_.getMessageOrBuilder();
} else {
return platformInfo_ == null ?
org.tensorflow.util.testlog.PlatformInfo.getDefaultInstance() : platformInfo_;
}
}
/**
*
* Additional platform information.
*
*
* .tensorflow.PlatformInfo platform_info = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.PlatformInfo, org.tensorflow.util.testlog.PlatformInfo.Builder, org.tensorflow.util.testlog.PlatformInfoOrBuilder>
getPlatformInfoFieldBuilder() {
if (platformInfoBuilder_ == null) {
platformInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.PlatformInfo, org.tensorflow.util.testlog.PlatformInfo.Builder, org.tensorflow.util.testlog.PlatformInfoOrBuilder>(
getPlatformInfo(),
getParentForChildren(),
isClean());
platformInfo_ = null;
}
return platformInfoBuilder_;
}
private org.tensorflow.util.testlog.CPUInfo cpuInfo_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.CPUInfo, org.tensorflow.util.testlog.CPUInfo.Builder, org.tensorflow.util.testlog.CPUInfoOrBuilder> cpuInfoBuilder_;
/**
*
* CPU Information.
*
*
* .tensorflow.CPUInfo cpu_info = 3;
*/
public boolean hasCpuInfo() {
return cpuInfoBuilder_ != null || cpuInfo_ != null;
}
/**
*
* CPU Information.
*
*
* .tensorflow.CPUInfo cpu_info = 3;
*/
public org.tensorflow.util.testlog.CPUInfo getCpuInfo() {
if (cpuInfoBuilder_ == null) {
return cpuInfo_ == null ? org.tensorflow.util.testlog.CPUInfo.getDefaultInstance() : cpuInfo_;
} else {
return cpuInfoBuilder_.getMessage();
}
}
/**
*
* CPU Information.
*
*
* .tensorflow.CPUInfo cpu_info = 3;
*/
public Builder setCpuInfo(org.tensorflow.util.testlog.CPUInfo value) {
if (cpuInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cpuInfo_ = value;
onChanged();
} else {
cpuInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
* CPU Information.
*
*
* .tensorflow.CPUInfo cpu_info = 3;
*/
public Builder setCpuInfo(
org.tensorflow.util.testlog.CPUInfo.Builder builderForValue) {
if (cpuInfoBuilder_ == null) {
cpuInfo_ = builderForValue.build();
onChanged();
} else {
cpuInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* CPU Information.
*
*
* .tensorflow.CPUInfo cpu_info = 3;
*/
public Builder mergeCpuInfo(org.tensorflow.util.testlog.CPUInfo value) {
if (cpuInfoBuilder_ == null) {
if (cpuInfo_ != null) {
cpuInfo_ =
org.tensorflow.util.testlog.CPUInfo.newBuilder(cpuInfo_).mergeFrom(value).buildPartial();
} else {
cpuInfo_ = value;
}
onChanged();
} else {
cpuInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* CPU Information.
*
*
* .tensorflow.CPUInfo cpu_info = 3;
*/
public Builder clearCpuInfo() {
if (cpuInfoBuilder_ == null) {
cpuInfo_ = null;
onChanged();
} else {
cpuInfo_ = null;
cpuInfoBuilder_ = null;
}
return this;
}
/**
*
* CPU Information.
*
*
* .tensorflow.CPUInfo cpu_info = 3;
*/
public org.tensorflow.util.testlog.CPUInfo.Builder getCpuInfoBuilder() {
onChanged();
return getCpuInfoFieldBuilder().getBuilder();
}
/**
*
* CPU Information.
*
*
* .tensorflow.CPUInfo cpu_info = 3;
*/
public org.tensorflow.util.testlog.CPUInfoOrBuilder getCpuInfoOrBuilder() {
if (cpuInfoBuilder_ != null) {
return cpuInfoBuilder_.getMessageOrBuilder();
} else {
return cpuInfo_ == null ?
org.tensorflow.util.testlog.CPUInfo.getDefaultInstance() : cpuInfo_;
}
}
/**
*
* CPU Information.
*
*
* .tensorflow.CPUInfo cpu_info = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.CPUInfo, org.tensorflow.util.testlog.CPUInfo.Builder, org.tensorflow.util.testlog.CPUInfoOrBuilder>
getCpuInfoFieldBuilder() {
if (cpuInfoBuilder_ == null) {
cpuInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.CPUInfo, org.tensorflow.util.testlog.CPUInfo.Builder, org.tensorflow.util.testlog.CPUInfoOrBuilder>(
getCpuInfo(),
getParentForChildren(),
isClean());
cpuInfo_ = null;
}
return cpuInfoBuilder_;
}
private java.util.List deviceInfo_ =
java.util.Collections.emptyList();
private void ensureDeviceInfoIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
deviceInfo_ = new java.util.ArrayList(deviceInfo_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> deviceInfoBuilder_;
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public java.util.List getDeviceInfoList() {
if (deviceInfoBuilder_ == null) {
return java.util.Collections.unmodifiableList(deviceInfo_);
} else {
return deviceInfoBuilder_.getMessageList();
}
}
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public int getDeviceInfoCount() {
if (deviceInfoBuilder_ == null) {
return deviceInfo_.size();
} else {
return deviceInfoBuilder_.getCount();
}
}
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public com.google.protobuf.Any getDeviceInfo(int index) {
if (deviceInfoBuilder_ == null) {
return deviceInfo_.get(index);
} else {
return deviceInfoBuilder_.getMessage(index);
}
}
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public Builder setDeviceInfo(
int index, com.google.protobuf.Any value) {
if (deviceInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceInfoIsMutable();
deviceInfo_.set(index, value);
onChanged();
} else {
deviceInfoBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public Builder setDeviceInfo(
int index, com.google.protobuf.Any.Builder builderForValue) {
if (deviceInfoBuilder_ == null) {
ensureDeviceInfoIsMutable();
deviceInfo_.set(index, builderForValue.build());
onChanged();
} else {
deviceInfoBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public Builder addDeviceInfo(com.google.protobuf.Any value) {
if (deviceInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceInfoIsMutable();
deviceInfo_.add(value);
onChanged();
} else {
deviceInfoBuilder_.addMessage(value);
}
return this;
}
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public Builder addDeviceInfo(
int index, com.google.protobuf.Any value) {
if (deviceInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceInfoIsMutable();
deviceInfo_.add(index, value);
onChanged();
} else {
deviceInfoBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public Builder addDeviceInfo(
com.google.protobuf.Any.Builder builderForValue) {
if (deviceInfoBuilder_ == null) {
ensureDeviceInfoIsMutable();
deviceInfo_.add(builderForValue.build());
onChanged();
} else {
deviceInfoBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public Builder addDeviceInfo(
int index, com.google.protobuf.Any.Builder builderForValue) {
if (deviceInfoBuilder_ == null) {
ensureDeviceInfoIsMutable();
deviceInfo_.add(index, builderForValue.build());
onChanged();
} else {
deviceInfoBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public Builder addAllDeviceInfo(
java.lang.Iterable extends com.google.protobuf.Any> values) {
if (deviceInfoBuilder_ == null) {
ensureDeviceInfoIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, deviceInfo_);
onChanged();
} else {
deviceInfoBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public Builder clearDeviceInfo() {
if (deviceInfoBuilder_ == null) {
deviceInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
deviceInfoBuilder_.clear();
}
return this;
}
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public Builder removeDeviceInfo(int index) {
if (deviceInfoBuilder_ == null) {
ensureDeviceInfoIsMutable();
deviceInfo_.remove(index);
onChanged();
} else {
deviceInfoBuilder_.remove(index);
}
return this;
}
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public com.google.protobuf.Any.Builder getDeviceInfoBuilder(
int index) {
return getDeviceInfoFieldBuilder().getBuilder(index);
}
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public com.google.protobuf.AnyOrBuilder getDeviceInfoOrBuilder(
int index) {
if (deviceInfoBuilder_ == null) {
return deviceInfo_.get(index); } else {
return deviceInfoBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public java.util.List extends com.google.protobuf.AnyOrBuilder>
getDeviceInfoOrBuilderList() {
if (deviceInfoBuilder_ != null) {
return deviceInfoBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(deviceInfo_);
}
}
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public com.google.protobuf.Any.Builder addDeviceInfoBuilder() {
return getDeviceInfoFieldBuilder().addBuilder(
com.google.protobuf.Any.getDefaultInstance());
}
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public com.google.protobuf.Any.Builder addDeviceInfoBuilder(
int index) {
return getDeviceInfoFieldBuilder().addBuilder(
index, com.google.protobuf.Any.getDefaultInstance());
}
/**
*
* Other devices that are attached and relevant (e.g. GPUInfo).
*
*
* repeated .google.protobuf.Any device_info = 4;
*/
public java.util.List
getDeviceInfoBuilderList() {
return getDeviceInfoFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getDeviceInfoFieldBuilder() {
if (deviceInfoBuilder_ == null) {
deviceInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
deviceInfo_,
((bitField0_ & 0x00000010) == 0x00000010),
getParentForChildren(),
isClean());
deviceInfo_ = null;
}
return deviceInfoBuilder_;
}
private java.util.List availableDeviceInfo_ =
java.util.Collections.emptyList();
private void ensureAvailableDeviceInfoIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
availableDeviceInfo_ = new java.util.ArrayList(availableDeviceInfo_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.util.testlog.AvailableDeviceInfo, org.tensorflow.util.testlog.AvailableDeviceInfo.Builder, org.tensorflow.util.testlog.AvailableDeviceInfoOrBuilder> availableDeviceInfoBuilder_;
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public java.util.List getAvailableDeviceInfoList() {
if (availableDeviceInfoBuilder_ == null) {
return java.util.Collections.unmodifiableList(availableDeviceInfo_);
} else {
return availableDeviceInfoBuilder_.getMessageList();
}
}
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public int getAvailableDeviceInfoCount() {
if (availableDeviceInfoBuilder_ == null) {
return availableDeviceInfo_.size();
} else {
return availableDeviceInfoBuilder_.getCount();
}
}
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public org.tensorflow.util.testlog.AvailableDeviceInfo getAvailableDeviceInfo(int index) {
if (availableDeviceInfoBuilder_ == null) {
return availableDeviceInfo_.get(index);
} else {
return availableDeviceInfoBuilder_.getMessage(index);
}
}
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public Builder setAvailableDeviceInfo(
int index, org.tensorflow.util.testlog.AvailableDeviceInfo value) {
if (availableDeviceInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAvailableDeviceInfoIsMutable();
availableDeviceInfo_.set(index, value);
onChanged();
} else {
availableDeviceInfoBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public Builder setAvailableDeviceInfo(
int index, org.tensorflow.util.testlog.AvailableDeviceInfo.Builder builderForValue) {
if (availableDeviceInfoBuilder_ == null) {
ensureAvailableDeviceInfoIsMutable();
availableDeviceInfo_.set(index, builderForValue.build());
onChanged();
} else {
availableDeviceInfoBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public Builder addAvailableDeviceInfo(org.tensorflow.util.testlog.AvailableDeviceInfo value) {
if (availableDeviceInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAvailableDeviceInfoIsMutable();
availableDeviceInfo_.add(value);
onChanged();
} else {
availableDeviceInfoBuilder_.addMessage(value);
}
return this;
}
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public Builder addAvailableDeviceInfo(
int index, org.tensorflow.util.testlog.AvailableDeviceInfo value) {
if (availableDeviceInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAvailableDeviceInfoIsMutable();
availableDeviceInfo_.add(index, value);
onChanged();
} else {
availableDeviceInfoBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public Builder addAvailableDeviceInfo(
org.tensorflow.util.testlog.AvailableDeviceInfo.Builder builderForValue) {
if (availableDeviceInfoBuilder_ == null) {
ensureAvailableDeviceInfoIsMutable();
availableDeviceInfo_.add(builderForValue.build());
onChanged();
} else {
availableDeviceInfoBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public Builder addAvailableDeviceInfo(
int index, org.tensorflow.util.testlog.AvailableDeviceInfo.Builder builderForValue) {
if (availableDeviceInfoBuilder_ == null) {
ensureAvailableDeviceInfoIsMutable();
availableDeviceInfo_.add(index, builderForValue.build());
onChanged();
} else {
availableDeviceInfoBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public Builder addAllAvailableDeviceInfo(
java.lang.Iterable extends org.tensorflow.util.testlog.AvailableDeviceInfo> values) {
if (availableDeviceInfoBuilder_ == null) {
ensureAvailableDeviceInfoIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, availableDeviceInfo_);
onChanged();
} else {
availableDeviceInfoBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public Builder clearAvailableDeviceInfo() {
if (availableDeviceInfoBuilder_ == null) {
availableDeviceInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
availableDeviceInfoBuilder_.clear();
}
return this;
}
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public Builder removeAvailableDeviceInfo(int index) {
if (availableDeviceInfoBuilder_ == null) {
ensureAvailableDeviceInfoIsMutable();
availableDeviceInfo_.remove(index);
onChanged();
} else {
availableDeviceInfoBuilder_.remove(index);
}
return this;
}
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public org.tensorflow.util.testlog.AvailableDeviceInfo.Builder getAvailableDeviceInfoBuilder(
int index) {
return getAvailableDeviceInfoFieldBuilder().getBuilder(index);
}
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public org.tensorflow.util.testlog.AvailableDeviceInfoOrBuilder getAvailableDeviceInfoOrBuilder(
int index) {
if (availableDeviceInfoBuilder_ == null) {
return availableDeviceInfo_.get(index); } else {
return availableDeviceInfoBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public java.util.List extends org.tensorflow.util.testlog.AvailableDeviceInfoOrBuilder>
getAvailableDeviceInfoOrBuilderList() {
if (availableDeviceInfoBuilder_ != null) {
return availableDeviceInfoBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(availableDeviceInfo_);
}
}
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public org.tensorflow.util.testlog.AvailableDeviceInfo.Builder addAvailableDeviceInfoBuilder() {
return getAvailableDeviceInfoFieldBuilder().addBuilder(
org.tensorflow.util.testlog.AvailableDeviceInfo.getDefaultInstance());
}
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public org.tensorflow.util.testlog.AvailableDeviceInfo.Builder addAvailableDeviceInfoBuilder(
int index) {
return getAvailableDeviceInfoFieldBuilder().addBuilder(
index, org.tensorflow.util.testlog.AvailableDeviceInfo.getDefaultInstance());
}
/**
*
* Devices accessible to the test (e.g. as given by list_local_devices).
*
*
* repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
*/
public java.util.List
getAvailableDeviceInfoBuilderList() {
return getAvailableDeviceInfoFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.util.testlog.AvailableDeviceInfo, org.tensorflow.util.testlog.AvailableDeviceInfo.Builder, org.tensorflow.util.testlog.AvailableDeviceInfoOrBuilder>
getAvailableDeviceInfoFieldBuilder() {
if (availableDeviceInfoBuilder_ == null) {
availableDeviceInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.util.testlog.AvailableDeviceInfo, org.tensorflow.util.testlog.AvailableDeviceInfo.Builder, org.tensorflow.util.testlog.AvailableDeviceInfoOrBuilder>(
availableDeviceInfo_,
((bitField0_ & 0x00000020) == 0x00000020),
getParentForChildren(),
isClean());
availableDeviceInfo_ = null;
}
return availableDeviceInfoBuilder_;
}
private org.tensorflow.util.testlog.MemoryInfo memoryInfo_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.MemoryInfo, org.tensorflow.util.testlog.MemoryInfo.Builder, org.tensorflow.util.testlog.MemoryInfoOrBuilder> memoryInfoBuilder_;
/**
* .tensorflow.MemoryInfo memory_info = 6;
*/
public boolean hasMemoryInfo() {
return memoryInfoBuilder_ != null || memoryInfo_ != null;
}
/**
* .tensorflow.MemoryInfo memory_info = 6;
*/
public org.tensorflow.util.testlog.MemoryInfo getMemoryInfo() {
if (memoryInfoBuilder_ == null) {
return memoryInfo_ == null ? org.tensorflow.util.testlog.MemoryInfo.getDefaultInstance() : memoryInfo_;
} else {
return memoryInfoBuilder_.getMessage();
}
}
/**
* .tensorflow.MemoryInfo memory_info = 6;
*/
public Builder setMemoryInfo(org.tensorflow.util.testlog.MemoryInfo value) {
if (memoryInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
memoryInfo_ = value;
onChanged();
} else {
memoryInfoBuilder_.setMessage(value);
}
return this;
}
/**
* .tensorflow.MemoryInfo memory_info = 6;
*/
public Builder setMemoryInfo(
org.tensorflow.util.testlog.MemoryInfo.Builder builderForValue) {
if (memoryInfoBuilder_ == null) {
memoryInfo_ = builderForValue.build();
onChanged();
} else {
memoryInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .tensorflow.MemoryInfo memory_info = 6;
*/
public Builder mergeMemoryInfo(org.tensorflow.util.testlog.MemoryInfo value) {
if (memoryInfoBuilder_ == null) {
if (memoryInfo_ != null) {
memoryInfo_ =
org.tensorflow.util.testlog.MemoryInfo.newBuilder(memoryInfo_).mergeFrom(value).buildPartial();
} else {
memoryInfo_ = value;
}
onChanged();
} else {
memoryInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
* .tensorflow.MemoryInfo memory_info = 6;
*/
public Builder clearMemoryInfo() {
if (memoryInfoBuilder_ == null) {
memoryInfo_ = null;
onChanged();
} else {
memoryInfo_ = null;
memoryInfoBuilder_ = null;
}
return this;
}
/**
* .tensorflow.MemoryInfo memory_info = 6;
*/
public org.tensorflow.util.testlog.MemoryInfo.Builder getMemoryInfoBuilder() {
onChanged();
return getMemoryInfoFieldBuilder().getBuilder();
}
/**
* .tensorflow.MemoryInfo memory_info = 6;
*/
public org.tensorflow.util.testlog.MemoryInfoOrBuilder getMemoryInfoOrBuilder() {
if (memoryInfoBuilder_ != null) {
return memoryInfoBuilder_.getMessageOrBuilder();
} else {
return memoryInfo_ == null ?
org.tensorflow.util.testlog.MemoryInfo.getDefaultInstance() : memoryInfo_;
}
}
/**
* .tensorflow.MemoryInfo memory_info = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.MemoryInfo, org.tensorflow.util.testlog.MemoryInfo.Builder, org.tensorflow.util.testlog.MemoryInfoOrBuilder>
getMemoryInfoFieldBuilder() {
if (memoryInfoBuilder_ == null) {
memoryInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.testlog.MemoryInfo, org.tensorflow.util.testlog.MemoryInfo.Builder, org.tensorflow.util.testlog.MemoryInfoOrBuilder>(
getMemoryInfo(),
getParentForChildren(),
isClean());
memoryInfo_ = null;
}
return memoryInfoBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.MachineConfiguration)
}
// @@protoc_insertion_point(class_scope:tensorflow.MachineConfiguration)
private static final org.tensorflow.util.testlog.MachineConfiguration DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.util.testlog.MachineConfiguration();
}
public static org.tensorflow.util.testlog.MachineConfiguration getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public MachineConfiguration parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MachineConfiguration(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.util.testlog.MachineConfiguration getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy