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

org.tensorflow.distruntime.CompleteInstanceRequest 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/worker.proto

package org.tensorflow.distruntime;

/**
 * 
 * Supplies data about one collective op belonging to the instance identified
 * by instance_key.  Service will respond when all group_size ops have
 * become known.  Most of the data being sent is for correctness checking,
 * to ensure that all ops in the instance share common attributes.
 * 
* * Protobuf type {@code tensorflow.CompleteInstanceRequest} */ public final class CompleteInstanceRequest extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.CompleteInstanceRequest) CompleteInstanceRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CompleteInstanceRequest.newBuilder() to construct. private CompleteInstanceRequest(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CompleteInstanceRequest() { name_ = ""; type_ = 0; dataType_ = 0; groupKey_ = 0; groupSize_ = 0; instanceKey_ = 0; deviceType_ = ""; subdivOffset_ = java.util.Collections.emptyList(); device_ = ""; isSource_ = false; } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CompleteInstanceRequest( 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; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 16: { type_ = input.readInt32(); break; } case 24: { int rawValue = input.readEnum(); dataType_ = rawValue; break; } case 34: { 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; } case 40: { groupKey_ = input.readInt32(); break; } case 48: { groupSize_ = input.readInt32(); break; } case 56: { instanceKey_ = input.readInt32(); break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); deviceType_ = s; break; } case 72: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { subdivOffset_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } subdivOffset_.add(input.readInt32()); break; } case 74: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000100) == 0x00000100) && input.getBytesUntilLimit() > 0) { subdivOffset_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } while (input.getBytesUntilLimit() > 0) { subdivOffset_.add(input.readInt32()); } input.popLimit(limit); break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); device_ = s; break; } case 88: { isSource_ = input.readBool(); 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_ & 0x00000100) == 0x00000100)) { subdivOffset_ = java.util.Collections.unmodifiableList(subdivOffset_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_CompleteInstanceRequest_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_CompleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.distruntime.CompleteInstanceRequest.class, org.tensorflow.distruntime.CompleteInstanceRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * string name = 1; */ public org.nd4j.shade.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** * int32 type = 2; */ public int getType() { return type_; } public static final int DATA_TYPE_FIELD_NUMBER = 3; private int dataType_; /** * .tensorflow.DataType data_type = 3; */ public int getDataTypeValue() { return dataType_; } /** * .tensorflow.DataType data_type = 3; */ public org.tensorflow.framework.DataType getDataType() { org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(dataType_); return result == null ? org.tensorflow.framework.DataType.UNRECOGNIZED : result; } public static final int SHAPE_FIELD_NUMBER = 4; private org.tensorflow.framework.TensorShapeProto shape_; /** * .tensorflow.TensorShapeProto shape = 4; */ public boolean hasShape() { return shape_ != null; } /** * .tensorflow.TensorShapeProto shape = 4; */ public org.tensorflow.framework.TensorShapeProto getShape() { return shape_ == null ? org.tensorflow.framework.TensorShapeProto.getDefaultInstance() : shape_; } /** * .tensorflow.TensorShapeProto shape = 4; */ public org.tensorflow.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { return getShape(); } public static final int GROUP_KEY_FIELD_NUMBER = 5; private int groupKey_; /** * int32 group_key = 5; */ public int getGroupKey() { return groupKey_; } public static final int GROUP_SIZE_FIELD_NUMBER = 6; private int groupSize_; /** * int32 group_size = 6; */ public int getGroupSize() { return groupSize_; } public static final int INSTANCE_KEY_FIELD_NUMBER = 7; private int instanceKey_; /** * int32 instance_key = 7; */ public int getInstanceKey() { return instanceKey_; } public static final int DEVICE_TYPE_FIELD_NUMBER = 8; private volatile java.lang.Object deviceType_; /** * string device_type = 8; */ public java.lang.String getDeviceType() { java.lang.Object ref = deviceType_; 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(); deviceType_ = s; return s; } } /** * string device_type = 8; */ public org.nd4j.shade.protobuf.ByteString getDeviceTypeBytes() { java.lang.Object ref = deviceType_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceType_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int SUBDIV_OFFSET_FIELD_NUMBER = 9; private java.util.List subdivOffset_; /** * repeated int32 subdiv_offset = 9; */ public java.util.List getSubdivOffsetList() { return subdivOffset_; } /** * repeated int32 subdiv_offset = 9; */ public int getSubdivOffsetCount() { return subdivOffset_.size(); } /** * repeated int32 subdiv_offset = 9; */ public int getSubdivOffset(int index) { return subdivOffset_.get(index); } private int subdivOffsetMemoizedSerializedSize = -1; public static final int DEVICE_FIELD_NUMBER = 10; private volatile java.lang.Object device_; /** * string device = 10; */ public java.lang.String getDevice() { java.lang.Object ref = device_; 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(); device_ = s; return s; } } /** * string device = 10; */ public org.nd4j.shade.protobuf.ByteString getDeviceBytes() { java.lang.Object ref = device_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); device_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int IS_SOURCE_FIELD_NUMBER = 11; private boolean isSource_; /** * bool is_source = 11; */ public boolean getIsSource() { return isSource_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!getNameBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (type_ != 0) { output.writeInt32(2, type_); } if (dataType_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) { output.writeEnum(3, dataType_); } if (shape_ != null) { output.writeMessage(4, getShape()); } if (groupKey_ != 0) { output.writeInt32(5, groupKey_); } if (groupSize_ != 0) { output.writeInt32(6, groupSize_); } if (instanceKey_ != 0) { output.writeInt32(7, instanceKey_); } if (!getDeviceTypeBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 8, deviceType_); } if (getSubdivOffsetList().size() > 0) { output.writeUInt32NoTag(74); output.writeUInt32NoTag(subdivOffsetMemoizedSerializedSize); } for (int i = 0; i < subdivOffset_.size(); i++) { output.writeInt32NoTag(subdivOffset_.get(i)); } if (!getDeviceBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 10, device_); } if (isSource_ != false) { output.writeBool(11, isSource_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (type_ != 0) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt32Size(2, type_); } if (dataType_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeEnumSize(3, dataType_); } if (shape_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(4, getShape()); } if (groupKey_ != 0) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt32Size(5, groupKey_); } if (groupSize_ != 0) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt32Size(6, groupSize_); } if (instanceKey_ != 0) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt32Size(7, instanceKey_); } if (!getDeviceTypeBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(8, deviceType_); } { int dataSize = 0; for (int i = 0; i < subdivOffset_.size(); i++) { dataSize += org.nd4j.shade.protobuf.CodedOutputStream .computeInt32SizeNoTag(subdivOffset_.get(i)); } size += dataSize; if (!getSubdivOffsetList().isEmpty()) { size += 1; size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } subdivOffsetMemoizedSerializedSize = dataSize; } if (!getDeviceBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(10, device_); } if (isSource_ != false) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeBoolSize(11, isSource_); } 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.distruntime.CompleteInstanceRequest)) { return super.equals(obj); } org.tensorflow.distruntime.CompleteInstanceRequest other = (org.tensorflow.distruntime.CompleteInstanceRequest) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && (getType() == other.getType()); result = result && dataType_ == other.dataType_; result = result && (hasShape() == other.hasShape()); if (hasShape()) { result = result && getShape() .equals(other.getShape()); } result = result && (getGroupKey() == other.getGroupKey()); result = result && (getGroupSize() == other.getGroupSize()); result = result && (getInstanceKey() == other.getInstanceKey()); result = result && getDeviceType() .equals(other.getDeviceType()); result = result && getSubdivOffsetList() .equals(other.getSubdivOffsetList()); result = result && getDevice() .equals(other.getDevice()); result = result && (getIsSource() == other.getIsSource()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType(); hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER; hash = (53 * hash) + dataType_; if (hasShape()) { hash = (37 * hash) + SHAPE_FIELD_NUMBER; hash = (53 * hash) + getShape().hashCode(); } hash = (37 * hash) + GROUP_KEY_FIELD_NUMBER; hash = (53 * hash) + getGroupKey(); hash = (37 * hash) + GROUP_SIZE_FIELD_NUMBER; hash = (53 * hash) + getGroupSize(); hash = (37 * hash) + INSTANCE_KEY_FIELD_NUMBER; hash = (53 * hash) + getInstanceKey(); hash = (37 * hash) + DEVICE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getDeviceType().hashCode(); if (getSubdivOffsetCount() > 0) { hash = (37 * hash) + SUBDIV_OFFSET_FIELD_NUMBER; hash = (53 * hash) + getSubdivOffsetList().hashCode(); } hash = (37 * hash) + DEVICE_FIELD_NUMBER; hash = (53 * hash) + getDevice().hashCode(); hash = (37 * hash) + IS_SOURCE_FIELD_NUMBER; hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashBoolean( getIsSource()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.distruntime.CompleteInstanceRequest parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.distruntime.CompleteInstanceRequest 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.distruntime.CompleteInstanceRequest parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.distruntime.CompleteInstanceRequest 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.distruntime.CompleteInstanceRequest parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.distruntime.CompleteInstanceRequest parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.distruntime.CompleteInstanceRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.distruntime.CompleteInstanceRequest 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.distruntime.CompleteInstanceRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.distruntime.CompleteInstanceRequest 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.distruntime.CompleteInstanceRequest parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.distruntime.CompleteInstanceRequest 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); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tensorflow.distruntime.CompleteInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Supplies data about one collective op belonging to the instance identified
   * by instance_key.  Service will respond when all group_size ops have
   * become known.  Most of the data being sent is for correctness checking,
   * to ensure that all ops in the instance share common attributes.
   * 
* * Protobuf type {@code tensorflow.CompleteInstanceRequest} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.CompleteInstanceRequest) org.tensorflow.distruntime.CompleteInstanceRequestOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_CompleteInstanceRequest_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_CompleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.distruntime.CompleteInstanceRequest.class, org.tensorflow.distruntime.CompleteInstanceRequest.Builder.class); } // Construct using org.tensorflow.distruntime.CompleteInstanceRequest.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) { } } public Builder clear() { super.clear(); name_ = ""; type_ = 0; dataType_ = 0; if (shapeBuilder_ == null) { shape_ = null; } else { shape_ = null; shapeBuilder_ = null; } groupKey_ = 0; groupSize_ = 0; instanceKey_ = 0; deviceType_ = ""; subdivOffset_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); device_ = ""; isSource_ = false; return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_CompleteInstanceRequest_descriptor; } public org.tensorflow.distruntime.CompleteInstanceRequest getDefaultInstanceForType() { return org.tensorflow.distruntime.CompleteInstanceRequest.getDefaultInstance(); } public org.tensorflow.distruntime.CompleteInstanceRequest build() { org.tensorflow.distruntime.CompleteInstanceRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tensorflow.distruntime.CompleteInstanceRequest buildPartial() { org.tensorflow.distruntime.CompleteInstanceRequest result = new org.tensorflow.distruntime.CompleteInstanceRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; result.type_ = type_; result.dataType_ = dataType_; if (shapeBuilder_ == null) { result.shape_ = shape_; } else { result.shape_ = shapeBuilder_.build(); } result.groupKey_ = groupKey_; result.groupSize_ = groupSize_; result.instanceKey_ = instanceKey_; result.deviceType_ = deviceType_; if (((bitField0_ & 0x00000100) == 0x00000100)) { subdivOffset_ = java.util.Collections.unmodifiableList(subdivOffset_); bitField0_ = (bitField0_ & ~0x00000100); } result.subdivOffset_ = subdivOffset_; result.device_ = device_; result.isSource_ = isSource_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof org.tensorflow.distruntime.CompleteInstanceRequest) { return mergeFrom((org.tensorflow.distruntime.CompleteInstanceRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.distruntime.CompleteInstanceRequest other) { if (other == org.tensorflow.distruntime.CompleteInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getType() != 0) { setType(other.getType()); } if (other.dataType_ != 0) { setDataTypeValue(other.getDataTypeValue()); } if (other.hasShape()) { mergeShape(other.getShape()); } if (other.getGroupKey() != 0) { setGroupKey(other.getGroupKey()); } if (other.getGroupSize() != 0) { setGroupSize(other.getGroupSize()); } if (other.getInstanceKey() != 0) { setInstanceKey(other.getInstanceKey()); } if (!other.getDeviceType().isEmpty()) { deviceType_ = other.deviceType_; onChanged(); } if (!other.subdivOffset_.isEmpty()) { if (subdivOffset_.isEmpty()) { subdivOffset_ = other.subdivOffset_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureSubdivOffsetIsMutable(); subdivOffset_.addAll(other.subdivOffset_); } onChanged(); } if (!other.getDevice().isEmpty()) { device_ = other.device_; onChanged(); } if (other.getIsSource() != false) { setIsSource(other.getIsSource()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.distruntime.CompleteInstanceRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.distruntime.CompleteInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; */ public org.nd4j.shade.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 1; */ public Builder setNameBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private int type_ ; /** * int32 type = 2; */ public int getType() { return type_; } /** * int32 type = 2; */ public Builder setType(int value) { type_ = value; onChanged(); return this; } /** * int32 type = 2; */ public Builder clearType() { type_ = 0; onChanged(); return this; } private int dataType_ = 0; /** * .tensorflow.DataType data_type = 3; */ public int getDataTypeValue() { return dataType_; } /** * .tensorflow.DataType data_type = 3; */ public Builder setDataTypeValue(int value) { dataType_ = value; onChanged(); return this; } /** * .tensorflow.DataType data_type = 3; */ public org.tensorflow.framework.DataType getDataType() { org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(dataType_); return result == null ? org.tensorflow.framework.DataType.UNRECOGNIZED : result; } /** * .tensorflow.DataType data_type = 3; */ public Builder setDataType(org.tensorflow.framework.DataType value) { if (value == null) { throw new NullPointerException(); } dataType_ = value.getNumber(); onChanged(); return this; } /** * .tensorflow.DataType data_type = 3; */ public Builder clearDataType() { dataType_ = 0; onChanged(); return this; } private org.tensorflow.framework.TensorShapeProto shape_ = null; private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.TensorShapeProto, org.tensorflow.framework.TensorShapeProto.Builder, org.tensorflow.framework.TensorShapeProtoOrBuilder> shapeBuilder_; /** * .tensorflow.TensorShapeProto shape = 4; */ public boolean hasShape() { return shapeBuilder_ != null || shape_ != null; } /** * .tensorflow.TensorShapeProto shape = 4; */ 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 = 4; */ 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 = 4; */ 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 = 4; */ 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 = 4; */ public Builder clearShape() { if (shapeBuilder_ == null) { shape_ = null; onChanged(); } else { shape_ = null; shapeBuilder_ = null; } return this; } /** * .tensorflow.TensorShapeProto shape = 4; */ public org.tensorflow.framework.TensorShapeProto.Builder getShapeBuilder() { onChanged(); return getShapeFieldBuilder().getBuilder(); } /** * .tensorflow.TensorShapeProto shape = 4; */ 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 = 4; */ 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_; } private int groupKey_ ; /** * int32 group_key = 5; */ public int getGroupKey() { return groupKey_; } /** * int32 group_key = 5; */ public Builder setGroupKey(int value) { groupKey_ = value; onChanged(); return this; } /** * int32 group_key = 5; */ public Builder clearGroupKey() { groupKey_ = 0; onChanged(); return this; } private int groupSize_ ; /** * int32 group_size = 6; */ public int getGroupSize() { return groupSize_; } /** * int32 group_size = 6; */ public Builder setGroupSize(int value) { groupSize_ = value; onChanged(); return this; } /** * int32 group_size = 6; */ public Builder clearGroupSize() { groupSize_ = 0; onChanged(); return this; } private int instanceKey_ ; /** * int32 instance_key = 7; */ public int getInstanceKey() { return instanceKey_; } /** * int32 instance_key = 7; */ public Builder setInstanceKey(int value) { instanceKey_ = value; onChanged(); return this; } /** * int32 instance_key = 7; */ public Builder clearInstanceKey() { instanceKey_ = 0; onChanged(); return this; } private java.lang.Object deviceType_ = ""; /** * string device_type = 8; */ public java.lang.String getDeviceType() { java.lang.Object ref = deviceType_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceType_ = s; return s; } else { return (java.lang.String) ref; } } /** * string device_type = 8; */ public org.nd4j.shade.protobuf.ByteString getDeviceTypeBytes() { java.lang.Object ref = deviceType_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceType_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** * string device_type = 8; */ public Builder setDeviceType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deviceType_ = value; onChanged(); return this; } /** * string device_type = 8; */ public Builder clearDeviceType() { deviceType_ = getDefaultInstance().getDeviceType(); onChanged(); return this; } /** * string device_type = 8; */ public Builder setDeviceTypeBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deviceType_ = value; onChanged(); return this; } private java.util.List subdivOffset_ = java.util.Collections.emptyList(); private void ensureSubdivOffsetIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { subdivOffset_ = new java.util.ArrayList(subdivOffset_); bitField0_ |= 0x00000100; } } /** * repeated int32 subdiv_offset = 9; */ public java.util.List getSubdivOffsetList() { return java.util.Collections.unmodifiableList(subdivOffset_); } /** * repeated int32 subdiv_offset = 9; */ public int getSubdivOffsetCount() { return subdivOffset_.size(); } /** * repeated int32 subdiv_offset = 9; */ public int getSubdivOffset(int index) { return subdivOffset_.get(index); } /** * repeated int32 subdiv_offset = 9; */ public Builder setSubdivOffset( int index, int value) { ensureSubdivOffsetIsMutable(); subdivOffset_.set(index, value); onChanged(); return this; } /** * repeated int32 subdiv_offset = 9; */ public Builder addSubdivOffset(int value) { ensureSubdivOffsetIsMutable(); subdivOffset_.add(value); onChanged(); return this; } /** * repeated int32 subdiv_offset = 9; */ public Builder addAllSubdivOffset( java.lang.Iterable values) { ensureSubdivOffsetIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, subdivOffset_); onChanged(); return this; } /** * repeated int32 subdiv_offset = 9; */ public Builder clearSubdivOffset() { subdivOffset_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } private java.lang.Object device_ = ""; /** * string device = 10; */ public java.lang.String getDevice() { java.lang.Object ref = device_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); device_ = s; return s; } else { return (java.lang.String) ref; } } /** * string device = 10; */ public org.nd4j.shade.protobuf.ByteString getDeviceBytes() { java.lang.Object ref = device_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); device_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** * string device = 10; */ public Builder setDevice( java.lang.String value) { if (value == null) { throw new NullPointerException(); } device_ = value; onChanged(); return this; } /** * string device = 10; */ public Builder clearDevice() { device_ = getDefaultInstance().getDevice(); onChanged(); return this; } /** * string device = 10; */ public Builder setDeviceBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); device_ = value; onChanged(); return this; } private boolean isSource_ ; /** * bool is_source = 11; */ public boolean getIsSource() { return isSource_; } /** * bool is_source = 11; */ public Builder setIsSource(boolean value) { isSource_ = value; onChanged(); return this; } /** * bool is_source = 11; */ public Builder clearIsSource() { isSource_ = false; onChanged(); return this; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.CompleteInstanceRequest) } // @@protoc_insertion_point(class_scope:tensorflow.CompleteInstanceRequest) private static final org.tensorflow.distruntime.CompleteInstanceRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.distruntime.CompleteInstanceRequest(); } public static org.tensorflow.distruntime.CompleteInstanceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public CompleteInstanceRequest parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new CompleteInstanceRequest(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public org.tensorflow.distruntime.CompleteInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy