@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) + TABLE_NAME_PATTERN_FIELD_NUMBER; hash = (53 * hash) + getTableNamePattern().hashCode(); hash = (37 * hash) + COLUMN_NAME_PATTERN_FIELD_NUMBER; hash = (53 * hash) + getColumnNamePattern().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) + TABLE_NAME_PATTERN_FIELD_NUMBER; hash = (53 * hash) + getTableNamePattern().hashCode(); hash = (37 * hash) + COLUMN_NAME_PATTERN_FIELD_NUMBER; hash = (53 * hash) + getColumnNamePattern().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.ColumnsRequest)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Requests.ColumnsRequest other = (org.apache.calcite.avatica.proto.Requests.ColumnsRequest) obj; boolean result = true; result = result && getCatalog() .equals(other.getCatalog()); result = result && getSchemaPattern() .equals(other.getSchemaPattern()); result = result && getTableNamePattern() .equals(other.getTableNamePattern()); result = result && getColumnNamePattern() .equals(other.getColumnNamePattern()); result = result && getConnectionId() .equals(other.getConnectionId()); result = result && unknownFields.equals(other.unknownFields); return result; }
@Override ColumnsRequest deserialize(Message genericMsg) { final Requests.ColumnsRequest msg = ProtobufService.castProtobufMessage(genericMsg, Requests.ColumnsRequest.class); final Descriptor desc = msg.getDescriptorForType(); String connectionId = null; if (ProtobufService.hasField(msg, desc, Requests.ColumnsRequest.CONNECTION_ID_FIELD_NUMBER)) { connectionId = msg.getConnectionId(); } String catalog = null; if (ProtobufService.hasField(msg, desc, Requests.ColumnsRequest.CATALOG_FIELD_NUMBER)) { catalog = msg.getCatalog(); } String schemaPattern = null; if (ProtobufService.hasField(msg, desc, Requests.ColumnsRequest.SCHEMA_PATTERN_FIELD_NUMBER)) { schemaPattern = msg.getSchemaPattern(); } String tableNamePattern = null; if (ProtobufService.hasField(msg, desc, Requests.ColumnsRequest.TABLE_NAME_PATTERN_FIELD_NUMBER)) { tableNamePattern = msg.getTableNamePattern(); } String columnNamePattern = null; if (ProtobufService.hasField(msg, desc, Requests.ColumnsRequest.COLUMN_NAME_PATTERN_FIELD_NUMBER)) { columnNamePattern = msg.getColumnNamePattern(); } return new ColumnsRequest(connectionId, catalog, schemaPattern, tableNamePattern, columnNamePattern); }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.ColumnsRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.ColumnsRequest.getDefaultInstance()) return this; if (!other.getCatalog().isEmpty()) { catalog_ = other.catalog_; onChanged(); } if (!other.getSchemaPattern().isEmpty()) { schemaPattern_ = other.schemaPattern_; onChanged(); } if (!other.getTableNamePattern().isEmpty()) { tableNamePattern_ = other.tableNamePattern_; onChanged(); } if (!other.getColumnNamePattern().isEmpty()) { columnNamePattern_ = other.columnNamePattern_; onChanged(); } if (!other.getConnectionId().isEmpty()) { connectionId_ = other.connectionId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@Override ColumnsRequest deserialize(Message genericMsg) { final Requests.ColumnsRequest msg = ProtobufService.castProtobufMessage(genericMsg, Requests.ColumnsRequest.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(); } String tableNamePattern = null; if (msg.hasField(TABLE_NAME_PATTERN_DESCRIPTOR)) { tableNamePattern = msg.getTableNamePattern(); } String columnNamePattern = null; if (msg.hasField(COLUMN_NAME_PATTERN_DESCRIPTOR)) { columnNamePattern = msg.getColumnNamePattern(); } return new ColumnsRequest(connectionId, catalog, schemaPattern, tableNamePattern, columnNamePattern); }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.ColumnsRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.ColumnsRequest.getDefaultInstance()) return this; if (!other.getCatalog().isEmpty()) { catalog_ = other.catalog_; onChanged(); } if (!other.getSchemaPattern().isEmpty()) { schemaPattern_ = other.schemaPattern_; onChanged(); } if (!other.getTableNamePattern().isEmpty()) { tableNamePattern_ = other.tableNamePattern_; onChanged(); } if (!other.getColumnNamePattern().isEmpty()) { columnNamePattern_ = other.columnNamePattern_; onChanged(); } if (!other.getConnectionId().isEmpty()) { connectionId_ = other.connectionId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@Override ColumnsRequest deserialize(Message genericMsg) { final Requests.ColumnsRequest msg = ProtobufService.castProtobufMessage(genericMsg, Requests.ColumnsRequest.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(); } String tableNamePattern = null; if (msg.hasField(TABLE_NAME_PATTERN_DESCRIPTOR)) { tableNamePattern = msg.getTableNamePattern(); } String columnNamePattern = null; if (msg.hasField(COLUMN_NAME_PATTERN_DESCRIPTOR)) { columnNamePattern = msg.getColumnNamePattern(); } return new ColumnsRequest(connectionId, catalog, schemaPattern, tableNamePattern, columnNamePattern); }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.ColumnsRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.ColumnsRequest.getDefaultInstance()) return this; if (!other.getCatalog().isEmpty()) { catalog_ = other.catalog_; onChanged(); } if (!other.getSchemaPattern().isEmpty()) { schemaPattern_ = other.schemaPattern_; onChanged(); } if (!other.getTableNamePattern().isEmpty()) { tableNamePattern_ = other.tableNamePattern_; onChanged(); } if (!other.getColumnNamePattern().isEmpty()) { columnNamePattern_ = other.columnNamePattern_; onChanged(); } if (!other.getConnectionId().isEmpty()) { connectionId_ = other.connectionId_; onChanged(); } 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.ColumnsRequest)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Requests.ColumnsRequest other = (org.apache.calcite.avatica.proto.Requests.ColumnsRequest) obj; boolean result = true; result = result && getCatalog() .equals(other.getCatalog()); result = result && getSchemaPattern() .equals(other.getSchemaPattern()); result = result && getTableNamePattern() .equals(other.getTableNamePattern()); result = result && getColumnNamePattern() .equals(other.getColumnNamePattern()); result = result && getConnectionId() .equals(other.getConnectionId()); result = result && unknownFields.equals(other.unknownFields); return result; }
/** * <code>string column_name_pattern = 4;</code> */ public Builder clearColumnNamePattern() { columnNamePattern_ = getDefaultInstance().getColumnNamePattern(); onChanged(); return this; } /**
/** * <code>string column_name_pattern = 4;</code> */ public Builder clearColumnNamePattern() { columnNamePattern_ = getDefaultInstance().getColumnNamePattern(); onChanged(); return this; } /**
/** * <code>optional string column_name_pattern = 4;</code> */ public Builder clearColumnNamePattern() { columnNamePattern_ = getDefaultInstance().getColumnNamePattern(); onChanged(); return this; } /**