|
@@ -15,7 +15,6 @@
|
|
|
* See the License for the specific language governing permissions and
|
|
|
* limitations under the License.
|
|
|
*/
|
|
|
-
|
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
// source: datatransfer.proto
|
|
|
|
|
@@ -6936,6 +6935,10 @@ public final class DataTransferProtos {
|
|
|
boolean hasChecksumResponse();
|
|
|
org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.OpBlockChecksumResponseProto getChecksumResponse();
|
|
|
org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.OpBlockChecksumResponseProtoOrBuilder getChecksumResponseOrBuilder();
|
|
|
+
|
|
|
+ // optional string message = 4;
|
|
|
+ boolean hasMessage();
|
|
|
+ String getMessage();
|
|
|
}
|
|
|
public static final class BlockOpResponseProto extends
|
|
|
com.google.protobuf.GeneratedMessage
|
|
@@ -7021,10 +7024,43 @@ public final class DataTransferProtos {
|
|
|
return checksumResponse_;
|
|
|
}
|
|
|
|
|
|
+ // optional string message = 4;
|
|
|
+ public static final int MESSAGE_FIELD_NUMBER = 4;
|
|
|
+ private java.lang.Object message_;
|
|
|
+ public boolean hasMessage() {
|
|
|
+ return ((bitField0_ & 0x00000008) == 0x00000008);
|
|
|
+ }
|
|
|
+ public String getMessage() {
|
|
|
+ java.lang.Object ref = message_;
|
|
|
+ if (ref instanceof String) {
|
|
|
+ return (String) ref;
|
|
|
+ } else {
|
|
|
+ com.google.protobuf.ByteString bs =
|
|
|
+ (com.google.protobuf.ByteString) ref;
|
|
|
+ String s = bs.toStringUtf8();
|
|
|
+ if (com.google.protobuf.Internal.isValidUtf8(bs)) {
|
|
|
+ message_ = s;
|
|
|
+ }
|
|
|
+ return s;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private com.google.protobuf.ByteString getMessageBytes() {
|
|
|
+ java.lang.Object ref = message_;
|
|
|
+ if (ref instanceof String) {
|
|
|
+ com.google.protobuf.ByteString b =
|
|
|
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
|
|
|
+ message_ = b;
|
|
|
+ return b;
|
|
|
+ } else {
|
|
|
+ return (com.google.protobuf.ByteString) ref;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
private void initFields() {
|
|
|
status_ = org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.Status.SUCCESS;
|
|
|
firstBadLink_ = "";
|
|
|
checksumResponse_ = org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.OpBlockChecksumResponseProto.getDefaultInstance();
|
|
|
+ message_ = "";
|
|
|
}
|
|
|
private byte memoizedIsInitialized = -1;
|
|
|
public final boolean isInitialized() {
|
|
@@ -7057,6 +7093,9 @@ public final class DataTransferProtos {
|
|
|
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
|
|
output.writeMessage(3, checksumResponse_);
|
|
|
}
|
|
|
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
|
|
+ output.writeBytes(4, getMessageBytes());
|
|
|
+ }
|
|
|
getUnknownFields().writeTo(output);
|
|
|
}
|
|
|
|
|
@@ -7078,6 +7117,10 @@ public final class DataTransferProtos {
|
|
|
size += com.google.protobuf.CodedOutputStream
|
|
|
.computeMessageSize(3, checksumResponse_);
|
|
|
}
|
|
|
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
|
|
+ size += com.google.protobuf.CodedOutputStream
|
|
|
+ .computeBytesSize(4, getMessageBytes());
|
|
|
+ }
|
|
|
size += getUnknownFields().getSerializedSize();
|
|
|
memoizedSerializedSize = size;
|
|
|
return size;
|
|
@@ -7116,6 +7159,11 @@ public final class DataTransferProtos {
|
|
|
result = result && getChecksumResponse()
|
|
|
.equals(other.getChecksumResponse());
|
|
|
}
|
|
|
+ result = result && (hasMessage() == other.hasMessage());
|
|
|
+ if (hasMessage()) {
|
|
|
+ result = result && getMessage()
|
|
|
+ .equals(other.getMessage());
|
|
|
+ }
|
|
|
result = result &&
|
|
|
getUnknownFields().equals(other.getUnknownFields());
|
|
|
return result;
|
|
@@ -7137,6 +7185,10 @@ public final class DataTransferProtos {
|
|
|
hash = (37 * hash) + CHECKSUMRESPONSE_FIELD_NUMBER;
|
|
|
hash = (53 * hash) + getChecksumResponse().hashCode();
|
|
|
}
|
|
|
+ if (hasMessage()) {
|
|
|
+ hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
|
|
|
+ hash = (53 * hash) + getMessage().hashCode();
|
|
|
+ }
|
|
|
hash = (29 * hash) + getUnknownFields().hashCode();
|
|
|
return hash;
|
|
|
}
|
|
@@ -7264,6 +7316,8 @@ public final class DataTransferProtos {
|
|
|
checksumResponseBuilder_.clear();
|
|
|
}
|
|
|
bitField0_ = (bitField0_ & ~0x00000004);
|
|
|
+ message_ = "";
|
|
|
+ bitField0_ = (bitField0_ & ~0x00000008);
|
|
|
return this;
|
|
|
}
|
|
|
|
|
@@ -7318,6 +7372,10 @@ public final class DataTransferProtos {
|
|
|
} else {
|
|
|
result.checksumResponse_ = checksumResponseBuilder_.build();
|
|
|
}
|
|
|
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
|
|
|
+ to_bitField0_ |= 0x00000008;
|
|
|
+ }
|
|
|
+ result.message_ = message_;
|
|
|
result.bitField0_ = to_bitField0_;
|
|
|
onBuilt();
|
|
|
return result;
|
|
@@ -7343,6 +7401,9 @@ public final class DataTransferProtos {
|
|
|
if (other.hasChecksumResponse()) {
|
|
|
mergeChecksumResponse(other.getChecksumResponse());
|
|
|
}
|
|
|
+ if (other.hasMessage()) {
|
|
|
+ setMessage(other.getMessage());
|
|
|
+ }
|
|
|
this.mergeUnknownFields(other.getUnknownFields());
|
|
|
return this;
|
|
|
}
|
|
@@ -7409,6 +7470,11 @@ public final class DataTransferProtos {
|
|
|
setChecksumResponse(subBuilder.buildPartial());
|
|
|
break;
|
|
|
}
|
|
|
+ case 34: {
|
|
|
+ bitField0_ |= 0x00000008;
|
|
|
+ message_ = input.readBytes();
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -7565,6 +7631,42 @@ public final class DataTransferProtos {
|
|
|
return checksumResponseBuilder_;
|
|
|
}
|
|
|
|
|
|
+ // optional string message = 4;
|
|
|
+ private java.lang.Object message_ = "";
|
|
|
+ public boolean hasMessage() {
|
|
|
+ return ((bitField0_ & 0x00000008) == 0x00000008);
|
|
|
+ }
|
|
|
+ public String getMessage() {
|
|
|
+ java.lang.Object ref = message_;
|
|
|
+ if (!(ref instanceof String)) {
|
|
|
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
|
|
|
+ message_ = s;
|
|
|
+ return s;
|
|
|
+ } else {
|
|
|
+ return (String) ref;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public Builder setMessage(String value) {
|
|
|
+ if (value == null) {
|
|
|
+ throw new NullPointerException();
|
|
|
+ }
|
|
|
+ bitField0_ |= 0x00000008;
|
|
|
+ message_ = value;
|
|
|
+ onChanged();
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+ public Builder clearMessage() {
|
|
|
+ bitField0_ = (bitField0_ & ~0x00000008);
|
|
|
+ message_ = getDefaultInstance().getMessage();
|
|
|
+ onChanged();
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+ void setMessage(com.google.protobuf.ByteString value) {
|
|
|
+ bitField0_ |= 0x00000008;
|
|
|
+ message_ = value;
|
|
|
+ onChanged();
|
|
|
+ }
|
|
|
+
|
|
|
// @@protoc_insertion_point(builder_scope:BlockOpResponseProto)
|
|
|
}
|
|
|
|
|
@@ -8995,19 +9097,20 @@ public final class DataTransferProtos {
|
|
|
"\030\001 \002(\020\022\r\n\005seqno\030\002 \002(\020\022\031\n\021lastPacketInBlo" +
|
|
|
"ck\030\003 \002(\010\022\017\n\007dataLen\030\004 \002(\017\":\n\020PipelineAck" +
|
|
|
"Proto\022\r\n\005seqno\030\001 \002(\022\022\027\n\006status\030\002 \003(\0162\007.S" +
|
|
|
- "tatus\"~\n\024BlockOpResponseProto\022\027\n\006status\030" +
|
|
|
- "\001 \002(\0162\007.Status\022\024\n\014firstBadLink\030\002 \001(\t\0227\n\020" +
|
|
|
- "checksumResponse\030\003 \001(\0132\035.OpBlockChecksum" +
|
|
|
- "ResponseProto\"0\n\025ClientReadStatusProto\022\027" +
|
|
|
- "\n\006status\030\001 \002(\0162\007.Status\"-\n\022DNTransferAck" +
|
|
|
- "Proto\022\027\n\006status\030\001 \002(\0162\007.Status\"U\n\034OpBloc",
|
|
|
- "kChecksumResponseProto\022\023\n\013bytesPerCrc\030\001 " +
|
|
|
- "\002(\r\022\023\n\013crcPerBlock\030\002 \002(\004\022\013\n\003md5\030\003 \002(\014*\202\001" +
|
|
|
- "\n\006Status\022\013\n\007SUCCESS\020\000\022\t\n\005ERROR\020\001\022\022\n\016ERRO" +
|
|
|
- "R_CHECKSUM\020\002\022\021\n\rERROR_INVALID\020\003\022\020\n\014ERROR" +
|
|
|
- "_EXISTS\020\004\022\026\n\022ERROR_ACCESS_TOKEN\020\005\022\017\n\013CHE" +
|
|
|
- "CKSUM_OK\020\006B>\n%org.apache.hadoop.hdfs.pro" +
|
|
|
- "tocol.protoB\022DataTransferProtos\240\001\001"
|
|
|
+ "tatus\"\217\001\n\024BlockOpResponseProto\022\027\n\006status" +
|
|
|
+ "\030\001 \002(\0162\007.Status\022\024\n\014firstBadLink\030\002 \001(\t\0227\n" +
|
|
|
+ "\020checksumResponse\030\003 \001(\0132\035.OpBlockChecksu" +
|
|
|
+ "mResponseProto\022\017\n\007message\030\004 \001(\t\"0\n\025Clien" +
|
|
|
+ "tReadStatusProto\022\027\n\006status\030\001 \002(\0162\007.Statu" +
|
|
|
+ "s\"-\n\022DNTransferAckProto\022\027\n\006status\030\001 \002(\0162",
|
|
|
+ "\007.Status\"U\n\034OpBlockChecksumResponseProto" +
|
|
|
+ "\022\023\n\013bytesPerCrc\030\001 \002(\r\022\023\n\013crcPerBlock\030\002 \002" +
|
|
|
+ "(\004\022\013\n\003md5\030\003 \002(\014*\202\001\n\006Status\022\013\n\007SUCCESS\020\000\022" +
|
|
|
+ "\t\n\005ERROR\020\001\022\022\n\016ERROR_CHECKSUM\020\002\022\021\n\rERROR_" +
|
|
|
+ "INVALID\020\003\022\020\n\014ERROR_EXISTS\020\004\022\026\n\022ERROR_ACC" +
|
|
|
+ "ESS_TOKEN\020\005\022\017\n\013CHECKSUM_OK\020\006B>\n%org.apac" +
|
|
|
+ "he.hadoop.hdfs.protocol.protoB\022DataTrans" +
|
|
|
+ "ferProtos\240\001\001"
|
|
|
};
|
|
|
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
|
|
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
|
|
@@ -9099,7 +9202,7 @@ public final class DataTransferProtos {
|
|
|
internal_static_BlockOpResponseProto_fieldAccessorTable = new
|
|
|
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
|
|
|
internal_static_BlockOpResponseProto_descriptor,
|
|
|
- new java.lang.String[] { "Status", "FirstBadLink", "ChecksumResponse", },
|
|
|
+ new java.lang.String[] { "Status", "FirstBadLink", "ChecksumResponse", "Message", },
|
|
|
org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.BlockOpResponseProto.class,
|
|
|
org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.BlockOpResponseProto.Builder.class);
|
|
|
internal_static_ClientReadStatusProto_descriptor =
|