@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 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 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 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; }
@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 Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest.getDefaultInstance()) return this; if (!other.getConnectionId().isEmpty()) { connectionId_ = other.connectionId_; onChanged(); } if (other.hasConnProps()) { mergeConnProps(other.getConnProps()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@Override ConnectionSyncRequest deserialize(Message genericMsg) { final Requests.ConnectionSyncRequest msg = ProtobufService.castProtobufMessage(genericMsg, Requests.ConnectionSyncRequest.class); String connectionId = null; if (msg.hasField(CONNECTION_ID_DESCRIPTOR)) { connectionId = msg.getConnectionId(); } Meta.ConnectionProperties connProps = null; if (msg.hasField(CONN_PROPS_DESCRIPTOR)) { connProps = ConnectionPropertiesImpl.fromProto(msg.getConnProps()); } return new ConnectionSyncRequest(connectionId, connProps); }
/** * <code>string connection_id = 1;</code> */ public Builder clearConnectionId() { connectionId_ = getDefaultInstance().getConnectionId(); onChanged(); return this; } /**
@Override ConnectionSyncRequest deserialize(Message genericMsg) { final Requests.ConnectionSyncRequest msg = ProtobufService.castProtobufMessage(genericMsg, Requests.ConnectionSyncRequest.class); String connectionId = null; if (msg.hasField(CONNECTION_ID_DESCRIPTOR)) { connectionId = msg.getConnectionId(); } Meta.ConnectionProperties connProps = null; if (msg.hasField(CONN_PROPS_DESCRIPTOR)) { connProps = ConnectionPropertiesImpl.fromProto(msg.getConnProps()); } return new ConnectionSyncRequest(connectionId, connProps); }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest.getDefaultInstance()) return this; if (!other.getConnectionId().isEmpty()) { connectionId_ = other.connectionId_; onChanged(); } if (other.hasConnProps()) { mergeConnProps(other.getConnProps()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest.getDefaultInstance()) return this; if (!other.getConnectionId().isEmpty()) { connectionId_ = other.connectionId_; onChanged(); } if (other.hasConnProps()) { mergeConnProps(other.getConnProps()); } onChanged(); return this; }
/** * <code>string connection_id = 1;</code> */ public Builder clearConnectionId() { connectionId_ = getDefaultInstance().getConnectionId(); onChanged(); return this; } /**
/** * <code>optional string connection_id = 1;</code> */ public Builder clearConnectionId() { connectionId_ = getDefaultInstance().getConnectionId(); onChanged(); return this; } /**