@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto)) { return super.equals(obj); } org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto other = (org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto) obj; boolean result = true; result = result && (hasVersion() == other.hasVersion()); if (hasVersion()) { result = result && (getVersion() == other.getVersion()); } result = result && getMethodsList() .equals(other.getMethodsList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto buildPartial() { org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto result = new org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.version_ = version_; if (((bitField0_ & 0x00000002) == 0x00000002)) { methods_ = java.util.Collections.unmodifiableList(methods_); bitField0_ = (bitField0_ & ~0x00000002); } result.methods_ = methods_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public Builder mergeFrom(org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto other) { if (other == org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto.getDefaultInstance()) return this; if (other.hasVersion()) { setVersion(other.getVersion()); } if (!other.methods_.isEmpty()) { if (methods_.isEmpty()) { methods_ = other.methods_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMethodsIsMutable(); methods_.addAll(other.methods_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
Assert.assertEquals(1, resp.getProtocolSignatureCount()); ProtocolSignatureProto sig = resp.getProtocolSignatureList().get(0); Assert.assertEquals(TestProtocol1.versionID, sig.getVersion()); boolean found = false; int expected = ProtocolSignature.getFingerprint(TestProtocol1.class .getMethod("echo", String.class)); for (int m : sig.getMethodsList()) { if (expected == m) { found = true;
Assert.assertEquals(1, resp.getProtocolSignatureCount()); ProtocolSignatureProto sig = resp.getProtocolSignatureList().get(0); Assert.assertEquals(TestProtocol1.versionID, sig.getVersion()); boolean found = false; int expected = ProtocolSignature.getFingerprint(TestProtocol1.class .getMethod("echo", String.class)); for (int m : sig.getMethodsList()) { if (expected == m) { found = true;
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto)) { return super.equals(obj); } org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto other = (org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto) obj; boolean result = true; result = result && (hasVersion() == other.hasVersion()); if (hasVersion()) { result = result && (getVersion() == other.getVersion()); } result = result && getMethodsList() .equals(other.getMethodsList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, version_); } { int dataSize = 0; for (int i = 0; i < methods_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(methods_.get(i)); } size += dataSize; size += 1 * getMethodsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, version_); } { int dataSize = 0; for (int i = 0; i < methods_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(methods_.get(i)); } size += dataSize; size += 1 * getMethodsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto)) { return super.equals(obj); } org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto other = (org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto) obj; boolean result = true; result = result && (hasVersion() == other.hasVersion()); if (hasVersion()) { result = result && (getVersion() == other.getVersion()); } result = result && getMethodsList() .equals(other.getMethodsList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += io.prestosql.hadoop.$internal.com.google.protobuf.CodedOutputStream .computeUInt64Size(1, version_); } { int dataSize = 0; for (int i = 0; i < methods_.size(); i++) { dataSize += io.prestosql.hadoop.$internal.com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(methods_.get(i)); } size += dataSize; size += 1 * getMethodsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, version_); } { int dataSize = 0; for (int i = 0; i < methods_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(methods_.get(i)); } size += dataSize; size += 1 * getMethodsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto)) { return super.equals(obj); } org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto other = (org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto) obj; boolean result = true; result = result && (hasVersion() == other.hasVersion()); if (hasVersion()) { result = result && (getVersion() == other.getVersion()); } result = result && getMethodsList() .equals(other.getMethodsList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto buildPartial() { org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto result = new org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.version_ = version_; if (((bitField0_ & 0x00000002) == 0x00000002)) { methods_ = java.util.Collections.unmodifiableList(methods_); bitField0_ = (bitField0_ & ~0x00000002); } result.methods_ = methods_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public Builder mergeFrom(org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto other) { if (other == org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto.getDefaultInstance()) return this; if (other.hasVersion()) { setVersion(other.getVersion()); } if (!other.methods_.isEmpty()) { if (methods_.isEmpty()) { methods_ = other.methods_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMethodsIsMutable(); methods_.addAll(other.methods_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto other) { if (other == org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto.getDefaultInstance()) return this; if (other.hasVersion()) { setVersion(other.getVersion()); } if (!other.methods_.isEmpty()) { if (methods_.isEmpty()) { methods_ = other.methods_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMethodsIsMutable(); methods_.addAll(other.methods_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasVersion()) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + hashLong(getVersion()); } if (getMethodsCount() > 0) { hash = (37 * hash) + METHODS_FIELD_NUMBER; hash = (53 * hash) + getMethodsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasVersion()) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + hashLong(getVersion()); } if (getMethodsCount() > 0) { hash = (37 * hash) + METHODS_FIELD_NUMBER; hash = (53 * hash) + getMethodsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
public org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto buildPartial() { org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto result = new org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.version_ = version_; if (((bitField0_ & 0x00000002) == 0x00000002)) { methods_ = java.util.Collections.unmodifiableList(methods_); bitField0_ = (bitField0_ & ~0x00000002); } result.methods_ = methods_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto)) { return super.equals(obj); } org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto other = (org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto) obj; boolean result = true; result = result && (hasVersion() == other.hasVersion()); if (hasVersion()) { result = result && (getVersion() == other.getVersion()); } result = result && getMethodsList() .equals(other.getMethodsList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public Builder mergeFrom(org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto other) { if (other == org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto.getDefaultInstance()) return this; if (other.hasVersion()) { setVersion(other.getVersion()); } if (!other.methods_.isEmpty()) { if (methods_.isEmpty()) { methods_ = other.methods_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMethodsIsMutable(); methods_.addAll(other.methods_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }