@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; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getCatalogBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, catalog_); } if (!getSchemaPatternBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaPattern_); } if (!getConnectionIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, connectionId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
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; }
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();
@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); }
@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; }
@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 getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getCatalogBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, catalog_); } if (!getSchemaPatternBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaPattern_); } if (!getConnectionIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, connectionId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@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; }
@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; }
@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 int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getCatalogBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, catalog_); } if (!getSchemaPatternBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, schemaPattern_); } if (!getConnectionIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, connectionId_); } memoizedSize = size; return size; }
public org.apache.calcite.avatica.proto.Requests.SchemasRequest getDefaultInstanceForType() { return org.apache.calcite.avatica.proto.Requests.SchemasRequest.getDefaultInstance(); }
@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 (!getConnectionIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, connectionId_); } unknownFields.writeTo(output); }
@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 (!getConnectionIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, connectionId_); } unknownFields.writeTo(output); }
@java.lang.Override public org.apache.calcite.avatica.proto.Requests.SchemasRequest getDefaultInstanceForType() { return org.apache.calcite.avatica.proto.Requests.SchemasRequest.getDefaultInstance(); }