All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tensorflow.framework.QueueRunnerDef Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/core/protobuf/queue_runner.proto

package org.tensorflow.framework;

/**
 * 
 * Protocol buffer representing a QueueRunner.
 * 
* * Protobuf type {@code tensorflow.QueueRunnerDef} */ public final class QueueRunnerDef extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.QueueRunnerDef) QueueRunnerDefOrBuilder { private static final long serialVersionUID = 0L; // Use QueueRunnerDef.newBuilder() to construct. private QueueRunnerDef(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueueRunnerDef() { queueName_ = ""; enqueueOpName_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; closeOpName_ = ""; cancelOpName_ = ""; queueClosedExceptionTypes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new QueueRunnerDef(); } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueueRunnerDef( 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: { java.lang.String s = input.readStringRequireUtf8(); queueName_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { enqueueOpName_ = new org.nd4j.shade.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } enqueueOpName_.add(s); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); closeOpName_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); cancelOpName_ = s; break; } case 40: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { queueClosedExceptionTypes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } queueClosedExceptionTypes_.add(rawValue); break; } case 42: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { queueClosedExceptionTypes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } queueClosedExceptionTypes_.add(rawValue); } input.popLimit(oldLimit); 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)) { enqueueOpName_ = enqueueOpName_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) != 0)) { queueClosedExceptionTypes_ = java.util.Collections.unmodifiableList(queueClosedExceptionTypes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.QueueRunnerProtos.internal_static_tensorflow_QueueRunnerDef_descriptor; } @java.lang.Override protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.QueueRunnerProtos.internal_static_tensorflow_QueueRunnerDef_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.QueueRunnerDef.class, org.tensorflow.framework.QueueRunnerDef.Builder.class); } public static final int QUEUE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object queueName_; /** *
   * Queue name.
   * 
* * string queue_name = 1; * @return The queueName. */ @java.lang.Override public java.lang.String getQueueName() { java.lang.Object ref = queueName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queueName_ = s; return s; } } /** *
   * Queue name.
   * 
* * string queue_name = 1; * @return The bytes for queueName. */ @java.lang.Override public org.nd4j.shade.protobuf.ByteString getQueueNameBytes() { java.lang.Object ref = queueName_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); queueName_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int ENQUEUE_OP_NAME_FIELD_NUMBER = 2; private org.nd4j.shade.protobuf.LazyStringList enqueueOpName_; /** *
   * A list of enqueue operations.
   * 
* * repeated string enqueue_op_name = 2; * @return A list containing the enqueueOpName. */ public org.nd4j.shade.protobuf.ProtocolStringList getEnqueueOpNameList() { return enqueueOpName_; } /** *
   * A list of enqueue operations.
   * 
* * repeated string enqueue_op_name = 2; * @return The count of enqueueOpName. */ public int getEnqueueOpNameCount() { return enqueueOpName_.size(); } /** *
   * A list of enqueue operations.
   * 
* * repeated string enqueue_op_name = 2; * @param index The index of the element to return. * @return The enqueueOpName at the given index. */ public java.lang.String getEnqueueOpName(int index) { return enqueueOpName_.get(index); } /** *
   * A list of enqueue operations.
   * 
* * repeated string enqueue_op_name = 2; * @param index The index of the value to return. * @return The bytes of the enqueueOpName at the given index. */ public org.nd4j.shade.protobuf.ByteString getEnqueueOpNameBytes(int index) { return enqueueOpName_.getByteString(index); } public static final int CLOSE_OP_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object closeOpName_; /** *
   * The operation to run to close the queue.
   * 
* * string close_op_name = 3; * @return The closeOpName. */ @java.lang.Override public java.lang.String getCloseOpName() { java.lang.Object ref = closeOpName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); closeOpName_ = s; return s; } } /** *
   * The operation to run to close the queue.
   * 
* * string close_op_name = 3; * @return The bytes for closeOpName. */ @java.lang.Override public org.nd4j.shade.protobuf.ByteString getCloseOpNameBytes() { java.lang.Object ref = closeOpName_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); closeOpName_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int CANCEL_OP_NAME_FIELD_NUMBER = 4; private volatile java.lang.Object cancelOpName_; /** *
   * The operation to run to cancel the queue.
   * 
* * string cancel_op_name = 4; * @return The cancelOpName. */ @java.lang.Override public java.lang.String getCancelOpName() { java.lang.Object ref = cancelOpName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cancelOpName_ = s; return s; } } /** *
   * The operation to run to cancel the queue.
   * 
* * string cancel_op_name = 4; * @return The bytes for cancelOpName. */ @java.lang.Override public org.nd4j.shade.protobuf.ByteString getCancelOpNameBytes() { java.lang.Object ref = cancelOpName_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cancelOpName_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int QUEUE_CLOSED_EXCEPTION_TYPES_FIELD_NUMBER = 5; private java.util.List queueClosedExceptionTypes_; private static final org.nd4j.shade.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, org.tensorflow.framework.Code> queueClosedExceptionTypes_converter_ = new org.nd4j.shade.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, org.tensorflow.framework.Code>() { public org.tensorflow.framework.Code convert(java.lang.Integer from) { @SuppressWarnings("deprecation") org.tensorflow.framework.Code result = org.tensorflow.framework.Code.valueOf(from); return result == null ? org.tensorflow.framework.Code.UNRECOGNIZED : result; } }; /** *
   * A list of exception types considered to signal a safely closed queue
   * if raised during enqueue operations.
   * 
* * repeated .tensorflow.error.Code queue_closed_exception_types = 5; * @return A list containing the queueClosedExceptionTypes. */ @java.lang.Override public java.util.List getQueueClosedExceptionTypesList() { return new org.nd4j.shade.protobuf.Internal.ListAdapter< java.lang.Integer, org.tensorflow.framework.Code>(queueClosedExceptionTypes_, queueClosedExceptionTypes_converter_); } /** *
   * A list of exception types considered to signal a safely closed queue
   * if raised during enqueue operations.
   * 
* * repeated .tensorflow.error.Code queue_closed_exception_types = 5; * @return The count of queueClosedExceptionTypes. */ @java.lang.Override public int getQueueClosedExceptionTypesCount() { return queueClosedExceptionTypes_.size(); } /** *
   * A list of exception types considered to signal a safely closed queue
   * if raised during enqueue operations.
   * 
* * repeated .tensorflow.error.Code queue_closed_exception_types = 5; * @param index The index of the element to return. * @return The queueClosedExceptionTypes at the given index. */ @java.lang.Override public org.tensorflow.framework.Code getQueueClosedExceptionTypes(int index) { return queueClosedExceptionTypes_converter_.convert(queueClosedExceptionTypes_.get(index)); } /** *
   * A list of exception types considered to signal a safely closed queue
   * if raised during enqueue operations.
   * 
* * repeated .tensorflow.error.Code queue_closed_exception_types = 5; * @return A list containing the enum numeric values on the wire for queueClosedExceptionTypes. */ @java.lang.Override public java.util.List getQueueClosedExceptionTypesValueList() { return queueClosedExceptionTypes_; } /** *
   * A list of exception types considered to signal a safely closed queue
   * if raised during enqueue operations.
   * 
* * repeated .tensorflow.error.Code queue_closed_exception_types = 5; * @param index The index of the value to return. * @return The enum numeric value on the wire of queueClosedExceptionTypes at the given index. */ @java.lang.Override public int getQueueClosedExceptionTypesValue(int index) { return queueClosedExceptionTypes_.get(index); } private int queueClosedExceptionTypesMemoizedSerializedSize; 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 { getSerializedSize(); if (!getQueueNameBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 1, queueName_); } for (int i = 0; i < enqueueOpName_.size(); i++) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 2, enqueueOpName_.getRaw(i)); } if (!getCloseOpNameBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 3, closeOpName_); } if (!getCancelOpNameBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 4, cancelOpName_); } if (getQueueClosedExceptionTypesList().size() > 0) { output.writeUInt32NoTag(42); output.writeUInt32NoTag(queueClosedExceptionTypesMemoizedSerializedSize); } for (int i = 0; i < queueClosedExceptionTypes_.size(); i++) { output.writeEnumNoTag(queueClosedExceptionTypes_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getQueueNameBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(1, queueName_); } { int dataSize = 0; for (int i = 0; i < enqueueOpName_.size(); i++) { dataSize += computeStringSizeNoTag(enqueueOpName_.getRaw(i)); } size += dataSize; size += 1 * getEnqueueOpNameList().size(); } if (!getCloseOpNameBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(3, closeOpName_); } if (!getCancelOpNameBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(4, cancelOpName_); } { int dataSize = 0; for (int i = 0; i < queueClosedExceptionTypes_.size(); i++) { dataSize += org.nd4j.shade.protobuf.CodedOutputStream .computeEnumSizeNoTag(queueClosedExceptionTypes_.get(i)); } size += dataSize; if (!getQueueClosedExceptionTypesList().isEmpty()) { size += 1; size += org.nd4j.shade.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }queueClosedExceptionTypesMemoizedSerializedSize = dataSize; } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.QueueRunnerDef)) { return super.equals(obj); } org.tensorflow.framework.QueueRunnerDef other = (org.tensorflow.framework.QueueRunnerDef) obj; if (!getQueueName() .equals(other.getQueueName())) return false; if (!getEnqueueOpNameList() .equals(other.getEnqueueOpNameList())) return false; if (!getCloseOpName() .equals(other.getCloseOpName())) return false; if (!getCancelOpName() .equals(other.getCancelOpName())) return false; if (!queueClosedExceptionTypes_.equals(other.queueClosedExceptionTypes_)) 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) + QUEUE_NAME_FIELD_NUMBER; hash = (53 * hash) + getQueueName().hashCode(); if (getEnqueueOpNameCount() > 0) { hash = (37 * hash) + ENQUEUE_OP_NAME_FIELD_NUMBER; hash = (53 * hash) + getEnqueueOpNameList().hashCode(); } hash = (37 * hash) + CLOSE_OP_NAME_FIELD_NUMBER; hash = (53 * hash) + getCloseOpName().hashCode(); hash = (37 * hash) + CANCEL_OP_NAME_FIELD_NUMBER; hash = (53 * hash) + getCancelOpName().hashCode(); if (getQueueClosedExceptionTypesCount() > 0) { hash = (37 * hash) + QUEUE_CLOSED_EXCEPTION_TYPES_FIELD_NUMBER; hash = (53 * hash) + queueClosedExceptionTypes_.hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.framework.QueueRunnerDef parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.QueueRunnerDef 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.QueueRunnerDef parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.QueueRunnerDef 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.QueueRunnerDef parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.QueueRunnerDef 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.QueueRunnerDef parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.QueueRunnerDef 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.QueueRunnerDef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.framework.QueueRunnerDef 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.QueueRunnerDef 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.QueueRunnerDef 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.QueueRunnerDef 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 QueueRunner.
   * 
* * Protobuf type {@code tensorflow.QueueRunnerDef} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.QueueRunnerDef) org.tensorflow.framework.QueueRunnerDefOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.QueueRunnerProtos.internal_static_tensorflow_QueueRunnerDef_descriptor; } @java.lang.Override protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.QueueRunnerProtos.internal_static_tensorflow_QueueRunnerDef_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.QueueRunnerDef.class, org.tensorflow.framework.QueueRunnerDef.Builder.class); } // Construct using org.tensorflow.framework.QueueRunnerDef.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(); queueName_ = ""; enqueueOpName_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); closeOpName_ = ""; cancelOpName_ = ""; queueClosedExceptionTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.framework.QueueRunnerProtos.internal_static_tensorflow_QueueRunnerDef_descriptor; } @java.lang.Override public org.tensorflow.framework.QueueRunnerDef getDefaultInstanceForType() { return org.tensorflow.framework.QueueRunnerDef.getDefaultInstance(); } @java.lang.Override public org.tensorflow.framework.QueueRunnerDef build() { org.tensorflow.framework.QueueRunnerDef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tensorflow.framework.QueueRunnerDef buildPartial() { org.tensorflow.framework.QueueRunnerDef result = new org.tensorflow.framework.QueueRunnerDef(this); int from_bitField0_ = bitField0_; result.queueName_ = queueName_; if (((bitField0_ & 0x00000001) != 0)) { enqueueOpName_ = enqueueOpName_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.enqueueOpName_ = enqueueOpName_; result.closeOpName_ = closeOpName_; result.cancelOpName_ = cancelOpName_; if (((bitField0_ & 0x00000002) != 0)) { queueClosedExceptionTypes_ = java.util.Collections.unmodifiableList(queueClosedExceptionTypes_); bitField0_ = (bitField0_ & ~0x00000002); } result.queueClosedExceptionTypes_ = queueClosedExceptionTypes_; 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.QueueRunnerDef) { return mergeFrom((org.tensorflow.framework.QueueRunnerDef)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.framework.QueueRunnerDef other) { if (other == org.tensorflow.framework.QueueRunnerDef.getDefaultInstance()) return this; if (!other.getQueueName().isEmpty()) { queueName_ = other.queueName_; onChanged(); } if (!other.enqueueOpName_.isEmpty()) { if (enqueueOpName_.isEmpty()) { enqueueOpName_ = other.enqueueOpName_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEnqueueOpNameIsMutable(); enqueueOpName_.addAll(other.enqueueOpName_); } onChanged(); } if (!other.getCloseOpName().isEmpty()) { closeOpName_ = other.closeOpName_; onChanged(); } if (!other.getCancelOpName().isEmpty()) { cancelOpName_ = other.cancelOpName_; onChanged(); } if (!other.queueClosedExceptionTypes_.isEmpty()) { if (queueClosedExceptionTypes_.isEmpty()) { queueClosedExceptionTypes_ = other.queueClosedExceptionTypes_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureQueueClosedExceptionTypesIsMutable(); queueClosedExceptionTypes_.addAll(other.queueClosedExceptionTypes_); } onChanged(); } 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.QueueRunnerDef parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.QueueRunnerDef) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object queueName_ = ""; /** *
     * Queue name.
     * 
* * string queue_name = 1; * @return The queueName. */ public java.lang.String getQueueName() { java.lang.Object ref = queueName_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queueName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Queue name.
     * 
* * string queue_name = 1; * @return The bytes for queueName. */ public org.nd4j.shade.protobuf.ByteString getQueueNameBytes() { java.lang.Object ref = queueName_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); queueName_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
     * Queue name.
     * 
* * string queue_name = 1; * @param value The queueName to set. * @return This builder for chaining. */ public Builder setQueueName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } queueName_ = value; onChanged(); return this; } /** *
     * Queue name.
     * 
* * string queue_name = 1; * @return This builder for chaining. */ public Builder clearQueueName() { queueName_ = getDefaultInstance().getQueueName(); onChanged(); return this; } /** *
     * Queue name.
     * 
* * string queue_name = 1; * @param value The bytes for queueName to set. * @return This builder for chaining. */ public Builder setQueueNameBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); queueName_ = value; onChanged(); return this; } private org.nd4j.shade.protobuf.LazyStringList enqueueOpName_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; private void ensureEnqueueOpNameIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { enqueueOpName_ = new org.nd4j.shade.protobuf.LazyStringArrayList(enqueueOpName_); bitField0_ |= 0x00000001; } } /** *
     * A list of enqueue operations.
     * 
* * repeated string enqueue_op_name = 2; * @return A list containing the enqueueOpName. */ public org.nd4j.shade.protobuf.ProtocolStringList getEnqueueOpNameList() { return enqueueOpName_.getUnmodifiableView(); } /** *
     * A list of enqueue operations.
     * 
* * repeated string enqueue_op_name = 2; * @return The count of enqueueOpName. */ public int getEnqueueOpNameCount() { return enqueueOpName_.size(); } /** *
     * A list of enqueue operations.
     * 
* * repeated string enqueue_op_name = 2; * @param index The index of the element to return. * @return The enqueueOpName at the given index. */ public java.lang.String getEnqueueOpName(int index) { return enqueueOpName_.get(index); } /** *
     * A list of enqueue operations.
     * 
* * repeated string enqueue_op_name = 2; * @param index The index of the value to return. * @return The bytes of the enqueueOpName at the given index. */ public org.nd4j.shade.protobuf.ByteString getEnqueueOpNameBytes(int index) { return enqueueOpName_.getByteString(index); } /** *
     * A list of enqueue operations.
     * 
* * repeated string enqueue_op_name = 2; * @param index The index to set the value at. * @param value The enqueueOpName to set. * @return This builder for chaining. */ public Builder setEnqueueOpName( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEnqueueOpNameIsMutable(); enqueueOpName_.set(index, value); onChanged(); return this; } /** *
     * A list of enqueue operations.
     * 
* * repeated string enqueue_op_name = 2; * @param value The enqueueOpName to add. * @return This builder for chaining. */ public Builder addEnqueueOpName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEnqueueOpNameIsMutable(); enqueueOpName_.add(value); onChanged(); return this; } /** *
     * A list of enqueue operations.
     * 
* * repeated string enqueue_op_name = 2; * @param values The enqueueOpName to add. * @return This builder for chaining. */ public Builder addAllEnqueueOpName( java.lang.Iterable values) { ensureEnqueueOpNameIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, enqueueOpName_); onChanged(); return this; } /** *
     * A list of enqueue operations.
     * 
* * repeated string enqueue_op_name = 2; * @return This builder for chaining. */ public Builder clearEnqueueOpName() { enqueueOpName_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * A list of enqueue operations.
     * 
* * repeated string enqueue_op_name = 2; * @param value The bytes of the enqueueOpName to add. * @return This builder for chaining. */ public Builder addEnqueueOpNameBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureEnqueueOpNameIsMutable(); enqueueOpName_.add(value); onChanged(); return this; } private java.lang.Object closeOpName_ = ""; /** *
     * The operation to run to close the queue.
     * 
* * string close_op_name = 3; * @return The closeOpName. */ public java.lang.String getCloseOpName() { java.lang.Object ref = closeOpName_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); closeOpName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The operation to run to close the queue.
     * 
* * string close_op_name = 3; * @return The bytes for closeOpName. */ public org.nd4j.shade.protobuf.ByteString getCloseOpNameBytes() { java.lang.Object ref = closeOpName_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); closeOpName_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
     * The operation to run to close the queue.
     * 
* * string close_op_name = 3; * @param value The closeOpName to set. * @return This builder for chaining. */ public Builder setCloseOpName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } closeOpName_ = value; onChanged(); return this; } /** *
     * The operation to run to close the queue.
     * 
* * string close_op_name = 3; * @return This builder for chaining. */ public Builder clearCloseOpName() { closeOpName_ = getDefaultInstance().getCloseOpName(); onChanged(); return this; } /** *
     * The operation to run to close the queue.
     * 
* * string close_op_name = 3; * @param value The bytes for closeOpName to set. * @return This builder for chaining. */ public Builder setCloseOpNameBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); closeOpName_ = value; onChanged(); return this; } private java.lang.Object cancelOpName_ = ""; /** *
     * The operation to run to cancel the queue.
     * 
* * string cancel_op_name = 4; * @return The cancelOpName. */ public java.lang.String getCancelOpName() { java.lang.Object ref = cancelOpName_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cancelOpName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The operation to run to cancel the queue.
     * 
* * string cancel_op_name = 4; * @return The bytes for cancelOpName. */ public org.nd4j.shade.protobuf.ByteString getCancelOpNameBytes() { java.lang.Object ref = cancelOpName_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cancelOpName_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
     * The operation to run to cancel the queue.
     * 
* * string cancel_op_name = 4; * @param value The cancelOpName to set. * @return This builder for chaining. */ public Builder setCancelOpName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cancelOpName_ = value; onChanged(); return this; } /** *
     * The operation to run to cancel the queue.
     * 
* * string cancel_op_name = 4; * @return This builder for chaining. */ public Builder clearCancelOpName() { cancelOpName_ = getDefaultInstance().getCancelOpName(); onChanged(); return this; } /** *
     * The operation to run to cancel the queue.
     * 
* * string cancel_op_name = 4; * @param value The bytes for cancelOpName to set. * @return This builder for chaining. */ public Builder setCancelOpNameBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cancelOpName_ = value; onChanged(); return this; } private java.util.List queueClosedExceptionTypes_ = java.util.Collections.emptyList(); private void ensureQueueClosedExceptionTypesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { queueClosedExceptionTypes_ = new java.util.ArrayList(queueClosedExceptionTypes_); bitField0_ |= 0x00000002; } } /** *
     * A list of exception types considered to signal a safely closed queue
     * if raised during enqueue operations.
     * 
* * repeated .tensorflow.error.Code queue_closed_exception_types = 5; * @return A list containing the queueClosedExceptionTypes. */ public java.util.List getQueueClosedExceptionTypesList() { return new org.nd4j.shade.protobuf.Internal.ListAdapter< java.lang.Integer, org.tensorflow.framework.Code>(queueClosedExceptionTypes_, queueClosedExceptionTypes_converter_); } /** *
     * A list of exception types considered to signal a safely closed queue
     * if raised during enqueue operations.
     * 
* * repeated .tensorflow.error.Code queue_closed_exception_types = 5; * @return The count of queueClosedExceptionTypes. */ public int getQueueClosedExceptionTypesCount() { return queueClosedExceptionTypes_.size(); } /** *
     * A list of exception types considered to signal a safely closed queue
     * if raised during enqueue operations.
     * 
* * repeated .tensorflow.error.Code queue_closed_exception_types = 5; * @param index The index of the element to return. * @return The queueClosedExceptionTypes at the given index. */ public org.tensorflow.framework.Code getQueueClosedExceptionTypes(int index) { return queueClosedExceptionTypes_converter_.convert(queueClosedExceptionTypes_.get(index)); } /** *
     * A list of exception types considered to signal a safely closed queue
     * if raised during enqueue operations.
     * 
* * repeated .tensorflow.error.Code queue_closed_exception_types = 5; * @param index The index to set the value at. * @param value The queueClosedExceptionTypes to set. * @return This builder for chaining. */ public Builder setQueueClosedExceptionTypes( int index, org.tensorflow.framework.Code value) { if (value == null) { throw new NullPointerException(); } ensureQueueClosedExceptionTypesIsMutable(); queueClosedExceptionTypes_.set(index, value.getNumber()); onChanged(); return this; } /** *
     * A list of exception types considered to signal a safely closed queue
     * if raised during enqueue operations.
     * 
* * repeated .tensorflow.error.Code queue_closed_exception_types = 5; * @param value The queueClosedExceptionTypes to add. * @return This builder for chaining. */ public Builder addQueueClosedExceptionTypes(org.tensorflow.framework.Code value) { if (value == null) { throw new NullPointerException(); } ensureQueueClosedExceptionTypesIsMutable(); queueClosedExceptionTypes_.add(value.getNumber()); onChanged(); return this; } /** *
     * A list of exception types considered to signal a safely closed queue
     * if raised during enqueue operations.
     * 
* * repeated .tensorflow.error.Code queue_closed_exception_types = 5; * @param values The queueClosedExceptionTypes to add. * @return This builder for chaining. */ public Builder addAllQueueClosedExceptionTypes( java.lang.Iterable values) { ensureQueueClosedExceptionTypesIsMutable(); for (org.tensorflow.framework.Code value : values) { queueClosedExceptionTypes_.add(value.getNumber()); } onChanged(); return this; } /** *
     * A list of exception types considered to signal a safely closed queue
     * if raised during enqueue operations.
     * 
* * repeated .tensorflow.error.Code queue_closed_exception_types = 5; * @return This builder for chaining. */ public Builder clearQueueClosedExceptionTypes() { queueClosedExceptionTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * A list of exception types considered to signal a safely closed queue
     * if raised during enqueue operations.
     * 
* * repeated .tensorflow.error.Code queue_closed_exception_types = 5; * @return A list containing the enum numeric values on the wire for queueClosedExceptionTypes. */ public java.util.List getQueueClosedExceptionTypesValueList() { return java.util.Collections.unmodifiableList(queueClosedExceptionTypes_); } /** *
     * A list of exception types considered to signal a safely closed queue
     * if raised during enqueue operations.
     * 
* * repeated .tensorflow.error.Code queue_closed_exception_types = 5; * @param index The index of the value to return. * @return The enum numeric value on the wire of queueClosedExceptionTypes at the given index. */ public int getQueueClosedExceptionTypesValue(int index) { return queueClosedExceptionTypes_.get(index); } /** *
     * A list of exception types considered to signal a safely closed queue
     * if raised during enqueue operations.
     * 
* * repeated .tensorflow.error.Code queue_closed_exception_types = 5; * @param index The index of the value to return. * @return The enum numeric value on the wire of queueClosedExceptionTypes at the given index. * @return This builder for chaining. */ public Builder setQueueClosedExceptionTypesValue( int index, int value) { ensureQueueClosedExceptionTypesIsMutable(); queueClosedExceptionTypes_.set(index, value); onChanged(); return this; } /** *
     * A list of exception types considered to signal a safely closed queue
     * if raised during enqueue operations.
     * 
* * repeated .tensorflow.error.Code queue_closed_exception_types = 5; * @param value The enum numeric value on the wire for queueClosedExceptionTypes to add. * @return This builder for chaining. */ public Builder addQueueClosedExceptionTypesValue(int value) { ensureQueueClosedExceptionTypesIsMutable(); queueClosedExceptionTypes_.add(value); onChanged(); return this; } /** *
     * A list of exception types considered to signal a safely closed queue
     * if raised during enqueue operations.
     * 
* * repeated .tensorflow.error.Code queue_closed_exception_types = 5; * @param values The enum numeric values on the wire for queueClosedExceptionTypes to add. * @return This builder for chaining. */ public Builder addAllQueueClosedExceptionTypesValue( java.lang.Iterable values) { ensureQueueClosedExceptionTypesIsMutable(); for (int value : values) { queueClosedExceptionTypes_.add(value); } onChanged(); return this; } @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.QueueRunnerDef) } // @@protoc_insertion_point(class_scope:tensorflow.QueueRunnerDef) private static final org.tensorflow.framework.QueueRunnerDef DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.framework.QueueRunnerDef(); } public static org.tensorflow.framework.QueueRunnerDef getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { @java.lang.Override public QueueRunnerDef parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new QueueRunnerDef(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.QueueRunnerDef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy