@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (frame_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFrame()); } if (missingStatement_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, missingStatement_); } if (missingResults_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, missingResults_); } if (metadata_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getMetadata()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public org.apache.calcite.avatica.proto.Responses.FetchResponse buildPartial() { org.apache.calcite.avatica.proto.Responses.FetchResponse result = new org.apache.calcite.avatica.proto.Responses.FetchResponse(this); if (frameBuilder_ == null) { result.frame_ = frame_; } else { result.frame_ = frameBuilder_.build(); } result.missingStatement_ = missingStatement_; result.missingResults_ = missingResults_; if (metadataBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = metadataBuilder_.build(); } onBuilt(); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasFrame()) { hash = (37 * hash) + FRAME_FIELD_NUMBER; hash = (53 * hash) + getFrame().hashCode(); } hash = (37 * hash) + MISSING_STATEMENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMissingStatement()); hash = (37 * hash) + MISSING_RESULTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMissingResults()); if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
e.getMessage()).setUnfinishedMessage(this)); } finally { makeExtensionsImmutable();
if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
when(service.apply(request)).thenReturn(response); when(translation.serializeResponse(response)) .thenReturn(response.serialize().toByteArray()); assertEquals(200, handlerResponse.getStatusCode()); Responses.FetchResponse protoResponse = Responses.FetchResponse.parseFrom(serializedResponse); Common.Frame protoFrame = protoResponse.getFrame();
when(service.apply(request)).thenReturn(response); when(translation.serializeResponse(response)) .thenReturn(response.serialize().toByteArray()); assertEquals(200, handlerResponse.getStatusCode()); Responses.FetchResponse protoResponse = Responses.FetchResponse.parseFrom(serializedResponse); Common.Frame protoFrame = protoResponse.getFrame();
when(service.apply(request)).thenReturn(response); when(translation.serializeResponse(response)) .thenReturn(response.serialize().toByteArray()); assertEquals(200, handlerResponse.getStatusCode()); Responses.FetchResponse protoResponse = Responses.FetchResponse.parseFrom(serializedResponse); Common.Frame protoFrame = protoResponse.getFrame();
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (frame_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFrame()); } if (missingStatement_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, missingStatement_); } if (missingResults_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, missingResults_); } if (metadata_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getMetadata()); } 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.apache.calcite.avatica.proto.Responses.FetchResponse)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Responses.FetchResponse other = (org.apache.calcite.avatica.proto.Responses.FetchResponse) obj; boolean result = true; result = result && (hasFrame() == other.hasFrame()); if (hasFrame()) { result = result && getFrame() .equals(other.getFrame()); } result = result && (getMissingStatement() == other.getMissingStatement()); result = result && (getMissingResults() == other.getMissingResults()); result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata() .equals(other.getMetadata()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.calcite.avatica.proto.Responses.FetchResponse)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Responses.FetchResponse other = (org.apache.calcite.avatica.proto.Responses.FetchResponse) obj; boolean result = true; result = result && (hasFrame() == other.hasFrame()); if (hasFrame()) { result = result && getFrame() .equals(other.getFrame()); } result = result && (getMissingStatement() == other.getMissingStatement()); result = result && (getMissingResults() == other.getMissingResults()); result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata() .equals(other.getMetadata()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (frame_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFrame()); } if (missingStatement_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, missingStatement_); } if (missingResults_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, missingResults_); } if (metadata_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getMetadata()); } memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasFrame()) { hash = (37 * hash) + FRAME_FIELD_NUMBER; hash = (53 * hash) + getFrame().hashCode(); } hash = (37 * hash) + MISSING_STATEMENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMissingStatement()); hash = (37 * hash) + MISSING_RESULTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMissingResults()); if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public org.apache.calcite.avatica.proto.Responses.FetchResponse buildPartial() { org.apache.calcite.avatica.proto.Responses.FetchResponse result = new org.apache.calcite.avatica.proto.Responses.FetchResponse(this); if (frameBuilder_ == null) { result.frame_ = frame_; } else { result.frame_ = frameBuilder_.build(); } result.missingStatement_ = missingStatement_; result.missingResults_ = missingResults_; if (metadataBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = metadataBuilder_.build(); } onBuilt(); return result; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (frame_ != null) { output.writeMessage(1, getFrame()); } if (missingStatement_ != false) { output.writeBool(2, missingStatement_); } if (missingResults_ != false) { output.writeBool(3, missingResults_); } if (metadata_ != null) { output.writeMessage(4, getMetadata()); } unknownFields.writeTo(output); }
@java.lang.Override public org.apache.calcite.avatica.proto.Responses.FetchResponse buildPartial() { org.apache.calcite.avatica.proto.Responses.FetchResponse result = new org.apache.calcite.avatica.proto.Responses.FetchResponse(this); if (frameBuilder_ == null) { result.frame_ = frame_; } else { result.frame_ = frameBuilder_.build(); } result.missingStatement_ = missingStatement_; result.missingResults_ = missingResults_; if (metadataBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = metadataBuilder_.build(); } onBuilt(); return result; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (frame_ != null) { output.writeMessage(1, getFrame()); } if (missingStatement_ != false) { output.writeBool(2, missingStatement_); } if (missingResults_ != false) { output.writeBool(3, missingResults_); } if (metadata_ != null) { output.writeMessage(4, getMetadata()); } unknownFields.writeTo(output); }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Responses.FetchResponse other) { if (other == org.apache.calcite.avatica.proto.Responses.FetchResponse.getDefaultInstance()) return this; if (other.hasFrame()) { mergeFrame(other.getFrame()); } if (other.getMissingStatement() != false) { setMissingStatement(other.getMissingStatement()); } if (other.getMissingResults() != false) { setMissingResults(other.getMissingResults()); } if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Responses.FetchResponse other) { if (other == org.apache.calcite.avatica.proto.Responses.FetchResponse.getDefaultInstance()) return this; if (other.hasFrame()) { mergeFrame(other.getFrame()); } if (other.getMissingStatement() != false) { setMissingStatement(other.getMissingStatement()); } if (other.getMissingResults() != false) { setMissingResults(other.getMissingResults()); } if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } onChanged(); return this; }