@java.lang.Override public org.apache.calcite.avatica.proto.Requests.TablesRequest buildPartial() { org.apache.calcite.avatica.proto.Requests.TablesRequest result = new org.apache.calcite.avatica.proto.Requests.TablesRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.catalog_ = catalog_; result.schemaPattern_ = schemaPattern_; result.tableNamePattern_ = tableNamePattern_; if (((bitField0_ & 0x00000008) == 0x00000008)) { typeList_ = typeList_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.typeList_ = typeList_; result.hasTypeList_ = hasTypeList_; result.connectionId_ = connectionId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
if (!getCatalogBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, catalog_); if (!getSchemaPatternBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaPattern_); if (!getTableNamePatternBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tableNamePattern_); dataSize += computeStringSizeNoTag(typeList_.getRaw(i)); size += 1 * getTypeListList().size(); .computeBoolSize(6, hasTypeList_); if (!getConnectionIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, connectionId_);
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.TablesRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.TablesRequest.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.getHasTypeList() != false) { setHasTypeList(other.getHasTypeList()); if (!other.getConnectionId().isEmpty()) { connectionId_ = other.connectionId_; onChanged();
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.TablesRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.TablesRequest.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.getHasTypeList() != false) { setHasTypeList(other.getHasTypeList()); if (!other.getConnectionId().isEmpty()) { connectionId_ = other.connectionId_; onChanged();
if (!getCatalogBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, catalog_); if (!getSchemaPatternBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaPattern_); if (!getTableNamePatternBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tableNamePattern_); dataSize += computeStringSizeNoTag(typeList_.getRaw(i)); size += 1 * getTypeListList().size(); .computeBoolSize(6, hasTypeList_); if (!getConnectionIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, connectionId_);
if (!getCatalogBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, catalog_); if (!getSchemaPatternBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, schemaPattern_); if (!getTableNamePatternBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, tableNamePattern_); dataSize += computeStringSizeNoTag(typeList_.getRaw(i)); size += 1 * getTypeListList().size(); .computeBoolSize(6, hasTypeList_); if (!getConnectionIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(7, connectionId_);
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.TablesRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.TablesRequest.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.getHasTypeList() != false) { setHasTypeList(other.getHasTypeList()); if (!other.getConnectionId().isEmpty()) { connectionId_ = other.connectionId_; onChanged();
@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(); if (getTypeListCount() > 0) { hash = (37 * hash) + TYPE_LIST_FIELD_NUMBER; hash = (53 * hash) + getTypeListList().hashCode(); } hash = (37 * hash) + HAS_TYPE_LIST_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHasTypeList()); 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.TablesRequest)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Requests.TablesRequest other = (org.apache.calcite.avatica.proto.Requests.TablesRequest) obj; boolean result = true; result = result && getCatalog() .equals(other.getCatalog()); result = result && getSchemaPattern() .equals(other.getSchemaPattern()); result = result && getTableNamePattern() .equals(other.getTableNamePattern()); result = result && getTypeListList() .equals(other.getTypeListList()); result = result && (getHasTypeList() == other.getHasTypeList()); result = result && getConnectionId() .equals(other.getConnectionId()); result = result && unknownFields.equals(other.unknownFields); return result; }
@Override Request deserialize(Message genericMsg) { final Requests.TablesRequest msg = ProtobufService.castProtobufMessage(genericMsg, Requests.TablesRequest.class); final Descriptor desc = msg.getDescriptorForType(); String connectionId = null; if (ProtobufService.hasField(msg, desc, Requests.TablesRequest.CONNECTION_ID_FIELD_NUMBER)) { connectionId = msg.getConnectionId(); } String catalog = null; if (ProtobufService.hasField(msg, desc, Requests.TablesRequest.CATALOG_FIELD_NUMBER)) { catalog = msg.getCatalog(); } String schemaPattern = null; if (ProtobufService.hasField(msg, desc, Requests.TablesRequest.SCHEMA_PATTERN_FIELD_NUMBER)) { schemaPattern = msg.getSchemaPattern(); } String tableNamePattern = null; if (ProtobufService.hasField(msg, desc, Requests.TablesRequest.TABLE_NAME_PATTERN_FIELD_NUMBER)) { tableNamePattern = msg.getTableNamePattern(); } // Cannot determine if a value was set for a repeated field. Must use an extra boolean // parameter to distinguish an empty and null typeList. List<String> typeList = null; if (msg.getHasTypeList()) { typeList = msg.getTypeListList(); } return new TablesRequest(connectionId, catalog, schemaPattern, tableNamePattern, typeList); }
@Override Request deserialize(Message genericMsg) { final Requests.TablesRequest msg = ProtobufService.castProtobufMessage(genericMsg, Requests.TablesRequest.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(); } // Cannot determine if a value was set for a repeated field. Must use an extra boolean // parameter to distinguish an empty and null typeList. List<String> typeList = null; if (msg.getHasTypeList()) { typeList = msg.getTypeListList(); } return new TablesRequest(connectionId, catalog, schemaPattern, tableNamePattern, typeList); }
@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(); if (getTypeListCount() > 0) { hash = (37 * hash) + TYPE_LIST_FIELD_NUMBER; hash = (53 * hash) + getTypeListList().hashCode(); } hash = (37 * hash) + HAS_TYPE_LIST_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHasTypeList()); 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 void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getCatalogBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, catalog_); } if (!getSchemaPatternBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaPattern_); } if (!getTableNamePatternBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tableNamePattern_); } for (int i = 0; i < typeList_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, typeList_.getRaw(i)); } if (hasTypeList_ != false) { output.writeBool(6, hasTypeList_); } if (!getConnectionIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, connectionId_); } unknownFields.writeTo(output); }
@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.TablesRequest)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Requests.TablesRequest other = (org.apache.calcite.avatica.proto.Requests.TablesRequest) obj; boolean result = true; result = result && getCatalog() .equals(other.getCatalog()); result = result && getSchemaPattern() .equals(other.getSchemaPattern()); result = result && getTableNamePattern() .equals(other.getTableNamePattern()); result = result && getTypeListList() .equals(other.getTypeListList()); result = result && (getHasTypeList() == other.getHasTypeList()); result = result && getConnectionId() .equals(other.getConnectionId()); result = result && unknownFields.equals(other.unknownFields); return result; }
@Override Request deserialize(Message genericMsg) { final Requests.TablesRequest msg = ProtobufService.castProtobufMessage(genericMsg, Requests.TablesRequest.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(); } // Cannot determine if a value was set for a repeated field. Must use an extra boolean // parameter to distinguish an empty and null typeList. List<String> typeList = null; if (msg.getHasTypeList()) { typeList = msg.getTypeListList(); } return new TablesRequest(connectionId, catalog, schemaPattern, tableNamePattern, typeList); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getCatalogBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, catalog_); } if (!getSchemaPatternBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaPattern_); } if (!getTableNamePatternBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tableNamePattern_); } for (int i = 0; i < typeList_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, typeList_.getRaw(i)); } if (hasTypeList_ != false) { output.writeBool(6, hasTypeList_); } if (!getConnectionIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, connectionId_); } unknownFields.writeTo(output); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getCatalogBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 1, catalog_); } if (!getSchemaPatternBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 2, schemaPattern_); } if (!getTableNamePatternBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 3, tableNamePattern_); } for (int i = 0; i < typeList_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 4, typeList_.getRaw(i)); } if (hasTypeList_ != false) { output.writeBool(6, hasTypeList_); } if (!getConnectionIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 7, connectionId_); } }
@java.lang.Override public org.apache.calcite.avatica.proto.Requests.TablesRequest buildPartial() { org.apache.calcite.avatica.proto.Requests.TablesRequest result = new org.apache.calcite.avatica.proto.Requests.TablesRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.catalog_ = catalog_; result.schemaPattern_ = schemaPattern_; result.tableNamePattern_ = tableNamePattern_; if (((bitField0_ & 0x00000008) == 0x00000008)) { typeList_ = typeList_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.typeList_ = typeList_; result.hasTypeList_ = hasTypeList_; result.connectionId_ = connectionId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public org.apache.calcite.avatica.proto.Requests.TablesRequest buildPartial() { org.apache.calcite.avatica.proto.Requests.TablesRequest result = new org.apache.calcite.avatica.proto.Requests.TablesRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.catalog_ = catalog_; result.schemaPattern_ = schemaPattern_; result.tableNamePattern_ = tableNamePattern_; if (((bitField0_ & 0x00000008) == 0x00000008)) { typeList_ = typeList_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.typeList_ = typeList_; result.hasTypeList_ = hasTypeList_; result.connectionId_ = connectionId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public org.apache.calcite.avatica.proto.Requests.TablesRequest getDefaultInstanceForType() { return org.apache.calcite.avatica.proto.Requests.TablesRequest.getDefaultInstance(); }