@java.lang.Override public org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest buildPartial() { org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest result = new org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest(this); result.connectionId_ = connectionId_; if (connPropsBuilder_ == null) { result.connProps_ = connProps_; } else { result.connProps_ = connPropsBuilder_.build(); } onBuilt(); 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.Requests.ConnectionSyncRequest)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest other = (org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest) obj; boolean result = true; result = result && getConnectionId() .equals(other.getConnectionId()); result = result && (hasConnProps() == other.hasConnProps()); if (hasConnProps()) { result = result && getConnProps() .equals(other.getConnProps()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getConnectionIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectionId_); } if (connProps_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getConnProps()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
e.getMessage()).setUnfinishedMessage(this)); } finally { makeExtensionsImmutable();
@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.ConnectionSyncRequest)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest other = (org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest) obj; boolean result = true; result = result && getConnectionId() .equals(other.getConnectionId()); result = result && (hasConnProps() == other.hasConnProps()); if (hasConnProps()) { result = result && getConnProps() .equals(other.getConnProps()); } 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) + CONNECTION_ID_FIELD_NUMBER; hash = (53 * hash) + getConnectionId().hashCode(); if (hasConnProps()) { hash = (37 * hash) + CONN_PROPS_FIELD_NUMBER; hash = (53 * hash) + getConnProps().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getConnectionIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectionId_); } if (connProps_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getConnProps()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER; hash = (53 * hash) + getConnectionId().hashCode(); if (hasConnProps()) { hash = (37 * hash) + CONN_PROPS_FIELD_NUMBER; hash = (53 * hash) + getConnProps().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@Override ConnectionSyncRequest deserialize(Message genericMsg) { final Requests.ConnectionSyncRequest msg = ProtobufService.castProtobufMessage(genericMsg, Requests.ConnectionSyncRequest.class); final Descriptor desc = msg.getDescriptorForType(); String connectionId = null; if (ProtobufService.hasField(msg, desc, Requests.ConnectionSyncRequest.CONNECTION_ID_FIELD_NUMBER)) { connectionId = msg.getConnectionId(); } Meta.ConnectionProperties connProps = null; if (ProtobufService.hasField(msg, desc, Requests.ConnectionSyncRequest.CONN_PROPS_FIELD_NUMBER)) { connProps = ConnectionPropertiesImpl.fromProto(msg.getConnProps()); } return new ConnectionSyncRequest(connectionId, connProps); }
public org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest getDefaultInstanceForType() { return org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest.getDefaultInstance(); }
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest prototype) {
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getConnectionIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, connectionId_); } if (connProps_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getConnProps()); } memoizedSize = size; return size; }
public static Builder newBuilder(org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest prototype) {
@java.lang.Override public org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest getDefaultInstanceForType() { return org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest.getDefaultInstance(); }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
public static Builder newBuilder(org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {