
tensorflow.tfprof.TfprofOutput Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/profiler/tfprof_output.proto
package tensorflow.tfprof;
public final class TfprofOutput {
private TfprofOutput() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface TFProfTensorProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.tfprof.TFProfTensorProto)
com.google.protobuf.MessageOrBuilder {
/**
* .tensorflow.DataType dtype = 1;
*/
int getDtypeValue();
/**
* .tensorflow.DataType dtype = 1;
*/
org.tensorflow.framework.DataType getDtype();
/**
*
* Flatten tensor in row-major.
* Only one of the following array is set.
*
*
* repeated double value_double = 2;
*/
java.util.List getValueDoubleList();
/**
*
* Flatten tensor in row-major.
* Only one of the following array is set.
*
*
* repeated double value_double = 2;
*/
int getValueDoubleCount();
/**
*
* Flatten tensor in row-major.
* Only one of the following array is set.
*
*
* repeated double value_double = 2;
*/
double getValueDouble(int index);
/**
* repeated int64 value_int64 = 3;
*/
java.util.List getValueInt64List();
/**
* repeated int64 value_int64 = 3;
*/
int getValueInt64Count();
/**
* repeated int64 value_int64 = 3;
*/
long getValueInt64(int index);
/**
* repeated string value_str = 4;
*/
java.util.List
getValueStrList();
/**
* repeated string value_str = 4;
*/
int getValueStrCount();
/**
* repeated string value_str = 4;
*/
java.lang.String getValueStr(int index);
/**
* repeated string value_str = 4;
*/
com.google.protobuf.ByteString
getValueStrBytes(int index);
}
/**
* Protobuf type {@code tensorflow.tfprof.TFProfTensorProto}
*/
public static final class TFProfTensorProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.tfprof.TFProfTensorProto)
TFProfTensorProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use TFProfTensorProto.newBuilder() to construct.
private TFProfTensorProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TFProfTensorProto() {
dtype_ = 0;
valueDouble_ = java.util.Collections.emptyList();
valueInt64_ = java.util.Collections.emptyList();
valueStr_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TFProfTensorProto(
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;
case 8: {
int rawValue = input.readEnum();
dtype_ = rawValue;
break;
}
case 17: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
valueDouble_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
valueDouble_.add(input.readDouble());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
valueDouble_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
valueDouble_.add(input.readDouble());
}
input.popLimit(limit);
break;
}
case 24: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
valueInt64_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
valueInt64_.add(input.readInt64());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
valueInt64_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
valueInt64_.add(input.readInt64());
}
input.popLimit(limit);
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
valueStr_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
valueStr_.add(s);
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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_ & 0x00000002) == 0x00000002)) {
valueDouble_ = java.util.Collections.unmodifiableList(valueDouble_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
valueInt64_ = java.util.Collections.unmodifiableList(valueInt64_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
valueStr_ = valueStr_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_TFProfTensorProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_TFProfTensorProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.tfprof.TfprofOutput.TFProfTensorProto.class, tensorflow.tfprof.TfprofOutput.TFProfTensorProto.Builder.class);
}
private int bitField0_;
public static final int DTYPE_FIELD_NUMBER = 1;
private int dtype_;
/**
* .tensorflow.DataType dtype = 1;
*/
public int getDtypeValue() {
return dtype_;
}
/**
* .tensorflow.DataType dtype = 1;
*/
public org.tensorflow.framework.DataType getDtype() {
@SuppressWarnings("deprecation")
org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(dtype_);
return result == null ? org.tensorflow.framework.DataType.UNRECOGNIZED : result;
}
public static final int VALUE_DOUBLE_FIELD_NUMBER = 2;
private java.util.List valueDouble_;
/**
*
* Flatten tensor in row-major.
* Only one of the following array is set.
*
*
* repeated double value_double = 2;
*/
public java.util.List
getValueDoubleList() {
return valueDouble_;
}
/**
*
* Flatten tensor in row-major.
* Only one of the following array is set.
*
*
* repeated double value_double = 2;
*/
public int getValueDoubleCount() {
return valueDouble_.size();
}
/**
*
* Flatten tensor in row-major.
* Only one of the following array is set.
*
*
* repeated double value_double = 2;
*/
public double getValueDouble(int index) {
return valueDouble_.get(index);
}
private int valueDoubleMemoizedSerializedSize = -1;
public static final int VALUE_INT64_FIELD_NUMBER = 3;
private java.util.List valueInt64_;
/**
* repeated int64 value_int64 = 3;
*/
public java.util.List
getValueInt64List() {
return valueInt64_;
}
/**
* repeated int64 value_int64 = 3;
*/
public int getValueInt64Count() {
return valueInt64_.size();
}
/**
* repeated int64 value_int64 = 3;
*/
public long getValueInt64(int index) {
return valueInt64_.get(index);
}
private int valueInt64MemoizedSerializedSize = -1;
public static final int VALUE_STR_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList valueStr_;
/**
* repeated string value_str = 4;
*/
public com.google.protobuf.ProtocolStringList
getValueStrList() {
return valueStr_;
}
/**
* repeated string value_str = 4;
*/
public int getValueStrCount() {
return valueStr_.size();
}
/**
* repeated string value_str = 4;
*/
public java.lang.String getValueStr(int index) {
return valueStr_.get(index);
}
/**
* repeated string value_str = 4;
*/
public com.google.protobuf.ByteString
getValueStrBytes(int index) {
return valueStr_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (dtype_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) {
output.writeEnum(1, dtype_);
}
if (getValueDoubleList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(valueDoubleMemoizedSerializedSize);
}
for (int i = 0; i < valueDouble_.size(); i++) {
output.writeDoubleNoTag(valueDouble_.get(i));
}
if (getValueInt64List().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(valueInt64MemoizedSerializedSize);
}
for (int i = 0; i < valueInt64_.size(); i++) {
output.writeInt64NoTag(valueInt64_.get(i));
}
for (int i = 0; i < valueStr_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, valueStr_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (dtype_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, dtype_);
}
{
int dataSize = 0;
dataSize = 8 * getValueDoubleList().size();
size += dataSize;
if (!getValueDoubleList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
valueDoubleMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < valueInt64_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(valueInt64_.get(i));
}
size += dataSize;
if (!getValueInt64List().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
valueInt64MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < valueStr_.size(); i++) {
dataSize += computeStringSizeNoTag(valueStr_.getRaw(i));
}
size += dataSize;
size += 1 * getValueStrList().size();
}
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 tensorflow.tfprof.TfprofOutput.TFProfTensorProto)) {
return super.equals(obj);
}
tensorflow.tfprof.TfprofOutput.TFProfTensorProto other = (tensorflow.tfprof.TfprofOutput.TFProfTensorProto) obj;
boolean result = true;
result = result && dtype_ == other.dtype_;
result = result && getValueDoubleList()
.equals(other.getValueDoubleList());
result = result && getValueInt64List()
.equals(other.getValueInt64List());
result = result && getValueStrList()
.equals(other.getValueStrList());
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) + DTYPE_FIELD_NUMBER;
hash = (53 * hash) + dtype_;
if (getValueDoubleCount() > 0) {
hash = (37 * hash) + VALUE_DOUBLE_FIELD_NUMBER;
hash = (53 * hash) + getValueDoubleList().hashCode();
}
if (getValueInt64Count() > 0) {
hash = (37 * hash) + VALUE_INT64_FIELD_NUMBER;
hash = (53 * hash) + getValueInt64List().hashCode();
}
if (getValueStrCount() > 0) {
hash = (37 * hash) + VALUE_STR_FIELD_NUMBER;
hash = (53 * hash) + getValueStrList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.tfprof.TfprofOutput.TFProfTensorProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.tfprof.TfprofOutput.TFProfTensorProto parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.tfprof.TfprofOutput.TFProfTensorProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.tfprof.TfprofOutput.TFProfTensorProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.tfprof.TfprofOutput.TFProfTensorProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.tfprof.TfprofOutput.TFProfTensorProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.tfprof.TfprofOutput.TFProfTensorProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.tfprof.TfprofOutput.TFProfTensorProto 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 tensorflow.tfprof.TfprofOutput.TFProfTensorProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.tfprof.TfprofOutput.TFProfTensorProto 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 tensorflow.tfprof.TfprofOutput.TFProfTensorProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.tfprof.TfprofOutput.TFProfTensorProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tensorflow.tfprof.TfprofOutput.TFProfTensorProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
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.tfprof.TFProfTensorProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.tfprof.TFProfTensorProto)
tensorflow.tfprof.TfprofOutput.TFProfTensorProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_TFProfTensorProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_TFProfTensorProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.tfprof.TfprofOutput.TFProfTensorProto.class, tensorflow.tfprof.TfprofOutput.TFProfTensorProto.Builder.class);
}
// Construct using tensorflow.tfprof.TfprofOutput.TFProfTensorProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
dtype_ = 0;
valueDouble_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
valueInt64_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
valueStr_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_TFProfTensorProto_descriptor;
}
@java.lang.Override
public tensorflow.tfprof.TfprofOutput.TFProfTensorProto getDefaultInstanceForType() {
return tensorflow.tfprof.TfprofOutput.TFProfTensorProto.getDefaultInstance();
}
@java.lang.Override
public tensorflow.tfprof.TfprofOutput.TFProfTensorProto build() {
tensorflow.tfprof.TfprofOutput.TFProfTensorProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.tfprof.TfprofOutput.TFProfTensorProto buildPartial() {
tensorflow.tfprof.TfprofOutput.TFProfTensorProto result = new tensorflow.tfprof.TfprofOutput.TFProfTensorProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.dtype_ = dtype_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
valueDouble_ = java.util.Collections.unmodifiableList(valueDouble_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.valueDouble_ = valueDouble_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
valueInt64_ = java.util.Collections.unmodifiableList(valueInt64_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.valueInt64_ = valueInt64_;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
valueStr_ = valueStr_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.valueStr_ = valueStr_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tensorflow.tfprof.TfprofOutput.TFProfTensorProto) {
return mergeFrom((tensorflow.tfprof.TfprofOutput.TFProfTensorProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.tfprof.TfprofOutput.TFProfTensorProto other) {
if (other == tensorflow.tfprof.TfprofOutput.TFProfTensorProto.getDefaultInstance()) return this;
if (other.dtype_ != 0) {
setDtypeValue(other.getDtypeValue());
}
if (!other.valueDouble_.isEmpty()) {
if (valueDouble_.isEmpty()) {
valueDouble_ = other.valueDouble_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureValueDoubleIsMutable();
valueDouble_.addAll(other.valueDouble_);
}
onChanged();
}
if (!other.valueInt64_.isEmpty()) {
if (valueInt64_.isEmpty()) {
valueInt64_ = other.valueInt64_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureValueInt64IsMutable();
valueInt64_.addAll(other.valueInt64_);
}
onChanged();
}
if (!other.valueStr_.isEmpty()) {
if (valueStr_.isEmpty()) {
valueStr_ = other.valueStr_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureValueStrIsMutable();
valueStr_.addAll(other.valueStr_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
tensorflow.tfprof.TfprofOutput.TFProfTensorProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.tfprof.TfprofOutput.TFProfTensorProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int dtype_ = 0;
/**
* .tensorflow.DataType dtype = 1;
*/
public int getDtypeValue() {
return dtype_;
}
/**
* .tensorflow.DataType dtype = 1;
*/
public Builder setDtypeValue(int value) {
dtype_ = value;
onChanged();
return this;
}
/**
* .tensorflow.DataType dtype = 1;
*/
public org.tensorflow.framework.DataType getDtype() {
@SuppressWarnings("deprecation")
org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(dtype_);
return result == null ? org.tensorflow.framework.DataType.UNRECOGNIZED : result;
}
/**
* .tensorflow.DataType dtype = 1;
*/
public Builder setDtype(org.tensorflow.framework.DataType value) {
if (value == null) {
throw new NullPointerException();
}
dtype_ = value.getNumber();
onChanged();
return this;
}
/**
* .tensorflow.DataType dtype = 1;
*/
public Builder clearDtype() {
dtype_ = 0;
onChanged();
return this;
}
private java.util.List valueDouble_ = java.util.Collections.emptyList();
private void ensureValueDoubleIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
valueDouble_ = new java.util.ArrayList(valueDouble_);
bitField0_ |= 0x00000002;
}
}
/**
*
* Flatten tensor in row-major.
* Only one of the following array is set.
*
*
* repeated double value_double = 2;
*/
public java.util.List
getValueDoubleList() {
return java.util.Collections.unmodifiableList(valueDouble_);
}
/**
*
* Flatten tensor in row-major.
* Only one of the following array is set.
*
*
* repeated double value_double = 2;
*/
public int getValueDoubleCount() {
return valueDouble_.size();
}
/**
*
* Flatten tensor in row-major.
* Only one of the following array is set.
*
*
* repeated double value_double = 2;
*/
public double getValueDouble(int index) {
return valueDouble_.get(index);
}
/**
*
* Flatten tensor in row-major.
* Only one of the following array is set.
*
*
* repeated double value_double = 2;
*/
public Builder setValueDouble(
int index, double value) {
ensureValueDoubleIsMutable();
valueDouble_.set(index, value);
onChanged();
return this;
}
/**
*
* Flatten tensor in row-major.
* Only one of the following array is set.
*
*
* repeated double value_double = 2;
*/
public Builder addValueDouble(double value) {
ensureValueDoubleIsMutable();
valueDouble_.add(value);
onChanged();
return this;
}
/**
*
* Flatten tensor in row-major.
* Only one of the following array is set.
*
*
* repeated double value_double = 2;
*/
public Builder addAllValueDouble(
java.lang.Iterable extends java.lang.Double> values) {
ensureValueDoubleIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, valueDouble_);
onChanged();
return this;
}
/**
*
* Flatten tensor in row-major.
* Only one of the following array is set.
*
*
* repeated double value_double = 2;
*/
public Builder clearValueDouble() {
valueDouble_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private java.util.List valueInt64_ = java.util.Collections.emptyList();
private void ensureValueInt64IsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
valueInt64_ = new java.util.ArrayList(valueInt64_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated int64 value_int64 = 3;
*/
public java.util.List
getValueInt64List() {
return java.util.Collections.unmodifiableList(valueInt64_);
}
/**
* repeated int64 value_int64 = 3;
*/
public int getValueInt64Count() {
return valueInt64_.size();
}
/**
* repeated int64 value_int64 = 3;
*/
public long getValueInt64(int index) {
return valueInt64_.get(index);
}
/**
* repeated int64 value_int64 = 3;
*/
public Builder setValueInt64(
int index, long value) {
ensureValueInt64IsMutable();
valueInt64_.set(index, value);
onChanged();
return this;
}
/**
* repeated int64 value_int64 = 3;
*/
public Builder addValueInt64(long value) {
ensureValueInt64IsMutable();
valueInt64_.add(value);
onChanged();
return this;
}
/**
* repeated int64 value_int64 = 3;
*/
public Builder addAllValueInt64(
java.lang.Iterable extends java.lang.Long> values) {
ensureValueInt64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, valueInt64_);
onChanged();
return this;
}
/**
* repeated int64 value_int64 = 3;
*/
public Builder clearValueInt64() {
valueInt64_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList valueStr_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureValueStrIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
valueStr_ = new com.google.protobuf.LazyStringArrayList(valueStr_);
bitField0_ |= 0x00000008;
}
}
/**
* repeated string value_str = 4;
*/
public com.google.protobuf.ProtocolStringList
getValueStrList() {
return valueStr_.getUnmodifiableView();
}
/**
* repeated string value_str = 4;
*/
public int getValueStrCount() {
return valueStr_.size();
}
/**
* repeated string value_str = 4;
*/
public java.lang.String getValueStr(int index) {
return valueStr_.get(index);
}
/**
* repeated string value_str = 4;
*/
public com.google.protobuf.ByteString
getValueStrBytes(int index) {
return valueStr_.getByteString(index);
}
/**
* repeated string value_str = 4;
*/
public Builder setValueStr(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureValueStrIsMutable();
valueStr_.set(index, value);
onChanged();
return this;
}
/**
* repeated string value_str = 4;
*/
public Builder addValueStr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureValueStrIsMutable();
valueStr_.add(value);
onChanged();
return this;
}
/**
* repeated string value_str = 4;
*/
public Builder addAllValueStr(
java.lang.Iterable values) {
ensureValueStrIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, valueStr_);
onChanged();
return this;
}
/**
* repeated string value_str = 4;
*/
public Builder clearValueStr() {
valueStr_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* repeated string value_str = 4;
*/
public Builder addValueStrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureValueStrIsMutable();
valueStr_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.tfprof.TFProfTensorProto)
}
// @@protoc_insertion_point(class_scope:tensorflow.tfprof.TFProfTensorProto)
private static final tensorflow.tfprof.TfprofOutput.TFProfTensorProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.tfprof.TfprofOutput.TFProfTensorProto();
}
public static tensorflow.tfprof.TfprofOutput.TFProfTensorProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TFProfTensorProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TFProfTensorProto(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tensorflow.tfprof.TfprofOutput.TFProfTensorProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GraphNodeProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.tfprof.GraphNodeProto)
com.google.protobuf.MessageOrBuilder {
/**
*
* op name.
*
*
* string name = 1;
*/
java.lang.String getName();
/**
*
* op name.
*
*
* string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* tensor value restored from checkpoint.
*
*
* .tensorflow.tfprof.TFProfTensorProto tensor_value = 15;
*/
boolean hasTensorValue();
/**
*
* tensor value restored from checkpoint.
*
*
* .tensorflow.tfprof.TFProfTensorProto tensor_value = 15;
*/
tensorflow.tfprof.TfprofOutput.TFProfTensorProto getTensorValue();
/**
*
* tensor value restored from checkpoint.
*
*
* .tensorflow.tfprof.TFProfTensorProto tensor_value = 15;
*/
tensorflow.tfprof.TfprofOutput.TFProfTensorProtoOrBuilder getTensorValueOrBuilder();
/**
*
* op execution time.
* A node can be defined once but run multiple times in tf.while_loop.
* the times sum up all different runs.
*
*
* int64 run_count = 21;
*/
long getRunCount();
/**
* int64 exec_micros = 2;
*/
long getExecMicros();
/**
* int64 accelerator_exec_micros = 17;
*/
long getAcceleratorExecMicros();
/**
* int64 cpu_exec_micros = 18;
*/
long getCpuExecMicros();
/**
*
* Total bytes requested by the op.
*
*
* int64 requested_bytes = 3;
*/
long getRequestedBytes();
/**
*
* Max bytes allocated and being used by the op at a point.
*
*
* int64 peak_bytes = 24;
*/
long getPeakBytes();
/**
*
* Total bytes requested by the op and not released before end.
*
*
* int64 residual_bytes = 25;
*/
long getResidualBytes();
/**
*
* Total bytes output by the op (not necessarily allocated by the op).
*
*
* int64 output_bytes = 26;
*/
long getOutputBytes();
/**
*
* Number of parameters if available.
*
*
* int64 parameters = 4;
*/
long getParameters();
/**
*
* Number of float operations.
*
*
* int64 float_ops = 13;
*/
long getFloatOps();
/**
*
* Device the op is assigned to.
* Since an op can fire multiple kernel calls, there can be multiple devices.
*
*
* repeated string devices = 10;
*/
java.util.List
getDevicesList();
/**
*
* Device the op is assigned to.
* Since an op can fire multiple kernel calls, there can be multiple devices.
*
*
* repeated string devices = 10;
*/
int getDevicesCount();
/**
*
* Device the op is assigned to.
* Since an op can fire multiple kernel calls, there can be multiple devices.
*
*
* repeated string devices = 10;
*/
java.lang.String getDevices(int index);
/**
*
* Device the op is assigned to.
* Since an op can fire multiple kernel calls, there can be multiple devices.
*
*
* repeated string devices = 10;
*/
com.google.protobuf.ByteString
getDevicesBytes(int index);
/**
*
* The following are the aggregated stats from all *accounted* children and
* the node itself. The actual children depend on the data structure used.
* In graph view, children are inputs recursively.
* In scope view, children are nodes under the name scope.
*
*
* int64 total_definition_count = 23;
*/
long getTotalDefinitionCount();
/**
* int64 total_run_count = 22;
*/
long getTotalRunCount();
/**
* int64 total_exec_micros = 6;
*/
long getTotalExecMicros();
/**
* int64 total_accelerator_exec_micros = 19;
*/
long getTotalAcceleratorExecMicros();
/**
* int64 total_cpu_exec_micros = 20;
*/
long getTotalCpuExecMicros();
/**
* int64 total_requested_bytes = 7;
*/
long getTotalRequestedBytes();
/**
* int64 total_peak_bytes = 27;
*/
long getTotalPeakBytes();
/**
* int64 total_residual_bytes = 28;
*/
long getTotalResidualBytes();
/**
* int64 total_output_bytes = 29;
*/
long getTotalOutputBytes();
/**
* int64 total_parameters = 8;
*/
long getTotalParameters();
/**
* int64 total_float_ops = 14;
*/
long getTotalFloatOps();
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
java.util.List
getShapesList();
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
org.tensorflow.framework.TensorShapeProto getShapes(int index);
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
int getShapesCount();
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
java.util.List extends org.tensorflow.framework.TensorShapeProtoOrBuilder>
getShapesOrBuilderList();
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
org.tensorflow.framework.TensorShapeProtoOrBuilder getShapesOrBuilder(
int index);
/**
* map<int32, .tensorflow.TensorShapeProto> input_shapes = 16;
*/
int getInputShapesCount();
/**
* map<int32, .tensorflow.TensorShapeProto> input_shapes = 16;
*/
boolean containsInputShapes(
int key);
/**
* Use {@link #getInputShapesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getInputShapes();
/**
* map<int32, .tensorflow.TensorShapeProto> input_shapes = 16;
*/
java.util.Map
getInputShapesMap();
/**
* map<int32, .tensorflow.TensorShapeProto> input_shapes = 16;
*/
org.tensorflow.framework.TensorShapeProto getInputShapesOrDefault(
int key,
org.tensorflow.framework.TensorShapeProto defaultValue);
/**
* map<int32, .tensorflow.TensorShapeProto> input_shapes = 16;
*/
org.tensorflow.framework.TensorShapeProto getInputShapesOrThrow(
int key);
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
java.util.List
getChildrenList();
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
tensorflow.tfprof.TfprofOutput.GraphNodeProto getChildren(int index);
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
int getChildrenCount();
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
java.util.List extends tensorflow.tfprof.TfprofOutput.GraphNodeProtoOrBuilder>
getChildrenOrBuilderList();
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
tensorflow.tfprof.TfprofOutput.GraphNodeProtoOrBuilder getChildrenOrBuilder(
int index);
}
/**
*
* A node in TensorFlow graph. Used by scope/graph view.
*
*
* Protobuf type {@code tensorflow.tfprof.GraphNodeProto}
*/
public static final class GraphNodeProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.tfprof.GraphNodeProto)
GraphNodeProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use GraphNodeProto.newBuilder() to construct.
private GraphNodeProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GraphNodeProto() {
name_ = "";
runCount_ = 0L;
execMicros_ = 0L;
acceleratorExecMicros_ = 0L;
cpuExecMicros_ = 0L;
requestedBytes_ = 0L;
peakBytes_ = 0L;
residualBytes_ = 0L;
outputBytes_ = 0L;
parameters_ = 0L;
floatOps_ = 0L;
devices_ = com.google.protobuf.LazyStringArrayList.EMPTY;
totalDefinitionCount_ = 0L;
totalRunCount_ = 0L;
totalExecMicros_ = 0L;
totalAcceleratorExecMicros_ = 0L;
totalCpuExecMicros_ = 0L;
totalRequestedBytes_ = 0L;
totalPeakBytes_ = 0L;
totalResidualBytes_ = 0L;
totalOutputBytes_ = 0L;
totalParameters_ = 0L;
totalFloatOps_ = 0L;
shapes_ = java.util.Collections.emptyList();
children_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GraphNodeProto(
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;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 16: {
execMicros_ = input.readInt64();
break;
}
case 24: {
requestedBytes_ = input.readInt64();
break;
}
case 32: {
parameters_ = input.readInt64();
break;
}
case 48: {
totalExecMicros_ = input.readInt64();
break;
}
case 56: {
totalRequestedBytes_ = input.readInt64();
break;
}
case 64: {
totalParameters_ = input.readInt64();
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) {
devices_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00001000;
}
devices_.add(s);
break;
}
case 90: {
if (!((mutable_bitField0_ & 0x01000000) == 0x01000000)) {
shapes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x01000000;
}
shapes_.add(
input.readMessage(org.tensorflow.framework.TensorShapeProto.parser(), extensionRegistry));
break;
}
case 98: {
if (!((mutable_bitField0_ & 0x04000000) == 0x04000000)) {
children_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x04000000;
}
children_.add(
input.readMessage(tensorflow.tfprof.TfprofOutput.GraphNodeProto.parser(), extensionRegistry));
break;
}
case 104: {
floatOps_ = input.readInt64();
break;
}
case 112: {
totalFloatOps_ = input.readInt64();
break;
}
case 122: {
tensorflow.tfprof.TfprofOutput.TFProfTensorProto.Builder subBuilder = null;
if (tensorValue_ != null) {
subBuilder = tensorValue_.toBuilder();
}
tensorValue_ = input.readMessage(tensorflow.tfprof.TfprofOutput.TFProfTensorProto.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tensorValue_);
tensorValue_ = subBuilder.buildPartial();
}
break;
}
case 130: {
if (!((mutable_bitField0_ & 0x02000000) == 0x02000000)) {
inputShapes_ = com.google.protobuf.MapField.newMapField(
InputShapesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x02000000;
}
com.google.protobuf.MapEntry
inputShapes__ = input.readMessage(
InputShapesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
inputShapes_.getMutableMap().put(
inputShapes__.getKey(), inputShapes__.getValue());
break;
}
case 136: {
acceleratorExecMicros_ = input.readInt64();
break;
}
case 144: {
cpuExecMicros_ = input.readInt64();
break;
}
case 152: {
totalAcceleratorExecMicros_ = input.readInt64();
break;
}
case 160: {
totalCpuExecMicros_ = input.readInt64();
break;
}
case 168: {
runCount_ = input.readInt64();
break;
}
case 176: {
totalRunCount_ = input.readInt64();
break;
}
case 184: {
totalDefinitionCount_ = input.readInt64();
break;
}
case 192: {
peakBytes_ = input.readInt64();
break;
}
case 200: {
residualBytes_ = input.readInt64();
break;
}
case 208: {
outputBytes_ = input.readInt64();
break;
}
case 216: {
totalPeakBytes_ = input.readInt64();
break;
}
case 224: {
totalResidualBytes_ = input.readInt64();
break;
}
case 232: {
totalOutputBytes_ = input.readInt64();
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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_ & 0x00001000) == 0x00001000)) {
devices_ = devices_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x01000000) == 0x01000000)) {
shapes_ = java.util.Collections.unmodifiableList(shapes_);
}
if (((mutable_bitField0_ & 0x04000000) == 0x04000000)) {
children_ = java.util.Collections.unmodifiableList(children_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_GraphNodeProto_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 16:
return internalGetInputShapes();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_GraphNodeProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.tfprof.TfprofOutput.GraphNodeProto.class, tensorflow.tfprof.TfprofOutput.GraphNodeProto.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* op name.
*
*
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
* op name.
*
*
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TENSOR_VALUE_FIELD_NUMBER = 15;
private tensorflow.tfprof.TfprofOutput.TFProfTensorProto tensorValue_;
/**
*
* tensor value restored from checkpoint.
*
*
* .tensorflow.tfprof.TFProfTensorProto tensor_value = 15;
*/
public boolean hasTensorValue() {
return tensorValue_ != null;
}
/**
*
* tensor value restored from checkpoint.
*
*
* .tensorflow.tfprof.TFProfTensorProto tensor_value = 15;
*/
public tensorflow.tfprof.TfprofOutput.TFProfTensorProto getTensorValue() {
return tensorValue_ == null ? tensorflow.tfprof.TfprofOutput.TFProfTensorProto.getDefaultInstance() : tensorValue_;
}
/**
*
* tensor value restored from checkpoint.
*
*
* .tensorflow.tfprof.TFProfTensorProto tensor_value = 15;
*/
public tensorflow.tfprof.TfprofOutput.TFProfTensorProtoOrBuilder getTensorValueOrBuilder() {
return getTensorValue();
}
public static final int RUN_COUNT_FIELD_NUMBER = 21;
private long runCount_;
/**
*
* op execution time.
* A node can be defined once but run multiple times in tf.while_loop.
* the times sum up all different runs.
*
*
* int64 run_count = 21;
*/
public long getRunCount() {
return runCount_;
}
public static final int EXEC_MICROS_FIELD_NUMBER = 2;
private long execMicros_;
/**
* int64 exec_micros = 2;
*/
public long getExecMicros() {
return execMicros_;
}
public static final int ACCELERATOR_EXEC_MICROS_FIELD_NUMBER = 17;
private long acceleratorExecMicros_;
/**
* int64 accelerator_exec_micros = 17;
*/
public long getAcceleratorExecMicros() {
return acceleratorExecMicros_;
}
public static final int CPU_EXEC_MICROS_FIELD_NUMBER = 18;
private long cpuExecMicros_;
/**
* int64 cpu_exec_micros = 18;
*/
public long getCpuExecMicros() {
return cpuExecMicros_;
}
public static final int REQUESTED_BYTES_FIELD_NUMBER = 3;
private long requestedBytes_;
/**
*
* Total bytes requested by the op.
*
*
* int64 requested_bytes = 3;
*/
public long getRequestedBytes() {
return requestedBytes_;
}
public static final int PEAK_BYTES_FIELD_NUMBER = 24;
private long peakBytes_;
/**
*
* Max bytes allocated and being used by the op at a point.
*
*
* int64 peak_bytes = 24;
*/
public long getPeakBytes() {
return peakBytes_;
}
public static final int RESIDUAL_BYTES_FIELD_NUMBER = 25;
private long residualBytes_;
/**
*
* Total bytes requested by the op and not released before end.
*
*
* int64 residual_bytes = 25;
*/
public long getResidualBytes() {
return residualBytes_;
}
public static final int OUTPUT_BYTES_FIELD_NUMBER = 26;
private long outputBytes_;
/**
*
* Total bytes output by the op (not necessarily allocated by the op).
*
*
* int64 output_bytes = 26;
*/
public long getOutputBytes() {
return outputBytes_;
}
public static final int PARAMETERS_FIELD_NUMBER = 4;
private long parameters_;
/**
*
* Number of parameters if available.
*
*
* int64 parameters = 4;
*/
public long getParameters() {
return parameters_;
}
public static final int FLOAT_OPS_FIELD_NUMBER = 13;
private long floatOps_;
/**
*
* Number of float operations.
*
*
* int64 float_ops = 13;
*/
public long getFloatOps() {
return floatOps_;
}
public static final int DEVICES_FIELD_NUMBER = 10;
private com.google.protobuf.LazyStringList devices_;
/**
*
* Device the op is assigned to.
* Since an op can fire multiple kernel calls, there can be multiple devices.
*
*
* repeated string devices = 10;
*/
public com.google.protobuf.ProtocolStringList
getDevicesList() {
return devices_;
}
/**
*
* Device the op is assigned to.
* Since an op can fire multiple kernel calls, there can be multiple devices.
*
*
* repeated string devices = 10;
*/
public int getDevicesCount() {
return devices_.size();
}
/**
*
* Device the op is assigned to.
* Since an op can fire multiple kernel calls, there can be multiple devices.
*
*
* repeated string devices = 10;
*/
public java.lang.String getDevices(int index) {
return devices_.get(index);
}
/**
*
* Device the op is assigned to.
* Since an op can fire multiple kernel calls, there can be multiple devices.
*
*
* repeated string devices = 10;
*/
public com.google.protobuf.ByteString
getDevicesBytes(int index) {
return devices_.getByteString(index);
}
public static final int TOTAL_DEFINITION_COUNT_FIELD_NUMBER = 23;
private long totalDefinitionCount_;
/**
*
* The following are the aggregated stats from all *accounted* children and
* the node itself. The actual children depend on the data structure used.
* In graph view, children are inputs recursively.
* In scope view, children are nodes under the name scope.
*
*
* int64 total_definition_count = 23;
*/
public long getTotalDefinitionCount() {
return totalDefinitionCount_;
}
public static final int TOTAL_RUN_COUNT_FIELD_NUMBER = 22;
private long totalRunCount_;
/**
* int64 total_run_count = 22;
*/
public long getTotalRunCount() {
return totalRunCount_;
}
public static final int TOTAL_EXEC_MICROS_FIELD_NUMBER = 6;
private long totalExecMicros_;
/**
* int64 total_exec_micros = 6;
*/
public long getTotalExecMicros() {
return totalExecMicros_;
}
public static final int TOTAL_ACCELERATOR_EXEC_MICROS_FIELD_NUMBER = 19;
private long totalAcceleratorExecMicros_;
/**
* int64 total_accelerator_exec_micros = 19;
*/
public long getTotalAcceleratorExecMicros() {
return totalAcceleratorExecMicros_;
}
public static final int TOTAL_CPU_EXEC_MICROS_FIELD_NUMBER = 20;
private long totalCpuExecMicros_;
/**
* int64 total_cpu_exec_micros = 20;
*/
public long getTotalCpuExecMicros() {
return totalCpuExecMicros_;
}
public static final int TOTAL_REQUESTED_BYTES_FIELD_NUMBER = 7;
private long totalRequestedBytes_;
/**
* int64 total_requested_bytes = 7;
*/
public long getTotalRequestedBytes() {
return totalRequestedBytes_;
}
public static final int TOTAL_PEAK_BYTES_FIELD_NUMBER = 27;
private long totalPeakBytes_;
/**
* int64 total_peak_bytes = 27;
*/
public long getTotalPeakBytes() {
return totalPeakBytes_;
}
public static final int TOTAL_RESIDUAL_BYTES_FIELD_NUMBER = 28;
private long totalResidualBytes_;
/**
* int64 total_residual_bytes = 28;
*/
public long getTotalResidualBytes() {
return totalResidualBytes_;
}
public static final int TOTAL_OUTPUT_BYTES_FIELD_NUMBER = 29;
private long totalOutputBytes_;
/**
* int64 total_output_bytes = 29;
*/
public long getTotalOutputBytes() {
return totalOutputBytes_;
}
public static final int TOTAL_PARAMETERS_FIELD_NUMBER = 8;
private long totalParameters_;
/**
* int64 total_parameters = 8;
*/
public long getTotalParameters() {
return totalParameters_;
}
public static final int TOTAL_FLOAT_OPS_FIELD_NUMBER = 14;
private long totalFloatOps_;
/**
* int64 total_float_ops = 14;
*/
public long getTotalFloatOps() {
return totalFloatOps_;
}
public static final int SHAPES_FIELD_NUMBER = 11;
private java.util.List shapes_;
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public java.util.List getShapesList() {
return shapes_;
}
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public java.util.List extends org.tensorflow.framework.TensorShapeProtoOrBuilder>
getShapesOrBuilderList() {
return shapes_;
}
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public int getShapesCount() {
return shapes_.size();
}
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public org.tensorflow.framework.TensorShapeProto getShapes(int index) {
return shapes_.get(index);
}
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public org.tensorflow.framework.TensorShapeProtoOrBuilder getShapesOrBuilder(
int index) {
return shapes_.get(index);
}
public static final int INPUT_SHAPES_FIELD_NUMBER = 16;
private static final class InputShapesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.Integer, org.tensorflow.framework.TensorShapeProto> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_GraphNodeProto_InputShapesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.INT32,
0,
com.google.protobuf.WireFormat.FieldType.MESSAGE,
org.tensorflow.framework.TensorShapeProto.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.Integer, org.tensorflow.framework.TensorShapeProto> inputShapes_;
private com.google.protobuf.MapField
internalGetInputShapes() {
if (inputShapes_ == null) {
return com.google.protobuf.MapField.emptyMapField(
InputShapesDefaultEntryHolder.defaultEntry);
}
return inputShapes_;
}
public int getInputShapesCount() {
return internalGetInputShapes().getMap().size();
}
/**
* map<int32, .tensorflow.TensorShapeProto> input_shapes = 16;
*/
public boolean containsInputShapes(
int key) {
return internalGetInputShapes().getMap().containsKey(key);
}
/**
* Use {@link #getInputShapesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getInputShapes() {
return getInputShapesMap();
}
/**
* map<int32, .tensorflow.TensorShapeProto> input_shapes = 16;
*/
public java.util.Map getInputShapesMap() {
return internalGetInputShapes().getMap();
}
/**
* map<int32, .tensorflow.TensorShapeProto> input_shapes = 16;
*/
public org.tensorflow.framework.TensorShapeProto getInputShapesOrDefault(
int key,
org.tensorflow.framework.TensorShapeProto defaultValue) {
java.util.Map map =
internalGetInputShapes().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<int32, .tensorflow.TensorShapeProto> input_shapes = 16;
*/
public org.tensorflow.framework.TensorShapeProto getInputShapesOrThrow(
int key) {
java.util.Map map =
internalGetInputShapes().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int CHILDREN_FIELD_NUMBER = 12;
private java.util.List children_;
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public java.util.List getChildrenList() {
return children_;
}
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public java.util.List extends tensorflow.tfprof.TfprofOutput.GraphNodeProtoOrBuilder>
getChildrenOrBuilderList() {
return children_;
}
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public int getChildrenCount() {
return children_.size();
}
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public tensorflow.tfprof.TfprofOutput.GraphNodeProto getChildren(int index) {
return children_.get(index);
}
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public tensorflow.tfprof.TfprofOutput.GraphNodeProtoOrBuilder getChildrenOrBuilder(
int index) {
return children_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (execMicros_ != 0L) {
output.writeInt64(2, execMicros_);
}
if (requestedBytes_ != 0L) {
output.writeInt64(3, requestedBytes_);
}
if (parameters_ != 0L) {
output.writeInt64(4, parameters_);
}
if (totalExecMicros_ != 0L) {
output.writeInt64(6, totalExecMicros_);
}
if (totalRequestedBytes_ != 0L) {
output.writeInt64(7, totalRequestedBytes_);
}
if (totalParameters_ != 0L) {
output.writeInt64(8, totalParameters_);
}
for (int i = 0; i < devices_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, devices_.getRaw(i));
}
for (int i = 0; i < shapes_.size(); i++) {
output.writeMessage(11, shapes_.get(i));
}
for (int i = 0; i < children_.size(); i++) {
output.writeMessage(12, children_.get(i));
}
if (floatOps_ != 0L) {
output.writeInt64(13, floatOps_);
}
if (totalFloatOps_ != 0L) {
output.writeInt64(14, totalFloatOps_);
}
if (tensorValue_ != null) {
output.writeMessage(15, getTensorValue());
}
com.google.protobuf.GeneratedMessageV3
.serializeIntegerMapTo(
output,
internalGetInputShapes(),
InputShapesDefaultEntryHolder.defaultEntry,
16);
if (acceleratorExecMicros_ != 0L) {
output.writeInt64(17, acceleratorExecMicros_);
}
if (cpuExecMicros_ != 0L) {
output.writeInt64(18, cpuExecMicros_);
}
if (totalAcceleratorExecMicros_ != 0L) {
output.writeInt64(19, totalAcceleratorExecMicros_);
}
if (totalCpuExecMicros_ != 0L) {
output.writeInt64(20, totalCpuExecMicros_);
}
if (runCount_ != 0L) {
output.writeInt64(21, runCount_);
}
if (totalRunCount_ != 0L) {
output.writeInt64(22, totalRunCount_);
}
if (totalDefinitionCount_ != 0L) {
output.writeInt64(23, totalDefinitionCount_);
}
if (peakBytes_ != 0L) {
output.writeInt64(24, peakBytes_);
}
if (residualBytes_ != 0L) {
output.writeInt64(25, residualBytes_);
}
if (outputBytes_ != 0L) {
output.writeInt64(26, outputBytes_);
}
if (totalPeakBytes_ != 0L) {
output.writeInt64(27, totalPeakBytes_);
}
if (totalResidualBytes_ != 0L) {
output.writeInt64(28, totalResidualBytes_);
}
if (totalOutputBytes_ != 0L) {
output.writeInt64(29, totalOutputBytes_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (execMicros_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, execMicros_);
}
if (requestedBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, requestedBytes_);
}
if (parameters_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, parameters_);
}
if (totalExecMicros_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, totalExecMicros_);
}
if (totalRequestedBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, totalRequestedBytes_);
}
if (totalParameters_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, totalParameters_);
}
{
int dataSize = 0;
for (int i = 0; i < devices_.size(); i++) {
dataSize += computeStringSizeNoTag(devices_.getRaw(i));
}
size += dataSize;
size += 1 * getDevicesList().size();
}
for (int i = 0; i < shapes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, shapes_.get(i));
}
for (int i = 0; i < children_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, children_.get(i));
}
if (floatOps_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(13, floatOps_);
}
if (totalFloatOps_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(14, totalFloatOps_);
}
if (tensorValue_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getTensorValue());
}
for (java.util.Map.Entry entry
: internalGetInputShapes().getMap().entrySet()) {
com.google.protobuf.MapEntry
inputShapes__ = InputShapesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, inputShapes__);
}
if (acceleratorExecMicros_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(17, acceleratorExecMicros_);
}
if (cpuExecMicros_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(18, cpuExecMicros_);
}
if (totalAcceleratorExecMicros_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(19, totalAcceleratorExecMicros_);
}
if (totalCpuExecMicros_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(20, totalCpuExecMicros_);
}
if (runCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(21, runCount_);
}
if (totalRunCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(22, totalRunCount_);
}
if (totalDefinitionCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(23, totalDefinitionCount_);
}
if (peakBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(24, peakBytes_);
}
if (residualBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(25, residualBytes_);
}
if (outputBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(26, outputBytes_);
}
if (totalPeakBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(27, totalPeakBytes_);
}
if (totalResidualBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(28, totalResidualBytes_);
}
if (totalOutputBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(29, totalOutputBytes_);
}
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 tensorflow.tfprof.TfprofOutput.GraphNodeProto)) {
return super.equals(obj);
}
tensorflow.tfprof.TfprofOutput.GraphNodeProto other = (tensorflow.tfprof.TfprofOutput.GraphNodeProto) obj;
boolean result = true;
result = result && getName()
.equals(other.getName());
result = result && (hasTensorValue() == other.hasTensorValue());
if (hasTensorValue()) {
result = result && getTensorValue()
.equals(other.getTensorValue());
}
result = result && (getRunCount()
== other.getRunCount());
result = result && (getExecMicros()
== other.getExecMicros());
result = result && (getAcceleratorExecMicros()
== other.getAcceleratorExecMicros());
result = result && (getCpuExecMicros()
== other.getCpuExecMicros());
result = result && (getRequestedBytes()
== other.getRequestedBytes());
result = result && (getPeakBytes()
== other.getPeakBytes());
result = result && (getResidualBytes()
== other.getResidualBytes());
result = result && (getOutputBytes()
== other.getOutputBytes());
result = result && (getParameters()
== other.getParameters());
result = result && (getFloatOps()
== other.getFloatOps());
result = result && getDevicesList()
.equals(other.getDevicesList());
result = result && (getTotalDefinitionCount()
== other.getTotalDefinitionCount());
result = result && (getTotalRunCount()
== other.getTotalRunCount());
result = result && (getTotalExecMicros()
== other.getTotalExecMicros());
result = result && (getTotalAcceleratorExecMicros()
== other.getTotalAcceleratorExecMicros());
result = result && (getTotalCpuExecMicros()
== other.getTotalCpuExecMicros());
result = result && (getTotalRequestedBytes()
== other.getTotalRequestedBytes());
result = result && (getTotalPeakBytes()
== other.getTotalPeakBytes());
result = result && (getTotalResidualBytes()
== other.getTotalResidualBytes());
result = result && (getTotalOutputBytes()
== other.getTotalOutputBytes());
result = result && (getTotalParameters()
== other.getTotalParameters());
result = result && (getTotalFloatOps()
== other.getTotalFloatOps());
result = result && getShapesList()
.equals(other.getShapesList());
result = result && internalGetInputShapes().equals(
other.internalGetInputShapes());
result = result && getChildrenList()
.equals(other.getChildrenList());
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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasTensorValue()) {
hash = (37 * hash) + TENSOR_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getTensorValue().hashCode();
}
hash = (37 * hash) + RUN_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRunCount());
hash = (37 * hash) + EXEC_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getExecMicros());
hash = (37 * hash) + ACCELERATOR_EXEC_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAcceleratorExecMicros());
hash = (37 * hash) + CPU_EXEC_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCpuExecMicros());
hash = (37 * hash) + REQUESTED_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRequestedBytes());
hash = (37 * hash) + PEAK_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPeakBytes());
hash = (37 * hash) + RESIDUAL_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getResidualBytes());
hash = (37 * hash) + OUTPUT_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOutputBytes());
hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getParameters());
hash = (37 * hash) + FLOAT_OPS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFloatOps());
if (getDevicesCount() > 0) {
hash = (37 * hash) + DEVICES_FIELD_NUMBER;
hash = (53 * hash) + getDevicesList().hashCode();
}
hash = (37 * hash) + TOTAL_DEFINITION_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalDefinitionCount());
hash = (37 * hash) + TOTAL_RUN_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalRunCount());
hash = (37 * hash) + TOTAL_EXEC_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalExecMicros());
hash = (37 * hash) + TOTAL_ACCELERATOR_EXEC_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalAcceleratorExecMicros());
hash = (37 * hash) + TOTAL_CPU_EXEC_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalCpuExecMicros());
hash = (37 * hash) + TOTAL_REQUESTED_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalRequestedBytes());
hash = (37 * hash) + TOTAL_PEAK_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalPeakBytes());
hash = (37 * hash) + TOTAL_RESIDUAL_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalResidualBytes());
hash = (37 * hash) + TOTAL_OUTPUT_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalOutputBytes());
hash = (37 * hash) + TOTAL_PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalParameters());
hash = (37 * hash) + TOTAL_FLOAT_OPS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalFloatOps());
if (getShapesCount() > 0) {
hash = (37 * hash) + SHAPES_FIELD_NUMBER;
hash = (53 * hash) + getShapesList().hashCode();
}
if (!internalGetInputShapes().getMap().isEmpty()) {
hash = (37 * hash) + INPUT_SHAPES_FIELD_NUMBER;
hash = (53 * hash) + internalGetInputShapes().hashCode();
}
if (getChildrenCount() > 0) {
hash = (37 * hash) + CHILDREN_FIELD_NUMBER;
hash = (53 * hash) + getChildrenList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.tfprof.TfprofOutput.GraphNodeProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.tfprof.TfprofOutput.GraphNodeProto parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.tfprof.TfprofOutput.GraphNodeProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.tfprof.TfprofOutput.GraphNodeProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.tfprof.TfprofOutput.GraphNodeProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.tfprof.TfprofOutput.GraphNodeProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.tfprof.TfprofOutput.GraphNodeProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.tfprof.TfprofOutput.GraphNodeProto 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 tensorflow.tfprof.TfprofOutput.GraphNodeProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.tfprof.TfprofOutput.GraphNodeProto 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 tensorflow.tfprof.TfprofOutput.GraphNodeProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.tfprof.TfprofOutput.GraphNodeProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tensorflow.tfprof.TfprofOutput.GraphNodeProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
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;
}
/**
*
* A node in TensorFlow graph. Used by scope/graph view.
*
*
* Protobuf type {@code tensorflow.tfprof.GraphNodeProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.tfprof.GraphNodeProto)
tensorflow.tfprof.TfprofOutput.GraphNodeProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_GraphNodeProto_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 16:
return internalGetInputShapes();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 16:
return internalGetMutableInputShapes();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_GraphNodeProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.tfprof.TfprofOutput.GraphNodeProto.class, tensorflow.tfprof.TfprofOutput.GraphNodeProto.Builder.class);
}
// Construct using tensorflow.tfprof.TfprofOutput.GraphNodeProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getShapesFieldBuilder();
getChildrenFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
if (tensorValueBuilder_ == null) {
tensorValue_ = null;
} else {
tensorValue_ = null;
tensorValueBuilder_ = null;
}
runCount_ = 0L;
execMicros_ = 0L;
acceleratorExecMicros_ = 0L;
cpuExecMicros_ = 0L;
requestedBytes_ = 0L;
peakBytes_ = 0L;
residualBytes_ = 0L;
outputBytes_ = 0L;
parameters_ = 0L;
floatOps_ = 0L;
devices_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00001000);
totalDefinitionCount_ = 0L;
totalRunCount_ = 0L;
totalExecMicros_ = 0L;
totalAcceleratorExecMicros_ = 0L;
totalCpuExecMicros_ = 0L;
totalRequestedBytes_ = 0L;
totalPeakBytes_ = 0L;
totalResidualBytes_ = 0L;
totalOutputBytes_ = 0L;
totalParameters_ = 0L;
totalFloatOps_ = 0L;
if (shapesBuilder_ == null) {
shapes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x01000000);
} else {
shapesBuilder_.clear();
}
internalGetMutableInputShapes().clear();
if (childrenBuilder_ == null) {
children_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x04000000);
} else {
childrenBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_GraphNodeProto_descriptor;
}
@java.lang.Override
public tensorflow.tfprof.TfprofOutput.GraphNodeProto getDefaultInstanceForType() {
return tensorflow.tfprof.TfprofOutput.GraphNodeProto.getDefaultInstance();
}
@java.lang.Override
public tensorflow.tfprof.TfprofOutput.GraphNodeProto build() {
tensorflow.tfprof.TfprofOutput.GraphNodeProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.tfprof.TfprofOutput.GraphNodeProto buildPartial() {
tensorflow.tfprof.TfprofOutput.GraphNodeProto result = new tensorflow.tfprof.TfprofOutput.GraphNodeProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.name_ = name_;
if (tensorValueBuilder_ == null) {
result.tensorValue_ = tensorValue_;
} else {
result.tensorValue_ = tensorValueBuilder_.build();
}
result.runCount_ = runCount_;
result.execMicros_ = execMicros_;
result.acceleratorExecMicros_ = acceleratorExecMicros_;
result.cpuExecMicros_ = cpuExecMicros_;
result.requestedBytes_ = requestedBytes_;
result.peakBytes_ = peakBytes_;
result.residualBytes_ = residualBytes_;
result.outputBytes_ = outputBytes_;
result.parameters_ = parameters_;
result.floatOps_ = floatOps_;
if (((bitField0_ & 0x00001000) == 0x00001000)) {
devices_ = devices_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00001000);
}
result.devices_ = devices_;
result.totalDefinitionCount_ = totalDefinitionCount_;
result.totalRunCount_ = totalRunCount_;
result.totalExecMicros_ = totalExecMicros_;
result.totalAcceleratorExecMicros_ = totalAcceleratorExecMicros_;
result.totalCpuExecMicros_ = totalCpuExecMicros_;
result.totalRequestedBytes_ = totalRequestedBytes_;
result.totalPeakBytes_ = totalPeakBytes_;
result.totalResidualBytes_ = totalResidualBytes_;
result.totalOutputBytes_ = totalOutputBytes_;
result.totalParameters_ = totalParameters_;
result.totalFloatOps_ = totalFloatOps_;
if (shapesBuilder_ == null) {
if (((bitField0_ & 0x01000000) == 0x01000000)) {
shapes_ = java.util.Collections.unmodifiableList(shapes_);
bitField0_ = (bitField0_ & ~0x01000000);
}
result.shapes_ = shapes_;
} else {
result.shapes_ = shapesBuilder_.build();
}
result.inputShapes_ = internalGetInputShapes();
result.inputShapes_.makeImmutable();
if (childrenBuilder_ == null) {
if (((bitField0_ & 0x04000000) == 0x04000000)) {
children_ = java.util.Collections.unmodifiableList(children_);
bitField0_ = (bitField0_ & ~0x04000000);
}
result.children_ = children_;
} else {
result.children_ = childrenBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tensorflow.tfprof.TfprofOutput.GraphNodeProto) {
return mergeFrom((tensorflow.tfprof.TfprofOutput.GraphNodeProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.tfprof.TfprofOutput.GraphNodeProto other) {
if (other == tensorflow.tfprof.TfprofOutput.GraphNodeProto.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.hasTensorValue()) {
mergeTensorValue(other.getTensorValue());
}
if (other.getRunCount() != 0L) {
setRunCount(other.getRunCount());
}
if (other.getExecMicros() != 0L) {
setExecMicros(other.getExecMicros());
}
if (other.getAcceleratorExecMicros() != 0L) {
setAcceleratorExecMicros(other.getAcceleratorExecMicros());
}
if (other.getCpuExecMicros() != 0L) {
setCpuExecMicros(other.getCpuExecMicros());
}
if (other.getRequestedBytes() != 0L) {
setRequestedBytes(other.getRequestedBytes());
}
if (other.getPeakBytes() != 0L) {
setPeakBytes(other.getPeakBytes());
}
if (other.getResidualBytes() != 0L) {
setResidualBytes(other.getResidualBytes());
}
if (other.getOutputBytes() != 0L) {
setOutputBytes(other.getOutputBytes());
}
if (other.getParameters() != 0L) {
setParameters(other.getParameters());
}
if (other.getFloatOps() != 0L) {
setFloatOps(other.getFloatOps());
}
if (!other.devices_.isEmpty()) {
if (devices_.isEmpty()) {
devices_ = other.devices_;
bitField0_ = (bitField0_ & ~0x00001000);
} else {
ensureDevicesIsMutable();
devices_.addAll(other.devices_);
}
onChanged();
}
if (other.getTotalDefinitionCount() != 0L) {
setTotalDefinitionCount(other.getTotalDefinitionCount());
}
if (other.getTotalRunCount() != 0L) {
setTotalRunCount(other.getTotalRunCount());
}
if (other.getTotalExecMicros() != 0L) {
setTotalExecMicros(other.getTotalExecMicros());
}
if (other.getTotalAcceleratorExecMicros() != 0L) {
setTotalAcceleratorExecMicros(other.getTotalAcceleratorExecMicros());
}
if (other.getTotalCpuExecMicros() != 0L) {
setTotalCpuExecMicros(other.getTotalCpuExecMicros());
}
if (other.getTotalRequestedBytes() != 0L) {
setTotalRequestedBytes(other.getTotalRequestedBytes());
}
if (other.getTotalPeakBytes() != 0L) {
setTotalPeakBytes(other.getTotalPeakBytes());
}
if (other.getTotalResidualBytes() != 0L) {
setTotalResidualBytes(other.getTotalResidualBytes());
}
if (other.getTotalOutputBytes() != 0L) {
setTotalOutputBytes(other.getTotalOutputBytes());
}
if (other.getTotalParameters() != 0L) {
setTotalParameters(other.getTotalParameters());
}
if (other.getTotalFloatOps() != 0L) {
setTotalFloatOps(other.getTotalFloatOps());
}
if (shapesBuilder_ == null) {
if (!other.shapes_.isEmpty()) {
if (shapes_.isEmpty()) {
shapes_ = other.shapes_;
bitField0_ = (bitField0_ & ~0x01000000);
} else {
ensureShapesIsMutable();
shapes_.addAll(other.shapes_);
}
onChanged();
}
} else {
if (!other.shapes_.isEmpty()) {
if (shapesBuilder_.isEmpty()) {
shapesBuilder_.dispose();
shapesBuilder_ = null;
shapes_ = other.shapes_;
bitField0_ = (bitField0_ & ~0x01000000);
shapesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getShapesFieldBuilder() : null;
} else {
shapesBuilder_.addAllMessages(other.shapes_);
}
}
}
internalGetMutableInputShapes().mergeFrom(
other.internalGetInputShapes());
if (childrenBuilder_ == null) {
if (!other.children_.isEmpty()) {
if (children_.isEmpty()) {
children_ = other.children_;
bitField0_ = (bitField0_ & ~0x04000000);
} else {
ensureChildrenIsMutable();
children_.addAll(other.children_);
}
onChanged();
}
} else {
if (!other.children_.isEmpty()) {
if (childrenBuilder_.isEmpty()) {
childrenBuilder_.dispose();
childrenBuilder_ = null;
children_ = other.children_;
bitField0_ = (bitField0_ & ~0x04000000);
childrenBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getChildrenFieldBuilder() : null;
} else {
childrenBuilder_.addAllMessages(other.children_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
tensorflow.tfprof.TfprofOutput.GraphNodeProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.tfprof.TfprofOutput.GraphNodeProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* op name.
*
*
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* op name.
*
*
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* op name.
*
*
* string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* op name.
*
*
* string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* op name.
*
*
* string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private tensorflow.tfprof.TfprofOutput.TFProfTensorProto tensorValue_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.tfprof.TfprofOutput.TFProfTensorProto, tensorflow.tfprof.TfprofOutput.TFProfTensorProto.Builder, tensorflow.tfprof.TfprofOutput.TFProfTensorProtoOrBuilder> tensorValueBuilder_;
/**
*
* tensor value restored from checkpoint.
*
*
* .tensorflow.tfprof.TFProfTensorProto tensor_value = 15;
*/
public boolean hasTensorValue() {
return tensorValueBuilder_ != null || tensorValue_ != null;
}
/**
*
* tensor value restored from checkpoint.
*
*
* .tensorflow.tfprof.TFProfTensorProto tensor_value = 15;
*/
public tensorflow.tfprof.TfprofOutput.TFProfTensorProto getTensorValue() {
if (tensorValueBuilder_ == null) {
return tensorValue_ == null ? tensorflow.tfprof.TfprofOutput.TFProfTensorProto.getDefaultInstance() : tensorValue_;
} else {
return tensorValueBuilder_.getMessage();
}
}
/**
*
* tensor value restored from checkpoint.
*
*
* .tensorflow.tfprof.TFProfTensorProto tensor_value = 15;
*/
public Builder setTensorValue(tensorflow.tfprof.TfprofOutput.TFProfTensorProto value) {
if (tensorValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tensorValue_ = value;
onChanged();
} else {
tensorValueBuilder_.setMessage(value);
}
return this;
}
/**
*
* tensor value restored from checkpoint.
*
*
* .tensorflow.tfprof.TFProfTensorProto tensor_value = 15;
*/
public Builder setTensorValue(
tensorflow.tfprof.TfprofOutput.TFProfTensorProto.Builder builderForValue) {
if (tensorValueBuilder_ == null) {
tensorValue_ = builderForValue.build();
onChanged();
} else {
tensorValueBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* tensor value restored from checkpoint.
*
*
* .tensorflow.tfprof.TFProfTensorProto tensor_value = 15;
*/
public Builder mergeTensorValue(tensorflow.tfprof.TfprofOutput.TFProfTensorProto value) {
if (tensorValueBuilder_ == null) {
if (tensorValue_ != null) {
tensorValue_ =
tensorflow.tfprof.TfprofOutput.TFProfTensorProto.newBuilder(tensorValue_).mergeFrom(value).buildPartial();
} else {
tensorValue_ = value;
}
onChanged();
} else {
tensorValueBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* tensor value restored from checkpoint.
*
*
* .tensorflow.tfprof.TFProfTensorProto tensor_value = 15;
*/
public Builder clearTensorValue() {
if (tensorValueBuilder_ == null) {
tensorValue_ = null;
onChanged();
} else {
tensorValue_ = null;
tensorValueBuilder_ = null;
}
return this;
}
/**
*
* tensor value restored from checkpoint.
*
*
* .tensorflow.tfprof.TFProfTensorProto tensor_value = 15;
*/
public tensorflow.tfprof.TfprofOutput.TFProfTensorProto.Builder getTensorValueBuilder() {
onChanged();
return getTensorValueFieldBuilder().getBuilder();
}
/**
*
* tensor value restored from checkpoint.
*
*
* .tensorflow.tfprof.TFProfTensorProto tensor_value = 15;
*/
public tensorflow.tfprof.TfprofOutput.TFProfTensorProtoOrBuilder getTensorValueOrBuilder() {
if (tensorValueBuilder_ != null) {
return tensorValueBuilder_.getMessageOrBuilder();
} else {
return tensorValue_ == null ?
tensorflow.tfprof.TfprofOutput.TFProfTensorProto.getDefaultInstance() : tensorValue_;
}
}
/**
*
* tensor value restored from checkpoint.
*
*
* .tensorflow.tfprof.TFProfTensorProto tensor_value = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.tfprof.TfprofOutput.TFProfTensorProto, tensorflow.tfprof.TfprofOutput.TFProfTensorProto.Builder, tensorflow.tfprof.TfprofOutput.TFProfTensorProtoOrBuilder>
getTensorValueFieldBuilder() {
if (tensorValueBuilder_ == null) {
tensorValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tensorflow.tfprof.TfprofOutput.TFProfTensorProto, tensorflow.tfprof.TfprofOutput.TFProfTensorProto.Builder, tensorflow.tfprof.TfprofOutput.TFProfTensorProtoOrBuilder>(
getTensorValue(),
getParentForChildren(),
isClean());
tensorValue_ = null;
}
return tensorValueBuilder_;
}
private long runCount_ ;
/**
*
* op execution time.
* A node can be defined once but run multiple times in tf.while_loop.
* the times sum up all different runs.
*
*
* int64 run_count = 21;
*/
public long getRunCount() {
return runCount_;
}
/**
*
* op execution time.
* A node can be defined once but run multiple times in tf.while_loop.
* the times sum up all different runs.
*
*
* int64 run_count = 21;
*/
public Builder setRunCount(long value) {
runCount_ = value;
onChanged();
return this;
}
/**
*
* op execution time.
* A node can be defined once but run multiple times in tf.while_loop.
* the times sum up all different runs.
*
*
* int64 run_count = 21;
*/
public Builder clearRunCount() {
runCount_ = 0L;
onChanged();
return this;
}
private long execMicros_ ;
/**
* int64 exec_micros = 2;
*/
public long getExecMicros() {
return execMicros_;
}
/**
* int64 exec_micros = 2;
*/
public Builder setExecMicros(long value) {
execMicros_ = value;
onChanged();
return this;
}
/**
* int64 exec_micros = 2;
*/
public Builder clearExecMicros() {
execMicros_ = 0L;
onChanged();
return this;
}
private long acceleratorExecMicros_ ;
/**
* int64 accelerator_exec_micros = 17;
*/
public long getAcceleratorExecMicros() {
return acceleratorExecMicros_;
}
/**
* int64 accelerator_exec_micros = 17;
*/
public Builder setAcceleratorExecMicros(long value) {
acceleratorExecMicros_ = value;
onChanged();
return this;
}
/**
* int64 accelerator_exec_micros = 17;
*/
public Builder clearAcceleratorExecMicros() {
acceleratorExecMicros_ = 0L;
onChanged();
return this;
}
private long cpuExecMicros_ ;
/**
* int64 cpu_exec_micros = 18;
*/
public long getCpuExecMicros() {
return cpuExecMicros_;
}
/**
* int64 cpu_exec_micros = 18;
*/
public Builder setCpuExecMicros(long value) {
cpuExecMicros_ = value;
onChanged();
return this;
}
/**
* int64 cpu_exec_micros = 18;
*/
public Builder clearCpuExecMicros() {
cpuExecMicros_ = 0L;
onChanged();
return this;
}
private long requestedBytes_ ;
/**
*
* Total bytes requested by the op.
*
*
* int64 requested_bytes = 3;
*/
public long getRequestedBytes() {
return requestedBytes_;
}
/**
*
* Total bytes requested by the op.
*
*
* int64 requested_bytes = 3;
*/
public Builder setRequestedBytes(long value) {
requestedBytes_ = value;
onChanged();
return this;
}
/**
*
* Total bytes requested by the op.
*
*
* int64 requested_bytes = 3;
*/
public Builder clearRequestedBytes() {
requestedBytes_ = 0L;
onChanged();
return this;
}
private long peakBytes_ ;
/**
*
* Max bytes allocated and being used by the op at a point.
*
*
* int64 peak_bytes = 24;
*/
public long getPeakBytes() {
return peakBytes_;
}
/**
*
* Max bytes allocated and being used by the op at a point.
*
*
* int64 peak_bytes = 24;
*/
public Builder setPeakBytes(long value) {
peakBytes_ = value;
onChanged();
return this;
}
/**
*
* Max bytes allocated and being used by the op at a point.
*
*
* int64 peak_bytes = 24;
*/
public Builder clearPeakBytes() {
peakBytes_ = 0L;
onChanged();
return this;
}
private long residualBytes_ ;
/**
*
* Total bytes requested by the op and not released before end.
*
*
* int64 residual_bytes = 25;
*/
public long getResidualBytes() {
return residualBytes_;
}
/**
*
* Total bytes requested by the op and not released before end.
*
*
* int64 residual_bytes = 25;
*/
public Builder setResidualBytes(long value) {
residualBytes_ = value;
onChanged();
return this;
}
/**
*
* Total bytes requested by the op and not released before end.
*
*
* int64 residual_bytes = 25;
*/
public Builder clearResidualBytes() {
residualBytes_ = 0L;
onChanged();
return this;
}
private long outputBytes_ ;
/**
*
* Total bytes output by the op (not necessarily allocated by the op).
*
*
* int64 output_bytes = 26;
*/
public long getOutputBytes() {
return outputBytes_;
}
/**
*
* Total bytes output by the op (not necessarily allocated by the op).
*
*
* int64 output_bytes = 26;
*/
public Builder setOutputBytes(long value) {
outputBytes_ = value;
onChanged();
return this;
}
/**
*
* Total bytes output by the op (not necessarily allocated by the op).
*
*
* int64 output_bytes = 26;
*/
public Builder clearOutputBytes() {
outputBytes_ = 0L;
onChanged();
return this;
}
private long parameters_ ;
/**
*
* Number of parameters if available.
*
*
* int64 parameters = 4;
*/
public long getParameters() {
return parameters_;
}
/**
*
* Number of parameters if available.
*
*
* int64 parameters = 4;
*/
public Builder setParameters(long value) {
parameters_ = value;
onChanged();
return this;
}
/**
*
* Number of parameters if available.
*
*
* int64 parameters = 4;
*/
public Builder clearParameters() {
parameters_ = 0L;
onChanged();
return this;
}
private long floatOps_ ;
/**
*
* Number of float operations.
*
*
* int64 float_ops = 13;
*/
public long getFloatOps() {
return floatOps_;
}
/**
*
* Number of float operations.
*
*
* int64 float_ops = 13;
*/
public Builder setFloatOps(long value) {
floatOps_ = value;
onChanged();
return this;
}
/**
*
* Number of float operations.
*
*
* int64 float_ops = 13;
*/
public Builder clearFloatOps() {
floatOps_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList devices_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureDevicesIsMutable() {
if (!((bitField0_ & 0x00001000) == 0x00001000)) {
devices_ = new com.google.protobuf.LazyStringArrayList(devices_);
bitField0_ |= 0x00001000;
}
}
/**
*
* Device the op is assigned to.
* Since an op can fire multiple kernel calls, there can be multiple devices.
*
*
* repeated string devices = 10;
*/
public com.google.protobuf.ProtocolStringList
getDevicesList() {
return devices_.getUnmodifiableView();
}
/**
*
* Device the op is assigned to.
* Since an op can fire multiple kernel calls, there can be multiple devices.
*
*
* repeated string devices = 10;
*/
public int getDevicesCount() {
return devices_.size();
}
/**
*
* Device the op is assigned to.
* Since an op can fire multiple kernel calls, there can be multiple devices.
*
*
* repeated string devices = 10;
*/
public java.lang.String getDevices(int index) {
return devices_.get(index);
}
/**
*
* Device the op is assigned to.
* Since an op can fire multiple kernel calls, there can be multiple devices.
*
*
* repeated string devices = 10;
*/
public com.google.protobuf.ByteString
getDevicesBytes(int index) {
return devices_.getByteString(index);
}
/**
*
* Device the op is assigned to.
* Since an op can fire multiple kernel calls, there can be multiple devices.
*
*
* repeated string devices = 10;
*/
public Builder setDevices(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDevicesIsMutable();
devices_.set(index, value);
onChanged();
return this;
}
/**
*
* Device the op is assigned to.
* Since an op can fire multiple kernel calls, there can be multiple devices.
*
*
* repeated string devices = 10;
*/
public Builder addDevices(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDevicesIsMutable();
devices_.add(value);
onChanged();
return this;
}
/**
*
* Device the op is assigned to.
* Since an op can fire multiple kernel calls, there can be multiple devices.
*
*
* repeated string devices = 10;
*/
public Builder addAllDevices(
java.lang.Iterable values) {
ensureDevicesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, devices_);
onChanged();
return this;
}
/**
*
* Device the op is assigned to.
* Since an op can fire multiple kernel calls, there can be multiple devices.
*
*
* repeated string devices = 10;
*/
public Builder clearDevices() {
devices_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
/**
*
* Device the op is assigned to.
* Since an op can fire multiple kernel calls, there can be multiple devices.
*
*
* repeated string devices = 10;
*/
public Builder addDevicesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureDevicesIsMutable();
devices_.add(value);
onChanged();
return this;
}
private long totalDefinitionCount_ ;
/**
*
* The following are the aggregated stats from all *accounted* children and
* the node itself. The actual children depend on the data structure used.
* In graph view, children are inputs recursively.
* In scope view, children are nodes under the name scope.
*
*
* int64 total_definition_count = 23;
*/
public long getTotalDefinitionCount() {
return totalDefinitionCount_;
}
/**
*
* The following are the aggregated stats from all *accounted* children and
* the node itself. The actual children depend on the data structure used.
* In graph view, children are inputs recursively.
* In scope view, children are nodes under the name scope.
*
*
* int64 total_definition_count = 23;
*/
public Builder setTotalDefinitionCount(long value) {
totalDefinitionCount_ = value;
onChanged();
return this;
}
/**
*
* The following are the aggregated stats from all *accounted* children and
* the node itself. The actual children depend on the data structure used.
* In graph view, children are inputs recursively.
* In scope view, children are nodes under the name scope.
*
*
* int64 total_definition_count = 23;
*/
public Builder clearTotalDefinitionCount() {
totalDefinitionCount_ = 0L;
onChanged();
return this;
}
private long totalRunCount_ ;
/**
* int64 total_run_count = 22;
*/
public long getTotalRunCount() {
return totalRunCount_;
}
/**
* int64 total_run_count = 22;
*/
public Builder setTotalRunCount(long value) {
totalRunCount_ = value;
onChanged();
return this;
}
/**
* int64 total_run_count = 22;
*/
public Builder clearTotalRunCount() {
totalRunCount_ = 0L;
onChanged();
return this;
}
private long totalExecMicros_ ;
/**
* int64 total_exec_micros = 6;
*/
public long getTotalExecMicros() {
return totalExecMicros_;
}
/**
* int64 total_exec_micros = 6;
*/
public Builder setTotalExecMicros(long value) {
totalExecMicros_ = value;
onChanged();
return this;
}
/**
* int64 total_exec_micros = 6;
*/
public Builder clearTotalExecMicros() {
totalExecMicros_ = 0L;
onChanged();
return this;
}
private long totalAcceleratorExecMicros_ ;
/**
* int64 total_accelerator_exec_micros = 19;
*/
public long getTotalAcceleratorExecMicros() {
return totalAcceleratorExecMicros_;
}
/**
* int64 total_accelerator_exec_micros = 19;
*/
public Builder setTotalAcceleratorExecMicros(long value) {
totalAcceleratorExecMicros_ = value;
onChanged();
return this;
}
/**
* int64 total_accelerator_exec_micros = 19;
*/
public Builder clearTotalAcceleratorExecMicros() {
totalAcceleratorExecMicros_ = 0L;
onChanged();
return this;
}
private long totalCpuExecMicros_ ;
/**
* int64 total_cpu_exec_micros = 20;
*/
public long getTotalCpuExecMicros() {
return totalCpuExecMicros_;
}
/**
* int64 total_cpu_exec_micros = 20;
*/
public Builder setTotalCpuExecMicros(long value) {
totalCpuExecMicros_ = value;
onChanged();
return this;
}
/**
* int64 total_cpu_exec_micros = 20;
*/
public Builder clearTotalCpuExecMicros() {
totalCpuExecMicros_ = 0L;
onChanged();
return this;
}
private long totalRequestedBytes_ ;
/**
* int64 total_requested_bytes = 7;
*/
public long getTotalRequestedBytes() {
return totalRequestedBytes_;
}
/**
* int64 total_requested_bytes = 7;
*/
public Builder setTotalRequestedBytes(long value) {
totalRequestedBytes_ = value;
onChanged();
return this;
}
/**
* int64 total_requested_bytes = 7;
*/
public Builder clearTotalRequestedBytes() {
totalRequestedBytes_ = 0L;
onChanged();
return this;
}
private long totalPeakBytes_ ;
/**
* int64 total_peak_bytes = 27;
*/
public long getTotalPeakBytes() {
return totalPeakBytes_;
}
/**
* int64 total_peak_bytes = 27;
*/
public Builder setTotalPeakBytes(long value) {
totalPeakBytes_ = value;
onChanged();
return this;
}
/**
* int64 total_peak_bytes = 27;
*/
public Builder clearTotalPeakBytes() {
totalPeakBytes_ = 0L;
onChanged();
return this;
}
private long totalResidualBytes_ ;
/**
* int64 total_residual_bytes = 28;
*/
public long getTotalResidualBytes() {
return totalResidualBytes_;
}
/**
* int64 total_residual_bytes = 28;
*/
public Builder setTotalResidualBytes(long value) {
totalResidualBytes_ = value;
onChanged();
return this;
}
/**
* int64 total_residual_bytes = 28;
*/
public Builder clearTotalResidualBytes() {
totalResidualBytes_ = 0L;
onChanged();
return this;
}
private long totalOutputBytes_ ;
/**
* int64 total_output_bytes = 29;
*/
public long getTotalOutputBytes() {
return totalOutputBytes_;
}
/**
* int64 total_output_bytes = 29;
*/
public Builder setTotalOutputBytes(long value) {
totalOutputBytes_ = value;
onChanged();
return this;
}
/**
* int64 total_output_bytes = 29;
*/
public Builder clearTotalOutputBytes() {
totalOutputBytes_ = 0L;
onChanged();
return this;
}
private long totalParameters_ ;
/**
* int64 total_parameters = 8;
*/
public long getTotalParameters() {
return totalParameters_;
}
/**
* int64 total_parameters = 8;
*/
public Builder setTotalParameters(long value) {
totalParameters_ = value;
onChanged();
return this;
}
/**
* int64 total_parameters = 8;
*/
public Builder clearTotalParameters() {
totalParameters_ = 0L;
onChanged();
return this;
}
private long totalFloatOps_ ;
/**
* int64 total_float_ops = 14;
*/
public long getTotalFloatOps() {
return totalFloatOps_;
}
/**
* int64 total_float_ops = 14;
*/
public Builder setTotalFloatOps(long value) {
totalFloatOps_ = value;
onChanged();
return this;
}
/**
* int64 total_float_ops = 14;
*/
public Builder clearTotalFloatOps() {
totalFloatOps_ = 0L;
onChanged();
return this;
}
private java.util.List shapes_ =
java.util.Collections.emptyList();
private void ensureShapesIsMutable() {
if (!((bitField0_ & 0x01000000) == 0x01000000)) {
shapes_ = new java.util.ArrayList(shapes_);
bitField0_ |= 0x01000000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.TensorShapeProto, org.tensorflow.framework.TensorShapeProto.Builder, org.tensorflow.framework.TensorShapeProtoOrBuilder> shapesBuilder_;
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public java.util.List getShapesList() {
if (shapesBuilder_ == null) {
return java.util.Collections.unmodifiableList(shapes_);
} else {
return shapesBuilder_.getMessageList();
}
}
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public int getShapesCount() {
if (shapesBuilder_ == null) {
return shapes_.size();
} else {
return shapesBuilder_.getCount();
}
}
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public org.tensorflow.framework.TensorShapeProto getShapes(int index) {
if (shapesBuilder_ == null) {
return shapes_.get(index);
} else {
return shapesBuilder_.getMessage(index);
}
}
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public Builder setShapes(
int index, org.tensorflow.framework.TensorShapeProto value) {
if (shapesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureShapesIsMutable();
shapes_.set(index, value);
onChanged();
} else {
shapesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public Builder setShapes(
int index, org.tensorflow.framework.TensorShapeProto.Builder builderForValue) {
if (shapesBuilder_ == null) {
ensureShapesIsMutable();
shapes_.set(index, builderForValue.build());
onChanged();
} else {
shapesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public Builder addShapes(org.tensorflow.framework.TensorShapeProto value) {
if (shapesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureShapesIsMutable();
shapes_.add(value);
onChanged();
} else {
shapesBuilder_.addMessage(value);
}
return this;
}
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public Builder addShapes(
int index, org.tensorflow.framework.TensorShapeProto value) {
if (shapesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureShapesIsMutable();
shapes_.add(index, value);
onChanged();
} else {
shapesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public Builder addShapes(
org.tensorflow.framework.TensorShapeProto.Builder builderForValue) {
if (shapesBuilder_ == null) {
ensureShapesIsMutable();
shapes_.add(builderForValue.build());
onChanged();
} else {
shapesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public Builder addShapes(
int index, org.tensorflow.framework.TensorShapeProto.Builder builderForValue) {
if (shapesBuilder_ == null) {
ensureShapesIsMutable();
shapes_.add(index, builderForValue.build());
onChanged();
} else {
shapesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public Builder addAllShapes(
java.lang.Iterable extends org.tensorflow.framework.TensorShapeProto> values) {
if (shapesBuilder_ == null) {
ensureShapesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, shapes_);
onChanged();
} else {
shapesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public Builder clearShapes() {
if (shapesBuilder_ == null) {
shapes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x01000000);
onChanged();
} else {
shapesBuilder_.clear();
}
return this;
}
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public Builder removeShapes(int index) {
if (shapesBuilder_ == null) {
ensureShapesIsMutable();
shapes_.remove(index);
onChanged();
} else {
shapesBuilder_.remove(index);
}
return this;
}
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public org.tensorflow.framework.TensorShapeProto.Builder getShapesBuilder(
int index) {
return getShapesFieldBuilder().getBuilder(index);
}
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public org.tensorflow.framework.TensorShapeProtoOrBuilder getShapesOrBuilder(
int index) {
if (shapesBuilder_ == null) {
return shapes_.get(index); } else {
return shapesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public java.util.List extends org.tensorflow.framework.TensorShapeProtoOrBuilder>
getShapesOrBuilderList() {
if (shapesBuilder_ != null) {
return shapesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(shapes_);
}
}
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public org.tensorflow.framework.TensorShapeProto.Builder addShapesBuilder() {
return getShapesFieldBuilder().addBuilder(
org.tensorflow.framework.TensorShapeProto.getDefaultInstance());
}
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public org.tensorflow.framework.TensorShapeProto.Builder addShapesBuilder(
int index) {
return getShapesFieldBuilder().addBuilder(
index, org.tensorflow.framework.TensorShapeProto.getDefaultInstance());
}
/**
*
* shape information, if available.
* TODO(xpan): Why is this repeated?
*
*
* repeated .tensorflow.TensorShapeProto shapes = 11;
*/
public java.util.List
getShapesBuilderList() {
return getShapesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.TensorShapeProto, org.tensorflow.framework.TensorShapeProto.Builder, org.tensorflow.framework.TensorShapeProtoOrBuilder>
getShapesFieldBuilder() {
if (shapesBuilder_ == null) {
shapesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.TensorShapeProto, org.tensorflow.framework.TensorShapeProto.Builder, org.tensorflow.framework.TensorShapeProtoOrBuilder>(
shapes_,
((bitField0_ & 0x01000000) == 0x01000000),
getParentForChildren(),
isClean());
shapes_ = null;
}
return shapesBuilder_;
}
private com.google.protobuf.MapField<
java.lang.Integer, org.tensorflow.framework.TensorShapeProto> inputShapes_;
private com.google.protobuf.MapField
internalGetInputShapes() {
if (inputShapes_ == null) {
return com.google.protobuf.MapField.emptyMapField(
InputShapesDefaultEntryHolder.defaultEntry);
}
return inputShapes_;
}
private com.google.protobuf.MapField
internalGetMutableInputShapes() {
onChanged();;
if (inputShapes_ == null) {
inputShapes_ = com.google.protobuf.MapField.newMapField(
InputShapesDefaultEntryHolder.defaultEntry);
}
if (!inputShapes_.isMutable()) {
inputShapes_ = inputShapes_.copy();
}
return inputShapes_;
}
public int getInputShapesCount() {
return internalGetInputShapes().getMap().size();
}
/**
* map<int32, .tensorflow.TensorShapeProto> input_shapes = 16;
*/
public boolean containsInputShapes(
int key) {
return internalGetInputShapes().getMap().containsKey(key);
}
/**
* Use {@link #getInputShapesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getInputShapes() {
return getInputShapesMap();
}
/**
* map<int32, .tensorflow.TensorShapeProto> input_shapes = 16;
*/
public java.util.Map getInputShapesMap() {
return internalGetInputShapes().getMap();
}
/**
* map<int32, .tensorflow.TensorShapeProto> input_shapes = 16;
*/
public org.tensorflow.framework.TensorShapeProto getInputShapesOrDefault(
int key,
org.tensorflow.framework.TensorShapeProto defaultValue) {
java.util.Map map =
internalGetInputShapes().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<int32, .tensorflow.TensorShapeProto> input_shapes = 16;
*/
public org.tensorflow.framework.TensorShapeProto getInputShapesOrThrow(
int key) {
java.util.Map map =
internalGetInputShapes().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearInputShapes() {
internalGetMutableInputShapes().getMutableMap()
.clear();
return this;
}
/**
* map<int32, .tensorflow.TensorShapeProto> input_shapes = 16;
*/
public Builder removeInputShapes(
int key) {
internalGetMutableInputShapes().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableInputShapes() {
return internalGetMutableInputShapes().getMutableMap();
}
/**
* map<int32, .tensorflow.TensorShapeProto> input_shapes = 16;
*/
public Builder putInputShapes(
int key,
org.tensorflow.framework.TensorShapeProto value) {
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableInputShapes().getMutableMap()
.put(key, value);
return this;
}
/**
* map<int32, .tensorflow.TensorShapeProto> input_shapes = 16;
*/
public Builder putAllInputShapes(
java.util.Map values) {
internalGetMutableInputShapes().getMutableMap()
.putAll(values);
return this;
}
private java.util.List children_ =
java.util.Collections.emptyList();
private void ensureChildrenIsMutable() {
if (!((bitField0_ & 0x04000000) == 0x04000000)) {
children_ = new java.util.ArrayList(children_);
bitField0_ |= 0x04000000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.tfprof.TfprofOutput.GraphNodeProto, tensorflow.tfprof.TfprofOutput.GraphNodeProto.Builder, tensorflow.tfprof.TfprofOutput.GraphNodeProtoOrBuilder> childrenBuilder_;
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public java.util.List getChildrenList() {
if (childrenBuilder_ == null) {
return java.util.Collections.unmodifiableList(children_);
} else {
return childrenBuilder_.getMessageList();
}
}
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public int getChildrenCount() {
if (childrenBuilder_ == null) {
return children_.size();
} else {
return childrenBuilder_.getCount();
}
}
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public tensorflow.tfprof.TfprofOutput.GraphNodeProto getChildren(int index) {
if (childrenBuilder_ == null) {
return children_.get(index);
} else {
return childrenBuilder_.getMessage(index);
}
}
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public Builder setChildren(
int index, tensorflow.tfprof.TfprofOutput.GraphNodeProto value) {
if (childrenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildrenIsMutable();
children_.set(index, value);
onChanged();
} else {
childrenBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public Builder setChildren(
int index, tensorflow.tfprof.TfprofOutput.GraphNodeProto.Builder builderForValue) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
children_.set(index, builderForValue.build());
onChanged();
} else {
childrenBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public Builder addChildren(tensorflow.tfprof.TfprofOutput.GraphNodeProto value) {
if (childrenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildrenIsMutable();
children_.add(value);
onChanged();
} else {
childrenBuilder_.addMessage(value);
}
return this;
}
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public Builder addChildren(
int index, tensorflow.tfprof.TfprofOutput.GraphNodeProto value) {
if (childrenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildrenIsMutable();
children_.add(index, value);
onChanged();
} else {
childrenBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public Builder addChildren(
tensorflow.tfprof.TfprofOutput.GraphNodeProto.Builder builderForValue) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
children_.add(builderForValue.build());
onChanged();
} else {
childrenBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public Builder addChildren(
int index, tensorflow.tfprof.TfprofOutput.GraphNodeProto.Builder builderForValue) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
children_.add(index, builderForValue.build());
onChanged();
} else {
childrenBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public Builder addAllChildren(
java.lang.Iterable extends tensorflow.tfprof.TfprofOutput.GraphNodeProto> values) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, children_);
onChanged();
} else {
childrenBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public Builder clearChildren() {
if (childrenBuilder_ == null) {
children_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x04000000);
onChanged();
} else {
childrenBuilder_.clear();
}
return this;
}
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public Builder removeChildren(int index) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
children_.remove(index);
onChanged();
} else {
childrenBuilder_.remove(index);
}
return this;
}
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public tensorflow.tfprof.TfprofOutput.GraphNodeProto.Builder getChildrenBuilder(
int index) {
return getChildrenFieldBuilder().getBuilder(index);
}
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public tensorflow.tfprof.TfprofOutput.GraphNodeProtoOrBuilder getChildrenOrBuilder(
int index) {
if (childrenBuilder_ == null) {
return children_.get(index); } else {
return childrenBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public java.util.List extends tensorflow.tfprof.TfprofOutput.GraphNodeProtoOrBuilder>
getChildrenOrBuilderList() {
if (childrenBuilder_ != null) {
return childrenBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(children_);
}
}
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public tensorflow.tfprof.TfprofOutput.GraphNodeProto.Builder addChildrenBuilder() {
return getChildrenFieldBuilder().addBuilder(
tensorflow.tfprof.TfprofOutput.GraphNodeProto.getDefaultInstance());
}
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public tensorflow.tfprof.TfprofOutput.GraphNodeProto.Builder addChildrenBuilder(
int index) {
return getChildrenFieldBuilder().addBuilder(
index, tensorflow.tfprof.TfprofOutput.GraphNodeProto.getDefaultInstance());
}
/**
*
* Descendants of the graph. The actual descendants depend on the data
* structure used (scope, graph).
*
*
* repeated .tensorflow.tfprof.GraphNodeProto children = 12;
*/
public java.util.List
getChildrenBuilderList() {
return getChildrenFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.tfprof.TfprofOutput.GraphNodeProto, tensorflow.tfprof.TfprofOutput.GraphNodeProto.Builder, tensorflow.tfprof.TfprofOutput.GraphNodeProtoOrBuilder>
getChildrenFieldBuilder() {
if (childrenBuilder_ == null) {
childrenBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.tfprof.TfprofOutput.GraphNodeProto, tensorflow.tfprof.TfprofOutput.GraphNodeProto.Builder, tensorflow.tfprof.TfprofOutput.GraphNodeProtoOrBuilder>(
children_,
((bitField0_ & 0x04000000) == 0x04000000),
getParentForChildren(),
isClean());
children_ = null;
}
return childrenBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.tfprof.GraphNodeProto)
}
// @@protoc_insertion_point(class_scope:tensorflow.tfprof.GraphNodeProto)
private static final tensorflow.tfprof.TfprofOutput.GraphNodeProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.tfprof.TfprofOutput.GraphNodeProto();
}
public static tensorflow.tfprof.TfprofOutput.GraphNodeProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GraphNodeProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GraphNodeProto(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tensorflow.tfprof.TfprofOutput.GraphNodeProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MultiGraphNodeProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.tfprof.MultiGraphNodeProto)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the node.
*
*
* string name = 1;
*/
java.lang.String getName();
/**
*
* Name of the node.
*
*
* string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* code execution time.
*
*
* int64 exec_micros = 2;
*/
long getExecMicros();
/**
* int64 accelerator_exec_micros = 12;
*/
long getAcceleratorExecMicros();
/**
* int64 cpu_exec_micros = 13;
*/
long getCpuExecMicros();
/**
*
* Total requested bytes by the code.
*
*
* int64 requested_bytes = 3;
*/
long getRequestedBytes();
/**
*
* Max bytes allocated and being used by the op at a point.
*
*
* int64 peak_bytes = 16;
*/
long getPeakBytes();
/**
*
* Total bytes requested by the op and not released before end.
*
*
* int64 residual_bytes = 17;
*/
long getResidualBytes();
/**
*
* Total bytes output by the op (not necessarily allocated by the op).
*
*
* int64 output_bytes = 18;
*/
long getOutputBytes();
/**
*
* Number of parameters if available.
*
*
* int64 parameters = 4;
*/
long getParameters();
/**
*
* Number of float operations.
*
*
* int64 float_ops = 5;
*/
long getFloatOps();
/**
*
* The following are the aggregated stats from descendants.
* The actual descendants depend on the data structure used.
*
*
* int64 total_exec_micros = 6;
*/
long getTotalExecMicros();
/**
* int64 total_accelerator_exec_micros = 14;
*/
long getTotalAcceleratorExecMicros();
/**
* int64 total_cpu_exec_micros = 15;
*/
long getTotalCpuExecMicros();
/**
* int64 total_requested_bytes = 7;
*/
long getTotalRequestedBytes();
/**
* int64 total_peak_bytes = 19;
*/
long getTotalPeakBytes();
/**
* int64 total_residual_bytes = 20;
*/
long getTotalResidualBytes();
/**
* int64 total_output_bytes = 21;
*/
long getTotalOutputBytes();
/**
* int64 total_parameters = 8;
*/
long getTotalParameters();
/**
* int64 total_float_ops = 9;
*/
long getTotalFloatOps();
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
java.util.List
getGraphNodesList();
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
tensorflow.tfprof.TfprofOutput.GraphNodeProto getGraphNodes(int index);
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
int getGraphNodesCount();
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
java.util.List extends tensorflow.tfprof.TfprofOutput.GraphNodeProtoOrBuilder>
getGraphNodesOrBuilderList();
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
tensorflow.tfprof.TfprofOutput.GraphNodeProtoOrBuilder getGraphNodesOrBuilder(
int index);
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
java.util.List
getChildrenList();
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto getChildren(int index);
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
int getChildrenCount();
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
java.util.List extends tensorflow.tfprof.TfprofOutput.MultiGraphNodeProtoOrBuilder>
getChildrenOrBuilderList();
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
tensorflow.tfprof.TfprofOutput.MultiGraphNodeProtoOrBuilder getChildrenOrBuilder(
int index);
}
/**
*
* A node that groups multiple GraphNodeProto.
* Depending on the 'view', the semantics of the TFmultiGraphNodeProto
* is different:
* code view: A node groups all TensorFlow graph nodes created by the
* Python code.
* op view: A node groups all TensorFlow graph nodes that are of type
* of the op (e.g. MatMul, Conv2D).
*
*
* Protobuf type {@code tensorflow.tfprof.MultiGraphNodeProto}
*/
public static final class MultiGraphNodeProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.tfprof.MultiGraphNodeProto)
MultiGraphNodeProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use MultiGraphNodeProto.newBuilder() to construct.
private MultiGraphNodeProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MultiGraphNodeProto() {
name_ = "";
execMicros_ = 0L;
acceleratorExecMicros_ = 0L;
cpuExecMicros_ = 0L;
requestedBytes_ = 0L;
peakBytes_ = 0L;
residualBytes_ = 0L;
outputBytes_ = 0L;
parameters_ = 0L;
floatOps_ = 0L;
totalExecMicros_ = 0L;
totalAcceleratorExecMicros_ = 0L;
totalCpuExecMicros_ = 0L;
totalRequestedBytes_ = 0L;
totalPeakBytes_ = 0L;
totalResidualBytes_ = 0L;
totalOutputBytes_ = 0L;
totalParameters_ = 0L;
totalFloatOps_ = 0L;
graphNodes_ = java.util.Collections.emptyList();
children_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MultiGraphNodeProto(
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;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 16: {
execMicros_ = input.readInt64();
break;
}
case 24: {
requestedBytes_ = input.readInt64();
break;
}
case 32: {
parameters_ = input.readInt64();
break;
}
case 40: {
floatOps_ = input.readInt64();
break;
}
case 48: {
totalExecMicros_ = input.readInt64();
break;
}
case 56: {
totalRequestedBytes_ = input.readInt64();
break;
}
case 64: {
totalParameters_ = input.readInt64();
break;
}
case 72: {
totalFloatOps_ = input.readInt64();
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00080000) == 0x00080000)) {
graphNodes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00080000;
}
graphNodes_.add(
input.readMessage(tensorflow.tfprof.TfprofOutput.GraphNodeProto.parser(), extensionRegistry));
break;
}
case 90: {
if (!((mutable_bitField0_ & 0x00100000) == 0x00100000)) {
children_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00100000;
}
children_.add(
input.readMessage(tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto.parser(), extensionRegistry));
break;
}
case 96: {
acceleratorExecMicros_ = input.readInt64();
break;
}
case 104: {
cpuExecMicros_ = input.readInt64();
break;
}
case 112: {
totalAcceleratorExecMicros_ = input.readInt64();
break;
}
case 120: {
totalCpuExecMicros_ = input.readInt64();
break;
}
case 128: {
peakBytes_ = input.readInt64();
break;
}
case 136: {
residualBytes_ = input.readInt64();
break;
}
case 144: {
outputBytes_ = input.readInt64();
break;
}
case 152: {
totalPeakBytes_ = input.readInt64();
break;
}
case 160: {
totalResidualBytes_ = input.readInt64();
break;
}
case 168: {
totalOutputBytes_ = input.readInt64();
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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_ & 0x00080000) == 0x00080000)) {
graphNodes_ = java.util.Collections.unmodifiableList(graphNodes_);
}
if (((mutable_bitField0_ & 0x00100000) == 0x00100000)) {
children_ = java.util.Collections.unmodifiableList(children_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_MultiGraphNodeProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_MultiGraphNodeProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto.class, tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Name of the node.
*
*
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
* Name of the node.
*
*
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXEC_MICROS_FIELD_NUMBER = 2;
private long execMicros_;
/**
*
* code execution time.
*
*
* int64 exec_micros = 2;
*/
public long getExecMicros() {
return execMicros_;
}
public static final int ACCELERATOR_EXEC_MICROS_FIELD_NUMBER = 12;
private long acceleratorExecMicros_;
/**
* int64 accelerator_exec_micros = 12;
*/
public long getAcceleratorExecMicros() {
return acceleratorExecMicros_;
}
public static final int CPU_EXEC_MICROS_FIELD_NUMBER = 13;
private long cpuExecMicros_;
/**
* int64 cpu_exec_micros = 13;
*/
public long getCpuExecMicros() {
return cpuExecMicros_;
}
public static final int REQUESTED_BYTES_FIELD_NUMBER = 3;
private long requestedBytes_;
/**
*
* Total requested bytes by the code.
*
*
* int64 requested_bytes = 3;
*/
public long getRequestedBytes() {
return requestedBytes_;
}
public static final int PEAK_BYTES_FIELD_NUMBER = 16;
private long peakBytes_;
/**
*
* Max bytes allocated and being used by the op at a point.
*
*
* int64 peak_bytes = 16;
*/
public long getPeakBytes() {
return peakBytes_;
}
public static final int RESIDUAL_BYTES_FIELD_NUMBER = 17;
private long residualBytes_;
/**
*
* Total bytes requested by the op and not released before end.
*
*
* int64 residual_bytes = 17;
*/
public long getResidualBytes() {
return residualBytes_;
}
public static final int OUTPUT_BYTES_FIELD_NUMBER = 18;
private long outputBytes_;
/**
*
* Total bytes output by the op (not necessarily allocated by the op).
*
*
* int64 output_bytes = 18;
*/
public long getOutputBytes() {
return outputBytes_;
}
public static final int PARAMETERS_FIELD_NUMBER = 4;
private long parameters_;
/**
*
* Number of parameters if available.
*
*
* int64 parameters = 4;
*/
public long getParameters() {
return parameters_;
}
public static final int FLOAT_OPS_FIELD_NUMBER = 5;
private long floatOps_;
/**
*
* Number of float operations.
*
*
* int64 float_ops = 5;
*/
public long getFloatOps() {
return floatOps_;
}
public static final int TOTAL_EXEC_MICROS_FIELD_NUMBER = 6;
private long totalExecMicros_;
/**
*
* The following are the aggregated stats from descendants.
* The actual descendants depend on the data structure used.
*
*
* int64 total_exec_micros = 6;
*/
public long getTotalExecMicros() {
return totalExecMicros_;
}
public static final int TOTAL_ACCELERATOR_EXEC_MICROS_FIELD_NUMBER = 14;
private long totalAcceleratorExecMicros_;
/**
* int64 total_accelerator_exec_micros = 14;
*/
public long getTotalAcceleratorExecMicros() {
return totalAcceleratorExecMicros_;
}
public static final int TOTAL_CPU_EXEC_MICROS_FIELD_NUMBER = 15;
private long totalCpuExecMicros_;
/**
* int64 total_cpu_exec_micros = 15;
*/
public long getTotalCpuExecMicros() {
return totalCpuExecMicros_;
}
public static final int TOTAL_REQUESTED_BYTES_FIELD_NUMBER = 7;
private long totalRequestedBytes_;
/**
* int64 total_requested_bytes = 7;
*/
public long getTotalRequestedBytes() {
return totalRequestedBytes_;
}
public static final int TOTAL_PEAK_BYTES_FIELD_NUMBER = 19;
private long totalPeakBytes_;
/**
* int64 total_peak_bytes = 19;
*/
public long getTotalPeakBytes() {
return totalPeakBytes_;
}
public static final int TOTAL_RESIDUAL_BYTES_FIELD_NUMBER = 20;
private long totalResidualBytes_;
/**
* int64 total_residual_bytes = 20;
*/
public long getTotalResidualBytes() {
return totalResidualBytes_;
}
public static final int TOTAL_OUTPUT_BYTES_FIELD_NUMBER = 21;
private long totalOutputBytes_;
/**
* int64 total_output_bytes = 21;
*/
public long getTotalOutputBytes() {
return totalOutputBytes_;
}
public static final int TOTAL_PARAMETERS_FIELD_NUMBER = 8;
private long totalParameters_;
/**
* int64 total_parameters = 8;
*/
public long getTotalParameters() {
return totalParameters_;
}
public static final int TOTAL_FLOAT_OPS_FIELD_NUMBER = 9;
private long totalFloatOps_;
/**
* int64 total_float_ops = 9;
*/
public long getTotalFloatOps() {
return totalFloatOps_;
}
public static final int GRAPH_NODES_FIELD_NUMBER = 10;
private java.util.List graphNodes_;
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public java.util.List getGraphNodesList() {
return graphNodes_;
}
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public java.util.List extends tensorflow.tfprof.TfprofOutput.GraphNodeProtoOrBuilder>
getGraphNodesOrBuilderList() {
return graphNodes_;
}
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public int getGraphNodesCount() {
return graphNodes_.size();
}
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public tensorflow.tfprof.TfprofOutput.GraphNodeProto getGraphNodes(int index) {
return graphNodes_.get(index);
}
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public tensorflow.tfprof.TfprofOutput.GraphNodeProtoOrBuilder getGraphNodesOrBuilder(
int index) {
return graphNodes_.get(index);
}
public static final int CHILDREN_FIELD_NUMBER = 11;
private java.util.List children_;
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public java.util.List getChildrenList() {
return children_;
}
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public java.util.List extends tensorflow.tfprof.TfprofOutput.MultiGraphNodeProtoOrBuilder>
getChildrenOrBuilderList() {
return children_;
}
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public int getChildrenCount() {
return children_.size();
}
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto getChildren(int index) {
return children_.get(index);
}
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public tensorflow.tfprof.TfprofOutput.MultiGraphNodeProtoOrBuilder getChildrenOrBuilder(
int index) {
return children_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (execMicros_ != 0L) {
output.writeInt64(2, execMicros_);
}
if (requestedBytes_ != 0L) {
output.writeInt64(3, requestedBytes_);
}
if (parameters_ != 0L) {
output.writeInt64(4, parameters_);
}
if (floatOps_ != 0L) {
output.writeInt64(5, floatOps_);
}
if (totalExecMicros_ != 0L) {
output.writeInt64(6, totalExecMicros_);
}
if (totalRequestedBytes_ != 0L) {
output.writeInt64(7, totalRequestedBytes_);
}
if (totalParameters_ != 0L) {
output.writeInt64(8, totalParameters_);
}
if (totalFloatOps_ != 0L) {
output.writeInt64(9, totalFloatOps_);
}
for (int i = 0; i < graphNodes_.size(); i++) {
output.writeMessage(10, graphNodes_.get(i));
}
for (int i = 0; i < children_.size(); i++) {
output.writeMessage(11, children_.get(i));
}
if (acceleratorExecMicros_ != 0L) {
output.writeInt64(12, acceleratorExecMicros_);
}
if (cpuExecMicros_ != 0L) {
output.writeInt64(13, cpuExecMicros_);
}
if (totalAcceleratorExecMicros_ != 0L) {
output.writeInt64(14, totalAcceleratorExecMicros_);
}
if (totalCpuExecMicros_ != 0L) {
output.writeInt64(15, totalCpuExecMicros_);
}
if (peakBytes_ != 0L) {
output.writeInt64(16, peakBytes_);
}
if (residualBytes_ != 0L) {
output.writeInt64(17, residualBytes_);
}
if (outputBytes_ != 0L) {
output.writeInt64(18, outputBytes_);
}
if (totalPeakBytes_ != 0L) {
output.writeInt64(19, totalPeakBytes_);
}
if (totalResidualBytes_ != 0L) {
output.writeInt64(20, totalResidualBytes_);
}
if (totalOutputBytes_ != 0L) {
output.writeInt64(21, totalOutputBytes_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (execMicros_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, execMicros_);
}
if (requestedBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, requestedBytes_);
}
if (parameters_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, parameters_);
}
if (floatOps_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, floatOps_);
}
if (totalExecMicros_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, totalExecMicros_);
}
if (totalRequestedBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, totalRequestedBytes_);
}
if (totalParameters_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, totalParameters_);
}
if (totalFloatOps_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, totalFloatOps_);
}
for (int i = 0; i < graphNodes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, graphNodes_.get(i));
}
for (int i = 0; i < children_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, children_.get(i));
}
if (acceleratorExecMicros_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(12, acceleratorExecMicros_);
}
if (cpuExecMicros_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(13, cpuExecMicros_);
}
if (totalAcceleratorExecMicros_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(14, totalAcceleratorExecMicros_);
}
if (totalCpuExecMicros_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(15, totalCpuExecMicros_);
}
if (peakBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(16, peakBytes_);
}
if (residualBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(17, residualBytes_);
}
if (outputBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(18, outputBytes_);
}
if (totalPeakBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(19, totalPeakBytes_);
}
if (totalResidualBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(20, totalResidualBytes_);
}
if (totalOutputBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(21, totalOutputBytes_);
}
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 tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto)) {
return super.equals(obj);
}
tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto other = (tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto) obj;
boolean result = true;
result = result && getName()
.equals(other.getName());
result = result && (getExecMicros()
== other.getExecMicros());
result = result && (getAcceleratorExecMicros()
== other.getAcceleratorExecMicros());
result = result && (getCpuExecMicros()
== other.getCpuExecMicros());
result = result && (getRequestedBytes()
== other.getRequestedBytes());
result = result && (getPeakBytes()
== other.getPeakBytes());
result = result && (getResidualBytes()
== other.getResidualBytes());
result = result && (getOutputBytes()
== other.getOutputBytes());
result = result && (getParameters()
== other.getParameters());
result = result && (getFloatOps()
== other.getFloatOps());
result = result && (getTotalExecMicros()
== other.getTotalExecMicros());
result = result && (getTotalAcceleratorExecMicros()
== other.getTotalAcceleratorExecMicros());
result = result && (getTotalCpuExecMicros()
== other.getTotalCpuExecMicros());
result = result && (getTotalRequestedBytes()
== other.getTotalRequestedBytes());
result = result && (getTotalPeakBytes()
== other.getTotalPeakBytes());
result = result && (getTotalResidualBytes()
== other.getTotalResidualBytes());
result = result && (getTotalOutputBytes()
== other.getTotalOutputBytes());
result = result && (getTotalParameters()
== other.getTotalParameters());
result = result && (getTotalFloatOps()
== other.getTotalFloatOps());
result = result && getGraphNodesList()
.equals(other.getGraphNodesList());
result = result && getChildrenList()
.equals(other.getChildrenList());
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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + EXEC_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getExecMicros());
hash = (37 * hash) + ACCELERATOR_EXEC_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAcceleratorExecMicros());
hash = (37 * hash) + CPU_EXEC_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCpuExecMicros());
hash = (37 * hash) + REQUESTED_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRequestedBytes());
hash = (37 * hash) + PEAK_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPeakBytes());
hash = (37 * hash) + RESIDUAL_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getResidualBytes());
hash = (37 * hash) + OUTPUT_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOutputBytes());
hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getParameters());
hash = (37 * hash) + FLOAT_OPS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFloatOps());
hash = (37 * hash) + TOTAL_EXEC_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalExecMicros());
hash = (37 * hash) + TOTAL_ACCELERATOR_EXEC_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalAcceleratorExecMicros());
hash = (37 * hash) + TOTAL_CPU_EXEC_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalCpuExecMicros());
hash = (37 * hash) + TOTAL_REQUESTED_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalRequestedBytes());
hash = (37 * hash) + TOTAL_PEAK_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalPeakBytes());
hash = (37 * hash) + TOTAL_RESIDUAL_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalResidualBytes());
hash = (37 * hash) + TOTAL_OUTPUT_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalOutputBytes());
hash = (37 * hash) + TOTAL_PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalParameters());
hash = (37 * hash) + TOTAL_FLOAT_OPS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalFloatOps());
if (getGraphNodesCount() > 0) {
hash = (37 * hash) + GRAPH_NODES_FIELD_NUMBER;
hash = (53 * hash) + getGraphNodesList().hashCode();
}
if (getChildrenCount() > 0) {
hash = (37 * hash) + CHILDREN_FIELD_NUMBER;
hash = (53 * hash) + getChildrenList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto 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 tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto 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 tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
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;
}
/**
*
* A node that groups multiple GraphNodeProto.
* Depending on the 'view', the semantics of the TFmultiGraphNodeProto
* is different:
* code view: A node groups all TensorFlow graph nodes created by the
* Python code.
* op view: A node groups all TensorFlow graph nodes that are of type
* of the op (e.g. MatMul, Conv2D).
*
*
* Protobuf type {@code tensorflow.tfprof.MultiGraphNodeProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.tfprof.MultiGraphNodeProto)
tensorflow.tfprof.TfprofOutput.MultiGraphNodeProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_MultiGraphNodeProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_MultiGraphNodeProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto.class, tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto.Builder.class);
}
// Construct using tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getGraphNodesFieldBuilder();
getChildrenFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
execMicros_ = 0L;
acceleratorExecMicros_ = 0L;
cpuExecMicros_ = 0L;
requestedBytes_ = 0L;
peakBytes_ = 0L;
residualBytes_ = 0L;
outputBytes_ = 0L;
parameters_ = 0L;
floatOps_ = 0L;
totalExecMicros_ = 0L;
totalAcceleratorExecMicros_ = 0L;
totalCpuExecMicros_ = 0L;
totalRequestedBytes_ = 0L;
totalPeakBytes_ = 0L;
totalResidualBytes_ = 0L;
totalOutputBytes_ = 0L;
totalParameters_ = 0L;
totalFloatOps_ = 0L;
if (graphNodesBuilder_ == null) {
graphNodes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00080000);
} else {
graphNodesBuilder_.clear();
}
if (childrenBuilder_ == null) {
children_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00100000);
} else {
childrenBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_MultiGraphNodeProto_descriptor;
}
@java.lang.Override
public tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto getDefaultInstanceForType() {
return tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto.getDefaultInstance();
}
@java.lang.Override
public tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto build() {
tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto buildPartial() {
tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto result = new tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.name_ = name_;
result.execMicros_ = execMicros_;
result.acceleratorExecMicros_ = acceleratorExecMicros_;
result.cpuExecMicros_ = cpuExecMicros_;
result.requestedBytes_ = requestedBytes_;
result.peakBytes_ = peakBytes_;
result.residualBytes_ = residualBytes_;
result.outputBytes_ = outputBytes_;
result.parameters_ = parameters_;
result.floatOps_ = floatOps_;
result.totalExecMicros_ = totalExecMicros_;
result.totalAcceleratorExecMicros_ = totalAcceleratorExecMicros_;
result.totalCpuExecMicros_ = totalCpuExecMicros_;
result.totalRequestedBytes_ = totalRequestedBytes_;
result.totalPeakBytes_ = totalPeakBytes_;
result.totalResidualBytes_ = totalResidualBytes_;
result.totalOutputBytes_ = totalOutputBytes_;
result.totalParameters_ = totalParameters_;
result.totalFloatOps_ = totalFloatOps_;
if (graphNodesBuilder_ == null) {
if (((bitField0_ & 0x00080000) == 0x00080000)) {
graphNodes_ = java.util.Collections.unmodifiableList(graphNodes_);
bitField0_ = (bitField0_ & ~0x00080000);
}
result.graphNodes_ = graphNodes_;
} else {
result.graphNodes_ = graphNodesBuilder_.build();
}
if (childrenBuilder_ == null) {
if (((bitField0_ & 0x00100000) == 0x00100000)) {
children_ = java.util.Collections.unmodifiableList(children_);
bitField0_ = (bitField0_ & ~0x00100000);
}
result.children_ = children_;
} else {
result.children_ = childrenBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto) {
return mergeFrom((tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto other) {
if (other == tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.getExecMicros() != 0L) {
setExecMicros(other.getExecMicros());
}
if (other.getAcceleratorExecMicros() != 0L) {
setAcceleratorExecMicros(other.getAcceleratorExecMicros());
}
if (other.getCpuExecMicros() != 0L) {
setCpuExecMicros(other.getCpuExecMicros());
}
if (other.getRequestedBytes() != 0L) {
setRequestedBytes(other.getRequestedBytes());
}
if (other.getPeakBytes() != 0L) {
setPeakBytes(other.getPeakBytes());
}
if (other.getResidualBytes() != 0L) {
setResidualBytes(other.getResidualBytes());
}
if (other.getOutputBytes() != 0L) {
setOutputBytes(other.getOutputBytes());
}
if (other.getParameters() != 0L) {
setParameters(other.getParameters());
}
if (other.getFloatOps() != 0L) {
setFloatOps(other.getFloatOps());
}
if (other.getTotalExecMicros() != 0L) {
setTotalExecMicros(other.getTotalExecMicros());
}
if (other.getTotalAcceleratorExecMicros() != 0L) {
setTotalAcceleratorExecMicros(other.getTotalAcceleratorExecMicros());
}
if (other.getTotalCpuExecMicros() != 0L) {
setTotalCpuExecMicros(other.getTotalCpuExecMicros());
}
if (other.getTotalRequestedBytes() != 0L) {
setTotalRequestedBytes(other.getTotalRequestedBytes());
}
if (other.getTotalPeakBytes() != 0L) {
setTotalPeakBytes(other.getTotalPeakBytes());
}
if (other.getTotalResidualBytes() != 0L) {
setTotalResidualBytes(other.getTotalResidualBytes());
}
if (other.getTotalOutputBytes() != 0L) {
setTotalOutputBytes(other.getTotalOutputBytes());
}
if (other.getTotalParameters() != 0L) {
setTotalParameters(other.getTotalParameters());
}
if (other.getTotalFloatOps() != 0L) {
setTotalFloatOps(other.getTotalFloatOps());
}
if (graphNodesBuilder_ == null) {
if (!other.graphNodes_.isEmpty()) {
if (graphNodes_.isEmpty()) {
graphNodes_ = other.graphNodes_;
bitField0_ = (bitField0_ & ~0x00080000);
} else {
ensureGraphNodesIsMutable();
graphNodes_.addAll(other.graphNodes_);
}
onChanged();
}
} else {
if (!other.graphNodes_.isEmpty()) {
if (graphNodesBuilder_.isEmpty()) {
graphNodesBuilder_.dispose();
graphNodesBuilder_ = null;
graphNodes_ = other.graphNodes_;
bitField0_ = (bitField0_ & ~0x00080000);
graphNodesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGraphNodesFieldBuilder() : null;
} else {
graphNodesBuilder_.addAllMessages(other.graphNodes_);
}
}
}
if (childrenBuilder_ == null) {
if (!other.children_.isEmpty()) {
if (children_.isEmpty()) {
children_ = other.children_;
bitField0_ = (bitField0_ & ~0x00100000);
} else {
ensureChildrenIsMutable();
children_.addAll(other.children_);
}
onChanged();
}
} else {
if (!other.children_.isEmpty()) {
if (childrenBuilder_.isEmpty()) {
childrenBuilder_.dispose();
childrenBuilder_ = null;
children_ = other.children_;
bitField0_ = (bitField0_ & ~0x00100000);
childrenBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getChildrenFieldBuilder() : null;
} else {
childrenBuilder_.addAllMessages(other.children_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* Name of the node.
*
*
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the node.
*
*
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the node.
*
*
* string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the node.
*
*
* string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the node.
*
*
* string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private long execMicros_ ;
/**
*
* code execution time.
*
*
* int64 exec_micros = 2;
*/
public long getExecMicros() {
return execMicros_;
}
/**
*
* code execution time.
*
*
* int64 exec_micros = 2;
*/
public Builder setExecMicros(long value) {
execMicros_ = value;
onChanged();
return this;
}
/**
*
* code execution time.
*
*
* int64 exec_micros = 2;
*/
public Builder clearExecMicros() {
execMicros_ = 0L;
onChanged();
return this;
}
private long acceleratorExecMicros_ ;
/**
* int64 accelerator_exec_micros = 12;
*/
public long getAcceleratorExecMicros() {
return acceleratorExecMicros_;
}
/**
* int64 accelerator_exec_micros = 12;
*/
public Builder setAcceleratorExecMicros(long value) {
acceleratorExecMicros_ = value;
onChanged();
return this;
}
/**
* int64 accelerator_exec_micros = 12;
*/
public Builder clearAcceleratorExecMicros() {
acceleratorExecMicros_ = 0L;
onChanged();
return this;
}
private long cpuExecMicros_ ;
/**
* int64 cpu_exec_micros = 13;
*/
public long getCpuExecMicros() {
return cpuExecMicros_;
}
/**
* int64 cpu_exec_micros = 13;
*/
public Builder setCpuExecMicros(long value) {
cpuExecMicros_ = value;
onChanged();
return this;
}
/**
* int64 cpu_exec_micros = 13;
*/
public Builder clearCpuExecMicros() {
cpuExecMicros_ = 0L;
onChanged();
return this;
}
private long requestedBytes_ ;
/**
*
* Total requested bytes by the code.
*
*
* int64 requested_bytes = 3;
*/
public long getRequestedBytes() {
return requestedBytes_;
}
/**
*
* Total requested bytes by the code.
*
*
* int64 requested_bytes = 3;
*/
public Builder setRequestedBytes(long value) {
requestedBytes_ = value;
onChanged();
return this;
}
/**
*
* Total requested bytes by the code.
*
*
* int64 requested_bytes = 3;
*/
public Builder clearRequestedBytes() {
requestedBytes_ = 0L;
onChanged();
return this;
}
private long peakBytes_ ;
/**
*
* Max bytes allocated and being used by the op at a point.
*
*
* int64 peak_bytes = 16;
*/
public long getPeakBytes() {
return peakBytes_;
}
/**
*
* Max bytes allocated and being used by the op at a point.
*
*
* int64 peak_bytes = 16;
*/
public Builder setPeakBytes(long value) {
peakBytes_ = value;
onChanged();
return this;
}
/**
*
* Max bytes allocated and being used by the op at a point.
*
*
* int64 peak_bytes = 16;
*/
public Builder clearPeakBytes() {
peakBytes_ = 0L;
onChanged();
return this;
}
private long residualBytes_ ;
/**
*
* Total bytes requested by the op and not released before end.
*
*
* int64 residual_bytes = 17;
*/
public long getResidualBytes() {
return residualBytes_;
}
/**
*
* Total bytes requested by the op and not released before end.
*
*
* int64 residual_bytes = 17;
*/
public Builder setResidualBytes(long value) {
residualBytes_ = value;
onChanged();
return this;
}
/**
*
* Total bytes requested by the op and not released before end.
*
*
* int64 residual_bytes = 17;
*/
public Builder clearResidualBytes() {
residualBytes_ = 0L;
onChanged();
return this;
}
private long outputBytes_ ;
/**
*
* Total bytes output by the op (not necessarily allocated by the op).
*
*
* int64 output_bytes = 18;
*/
public long getOutputBytes() {
return outputBytes_;
}
/**
*
* Total bytes output by the op (not necessarily allocated by the op).
*
*
* int64 output_bytes = 18;
*/
public Builder setOutputBytes(long value) {
outputBytes_ = value;
onChanged();
return this;
}
/**
*
* Total bytes output by the op (not necessarily allocated by the op).
*
*
* int64 output_bytes = 18;
*/
public Builder clearOutputBytes() {
outputBytes_ = 0L;
onChanged();
return this;
}
private long parameters_ ;
/**
*
* Number of parameters if available.
*
*
* int64 parameters = 4;
*/
public long getParameters() {
return parameters_;
}
/**
*
* Number of parameters if available.
*
*
* int64 parameters = 4;
*/
public Builder setParameters(long value) {
parameters_ = value;
onChanged();
return this;
}
/**
*
* Number of parameters if available.
*
*
* int64 parameters = 4;
*/
public Builder clearParameters() {
parameters_ = 0L;
onChanged();
return this;
}
private long floatOps_ ;
/**
*
* Number of float operations.
*
*
* int64 float_ops = 5;
*/
public long getFloatOps() {
return floatOps_;
}
/**
*
* Number of float operations.
*
*
* int64 float_ops = 5;
*/
public Builder setFloatOps(long value) {
floatOps_ = value;
onChanged();
return this;
}
/**
*
* Number of float operations.
*
*
* int64 float_ops = 5;
*/
public Builder clearFloatOps() {
floatOps_ = 0L;
onChanged();
return this;
}
private long totalExecMicros_ ;
/**
*
* The following are the aggregated stats from descendants.
* The actual descendants depend on the data structure used.
*
*
* int64 total_exec_micros = 6;
*/
public long getTotalExecMicros() {
return totalExecMicros_;
}
/**
*
* The following are the aggregated stats from descendants.
* The actual descendants depend on the data structure used.
*
*
* int64 total_exec_micros = 6;
*/
public Builder setTotalExecMicros(long value) {
totalExecMicros_ = value;
onChanged();
return this;
}
/**
*
* The following are the aggregated stats from descendants.
* The actual descendants depend on the data structure used.
*
*
* int64 total_exec_micros = 6;
*/
public Builder clearTotalExecMicros() {
totalExecMicros_ = 0L;
onChanged();
return this;
}
private long totalAcceleratorExecMicros_ ;
/**
* int64 total_accelerator_exec_micros = 14;
*/
public long getTotalAcceleratorExecMicros() {
return totalAcceleratorExecMicros_;
}
/**
* int64 total_accelerator_exec_micros = 14;
*/
public Builder setTotalAcceleratorExecMicros(long value) {
totalAcceleratorExecMicros_ = value;
onChanged();
return this;
}
/**
* int64 total_accelerator_exec_micros = 14;
*/
public Builder clearTotalAcceleratorExecMicros() {
totalAcceleratorExecMicros_ = 0L;
onChanged();
return this;
}
private long totalCpuExecMicros_ ;
/**
* int64 total_cpu_exec_micros = 15;
*/
public long getTotalCpuExecMicros() {
return totalCpuExecMicros_;
}
/**
* int64 total_cpu_exec_micros = 15;
*/
public Builder setTotalCpuExecMicros(long value) {
totalCpuExecMicros_ = value;
onChanged();
return this;
}
/**
* int64 total_cpu_exec_micros = 15;
*/
public Builder clearTotalCpuExecMicros() {
totalCpuExecMicros_ = 0L;
onChanged();
return this;
}
private long totalRequestedBytes_ ;
/**
* int64 total_requested_bytes = 7;
*/
public long getTotalRequestedBytes() {
return totalRequestedBytes_;
}
/**
* int64 total_requested_bytes = 7;
*/
public Builder setTotalRequestedBytes(long value) {
totalRequestedBytes_ = value;
onChanged();
return this;
}
/**
* int64 total_requested_bytes = 7;
*/
public Builder clearTotalRequestedBytes() {
totalRequestedBytes_ = 0L;
onChanged();
return this;
}
private long totalPeakBytes_ ;
/**
* int64 total_peak_bytes = 19;
*/
public long getTotalPeakBytes() {
return totalPeakBytes_;
}
/**
* int64 total_peak_bytes = 19;
*/
public Builder setTotalPeakBytes(long value) {
totalPeakBytes_ = value;
onChanged();
return this;
}
/**
* int64 total_peak_bytes = 19;
*/
public Builder clearTotalPeakBytes() {
totalPeakBytes_ = 0L;
onChanged();
return this;
}
private long totalResidualBytes_ ;
/**
* int64 total_residual_bytes = 20;
*/
public long getTotalResidualBytes() {
return totalResidualBytes_;
}
/**
* int64 total_residual_bytes = 20;
*/
public Builder setTotalResidualBytes(long value) {
totalResidualBytes_ = value;
onChanged();
return this;
}
/**
* int64 total_residual_bytes = 20;
*/
public Builder clearTotalResidualBytes() {
totalResidualBytes_ = 0L;
onChanged();
return this;
}
private long totalOutputBytes_ ;
/**
* int64 total_output_bytes = 21;
*/
public long getTotalOutputBytes() {
return totalOutputBytes_;
}
/**
* int64 total_output_bytes = 21;
*/
public Builder setTotalOutputBytes(long value) {
totalOutputBytes_ = value;
onChanged();
return this;
}
/**
* int64 total_output_bytes = 21;
*/
public Builder clearTotalOutputBytes() {
totalOutputBytes_ = 0L;
onChanged();
return this;
}
private long totalParameters_ ;
/**
* int64 total_parameters = 8;
*/
public long getTotalParameters() {
return totalParameters_;
}
/**
* int64 total_parameters = 8;
*/
public Builder setTotalParameters(long value) {
totalParameters_ = value;
onChanged();
return this;
}
/**
* int64 total_parameters = 8;
*/
public Builder clearTotalParameters() {
totalParameters_ = 0L;
onChanged();
return this;
}
private long totalFloatOps_ ;
/**
* int64 total_float_ops = 9;
*/
public long getTotalFloatOps() {
return totalFloatOps_;
}
/**
* int64 total_float_ops = 9;
*/
public Builder setTotalFloatOps(long value) {
totalFloatOps_ = value;
onChanged();
return this;
}
/**
* int64 total_float_ops = 9;
*/
public Builder clearTotalFloatOps() {
totalFloatOps_ = 0L;
onChanged();
return this;
}
private java.util.List graphNodes_ =
java.util.Collections.emptyList();
private void ensureGraphNodesIsMutable() {
if (!((bitField0_ & 0x00080000) == 0x00080000)) {
graphNodes_ = new java.util.ArrayList(graphNodes_);
bitField0_ |= 0x00080000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.tfprof.TfprofOutput.GraphNodeProto, tensorflow.tfprof.TfprofOutput.GraphNodeProto.Builder, tensorflow.tfprof.TfprofOutput.GraphNodeProtoOrBuilder> graphNodesBuilder_;
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public java.util.List getGraphNodesList() {
if (graphNodesBuilder_ == null) {
return java.util.Collections.unmodifiableList(graphNodes_);
} else {
return graphNodesBuilder_.getMessageList();
}
}
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public int getGraphNodesCount() {
if (graphNodesBuilder_ == null) {
return graphNodes_.size();
} else {
return graphNodesBuilder_.getCount();
}
}
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public tensorflow.tfprof.TfprofOutput.GraphNodeProto getGraphNodes(int index) {
if (graphNodesBuilder_ == null) {
return graphNodes_.get(index);
} else {
return graphNodesBuilder_.getMessage(index);
}
}
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public Builder setGraphNodes(
int index, tensorflow.tfprof.TfprofOutput.GraphNodeProto value) {
if (graphNodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGraphNodesIsMutable();
graphNodes_.set(index, value);
onChanged();
} else {
graphNodesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public Builder setGraphNodes(
int index, tensorflow.tfprof.TfprofOutput.GraphNodeProto.Builder builderForValue) {
if (graphNodesBuilder_ == null) {
ensureGraphNodesIsMutable();
graphNodes_.set(index, builderForValue.build());
onChanged();
} else {
graphNodesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public Builder addGraphNodes(tensorflow.tfprof.TfprofOutput.GraphNodeProto value) {
if (graphNodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGraphNodesIsMutable();
graphNodes_.add(value);
onChanged();
} else {
graphNodesBuilder_.addMessage(value);
}
return this;
}
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public Builder addGraphNodes(
int index, tensorflow.tfprof.TfprofOutput.GraphNodeProto value) {
if (graphNodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGraphNodesIsMutable();
graphNodes_.add(index, value);
onChanged();
} else {
graphNodesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public Builder addGraphNodes(
tensorflow.tfprof.TfprofOutput.GraphNodeProto.Builder builderForValue) {
if (graphNodesBuilder_ == null) {
ensureGraphNodesIsMutable();
graphNodes_.add(builderForValue.build());
onChanged();
} else {
graphNodesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public Builder addGraphNodes(
int index, tensorflow.tfprof.TfprofOutput.GraphNodeProto.Builder builderForValue) {
if (graphNodesBuilder_ == null) {
ensureGraphNodesIsMutable();
graphNodes_.add(index, builderForValue.build());
onChanged();
} else {
graphNodesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public Builder addAllGraphNodes(
java.lang.Iterable extends tensorflow.tfprof.TfprofOutput.GraphNodeProto> values) {
if (graphNodesBuilder_ == null) {
ensureGraphNodesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, graphNodes_);
onChanged();
} else {
graphNodesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public Builder clearGraphNodes() {
if (graphNodesBuilder_ == null) {
graphNodes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00080000);
onChanged();
} else {
graphNodesBuilder_.clear();
}
return this;
}
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public Builder removeGraphNodes(int index) {
if (graphNodesBuilder_ == null) {
ensureGraphNodesIsMutable();
graphNodes_.remove(index);
onChanged();
} else {
graphNodesBuilder_.remove(index);
}
return this;
}
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public tensorflow.tfprof.TfprofOutput.GraphNodeProto.Builder getGraphNodesBuilder(
int index) {
return getGraphNodesFieldBuilder().getBuilder(index);
}
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public tensorflow.tfprof.TfprofOutput.GraphNodeProtoOrBuilder getGraphNodesOrBuilder(
int index) {
if (graphNodesBuilder_ == null) {
return graphNodes_.get(index); } else {
return graphNodesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public java.util.List extends tensorflow.tfprof.TfprofOutput.GraphNodeProtoOrBuilder>
getGraphNodesOrBuilderList() {
if (graphNodesBuilder_ != null) {
return graphNodesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(graphNodes_);
}
}
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public tensorflow.tfprof.TfprofOutput.GraphNodeProto.Builder addGraphNodesBuilder() {
return getGraphNodesFieldBuilder().addBuilder(
tensorflow.tfprof.TfprofOutput.GraphNodeProto.getDefaultInstance());
}
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public tensorflow.tfprof.TfprofOutput.GraphNodeProto.Builder addGraphNodesBuilder(
int index) {
return getGraphNodesFieldBuilder().addBuilder(
index, tensorflow.tfprof.TfprofOutput.GraphNodeProto.getDefaultInstance());
}
/**
*
* TensorFlow graph nodes contained by the MultiGraphNodeProto.
*
*
* repeated .tensorflow.tfprof.GraphNodeProto graph_nodes = 10;
*/
public java.util.List
getGraphNodesBuilderList() {
return getGraphNodesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.tfprof.TfprofOutput.GraphNodeProto, tensorflow.tfprof.TfprofOutput.GraphNodeProto.Builder, tensorflow.tfprof.TfprofOutput.GraphNodeProtoOrBuilder>
getGraphNodesFieldBuilder() {
if (graphNodesBuilder_ == null) {
graphNodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.tfprof.TfprofOutput.GraphNodeProto, tensorflow.tfprof.TfprofOutput.GraphNodeProto.Builder, tensorflow.tfprof.TfprofOutput.GraphNodeProtoOrBuilder>(
graphNodes_,
((bitField0_ & 0x00080000) == 0x00080000),
getParentForChildren(),
isClean());
graphNodes_ = null;
}
return graphNodesBuilder_;
}
private java.util.List children_ =
java.util.Collections.emptyList();
private void ensureChildrenIsMutable() {
if (!((bitField0_ & 0x00100000) == 0x00100000)) {
children_ = new java.util.ArrayList(children_);
bitField0_ |= 0x00100000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto, tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto.Builder, tensorflow.tfprof.TfprofOutput.MultiGraphNodeProtoOrBuilder> childrenBuilder_;
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public java.util.List getChildrenList() {
if (childrenBuilder_ == null) {
return java.util.Collections.unmodifiableList(children_);
} else {
return childrenBuilder_.getMessageList();
}
}
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public int getChildrenCount() {
if (childrenBuilder_ == null) {
return children_.size();
} else {
return childrenBuilder_.getCount();
}
}
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto getChildren(int index) {
if (childrenBuilder_ == null) {
return children_.get(index);
} else {
return childrenBuilder_.getMessage(index);
}
}
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public Builder setChildren(
int index, tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto value) {
if (childrenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildrenIsMutable();
children_.set(index, value);
onChanged();
} else {
childrenBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public Builder setChildren(
int index, tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto.Builder builderForValue) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
children_.set(index, builderForValue.build());
onChanged();
} else {
childrenBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public Builder addChildren(tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto value) {
if (childrenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildrenIsMutable();
children_.add(value);
onChanged();
} else {
childrenBuilder_.addMessage(value);
}
return this;
}
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public Builder addChildren(
int index, tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto value) {
if (childrenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildrenIsMutable();
children_.add(index, value);
onChanged();
} else {
childrenBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public Builder addChildren(
tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto.Builder builderForValue) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
children_.add(builderForValue.build());
onChanged();
} else {
childrenBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public Builder addChildren(
int index, tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto.Builder builderForValue) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
children_.add(index, builderForValue.build());
onChanged();
} else {
childrenBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public Builder addAllChildren(
java.lang.Iterable extends tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto> values) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, children_);
onChanged();
} else {
childrenBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public Builder clearChildren() {
if (childrenBuilder_ == null) {
children_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00100000);
onChanged();
} else {
childrenBuilder_.clear();
}
return this;
}
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public Builder removeChildren(int index) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
children_.remove(index);
onChanged();
} else {
childrenBuilder_.remove(index);
}
return this;
}
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto.Builder getChildrenBuilder(
int index) {
return getChildrenFieldBuilder().getBuilder(index);
}
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public tensorflow.tfprof.TfprofOutput.MultiGraphNodeProtoOrBuilder getChildrenOrBuilder(
int index) {
if (childrenBuilder_ == null) {
return children_.get(index); } else {
return childrenBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public java.util.List extends tensorflow.tfprof.TfprofOutput.MultiGraphNodeProtoOrBuilder>
getChildrenOrBuilderList() {
if (childrenBuilder_ != null) {
return childrenBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(children_);
}
}
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto.Builder addChildrenBuilder() {
return getChildrenFieldBuilder().addBuilder(
tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto.getDefaultInstance());
}
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto.Builder addChildrenBuilder(
int index) {
return getChildrenFieldBuilder().addBuilder(
index, tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto.getDefaultInstance());
}
/**
*
* Descendants of the node. The actual descendants depend on the data
* structure used.
*
*
* repeated .tensorflow.tfprof.MultiGraphNodeProto children = 11;
*/
public java.util.List
getChildrenBuilderList() {
return getChildrenFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto, tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto.Builder, tensorflow.tfprof.TfprofOutput.MultiGraphNodeProtoOrBuilder>
getChildrenFieldBuilder() {
if (childrenBuilder_ == null) {
childrenBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto, tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto.Builder, tensorflow.tfprof.TfprofOutput.MultiGraphNodeProtoOrBuilder>(
children_,
((bitField0_ & 0x00100000) == 0x00100000),
getParentForChildren(),
isClean());
children_ = null;
}
return childrenBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.tfprof.MultiGraphNodeProto)
}
// @@protoc_insertion_point(class_scope:tensorflow.tfprof.MultiGraphNodeProto)
private static final tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto();
}
public static tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MultiGraphNodeProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MultiGraphNodeProto(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tensorflow.tfprof.TfprofOutput.MultiGraphNodeProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AdviceProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.tfprof.AdviceProto)
com.google.protobuf.MessageOrBuilder {
/**
*
* checker name -> a list of reports from the checker.
*
*
* map<string, .tensorflow.tfprof.AdviceProto.Checker> checkers = 1;
*/
int getCheckersCount();
/**
*
* checker name -> a list of reports from the checker.
*
*
* map<string, .tensorflow.tfprof.AdviceProto.Checker> checkers = 1;
*/
boolean containsCheckers(
java.lang.String key);
/**
* Use {@link #getCheckersMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getCheckers();
/**
*
* checker name -> a list of reports from the checker.
*
*
* map<string, .tensorflow.tfprof.AdviceProto.Checker> checkers = 1;
*/
java.util.Map
getCheckersMap();
/**
*
* checker name -> a list of reports from the checker.
*
*
* map<string, .tensorflow.tfprof.AdviceProto.Checker> checkers = 1;
*/
tensorflow.tfprof.TfprofOutput.AdviceProto.Checker getCheckersOrDefault(
java.lang.String key,
tensorflow.tfprof.TfprofOutput.AdviceProto.Checker defaultValue);
/**
*
* checker name -> a list of reports from the checker.
*
*
* map<string, .tensorflow.tfprof.AdviceProto.Checker> checkers = 1;
*/
tensorflow.tfprof.TfprofOutput.AdviceProto.Checker getCheckersOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code tensorflow.tfprof.AdviceProto}
*/
public static final class AdviceProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.tfprof.AdviceProto)
AdviceProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use AdviceProto.newBuilder() to construct.
private AdviceProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AdviceProto() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AdviceProto(
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;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
checkers_ = com.google.protobuf.MapField.newMapField(
CheckersDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
checkers__ = input.readMessage(
CheckersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
checkers_.getMutableMap().put(
checkers__.getKey(), checkers__.getValue());
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_AdviceProto_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetCheckers();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_AdviceProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.tfprof.TfprofOutput.AdviceProto.class, tensorflow.tfprof.TfprofOutput.AdviceProto.Builder.class);
}
public interface CheckerOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.tfprof.AdviceProto.Checker)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string reports = 2;
*/
java.util.List
getReportsList();
/**
* repeated string reports = 2;
*/
int getReportsCount();
/**
* repeated string reports = 2;
*/
java.lang.String getReports(int index);
/**
* repeated string reports = 2;
*/
com.google.protobuf.ByteString
getReportsBytes(int index);
}
/**
* Protobuf type {@code tensorflow.tfprof.AdviceProto.Checker}
*/
public static final class Checker extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.tfprof.AdviceProto.Checker)
CheckerOrBuilder {
private static final long serialVersionUID = 0L;
// Use Checker.newBuilder() to construct.
private Checker(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Checker() {
reports_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Checker(
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;
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
reports_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
reports_.add(s);
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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_ & 0x00000001) == 0x00000001)) {
reports_ = reports_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_AdviceProto_Checker_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_AdviceProto_Checker_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.tfprof.TfprofOutput.AdviceProto.Checker.class, tensorflow.tfprof.TfprofOutput.AdviceProto.Checker.Builder.class);
}
public static final int REPORTS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList reports_;
/**
* repeated string reports = 2;
*/
public com.google.protobuf.ProtocolStringList
getReportsList() {
return reports_;
}
/**
* repeated string reports = 2;
*/
public int getReportsCount() {
return reports_.size();
}
/**
* repeated string reports = 2;
*/
public java.lang.String getReports(int index) {
return reports_.get(index);
}
/**
* repeated string reports = 2;
*/
public com.google.protobuf.ByteString
getReportsBytes(int index) {
return reports_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < reports_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, reports_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < reports_.size(); i++) {
dataSize += computeStringSizeNoTag(reports_.getRaw(i));
}
size += dataSize;
size += 1 * getReportsList().size();
}
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 tensorflow.tfprof.TfprofOutput.AdviceProto.Checker)) {
return super.equals(obj);
}
tensorflow.tfprof.TfprofOutput.AdviceProto.Checker other = (tensorflow.tfprof.TfprofOutput.AdviceProto.Checker) obj;
boolean result = true;
result = result && getReportsList()
.equals(other.getReportsList());
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();
if (getReportsCount() > 0) {
hash = (37 * hash) + REPORTS_FIELD_NUMBER;
hash = (53 * hash) + getReportsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.tfprof.TfprofOutput.AdviceProto.Checker parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.tfprof.TfprofOutput.AdviceProto.Checker parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.tfprof.TfprofOutput.AdviceProto.Checker parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.tfprof.TfprofOutput.AdviceProto.Checker parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.tfprof.TfprofOutput.AdviceProto.Checker parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.tfprof.TfprofOutput.AdviceProto.Checker parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.tfprof.TfprofOutput.AdviceProto.Checker parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.tfprof.TfprofOutput.AdviceProto.Checker 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 tensorflow.tfprof.TfprofOutput.AdviceProto.Checker parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.tfprof.TfprofOutput.AdviceProto.Checker 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 tensorflow.tfprof.TfprofOutput.AdviceProto.Checker parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.tfprof.TfprofOutput.AdviceProto.Checker parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tensorflow.tfprof.TfprofOutput.AdviceProto.Checker prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
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.tfprof.AdviceProto.Checker}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.tfprof.AdviceProto.Checker)
tensorflow.tfprof.TfprofOutput.AdviceProto.CheckerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_AdviceProto_Checker_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_AdviceProto_Checker_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.tfprof.TfprofOutput.AdviceProto.Checker.class, tensorflow.tfprof.TfprofOutput.AdviceProto.Checker.Builder.class);
}
// Construct using tensorflow.tfprof.TfprofOutput.AdviceProto.Checker.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
reports_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_AdviceProto_Checker_descriptor;
}
@java.lang.Override
public tensorflow.tfprof.TfprofOutput.AdviceProto.Checker getDefaultInstanceForType() {
return tensorflow.tfprof.TfprofOutput.AdviceProto.Checker.getDefaultInstance();
}
@java.lang.Override
public tensorflow.tfprof.TfprofOutput.AdviceProto.Checker build() {
tensorflow.tfprof.TfprofOutput.AdviceProto.Checker result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.tfprof.TfprofOutput.AdviceProto.Checker buildPartial() {
tensorflow.tfprof.TfprofOutput.AdviceProto.Checker result = new tensorflow.tfprof.TfprofOutput.AdviceProto.Checker(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
reports_ = reports_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.reports_ = reports_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tensorflow.tfprof.TfprofOutput.AdviceProto.Checker) {
return mergeFrom((tensorflow.tfprof.TfprofOutput.AdviceProto.Checker)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.tfprof.TfprofOutput.AdviceProto.Checker other) {
if (other == tensorflow.tfprof.TfprofOutput.AdviceProto.Checker.getDefaultInstance()) return this;
if (!other.reports_.isEmpty()) {
if (reports_.isEmpty()) {
reports_ = other.reports_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureReportsIsMutable();
reports_.addAll(other.reports_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
tensorflow.tfprof.TfprofOutput.AdviceProto.Checker parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.tfprof.TfprofOutput.AdviceProto.Checker) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList reports_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureReportsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
reports_ = new com.google.protobuf.LazyStringArrayList(reports_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string reports = 2;
*/
public com.google.protobuf.ProtocolStringList
getReportsList() {
return reports_.getUnmodifiableView();
}
/**
* repeated string reports = 2;
*/
public int getReportsCount() {
return reports_.size();
}
/**
* repeated string reports = 2;
*/
public java.lang.String getReports(int index) {
return reports_.get(index);
}
/**
* repeated string reports = 2;
*/
public com.google.protobuf.ByteString
getReportsBytes(int index) {
return reports_.getByteString(index);
}
/**
* repeated string reports = 2;
*/
public Builder setReports(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureReportsIsMutable();
reports_.set(index, value);
onChanged();
return this;
}
/**
* repeated string reports = 2;
*/
public Builder addReports(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureReportsIsMutable();
reports_.add(value);
onChanged();
return this;
}
/**
* repeated string reports = 2;
*/
public Builder addAllReports(
java.lang.Iterable values) {
ensureReportsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, reports_);
onChanged();
return this;
}
/**
* repeated string reports = 2;
*/
public Builder clearReports() {
reports_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string reports = 2;
*/
public Builder addReportsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureReportsIsMutable();
reports_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.tfprof.AdviceProto.Checker)
}
// @@protoc_insertion_point(class_scope:tensorflow.tfprof.AdviceProto.Checker)
private static final tensorflow.tfprof.TfprofOutput.AdviceProto.Checker DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.tfprof.TfprofOutput.AdviceProto.Checker();
}
public static tensorflow.tfprof.TfprofOutput.AdviceProto.Checker getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Checker parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Checker(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tensorflow.tfprof.TfprofOutput.AdviceProto.Checker getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int CHECKERS_FIELD_NUMBER = 1;
private static final class CheckersDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, tensorflow.tfprof.TfprofOutput.AdviceProto.Checker> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_AdviceProto_CheckersEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
tensorflow.tfprof.TfprofOutput.AdviceProto.Checker.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, tensorflow.tfprof.TfprofOutput.AdviceProto.Checker> checkers_;
private com.google.protobuf.MapField
internalGetCheckers() {
if (checkers_ == null) {
return com.google.protobuf.MapField.emptyMapField(
CheckersDefaultEntryHolder.defaultEntry);
}
return checkers_;
}
public int getCheckersCount() {
return internalGetCheckers().getMap().size();
}
/**
*
* checker name -> a list of reports from the checker.
*
*
* map<string, .tensorflow.tfprof.AdviceProto.Checker> checkers = 1;
*/
public boolean containsCheckers(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetCheckers().getMap().containsKey(key);
}
/**
* Use {@link #getCheckersMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getCheckers() {
return getCheckersMap();
}
/**
*
* checker name -> a list of reports from the checker.
*
*
* map<string, .tensorflow.tfprof.AdviceProto.Checker> checkers = 1;
*/
public java.util.Map getCheckersMap() {
return internalGetCheckers().getMap();
}
/**
*
* checker name -> a list of reports from the checker.
*
*
* map<string, .tensorflow.tfprof.AdviceProto.Checker> checkers = 1;
*/
public tensorflow.tfprof.TfprofOutput.AdviceProto.Checker getCheckersOrDefault(
java.lang.String key,
tensorflow.tfprof.TfprofOutput.AdviceProto.Checker defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetCheckers().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* checker name -> a list of reports from the checker.
*
*
* map<string, .tensorflow.tfprof.AdviceProto.Checker> checkers = 1;
*/
public tensorflow.tfprof.TfprofOutput.AdviceProto.Checker getCheckersOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetCheckers().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetCheckers(),
CheckersDefaultEntryHolder.defaultEntry,
1);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetCheckers().getMap().entrySet()) {
com.google.protobuf.MapEntry
checkers__ = CheckersDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, checkers__);
}
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 tensorflow.tfprof.TfprofOutput.AdviceProto)) {
return super.equals(obj);
}
tensorflow.tfprof.TfprofOutput.AdviceProto other = (tensorflow.tfprof.TfprofOutput.AdviceProto) obj;
boolean result = true;
result = result && internalGetCheckers().equals(
other.internalGetCheckers());
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();
if (!internalGetCheckers().getMap().isEmpty()) {
hash = (37 * hash) + CHECKERS_FIELD_NUMBER;
hash = (53 * hash) + internalGetCheckers().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.tfprof.TfprofOutput.AdviceProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.tfprof.TfprofOutput.AdviceProto parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.tfprof.TfprofOutput.AdviceProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.tfprof.TfprofOutput.AdviceProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.tfprof.TfprofOutput.AdviceProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.tfprof.TfprofOutput.AdviceProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.tfprof.TfprofOutput.AdviceProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.tfprof.TfprofOutput.AdviceProto 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 tensorflow.tfprof.TfprofOutput.AdviceProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.tfprof.TfprofOutput.AdviceProto 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 tensorflow.tfprof.TfprofOutput.AdviceProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.tfprof.TfprofOutput.AdviceProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tensorflow.tfprof.TfprofOutput.AdviceProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
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.tfprof.AdviceProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.tfprof.AdviceProto)
tensorflow.tfprof.TfprofOutput.AdviceProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_AdviceProto_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetCheckers();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableCheckers();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_AdviceProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.tfprof.TfprofOutput.AdviceProto.class, tensorflow.tfprof.TfprofOutput.AdviceProto.Builder.class);
}
// Construct using tensorflow.tfprof.TfprofOutput.AdviceProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
internalGetMutableCheckers().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.tfprof.TfprofOutput.internal_static_tensorflow_tfprof_AdviceProto_descriptor;
}
@java.lang.Override
public tensorflow.tfprof.TfprofOutput.AdviceProto getDefaultInstanceForType() {
return tensorflow.tfprof.TfprofOutput.AdviceProto.getDefaultInstance();
}
@java.lang.Override
public tensorflow.tfprof.TfprofOutput.AdviceProto build() {
tensorflow.tfprof.TfprofOutput.AdviceProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.tfprof.TfprofOutput.AdviceProto buildPartial() {
tensorflow.tfprof.TfprofOutput.AdviceProto result = new tensorflow.tfprof.TfprofOutput.AdviceProto(this);
int from_bitField0_ = bitField0_;
result.checkers_ = internalGetCheckers();
result.checkers_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tensorflow.tfprof.TfprofOutput.AdviceProto) {
return mergeFrom((tensorflow.tfprof.TfprofOutput.AdviceProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.tfprof.TfprofOutput.AdviceProto other) {
if (other == tensorflow.tfprof.TfprofOutput.AdviceProto.getDefaultInstance()) return this;
internalGetMutableCheckers().mergeFrom(
other.internalGetCheckers());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
tensorflow.tfprof.TfprofOutput.AdviceProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.tfprof.TfprofOutput.AdviceProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.MapField<
java.lang.String, tensorflow.tfprof.TfprofOutput.AdviceProto.Checker> checkers_;
private com.google.protobuf.MapField
internalGetCheckers() {
if (checkers_ == null) {
return com.google.protobuf.MapField.emptyMapField(
CheckersDefaultEntryHolder.defaultEntry);
}
return checkers_;
}
private com.google.protobuf.MapField
internalGetMutableCheckers() {
onChanged();;
if (checkers_ == null) {
checkers_ = com.google.protobuf.MapField.newMapField(
CheckersDefaultEntryHolder.defaultEntry);
}
if (!checkers_.isMutable()) {
checkers_ = checkers_.copy();
}
return checkers_;
}
public int getCheckersCount() {
return internalGetCheckers().getMap().size();
}
/**
*
* checker name -> a list of reports from the checker.
*
*
* map<string, .tensorflow.tfprof.AdviceProto.Checker> checkers = 1;
*/
public boolean containsCheckers(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetCheckers().getMap().containsKey(key);
}
/**
* Use {@link #getCheckersMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getCheckers() {
return getCheckersMap();
}
/**
*
* checker name -> a list of reports from the checker.
*
*
* map<string, .tensorflow.tfprof.AdviceProto.Checker> checkers = 1;
*/
public java.util.Map getCheckersMap() {
return internalGetCheckers().getMap();
}
/**
*
* checker name -> a list of reports from the checker.
*
*
* map<string, .tensorflow.tfprof.AdviceProto.Checker> checkers = 1;
*/
public tensorflow.tfprof.TfprofOutput.AdviceProto.Checker getCheckersOrDefault(
java.lang.String key,
tensorflow.tfprof.TfprofOutput.AdviceProto.Checker defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetCheckers().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* checker name -> a list of reports from the checker.
*
*
* map<string, .tensorflow.tfprof.AdviceProto.Checker> checkers = 1;
*/
public tensorflow.tfprof.TfprofOutput.AdviceProto.Checker getCheckersOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetCheckers().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearCheckers() {
internalGetMutableCheckers().getMutableMap()
.clear();
return this;
}
/**
*
* checker name -> a list of reports from the checker.
*
*
* map<string, .tensorflow.tfprof.AdviceProto.Checker> checkers = 1;
*/
public Builder removeCheckers(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableCheckers().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableCheckers() {
return internalGetMutableCheckers().getMutableMap();
}
/**
*
* checker name -> a list of reports from the checker.
*
*
* map<string, .tensorflow.tfprof.AdviceProto.Checker> checkers = 1;
*/
public Builder putCheckers(
java.lang.String key,
tensorflow.tfprof.TfprofOutput.AdviceProto.Checker value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableCheckers().getMutableMap()
.put(key, value);
return this;
}
/**
*
* checker name -> a list of reports from the checker.
*
*
* map<string, .tensorflow.tfprof.AdviceProto.Checker> checkers = 1;
*/
public Builder putAllCheckers(
java.util.Map values) {
internalGetMutableCheckers().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.tfprof.AdviceProto)
}
// @@protoc_insertion_point(class_scope:tensorflow.tfprof.AdviceProto)
private static final tensorflow.tfprof.TfprofOutput.AdviceProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.tfprof.TfprofOutput.AdviceProto();
}
public static tensorflow.tfprof.TfprofOutput.AdviceProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AdviceProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AdviceProto(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tensorflow.tfprof.TfprofOutput.AdviceProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_tfprof_TFProfTensorProto_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_tfprof_TFProfTensorProto_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_tfprof_GraphNodeProto_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_tfprof_GraphNodeProto_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_tfprof_GraphNodeProto_InputShapesEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_tfprof_GraphNodeProto_InputShapesEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_tfprof_MultiGraphNodeProto_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_tfprof_MultiGraphNodeProto_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_tfprof_AdviceProto_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_tfprof_AdviceProto_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_tfprof_AdviceProto_CheckersEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_tfprof_AdviceProto_CheckersEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_tfprof_AdviceProto_Checker_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_tfprof_AdviceProto_Checker_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n,tensorflow/core/profiler/tfprof_output" +
".proto\022\021tensorflow.tfprof\032,tensorflow/co" +
"re/framework/tensor_shape.proto\032%tensorf" +
"low/core/framework/types.proto\"v\n\021TFProf" +
"TensorProto\022#\n\005dtype\030\001 \001(\0162\024.tensorflow." +
"DataType\022\024\n\014value_double\030\002 \003(\001\022\023\n\013value_" +
"int64\030\003 \003(\003\022\021\n\tvalue_str\030\004 \003(\t\"\216\007\n\016Graph" +
"NodeProto\022\014\n\004name\030\001 \001(\t\022:\n\014tensor_value\030" +
"\017 \001(\0132$.tensorflow.tfprof.TFProfTensorPr" +
"oto\022\021\n\trun_count\030\025 \001(\003\022\023\n\013exec_micros\030\002 " +
"\001(\003\022\037\n\027accelerator_exec_micros\030\021 \001(\003\022\027\n\017" +
"cpu_exec_micros\030\022 \001(\003\022\027\n\017requested_bytes" +
"\030\003 \001(\003\022\022\n\npeak_bytes\030\030 \001(\003\022\026\n\016residual_b" +
"ytes\030\031 \001(\003\022\024\n\014output_bytes\030\032 \001(\003\022\022\n\npara" +
"meters\030\004 \001(\003\022\021\n\tfloat_ops\030\r \001(\003\022\017\n\007devic" +
"es\030\n \003(\t\022\036\n\026total_definition_count\030\027 \001(\003" +
"\022\027\n\017total_run_count\030\026 \001(\003\022\031\n\021total_exec_" +
"micros\030\006 \001(\003\022%\n\035total_accelerator_exec_m" +
"icros\030\023 \001(\003\022\035\n\025total_cpu_exec_micros\030\024 \001" +
"(\003\022\035\n\025total_requested_bytes\030\007 \001(\003\022\030\n\020tot" +
"al_peak_bytes\030\033 \001(\003\022\034\n\024total_residual_by" +
"tes\030\034 \001(\003\022\032\n\022total_output_bytes\030\035 \001(\003\022\030\n" +
"\020total_parameters\030\010 \001(\003\022\027\n\017total_float_o" +
"ps\030\016 \001(\003\022,\n\006shapes\030\013 \003(\0132\034.tensorflow.Te" +
"nsorShapeProto\022H\n\014input_shapes\030\020 \003(\01322.t" +
"ensorflow.tfprof.GraphNodeProto.InputSha" +
"pesEntry\0223\n\010children\030\014 \003(\0132!.tensorflow." +
"tfprof.GraphNodeProto\032P\n\020InputShapesEntr" +
"y\022\013\n\003key\030\001 \001(\005\022+\n\005value\030\002 \001(\0132\034.tensorfl" +
"ow.TensorShapeProto:\0028\001\"\355\004\n\023MultiGraphNo" +
"deProto\022\014\n\004name\030\001 \001(\t\022\023\n\013exec_micros\030\002 \001" +
"(\003\022\037\n\027accelerator_exec_micros\030\014 \001(\003\022\027\n\017c" +
"pu_exec_micros\030\r \001(\003\022\027\n\017requested_bytes\030" +
"\003 \001(\003\022\022\n\npeak_bytes\030\020 \001(\003\022\026\n\016residual_by" +
"tes\030\021 \001(\003\022\024\n\014output_bytes\030\022 \001(\003\022\022\n\nparam" +
"eters\030\004 \001(\003\022\021\n\tfloat_ops\030\005 \001(\003\022\031\n\021total_" +
"exec_micros\030\006 \001(\003\022%\n\035total_accelerator_e" +
"xec_micros\030\016 \001(\003\022\035\n\025total_cpu_exec_micro" +
"s\030\017 \001(\003\022\035\n\025total_requested_bytes\030\007 \001(\003\022\030" +
"\n\020total_peak_bytes\030\023 \001(\003\022\034\n\024total_residu" +
"al_bytes\030\024 \001(\003\022\032\n\022total_output_bytes\030\025 \001" +
"(\003\022\030\n\020total_parameters\030\010 \001(\003\022\027\n\017total_fl" +
"oat_ops\030\t \001(\003\0226\n\013graph_nodes\030\n \003(\0132!.ten" +
"sorflow.tfprof.GraphNodeProto\0228\n\010childre" +
"n\030\013 \003(\0132&.tensorflow.tfprof.MultiGraphNo" +
"deProto\"\302\001\n\013AdviceProto\022>\n\010checkers\030\001 \003(" +
"\0132,.tensorflow.tfprof.AdviceProto.Checke" +
"rsEntry\032W\n\rCheckersEntry\022\013\n\003key\030\001 \001(\t\0225\n" +
"\005value\030\002 \001(\0132&.tensorflow.tfprof.AdviceP" +
"roto.Checker:\0028\001\032\032\n\007Checker\022\017\n\007reports\030\002" +
" \003(\tb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.tensorflow.framework.TensorShapeProtos.getDescriptor(),
org.tensorflow.framework.TypesProtos.getDescriptor(),
}, assigner);
internal_static_tensorflow_tfprof_TFProfTensorProto_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_tensorflow_tfprof_TFProfTensorProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_tfprof_TFProfTensorProto_descriptor,
new java.lang.String[] { "Dtype", "ValueDouble", "ValueInt64", "ValueStr", });
internal_static_tensorflow_tfprof_GraphNodeProto_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_tensorflow_tfprof_GraphNodeProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_tfprof_GraphNodeProto_descriptor,
new java.lang.String[] { "Name", "TensorValue", "RunCount", "ExecMicros", "AcceleratorExecMicros", "CpuExecMicros", "RequestedBytes", "PeakBytes", "ResidualBytes", "OutputBytes", "Parameters", "FloatOps", "Devices", "TotalDefinitionCount", "TotalRunCount", "TotalExecMicros", "TotalAcceleratorExecMicros", "TotalCpuExecMicros", "TotalRequestedBytes", "TotalPeakBytes", "TotalResidualBytes", "TotalOutputBytes", "TotalParameters", "TotalFloatOps", "Shapes", "InputShapes", "Children", });
internal_static_tensorflow_tfprof_GraphNodeProto_InputShapesEntry_descriptor =
internal_static_tensorflow_tfprof_GraphNodeProto_descriptor.getNestedTypes().get(0);
internal_static_tensorflow_tfprof_GraphNodeProto_InputShapesEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_tfprof_GraphNodeProto_InputShapesEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_tensorflow_tfprof_MultiGraphNodeProto_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_tensorflow_tfprof_MultiGraphNodeProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_tfprof_MultiGraphNodeProto_descriptor,
new java.lang.String[] { "Name", "ExecMicros", "AcceleratorExecMicros", "CpuExecMicros", "RequestedBytes", "PeakBytes", "ResidualBytes", "OutputBytes", "Parameters", "FloatOps", "TotalExecMicros", "TotalAcceleratorExecMicros", "TotalCpuExecMicros", "TotalRequestedBytes", "TotalPeakBytes", "TotalResidualBytes", "TotalOutputBytes", "TotalParameters", "TotalFloatOps", "GraphNodes", "Children", });
internal_static_tensorflow_tfprof_AdviceProto_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_tensorflow_tfprof_AdviceProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_tfprof_AdviceProto_descriptor,
new java.lang.String[] { "Checkers", });
internal_static_tensorflow_tfprof_AdviceProto_CheckersEntry_descriptor =
internal_static_tensorflow_tfprof_AdviceProto_descriptor.getNestedTypes().get(0);
internal_static_tensorflow_tfprof_AdviceProto_CheckersEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_tfprof_AdviceProto_CheckersEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_tensorflow_tfprof_AdviceProto_Checker_descriptor =
internal_static_tensorflow_tfprof_AdviceProto_descriptor.getNestedTypes().get(1);
internal_static_tensorflow_tfprof_AdviceProto_Checker_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_tfprof_AdviceProto_Checker_descriptor,
new java.lang.String[] { "Reports", });
org.tensorflow.framework.TensorShapeProtos.getDescriptor();
org.tensorflow.framework.TypesProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy