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

org.tensorflow.distruntime.RecvBufRequest 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;

/**
 * 
 * Use of the fields below may vary by implementation.  For example
 * the buf_ptr and num_bytes may be set only for local operations and
 * not sent on the wire, or only sent on the wire in one direction.
 * 
* * Protobuf type {@code tensorflow.RecvBufRequest} */ public final class RecvBufRequest extends com.github.os72.protobuf351.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.RecvBufRequest) RecvBufRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RecvBufRequest.newBuilder() to construct. private RecvBufRequest(com.github.os72.protobuf351.GeneratedMessageV3.Builder builder) { super(builder); } private RecvBufRequest() { stepId_ = 0L; bufRendezvousKey_ = ""; numBytes_ = 0L; bufPtr_ = 0L; srcDevice_ = ""; dstDevice_ = ""; } @java.lang.Override public final com.github.os72.protobuf351.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RecvBufRequest( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields = com.github.os72.protobuf351.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { stepId_ = input.readInt64(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); bufRendezvousKey_ = s; break; } case 24: { numBytes_ = input.readInt64(); break; } case 33: { bufPtr_ = input.readFixed64(); break; } case 42: { org.tensorflow.framework.DeviceLocality.Builder subBuilder = null; if (clientLocality_ != null) { subBuilder = clientLocality_.toBuilder(); } clientLocality_ = input.readMessage(org.tensorflow.framework.DeviceLocality.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(clientLocality_); clientLocality_ = subBuilder.buildPartial(); } break; } case 50: { org.tensorflow.framework.DeviceLocality.Builder subBuilder = null; if (serverLocality_ != null) { subBuilder = serverLocality_.toBuilder(); } serverLocality_ = input.readMessage(org.tensorflow.framework.DeviceLocality.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(serverLocality_); serverLocality_ = subBuilder.buildPartial(); } break; } case 58: { com.github.os72.protobuf351.Any.Builder subBuilder = null; if (transportOptions_ != null) { subBuilder = transportOptions_.toBuilder(); } transportOptions_ = input.readMessage(com.github.os72.protobuf351.Any.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(transportOptions_); transportOptions_ = subBuilder.buildPartial(); } break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); srcDevice_ = s; break; } case 74: { java.lang.String s = input.readStringRequireUtf8(); dstDevice_ = s; break; } } } } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.github.os72.protobuf351.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RecvBufRequest_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RecvBufRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.distruntime.RecvBufRequest.class, org.tensorflow.distruntime.RecvBufRequest.Builder.class); } public static final int STEP_ID_FIELD_NUMBER = 1; private long stepId_; /** *
   * Used at server side to find the correct BufRendezvous.
   * 
* * int64 step_id = 1; */ public long getStepId() { return stepId_; } public static final int BUF_RENDEZVOUS_KEY_FIELD_NUMBER = 2; private volatile java.lang.Object bufRendezvousKey_; /** *
   * Arbitrary string identifying a BufRendezvous entry.
   * 
* * string buf_rendezvous_key = 2; */ public java.lang.String getBufRendezvousKey() { java.lang.Object ref = bufRendezvousKey_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bufRendezvousKey_ = s; return s; } } /** *
   * Arbitrary string identifying a BufRendezvous entry.
   * 
* * string buf_rendezvous_key = 2; */ public com.github.os72.protobuf351.ByteString getBufRendezvousKeyBytes() { java.lang.Object ref = bufRendezvousKey_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); bufRendezvousKey_ = b; return b; } else { return (com.github.os72.protobuf351.ByteString) ref; } } public static final int NUM_BYTES_FIELD_NUMBER = 3; private long numBytes_; /** *
   * Size of value expected, must agree with BufRendezvous entry.
   * 
* * int64 num_bytes = 3; */ public long getNumBytes() { return numBytes_; } public static final int BUF_PTR_FIELD_NUMBER = 4; private long bufPtr_; /** *
   * When RDMA is in use, address of destination field on client.
   * 
* * fixed64 buf_ptr = 4; */ public long getBufPtr() { return bufPtr_; } public static final int CLIENT_LOCALITY_FIELD_NUMBER = 5; private org.tensorflow.framework.DeviceLocality clientLocality_; /** *
   * Optional information on client-side device locality.
   * 
* * .tensorflow.DeviceLocality client_locality = 5; */ public boolean hasClientLocality() { return clientLocality_ != null; } /** *
   * Optional information on client-side device locality.
   * 
* * .tensorflow.DeviceLocality client_locality = 5; */ public org.tensorflow.framework.DeviceLocality getClientLocality() { return clientLocality_ == null ? org.tensorflow.framework.DeviceLocality.getDefaultInstance() : clientLocality_; } /** *
   * Optional information on client-side device locality.
   * 
* * .tensorflow.DeviceLocality client_locality = 5; */ public org.tensorflow.framework.DeviceLocalityOrBuilder getClientLocalityOrBuilder() { return getClientLocality(); } public static final int SERVER_LOCALITY_FIELD_NUMBER = 6; private org.tensorflow.framework.DeviceLocality serverLocality_; /** *
   * Optional information on server-side device locality.
   * 
* * .tensorflow.DeviceLocality server_locality = 6; */ public boolean hasServerLocality() { return serverLocality_ != null; } /** *
   * Optional information on server-side device locality.
   * 
* * .tensorflow.DeviceLocality server_locality = 6; */ public org.tensorflow.framework.DeviceLocality getServerLocality() { return serverLocality_ == null ? org.tensorflow.framework.DeviceLocality.getDefaultInstance() : serverLocality_; } /** *
   * Optional information on server-side device locality.
   * 
* * .tensorflow.DeviceLocality server_locality = 6; */ public org.tensorflow.framework.DeviceLocalityOrBuilder getServerLocalityOrBuilder() { return getServerLocality(); } public static final int TRANSPORT_OPTIONS_FIELD_NUMBER = 7; private com.github.os72.protobuf351.Any transportOptions_; /** *
   * Optional, implementation-specific data.
   * 
* * .google.protobuf.Any transport_options = 7; */ public boolean hasTransportOptions() { return transportOptions_ != null; } /** *
   * Optional, implementation-specific data.
   * 
* * .google.protobuf.Any transport_options = 7; */ public com.github.os72.protobuf351.Any getTransportOptions() { return transportOptions_ == null ? com.github.os72.protobuf351.Any.getDefaultInstance() : transportOptions_; } /** *
   * Optional, implementation-specific data.
   * 
* * .google.protobuf.Any transport_options = 7; */ public com.github.os72.protobuf351.AnyOrBuilder getTransportOptionsOrBuilder() { return getTransportOptions(); } public static final int SRC_DEVICE_FIELD_NUMBER = 8; private volatile java.lang.Object srcDevice_; /** *
   * Optional, for annotating the timeline.
   * 
* * string src_device = 8; */ public java.lang.String getSrcDevice() { java.lang.Object ref = srcDevice_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.ByteString) ref; java.lang.String s = bs.toStringUtf8(); srcDevice_ = s; return s; } } /** *
   * Optional, for annotating the timeline.
   * 
* * string src_device = 8; */ public com.github.os72.protobuf351.ByteString getSrcDeviceBytes() { java.lang.Object ref = srcDevice_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); srcDevice_ = b; return b; } else { return (com.github.os72.protobuf351.ByteString) ref; } } public static final int DST_DEVICE_FIELD_NUMBER = 9; private volatile java.lang.Object dstDevice_; /** * string dst_device = 9; */ public java.lang.String getDstDevice() { java.lang.Object ref = dstDevice_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dstDevice_ = s; return s; } } /** * string dst_device = 9; */ public com.github.os72.protobuf351.ByteString getDstDeviceBytes() { java.lang.Object ref = dstDevice_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); dstDevice_ = b; return b; } else { return (com.github.os72.protobuf351.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.github.os72.protobuf351.CodedOutputStream output) throws java.io.IOException { if (stepId_ != 0L) { output.writeInt64(1, stepId_); } if (!getBufRendezvousKeyBytes().isEmpty()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 2, bufRendezvousKey_); } if (numBytes_ != 0L) { output.writeInt64(3, numBytes_); } if (bufPtr_ != 0L) { output.writeFixed64(4, bufPtr_); } if (clientLocality_ != null) { output.writeMessage(5, getClientLocality()); } if (serverLocality_ != null) { output.writeMessage(6, getServerLocality()); } if (transportOptions_ != null) { output.writeMessage(7, getTransportOptions()); } if (!getSrcDeviceBytes().isEmpty()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 8, srcDevice_); } if (!getDstDeviceBytes().isEmpty()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 9, dstDevice_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (stepId_ != 0L) { size += com.github.os72.protobuf351.CodedOutputStream .computeInt64Size(1, stepId_); } if (!getBufRendezvousKeyBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(2, bufRendezvousKey_); } if (numBytes_ != 0L) { size += com.github.os72.protobuf351.CodedOutputStream .computeInt64Size(3, numBytes_); } if (bufPtr_ != 0L) { size += com.github.os72.protobuf351.CodedOutputStream .computeFixed64Size(4, bufPtr_); } if (clientLocality_ != null) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(5, getClientLocality()); } if (serverLocality_ != null) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(6, getServerLocality()); } if (transportOptions_ != null) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(7, getTransportOptions()); } if (!getSrcDeviceBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(8, srcDevice_); } if (!getDstDeviceBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(9, dstDevice_); } 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.RecvBufRequest)) { return super.equals(obj); } org.tensorflow.distruntime.RecvBufRequest other = (org.tensorflow.distruntime.RecvBufRequest) obj; boolean result = true; result = result && (getStepId() == other.getStepId()); result = result && getBufRendezvousKey() .equals(other.getBufRendezvousKey()); result = result && (getNumBytes() == other.getNumBytes()); result = result && (getBufPtr() == other.getBufPtr()); result = result && (hasClientLocality() == other.hasClientLocality()); if (hasClientLocality()) { result = result && getClientLocality() .equals(other.getClientLocality()); } result = result && (hasServerLocality() == other.hasServerLocality()); if (hasServerLocality()) { result = result && getServerLocality() .equals(other.getServerLocality()); } result = result && (hasTransportOptions() == other.hasTransportOptions()); if (hasTransportOptions()) { result = result && getTransportOptions() .equals(other.getTransportOptions()); } result = result && getSrcDevice() .equals(other.getSrcDevice()); result = result && getDstDevice() .equals(other.getDstDevice()); 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) + STEP_ID_FIELD_NUMBER; hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong( getStepId()); hash = (37 * hash) + BUF_RENDEZVOUS_KEY_FIELD_NUMBER; hash = (53 * hash) + getBufRendezvousKey().hashCode(); hash = (37 * hash) + NUM_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong( getNumBytes()); hash = (37 * hash) + BUF_PTR_FIELD_NUMBER; hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong( getBufPtr()); if (hasClientLocality()) { hash = (37 * hash) + CLIENT_LOCALITY_FIELD_NUMBER; hash = (53 * hash) + getClientLocality().hashCode(); } if (hasServerLocality()) { hash = (37 * hash) + SERVER_LOCALITY_FIELD_NUMBER; hash = (53 * hash) + getServerLocality().hashCode(); } if (hasTransportOptions()) { hash = (37 * hash) + TRANSPORT_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getTransportOptions().hashCode(); } hash = (37 * hash) + SRC_DEVICE_FIELD_NUMBER; hash = (53 * hash) + getSrcDevice().hashCode(); hash = (37 * hash) + DST_DEVICE_FIELD_NUMBER; hash = (53 * hash) + getDstDevice().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.distruntime.RecvBufRequest parseFrom( java.nio.ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.distruntime.RecvBufRequest parseFrom( java.nio.ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.distruntime.RecvBufRequest parseFrom( com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.distruntime.RecvBufRequest parseFrom( com.github.os72.protobuf351.ByteString data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.distruntime.RecvBufRequest parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.distruntime.RecvBufRequest parseFrom( byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.distruntime.RecvBufRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.distruntime.RecvBufRequest parseFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.distruntime.RecvBufRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.distruntime.RecvBufRequest parseDelimitedFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.distruntime.RecvBufRequest parseFrom( com.github.os72.protobuf351.CodedInputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.distruntime.RecvBufRequest parseFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tensorflow.distruntime.RecvBufRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Use of the fields below may vary by implementation.  For example
   * the buf_ptr and num_bytes may be set only for local operations and
   * not sent on the wire, or only sent on the wire in one direction.
   * 
* * Protobuf type {@code tensorflow.RecvBufRequest} */ public static final class Builder extends com.github.os72.protobuf351.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.RecvBufRequest) org.tensorflow.distruntime.RecvBufRequestOrBuilder { public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RecvBufRequest_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RecvBufRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.distruntime.RecvBufRequest.class, org.tensorflow.distruntime.RecvBufRequest.Builder.class); } // Construct using org.tensorflow.distruntime.RecvBufRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.github.os72.protobuf351.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); stepId_ = 0L; bufRendezvousKey_ = ""; numBytes_ = 0L; bufPtr_ = 0L; if (clientLocalityBuilder_ == null) { clientLocality_ = null; } else { clientLocality_ = null; clientLocalityBuilder_ = null; } if (serverLocalityBuilder_ == null) { serverLocality_ = null; } else { serverLocality_ = null; serverLocalityBuilder_ = null; } if (transportOptionsBuilder_ == null) { transportOptions_ = null; } else { transportOptions_ = null; transportOptionsBuilder_ = null; } srcDevice_ = ""; dstDevice_ = ""; return this; } public com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_RecvBufRequest_descriptor; } public org.tensorflow.distruntime.RecvBufRequest getDefaultInstanceForType() { return org.tensorflow.distruntime.RecvBufRequest.getDefaultInstance(); } public org.tensorflow.distruntime.RecvBufRequest build() { org.tensorflow.distruntime.RecvBufRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tensorflow.distruntime.RecvBufRequest buildPartial() { org.tensorflow.distruntime.RecvBufRequest result = new org.tensorflow.distruntime.RecvBufRequest(this); result.stepId_ = stepId_; result.bufRendezvousKey_ = bufRendezvousKey_; result.numBytes_ = numBytes_; result.bufPtr_ = bufPtr_; if (clientLocalityBuilder_ == null) { result.clientLocality_ = clientLocality_; } else { result.clientLocality_ = clientLocalityBuilder_.build(); } if (serverLocalityBuilder_ == null) { result.serverLocality_ = serverLocality_; } else { result.serverLocality_ = serverLocalityBuilder_.build(); } if (transportOptionsBuilder_ == null) { result.transportOptions_ = transportOptions_; } else { result.transportOptions_ = transportOptionsBuilder_.build(); } result.srcDevice_ = srcDevice_; result.dstDevice_ = dstDevice_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.github.os72.protobuf351.Message other) { if (other instanceof org.tensorflow.distruntime.RecvBufRequest) { return mergeFrom((org.tensorflow.distruntime.RecvBufRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.distruntime.RecvBufRequest other) { if (other == org.tensorflow.distruntime.RecvBufRequest.getDefaultInstance()) return this; if (other.getStepId() != 0L) { setStepId(other.getStepId()); } if (!other.getBufRendezvousKey().isEmpty()) { bufRendezvousKey_ = other.bufRendezvousKey_; onChanged(); } if (other.getNumBytes() != 0L) { setNumBytes(other.getNumBytes()); } if (other.getBufPtr() != 0L) { setBufPtr(other.getBufPtr()); } if (other.hasClientLocality()) { mergeClientLocality(other.getClientLocality()); } if (other.hasServerLocality()) { mergeServerLocality(other.getServerLocality()); } if (other.hasTransportOptions()) { mergeTransportOptions(other.getTransportOptions()); } if (!other.getSrcDevice().isEmpty()) { srcDevice_ = other.srcDevice_; onChanged(); } if (!other.getDstDevice().isEmpty()) { dstDevice_ = other.dstDevice_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.distruntime.RecvBufRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.distruntime.RecvBufRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long stepId_ ; /** *
     * Used at server side to find the correct BufRendezvous.
     * 
* * int64 step_id = 1; */ public long getStepId() { return stepId_; } /** *
     * Used at server side to find the correct BufRendezvous.
     * 
* * int64 step_id = 1; */ public Builder setStepId(long value) { stepId_ = value; onChanged(); return this; } /** *
     * Used at server side to find the correct BufRendezvous.
     * 
* * int64 step_id = 1; */ public Builder clearStepId() { stepId_ = 0L; onChanged(); return this; } private java.lang.Object bufRendezvousKey_ = ""; /** *
     * Arbitrary string identifying a BufRendezvous entry.
     * 
* * string buf_rendezvous_key = 2; */ public java.lang.String getBufRendezvousKey() { java.lang.Object ref = bufRendezvousKey_; if (!(ref instanceof java.lang.String)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bufRendezvousKey_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Arbitrary string identifying a BufRendezvous entry.
     * 
* * string buf_rendezvous_key = 2; */ public com.github.os72.protobuf351.ByteString getBufRendezvousKeyBytes() { java.lang.Object ref = bufRendezvousKey_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); bufRendezvousKey_ = b; return b; } else { return (com.github.os72.protobuf351.ByteString) ref; } } /** *
     * Arbitrary string identifying a BufRendezvous entry.
     * 
* * string buf_rendezvous_key = 2; */ public Builder setBufRendezvousKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bufRendezvousKey_ = value; onChanged(); return this; } /** *
     * Arbitrary string identifying a BufRendezvous entry.
     * 
* * string buf_rendezvous_key = 2; */ public Builder clearBufRendezvousKey() { bufRendezvousKey_ = getDefaultInstance().getBufRendezvousKey(); onChanged(); return this; } /** *
     * Arbitrary string identifying a BufRendezvous entry.
     * 
* * string buf_rendezvous_key = 2; */ public Builder setBufRendezvousKeyBytes( com.github.os72.protobuf351.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bufRendezvousKey_ = value; onChanged(); return this; } private long numBytes_ ; /** *
     * Size of value expected, must agree with BufRendezvous entry.
     * 
* * int64 num_bytes = 3; */ public long getNumBytes() { return numBytes_; } /** *
     * Size of value expected, must agree with BufRendezvous entry.
     * 
* * int64 num_bytes = 3; */ public Builder setNumBytes(long value) { numBytes_ = value; onChanged(); return this; } /** *
     * Size of value expected, must agree with BufRendezvous entry.
     * 
* * int64 num_bytes = 3; */ public Builder clearNumBytes() { numBytes_ = 0L; onChanged(); return this; } private long bufPtr_ ; /** *
     * When RDMA is in use, address of destination field on client.
     * 
* * fixed64 buf_ptr = 4; */ public long getBufPtr() { return bufPtr_; } /** *
     * When RDMA is in use, address of destination field on client.
     * 
* * fixed64 buf_ptr = 4; */ public Builder setBufPtr(long value) { bufPtr_ = value; onChanged(); return this; } /** *
     * When RDMA is in use, address of destination field on client.
     * 
* * fixed64 buf_ptr = 4; */ public Builder clearBufPtr() { bufPtr_ = 0L; onChanged(); return this; } private org.tensorflow.framework.DeviceLocality clientLocality_ = null; private com.github.os72.protobuf351.SingleFieldBuilderV3< org.tensorflow.framework.DeviceLocality, org.tensorflow.framework.DeviceLocality.Builder, org.tensorflow.framework.DeviceLocalityOrBuilder> clientLocalityBuilder_; /** *
     * Optional information on client-side device locality.
     * 
* * .tensorflow.DeviceLocality client_locality = 5; */ public boolean hasClientLocality() { return clientLocalityBuilder_ != null || clientLocality_ != null; } /** *
     * Optional information on client-side device locality.
     * 
* * .tensorflow.DeviceLocality client_locality = 5; */ public org.tensorflow.framework.DeviceLocality getClientLocality() { if (clientLocalityBuilder_ == null) { return clientLocality_ == null ? org.tensorflow.framework.DeviceLocality.getDefaultInstance() : clientLocality_; } else { return clientLocalityBuilder_.getMessage(); } } /** *
     * Optional information on client-side device locality.
     * 
* * .tensorflow.DeviceLocality client_locality = 5; */ public Builder setClientLocality(org.tensorflow.framework.DeviceLocality value) { if (clientLocalityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientLocality_ = value; onChanged(); } else { clientLocalityBuilder_.setMessage(value); } return this; } /** *
     * Optional information on client-side device locality.
     * 
* * .tensorflow.DeviceLocality client_locality = 5; */ public Builder setClientLocality( org.tensorflow.framework.DeviceLocality.Builder builderForValue) { if (clientLocalityBuilder_ == null) { clientLocality_ = builderForValue.build(); onChanged(); } else { clientLocalityBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Optional information on client-side device locality.
     * 
* * .tensorflow.DeviceLocality client_locality = 5; */ public Builder mergeClientLocality(org.tensorflow.framework.DeviceLocality value) { if (clientLocalityBuilder_ == null) { if (clientLocality_ != null) { clientLocality_ = org.tensorflow.framework.DeviceLocality.newBuilder(clientLocality_).mergeFrom(value).buildPartial(); } else { clientLocality_ = value; } onChanged(); } else { clientLocalityBuilder_.mergeFrom(value); } return this; } /** *
     * Optional information on client-side device locality.
     * 
* * .tensorflow.DeviceLocality client_locality = 5; */ public Builder clearClientLocality() { if (clientLocalityBuilder_ == null) { clientLocality_ = null; onChanged(); } else { clientLocality_ = null; clientLocalityBuilder_ = null; } return this; } /** *
     * Optional information on client-side device locality.
     * 
* * .tensorflow.DeviceLocality client_locality = 5; */ public org.tensorflow.framework.DeviceLocality.Builder getClientLocalityBuilder() { onChanged(); return getClientLocalityFieldBuilder().getBuilder(); } /** *
     * Optional information on client-side device locality.
     * 
* * .tensorflow.DeviceLocality client_locality = 5; */ public org.tensorflow.framework.DeviceLocalityOrBuilder getClientLocalityOrBuilder() { if (clientLocalityBuilder_ != null) { return clientLocalityBuilder_.getMessageOrBuilder(); } else { return clientLocality_ == null ? org.tensorflow.framework.DeviceLocality.getDefaultInstance() : clientLocality_; } } /** *
     * Optional information on client-side device locality.
     * 
* * .tensorflow.DeviceLocality client_locality = 5; */ private com.github.os72.protobuf351.SingleFieldBuilderV3< org.tensorflow.framework.DeviceLocality, org.tensorflow.framework.DeviceLocality.Builder, org.tensorflow.framework.DeviceLocalityOrBuilder> getClientLocalityFieldBuilder() { if (clientLocalityBuilder_ == null) { clientLocalityBuilder_ = new com.github.os72.protobuf351.SingleFieldBuilderV3< org.tensorflow.framework.DeviceLocality, org.tensorflow.framework.DeviceLocality.Builder, org.tensorflow.framework.DeviceLocalityOrBuilder>( getClientLocality(), getParentForChildren(), isClean()); clientLocality_ = null; } return clientLocalityBuilder_; } private org.tensorflow.framework.DeviceLocality serverLocality_ = null; private com.github.os72.protobuf351.SingleFieldBuilderV3< org.tensorflow.framework.DeviceLocality, org.tensorflow.framework.DeviceLocality.Builder, org.tensorflow.framework.DeviceLocalityOrBuilder> serverLocalityBuilder_; /** *
     * Optional information on server-side device locality.
     * 
* * .tensorflow.DeviceLocality server_locality = 6; */ public boolean hasServerLocality() { return serverLocalityBuilder_ != null || serverLocality_ != null; } /** *
     * Optional information on server-side device locality.
     * 
* * .tensorflow.DeviceLocality server_locality = 6; */ public org.tensorflow.framework.DeviceLocality getServerLocality() { if (serverLocalityBuilder_ == null) { return serverLocality_ == null ? org.tensorflow.framework.DeviceLocality.getDefaultInstance() : serverLocality_; } else { return serverLocalityBuilder_.getMessage(); } } /** *
     * Optional information on server-side device locality.
     * 
* * .tensorflow.DeviceLocality server_locality = 6; */ public Builder setServerLocality(org.tensorflow.framework.DeviceLocality value) { if (serverLocalityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverLocality_ = value; onChanged(); } else { serverLocalityBuilder_.setMessage(value); } return this; } /** *
     * Optional information on server-side device locality.
     * 
* * .tensorflow.DeviceLocality server_locality = 6; */ public Builder setServerLocality( org.tensorflow.framework.DeviceLocality.Builder builderForValue) { if (serverLocalityBuilder_ == null) { serverLocality_ = builderForValue.build(); onChanged(); } else { serverLocalityBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Optional information on server-side device locality.
     * 
* * .tensorflow.DeviceLocality server_locality = 6; */ public Builder mergeServerLocality(org.tensorflow.framework.DeviceLocality value) { if (serverLocalityBuilder_ == null) { if (serverLocality_ != null) { serverLocality_ = org.tensorflow.framework.DeviceLocality.newBuilder(serverLocality_).mergeFrom(value).buildPartial(); } else { serverLocality_ = value; } onChanged(); } else { serverLocalityBuilder_.mergeFrom(value); } return this; } /** *
     * Optional information on server-side device locality.
     * 
* * .tensorflow.DeviceLocality server_locality = 6; */ public Builder clearServerLocality() { if (serverLocalityBuilder_ == null) { serverLocality_ = null; onChanged(); } else { serverLocality_ = null; serverLocalityBuilder_ = null; } return this; } /** *
     * Optional information on server-side device locality.
     * 
* * .tensorflow.DeviceLocality server_locality = 6; */ public org.tensorflow.framework.DeviceLocality.Builder getServerLocalityBuilder() { onChanged(); return getServerLocalityFieldBuilder().getBuilder(); } /** *
     * Optional information on server-side device locality.
     * 
* * .tensorflow.DeviceLocality server_locality = 6; */ public org.tensorflow.framework.DeviceLocalityOrBuilder getServerLocalityOrBuilder() { if (serverLocalityBuilder_ != null) { return serverLocalityBuilder_.getMessageOrBuilder(); } else { return serverLocality_ == null ? org.tensorflow.framework.DeviceLocality.getDefaultInstance() : serverLocality_; } } /** *
     * Optional information on server-side device locality.
     * 
* * .tensorflow.DeviceLocality server_locality = 6; */ private com.github.os72.protobuf351.SingleFieldBuilderV3< org.tensorflow.framework.DeviceLocality, org.tensorflow.framework.DeviceLocality.Builder, org.tensorflow.framework.DeviceLocalityOrBuilder> getServerLocalityFieldBuilder() { if (serverLocalityBuilder_ == null) { serverLocalityBuilder_ = new com.github.os72.protobuf351.SingleFieldBuilderV3< org.tensorflow.framework.DeviceLocality, org.tensorflow.framework.DeviceLocality.Builder, org.tensorflow.framework.DeviceLocalityOrBuilder>( getServerLocality(), getParentForChildren(), isClean()); serverLocality_ = null; } return serverLocalityBuilder_; } private com.github.os72.protobuf351.Any transportOptions_ = null; private com.github.os72.protobuf351.SingleFieldBuilderV3< com.github.os72.protobuf351.Any, com.github.os72.protobuf351.Any.Builder, com.github.os72.protobuf351.AnyOrBuilder> transportOptionsBuilder_; /** *
     * Optional, implementation-specific data.
     * 
* * .google.protobuf.Any transport_options = 7; */ public boolean hasTransportOptions() { return transportOptionsBuilder_ != null || transportOptions_ != null; } /** *
     * Optional, implementation-specific data.
     * 
* * .google.protobuf.Any transport_options = 7; */ public com.github.os72.protobuf351.Any getTransportOptions() { if (transportOptionsBuilder_ == null) { return transportOptions_ == null ? com.github.os72.protobuf351.Any.getDefaultInstance() : transportOptions_; } else { return transportOptionsBuilder_.getMessage(); } } /** *
     * Optional, implementation-specific data.
     * 
* * .google.protobuf.Any transport_options = 7; */ public Builder setTransportOptions(com.github.os72.protobuf351.Any value) { if (transportOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transportOptions_ = value; onChanged(); } else { transportOptionsBuilder_.setMessage(value); } return this; } /** *
     * Optional, implementation-specific data.
     * 
* * .google.protobuf.Any transport_options = 7; */ public Builder setTransportOptions( com.github.os72.protobuf351.Any.Builder builderForValue) { if (transportOptionsBuilder_ == null) { transportOptions_ = builderForValue.build(); onChanged(); } else { transportOptionsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Optional, implementation-specific data.
     * 
* * .google.protobuf.Any transport_options = 7; */ public Builder mergeTransportOptions(com.github.os72.protobuf351.Any value) { if (transportOptionsBuilder_ == null) { if (transportOptions_ != null) { transportOptions_ = com.github.os72.protobuf351.Any.newBuilder(transportOptions_).mergeFrom(value).buildPartial(); } else { transportOptions_ = value; } onChanged(); } else { transportOptionsBuilder_.mergeFrom(value); } return this; } /** *
     * Optional, implementation-specific data.
     * 
* * .google.protobuf.Any transport_options = 7; */ public Builder clearTransportOptions() { if (transportOptionsBuilder_ == null) { transportOptions_ = null; onChanged(); } else { transportOptions_ = null; transportOptionsBuilder_ = null; } return this; } /** *
     * Optional, implementation-specific data.
     * 
* * .google.protobuf.Any transport_options = 7; */ public com.github.os72.protobuf351.Any.Builder getTransportOptionsBuilder() { onChanged(); return getTransportOptionsFieldBuilder().getBuilder(); } /** *
     * Optional, implementation-specific data.
     * 
* * .google.protobuf.Any transport_options = 7; */ public com.github.os72.protobuf351.AnyOrBuilder getTransportOptionsOrBuilder() { if (transportOptionsBuilder_ != null) { return transportOptionsBuilder_.getMessageOrBuilder(); } else { return transportOptions_ == null ? com.github.os72.protobuf351.Any.getDefaultInstance() : transportOptions_; } } /** *
     * Optional, implementation-specific data.
     * 
* * .google.protobuf.Any transport_options = 7; */ private com.github.os72.protobuf351.SingleFieldBuilderV3< com.github.os72.protobuf351.Any, com.github.os72.protobuf351.Any.Builder, com.github.os72.protobuf351.AnyOrBuilder> getTransportOptionsFieldBuilder() { if (transportOptionsBuilder_ == null) { transportOptionsBuilder_ = new com.github.os72.protobuf351.SingleFieldBuilderV3< com.github.os72.protobuf351.Any, com.github.os72.protobuf351.Any.Builder, com.github.os72.protobuf351.AnyOrBuilder>( getTransportOptions(), getParentForChildren(), isClean()); transportOptions_ = null; } return transportOptionsBuilder_; } private java.lang.Object srcDevice_ = ""; /** *
     * Optional, for annotating the timeline.
     * 
* * string src_device = 8; */ public java.lang.String getSrcDevice() { java.lang.Object ref = srcDevice_; if (!(ref instanceof java.lang.String)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.ByteString) ref; java.lang.String s = bs.toStringUtf8(); srcDevice_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Optional, for annotating the timeline.
     * 
* * string src_device = 8; */ public com.github.os72.protobuf351.ByteString getSrcDeviceBytes() { java.lang.Object ref = srcDevice_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); srcDevice_ = b; return b; } else { return (com.github.os72.protobuf351.ByteString) ref; } } /** *
     * Optional, for annotating the timeline.
     * 
* * string src_device = 8; */ public Builder setSrcDevice( java.lang.String value) { if (value == null) { throw new NullPointerException(); } srcDevice_ = value; onChanged(); return this; } /** *
     * Optional, for annotating the timeline.
     * 
* * string src_device = 8; */ public Builder clearSrcDevice() { srcDevice_ = getDefaultInstance().getSrcDevice(); onChanged(); return this; } /** *
     * Optional, for annotating the timeline.
     * 
* * string src_device = 8; */ public Builder setSrcDeviceBytes( com.github.os72.protobuf351.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); srcDevice_ = value; onChanged(); return this; } private java.lang.Object dstDevice_ = ""; /** * string dst_device = 9; */ public java.lang.String getDstDevice() { java.lang.Object ref = dstDevice_; if (!(ref instanceof java.lang.String)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dstDevice_ = s; return s; } else { return (java.lang.String) ref; } } /** * string dst_device = 9; */ public com.github.os72.protobuf351.ByteString getDstDeviceBytes() { java.lang.Object ref = dstDevice_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); dstDevice_ = b; return b; } else { return (com.github.os72.protobuf351.ByteString) ref; } } /** * string dst_device = 9; */ public Builder setDstDevice( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dstDevice_ = value; onChanged(); return this; } /** * string dst_device = 9; */ public Builder clearDstDevice() { dstDevice_ = getDefaultInstance().getDstDevice(); onChanged(); return this; } /** * string dst_device = 9; */ public Builder setDstDeviceBytes( com.github.os72.protobuf351.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dstDevice_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.RecvBufRequest) } // @@protoc_insertion_point(class_scope:tensorflow.RecvBufRequest) private static final org.tensorflow.distruntime.RecvBufRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.distruntime.RecvBufRequest(); } public static org.tensorflow.distruntime.RecvBufRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.github.os72.protobuf351.Parser PARSER = new com.github.os72.protobuf351.AbstractParser() { public RecvBufRequest parsePartialFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return new RecvBufRequest(input, extensionRegistry); } }; public static com.github.os72.protobuf351.Parser parser() { return PARSER; } @java.lang.Override public com.github.os72.protobuf351.Parser getParserForType() { return PARSER; } public org.tensorflow.distruntime.RecvBufRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy