Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/framework/remote_fused_graph_execute_info.proto
package org.tensorflow.framework;
/**
*
* Protocol buffer representing a handle to a tensorflow resource. Handles are
* not valid across executions, but can be serialized back and forth from within
* a single run.
*
*
* Protobuf type {@code tensorflow.RemoteFusedGraphExecuteInfo}
*/
public final class RemoteFusedGraphExecuteInfo extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.RemoteFusedGraphExecuteInfo)
RemoteFusedGraphExecuteInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use RemoteFusedGraphExecuteInfo.newBuilder() to construct.
private RemoteFusedGraphExecuteInfo(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private RemoteFusedGraphExecuteInfo() {
graphInputNodeName_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY;
graphOutputNodeName_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY;
executorName_ = "";
serializedExecutorParameters_ = org.nd4j.shade.protobuf.ByteString.EMPTY;
defaultGraphInputTensorShape_ = java.util.Collections.emptyList();
defaultGraphOutputTensorShape_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RemoteFusedGraphExecuteInfo();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RemoteFusedGraphExecuteInfo(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields =
org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.tensorflow.framework.GraphDef.Builder subBuilder = null;
if (remoteGraph_ != null) {
subBuilder = remoteGraph_.toBuilder();
}
remoteGraph_ = input.readMessage(org.tensorflow.framework.GraphDef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(remoteGraph_);
remoteGraph_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
graphInputNodeName_ = new org.nd4j.shade.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
graphInputNodeName_.add(s);
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
graphOutputNodeName_ = new org.nd4j.shade.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
graphOutputNodeName_.add(s);
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
executorName_ = s;
break;
}
case 42: {
serializedExecutorParameters_ = input.readBytes();
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
defaultGraphInputTensorShape_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
defaultGraphInputTensorShape_.add(
input.readMessage(org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto.parser(), extensionRegistry));
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
defaultGraphOutputTensorShape_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
defaultGraphOutputTensorShape_.add(
input.readMessage(org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
graphInputNodeName_ = graphInputNodeName_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
graphOutputNodeName_ = graphOutputNodeName_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
defaultGraphInputTensorShape_ = java.util.Collections.unmodifiableList(defaultGraphInputTensorShape_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
defaultGraphOutputTensorShape_ = java.util.Collections.unmodifiableList(defaultGraphOutputTensorShape_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.RemoteFusedGraphExecuteInfoProto.internal_static_tensorflow_RemoteFusedGraphExecuteInfo_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.RemoteFusedGraphExecuteInfoProto.internal_static_tensorflow_RemoteFusedGraphExecuteInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.RemoteFusedGraphExecuteInfo.class, org.tensorflow.framework.RemoteFusedGraphExecuteInfo.Builder.class);
}
public interface TensorShapeTypeProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto)
org.nd4j.shade.protobuf.MessageOrBuilder {
/**
* .tensorflow.DataType dtype = 1;
* @return The enum numeric value on the wire for dtype.
*/
int getDtypeValue();
/**
* .tensorflow.DataType dtype = 1;
* @return The dtype.
*/
org.tensorflow.framework.DataType getDtype();
/**
* .tensorflow.TensorShapeProto shape = 2;
* @return Whether the shape field is set.
*/
boolean hasShape();
/**
* .tensorflow.TensorShapeProto shape = 2;
* @return The shape.
*/
org.tensorflow.framework.TensorShapeProto getShape();
/**
* .tensorflow.TensorShapeProto shape = 2;
*/
org.tensorflow.framework.TensorShapeProtoOrBuilder getShapeOrBuilder();
}
/**
* Protobuf type {@code tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto}
*/
public static final class TensorShapeTypeProto extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto)
TensorShapeTypeProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use TensorShapeTypeProto.newBuilder() to construct.
private TensorShapeTypeProto(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private TensorShapeTypeProto() {
dtype_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TensorShapeTypeProto();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TensorShapeTypeProto(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields =
org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
dtype_ = rawValue;
break;
}
case 18: {
org.tensorflow.framework.TensorShapeProto.Builder subBuilder = null;
if (shape_ != null) {
subBuilder = shape_.toBuilder();
}
shape_ = input.readMessage(org.tensorflow.framework.TensorShapeProto.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(shape_);
shape_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.RemoteFusedGraphExecuteInfoProto.internal_static_tensorflow_RemoteFusedGraphExecuteInfo_TensorShapeTypeProto_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.RemoteFusedGraphExecuteInfoProto.internal_static_tensorflow_RemoteFusedGraphExecuteInfo_TensorShapeTypeProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto.class, org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto.Builder.class);
}
public static final int DTYPE_FIELD_NUMBER = 1;
private int dtype_;
/**
* .tensorflow.DataType dtype = 1;
* @return The enum numeric value on the wire for dtype.
*/
@java.lang.Override public int getDtypeValue() {
return dtype_;
}
/**
* .tensorflow.DataType dtype = 1;
* @return The dtype.
*/
@java.lang.Override public org.tensorflow.framework.DataType getDtype() {
@SuppressWarnings("deprecation")
org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(dtype_);
return result == null ? org.tensorflow.framework.DataType.UNRECOGNIZED : result;
}
public static final int SHAPE_FIELD_NUMBER = 2;
private org.tensorflow.framework.TensorShapeProto shape_;
/**
* .tensorflow.TensorShapeProto shape = 2;
* @return Whether the shape field is set.
*/
@java.lang.Override
public boolean hasShape() {
return shape_ != null;
}
/**
* .tensorflow.TensorShapeProto shape = 2;
* @return The shape.
*/
@java.lang.Override
public org.tensorflow.framework.TensorShapeProto getShape() {
return shape_ == null ? org.tensorflow.framework.TensorShapeProto.getDefaultInstance() : shape_;
}
/**
* .tensorflow.TensorShapeProto shape = 2;
*/
@java.lang.Override
public org.tensorflow.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() {
return getShape();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (dtype_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) {
output.writeEnum(1, dtype_);
}
if (shape_ != null) {
output.writeMessage(2, getShape());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (dtype_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeEnumSize(1, dtype_);
}
if (shape_ != null) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(2, getShape());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto)) {
return super.equals(obj);
}
org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto other = (org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto) obj;
if (dtype_ != other.dtype_) return false;
if (hasShape() != other.hasShape()) return false;
if (hasShape()) {
if (!getShape()
.equals(other.getShape())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DTYPE_FIELD_NUMBER;
hash = (53 * hash) + dtype_;
if (hasShape()) {
hash = (37 * hash) + SHAPE_FIELD_NUMBER;
hash = (53 * hash) + getShape().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto parseFrom(
org.nd4j.shade.protobuf.ByteString data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto parseFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto parseDelimitedFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto)
org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProtoOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.RemoteFusedGraphExecuteInfoProto.internal_static_tensorflow_RemoteFusedGraphExecuteInfo_TensorShapeTypeProto_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.RemoteFusedGraphExecuteInfoProto.internal_static_tensorflow_RemoteFusedGraphExecuteInfo_TensorShapeTypeProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto.class, org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto.Builder.class);
}
// Construct using org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.nd4j.shade.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
dtype_ = 0;
if (shapeBuilder_ == null) {
shape_ = null;
} else {
shape_ = null;
shapeBuilder_ = null;
}
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.RemoteFusedGraphExecuteInfoProto.internal_static_tensorflow_RemoteFusedGraphExecuteInfo_TensorShapeTypeProto_descriptor;
}
@java.lang.Override
public org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto getDefaultInstanceForType() {
return org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto.getDefaultInstance();
}
@java.lang.Override
public org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto build() {
org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto buildPartial() {
org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto result = new org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto(this);
result.dtype_ = dtype_;
if (shapeBuilder_ == null) {
result.shape_ = shape_;
} else {
result.shape_ = shapeBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) {
if (other instanceof org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto) {
return mergeFrom((org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto other) {
if (other == org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto.getDefaultInstance()) return this;
if (other.dtype_ != 0) {
setDtypeValue(other.getDtypeValue());
}
if (other.hasShape()) {
mergeShape(other.getShape());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int dtype_ = 0;
/**
* .tensorflow.DataType dtype = 1;
* @return The enum numeric value on the wire for dtype.
*/
@java.lang.Override public int getDtypeValue() {
return dtype_;
}
/**
* .tensorflow.DataType dtype = 1;
* @param value The enum numeric value on the wire for dtype to set.
* @return This builder for chaining.
*/
public Builder setDtypeValue(int value) {
dtype_ = value;
onChanged();
return this;
}
/**
* .tensorflow.DataType dtype = 1;
* @return The dtype.
*/
@java.lang.Override
public org.tensorflow.framework.DataType getDtype() {
@SuppressWarnings("deprecation")
org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(dtype_);
return result == null ? org.tensorflow.framework.DataType.UNRECOGNIZED : result;
}
/**
* .tensorflow.DataType dtype = 1;
* @param value The dtype to set.
* @return This builder for chaining.
*/
public Builder setDtype(org.tensorflow.framework.DataType value) {
if (value == null) {
throw new NullPointerException();
}
dtype_ = value.getNumber();
onChanged();
return this;
}
/**
* .tensorflow.DataType dtype = 1;
* @return This builder for chaining.
*/
public Builder clearDtype() {
dtype_ = 0;
onChanged();
return this;
}
private org.tensorflow.framework.TensorShapeProto shape_;
private org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.TensorShapeProto, org.tensorflow.framework.TensorShapeProto.Builder, org.tensorflow.framework.TensorShapeProtoOrBuilder> shapeBuilder_;
/**
* .tensorflow.TensorShapeProto shape = 2;
* @return Whether the shape field is set.
*/
public boolean hasShape() {
return shapeBuilder_ != null || shape_ != null;
}
/**
* .tensorflow.TensorShapeProto shape = 2;
* @return The shape.
*/
public org.tensorflow.framework.TensorShapeProto getShape() {
if (shapeBuilder_ == null) {
return shape_ == null ? org.tensorflow.framework.TensorShapeProto.getDefaultInstance() : shape_;
} else {
return shapeBuilder_.getMessage();
}
}
/**
* .tensorflow.TensorShapeProto shape = 2;
*/
public Builder setShape(org.tensorflow.framework.TensorShapeProto value) {
if (shapeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
shape_ = value;
onChanged();
} else {
shapeBuilder_.setMessage(value);
}
return this;
}
/**
* .tensorflow.TensorShapeProto shape = 2;
*/
public Builder setShape(
org.tensorflow.framework.TensorShapeProto.Builder builderForValue) {
if (shapeBuilder_ == null) {
shape_ = builderForValue.build();
onChanged();
} else {
shapeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .tensorflow.TensorShapeProto shape = 2;
*/
public Builder mergeShape(org.tensorflow.framework.TensorShapeProto value) {
if (shapeBuilder_ == null) {
if (shape_ != null) {
shape_ =
org.tensorflow.framework.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial();
} else {
shape_ = value;
}
onChanged();
} else {
shapeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .tensorflow.TensorShapeProto shape = 2;
*/
public Builder clearShape() {
if (shapeBuilder_ == null) {
shape_ = null;
onChanged();
} else {
shape_ = null;
shapeBuilder_ = null;
}
return this;
}
/**
* .tensorflow.TensorShapeProto shape = 2;
*/
public org.tensorflow.framework.TensorShapeProto.Builder getShapeBuilder() {
onChanged();
return getShapeFieldBuilder().getBuilder();
}
/**
* .tensorflow.TensorShapeProto shape = 2;
*/
public org.tensorflow.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() {
if (shapeBuilder_ != null) {
return shapeBuilder_.getMessageOrBuilder();
} else {
return shape_ == null ?
org.tensorflow.framework.TensorShapeProto.getDefaultInstance() : shape_;
}
}
/**
* .tensorflow.TensorShapeProto shape = 2;
*/
private org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.TensorShapeProto, org.tensorflow.framework.TensorShapeProto.Builder, org.tensorflow.framework.TensorShapeProtoOrBuilder>
getShapeFieldBuilder() {
if (shapeBuilder_ == null) {
shapeBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.TensorShapeProto, org.tensorflow.framework.TensorShapeProto.Builder, org.tensorflow.framework.TensorShapeProtoOrBuilder>(
getShape(),
getParentForChildren(),
isClean());
shape_ = null;
}
return shapeBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto)
}
// @@protoc_insertion_point(class_scope:tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto)
private static final org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto();
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public TensorShapeTypeProto parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new TensorShapeTypeProto(input, extensionRegistry);
}
};
public static org.nd4j.shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int REMOTE_GRAPH_FIELD_NUMBER = 1;
private org.tensorflow.framework.GraphDef remoteGraph_;
/**
*
* Definition of remote graph
*
*
* .tensorflow.GraphDef remote_graph = 1;
* @return Whether the remoteGraph field is set.
*/
@java.lang.Override
public boolean hasRemoteGraph() {
return remoteGraph_ != null;
}
/**
*
*
* .tensorflow.GraphDef remote_graph = 1;
*/
@java.lang.Override
public org.tensorflow.framework.GraphDefOrBuilder getRemoteGraphOrBuilder() {
return getRemoteGraph();
}
public static final int GRAPH_INPUT_NODE_NAME_FIELD_NUMBER = 2;
private org.nd4j.shade.protobuf.LazyStringList graphInputNodeName_;
/**
*
* Remote fused graph input node name
*
*
* repeated string graph_input_node_name = 2;
* @return A list containing the graphInputNodeName.
*/
public org.nd4j.shade.protobuf.ProtocolStringList
getGraphInputNodeNameList() {
return graphInputNodeName_;
}
/**
*
* Remote fused graph input node name
*
*
* repeated string graph_input_node_name = 2;
* @return The count of graphInputNodeName.
*/
public int getGraphInputNodeNameCount() {
return graphInputNodeName_.size();
}
/**
*
* Remote fused graph input node name
*
*
* repeated string graph_input_node_name = 2;
* @param index The index of the element to return.
* @return The graphInputNodeName at the given index.
*/
public java.lang.String getGraphInputNodeName(int index) {
return graphInputNodeName_.get(index);
}
/**
*
* Remote fused graph input node name
*
*
* repeated string graph_input_node_name = 2;
* @param index The index of the value to return.
* @return The bytes of the graphInputNodeName at the given index.
*/
public org.nd4j.shade.protobuf.ByteString
getGraphInputNodeNameBytes(int index) {
return graphInputNodeName_.getByteString(index);
}
public static final int GRAPH_OUTPUT_NODE_NAME_FIELD_NUMBER = 3;
private org.nd4j.shade.protobuf.LazyStringList graphOutputNodeName_;
/**
*
* Remote fused graph output node name
*
*
* repeated string graph_output_node_name = 3;
* @return A list containing the graphOutputNodeName.
*/
public org.nd4j.shade.protobuf.ProtocolStringList
getGraphOutputNodeNameList() {
return graphOutputNodeName_;
}
/**
*
* Remote fused graph output node name
*
*
* repeated string graph_output_node_name = 3;
* @return The count of graphOutputNodeName.
*/
public int getGraphOutputNodeNameCount() {
return graphOutputNodeName_.size();
}
/**
*
* Remote fused graph output node name
*
*
* repeated string graph_output_node_name = 3;
* @param index The index of the element to return.
* @return The graphOutputNodeName at the given index.
*/
public java.lang.String getGraphOutputNodeName(int index) {
return graphOutputNodeName_.get(index);
}
/**
*
* Remote fused graph output node name
*
*
* repeated string graph_output_node_name = 3;
* @param index The index of the value to return.
* @return The bytes of the graphOutputNodeName at the given index.
*/
public org.nd4j.shade.protobuf.ByteString
getGraphOutputNodeNameBytes(int index) {
return graphOutputNodeName_.getByteString(index);
}
public static final int EXECUTOR_NAME_FIELD_NUMBER = 4;
private volatile java.lang.Object executorName_;
/**
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
*
*
* repeated .tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto default_graph_input_tensor_shape = 6;
*/
@java.lang.Override
public org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProtoOrBuilder getDefaultGraphInputTensorShapeOrBuilder(
int index) {
return defaultGraphInputTensorShape_.get(index);
}
public static final int DEFAULT_GRAPH_OUTPUT_TENSOR_SHAPE_FIELD_NUMBER = 7;
private java.util.List defaultGraphOutputTensorShape_;
/**
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
*
* repeated .tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto default_graph_output_tensor_shape = 7;
*/
@java.lang.Override
public int getDefaultGraphOutputTensorShapeCount() {
return defaultGraphOutputTensorShape_.size();
}
/**
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
*
* repeated .tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto default_graph_output_tensor_shape = 7;
*/
@java.lang.Override
public org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProtoOrBuilder getDefaultGraphOutputTensorShapeOrBuilder(
int index) {
return defaultGraphOutputTensorShape_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (remoteGraph_ != null) {
output.writeMessage(1, getRemoteGraph());
}
for (int i = 0; i < graphInputNodeName_.size(); i++) {
org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 2, graphInputNodeName_.getRaw(i));
}
for (int i = 0; i < graphOutputNodeName_.size(); i++) {
org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 3, graphOutputNodeName_.getRaw(i));
}
if (!getExecutorNameBytes().isEmpty()) {
org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 4, executorName_);
}
if (!serializedExecutorParameters_.isEmpty()) {
output.writeBytes(5, serializedExecutorParameters_);
}
for (int i = 0; i < defaultGraphInputTensorShape_.size(); i++) {
output.writeMessage(6, defaultGraphInputTensorShape_.get(i));
}
for (int i = 0; i < defaultGraphOutputTensorShape_.size(); i++) {
output.writeMessage(7, defaultGraphOutputTensorShape_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (remoteGraph_ != null) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(1, getRemoteGraph());
}
{
int dataSize = 0;
for (int i = 0; i < graphInputNodeName_.size(); i++) {
dataSize += computeStringSizeNoTag(graphInputNodeName_.getRaw(i));
}
size += dataSize;
size += 1 * getGraphInputNodeNameList().size();
}
{
int dataSize = 0;
for (int i = 0; i < graphOutputNodeName_.size(); i++) {
dataSize += computeStringSizeNoTag(graphOutputNodeName_.getRaw(i));
}
size += dataSize;
size += 1 * getGraphOutputNodeNameList().size();
}
if (!getExecutorNameBytes().isEmpty()) {
size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(4, executorName_);
}
if (!serializedExecutorParameters_.isEmpty()) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeBytesSize(5, serializedExecutorParameters_);
}
for (int i = 0; i < defaultGraphInputTensorShape_.size(); i++) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(6, defaultGraphInputTensorShape_.get(i));
}
for (int i = 0; i < defaultGraphOutputTensorShape_.size(); i++) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(7, defaultGraphOutputTensorShape_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.framework.RemoteFusedGraphExecuteInfo)) {
return super.equals(obj);
}
org.tensorflow.framework.RemoteFusedGraphExecuteInfo other = (org.tensorflow.framework.RemoteFusedGraphExecuteInfo) obj;
if (hasRemoteGraph() != other.hasRemoteGraph()) return false;
if (hasRemoteGraph()) {
if (!getRemoteGraph()
.equals(other.getRemoteGraph())) return false;
}
if (!getGraphInputNodeNameList()
.equals(other.getGraphInputNodeNameList())) return false;
if (!getGraphOutputNodeNameList()
.equals(other.getGraphOutputNodeNameList())) return false;
if (!getExecutorName()
.equals(other.getExecutorName())) return false;
if (!getSerializedExecutorParameters()
.equals(other.getSerializedExecutorParameters())) return false;
if (!getDefaultGraphInputTensorShapeList()
.equals(other.getDefaultGraphInputTensorShapeList())) return false;
if (!getDefaultGraphOutputTensorShapeList()
.equals(other.getDefaultGraphOutputTensorShapeList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasRemoteGraph()) {
hash = (37 * hash) + REMOTE_GRAPH_FIELD_NUMBER;
hash = (53 * hash) + getRemoteGraph().hashCode();
}
if (getGraphInputNodeNameCount() > 0) {
hash = (37 * hash) + GRAPH_INPUT_NODE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getGraphInputNodeNameList().hashCode();
}
if (getGraphOutputNodeNameCount() > 0) {
hash = (37 * hash) + GRAPH_OUTPUT_NODE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getGraphOutputNodeNameList().hashCode();
}
hash = (37 * hash) + EXECUTOR_NAME_FIELD_NUMBER;
hash = (53 * hash) + getExecutorName().hashCode();
hash = (37 * hash) + SERIALIZED_EXECUTOR_PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getSerializedExecutorParameters().hashCode();
if (getDefaultGraphInputTensorShapeCount() > 0) {
hash = (37 * hash) + DEFAULT_GRAPH_INPUT_TENSOR_SHAPE_FIELD_NUMBER;
hash = (53 * hash) + getDefaultGraphInputTensorShapeList().hashCode();
}
if (getDefaultGraphOutputTensorShapeCount() > 0) {
hash = (37 * hash) + DEFAULT_GRAPH_OUTPUT_TENSOR_SHAPE_FIELD_NUMBER;
hash = (53 * hash) + getDefaultGraphOutputTensorShapeList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo parseFrom(
org.nd4j.shade.protobuf.ByteString data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo parseFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo parseDelimitedFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.RemoteFusedGraphExecuteInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Protocol buffer representing a handle to a tensorflow resource. Handles are
* not valid across executions, but can be serialized back and forth from within
* a single run.
*
*
* repeated string graph_input_node_name = 2;
* @return A list containing the graphInputNodeName.
*/
public org.nd4j.shade.protobuf.ProtocolStringList
getGraphInputNodeNameList() {
return graphInputNodeName_.getUnmodifiableView();
}
/**
*
* Remote fused graph input node name
*
*
* repeated string graph_input_node_name = 2;
* @return The count of graphInputNodeName.
*/
public int getGraphInputNodeNameCount() {
return graphInputNodeName_.size();
}
/**
*
* Remote fused graph input node name
*
*
* repeated string graph_input_node_name = 2;
* @param index The index of the element to return.
* @return The graphInputNodeName at the given index.
*/
public java.lang.String getGraphInputNodeName(int index) {
return graphInputNodeName_.get(index);
}
/**
*
* Remote fused graph input node name
*
*
* repeated string graph_input_node_name = 2;
* @param index The index of the value to return.
* @return The bytes of the graphInputNodeName at the given index.
*/
public org.nd4j.shade.protobuf.ByteString
getGraphInputNodeNameBytes(int index) {
return graphInputNodeName_.getByteString(index);
}
/**
*
* Remote fused graph input node name
*
*
* repeated string graph_input_node_name = 2;
* @param index The index to set the value at.
* @param value The graphInputNodeName to set.
* @return This builder for chaining.
*/
public Builder setGraphInputNodeName(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureGraphInputNodeNameIsMutable();
graphInputNodeName_.set(index, value);
onChanged();
return this;
}
/**
*
* Remote fused graph input node name
*
*
* repeated string graph_input_node_name = 2;
* @param value The graphInputNodeName to add.
* @return This builder for chaining.
*/
public Builder addGraphInputNodeName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureGraphInputNodeNameIsMutable();
graphInputNodeName_.add(value);
onChanged();
return this;
}
/**
*
* Remote fused graph input node name
*
*
* repeated string graph_input_node_name = 2;
* @param values The graphInputNodeName to add.
* @return This builder for chaining.
*/
public Builder addAllGraphInputNodeName(
java.lang.Iterable values) {
ensureGraphInputNodeNameIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, graphInputNodeName_);
onChanged();
return this;
}
/**
*
*
* repeated string graph_input_node_name = 2;
* @param value The bytes of the graphInputNodeName to add.
* @return This builder for chaining.
*/
public Builder addGraphInputNodeNameBytes(
org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureGraphInputNodeNameIsMutable();
graphInputNodeName_.add(value);
onChanged();
return this;
}
private org.nd4j.shade.protobuf.LazyStringList graphOutputNodeName_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY;
private void ensureGraphOutputNodeNameIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
graphOutputNodeName_ = new org.nd4j.shade.protobuf.LazyStringArrayList(graphOutputNodeName_);
bitField0_ |= 0x00000002;
}
}
/**
*
* Remote fused graph output node name
*
*
* repeated string graph_output_node_name = 3;
* @return A list containing the graphOutputNodeName.
*/
public org.nd4j.shade.protobuf.ProtocolStringList
getGraphOutputNodeNameList() {
return graphOutputNodeName_.getUnmodifiableView();
}
/**
*
* Remote fused graph output node name
*
*
* repeated string graph_output_node_name = 3;
* @return The count of graphOutputNodeName.
*/
public int getGraphOutputNodeNameCount() {
return graphOutputNodeName_.size();
}
/**
*
* Remote fused graph output node name
*
*
* repeated string graph_output_node_name = 3;
* @param index The index of the element to return.
* @return The graphOutputNodeName at the given index.
*/
public java.lang.String getGraphOutputNodeName(int index) {
return graphOutputNodeName_.get(index);
}
/**
*
* Remote fused graph output node name
*
*
* repeated string graph_output_node_name = 3;
* @param index The index of the value to return.
* @return The bytes of the graphOutputNodeName at the given index.
*/
public org.nd4j.shade.protobuf.ByteString
getGraphOutputNodeNameBytes(int index) {
return graphOutputNodeName_.getByteString(index);
}
/**
*
* Remote fused graph output node name
*
*
* repeated string graph_output_node_name = 3;
* @param index The index to set the value at.
* @param value The graphOutputNodeName to set.
* @return This builder for chaining.
*/
public Builder setGraphOutputNodeName(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureGraphOutputNodeNameIsMutable();
graphOutputNodeName_.set(index, value);
onChanged();
return this;
}
/**
*
* Remote fused graph output node name
*
*
* repeated string graph_output_node_name = 3;
* @param value The graphOutputNodeName to add.
* @return This builder for chaining.
*/
public Builder addGraphOutputNodeName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureGraphOutputNodeNameIsMutable();
graphOutputNodeName_.add(value);
onChanged();
return this;
}
/**
*
* Remote fused graph output node name
*
*
* repeated string graph_output_node_name = 3;
* @param values The graphOutputNodeName to add.
* @return This builder for chaining.
*/
public Builder addAllGraphOutputNodeName(
java.lang.Iterable values) {
ensureGraphOutputNodeNameIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, graphOutputNodeName_);
onChanged();
return this;
}
/**
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
*
* repeated .tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto default_graph_output_tensor_shape = 7;
*/
public int getDefaultGraphOutputTensorShapeCount() {
if (defaultGraphOutputTensorShapeBuilder_ == null) {
return defaultGraphOutputTensorShape_.size();
} else {
return defaultGraphOutputTensorShapeBuilder_.getCount();
}
}
/**
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
*
* repeated .tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto default_graph_output_tensor_shape = 7;
*/
public Builder setDefaultGraphOutputTensorShape(
int index, org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto value) {
if (defaultGraphOutputTensorShapeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDefaultGraphOutputTensorShapeIsMutable();
defaultGraphOutputTensorShape_.set(index, value);
onChanged();
} else {
defaultGraphOutputTensorShapeBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
*
* repeated .tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto default_graph_output_tensor_shape = 7;
*/
public Builder addDefaultGraphOutputTensorShape(org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto value) {
if (defaultGraphOutputTensorShapeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDefaultGraphOutputTensorShapeIsMutable();
defaultGraphOutputTensorShape_.add(value);
onChanged();
} else {
defaultGraphOutputTensorShapeBuilder_.addMessage(value);
}
return this;
}
/**
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
*
* repeated .tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto default_graph_output_tensor_shape = 7;
*/
public Builder addDefaultGraphOutputTensorShape(
int index, org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto value) {
if (defaultGraphOutputTensorShapeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDefaultGraphOutputTensorShapeIsMutable();
defaultGraphOutputTensorShape_.add(index, value);
onChanged();
} else {
defaultGraphOutputTensorShapeBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
*
* repeated .tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto default_graph_output_tensor_shape = 7;
*/
public org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto.Builder getDefaultGraphOutputTensorShapeBuilder(
int index) {
return getDefaultGraphOutputTensorShapeFieldBuilder().getBuilder(index);
}
/**
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
*
* repeated .tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto default_graph_output_tensor_shape = 7;
*/
public org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProtoOrBuilder getDefaultGraphOutputTensorShapeOrBuilder(
int index) {
if (defaultGraphOutputTensorShapeBuilder_ == null) {
return defaultGraphOutputTensorShape_.get(index); } else {
return defaultGraphOutputTensorShapeBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
* Optional: Default graph input tensor shape used to allocate memory
* before executing op
* TODO(satok): Remote output tensor shape once shape information is stored
* in NodeDef
*
*
* repeated .tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto default_graph_output_tensor_shape = 7;
*/
public java.util.List
getDefaultGraphOutputTensorShapeBuilderList() {
return getDefaultGraphOutputTensorShapeFieldBuilder().getBuilderList();
}
private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto, org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto.Builder, org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProtoOrBuilder>
getDefaultGraphOutputTensorShapeFieldBuilder() {
if (defaultGraphOutputTensorShapeBuilder_ == null) {
defaultGraphOutputTensorShapeBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto, org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto.Builder, org.tensorflow.framework.RemoteFusedGraphExecuteInfo.TensorShapeTypeProtoOrBuilder>(
defaultGraphOutputTensorShape_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
defaultGraphOutputTensorShape_ = null;
}
return defaultGraphOutputTensorShapeBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.RemoteFusedGraphExecuteInfo)
}
// @@protoc_insertion_point(class_scope:tensorflow.RemoteFusedGraphExecuteInfo)
private static final org.tensorflow.framework.RemoteFusedGraphExecuteInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.RemoteFusedGraphExecuteInfo();
}
public static org.tensorflow.framework.RemoteFusedGraphExecuteInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public RemoteFusedGraphExecuteInfo parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new RemoteFusedGraphExecuteInfo(input, extensionRegistry);
}
};
public static org.nd4j.shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tensorflow.framework.RemoteFusedGraphExecuteInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}