Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/framework/graph_transfer_info.proto
package org.tensorflow.framework;
/**
*
* Protocol buffer representing a handle to a tensorflow resource. Handles are
* not valid across executions, but can be serialized back and forth from within
* a single run.
*
*
* Protobuf type {@code tensorflow.GraphTransferInfo}
*/
public final class GraphTransferInfo extends
com.github.os72.protobuf351.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.GraphTransferInfo)
GraphTransferInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use GraphTransferInfo.newBuilder() to construct.
private GraphTransferInfo(com.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GraphTransferInfo() {
nodeInfo_ = java.util.Collections.emptyList();
constNodeInfo_ = java.util.Collections.emptyList();
nodeInputInfo_ = java.util.Collections.emptyList();
nodeOutputInfo_ = java.util.Collections.emptyList();
graphInputNodeInfo_ = java.util.Collections.emptyList();
graphOutputNodeInfo_ = java.util.Collections.emptyList();
destination_ = 0;
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GraphTransferInfo(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
nodeInfo_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
nodeInfo_.add(
input.readMessage(org.tensorflow.framework.GraphTransferInfo.NodeInfo.parser(), extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
constNodeInfo_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
constNodeInfo_.add(
input.readMessage(org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
nodeInputInfo_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
nodeInputInfo_.add(
input.readMessage(org.tensorflow.framework.GraphTransferInfo.NodeInputInfo.parser(), extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
nodeOutputInfo_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
nodeOutputInfo_.add(
input.readMessage(org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo.parser(), extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
graphInputNodeInfo_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
graphInputNodeInfo_.add(
input.readMessage(org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo.parser(), extensionRegistry));
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
graphOutputNodeInfo_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
graphOutputNodeInfo_.add(
input.readMessage(org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo.parser(), extensionRegistry));
break;
}
case 56: {
int rawValue = input.readEnum();
destination_ = rawValue;
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
nodeInfo_ = java.util.Collections.unmodifiableList(nodeInfo_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
constNodeInfo_ = java.util.Collections.unmodifiableList(constNodeInfo_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
nodeInputInfo_ = java.util.Collections.unmodifiableList(nodeInputInfo_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
nodeOutputInfo_ = java.util.Collections.unmodifiableList(nodeOutputInfo_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
graphInputNodeInfo_ = java.util.Collections.unmodifiableList(graphInputNodeInfo_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
graphOutputNodeInfo_ = java.util.Collections.unmodifiableList(graphOutputNodeInfo_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.GraphTransferInfo.class, org.tensorflow.framework.GraphTransferInfo.Builder.class);
}
/**
* Protobuf enum {@code tensorflow.GraphTransferInfo.Destination}
*/
public enum Destination
implements com.github.os72.protobuf351.ProtocolMessageEnum {
/**
* NOP = 0;
*/
NOP(0),
/**
* HEXAGON = 1;
*/
HEXAGON(1),
UNRECOGNIZED(-1),
;
/**
* NOP = 0;
*/
public static final int NOP_VALUE = 0;
/**
* HEXAGON = 1;
*/
public static final int HEXAGON_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Destination valueOf(int value) {
return forNumber(value);
}
public static Destination forNumber(int value) {
switch (value) {
case 0: return NOP;
case 1: return HEXAGON;
default: return null;
}
}
public static com.github.os72.protobuf351.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.github.os72.protobuf351.Internal.EnumLiteMap<
Destination> internalValueMap =
new com.github.os72.protobuf351.Internal.EnumLiteMap() {
public Destination findValueByNumber(int number) {
return Destination.forNumber(number);
}
};
public final com.github.os72.protobuf351.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.github.os72.protobuf351.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.github.os72.protobuf351.Descriptors.EnumDescriptor
getDescriptor() {
return org.tensorflow.framework.GraphTransferInfo.getDescriptor().getEnumTypes().get(0);
}
private static final Destination[] VALUES = values();
public static Destination valueOf(
com.github.os72.protobuf351.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Destination(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:tensorflow.GraphTransferInfo.Destination)
}
public interface NodeInputOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.GraphTransferInfo.NodeInput)
com.github.os72.protobuf351.MessageOrBuilder {
/**
* int32 node_id = 1;
*/
int getNodeId();
/**
* int32 output_port = 2;
*/
int getOutputPort();
}
/**
* Protobuf type {@code tensorflow.GraphTransferInfo.NodeInput}
*/
public static final class NodeInput extends
com.github.os72.protobuf351.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.GraphTransferInfo.NodeInput)
NodeInputOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeInput.newBuilder() to construct.
private NodeInput(com.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeInput() {
nodeId_ = 0;
outputPort_ = 0;
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeInput(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
nodeId_ = input.readInt32();
break;
}
case 16: {
outputPort_ = input.readInt32();
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_NodeInput_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_NodeInput_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.GraphTransferInfo.NodeInput.class, org.tensorflow.framework.GraphTransferInfo.NodeInput.Builder.class);
}
public static final int NODE_ID_FIELD_NUMBER = 1;
private int nodeId_;
/**
* int32 node_id = 1;
*/
public int getNodeId() {
return nodeId_;
}
public static final int OUTPUT_PORT_FIELD_NUMBER = 2;
private int outputPort_;
/**
* int32 output_port = 2;
*/
public int getOutputPort() {
return outputPort_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
if (nodeId_ != 0) {
output.writeInt32(1, nodeId_);
}
if (outputPort_ != 0) {
output.writeInt32(2, outputPort_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (nodeId_ != 0) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32Size(1, nodeId_);
}
if (outputPort_ != 0) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32Size(2, outputPort_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.framework.GraphTransferInfo.NodeInput)) {
return super.equals(obj);
}
org.tensorflow.framework.GraphTransferInfo.NodeInput other = (org.tensorflow.framework.GraphTransferInfo.NodeInput) obj;
boolean result = true;
result = result && (getNodeId()
== other.getNodeId());
result = result && (getOutputPort()
== other.getOutputPort());
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) + NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + getNodeId();
hash = (37 * hash) + OUTPUT_PORT_FIELD_NUMBER;
hash = (53 * hash) + getOutputPort();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInput parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInput parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInput parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInput parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInput parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInput parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInput parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInput parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInput parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInput parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInput parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInput parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.GraphTransferInfo.NodeInput prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.GraphTransferInfo.NodeInput}
*/
public static final class Builder extends
com.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferInfo.NodeInput)
org.tensorflow.framework.GraphTransferInfo.NodeInputOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_NodeInput_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_NodeInput_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.GraphTransferInfo.NodeInput.class, org.tensorflow.framework.GraphTransferInfo.NodeInput.Builder.class);
}
// Construct using org.tensorflow.framework.GraphTransferInfo.NodeInput.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
nodeId_ = 0;
outputPort_ = 0;
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_NodeInput_descriptor;
}
public org.tensorflow.framework.GraphTransferInfo.NodeInput getDefaultInstanceForType() {
return org.tensorflow.framework.GraphTransferInfo.NodeInput.getDefaultInstance();
}
public org.tensorflow.framework.GraphTransferInfo.NodeInput build() {
org.tensorflow.framework.GraphTransferInfo.NodeInput result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.framework.GraphTransferInfo.NodeInput buildPartial() {
org.tensorflow.framework.GraphTransferInfo.NodeInput result = new org.tensorflow.framework.GraphTransferInfo.NodeInput(this);
result.nodeId_ = nodeId_;
result.outputPort_ = outputPort_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.Message other) {
if (other instanceof org.tensorflow.framework.GraphTransferInfo.NodeInput) {
return mergeFrom((org.tensorflow.framework.GraphTransferInfo.NodeInput)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.GraphTransferInfo.NodeInput other) {
if (other == org.tensorflow.framework.GraphTransferInfo.NodeInput.getDefaultInstance()) return this;
if (other.getNodeId() != 0) {
setNodeId(other.getNodeId());
}
if (other.getOutputPort() != 0) {
setOutputPort(other.getOutputPort());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.GraphTransferInfo.NodeInput parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.GraphTransferInfo.NodeInput) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int nodeId_ ;
/**
* int32 node_id = 1;
*/
public int getNodeId() {
return nodeId_;
}
/**
* int32 node_id = 1;
*/
public Builder setNodeId(int value) {
nodeId_ = value;
onChanged();
return this;
}
/**
* int32 node_id = 1;
*/
public Builder clearNodeId() {
nodeId_ = 0;
onChanged();
return this;
}
private int outputPort_ ;
/**
* int32 output_port = 2;
*/
public int getOutputPort() {
return outputPort_;
}
/**
* int32 output_port = 2;
*/
public Builder setOutputPort(int value) {
outputPort_ = value;
onChanged();
return this;
}
/**
* int32 output_port = 2;
*/
public Builder clearOutputPort() {
outputPort_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.GraphTransferInfo.NodeInput)
}
// @@protoc_insertion_point(class_scope:tensorflow.GraphTransferInfo.NodeInput)
private static final org.tensorflow.framework.GraphTransferInfo.NodeInput DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.GraphTransferInfo.NodeInput();
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInput getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public NodeInput parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new NodeInput(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.framework.GraphTransferInfo.NodeInput getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NodeInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.GraphTransferInfo.NodeInfo)
com.github.os72.protobuf351.MessageOrBuilder {
/**
* string name = 1;
*/
java.lang.String getName();
/**
* string name = 1;
*/
com.github.os72.protobuf351.ByteString
getNameBytes();
/**
* int32 node_id = 2;
*/
int getNodeId();
/**
* string type_name = 3;
*/
java.lang.String getTypeName();
/**
* string type_name = 3;
*/
com.github.os72.protobuf351.ByteString
getTypeNameBytes();
/**
* int32 soc_op_id = 4;
*/
int getSocOpId();
/**
* int32 padding_id = 5;
*/
int getPaddingId();
/**
* int32 input_count = 6;
*/
int getInputCount();
/**
* int32 output_count = 7;
*/
int getOutputCount();
}
/**
* Protobuf type {@code tensorflow.GraphTransferInfo.NodeInfo}
*/
public static final class NodeInfo extends
com.github.os72.protobuf351.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.GraphTransferInfo.NodeInfo)
NodeInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeInfo.newBuilder() to construct.
private NodeInfo(com.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeInfo() {
name_ = "";
nodeId_ = 0;
typeName_ = "";
socOpId_ = 0;
paddingId_ = 0;
inputCount_ = 0;
outputCount_ = 0;
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeInfo(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 16: {
nodeId_ = input.readInt32();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
typeName_ = s;
break;
}
case 32: {
socOpId_ = input.readInt32();
break;
}
case 40: {
paddingId_ = input.readInt32();
break;
}
case 48: {
inputCount_ = input.readInt32();
break;
}
case 56: {
outputCount_ = input.readInt32();
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_NodeInfo_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_NodeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.GraphTransferInfo.NodeInfo.class, org.tensorflow.framework.GraphTransferInfo.NodeInfo.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object 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.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* string name = 1;
*/
public com.github.os72.protobuf351.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
public static final int NODE_ID_FIELD_NUMBER = 2;
private int nodeId_;
/**
* int32 node_id = 2;
*/
public int getNodeId() {
return nodeId_;
}
public static final int TYPE_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object typeName_;
/**
* string type_name = 3;
*/
public java.lang.String getTypeName() {
java.lang.Object ref = typeName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
typeName_ = s;
return s;
}
}
/**
* string type_name = 3;
*/
public com.github.os72.protobuf351.ByteString
getTypeNameBytes() {
java.lang.Object ref = typeName_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
typeName_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
public static final int SOC_OP_ID_FIELD_NUMBER = 4;
private int socOpId_;
/**
* int32 soc_op_id = 4;
*/
public int getSocOpId() {
return socOpId_;
}
public static final int PADDING_ID_FIELD_NUMBER = 5;
private int paddingId_;
/**
* int32 padding_id = 5;
*/
public int getPaddingId() {
return paddingId_;
}
public static final int INPUT_COUNT_FIELD_NUMBER = 6;
private int inputCount_;
/**
* int32 input_count = 6;
*/
public int getInputCount() {
return inputCount_;
}
public static final int OUTPUT_COUNT_FIELD_NUMBER = 7;
private int outputCount_;
/**
* int32 output_count = 7;
*/
public int getOutputCount() {
return outputCount_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, name_);
}
if (nodeId_ != 0) {
output.writeInt32(2, nodeId_);
}
if (!getTypeNameBytes().isEmpty()) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 3, typeName_);
}
if (socOpId_ != 0) {
output.writeInt32(4, socOpId_);
}
if (paddingId_ != 0) {
output.writeInt32(5, paddingId_);
}
if (inputCount_ != 0) {
output.writeInt32(6, inputCount_);
}
if (outputCount_ != 0) {
output.writeInt32(7, outputCount_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, name_);
}
if (nodeId_ != 0) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32Size(2, nodeId_);
}
if (!getTypeNameBytes().isEmpty()) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(3, typeName_);
}
if (socOpId_ != 0) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32Size(4, socOpId_);
}
if (paddingId_ != 0) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32Size(5, paddingId_);
}
if (inputCount_ != 0) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32Size(6, inputCount_);
}
if (outputCount_ != 0) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32Size(7, outputCount_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.framework.GraphTransferInfo.NodeInfo)) {
return super.equals(obj);
}
org.tensorflow.framework.GraphTransferInfo.NodeInfo other = (org.tensorflow.framework.GraphTransferInfo.NodeInfo) obj;
boolean result = true;
result = result && getName()
.equals(other.getName());
result = result && (getNodeId()
== other.getNodeId());
result = result && getTypeName()
.equals(other.getTypeName());
result = result && (getSocOpId()
== other.getSocOpId());
result = result && (getPaddingId()
== other.getPaddingId());
result = result && (getInputCount()
== other.getInputCount());
result = result && (getOutputCount()
== other.getOutputCount());
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) + NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + getNodeId();
hash = (37 * hash) + TYPE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getTypeName().hashCode();
hash = (37 * hash) + SOC_OP_ID_FIELD_NUMBER;
hash = (53 * hash) + getSocOpId();
hash = (37 * hash) + PADDING_ID_FIELD_NUMBER;
hash = (53 * hash) + getPaddingId();
hash = (37 * hash) + INPUT_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getInputCount();
hash = (37 * hash) + OUTPUT_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getOutputCount();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInfo parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInfo parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInfo parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInfo parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInfo parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInfo parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInfo parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInfo parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInfo parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInfo parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.GraphTransferInfo.NodeInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.GraphTransferInfo.NodeInfo}
*/
public static final class Builder extends
com.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferInfo.NodeInfo)
org.tensorflow.framework.GraphTransferInfo.NodeInfoOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_NodeInfo_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_NodeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.GraphTransferInfo.NodeInfo.class, org.tensorflow.framework.GraphTransferInfo.NodeInfo.Builder.class);
}
// Construct using org.tensorflow.framework.GraphTransferInfo.NodeInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
name_ = "";
nodeId_ = 0;
typeName_ = "";
socOpId_ = 0;
paddingId_ = 0;
inputCount_ = 0;
outputCount_ = 0;
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_NodeInfo_descriptor;
}
public org.tensorflow.framework.GraphTransferInfo.NodeInfo getDefaultInstanceForType() {
return org.tensorflow.framework.GraphTransferInfo.NodeInfo.getDefaultInstance();
}
public org.tensorflow.framework.GraphTransferInfo.NodeInfo build() {
org.tensorflow.framework.GraphTransferInfo.NodeInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.framework.GraphTransferInfo.NodeInfo buildPartial() {
org.tensorflow.framework.GraphTransferInfo.NodeInfo result = new org.tensorflow.framework.GraphTransferInfo.NodeInfo(this);
result.name_ = name_;
result.nodeId_ = nodeId_;
result.typeName_ = typeName_;
result.socOpId_ = socOpId_;
result.paddingId_ = paddingId_;
result.inputCount_ = inputCount_;
result.outputCount_ = outputCount_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.Message other) {
if (other instanceof org.tensorflow.framework.GraphTransferInfo.NodeInfo) {
return mergeFrom((org.tensorflow.framework.GraphTransferInfo.NodeInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.GraphTransferInfo.NodeInfo other) {
if (other == org.tensorflow.framework.GraphTransferInfo.NodeInfo.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.getNodeId() != 0) {
setNodeId(other.getNodeId());
}
if (!other.getTypeName().isEmpty()) {
typeName_ = other.typeName_;
onChanged();
}
if (other.getSocOpId() != 0) {
setSocOpId(other.getSocOpId());
}
if (other.getPaddingId() != 0) {
setPaddingId(other.getPaddingId());
}
if (other.getInputCount() != 0) {
setInputCount(other.getInputCount());
}
if (other.getOutputCount() != 0) {
setOutputCount(other.getOutputCount());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.GraphTransferInfo.NodeInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.GraphTransferInfo.NodeInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 1;
*/
public com.github.os72.protobuf351.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
/**
* string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 1;
*/
public Builder setNameBytes(
com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private int nodeId_ ;
/**
* int32 node_id = 2;
*/
public int getNodeId() {
return nodeId_;
}
/**
* int32 node_id = 2;
*/
public Builder setNodeId(int value) {
nodeId_ = value;
onChanged();
return this;
}
/**
* int32 node_id = 2;
*/
public Builder clearNodeId() {
nodeId_ = 0;
onChanged();
return this;
}
private java.lang.Object typeName_ = "";
/**
* string type_name = 3;
*/
public java.lang.String getTypeName() {
java.lang.Object ref = typeName_;
if (!(ref instanceof java.lang.String)) {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
typeName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string type_name = 3;
*/
public com.github.os72.protobuf351.ByteString
getTypeNameBytes() {
java.lang.Object ref = typeName_;
if (ref instanceof String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
typeName_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
/**
* string type_name = 3;
*/
public Builder setTypeName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
typeName_ = value;
onChanged();
return this;
}
/**
* string type_name = 3;
*/
public Builder clearTypeName() {
typeName_ = getDefaultInstance().getTypeName();
onChanged();
return this;
}
/**
* string type_name = 3;
*/
public Builder setTypeNameBytes(
com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
typeName_ = value;
onChanged();
return this;
}
private int socOpId_ ;
/**
* int32 soc_op_id = 4;
*/
public int getSocOpId() {
return socOpId_;
}
/**
* int32 soc_op_id = 4;
*/
public Builder setSocOpId(int value) {
socOpId_ = value;
onChanged();
return this;
}
/**
* int32 soc_op_id = 4;
*/
public Builder clearSocOpId() {
socOpId_ = 0;
onChanged();
return this;
}
private int paddingId_ ;
/**
* int32 padding_id = 5;
*/
public int getPaddingId() {
return paddingId_;
}
/**
* int32 padding_id = 5;
*/
public Builder setPaddingId(int value) {
paddingId_ = value;
onChanged();
return this;
}
/**
* int32 padding_id = 5;
*/
public Builder clearPaddingId() {
paddingId_ = 0;
onChanged();
return this;
}
private int inputCount_ ;
/**
* int32 input_count = 6;
*/
public int getInputCount() {
return inputCount_;
}
/**
* int32 input_count = 6;
*/
public Builder setInputCount(int value) {
inputCount_ = value;
onChanged();
return this;
}
/**
* int32 input_count = 6;
*/
public Builder clearInputCount() {
inputCount_ = 0;
onChanged();
return this;
}
private int outputCount_ ;
/**
* int32 output_count = 7;
*/
public int getOutputCount() {
return outputCount_;
}
/**
* int32 output_count = 7;
*/
public Builder setOutputCount(int value) {
outputCount_ = value;
onChanged();
return this;
}
/**
* int32 output_count = 7;
*/
public Builder clearOutputCount() {
outputCount_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.GraphTransferInfo.NodeInfo)
}
// @@protoc_insertion_point(class_scope:tensorflow.GraphTransferInfo.NodeInfo)
private static final org.tensorflow.framework.GraphTransferInfo.NodeInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.GraphTransferInfo.NodeInfo();
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public NodeInfo parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new NodeInfo(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.framework.GraphTransferInfo.NodeInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConstNodeInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.GraphTransferInfo.ConstNodeInfo)
com.github.os72.protobuf351.MessageOrBuilder {
/**
* string name = 1;
*/
java.lang.String getName();
/**
* string name = 1;
*/
com.github.os72.protobuf351.ByteString
getNameBytes();
/**
* int32 node_id = 2;
*/
int getNodeId();
/**
* repeated int64 shape = 3;
*/
java.util.List getShapeList();
/**
* repeated int64 shape = 3;
*/
int getShapeCount();
/**
* repeated int64 shape = 3;
*/
long getShape(int index);
/**
* bytes data = 4;
*/
com.github.os72.protobuf351.ByteString getData();
/**
* .tensorflow.DataType dtype = 5;
*/
int getDtypeValue();
/**
* .tensorflow.DataType dtype = 5;
*/
org.tensorflow.framework.DataType getDtype();
}
/**
* Protobuf type {@code tensorflow.GraphTransferInfo.ConstNodeInfo}
*/
public static final class ConstNodeInfo extends
com.github.os72.protobuf351.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.GraphTransferInfo.ConstNodeInfo)
ConstNodeInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConstNodeInfo.newBuilder() to construct.
private ConstNodeInfo(com.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConstNodeInfo() {
name_ = "";
nodeId_ = 0;
shape_ = java.util.Collections.emptyList();
data_ = com.github.os72.protobuf351.ByteString.EMPTY;
dtype_ = 0;
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConstNodeInfo(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 16: {
nodeId_ = input.readInt32();
break;
}
case 24: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
shape_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
shape_.add(input.readInt64());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
shape_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
shape_.add(input.readInt64());
}
input.popLimit(limit);
break;
}
case 34: {
data_ = input.readBytes();
break;
}
case 40: {
int rawValue = input.readEnum();
dtype_ = rawValue;
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
shape_ = java.util.Collections.unmodifiableList(shape_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_ConstNodeInfo_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_ConstNodeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo.class, org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object 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.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* string name = 1;
*/
public com.github.os72.protobuf351.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
public static final int NODE_ID_FIELD_NUMBER = 2;
private int nodeId_;
/**
* int32 node_id = 2;
*/
public int getNodeId() {
return nodeId_;
}
public static final int SHAPE_FIELD_NUMBER = 3;
private java.util.List shape_;
/**
* repeated int64 shape = 3;
*/
public java.util.List
getShapeList() {
return shape_;
}
/**
* repeated int64 shape = 3;
*/
public int getShapeCount() {
return shape_.size();
}
/**
* repeated int64 shape = 3;
*/
public long getShape(int index) {
return shape_.get(index);
}
private int shapeMemoizedSerializedSize = -1;
public static final int DATA_FIELD_NUMBER = 4;
private com.github.os72.protobuf351.ByteString data_;
/**
* bytes data = 4;
*/
public com.github.os72.protobuf351.ByteString getData() {
return data_;
}
public static final int DTYPE_FIELD_NUMBER = 5;
private int dtype_;
/**
* .tensorflow.DataType dtype = 5;
*/
public int getDtypeValue() {
return dtype_;
}
/**
* .tensorflow.DataType dtype = 5;
*/
public org.tensorflow.framework.DataType getDtype() {
org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(dtype_);
return result == null ? org.tensorflow.framework.DataType.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (!getNameBytes().isEmpty()) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, name_);
}
if (nodeId_ != 0) {
output.writeInt32(2, nodeId_);
}
if (getShapeList().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(shapeMemoizedSerializedSize);
}
for (int i = 0; i < shape_.size(); i++) {
output.writeInt64NoTag(shape_.get(i));
}
if (!data_.isEmpty()) {
output.writeBytes(4, data_);
}
if (dtype_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) {
output.writeEnum(5, dtype_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, name_);
}
if (nodeId_ != 0) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32Size(2, nodeId_);
}
{
int dataSize = 0;
for (int i = 0; i < shape_.size(); i++) {
dataSize += com.github.os72.protobuf351.CodedOutputStream
.computeInt64SizeNoTag(shape_.get(i));
}
size += dataSize;
if (!getShapeList().isEmpty()) {
size += 1;
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
shapeMemoizedSerializedSize = dataSize;
}
if (!data_.isEmpty()) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeBytesSize(4, data_);
}
if (dtype_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeEnumSize(5, dtype_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo)) {
return super.equals(obj);
}
org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo other = (org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo) obj;
boolean result = true;
result = result && getName()
.equals(other.getName());
result = result && (getNodeId()
== other.getNodeId());
result = result && getShapeList()
.equals(other.getShapeList());
result = result && getData()
.equals(other.getData());
result = result && dtype_ == other.dtype_;
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) + NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + getNodeId();
if (getShapeCount() > 0) {
hash = (37 * hash) + SHAPE_FIELD_NUMBER;
hash = (53 * hash) + getShapeList().hashCode();
}
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (37 * hash) + DTYPE_FIELD_NUMBER;
hash = (53 * hash) + dtype_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.GraphTransferInfo.ConstNodeInfo}
*/
public static final class Builder extends
com.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferInfo.ConstNodeInfo)
org.tensorflow.framework.GraphTransferInfo.ConstNodeInfoOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_ConstNodeInfo_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_ConstNodeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo.class, org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo.Builder.class);
}
// Construct using org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
name_ = "";
nodeId_ = 0;
shape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
data_ = com.github.os72.protobuf351.ByteString.EMPTY;
dtype_ = 0;
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_ConstNodeInfo_descriptor;
}
public org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo getDefaultInstanceForType() {
return org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo.getDefaultInstance();
}
public org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo build() {
org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo buildPartial() {
org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo result = new org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.name_ = name_;
result.nodeId_ = nodeId_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
shape_ = java.util.Collections.unmodifiableList(shape_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.shape_ = shape_;
result.data_ = data_;
result.dtype_ = dtype_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.Message other) {
if (other instanceof org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo) {
return mergeFrom((org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo other) {
if (other == org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.getNodeId() != 0) {
setNodeId(other.getNodeId());
}
if (!other.shape_.isEmpty()) {
if (shape_.isEmpty()) {
shape_ = other.shape_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureShapeIsMutable();
shape_.addAll(other.shape_);
}
onChanged();
}
if (other.getData() != com.github.os72.protobuf351.ByteString.EMPTY) {
setData(other.getData());
}
if (other.dtype_ != 0) {
setDtypeValue(other.getDtypeValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 1;
*/
public com.github.os72.protobuf351.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
/**
* string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 1;
*/
public Builder setNameBytes(
com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private int nodeId_ ;
/**
* int32 node_id = 2;
*/
public int getNodeId() {
return nodeId_;
}
/**
* int32 node_id = 2;
*/
public Builder setNodeId(int value) {
nodeId_ = value;
onChanged();
return this;
}
/**
* int32 node_id = 2;
*/
public Builder clearNodeId() {
nodeId_ = 0;
onChanged();
return this;
}
private java.util.List shape_ = java.util.Collections.emptyList();
private void ensureShapeIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
shape_ = new java.util.ArrayList(shape_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated int64 shape = 3;
*/
public java.util.List
getShapeList() {
return java.util.Collections.unmodifiableList(shape_);
}
/**
* repeated int64 shape = 3;
*/
public int getShapeCount() {
return shape_.size();
}
/**
* repeated int64 shape = 3;
*/
public long getShape(int index) {
return shape_.get(index);
}
/**
* repeated int64 shape = 3;
*/
public Builder setShape(
int index, long value) {
ensureShapeIsMutable();
shape_.set(index, value);
onChanged();
return this;
}
/**
* repeated int64 shape = 3;
*/
public Builder addShape(long value) {
ensureShapeIsMutable();
shape_.add(value);
onChanged();
return this;
}
/**
* repeated int64 shape = 3;
*/
public Builder addAllShape(
java.lang.Iterable extends java.lang.Long> values) {
ensureShapeIsMutable();
com.github.os72.protobuf351.AbstractMessageLite.Builder.addAll(
values, shape_);
onChanged();
return this;
}
/**
* repeated int64 shape = 3;
*/
public Builder clearShape() {
shape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
private com.github.os72.protobuf351.ByteString data_ = com.github.os72.protobuf351.ByteString.EMPTY;
/**
* bytes data = 4;
*/
public com.github.os72.protobuf351.ByteString getData() {
return data_;
}
/**
* bytes data = 4;
*/
public Builder setData(com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
* bytes data = 4;
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private int dtype_ = 0;
/**
* .tensorflow.DataType dtype = 5;
*/
public int getDtypeValue() {
return dtype_;
}
/**
* .tensorflow.DataType dtype = 5;
*/
public Builder setDtypeValue(int value) {
dtype_ = value;
onChanged();
return this;
}
/**
* .tensorflow.DataType dtype = 5;
*/
public org.tensorflow.framework.DataType getDtype() {
org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(dtype_);
return result == null ? org.tensorflow.framework.DataType.UNRECOGNIZED : result;
}
/**
* .tensorflow.DataType dtype = 5;
*/
public Builder setDtype(org.tensorflow.framework.DataType value) {
if (value == null) {
throw new NullPointerException();
}
dtype_ = value.getNumber();
onChanged();
return this;
}
/**
* .tensorflow.DataType dtype = 5;
*/
public Builder clearDtype() {
dtype_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.GraphTransferInfo.ConstNodeInfo)
}
// @@protoc_insertion_point(class_scope:tensorflow.GraphTransferInfo.ConstNodeInfo)
private static final org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo();
}
public static org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public ConstNodeInfo parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new ConstNodeInfo(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NodeInputInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.GraphTransferInfo.NodeInputInfo)
com.github.os72.protobuf351.MessageOrBuilder {
/**
* int32 node_id = 1;
*/
int getNodeId();
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
java.util.List
getNodeInputList();
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
org.tensorflow.framework.GraphTransferInfo.NodeInput getNodeInput(int index);
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
int getNodeInputCount();
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
java.util.List extends org.tensorflow.framework.GraphTransferInfo.NodeInputOrBuilder>
getNodeInputOrBuilderList();
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
org.tensorflow.framework.GraphTransferInfo.NodeInputOrBuilder getNodeInputOrBuilder(
int index);
}
/**
* Protobuf type {@code tensorflow.GraphTransferInfo.NodeInputInfo}
*/
public static final class NodeInputInfo extends
com.github.os72.protobuf351.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.GraphTransferInfo.NodeInputInfo)
NodeInputInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeInputInfo.newBuilder() to construct.
private NodeInputInfo(com.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeInputInfo() {
nodeId_ = 0;
nodeInput_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeInputInfo(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
nodeId_ = input.readInt32();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
nodeInput_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
nodeInput_.add(
input.readMessage(org.tensorflow.framework.GraphTransferInfo.NodeInput.parser(), extensionRegistry));
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
nodeInput_ = java.util.Collections.unmodifiableList(nodeInput_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_NodeInputInfo_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_NodeInputInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.GraphTransferInfo.NodeInputInfo.class, org.tensorflow.framework.GraphTransferInfo.NodeInputInfo.Builder.class);
}
private int bitField0_;
public static final int NODE_ID_FIELD_NUMBER = 1;
private int nodeId_;
/**
* int32 node_id = 1;
*/
public int getNodeId() {
return nodeId_;
}
public static final int NODE_INPUT_FIELD_NUMBER = 2;
private java.util.List nodeInput_;
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public java.util.List getNodeInputList() {
return nodeInput_;
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public java.util.List extends org.tensorflow.framework.GraphTransferInfo.NodeInputOrBuilder>
getNodeInputOrBuilderList() {
return nodeInput_;
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public int getNodeInputCount() {
return nodeInput_.size();
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public org.tensorflow.framework.GraphTransferInfo.NodeInput getNodeInput(int index) {
return nodeInput_.get(index);
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public org.tensorflow.framework.GraphTransferInfo.NodeInputOrBuilder getNodeInputOrBuilder(
int index) {
return nodeInput_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
if (nodeId_ != 0) {
output.writeInt32(1, nodeId_);
}
for (int i = 0; i < nodeInput_.size(); i++) {
output.writeMessage(2, nodeInput_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (nodeId_ != 0) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32Size(1, nodeId_);
}
for (int i = 0; i < nodeInput_.size(); i++) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(2, nodeInput_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.framework.GraphTransferInfo.NodeInputInfo)) {
return super.equals(obj);
}
org.tensorflow.framework.GraphTransferInfo.NodeInputInfo other = (org.tensorflow.framework.GraphTransferInfo.NodeInputInfo) obj;
boolean result = true;
result = result && (getNodeId()
== other.getNodeId());
result = result && getNodeInputList()
.equals(other.getNodeInputList());
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) + NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + getNodeId();
if (getNodeInputCount() > 0) {
hash = (37 * hash) + NODE_INPUT_FIELD_NUMBER;
hash = (53 * hash) + getNodeInputList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInputInfo parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInputInfo parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInputInfo parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInputInfo parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInputInfo parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInputInfo parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInputInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInputInfo parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInputInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInputInfo parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInputInfo parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInputInfo parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.GraphTransferInfo.NodeInputInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.GraphTransferInfo.NodeInputInfo}
*/
public static final class Builder extends
com.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferInfo.NodeInputInfo)
org.tensorflow.framework.GraphTransferInfo.NodeInputInfoOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_NodeInputInfo_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_NodeInputInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.GraphTransferInfo.NodeInputInfo.class, org.tensorflow.framework.GraphTransferInfo.NodeInputInfo.Builder.class);
}
// Construct using org.tensorflow.framework.GraphTransferInfo.NodeInputInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getNodeInputFieldBuilder();
}
}
public Builder clear() {
super.clear();
nodeId_ = 0;
if (nodeInputBuilder_ == null) {
nodeInput_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
nodeInputBuilder_.clear();
}
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_NodeInputInfo_descriptor;
}
public org.tensorflow.framework.GraphTransferInfo.NodeInputInfo getDefaultInstanceForType() {
return org.tensorflow.framework.GraphTransferInfo.NodeInputInfo.getDefaultInstance();
}
public org.tensorflow.framework.GraphTransferInfo.NodeInputInfo build() {
org.tensorflow.framework.GraphTransferInfo.NodeInputInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.framework.GraphTransferInfo.NodeInputInfo buildPartial() {
org.tensorflow.framework.GraphTransferInfo.NodeInputInfo result = new org.tensorflow.framework.GraphTransferInfo.NodeInputInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.nodeId_ = nodeId_;
if (nodeInputBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
nodeInput_ = java.util.Collections.unmodifiableList(nodeInput_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.nodeInput_ = nodeInput_;
} else {
result.nodeInput_ = nodeInputBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.Message other) {
if (other instanceof org.tensorflow.framework.GraphTransferInfo.NodeInputInfo) {
return mergeFrom((org.tensorflow.framework.GraphTransferInfo.NodeInputInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.GraphTransferInfo.NodeInputInfo other) {
if (other == org.tensorflow.framework.GraphTransferInfo.NodeInputInfo.getDefaultInstance()) return this;
if (other.getNodeId() != 0) {
setNodeId(other.getNodeId());
}
if (nodeInputBuilder_ == null) {
if (!other.nodeInput_.isEmpty()) {
if (nodeInput_.isEmpty()) {
nodeInput_ = other.nodeInput_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureNodeInputIsMutable();
nodeInput_.addAll(other.nodeInput_);
}
onChanged();
}
} else {
if (!other.nodeInput_.isEmpty()) {
if (nodeInputBuilder_.isEmpty()) {
nodeInputBuilder_.dispose();
nodeInputBuilder_ = null;
nodeInput_ = other.nodeInput_;
bitField0_ = (bitField0_ & ~0x00000002);
nodeInputBuilder_ =
com.github.os72.protobuf351.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNodeInputFieldBuilder() : null;
} else {
nodeInputBuilder_.addAllMessages(other.nodeInput_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.GraphTransferInfo.NodeInputInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.GraphTransferInfo.NodeInputInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int nodeId_ ;
/**
* int32 node_id = 1;
*/
public int getNodeId() {
return nodeId_;
}
/**
* int32 node_id = 1;
*/
public Builder setNodeId(int value) {
nodeId_ = value;
onChanged();
return this;
}
/**
* int32 node_id = 1;
*/
public Builder clearNodeId() {
nodeId_ = 0;
onChanged();
return this;
}
private java.util.List nodeInput_ =
java.util.Collections.emptyList();
private void ensureNodeInputIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
nodeInput_ = new java.util.ArrayList(nodeInput_);
bitField0_ |= 0x00000002;
}
}
private com.github.os72.protobuf351.RepeatedFieldBuilderV3<
org.tensorflow.framework.GraphTransferInfo.NodeInput, org.tensorflow.framework.GraphTransferInfo.NodeInput.Builder, org.tensorflow.framework.GraphTransferInfo.NodeInputOrBuilder> nodeInputBuilder_;
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public java.util.List getNodeInputList() {
if (nodeInputBuilder_ == null) {
return java.util.Collections.unmodifiableList(nodeInput_);
} else {
return nodeInputBuilder_.getMessageList();
}
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public int getNodeInputCount() {
if (nodeInputBuilder_ == null) {
return nodeInput_.size();
} else {
return nodeInputBuilder_.getCount();
}
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public org.tensorflow.framework.GraphTransferInfo.NodeInput getNodeInput(int index) {
if (nodeInputBuilder_ == null) {
return nodeInput_.get(index);
} else {
return nodeInputBuilder_.getMessage(index);
}
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public Builder setNodeInput(
int index, org.tensorflow.framework.GraphTransferInfo.NodeInput value) {
if (nodeInputBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeInputIsMutable();
nodeInput_.set(index, value);
onChanged();
} else {
nodeInputBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public Builder setNodeInput(
int index, org.tensorflow.framework.GraphTransferInfo.NodeInput.Builder builderForValue) {
if (nodeInputBuilder_ == null) {
ensureNodeInputIsMutable();
nodeInput_.set(index, builderForValue.build());
onChanged();
} else {
nodeInputBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public Builder addNodeInput(org.tensorflow.framework.GraphTransferInfo.NodeInput value) {
if (nodeInputBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeInputIsMutable();
nodeInput_.add(value);
onChanged();
} else {
nodeInputBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public Builder addNodeInput(
int index, org.tensorflow.framework.GraphTransferInfo.NodeInput value) {
if (nodeInputBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeInputIsMutable();
nodeInput_.add(index, value);
onChanged();
} else {
nodeInputBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public Builder addNodeInput(
org.tensorflow.framework.GraphTransferInfo.NodeInput.Builder builderForValue) {
if (nodeInputBuilder_ == null) {
ensureNodeInputIsMutable();
nodeInput_.add(builderForValue.build());
onChanged();
} else {
nodeInputBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public Builder addNodeInput(
int index, org.tensorflow.framework.GraphTransferInfo.NodeInput.Builder builderForValue) {
if (nodeInputBuilder_ == null) {
ensureNodeInputIsMutable();
nodeInput_.add(index, builderForValue.build());
onChanged();
} else {
nodeInputBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public Builder addAllNodeInput(
java.lang.Iterable extends org.tensorflow.framework.GraphTransferInfo.NodeInput> values) {
if (nodeInputBuilder_ == null) {
ensureNodeInputIsMutable();
com.github.os72.protobuf351.AbstractMessageLite.Builder.addAll(
values, nodeInput_);
onChanged();
} else {
nodeInputBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public Builder clearNodeInput() {
if (nodeInputBuilder_ == null) {
nodeInput_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
nodeInputBuilder_.clear();
}
return this;
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public Builder removeNodeInput(int index) {
if (nodeInputBuilder_ == null) {
ensureNodeInputIsMutable();
nodeInput_.remove(index);
onChanged();
} else {
nodeInputBuilder_.remove(index);
}
return this;
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public org.tensorflow.framework.GraphTransferInfo.NodeInput.Builder getNodeInputBuilder(
int index) {
return getNodeInputFieldBuilder().getBuilder(index);
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public org.tensorflow.framework.GraphTransferInfo.NodeInputOrBuilder getNodeInputOrBuilder(
int index) {
if (nodeInputBuilder_ == null) {
return nodeInput_.get(index); } else {
return nodeInputBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public java.util.List extends org.tensorflow.framework.GraphTransferInfo.NodeInputOrBuilder>
getNodeInputOrBuilderList() {
if (nodeInputBuilder_ != null) {
return nodeInputBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(nodeInput_);
}
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public org.tensorflow.framework.GraphTransferInfo.NodeInput.Builder addNodeInputBuilder() {
return getNodeInputFieldBuilder().addBuilder(
org.tensorflow.framework.GraphTransferInfo.NodeInput.getDefaultInstance());
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public org.tensorflow.framework.GraphTransferInfo.NodeInput.Builder addNodeInputBuilder(
int index) {
return getNodeInputFieldBuilder().addBuilder(
index, org.tensorflow.framework.GraphTransferInfo.NodeInput.getDefaultInstance());
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInput node_input = 2;
*/
public java.util.List
getNodeInputBuilderList() {
return getNodeInputFieldBuilder().getBuilderList();
}
private com.github.os72.protobuf351.RepeatedFieldBuilderV3<
org.tensorflow.framework.GraphTransferInfo.NodeInput, org.tensorflow.framework.GraphTransferInfo.NodeInput.Builder, org.tensorflow.framework.GraphTransferInfo.NodeInputOrBuilder>
getNodeInputFieldBuilder() {
if (nodeInputBuilder_ == null) {
nodeInputBuilder_ = new com.github.os72.protobuf351.RepeatedFieldBuilderV3<
org.tensorflow.framework.GraphTransferInfo.NodeInput, org.tensorflow.framework.GraphTransferInfo.NodeInput.Builder, org.tensorflow.framework.GraphTransferInfo.NodeInputOrBuilder>(
nodeInput_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
nodeInput_ = null;
}
return nodeInputBuilder_;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.GraphTransferInfo.NodeInputInfo)
}
// @@protoc_insertion_point(class_scope:tensorflow.GraphTransferInfo.NodeInputInfo)
private static final org.tensorflow.framework.GraphTransferInfo.NodeInputInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.GraphTransferInfo.NodeInputInfo();
}
public static org.tensorflow.framework.GraphTransferInfo.NodeInputInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public NodeInputInfo parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new NodeInputInfo(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.framework.GraphTransferInfo.NodeInputInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NodeOutputInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.GraphTransferInfo.NodeOutputInfo)
com.github.os72.protobuf351.MessageOrBuilder {
/**
* int32 node_id = 1;
*/
int getNodeId();
/**
* repeated int32 max_byte_size = 2;
*/
java.util.List getMaxByteSizeList();
/**
* repeated int32 max_byte_size = 2;
*/
int getMaxByteSizeCount();
/**
* repeated int32 max_byte_size = 2;
*/
int getMaxByteSize(int index);
}
/**
* Protobuf type {@code tensorflow.GraphTransferInfo.NodeOutputInfo}
*/
public static final class NodeOutputInfo extends
com.github.os72.protobuf351.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.GraphTransferInfo.NodeOutputInfo)
NodeOutputInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeOutputInfo.newBuilder() to construct.
private NodeOutputInfo(com.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeOutputInfo() {
nodeId_ = 0;
maxByteSize_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeOutputInfo(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
nodeId_ = input.readInt32();
break;
}
case 16: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
maxByteSize_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
maxByteSize_.add(input.readInt32());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
maxByteSize_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
maxByteSize_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
maxByteSize_ = java.util.Collections.unmodifiableList(maxByteSize_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_NodeOutputInfo_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_NodeOutputInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo.class, org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo.Builder.class);
}
private int bitField0_;
public static final int NODE_ID_FIELD_NUMBER = 1;
private int nodeId_;
/**
* int32 node_id = 1;
*/
public int getNodeId() {
return nodeId_;
}
public static final int MAX_BYTE_SIZE_FIELD_NUMBER = 2;
private java.util.List maxByteSize_;
/**
* repeated int32 max_byte_size = 2;
*/
public java.util.List
getMaxByteSizeList() {
return maxByteSize_;
}
/**
* repeated int32 max_byte_size = 2;
*/
public int getMaxByteSizeCount() {
return maxByteSize_.size();
}
/**
* repeated int32 max_byte_size = 2;
*/
public int getMaxByteSize(int index) {
return maxByteSize_.get(index);
}
private int maxByteSizeMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (nodeId_ != 0) {
output.writeInt32(1, nodeId_);
}
if (getMaxByteSizeList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(maxByteSizeMemoizedSerializedSize);
}
for (int i = 0; i < maxByteSize_.size(); i++) {
output.writeInt32NoTag(maxByteSize_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (nodeId_ != 0) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32Size(1, nodeId_);
}
{
int dataSize = 0;
for (int i = 0; i < maxByteSize_.size(); i++) {
dataSize += com.github.os72.protobuf351.CodedOutputStream
.computeInt32SizeNoTag(maxByteSize_.get(i));
}
size += dataSize;
if (!getMaxByteSizeList().isEmpty()) {
size += 1;
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
maxByteSizeMemoizedSerializedSize = dataSize;
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo)) {
return super.equals(obj);
}
org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo other = (org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo) obj;
boolean result = true;
result = result && (getNodeId()
== other.getNodeId());
result = result && getMaxByteSizeList()
.equals(other.getMaxByteSizeList());
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) + NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + getNodeId();
if (getMaxByteSizeCount() > 0) {
hash = (37 * hash) + MAX_BYTE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + getMaxByteSizeList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.GraphTransferInfo.NodeOutputInfo}
*/
public static final class Builder extends
com.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferInfo.NodeOutputInfo)
org.tensorflow.framework.GraphTransferInfo.NodeOutputInfoOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_NodeOutputInfo_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_NodeOutputInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo.class, org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo.Builder.class);
}
// Construct using org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
nodeId_ = 0;
maxByteSize_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_NodeOutputInfo_descriptor;
}
public org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo getDefaultInstanceForType() {
return org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo.getDefaultInstance();
}
public org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo build() {
org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo buildPartial() {
org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo result = new org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.nodeId_ = nodeId_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
maxByteSize_ = java.util.Collections.unmodifiableList(maxByteSize_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.maxByteSize_ = maxByteSize_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.Message other) {
if (other instanceof org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo) {
return mergeFrom((org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo other) {
if (other == org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo.getDefaultInstance()) return this;
if (other.getNodeId() != 0) {
setNodeId(other.getNodeId());
}
if (!other.maxByteSize_.isEmpty()) {
if (maxByteSize_.isEmpty()) {
maxByteSize_ = other.maxByteSize_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureMaxByteSizeIsMutable();
maxByteSize_.addAll(other.maxByteSize_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int nodeId_ ;
/**
* int32 node_id = 1;
*/
public int getNodeId() {
return nodeId_;
}
/**
* int32 node_id = 1;
*/
public Builder setNodeId(int value) {
nodeId_ = value;
onChanged();
return this;
}
/**
* int32 node_id = 1;
*/
public Builder clearNodeId() {
nodeId_ = 0;
onChanged();
return this;
}
private java.util.List maxByteSize_ = java.util.Collections.emptyList();
private void ensureMaxByteSizeIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
maxByteSize_ = new java.util.ArrayList(maxByteSize_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated int32 max_byte_size = 2;
*/
public java.util.List
getMaxByteSizeList() {
return java.util.Collections.unmodifiableList(maxByteSize_);
}
/**
* repeated int32 max_byte_size = 2;
*/
public int getMaxByteSizeCount() {
return maxByteSize_.size();
}
/**
* repeated int32 max_byte_size = 2;
*/
public int getMaxByteSize(int index) {
return maxByteSize_.get(index);
}
/**
* repeated int32 max_byte_size = 2;
*/
public Builder setMaxByteSize(
int index, int value) {
ensureMaxByteSizeIsMutable();
maxByteSize_.set(index, value);
onChanged();
return this;
}
/**
* repeated int32 max_byte_size = 2;
*/
public Builder addMaxByteSize(int value) {
ensureMaxByteSizeIsMutable();
maxByteSize_.add(value);
onChanged();
return this;
}
/**
* repeated int32 max_byte_size = 2;
*/
public Builder addAllMaxByteSize(
java.lang.Iterable extends java.lang.Integer> values) {
ensureMaxByteSizeIsMutable();
com.github.os72.protobuf351.AbstractMessageLite.Builder.addAll(
values, maxByteSize_);
onChanged();
return this;
}
/**
* repeated int32 max_byte_size = 2;
*/
public Builder clearMaxByteSize() {
maxByteSize_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.GraphTransferInfo.NodeOutputInfo)
}
// @@protoc_insertion_point(class_scope:tensorflow.GraphTransferInfo.NodeOutputInfo)
private static final org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo();
}
public static org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public NodeOutputInfo parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new NodeOutputInfo(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GraphInputNodeInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.GraphTransferInfo.GraphInputNodeInfo)
com.github.os72.protobuf351.MessageOrBuilder {
/**
* string name = 1;
*/
java.lang.String getName();
/**
* string name = 1;
*/
com.github.os72.protobuf351.ByteString
getNameBytes();
/**
* repeated int64 shape = 2;
*/
java.util.List getShapeList();
/**
* repeated int64 shape = 2;
*/
int getShapeCount();
/**
* repeated int64 shape = 2;
*/
long getShape(int index);
/**
* .tensorflow.DataType dtype = 3;
*/
int getDtypeValue();
/**
* .tensorflow.DataType dtype = 3;
*/
org.tensorflow.framework.DataType getDtype();
}
/**
* Protobuf type {@code tensorflow.GraphTransferInfo.GraphInputNodeInfo}
*/
public static final class GraphInputNodeInfo extends
com.github.os72.protobuf351.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.GraphTransferInfo.GraphInputNodeInfo)
GraphInputNodeInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use GraphInputNodeInfo.newBuilder() to construct.
private GraphInputNodeInfo(com.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GraphInputNodeInfo() {
name_ = "";
shape_ = java.util.Collections.emptyList();
dtype_ = 0;
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GraphInputNodeInfo(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 16: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
shape_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
shape_.add(input.readInt64());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
shape_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
shape_.add(input.readInt64());
}
input.popLimit(limit);
break;
}
case 24: {
int rawValue = input.readEnum();
dtype_ = rawValue;
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
shape_ = java.util.Collections.unmodifiableList(shape_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_GraphInputNodeInfo_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_GraphInputNodeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo.class, org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object 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.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* string name = 1;
*/
public com.github.os72.protobuf351.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
public static final int SHAPE_FIELD_NUMBER = 2;
private java.util.List shape_;
/**
* repeated int64 shape = 2;
*/
public java.util.List
getShapeList() {
return shape_;
}
/**
* repeated int64 shape = 2;
*/
public int getShapeCount() {
return shape_.size();
}
/**
* repeated int64 shape = 2;
*/
public long getShape(int index) {
return shape_.get(index);
}
private int shapeMemoizedSerializedSize = -1;
public static final int DTYPE_FIELD_NUMBER = 3;
private int dtype_;
/**
* .tensorflow.DataType dtype = 3;
*/
public int getDtypeValue() {
return dtype_;
}
/**
* .tensorflow.DataType dtype = 3;
*/
public org.tensorflow.framework.DataType getDtype() {
org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(dtype_);
return result == null ? org.tensorflow.framework.DataType.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (!getNameBytes().isEmpty()) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, name_);
}
if (getShapeList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(shapeMemoizedSerializedSize);
}
for (int i = 0; i < shape_.size(); i++) {
output.writeInt64NoTag(shape_.get(i));
}
if (dtype_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) {
output.writeEnum(3, dtype_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, name_);
}
{
int dataSize = 0;
for (int i = 0; i < shape_.size(); i++) {
dataSize += com.github.os72.protobuf351.CodedOutputStream
.computeInt64SizeNoTag(shape_.get(i));
}
size += dataSize;
if (!getShapeList().isEmpty()) {
size += 1;
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
shapeMemoizedSerializedSize = dataSize;
}
if (dtype_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeEnumSize(3, dtype_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo)) {
return super.equals(obj);
}
org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo other = (org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo) obj;
boolean result = true;
result = result && getName()
.equals(other.getName());
result = result && getShapeList()
.equals(other.getShapeList());
result = result && dtype_ == other.dtype_;
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 (getShapeCount() > 0) {
hash = (37 * hash) + SHAPE_FIELD_NUMBER;
hash = (53 * hash) + getShapeList().hashCode();
}
hash = (37 * hash) + DTYPE_FIELD_NUMBER;
hash = (53 * hash) + dtype_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.GraphTransferInfo.GraphInputNodeInfo}
*/
public static final class Builder extends
com.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferInfo.GraphInputNodeInfo)
org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfoOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_GraphInputNodeInfo_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_GraphInputNodeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo.class, org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo.Builder.class);
}
// Construct using org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
name_ = "";
shape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
dtype_ = 0;
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_GraphInputNodeInfo_descriptor;
}
public org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo getDefaultInstanceForType() {
return org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo.getDefaultInstance();
}
public org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo build() {
org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo buildPartial() {
org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo result = new org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.name_ = name_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
shape_ = java.util.Collections.unmodifiableList(shape_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.shape_ = shape_;
result.dtype_ = dtype_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.Message other) {
if (other instanceof org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo) {
return mergeFrom((org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo other) {
if (other == org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.shape_.isEmpty()) {
if (shape_.isEmpty()) {
shape_ = other.shape_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureShapeIsMutable();
shape_.addAll(other.shape_);
}
onChanged();
}
if (other.dtype_ != 0) {
setDtypeValue(other.getDtypeValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 1;
*/
public com.github.os72.protobuf351.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
/**
* string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 1;
*/
public Builder setNameBytes(
com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.util.List shape_ = java.util.Collections.emptyList();
private void ensureShapeIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
shape_ = new java.util.ArrayList(shape_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated int64 shape = 2;
*/
public java.util.List
getShapeList() {
return java.util.Collections.unmodifiableList(shape_);
}
/**
* repeated int64 shape = 2;
*/
public int getShapeCount() {
return shape_.size();
}
/**
* repeated int64 shape = 2;
*/
public long getShape(int index) {
return shape_.get(index);
}
/**
* repeated int64 shape = 2;
*/
public Builder setShape(
int index, long value) {
ensureShapeIsMutable();
shape_.set(index, value);
onChanged();
return this;
}
/**
* repeated int64 shape = 2;
*/
public Builder addShape(long value) {
ensureShapeIsMutable();
shape_.add(value);
onChanged();
return this;
}
/**
* repeated int64 shape = 2;
*/
public Builder addAllShape(
java.lang.Iterable extends java.lang.Long> values) {
ensureShapeIsMutable();
com.github.os72.protobuf351.AbstractMessageLite.Builder.addAll(
values, shape_);
onChanged();
return this;
}
/**
* repeated int64 shape = 2;
*/
public Builder clearShape() {
shape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private int dtype_ = 0;
/**
* .tensorflow.DataType dtype = 3;
*/
public int getDtypeValue() {
return dtype_;
}
/**
* .tensorflow.DataType dtype = 3;
*/
public Builder setDtypeValue(int value) {
dtype_ = value;
onChanged();
return this;
}
/**
* .tensorflow.DataType dtype = 3;
*/
public org.tensorflow.framework.DataType getDtype() {
org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(dtype_);
return result == null ? org.tensorflow.framework.DataType.UNRECOGNIZED : result;
}
/**
* .tensorflow.DataType dtype = 3;
*/
public Builder setDtype(org.tensorflow.framework.DataType value) {
if (value == null) {
throw new NullPointerException();
}
dtype_ = value.getNumber();
onChanged();
return this;
}
/**
* .tensorflow.DataType dtype = 3;
*/
public Builder clearDtype() {
dtype_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.GraphTransferInfo.GraphInputNodeInfo)
}
// @@protoc_insertion_point(class_scope:tensorflow.GraphTransferInfo.GraphInputNodeInfo)
private static final org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo();
}
public static org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public GraphInputNodeInfo parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new GraphInputNodeInfo(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GraphOutputNodeInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.GraphTransferInfo.GraphOutputNodeInfo)
com.github.os72.protobuf351.MessageOrBuilder {
/**
* string name = 1;
*/
java.lang.String getName();
/**
* string name = 1;
*/
com.github.os72.protobuf351.ByteString
getNameBytes();
/**
* repeated int64 shape = 2;
*/
java.util.List getShapeList();
/**
* repeated int64 shape = 2;
*/
int getShapeCount();
/**
* repeated int64 shape = 2;
*/
long getShape(int index);
/**
* .tensorflow.DataType dtype = 3;
*/
int getDtypeValue();
/**
* .tensorflow.DataType dtype = 3;
*/
org.tensorflow.framework.DataType getDtype();
}
/**
* Protobuf type {@code tensorflow.GraphTransferInfo.GraphOutputNodeInfo}
*/
public static final class GraphOutputNodeInfo extends
com.github.os72.protobuf351.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.GraphTransferInfo.GraphOutputNodeInfo)
GraphOutputNodeInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use GraphOutputNodeInfo.newBuilder() to construct.
private GraphOutputNodeInfo(com.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GraphOutputNodeInfo() {
name_ = "";
shape_ = java.util.Collections.emptyList();
dtype_ = 0;
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GraphOutputNodeInfo(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 16: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
shape_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
shape_.add(input.readInt64());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
shape_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
shape_.add(input.readInt64());
}
input.popLimit(limit);
break;
}
case 24: {
int rawValue = input.readEnum();
dtype_ = rawValue;
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
shape_ = java.util.Collections.unmodifiableList(shape_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_GraphOutputNodeInfo_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_GraphOutputNodeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo.class, org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object 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.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* string name = 1;
*/
public com.github.os72.protobuf351.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
public static final int SHAPE_FIELD_NUMBER = 2;
private java.util.List shape_;
/**
* repeated int64 shape = 2;
*/
public java.util.List
getShapeList() {
return shape_;
}
/**
* repeated int64 shape = 2;
*/
public int getShapeCount() {
return shape_.size();
}
/**
* repeated int64 shape = 2;
*/
public long getShape(int index) {
return shape_.get(index);
}
private int shapeMemoizedSerializedSize = -1;
public static final int DTYPE_FIELD_NUMBER = 3;
private int dtype_;
/**
* .tensorflow.DataType dtype = 3;
*/
public int getDtypeValue() {
return dtype_;
}
/**
* .tensorflow.DataType dtype = 3;
*/
public org.tensorflow.framework.DataType getDtype() {
org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(dtype_);
return result == null ? org.tensorflow.framework.DataType.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (!getNameBytes().isEmpty()) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, name_);
}
if (getShapeList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(shapeMemoizedSerializedSize);
}
for (int i = 0; i < shape_.size(); i++) {
output.writeInt64NoTag(shape_.get(i));
}
if (dtype_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) {
output.writeEnum(3, dtype_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, name_);
}
{
int dataSize = 0;
for (int i = 0; i < shape_.size(); i++) {
dataSize += com.github.os72.protobuf351.CodedOutputStream
.computeInt64SizeNoTag(shape_.get(i));
}
size += dataSize;
if (!getShapeList().isEmpty()) {
size += 1;
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
shapeMemoizedSerializedSize = dataSize;
}
if (dtype_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeEnumSize(3, dtype_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo)) {
return super.equals(obj);
}
org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo other = (org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo) obj;
boolean result = true;
result = result && getName()
.equals(other.getName());
result = result && getShapeList()
.equals(other.getShapeList());
result = result && dtype_ == other.dtype_;
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 (getShapeCount() > 0) {
hash = (37 * hash) + SHAPE_FIELD_NUMBER;
hash = (53 * hash) + getShapeList().hashCode();
}
hash = (37 * hash) + DTYPE_FIELD_NUMBER;
hash = (53 * hash) + dtype_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.GraphTransferInfo.GraphOutputNodeInfo}
*/
public static final class Builder extends
com.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferInfo.GraphOutputNodeInfo)
org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfoOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_GraphOutputNodeInfo_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_GraphOutputNodeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo.class, org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo.Builder.class);
}
// Construct using org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
name_ = "";
shape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
dtype_ = 0;
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_GraphOutputNodeInfo_descriptor;
}
public org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo getDefaultInstanceForType() {
return org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo.getDefaultInstance();
}
public org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo build() {
org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo buildPartial() {
org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo result = new org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.name_ = name_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
shape_ = java.util.Collections.unmodifiableList(shape_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.shape_ = shape_;
result.dtype_ = dtype_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.Message other) {
if (other instanceof org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo) {
return mergeFrom((org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo other) {
if (other == org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.shape_.isEmpty()) {
if (shape_.isEmpty()) {
shape_ = other.shape_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureShapeIsMutable();
shape_.addAll(other.shape_);
}
onChanged();
}
if (other.dtype_ != 0) {
setDtypeValue(other.getDtypeValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 1;
*/
public com.github.os72.protobuf351.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
/**
* string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 1;
*/
public Builder setNameBytes(
com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.util.List shape_ = java.util.Collections.emptyList();
private void ensureShapeIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
shape_ = new java.util.ArrayList(shape_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated int64 shape = 2;
*/
public java.util.List
getShapeList() {
return java.util.Collections.unmodifiableList(shape_);
}
/**
* repeated int64 shape = 2;
*/
public int getShapeCount() {
return shape_.size();
}
/**
* repeated int64 shape = 2;
*/
public long getShape(int index) {
return shape_.get(index);
}
/**
* repeated int64 shape = 2;
*/
public Builder setShape(
int index, long value) {
ensureShapeIsMutable();
shape_.set(index, value);
onChanged();
return this;
}
/**
* repeated int64 shape = 2;
*/
public Builder addShape(long value) {
ensureShapeIsMutable();
shape_.add(value);
onChanged();
return this;
}
/**
* repeated int64 shape = 2;
*/
public Builder addAllShape(
java.lang.Iterable extends java.lang.Long> values) {
ensureShapeIsMutable();
com.github.os72.protobuf351.AbstractMessageLite.Builder.addAll(
values, shape_);
onChanged();
return this;
}
/**
* repeated int64 shape = 2;
*/
public Builder clearShape() {
shape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private int dtype_ = 0;
/**
* .tensorflow.DataType dtype = 3;
*/
public int getDtypeValue() {
return dtype_;
}
/**
* .tensorflow.DataType dtype = 3;
*/
public Builder setDtypeValue(int value) {
dtype_ = value;
onChanged();
return this;
}
/**
* .tensorflow.DataType dtype = 3;
*/
public org.tensorflow.framework.DataType getDtype() {
org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(dtype_);
return result == null ? org.tensorflow.framework.DataType.UNRECOGNIZED : result;
}
/**
* .tensorflow.DataType dtype = 3;
*/
public Builder setDtype(org.tensorflow.framework.DataType value) {
if (value == null) {
throw new NullPointerException();
}
dtype_ = value.getNumber();
onChanged();
return this;
}
/**
* .tensorflow.DataType dtype = 3;
*/
public Builder clearDtype() {
dtype_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.GraphTransferInfo.GraphOutputNodeInfo)
}
// @@protoc_insertion_point(class_scope:tensorflow.GraphTransferInfo.GraphOutputNodeInfo)
private static final org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo();
}
public static org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public GraphOutputNodeInfo parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new GraphOutputNodeInfo(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int NODE_INFO_FIELD_NUMBER = 1;
private java.util.List nodeInfo_;
/**
* repeated .tensorflow.GraphTransferInfo.NodeInfo node_info = 1;
*/
public java.util.List getNodeInfoList() {
return nodeInfo_;
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInfo node_info = 1;
*/
public java.util.List extends org.tensorflow.framework.GraphTransferInfo.NodeInfoOrBuilder>
getNodeInfoOrBuilderList() {
return nodeInfo_;
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInfo node_info = 1;
*/
public int getNodeInfoCount() {
return nodeInfo_.size();
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInfo node_info = 1;
*/
public org.tensorflow.framework.GraphTransferInfo.NodeInfo getNodeInfo(int index) {
return nodeInfo_.get(index);
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInfo node_info = 1;
*/
public org.tensorflow.framework.GraphTransferInfo.NodeInfoOrBuilder getNodeInfoOrBuilder(
int index) {
return nodeInfo_.get(index);
}
public static final int CONST_NODE_INFO_FIELD_NUMBER = 2;
private java.util.List constNodeInfo_;
/**
* repeated .tensorflow.GraphTransferInfo.ConstNodeInfo const_node_info = 2;
*/
public java.util.List getConstNodeInfoList() {
return constNodeInfo_;
}
/**
* repeated .tensorflow.GraphTransferInfo.ConstNodeInfo const_node_info = 2;
*/
public java.util.List extends org.tensorflow.framework.GraphTransferInfo.ConstNodeInfoOrBuilder>
getConstNodeInfoOrBuilderList() {
return constNodeInfo_;
}
/**
* repeated .tensorflow.GraphTransferInfo.ConstNodeInfo const_node_info = 2;
*/
public int getConstNodeInfoCount() {
return constNodeInfo_.size();
}
/**
* repeated .tensorflow.GraphTransferInfo.ConstNodeInfo const_node_info = 2;
*/
public org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo getConstNodeInfo(int index) {
return constNodeInfo_.get(index);
}
/**
* repeated .tensorflow.GraphTransferInfo.ConstNodeInfo const_node_info = 2;
*/
public org.tensorflow.framework.GraphTransferInfo.ConstNodeInfoOrBuilder getConstNodeInfoOrBuilder(
int index) {
return constNodeInfo_.get(index);
}
public static final int NODE_INPUT_INFO_FIELD_NUMBER = 3;
private java.util.List nodeInputInfo_;
/**
* repeated .tensorflow.GraphTransferInfo.NodeInputInfo node_input_info = 3;
*/
public java.util.List getNodeInputInfoList() {
return nodeInputInfo_;
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInputInfo node_input_info = 3;
*/
public java.util.List extends org.tensorflow.framework.GraphTransferInfo.NodeInputInfoOrBuilder>
getNodeInputInfoOrBuilderList() {
return nodeInputInfo_;
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInputInfo node_input_info = 3;
*/
public int getNodeInputInfoCount() {
return nodeInputInfo_.size();
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInputInfo node_input_info = 3;
*/
public org.tensorflow.framework.GraphTransferInfo.NodeInputInfo getNodeInputInfo(int index) {
return nodeInputInfo_.get(index);
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeInputInfo node_input_info = 3;
*/
public org.tensorflow.framework.GraphTransferInfo.NodeInputInfoOrBuilder getNodeInputInfoOrBuilder(
int index) {
return nodeInputInfo_.get(index);
}
public static final int NODE_OUTPUT_INFO_FIELD_NUMBER = 4;
private java.util.List nodeOutputInfo_;
/**
* repeated .tensorflow.GraphTransferInfo.NodeOutputInfo node_output_info = 4;
*/
public java.util.List getNodeOutputInfoList() {
return nodeOutputInfo_;
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeOutputInfo node_output_info = 4;
*/
public java.util.List extends org.tensorflow.framework.GraphTransferInfo.NodeOutputInfoOrBuilder>
getNodeOutputInfoOrBuilderList() {
return nodeOutputInfo_;
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeOutputInfo node_output_info = 4;
*/
public int getNodeOutputInfoCount() {
return nodeOutputInfo_.size();
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeOutputInfo node_output_info = 4;
*/
public org.tensorflow.framework.GraphTransferInfo.NodeOutputInfo getNodeOutputInfo(int index) {
return nodeOutputInfo_.get(index);
}
/**
* repeated .tensorflow.GraphTransferInfo.NodeOutputInfo node_output_info = 4;
*/
public org.tensorflow.framework.GraphTransferInfo.NodeOutputInfoOrBuilder getNodeOutputInfoOrBuilder(
int index) {
return nodeOutputInfo_.get(index);
}
public static final int GRAPH_INPUT_NODE_INFO_FIELD_NUMBER = 5;
private java.util.List graphInputNodeInfo_;
/**
*
*
* repeated .tensorflow.GraphTransferInfo.GraphInputNodeInfo graph_input_node_info = 5;
*/
public org.tensorflow.framework.GraphTransferInfo.GraphInputNodeInfoOrBuilder getGraphInputNodeInfoOrBuilder(
int index) {
return graphInputNodeInfo_.get(index);
}
public static final int GRAPH_OUTPUT_NODE_INFO_FIELD_NUMBER = 6;
private java.util.List graphOutputNodeInfo_;
/**
* repeated .tensorflow.GraphTransferInfo.GraphOutputNodeInfo graph_output_node_info = 6;
*/
public java.util.List getGraphOutputNodeInfoList() {
return graphOutputNodeInfo_;
}
/**
* repeated .tensorflow.GraphTransferInfo.GraphOutputNodeInfo graph_output_node_info = 6;
*/
public java.util.List extends org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfoOrBuilder>
getGraphOutputNodeInfoOrBuilderList() {
return graphOutputNodeInfo_;
}
/**
* repeated .tensorflow.GraphTransferInfo.GraphOutputNodeInfo graph_output_node_info = 6;
*/
public int getGraphOutputNodeInfoCount() {
return graphOutputNodeInfo_.size();
}
/**
* repeated .tensorflow.GraphTransferInfo.GraphOutputNodeInfo graph_output_node_info = 6;
*/
public org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfo getGraphOutputNodeInfo(int index) {
return graphOutputNodeInfo_.get(index);
}
/**
* repeated .tensorflow.GraphTransferInfo.GraphOutputNodeInfo graph_output_node_info = 6;
*/
public org.tensorflow.framework.GraphTransferInfo.GraphOutputNodeInfoOrBuilder getGraphOutputNodeInfoOrBuilder(
int index) {
return graphOutputNodeInfo_.get(index);
}
public static final int DESTINATION_FIELD_NUMBER = 7;
private int destination_;
/**
*
* Destination of graph transfer
*
*
* .tensorflow.GraphTransferInfo.Destination destination = 7;
*/
public int getDestinationValue() {
return destination_;
}
/**
*
* Destination of graph transfer
*
*
* .tensorflow.GraphTransferInfo.Destination destination = 7;
*/
public org.tensorflow.framework.GraphTransferInfo.Destination getDestination() {
org.tensorflow.framework.GraphTransferInfo.Destination result = org.tensorflow.framework.GraphTransferInfo.Destination.valueOf(destination_);
return result == null ? org.tensorflow.framework.GraphTransferInfo.Destination.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < nodeInfo_.size(); i++) {
output.writeMessage(1, nodeInfo_.get(i));
}
for (int i = 0; i < constNodeInfo_.size(); i++) {
output.writeMessage(2, constNodeInfo_.get(i));
}
for (int i = 0; i < nodeInputInfo_.size(); i++) {
output.writeMessage(3, nodeInputInfo_.get(i));
}
for (int i = 0; i < nodeOutputInfo_.size(); i++) {
output.writeMessage(4, nodeOutputInfo_.get(i));
}
for (int i = 0; i < graphInputNodeInfo_.size(); i++) {
output.writeMessage(5, graphInputNodeInfo_.get(i));
}
for (int i = 0; i < graphOutputNodeInfo_.size(); i++) {
output.writeMessage(6, graphOutputNodeInfo_.get(i));
}
if (destination_ != org.tensorflow.framework.GraphTransferInfo.Destination.NOP.getNumber()) {
output.writeEnum(7, destination_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < nodeInfo_.size(); i++) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(1, nodeInfo_.get(i));
}
for (int i = 0; i < constNodeInfo_.size(); i++) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(2, constNodeInfo_.get(i));
}
for (int i = 0; i < nodeInputInfo_.size(); i++) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(3, nodeInputInfo_.get(i));
}
for (int i = 0; i < nodeOutputInfo_.size(); i++) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(4, nodeOutputInfo_.get(i));
}
for (int i = 0; i < graphInputNodeInfo_.size(); i++) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(5, graphInputNodeInfo_.get(i));
}
for (int i = 0; i < graphOutputNodeInfo_.size(); i++) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(6, graphOutputNodeInfo_.get(i));
}
if (destination_ != org.tensorflow.framework.GraphTransferInfo.Destination.NOP.getNumber()) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeEnumSize(7, destination_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.framework.GraphTransferInfo)) {
return super.equals(obj);
}
org.tensorflow.framework.GraphTransferInfo other = (org.tensorflow.framework.GraphTransferInfo) obj;
boolean result = true;
result = result && getNodeInfoList()
.equals(other.getNodeInfoList());
result = result && getConstNodeInfoList()
.equals(other.getConstNodeInfoList());
result = result && getNodeInputInfoList()
.equals(other.getNodeInputInfoList());
result = result && getNodeOutputInfoList()
.equals(other.getNodeOutputInfoList());
result = result && getGraphInputNodeInfoList()
.equals(other.getGraphInputNodeInfoList());
result = result && getGraphOutputNodeInfoList()
.equals(other.getGraphOutputNodeInfoList());
result = result && destination_ == other.destination_;
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 (getNodeInfoCount() > 0) {
hash = (37 * hash) + NODE_INFO_FIELD_NUMBER;
hash = (53 * hash) + getNodeInfoList().hashCode();
}
if (getConstNodeInfoCount() > 0) {
hash = (37 * hash) + CONST_NODE_INFO_FIELD_NUMBER;
hash = (53 * hash) + getConstNodeInfoList().hashCode();
}
if (getNodeInputInfoCount() > 0) {
hash = (37 * hash) + NODE_INPUT_INFO_FIELD_NUMBER;
hash = (53 * hash) + getNodeInputInfoList().hashCode();
}
if (getNodeOutputInfoCount() > 0) {
hash = (37 * hash) + NODE_OUTPUT_INFO_FIELD_NUMBER;
hash = (53 * hash) + getNodeOutputInfoList().hashCode();
}
if (getGraphInputNodeInfoCount() > 0) {
hash = (37 * hash) + GRAPH_INPUT_NODE_INFO_FIELD_NUMBER;
hash = (53 * hash) + getGraphInputNodeInfoList().hashCode();
}
if (getGraphOutputNodeInfoCount() > 0) {
hash = (37 * hash) + GRAPH_OUTPUT_NODE_INFO_FIELD_NUMBER;
hash = (53 * hash) + getGraphOutputNodeInfoList().hashCode();
}
hash = (37 * hash) + DESTINATION_FIELD_NUMBER;
hash = (53 * hash) + destination_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.GraphTransferInfo parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.GraphTransferInfo parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.GraphTransferInfo parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.GraphTransferInfo parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.GraphTransferInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Protocol buffer representing a handle to a tensorflow resource. Handles are
* not valid across executions, but can be serialized back and forth from within
* a single run.
*