tensorflow.TrackableObjectGraphOuterClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto Show documentation
Show all versions of proto Show documentation
Java API for TensorFlow protocol buffers.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/protobuf/trackable_object_graph.proto
package tensorflow;
public final class TrackableObjectGraphOuterClass {
private TrackableObjectGraphOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface TrackableObjectGraphOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.TrackableObjectGraph)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
java.util.List
getNodesList();
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject getNodes(int index);
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
int getNodesCount();
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
java.util.List extends tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObjectOrBuilder>
getNodesOrBuilderList();
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObjectOrBuilder getNodesOrBuilder(
int index);
}
/**
* Protobuf type {@code tensorflow.TrackableObjectGraph}
*/
public static final class TrackableObjectGraph extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.TrackableObjectGraph)
TrackableObjectGraphOrBuilder {
private static final long serialVersionUID = 0L;
// Use TrackableObjectGraph.newBuilder() to construct.
private TrackableObjectGraph(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TrackableObjectGraph() {
nodes_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TrackableObjectGraph(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
nodes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
nodes_.add(
input.readMessage(tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
nodes_ = java.util.Collections.unmodifiableList(nodes_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.class, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.Builder.class);
}
public interface TrackableObjectOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.TrackableObjectGraph.TrackableObject)
com.google.protobuf.MessageOrBuilder {
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
java.util.List
getChildrenList();
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference getChildren(int index);
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
int getChildrenCount();
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
java.util.List extends tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder>
getChildrenOrBuilderList();
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder getChildrenOrBuilder(
int index);
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
java.util.List
getAttributesList();
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor getAttributes(int index);
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
int getAttributesCount();
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
java.util.List extends tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensorOrBuilder>
getAttributesOrBuilderList();
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensorOrBuilder getAttributesOrBuilder(
int index);
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
java.util.List
getSlotVariablesList();
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference getSlotVariables(int index);
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
int getSlotVariablesCount();
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
java.util.List extends tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder>
getSlotVariablesOrBuilderList();
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder getSlotVariablesOrBuilder(
int index);
}
/**
* Protobuf type {@code tensorflow.TrackableObjectGraph.TrackableObject}
*/
public static final class TrackableObject extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.TrackableObjectGraph.TrackableObject)
TrackableObjectOrBuilder {
private static final long serialVersionUID = 0L;
// Use TrackableObject.newBuilder() to construct.
private TrackableObject(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TrackableObject() {
children_ = java.util.Collections.emptyList();
attributes_ = java.util.Collections.emptyList();
slotVariables_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TrackableObject(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
children_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
children_.add(
input.readMessage(tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.parser(), extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
attributes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
attributes_.add(
input.readMessage(tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
slotVariables_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
slotVariables_.add(
input.readMessage(tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
children_ = java.util.Collections.unmodifiableList(children_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
attributes_ = java.util.Collections.unmodifiableList(attributes_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
slotVariables_ = java.util.Collections.unmodifiableList(slotVariables_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.class, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.Builder.class);
}
public interface ObjectReferenceOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference)
com.google.protobuf.MessageOrBuilder {
/**
*
* An index into `TrackableObjectGraph.nodes`, indicating the object
* being referenced.
*
*
* int32 node_id = 1;
*/
int getNodeId();
/**
*
* A user-provided name for the edge.
*
*
* string local_name = 2;
*/
java.lang.String getLocalName();
/**
*
* A user-provided name for the edge.
*
*
* string local_name = 2;
*/
com.google.protobuf.ByteString
getLocalNameBytes();
}
/**
* Protobuf type {@code tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference}
*/
public static final class ObjectReference extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference)
ObjectReferenceOrBuilder {
private static final long serialVersionUID = 0L;
// Use ObjectReference.newBuilder() to construct.
private ObjectReference(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ObjectReference() {
nodeId_ = 0;
localName_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ObjectReference(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
nodeId_ = input.readInt32();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
localName_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_ObjectReference_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_ObjectReference_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.class, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder.class);
}
public static final int NODE_ID_FIELD_NUMBER = 1;
private int nodeId_;
/**
*
* An index into `TrackableObjectGraph.nodes`, indicating the object
* being referenced.
*
*
* int32 node_id = 1;
*/
public int getNodeId() {
return nodeId_;
}
public static final int LOCAL_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object localName_;
/**
*
* A user-provided name for the edge.
*
*
* string local_name = 2;
*/
public java.lang.String getLocalName() {
java.lang.Object ref = localName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
localName_ = s;
return s;
}
}
/**
*
* A user-provided name for the edge.
*
*
* string local_name = 2;
*/
public com.google.protobuf.ByteString
getLocalNameBytes() {
java.lang.Object ref = localName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
localName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (nodeId_ != 0) {
output.writeInt32(1, nodeId_);
}
if (!getLocalNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, localName_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (nodeId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, nodeId_);
}
if (!getLocalNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, localName_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference)) {
return super.equals(obj);
}
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference other = (tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference) obj;
boolean result = true;
result = result && (getNodeId()
== other.getNodeId());
result = result && getLocalName()
.equals(other.getLocalName());
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) + LOCAL_NAME_FIELD_NUMBER;
hash = (53 * hash) + getLocalName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference)
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_ObjectReference_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_ObjectReference_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.class, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder.class);
}
// Construct using tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
nodeId_ = 0;
localName_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_ObjectReference_descriptor;
}
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference getDefaultInstanceForType() {
return tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.getDefaultInstance();
}
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference build() {
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference buildPartial() {
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference result = new tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference(this);
result.nodeId_ = nodeId_;
result.localName_ = localName_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference) {
return mergeFrom((tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference other) {
if (other == tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.getDefaultInstance()) return this;
if (other.getNodeId() != 0) {
setNodeId(other.getNodeId());
}
if (!other.getLocalName().isEmpty()) {
localName_ = other.localName_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int nodeId_ ;
/**
*
* An index into `TrackableObjectGraph.nodes`, indicating the object
* being referenced.
*
*
* int32 node_id = 1;
*/
public int getNodeId() {
return nodeId_;
}
/**
*
* An index into `TrackableObjectGraph.nodes`, indicating the object
* being referenced.
*
*
* int32 node_id = 1;
*/
public Builder setNodeId(int value) {
nodeId_ = value;
onChanged();
return this;
}
/**
*
* An index into `TrackableObjectGraph.nodes`, indicating the object
* being referenced.
*
*
* int32 node_id = 1;
*/
public Builder clearNodeId() {
nodeId_ = 0;
onChanged();
return this;
}
private java.lang.Object localName_ = "";
/**
*
* A user-provided name for the edge.
*
*
* string local_name = 2;
*/
public java.lang.String getLocalName() {
java.lang.Object ref = localName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
localName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A user-provided name for the edge.
*
*
* string local_name = 2;
*/
public com.google.protobuf.ByteString
getLocalNameBytes() {
java.lang.Object ref = localName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
localName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A user-provided name for the edge.
*
*
* string local_name = 2;
*/
public Builder setLocalName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
localName_ = value;
onChanged();
return this;
}
/**
*
* A user-provided name for the edge.
*
*
* string local_name = 2;
*/
public Builder clearLocalName() {
localName_ = getDefaultInstance().getLocalName();
onChanged();
return this;
}
/**
*
* A user-provided name for the edge.
*
*
* string local_name = 2;
*/
public Builder setLocalNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
localName_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference)
}
// @@protoc_insertion_point(class_scope:tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference)
private static final tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference();
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ObjectReference parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ObjectReference(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SerializedTensorOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor)
com.google.protobuf.MessageOrBuilder {
/**
*
* A name for the Tensor. Simple variables have only one
* `SerializedTensor` named "VARIABLE_VALUE" by convention. This value may
* be restored on object creation as an optimization.
*
*
* string name = 1;
*/
java.lang.String getName();
/**
*
* A name for the Tensor. Simple variables have only one
* `SerializedTensor` named "VARIABLE_VALUE" by convention. This value may
* be restored on object creation as an optimization.
*
*
* string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* The full name of the variable/tensor, if applicable. Used to allow
* name-based loading of checkpoints which were saved using an
* object-based API. Should match the checkpoint key which would have been
* assigned by tf.train.Saver.
*
*
* string full_name = 2;
*/
java.lang.String getFullName();
/**
*
* The full name of the variable/tensor, if applicable. Used to allow
* name-based loading of checkpoints which were saved using an
* object-based API. Should match the checkpoint key which would have been
* assigned by tf.train.Saver.
*
*
* string full_name = 2;
*/
com.google.protobuf.ByteString
getFullNameBytes();
/**
*
* The generated name of the Tensor in the checkpoint.
*
*
* string checkpoint_key = 3;
*/
java.lang.String getCheckpointKey();
/**
*
* The generated name of the Tensor in the checkpoint.
*
*
* string checkpoint_key = 3;
*/
com.google.protobuf.ByteString
getCheckpointKeyBytes();
/**
*
* Whether checkpoints should be considered as matching even without this
* value restored. Used for non-critical values which don't affect the
* TensorFlow graph, such as layer configurations.
*
*
* bool optional_restore = 4;
*/
boolean getOptionalRestore();
}
/**
* Protobuf type {@code tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor}
*/
public static final class SerializedTensor extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor)
SerializedTensorOrBuilder {
private static final long serialVersionUID = 0L;
// Use SerializedTensor.newBuilder() to construct.
private SerializedTensor(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SerializedTensor() {
name_ = "";
fullName_ = "";
checkpointKey_ = "";
optionalRestore_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SerializedTensor(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
fullName_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
checkpointKey_ = s;
break;
}
case 32: {
optionalRestore_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SerializedTensor_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SerializedTensor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.class, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* A name for the Tensor. Simple variables have only one
* `SerializedTensor` named "VARIABLE_VALUE" by convention. This value may
* be restored on object creation as an optimization.
*
*
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* A name for the Tensor. Simple variables have only one
* `SerializedTensor` named "VARIABLE_VALUE" by convention. This value may
* be restored on object creation as an optimization.
*
*
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FULL_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object fullName_;
/**
*
* The full name of the variable/tensor, if applicable. Used to allow
* name-based loading of checkpoints which were saved using an
* object-based API. Should match the checkpoint key which would have been
* assigned by tf.train.Saver.
*
*
* string full_name = 2;
*/
public java.lang.String getFullName() {
java.lang.Object ref = fullName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fullName_ = s;
return s;
}
}
/**
*
* The full name of the variable/tensor, if applicable. Used to allow
* name-based loading of checkpoints which were saved using an
* object-based API. Should match the checkpoint key which would have been
* assigned by tf.train.Saver.
*
*
* string full_name = 2;
*/
public com.google.protobuf.ByteString
getFullNameBytes() {
java.lang.Object ref = fullName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fullName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CHECKPOINT_KEY_FIELD_NUMBER = 3;
private volatile java.lang.Object checkpointKey_;
/**
*
* The generated name of the Tensor in the checkpoint.
*
*
* string checkpoint_key = 3;
*/
public java.lang.String getCheckpointKey() {
java.lang.Object ref = checkpointKey_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
checkpointKey_ = s;
return s;
}
}
/**
*
* The generated name of the Tensor in the checkpoint.
*
*
* string checkpoint_key = 3;
*/
public com.google.protobuf.ByteString
getCheckpointKeyBytes() {
java.lang.Object ref = checkpointKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
checkpointKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPTIONAL_RESTORE_FIELD_NUMBER = 4;
private boolean optionalRestore_;
/**
*
* Whether checkpoints should be considered as matching even without this
* value restored. Used for non-critical values which don't affect the
* TensorFlow graph, such as layer configurations.
*
*
* bool optional_restore = 4;
*/
public boolean getOptionalRestore() {
return optionalRestore_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!getFullNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fullName_);
}
if (!getCheckpointKeyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, checkpointKey_);
}
if (optionalRestore_ != false) {
output.writeBool(4, optionalRestore_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!getFullNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fullName_);
}
if (!getCheckpointKeyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, checkpointKey_);
}
if (optionalRestore_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, optionalRestore_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor)) {
return super.equals(obj);
}
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor other = (tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor) obj;
boolean result = true;
result = result && getName()
.equals(other.getName());
result = result && getFullName()
.equals(other.getFullName());
result = result && getCheckpointKey()
.equals(other.getCheckpointKey());
result = result && (getOptionalRestore()
== other.getOptionalRestore());
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) + FULL_NAME_FIELD_NUMBER;
hash = (53 * hash) + getFullName().hashCode();
hash = (37 * hash) + CHECKPOINT_KEY_FIELD_NUMBER;
hash = (53 * hash) + getCheckpointKey().hashCode();
hash = (37 * hash) + OPTIONAL_RESTORE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getOptionalRestore());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor)
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SerializedTensor_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SerializedTensor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.class, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.Builder.class);
}
// Construct using tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
name_ = "";
fullName_ = "";
checkpointKey_ = "";
optionalRestore_ = false;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SerializedTensor_descriptor;
}
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor getDefaultInstanceForType() {
return tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.getDefaultInstance();
}
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor build() {
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor buildPartial() {
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor result = new tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor(this);
result.name_ = name_;
result.fullName_ = fullName_;
result.checkpointKey_ = checkpointKey_;
result.optionalRestore_ = optionalRestore_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor) {
return mergeFrom((tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor other) {
if (other == tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getFullName().isEmpty()) {
fullName_ = other.fullName_;
onChanged();
}
if (!other.getCheckpointKey().isEmpty()) {
checkpointKey_ = other.checkpointKey_;
onChanged();
}
if (other.getOptionalRestore() != false) {
setOptionalRestore(other.getOptionalRestore());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
*
* A name for the Tensor. Simple variables have only one
* `SerializedTensor` named "VARIABLE_VALUE" by convention. This value may
* be restored on object creation as an optimization.
*
*
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A name for the Tensor. Simple variables have only one
* `SerializedTensor` named "VARIABLE_VALUE" by convention. This value may
* be restored on object creation as an optimization.
*
*
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A name for the Tensor. Simple variables have only one
* `SerializedTensor` named "VARIABLE_VALUE" by convention. This value may
* be restored on object creation as an optimization.
*
*
* string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* A name for the Tensor. Simple variables have only one
* `SerializedTensor` named "VARIABLE_VALUE" by convention. This value may
* be restored on object creation as an optimization.
*
*
* string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* A name for the Tensor. Simple variables have only one
* `SerializedTensor` named "VARIABLE_VALUE" by convention. This value may
* be restored on object creation as an optimization.
*
*
* string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object fullName_ = "";
/**
*
* The full name of the variable/tensor, if applicable. Used to allow
* name-based loading of checkpoints which were saved using an
* object-based API. Should match the checkpoint key which would have been
* assigned by tf.train.Saver.
*
*
* string full_name = 2;
*/
public java.lang.String getFullName() {
java.lang.Object ref = fullName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fullName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The full name of the variable/tensor, if applicable. Used to allow
* name-based loading of checkpoints which were saved using an
* object-based API. Should match the checkpoint key which would have been
* assigned by tf.train.Saver.
*
*
* string full_name = 2;
*/
public com.google.protobuf.ByteString
getFullNameBytes() {
java.lang.Object ref = fullName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fullName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The full name of the variable/tensor, if applicable. Used to allow
* name-based loading of checkpoints which were saved using an
* object-based API. Should match the checkpoint key which would have been
* assigned by tf.train.Saver.
*
*
* string full_name = 2;
*/
public Builder setFullName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fullName_ = value;
onChanged();
return this;
}
/**
*
* The full name of the variable/tensor, if applicable. Used to allow
* name-based loading of checkpoints which were saved using an
* object-based API. Should match the checkpoint key which would have been
* assigned by tf.train.Saver.
*
*
* string full_name = 2;
*/
public Builder clearFullName() {
fullName_ = getDefaultInstance().getFullName();
onChanged();
return this;
}
/**
*
* The full name of the variable/tensor, if applicable. Used to allow
* name-based loading of checkpoints which were saved using an
* object-based API. Should match the checkpoint key which would have been
* assigned by tf.train.Saver.
*
*
* string full_name = 2;
*/
public Builder setFullNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fullName_ = value;
onChanged();
return this;
}
private java.lang.Object checkpointKey_ = "";
/**
*
* The generated name of the Tensor in the checkpoint.
*
*
* string checkpoint_key = 3;
*/
public java.lang.String getCheckpointKey() {
java.lang.Object ref = checkpointKey_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
checkpointKey_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The generated name of the Tensor in the checkpoint.
*
*
* string checkpoint_key = 3;
*/
public com.google.protobuf.ByteString
getCheckpointKeyBytes() {
java.lang.Object ref = checkpointKey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
checkpointKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The generated name of the Tensor in the checkpoint.
*
*
* string checkpoint_key = 3;
*/
public Builder setCheckpointKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
checkpointKey_ = value;
onChanged();
return this;
}
/**
*
* The generated name of the Tensor in the checkpoint.
*
*
* string checkpoint_key = 3;
*/
public Builder clearCheckpointKey() {
checkpointKey_ = getDefaultInstance().getCheckpointKey();
onChanged();
return this;
}
/**
*
* The generated name of the Tensor in the checkpoint.
*
*
* string checkpoint_key = 3;
*/
public Builder setCheckpointKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
checkpointKey_ = value;
onChanged();
return this;
}
private boolean optionalRestore_ ;
/**
*
* Whether checkpoints should be considered as matching even without this
* value restored. Used for non-critical values which don't affect the
* TensorFlow graph, such as layer configurations.
*
*
* bool optional_restore = 4;
*/
public boolean getOptionalRestore() {
return optionalRestore_;
}
/**
*
* Whether checkpoints should be considered as matching even without this
* value restored. Used for non-critical values which don't affect the
* TensorFlow graph, such as layer configurations.
*
*
* bool optional_restore = 4;
*/
public Builder setOptionalRestore(boolean value) {
optionalRestore_ = value;
onChanged();
return this;
}
/**
*
* Whether checkpoints should be considered as matching even without this
* value restored. Used for non-critical values which don't affect the
* TensorFlow graph, such as layer configurations.
*
*
* bool optional_restore = 4;
*/
public Builder clearOptionalRestore() {
optionalRestore_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor)
}
// @@protoc_insertion_point(class_scope:tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor)
private static final tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor();
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SerializedTensor parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SerializedTensor(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SlotVariableReferenceOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference)
com.google.protobuf.MessageOrBuilder {
/**
*
* An index into `TrackableObjectGraph.nodes`, indicating the
* variable object this slot was created for.
*
*
* int32 original_variable_node_id = 1;
*/
int getOriginalVariableNodeId();
/**
*
* The name of the slot (e.g. "m"/"v").
*
*
* string slot_name = 2;
*/
java.lang.String getSlotName();
/**
*
* The name of the slot (e.g. "m"/"v").
*
*
* string slot_name = 2;
*/
com.google.protobuf.ByteString
getSlotNameBytes();
/**
*
* An index into `TrackableObjectGraph.nodes`, indicating the
* `Object` with the value of the slot variable.
*
*
* int32 slot_variable_node_id = 3;
*/
int getSlotVariableNodeId();
}
/**
* Protobuf type {@code tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference}
*/
public static final class SlotVariableReference extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference)
SlotVariableReferenceOrBuilder {
private static final long serialVersionUID = 0L;
// Use SlotVariableReference.newBuilder() to construct.
private SlotVariableReference(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SlotVariableReference() {
originalVariableNodeId_ = 0;
slotName_ = "";
slotVariableNodeId_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SlotVariableReference(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
originalVariableNodeId_ = input.readInt32();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
slotName_ = s;
break;
}
case 24: {
slotVariableNodeId_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SlotVariableReference_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SlotVariableReference_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.class, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder.class);
}
public static final int ORIGINAL_VARIABLE_NODE_ID_FIELD_NUMBER = 1;
private int originalVariableNodeId_;
/**
*
* An index into `TrackableObjectGraph.nodes`, indicating the
* variable object this slot was created for.
*
*
* int32 original_variable_node_id = 1;
*/
public int getOriginalVariableNodeId() {
return originalVariableNodeId_;
}
public static final int SLOT_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object slotName_;
/**
*
* The name of the slot (e.g. "m"/"v").
*
*
* string slot_name = 2;
*/
public java.lang.String getSlotName() {
java.lang.Object ref = slotName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
slotName_ = s;
return s;
}
}
/**
*
* The name of the slot (e.g. "m"/"v").
*
*
* string slot_name = 2;
*/
public com.google.protobuf.ByteString
getSlotNameBytes() {
java.lang.Object ref = slotName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
slotName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SLOT_VARIABLE_NODE_ID_FIELD_NUMBER = 3;
private int slotVariableNodeId_;
/**
*
* An index into `TrackableObjectGraph.nodes`, indicating the
* `Object` with the value of the slot variable.
*
*
* int32 slot_variable_node_id = 3;
*/
public int getSlotVariableNodeId() {
return slotVariableNodeId_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (originalVariableNodeId_ != 0) {
output.writeInt32(1, originalVariableNodeId_);
}
if (!getSlotNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, slotName_);
}
if (slotVariableNodeId_ != 0) {
output.writeInt32(3, slotVariableNodeId_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (originalVariableNodeId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, originalVariableNodeId_);
}
if (!getSlotNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, slotName_);
}
if (slotVariableNodeId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, slotVariableNodeId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference)) {
return super.equals(obj);
}
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference other = (tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference) obj;
boolean result = true;
result = result && (getOriginalVariableNodeId()
== other.getOriginalVariableNodeId());
result = result && getSlotName()
.equals(other.getSlotName());
result = result && (getSlotVariableNodeId()
== other.getSlotVariableNodeId());
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) + ORIGINAL_VARIABLE_NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + getOriginalVariableNodeId();
hash = (37 * hash) + SLOT_NAME_FIELD_NUMBER;
hash = (53 * hash) + getSlotName().hashCode();
hash = (37 * hash) + SLOT_VARIABLE_NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + getSlotVariableNodeId();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference)
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SlotVariableReference_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SlotVariableReference_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.class, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder.class);
}
// Construct using tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
originalVariableNodeId_ = 0;
slotName_ = "";
slotVariableNodeId_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SlotVariableReference_descriptor;
}
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference getDefaultInstanceForType() {
return tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.getDefaultInstance();
}
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference build() {
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference buildPartial() {
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference result = new tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference(this);
result.originalVariableNodeId_ = originalVariableNodeId_;
result.slotName_ = slotName_;
result.slotVariableNodeId_ = slotVariableNodeId_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference) {
return mergeFrom((tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference other) {
if (other == tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.getDefaultInstance()) return this;
if (other.getOriginalVariableNodeId() != 0) {
setOriginalVariableNodeId(other.getOriginalVariableNodeId());
}
if (!other.getSlotName().isEmpty()) {
slotName_ = other.slotName_;
onChanged();
}
if (other.getSlotVariableNodeId() != 0) {
setSlotVariableNodeId(other.getSlotVariableNodeId());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int originalVariableNodeId_ ;
/**
*
* An index into `TrackableObjectGraph.nodes`, indicating the
* variable object this slot was created for.
*
*
* int32 original_variable_node_id = 1;
*/
public int getOriginalVariableNodeId() {
return originalVariableNodeId_;
}
/**
*
* An index into `TrackableObjectGraph.nodes`, indicating the
* variable object this slot was created for.
*
*
* int32 original_variable_node_id = 1;
*/
public Builder setOriginalVariableNodeId(int value) {
originalVariableNodeId_ = value;
onChanged();
return this;
}
/**
*
* An index into `TrackableObjectGraph.nodes`, indicating the
* variable object this slot was created for.
*
*
* int32 original_variable_node_id = 1;
*/
public Builder clearOriginalVariableNodeId() {
originalVariableNodeId_ = 0;
onChanged();
return this;
}
private java.lang.Object slotName_ = "";
/**
*
* The name of the slot (e.g. "m"/"v").
*
*
* string slot_name = 2;
*/
public java.lang.String getSlotName() {
java.lang.Object ref = slotName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
slotName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The name of the slot (e.g. "m"/"v").
*
*
* string slot_name = 2;
*/
public com.google.protobuf.ByteString
getSlotNameBytes() {
java.lang.Object ref = slotName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
slotName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of the slot (e.g. "m"/"v").
*
*
* string slot_name = 2;
*/
public Builder setSlotName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
slotName_ = value;
onChanged();
return this;
}
/**
*
* The name of the slot (e.g. "m"/"v").
*
*
* string slot_name = 2;
*/
public Builder clearSlotName() {
slotName_ = getDefaultInstance().getSlotName();
onChanged();
return this;
}
/**
*
* The name of the slot (e.g. "m"/"v").
*
*
* string slot_name = 2;
*/
public Builder setSlotNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
slotName_ = value;
onChanged();
return this;
}
private int slotVariableNodeId_ ;
/**
*
* An index into `TrackableObjectGraph.nodes`, indicating the
* `Object` with the value of the slot variable.
*
*
* int32 slot_variable_node_id = 3;
*/
public int getSlotVariableNodeId() {
return slotVariableNodeId_;
}
/**
*
* An index into `TrackableObjectGraph.nodes`, indicating the
* `Object` with the value of the slot variable.
*
*
* int32 slot_variable_node_id = 3;
*/
public Builder setSlotVariableNodeId(int value) {
slotVariableNodeId_ = value;
onChanged();
return this;
}
/**
*
* An index into `TrackableObjectGraph.nodes`, indicating the
* `Object` with the value of the slot variable.
*
*
* int32 slot_variable_node_id = 3;
*/
public Builder clearSlotVariableNodeId() {
slotVariableNodeId_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference)
}
// @@protoc_insertion_point(class_scope:tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference)
private static final tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference();
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SlotVariableReference parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SlotVariableReference(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int CHILDREN_FIELD_NUMBER = 1;
private java.util.List children_;
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public java.util.List getChildrenList() {
return children_;
}
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public java.util.List extends tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder>
getChildrenOrBuilderList() {
return children_;
}
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public int getChildrenCount() {
return children_.size();
}
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference getChildren(int index) {
return children_.get(index);
}
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder getChildrenOrBuilder(
int index) {
return children_.get(index);
}
public static final int ATTRIBUTES_FIELD_NUMBER = 2;
private java.util.List attributes_;
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public java.util.List getAttributesList() {
return attributes_;
}
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public java.util.List extends tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensorOrBuilder>
getAttributesOrBuilderList() {
return attributes_;
}
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public int getAttributesCount() {
return attributes_.size();
}
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor getAttributes(int index) {
return attributes_.get(index);
}
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensorOrBuilder getAttributesOrBuilder(
int index) {
return attributes_.get(index);
}
public static final int SLOT_VARIABLES_FIELD_NUMBER = 3;
private java.util.List slotVariables_;
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public java.util.List getSlotVariablesList() {
return slotVariables_;
}
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public java.util.List extends tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder>
getSlotVariablesOrBuilderList() {
return slotVariables_;
}
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public int getSlotVariablesCount() {
return slotVariables_.size();
}
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference getSlotVariables(int index) {
return slotVariables_.get(index);
}
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder getSlotVariablesOrBuilder(
int index) {
return slotVariables_.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.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < children_.size(); i++) {
output.writeMessage(1, children_.get(i));
}
for (int i = 0; i < attributes_.size(); i++) {
output.writeMessage(2, attributes_.get(i));
}
for (int i = 0; i < slotVariables_.size(); i++) {
output.writeMessage(3, slotVariables_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < children_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, children_.get(i));
}
for (int i = 0; i < attributes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, attributes_.get(i));
}
for (int i = 0; i < slotVariables_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, slotVariables_.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 tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject)) {
return super.equals(obj);
}
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject other = (tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject) obj;
boolean result = true;
result = result && getChildrenList()
.equals(other.getChildrenList());
result = result && getAttributesList()
.equals(other.getAttributesList());
result = result && getSlotVariablesList()
.equals(other.getSlotVariablesList());
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 (getChildrenCount() > 0) {
hash = (37 * hash) + CHILDREN_FIELD_NUMBER;
hash = (53 * hash) + getChildrenList().hashCode();
}
if (getAttributesCount() > 0) {
hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER;
hash = (53 * hash) + getAttributesList().hashCode();
}
if (getSlotVariablesCount() > 0) {
hash = (37 * hash) + SLOT_VARIABLES_FIELD_NUMBER;
hash = (53 * hash) + getSlotVariablesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.TrackableObjectGraph.TrackableObject}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.TrackableObjectGraph.TrackableObject)
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObjectOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.class, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.Builder.class);
}
// Construct using tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getChildrenFieldBuilder();
getAttributesFieldBuilder();
getSlotVariablesFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (childrenBuilder_ == null) {
children_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
childrenBuilder_.clear();
}
if (attributesBuilder_ == null) {
attributes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
attributesBuilder_.clear();
}
if (slotVariablesBuilder_ == null) {
slotVariables_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
slotVariablesBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_descriptor;
}
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject getDefaultInstanceForType() {
return tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.getDefaultInstance();
}
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject build() {
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject buildPartial() {
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject result = new tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject(this);
int from_bitField0_ = bitField0_;
if (childrenBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
children_ = java.util.Collections.unmodifiableList(children_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.children_ = children_;
} else {
result.children_ = childrenBuilder_.build();
}
if (attributesBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
attributes_ = java.util.Collections.unmodifiableList(attributes_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.attributes_ = attributes_;
} else {
result.attributes_ = attributesBuilder_.build();
}
if (slotVariablesBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
slotVariables_ = java.util.Collections.unmodifiableList(slotVariables_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.slotVariables_ = slotVariables_;
} else {
result.slotVariables_ = slotVariablesBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject) {
return mergeFrom((tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject other) {
if (other == tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.getDefaultInstance()) return this;
if (childrenBuilder_ == null) {
if (!other.children_.isEmpty()) {
if (children_.isEmpty()) {
children_ = other.children_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureChildrenIsMutable();
children_.addAll(other.children_);
}
onChanged();
}
} else {
if (!other.children_.isEmpty()) {
if (childrenBuilder_.isEmpty()) {
childrenBuilder_.dispose();
childrenBuilder_ = null;
children_ = other.children_;
bitField0_ = (bitField0_ & ~0x00000001);
childrenBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getChildrenFieldBuilder() : null;
} else {
childrenBuilder_.addAllMessages(other.children_);
}
}
}
if (attributesBuilder_ == null) {
if (!other.attributes_.isEmpty()) {
if (attributes_.isEmpty()) {
attributes_ = other.attributes_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureAttributesIsMutable();
attributes_.addAll(other.attributes_);
}
onChanged();
}
} else {
if (!other.attributes_.isEmpty()) {
if (attributesBuilder_.isEmpty()) {
attributesBuilder_.dispose();
attributesBuilder_ = null;
attributes_ = other.attributes_;
bitField0_ = (bitField0_ & ~0x00000002);
attributesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAttributesFieldBuilder() : null;
} else {
attributesBuilder_.addAllMessages(other.attributes_);
}
}
}
if (slotVariablesBuilder_ == null) {
if (!other.slotVariables_.isEmpty()) {
if (slotVariables_.isEmpty()) {
slotVariables_ = other.slotVariables_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureSlotVariablesIsMutable();
slotVariables_.addAll(other.slotVariables_);
}
onChanged();
}
} else {
if (!other.slotVariables_.isEmpty()) {
if (slotVariablesBuilder_.isEmpty()) {
slotVariablesBuilder_.dispose();
slotVariablesBuilder_ = null;
slotVariables_ = other.slotVariables_;
bitField0_ = (bitField0_ & ~0x00000004);
slotVariablesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSlotVariablesFieldBuilder() : null;
} else {
slotVariablesBuilder_.addAllMessages(other.slotVariables_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List children_ =
java.util.Collections.emptyList();
private void ensureChildrenIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
children_ = new java.util.ArrayList(children_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder> childrenBuilder_;
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public java.util.List getChildrenList() {
if (childrenBuilder_ == null) {
return java.util.Collections.unmodifiableList(children_);
} else {
return childrenBuilder_.getMessageList();
}
}
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public int getChildrenCount() {
if (childrenBuilder_ == null) {
return children_.size();
} else {
return childrenBuilder_.getCount();
}
}
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference getChildren(int index) {
if (childrenBuilder_ == null) {
return children_.get(index);
} else {
return childrenBuilder_.getMessage(index);
}
}
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public Builder setChildren(
int index, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference value) {
if (childrenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildrenIsMutable();
children_.set(index, value);
onChanged();
} else {
childrenBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public Builder setChildren(
int index, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder builderForValue) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
children_.set(index, builderForValue.build());
onChanged();
} else {
childrenBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public Builder addChildren(tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference value) {
if (childrenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildrenIsMutable();
children_.add(value);
onChanged();
} else {
childrenBuilder_.addMessage(value);
}
return this;
}
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public Builder addChildren(
int index, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference value) {
if (childrenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildrenIsMutable();
children_.add(index, value);
onChanged();
} else {
childrenBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public Builder addChildren(
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder builderForValue) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
children_.add(builderForValue.build());
onChanged();
} else {
childrenBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public Builder addChildren(
int index, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder builderForValue) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
children_.add(index, builderForValue.build());
onChanged();
} else {
childrenBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public Builder addAllChildren(
java.lang.Iterable extends tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference> values) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, children_);
onChanged();
} else {
childrenBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public Builder clearChildren() {
if (childrenBuilder_ == null) {
children_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
childrenBuilder_.clear();
}
return this;
}
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public Builder removeChildren(int index) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
children_.remove(index);
onChanged();
} else {
childrenBuilder_.remove(index);
}
return this;
}
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder getChildrenBuilder(
int index) {
return getChildrenFieldBuilder().getBuilder(index);
}
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder getChildrenOrBuilder(
int index) {
if (childrenBuilder_ == null) {
return children_.get(index); } else {
return childrenBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public java.util.List extends tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder>
getChildrenOrBuilderList() {
if (childrenBuilder_ != null) {
return childrenBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(children_);
}
}
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder addChildrenBuilder() {
return getChildrenFieldBuilder().addBuilder(
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.getDefaultInstance());
}
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder addChildrenBuilder(
int index) {
return getChildrenFieldBuilder().addBuilder(
index, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.getDefaultInstance());
}
/**
*
* Objects which this object depends on.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1;
*/
public java.util.List
getChildrenBuilderList() {
return getChildrenFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder>
getChildrenFieldBuilder() {
if (childrenBuilder_ == null) {
childrenBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder>(
children_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
children_ = null;
}
return childrenBuilder_;
}
private java.util.List attributes_ =
java.util.Collections.emptyList();
private void ensureAttributesIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
attributes_ = new java.util.ArrayList(attributes_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.Builder, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensorOrBuilder> attributesBuilder_;
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public java.util.List getAttributesList() {
if (attributesBuilder_ == null) {
return java.util.Collections.unmodifiableList(attributes_);
} else {
return attributesBuilder_.getMessageList();
}
}
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public int getAttributesCount() {
if (attributesBuilder_ == null) {
return attributes_.size();
} else {
return attributesBuilder_.getCount();
}
}
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor getAttributes(int index) {
if (attributesBuilder_ == null) {
return attributes_.get(index);
} else {
return attributesBuilder_.getMessage(index);
}
}
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public Builder setAttributes(
int index, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.set(index, value);
onChanged();
} else {
attributesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public Builder setAttributes(
int index, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.Builder builderForValue) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.set(index, builderForValue.build());
onChanged();
} else {
attributesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public Builder addAttributes(tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.add(value);
onChanged();
} else {
attributesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public Builder addAttributes(
int index, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.add(index, value);
onChanged();
} else {
attributesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public Builder addAttributes(
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.Builder builderForValue) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.add(builderForValue.build());
onChanged();
} else {
attributesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public Builder addAttributes(
int index, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.Builder builderForValue) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.add(index, builderForValue.build());
onChanged();
} else {
attributesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public Builder addAllAttributes(
java.lang.Iterable extends tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor> values) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, attributes_);
onChanged();
} else {
attributesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public Builder clearAttributes() {
if (attributesBuilder_ == null) {
attributes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
attributesBuilder_.clear();
}
return this;
}
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public Builder removeAttributes(int index) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.remove(index);
onChanged();
} else {
attributesBuilder_.remove(index);
}
return this;
}
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.Builder getAttributesBuilder(
int index) {
return getAttributesFieldBuilder().getBuilder(index);
}
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensorOrBuilder getAttributesOrBuilder(
int index) {
if (attributesBuilder_ == null) {
return attributes_.get(index); } else {
return attributesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public java.util.List extends tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensorOrBuilder>
getAttributesOrBuilderList() {
if (attributesBuilder_ != null) {
return attributesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(attributes_);
}
}
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.Builder addAttributesBuilder() {
return getAttributesFieldBuilder().addBuilder(
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.getDefaultInstance());
}
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.Builder addAttributesBuilder(
int index) {
return getAttributesFieldBuilder().addBuilder(
index, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.getDefaultInstance());
}
/**
*
* Serialized data specific to this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2;
*/
public java.util.List
getAttributesBuilderList() {
return getAttributesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.Builder, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensorOrBuilder>
getAttributesFieldBuilder() {
if (attributesBuilder_ == null) {
attributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.Builder, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensorOrBuilder>(
attributes_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
attributes_ = null;
}
return attributesBuilder_;
}
private java.util.List slotVariables_ =
java.util.Collections.emptyList();
private void ensureSlotVariablesIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
slotVariables_ = new java.util.ArrayList(slotVariables_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder> slotVariablesBuilder_;
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public java.util.List getSlotVariablesList() {
if (slotVariablesBuilder_ == null) {
return java.util.Collections.unmodifiableList(slotVariables_);
} else {
return slotVariablesBuilder_.getMessageList();
}
}
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public int getSlotVariablesCount() {
if (slotVariablesBuilder_ == null) {
return slotVariables_.size();
} else {
return slotVariablesBuilder_.getCount();
}
}
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference getSlotVariables(int index) {
if (slotVariablesBuilder_ == null) {
return slotVariables_.get(index);
} else {
return slotVariablesBuilder_.getMessage(index);
}
}
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public Builder setSlotVariables(
int index, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference value) {
if (slotVariablesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSlotVariablesIsMutable();
slotVariables_.set(index, value);
onChanged();
} else {
slotVariablesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public Builder setSlotVariables(
int index, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder builderForValue) {
if (slotVariablesBuilder_ == null) {
ensureSlotVariablesIsMutable();
slotVariables_.set(index, builderForValue.build());
onChanged();
} else {
slotVariablesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public Builder addSlotVariables(tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference value) {
if (slotVariablesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSlotVariablesIsMutable();
slotVariables_.add(value);
onChanged();
} else {
slotVariablesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public Builder addSlotVariables(
int index, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference value) {
if (slotVariablesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSlotVariablesIsMutable();
slotVariables_.add(index, value);
onChanged();
} else {
slotVariablesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public Builder addSlotVariables(
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder builderForValue) {
if (slotVariablesBuilder_ == null) {
ensureSlotVariablesIsMutable();
slotVariables_.add(builderForValue.build());
onChanged();
} else {
slotVariablesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public Builder addSlotVariables(
int index, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder builderForValue) {
if (slotVariablesBuilder_ == null) {
ensureSlotVariablesIsMutable();
slotVariables_.add(index, builderForValue.build());
onChanged();
} else {
slotVariablesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public Builder addAllSlotVariables(
java.lang.Iterable extends tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference> values) {
if (slotVariablesBuilder_ == null) {
ensureSlotVariablesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, slotVariables_);
onChanged();
} else {
slotVariablesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public Builder clearSlotVariables() {
if (slotVariablesBuilder_ == null) {
slotVariables_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
slotVariablesBuilder_.clear();
}
return this;
}
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public Builder removeSlotVariables(int index) {
if (slotVariablesBuilder_ == null) {
ensureSlotVariablesIsMutable();
slotVariables_.remove(index);
onChanged();
} else {
slotVariablesBuilder_.remove(index);
}
return this;
}
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder getSlotVariablesBuilder(
int index) {
return getSlotVariablesFieldBuilder().getBuilder(index);
}
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder getSlotVariablesOrBuilder(
int index) {
if (slotVariablesBuilder_ == null) {
return slotVariables_.get(index); } else {
return slotVariablesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public java.util.List extends tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder>
getSlotVariablesOrBuilderList() {
if (slotVariablesBuilder_ != null) {
return slotVariablesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(slotVariables_);
}
}
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder addSlotVariablesBuilder() {
return getSlotVariablesFieldBuilder().addBuilder(
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.getDefaultInstance());
}
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder addSlotVariablesBuilder(
int index) {
return getSlotVariablesFieldBuilder().addBuilder(
index, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.getDefaultInstance());
}
/**
*
* Slot variables owned by this object.
*
*
* repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3;
*/
public java.util.List
getSlotVariablesBuilderList() {
return getSlotVariablesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder>
getSlotVariablesFieldBuilder() {
if (slotVariablesBuilder_ == null) {
slotVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder>(
slotVariables_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
slotVariables_ = null;
}
return slotVariablesBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.TrackableObjectGraph.TrackableObject)
}
// @@protoc_insertion_point(class_scope:tensorflow.TrackableObjectGraph.TrackableObject)
private static final tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject();
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TrackableObject parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TrackableObject(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int NODES_FIELD_NUMBER = 1;
private java.util.List nodes_;
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public java.util.List getNodesList() {
return nodes_;
}
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public java.util.List extends tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObjectOrBuilder>
getNodesOrBuilderList() {
return nodes_;
}
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public int getNodesCount() {
return nodes_.size();
}
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject getNodes(int index) {
return nodes_.get(index);
}
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObjectOrBuilder getNodesOrBuilder(
int index) {
return nodes_.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.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < nodes_.size(); i++) {
output.writeMessage(1, nodes_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < nodes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, nodes_.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 tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph)) {
return super.equals(obj);
}
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph other = (tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph) obj;
boolean result = true;
result = result && getNodesList()
.equals(other.getNodesList());
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 (getNodesCount() > 0) {
hash = (37 * hash) + NODES_FIELD_NUMBER;
hash = (53 * hash) + getNodesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.TrackableObjectGraph}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.TrackableObjectGraph)
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraphOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.class, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.Builder.class);
}
// Construct using tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getNodesFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (nodesBuilder_ == null) {
nodes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
nodesBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_descriptor;
}
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph getDefaultInstanceForType() {
return tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.getDefaultInstance();
}
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph build() {
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph buildPartial() {
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph result = new tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph(this);
int from_bitField0_ = bitField0_;
if (nodesBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
nodes_ = java.util.Collections.unmodifiableList(nodes_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.nodes_ = nodes_;
} else {
result.nodes_ = nodesBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph) {
return mergeFrom((tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph other) {
if (other == tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.getDefaultInstance()) return this;
if (nodesBuilder_ == null) {
if (!other.nodes_.isEmpty()) {
if (nodes_.isEmpty()) {
nodes_ = other.nodes_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureNodesIsMutable();
nodes_.addAll(other.nodes_);
}
onChanged();
}
} else {
if (!other.nodes_.isEmpty()) {
if (nodesBuilder_.isEmpty()) {
nodesBuilder_.dispose();
nodesBuilder_ = null;
nodes_ = other.nodes_;
bitField0_ = (bitField0_ & ~0x00000001);
nodesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNodesFieldBuilder() : null;
} else {
nodesBuilder_.addAllMessages(other.nodes_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List nodes_ =
java.util.Collections.emptyList();
private void ensureNodesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
nodes_ = new java.util.ArrayList(nodes_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.Builder, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObjectOrBuilder> nodesBuilder_;
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public java.util.List getNodesList() {
if (nodesBuilder_ == null) {
return java.util.Collections.unmodifiableList(nodes_);
} else {
return nodesBuilder_.getMessageList();
}
}
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public int getNodesCount() {
if (nodesBuilder_ == null) {
return nodes_.size();
} else {
return nodesBuilder_.getCount();
}
}
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject getNodes(int index) {
if (nodesBuilder_ == null) {
return nodes_.get(index);
} else {
return nodesBuilder_.getMessage(index);
}
}
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public Builder setNodes(
int index, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject value) {
if (nodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodesIsMutable();
nodes_.set(index, value);
onChanged();
} else {
nodesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public Builder setNodes(
int index, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.Builder builderForValue) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.set(index, builderForValue.build());
onChanged();
} else {
nodesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public Builder addNodes(tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject value) {
if (nodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodesIsMutable();
nodes_.add(value);
onChanged();
} else {
nodesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public Builder addNodes(
int index, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject value) {
if (nodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodesIsMutable();
nodes_.add(index, value);
onChanged();
} else {
nodesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public Builder addNodes(
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.Builder builderForValue) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.add(builderForValue.build());
onChanged();
} else {
nodesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public Builder addNodes(
int index, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.Builder builderForValue) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.add(index, builderForValue.build());
onChanged();
} else {
nodesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public Builder addAllNodes(
java.lang.Iterable extends tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject> values) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, nodes_);
onChanged();
} else {
nodesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public Builder clearNodes() {
if (nodesBuilder_ == null) {
nodes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
nodesBuilder_.clear();
}
return this;
}
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public Builder removeNodes(int index) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.remove(index);
onChanged();
} else {
nodesBuilder_.remove(index);
}
return this;
}
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.Builder getNodesBuilder(
int index) {
return getNodesFieldBuilder().getBuilder(index);
}
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObjectOrBuilder getNodesOrBuilder(
int index) {
if (nodesBuilder_ == null) {
return nodes_.get(index); } else {
return nodesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public java.util.List extends tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObjectOrBuilder>
getNodesOrBuilderList() {
if (nodesBuilder_ != null) {
return nodesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(nodes_);
}
}
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.Builder addNodesBuilder() {
return getNodesFieldBuilder().addBuilder(
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.getDefaultInstance());
}
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.Builder addNodesBuilder(
int index) {
return getNodesFieldBuilder().addBuilder(
index, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.getDefaultInstance());
}
/**
* repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1;
*/
public java.util.List
getNodesBuilderList() {
return getNodesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.Builder, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObjectOrBuilder>
getNodesFieldBuilder() {
if (nodesBuilder_ == null) {
nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.Builder, tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObjectOrBuilder>(
nodes_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
nodes_ = null;
}
return nodesBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.TrackableObjectGraph)
}
// @@protoc_insertion_point(class_scope:tensorflow.TrackableObjectGraph)
private static final tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph();
}
public static tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TrackableObjectGraph parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TrackableObjectGraph(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public tensorflow.TrackableObjectGraphOuterClass.TrackableObjectGraph getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_TrackableObjectGraph_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_TrackableObjectGraph_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_ObjectReference_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_ObjectReference_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SerializedTensor_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SerializedTensor_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SlotVariableReference_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SlotVariableReference_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n5tensorflow/core/protobuf/trackable_obj" +
"ect_graph.proto\022\ntensorflow\"\203\005\n\024Trackabl" +
"eObjectGraph\022?\n\005nodes\030\001 \003(\01320.tensorflow" +
".TrackableObjectGraph.TrackableObject\032\251\004" +
"\n\017TrackableObject\022R\n\010children\030\001 \003(\[email protected]" +
"nsorflow.TrackableObjectGraph.TrackableO" +
"bject.ObjectReference\022U\n\nattributes\030\002 \003(" +
"\0132A.tensorflow.TrackableObjectGraph.Trac" +
"kableObject.SerializedTensor\022^\n\016slot_var" +
"iables\030\003 \003(\0132F.tensorflow.TrackableObjec" +
"tGraph.TrackableObject.SlotVariableRefer" +
"ence\0326\n\017ObjectReference\022\017\n\007node_id\030\001 \001(\005" +
"\022\022\n\nlocal_name\030\002 \001(\t\032e\n\020SerializedTensor" +
"\022\014\n\004name\030\001 \001(\t\022\021\n\tfull_name\030\002 \001(\t\022\026\n\016che" +
"ckpoint_key\030\003 \001(\t\022\030\n\020optional_restore\030\004 " +
"\001(\010\032l\n\025SlotVariableReference\022!\n\031original" +
"_variable_node_id\030\001 \001(\005\022\021\n\tslot_name\030\002 \001" +
"(\t\022\035\n\025slot_variable_node_id\030\003 \001(\005B\003\370\001\001b\006" +
"proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_tensorflow_TrackableObjectGraph_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_tensorflow_TrackableObjectGraph_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_TrackableObjectGraph_descriptor,
new java.lang.String[] { "Nodes", });
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_descriptor =
internal_static_tensorflow_TrackableObjectGraph_descriptor.getNestedTypes().get(0);
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_descriptor,
new java.lang.String[] { "Children", "Attributes", "SlotVariables", });
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_ObjectReference_descriptor =
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_descriptor.getNestedTypes().get(0);
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_ObjectReference_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_ObjectReference_descriptor,
new java.lang.String[] { "NodeId", "LocalName", });
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SerializedTensor_descriptor =
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_descriptor.getNestedTypes().get(1);
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SerializedTensor_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SerializedTensor_descriptor,
new java.lang.String[] { "Name", "FullName", "CheckpointKey", "OptionalRestore", });
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SlotVariableReference_descriptor =
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_descriptor.getNestedTypes().get(2);
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SlotVariableReference_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SlotVariableReference_descriptor,
new java.lang.String[] { "OriginalVariableNodeId", "SlotName", "SlotVariableNodeId", });
}
// @@protoc_insertion_point(outer_class_scope)
}