@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CATALOG_FIELD_NUMBER; hash = (53 * hash) + getCatalog().hashCode(); hash = (37 * hash) + SCHEMA_PATTERN_FIELD_NUMBER; hash = (53 * hash) + getSchemaPattern().hashCode(); hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER; hash = (53 * hash) + getConnectionId().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) + CATALOG_FIELD_NUMBER; hash = (53 * hash) + getCatalog().hashCode(); hash = (37 * hash) + SCHEMA_PATTERN_FIELD_NUMBER; hash = (53 * hash) + getSchemaPattern().hashCode(); hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER; hash = (53 * hash) + getConnectionId().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.SchemasRequest)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Requests.SchemasRequest other = (org.apache.calcite.avatica.proto.Requests.SchemasRequest) obj; boolean result = true; result = result && getCatalog() .equals(other.getCatalog()); result = result && getSchemaPattern() .equals(other.getSchemaPattern()); result = result && getConnectionId() .equals(other.getConnectionId()); result = result && unknownFields.equals(other.unknownFields); return result; }
@Override SchemasRequest deserialize(Message genericMsg) { final Requests.SchemasRequest msg = ProtobufService.castProtobufMessage(genericMsg, Requests.SchemasRequest.class); final Descriptor desc = msg.getDescriptorForType(); String connectionId = null; if (ProtobufService.hasField(msg, desc, Requests.SchemasRequest.CONNECTION_ID_FIELD_NUMBER)) { connectionId = msg.getConnectionId(); } String catalog = null; if (ProtobufService.hasField(msg, desc, Requests.SchemasRequest.CATALOG_FIELD_NUMBER)) { catalog = msg.getCatalog(); } String schemaPattern = null; if (ProtobufService.hasField(msg, desc, Requests.SchemasRequest.SCHEMA_PATTERN_FIELD_NUMBER)) { schemaPattern = msg.getSchemaPattern(); } return new SchemasRequest(connectionId, catalog, schemaPattern); }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.SchemasRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.SchemasRequest.getDefaultInstance()) return this; if (!other.getCatalog().isEmpty()) { catalog_ = other.catalog_; onChanged(); } if (!other.getSchemaPattern().isEmpty()) { schemaPattern_ = other.schemaPattern_; onChanged(); } if (!other.getConnectionId().isEmpty()) { connectionId_ = other.connectionId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@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.SchemasRequest)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Requests.SchemasRequest other = (org.apache.calcite.avatica.proto.Requests.SchemasRequest) obj; boolean result = true; result = result && getCatalog() .equals(other.getCatalog()); result = result && getSchemaPattern() .equals(other.getSchemaPattern()); result = result && getConnectionId() .equals(other.getConnectionId()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.SchemasRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.SchemasRequest.getDefaultInstance()) return this; if (!other.getCatalog().isEmpty()) { catalog_ = other.catalog_; onChanged(); } if (!other.getSchemaPattern().isEmpty()) { schemaPattern_ = other.schemaPattern_; onChanged(); } if (!other.getConnectionId().isEmpty()) { connectionId_ = other.connectionId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@Override SchemasRequest deserialize(Message genericMsg) { final Requests.SchemasRequest msg = ProtobufService.castProtobufMessage(genericMsg, Requests.SchemasRequest.class); String connectionId = null; if (msg.hasField(CONNECTION_ID_DESCRIPTOR)) { connectionId = msg.getConnectionId(); } String catalog = null; if (msg.hasField(CATALOG_DESCRIPTOR)) { catalog = msg.getCatalog(); } String schemaPattern = null; if (msg.hasField(SCHEMA_PATTERN_DESCRIPTOR)) { schemaPattern = msg.getSchemaPattern(); } return new SchemasRequest(connectionId, catalog, schemaPattern); }
@Override SchemasRequest deserialize(Message genericMsg) { final Requests.SchemasRequest msg = ProtobufService.castProtobufMessage(genericMsg, Requests.SchemasRequest.class); String connectionId = null; if (msg.hasField(CONNECTION_ID_DESCRIPTOR)) { connectionId = msg.getConnectionId(); } String catalog = null; if (msg.hasField(CATALOG_DESCRIPTOR)) { catalog = msg.getCatalog(); } String schemaPattern = null; if (msg.hasField(SCHEMA_PATTERN_DESCRIPTOR)) { schemaPattern = msg.getSchemaPattern(); } return new SchemasRequest(connectionId, catalog, schemaPattern); }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.SchemasRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.SchemasRequest.getDefaultInstance()) return this; if (!other.getCatalog().isEmpty()) { catalog_ = other.catalog_; onChanged(); } if (!other.getSchemaPattern().isEmpty()) { schemaPattern_ = other.schemaPattern_; onChanged(); } if (!other.getConnectionId().isEmpty()) { connectionId_ = other.connectionId_; onChanged(); } onChanged(); return this; }
/** * <code>optional string connection_id = 3;</code> */ public Builder clearConnectionId() { connectionId_ = getDefaultInstance().getConnectionId(); onChanged(); return this; } /**
/** * <code>string connection_id = 3;</code> */ public Builder clearConnectionId() { connectionId_ = getDefaultInstance().getConnectionId(); onChanged(); return this; } /**
/** * <code>string connection_id = 3;</code> */ public Builder clearConnectionId() { connectionId_ = getDefaultInstance().getConnectionId(); onChanged(); return this; } /**