@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (statementHandle_ != null) { output.writeMessage(1, getStatementHandle()); } for (int i = 0; i < parameterValues_.size(); i++) { output.writeMessage(2, parameterValues_.get(i)); } if (deprecatedFirstFrameMaxSize_ != 0L) { output.writeUInt64(3, deprecatedFirstFrameMaxSize_); } if (hasParameterValues_ != false) { output.writeBool(4, hasParameterValues_); } if (firstFrameMaxSize_ != 0) { output.writeInt32(5, firstFrameMaxSize_); } unknownFields.writeTo(output); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (statementHandle_ != null) { output.writeMessage(1, getStatementHandle()); } for (int i = 0; i < parameterValues_.size(); i++) { output.writeMessage(2, parameterValues_.get(i)); } if (deprecatedFirstFrameMaxSize_ != 0L) { output.writeUInt64(3, deprecatedFirstFrameMaxSize_); } if (hasParameterValues_ != false) { output.writeBool(4, hasParameterValues_); } if (firstFrameMaxSize_ != 0) { output.writeInt32(5, firstFrameMaxSize_); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (statementHandle_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStatementHandle()); } for (int i = 0; i < parameterValues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, parameterValues_.get(i)); } if (deprecatedFirstFrameMaxSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, deprecatedFirstFrameMaxSize_); } if (hasParameterValues_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, hasParameterValues_); } if (firstFrameMaxSize_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, firstFrameMaxSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.ExecuteRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.ExecuteRequest.getDefaultInstance()) return this; if (other.hasStatementHandle()) { mergeStatementHandle(other.getStatementHandle());
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.ExecuteRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.ExecuteRequest.getDefaultInstance()) return this; if (other.hasStatementHandle()) { mergeStatementHandle(other.getStatementHandle());
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.ExecuteRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.ExecuteRequest.getDefaultInstance()) return this; if (other.hasStatementHandle()) { mergeStatementHandle(other.getStatementHandle());
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (statementHandle_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStatementHandle()); } for (int i = 0; i < parameterValues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, parameterValues_.get(i)); } if (deprecatedFirstFrameMaxSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, deprecatedFirstFrameMaxSize_); } if (hasParameterValues_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, hasParameterValues_); } if (firstFrameMaxSize_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, firstFrameMaxSize_); } 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.Requests.ExecuteRequest)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Requests.ExecuteRequest other = (org.apache.calcite.avatica.proto.Requests.ExecuteRequest) obj; boolean result = true; result = result && (hasStatementHandle() == other.hasStatementHandle()); if (hasStatementHandle()) { result = result && getStatementHandle() .equals(other.getStatementHandle()); } result = result && getParameterValuesList() .equals(other.getParameterValuesList()); result = result && (getDeprecatedFirstFrameMaxSize() == other.getDeprecatedFirstFrameMaxSize()); result = result && (getHasParameterValues() == other.getHasParameterValues()); result = result && (getFirstFrameMaxSize() == other.getFirstFrameMaxSize()); result = result && unknownFields.equals(other.unknownFields); return result; }
@Override ExecuteRequest deserialize(Message genericMsg) { final Requests.ExecuteRequest msg = ProtobufService.castProtobufMessage(genericMsg, Requests.ExecuteRequest.class); Meta.StatementHandle statementHandle = null; if (msg.hasField(STATEMENT_HANDLE_DESCRIPTOR)) { statementHandle = Meta.StatementHandle.fromProto(msg.getStatementHandle()); } List<TypedValue> values = null; if (msg.getHasParameterValues()) { values = new ArrayList<>(msg.getParameterValuesCount()); for (Common.TypedValue valueProto : msg.getParameterValuesList()) { if (TypedValue.PROTO_IMPLICIT_NULL.equals(valueProto)) { values.add(null); } else { values.add(TypedValue.fromProto(valueProto)); } } } // Default int value int maxFrameSize = 0; if (msg.hasField(FIRST_FRAME_MAX_SIZE_DESCRIPTOR)) { maxFrameSize = msg.getFirstFrameMaxSize(); } else if (msg.hasField(DEPRECATED_FIRST_FRAME_MAX_SIZE_DESCRIPTOR)) { // Truncate the long as an int maxFrameSize = (int) msg.getDeprecatedFirstFrameMaxSize(); } return new ExecuteRequest(statementHandle, values, maxFrameSize); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.calcite.avatica.proto.Requests.ExecuteRequest)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Requests.ExecuteRequest other = (org.apache.calcite.avatica.proto.Requests.ExecuteRequest) obj; boolean result = true; result = result && (hasStatementHandle() == other.hasStatementHandle()); if (hasStatementHandle()) { result = result && getStatementHandle() .equals(other.getStatementHandle()); } result = result && getParameterValuesList() .equals(other.getParameterValuesList()); result = result && (getDeprecatedFirstFrameMaxSize() == other.getDeprecatedFirstFrameMaxSize()); result = result && (getHasParameterValues() == other.getHasParameterValues()); result = result && (getFirstFrameMaxSize() == other.getFirstFrameMaxSize()); 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(); if (hasStatementHandle()) { hash = (37 * hash) + STATEMENTHANDLE_FIELD_NUMBER; hash = (53 * hash) + getStatementHandle().hashCode(); } if (getParameterValuesCount() > 0) { hash = (37 * hash) + PARAMETER_VALUES_FIELD_NUMBER; hash = (53 * hash) + getParameterValuesList().hashCode(); } hash = (37 * hash) + DEPRECATED_FIRST_FRAME_MAX_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDeprecatedFirstFrameMaxSize()); hash = (37 * hash) + HAS_PARAMETER_VALUES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHasParameterValues()); hash = (37 * hash) + FIRST_FRAME_MAX_SIZE_FIELD_NUMBER; hash = (53 * hash) + getFirstFrameMaxSize(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@Override ExecuteRequest deserialize(Message genericMsg) { final Requests.ExecuteRequest msg = ProtobufService.castProtobufMessage(genericMsg, Requests.ExecuteRequest.class); Meta.StatementHandle statementHandle = null; if (msg.hasField(STATEMENT_HANDLE_DESCRIPTOR)) { statementHandle = Meta.StatementHandle.fromProto(msg.getStatementHandle()); } List<TypedValue> values = null; if (msg.getHasParameterValues()) { values = new ArrayList<>(msg.getParameterValuesCount()); for (Common.TypedValue valueProto : msg.getParameterValuesList()) { if (TypedValue.PROTO_IMPLICIT_NULL.equals(valueProto)) { values.add(null); } else { values.add(TypedValue.fromProto(valueProto)); } } } // Default int value int maxFrameSize = 0; if (msg.hasField(FIRST_FRAME_MAX_SIZE_DESCRIPTOR)) { maxFrameSize = msg.getFirstFrameMaxSize(); } else if (msg.hasField(DEPRECATED_FIRST_FRAME_MAX_SIZE_DESCRIPTOR)) { // Truncate the long as an int maxFrameSize = (int) msg.getDeprecatedFirstFrameMaxSize(); } return new ExecuteRequest(statementHandle, values, maxFrameSize); }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (statementHandle_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStatementHandle()); } for (int i = 0; i < parameterValues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, parameterValues_.get(i)); } if (maxRowCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, maxRowCount_); } if (hasParameterValues_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, hasParameterValues_); } memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStatementHandle()) { hash = (37 * hash) + STATEMENTHANDLE_FIELD_NUMBER; hash = (53 * hash) + getStatementHandle().hashCode(); } if (getParameterValuesCount() > 0) { hash = (37 * hash) + PARAMETER_VALUES_FIELD_NUMBER; hash = (53 * hash) + getParameterValuesList().hashCode(); } hash = (37 * hash) + DEPRECATED_FIRST_FRAME_MAX_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDeprecatedFirstFrameMaxSize()); hash = (37 * hash) + HAS_PARAMETER_VALUES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHasParameterValues()); hash = (37 * hash) + FIRST_FRAME_MAX_SIZE_FIELD_NUMBER; hash = (53 * hash) + getFirstFrameMaxSize(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (statementHandle_ != null) { output.writeMessage(1, getStatementHandle()); } for (int i = 0; i < parameterValues_.size(); i++) { output.writeMessage(2, parameterValues_.get(i)); } if (maxRowCount_ != 0L) { output.writeUInt64(3, maxRowCount_); } if (hasParameterValues_ != false) { output.writeBool(4, hasParameterValues_); } }
@Override ExecuteRequest deserialize(Message genericMsg) { final Requests.ExecuteRequest msg = ProtobufService.castProtobufMessage(genericMsg, Requests.ExecuteRequest.class); final Descriptor desc = msg.getDescriptorForType(); Meta.StatementHandle statemetnHandle = null; if (ProtobufService.hasField(msg, desc, Requests.ExecuteRequest.STATEMENTHANDLE_FIELD_NUMBER)) { statemetnHandle = Meta.StatementHandle.fromProto(msg.getStatementHandle()); } List<TypedValue> values = null; if (msg.getHasParameterValues()) { values = new ArrayList<>(msg.getParameterValuesCount()); for (Common.TypedValue valueProto : msg.getParameterValuesList()) { values.add(TypedValue.fromProto(valueProto)); } } return new ExecuteRequest(statemetnHandle, values, msg.getMaxRowCount()); }
/** * <code>optional .StatementHandle statementHandle = 1;</code> */ public org.apache.calcite.avatica.proto.Common.StatementHandleOrBuilder getStatementHandleOrBuilder() { return getStatementHandle(); }
/** * <code>.StatementHandle statementHandle = 1;</code> */ public org.apache.calcite.avatica.proto.Common.StatementHandleOrBuilder getStatementHandleOrBuilder() { return getStatementHandle(); }
/** * <code>.StatementHandle statementHandle = 1;</code> */ public org.apache.calcite.avatica.proto.Common.StatementHandleOrBuilder getStatementHandleOrBuilder() { return getStatementHandle(); }