http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/fc7b26c8/avatica/core/src/main/java/org/apache/calcite/avatica/proto/Requests.java ---------------------------------------------------------------------- diff --git a/avatica/core/src/main/java/org/apache/calcite/avatica/proto/Requests.java b/avatica/core/src/main/java/org/apache/calcite/avatica/proto/Requests.java deleted file mode 100644 index 8e10849..0000000 --- a/avatica/core/src/main/java/org/apache/calcite/avatica/proto/Requests.java +++ /dev/null @@ -1,16608 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: requests.proto - -package org.apache.calcite.avatica.proto; - -public final class Requests { - private Requests() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CatalogsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:CatalogsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>optional string connection_id = 1;</code> - */ - java.lang.String getConnectionId(); - /** - * <code>optional string connection_id = 1;</code> - */ - com.google.protobuf.ByteString - getConnectionIdBytes(); - } - /** - * <pre> - * Request for Meta#getCatalogs() - * </pre> - * - * Protobuf type {@code CatalogsRequest} - */ - public static final class CatalogsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CatalogsRequest) - CatalogsRequestOrBuilder { - // Use CatalogsRequest.newBuilder() to construct. - private CatalogsRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private CatalogsRequest() { - connectionId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private CatalogsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - connectionId_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.calcite.avatica.proto.Requests.internal_static_CatalogsRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.calcite.avatica.proto.Requests.internal_static_CatalogsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.calcite.avatica.proto.Requests.CatalogsRequest.class, org.apache.calcite.avatica.proto.Requests.CatalogsRequest.Builder.class); - } - - public static final int CONNECTION_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object connectionId_; - /** - * <code>optional string connection_id = 1;</code> - */ - public java.lang.String getConnectionId() { - java.lang.Object ref = connectionId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - connectionId_ = s; - return s; - } - } - /** - * <code>optional string connection_id = 1;</code> - */ - public com.google.protobuf.ByteString - getConnectionIdBytes() { - java.lang.Object ref = connectionId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - connectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getConnectionIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectionId_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getConnectionIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectionId_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @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.CatalogsRequest)) { - return super.equals(obj); - } - org.apache.calcite.avatica.proto.Requests.CatalogsRequest other = (org.apache.calcite.avatica.proto.Requests.CatalogsRequest) obj; - - boolean result = true; - result = result && getConnectionId() - .equals(other.getConnectionId()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); - hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getConnectionId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.calcite.avatica.proto.Requests.CatalogsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.calcite.avatica.proto.Requests.CatalogsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.CatalogsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.calcite.avatica.proto.Requests.CatalogsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.CatalogsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.apache.calcite.avatica.proto.Requests.CatalogsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.CatalogsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.apache.calcite.avatica.proto.Requests.CatalogsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.CatalogsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.apache.calcite.avatica.proto.Requests.CatalogsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.apache.calcite.avatica.proto.Requests.CatalogsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * <pre> - * Request for Meta#getCatalogs() - * </pre> - * - * Protobuf type {@code CatalogsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:CatalogsRequest) - org.apache.calcite.avatica.proto.Requests.CatalogsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.calcite.avatica.proto.Requests.internal_static_CatalogsRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.calcite.avatica.proto.Requests.internal_static_CatalogsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.calcite.avatica.proto.Requests.CatalogsRequest.class, org.apache.calcite.avatica.proto.Requests.CatalogsRequest.Builder.class); - } - - // Construct using org.apache.calcite.avatica.proto.Requests.CatalogsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - connectionId_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.calcite.avatica.proto.Requests.internal_static_CatalogsRequest_descriptor; - } - - public org.apache.calcite.avatica.proto.Requests.CatalogsRequest getDefaultInstanceForType() { - return org.apache.calcite.avatica.proto.Requests.CatalogsRequest.getDefaultInstance(); - } - - public org.apache.calcite.avatica.proto.Requests.CatalogsRequest build() { - org.apache.calcite.avatica.proto.Requests.CatalogsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.calcite.avatica.proto.Requests.CatalogsRequest buildPartial() { - org.apache.calcite.avatica.proto.Requests.CatalogsRequest result = new org.apache.calcite.avatica.proto.Requests.CatalogsRequest(this); - result.connectionId_ = connectionId_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.calcite.avatica.proto.Requests.CatalogsRequest) { - return mergeFrom((org.apache.calcite.avatica.proto.Requests.CatalogsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.CatalogsRequest other) { - if (other == org.apache.calcite.avatica.proto.Requests.CatalogsRequest.getDefaultInstance()) return this; - if (!other.getConnectionId().isEmpty()) { - connectionId_ = other.connectionId_; - onChanged(); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.calcite.avatica.proto.Requests.CatalogsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.calcite.avatica.proto.Requests.CatalogsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object connectionId_ = ""; - /** - * <code>optional string connection_id = 1;</code> - */ - public java.lang.String getConnectionId() { - java.lang.Object ref = connectionId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - connectionId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>optional string connection_id = 1;</code> - */ - public com.google.protobuf.ByteString - getConnectionIdBytes() { - java.lang.Object ref = connectionId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - connectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>optional string connection_id = 1;</code> - */ - public Builder setConnectionId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - connectionId_ = value; - onChanged(); - return this; - } - /** - * <code>optional string connection_id = 1;</code> - */ - public Builder clearConnectionId() { - - connectionId_ = getDefaultInstance().getConnectionId(); - onChanged(); - return this; - } - /** - * <code>optional string connection_id = 1;</code> - */ - public Builder setConnectionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - connectionId_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:CatalogsRequest) - } - - // @@protoc_insertion_point(class_scope:CatalogsRequest) - private static final org.apache.calcite.avatica.proto.Requests.CatalogsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Requests.CatalogsRequest(); - } - - public static org.apache.calcite.avatica.proto.Requests.CatalogsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<CatalogsRequest> - PARSER = new com.google.protobuf.AbstractParser<CatalogsRequest>() { - public CatalogsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CatalogsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<CatalogsRequest> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<CatalogsRequest> getParserForType() { - return PARSER; - } - - public org.apache.calcite.avatica.proto.Requests.CatalogsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DatabasePropertyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:DatabasePropertyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>optional string connection_id = 1;</code> - */ - java.lang.String getConnectionId(); - /** - * <code>optional string connection_id = 1;</code> - */ - com.google.protobuf.ByteString - getConnectionIdBytes(); - } - /** - * <pre> - * Request for Meta#getDatabaseProperties() - * </pre> - * - * Protobuf type {@code DatabasePropertyRequest} - */ - public static final class DatabasePropertyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:DatabasePropertyRequest) - DatabasePropertyRequestOrBuilder { - // Use DatabasePropertyRequest.newBuilder() to construct. - private DatabasePropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private DatabasePropertyRequest() { - connectionId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private DatabasePropertyRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - connectionId_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.calcite.avatica.proto.Requests.internal_static_DatabasePropertyRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.calcite.avatica.proto.Requests.internal_static_DatabasePropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest.class, org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest.Builder.class); - } - - public static final int CONNECTION_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object connectionId_; - /** - * <code>optional string connection_id = 1;</code> - */ - public java.lang.String getConnectionId() { - java.lang.Object ref = connectionId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - connectionId_ = s; - return s; - } - } - /** - * <code>optional string connection_id = 1;</code> - */ - public com.google.protobuf.ByteString - getConnectionIdBytes() { - java.lang.Object ref = connectionId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - connectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getConnectionIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectionId_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getConnectionIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectionId_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @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.DatabasePropertyRequest)) { - return super.equals(obj); - } - org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest other = (org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest) obj; - - boolean result = true; - result = result && getConnectionId() - .equals(other.getConnectionId()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); - hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getConnectionId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * <pre> - * Request for Meta#getDatabaseProperties() - * </pre> - * - * Protobuf type {@code DatabasePropertyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:DatabasePropertyRequest) - org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.calcite.avatica.proto.Requests.internal_static_DatabasePropertyRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.calcite.avatica.proto.Requests.internal_static_DatabasePropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest.class, org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest.Builder.class); - } - - // Construct using org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - connectionId_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.calcite.avatica.proto.Requests.internal_static_DatabasePropertyRequest_descriptor; - } - - public org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest getDefaultInstanceForType() { - return org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest.getDefaultInstance(); - } - - public org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest build() { - org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest buildPartial() { - org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest result = new org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest(this); - result.connectionId_ = connectionId_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest) { - return mergeFrom((org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest other) { - if (other == org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest.getDefaultInstance()) return this; - if (!other.getConnectionId().isEmpty()) { - connectionId_ = other.connectionId_; - onChanged(); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object connectionId_ = ""; - /** - * <code>optional string connection_id = 1;</code> - */ - public java.lang.String getConnectionId() { - java.lang.Object ref = connectionId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - connectionId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>optional string connection_id = 1;</code> - */ - public com.google.protobuf.ByteString - getConnectionIdBytes() { - java.lang.Object ref = connectionId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - connectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>optional string connection_id = 1;</code> - */ - public Builder setConnectionId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - connectionId_ = value; - onChanged(); - return this; - } - /** - * <code>optional string connection_id = 1;</code> - */ - public Builder clearConnectionId() { - - connectionId_ = getDefaultInstance().getConnectionId(); - onChanged(); - return this; - } - /** - * <code>optional string connection_id = 1;</code> - */ - public Builder setConnectionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - connectionId_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:DatabasePropertyRequest) - } - - // @@protoc_insertion_point(class_scope:DatabasePropertyRequest) - private static final org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest(); - } - - public static org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<DatabasePropertyRequest> - PARSER = new com.google.protobuf.AbstractParser<DatabasePropertyRequest>() { - public DatabasePropertyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DatabasePropertyRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<DatabasePropertyRequest> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<DatabasePropertyRequest> getParserForType() { - return PARSER; - } - - public org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SchemasRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:SchemasRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>optional string catalog = 1;</code> - */ - java.lang.String getCatalog(); - /** - * <code>optional string catalog = 1;</code> - */ - com.google.protobuf.ByteString - getCatalogBytes(); - - /** - * <code>optional string schema_pattern = 2;</code> - */ - java.lang.String getSchemaPattern(); - /** - * <code>optional string schema_pattern = 2;</code> - */ - com.google.protobuf.ByteString - getSchemaPatternBytes(); - - /** - * <code>optional string connection_id = 3;</code> - */ - java.lang.String getConnectionId(); - /** - * <code>optional string connection_id = 3;</code> - */ - com.google.protobuf.ByteString - getConnectionIdBytes(); - } - /** - * <pre> - * Request for Meta#getSchemas(String, org.apache.calcite.avatica.Meta.Pat)} - * </pre> - * - * Protobuf type {@code SchemasRequest} - */ - public static final class SchemasRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SchemasRequest) - SchemasRequestOrBuilder { - // Use SchemasRequest.newBuilder() to construct. - private SchemasRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SchemasRequest() { - catalog_ = ""; - schemaPattern_ = ""; - connectionId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private SchemasRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - catalog_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - schemaPattern_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - connectionId_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.calcite.avatica.proto.Requests.internal_static_SchemasRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.calcite.avatica.proto.Requests.internal_static_SchemasRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.calcite.avatica.proto.Requests.SchemasRequest.class, org.apache.calcite.avatica.proto.Requests.SchemasRequest.Builder.class); - } - - public static final int CATALOG_FIELD_NUMBER = 1; - private volatile java.lang.Object catalog_; - /** - * <code>optional string catalog = 1;</code> - */ - public java.lang.String getCatalog() { - java.lang.Object ref = catalog_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - catalog_ = s; - return s; - } - } - /** - * <code>optional string catalog = 1;</code> - */ - public com.google.protobuf.ByteString - getCatalogBytes() { - java.lang.Object ref = catalog_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - catalog_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCHEMA_PATTERN_FIELD_NUMBER = 2; - private volatile java.lang.Object schemaPattern_; - /** - * <code>optional string schema_pattern = 2;</code> - */ - public java.lang.String getSchemaPattern() { - java.lang.Object ref = schemaPattern_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - schemaPattern_ = s; - return s; - } - } - /** - * <code>optional string schema_pattern = 2;</code> - */ - public com.google.protobuf.ByteString - getSchemaPatternBytes() { - java.lang.Object ref = schemaPattern_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - schemaPattern_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONNECTION_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object connectionId_; - /** - * <code>optional string connection_id = 3;</code> - */ - public java.lang.String getConnectionId() { - java.lang.Object ref = connectionId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - connectionId_ = s; - return s; - } - } - /** - * <code>optional string connection_id = 3;</code> - */ - public com.google.protobuf.ByteString - getConnectionIdBytes() { - java.lang.Object ref = connectionId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - connectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - 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_); - } - } - - 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_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @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()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptorForType().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; - } - - public static org.apache.calcite.avatica.proto.Requests.SchemasRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.calcite.avatica.proto.Requests.SchemasRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.SchemasRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.calcite.avatica.proto.Requests.SchemasRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.SchemasRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.apache.calcite.avatica.proto.Requests.SchemasRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.SchemasRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.apache.calcite.avatica.proto.Requests.SchemasRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.SchemasRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.apache.calcite.avatica.proto.Requests.SchemasRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.apache.calcite.avatica.proto.Requests.SchemasRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * <pre> - * Request for Meta#getSchemas(String, org.apache.calcite.avatica.Meta.Pat)} - * </pre> - * - * Protobuf type {@code SchemasRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:SchemasRequest) - org.apache.calcite.avatica.proto.Requests.SchemasRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.calcite.avatica.proto.Requests.internal_static_SchemasRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.calcite.avatica.proto.Requests.internal_static_SchemasRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.calcite.avatica.proto.Requests.SchemasRequest.class, org.apache.calcite.avatica.proto.Requests.SchemasRequest.Builder.class); - } - - // Construct using org.apache.calcite.avatica.proto.Requests.SchemasRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - catalog_ = ""; - - schemaPattern_ = ""; - - connectionId_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.calcite.avatica.proto.Requests.internal_static_SchemasRequest_descriptor; - } - - public org.apache.calcite.avatica.proto.Requests.SchemasRequest getDefaultInstanceForType() { - return org.apache.calcite.avatica.proto.Requests.SchemasRequest.getDefaultInstance(); - } - - public org.apache.calcite.avatica.proto.Requests.SchemasRequest build() { - org.apache.calcite.avatica.proto.Requests.SchemasRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.calcite.avatica.proto.Requests.SchemasRequest buildPartial() { - org.apache.calcite.avatica.proto.Requests.SchemasRequest result = new org.apache.calcite.avatica.proto.Requests.SchemasRequest(this); - result.catalog_ = catalog_; - result.schemaPattern_ = schemaPattern_; - result.connectionId_ = connectionId_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.calcite.avatica.proto.Requests.SchemasRequest) { - return mergeFrom((org.apache.calcite.avatica.proto.Requests.SchemasRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - 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; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.calcite.avatica.proto.Requests.SchemasRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.calcite.avatica.proto.Requests.SchemasRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object catalog_ = ""; - /** - * <code>optional string catalog = 1;</code> - */ - public java.lang.String getCatalog() { - java.lang.Object ref = catalog_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - catalog_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>optional string catalog = 1;</code> - */ - public com.google.protobuf.ByteString - getCatalogBytes() { - java.lang.Object ref = catalog_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - catalog_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>optional string catalog = 1;</code> - */ - public Builder setCatalog( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - catalog_ = value; - onChanged(); - return this; - } - /** - * <code>optional string catalog = 1;</code> - */ - public Builder clearCatalog() { - - catalog_ = getDefaultInstance().getCatalog(); - onChanged(); - return this; - } - /** - * <code>optional string catalog = 1;</code> - */ - public Builder setCatalogBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - catalog_ = value; - onChanged(); - return this; - } - - private java.lang.Object schemaPattern_ = ""; - /** - * <code>optional string schema_pattern = 2;</code> - */ - public java.lang.String getSchemaPattern() { - java.lang.Object ref = schemaPattern_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - schemaPattern_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>optional string schema_pattern = 2;</code> - */ - public com.google.protobuf.ByteString - getSchemaPatternBytes() { - java.lang.Object ref = schemaPattern_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - schemaPattern_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>optional string schema_pattern = 2;</code> - */ - public Builder setSchemaPattern( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - schemaPattern_ = value; - onChanged(); - return this; - } - /** - * <code>optional string schema_pattern = 2;</code> - */ - public Builder clearSchemaPattern() { - - schemaPattern_ = getDefaultInstance().getSchemaPattern(); - onChanged(); - return this; - } - /** - * <code>optional string schema_pattern = 2;</code> - */ - public Builder setSchemaPatternBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - schemaPattern_ = value; - onChanged(); - return this; - } - - private java.lang.Object connectionId_ = ""; - /** - * <code>optional string connection_id = 3;</code> - */ - public java.lang.String getConnectionId() { - java.lang.Object ref = connectionId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - connectionId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>optional string connection_id = 3;</code> - */ - public com.google.protobuf.ByteString - getConnectionIdBytes() { - java.lang.Object ref = connectionId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - connectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>optional string connection_id = 3;</code> - */ - public Builder setConnectionId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - connectionId_ = value; - onChanged(); - return this; - } - /** - * <code>optional string connection_id = 3;</code> - */ - public Builder clearConnectionId() { - - connectionId_ = getDefaultInstance().getConnectionId(); - onChanged(); - return this; - } - /** - * <code>optional string connection_id = 3;</code> - */ - public Builder setConnectionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - connectionId_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:SchemasRequest) - } - - // @@protoc_insertion_point(class_scope:SchemasRequest) - private static final org.apache.calcite.avatica.proto.Requests.SchemasRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Requests.SchemasRequest(); - } - - public static org.apache.calcite.avatica.proto.Requests.SchemasRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SchemasRequest> - PARSER = new com.google.protobuf.AbstractParser<SchemasRequest>() { - public SchemasRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SchemasRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SchemasRequest> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SchemasRequest> getParserForType() { - return PARSER; - } - - public org.apache.calcite.avatica.proto.Requests.SchemasRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TablesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:TablesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>optional string catalog = 1;</code> - */ - java.lang.String getCatalog(); - /** - * <code>optional string catalog = 1;</code> - */ - com.google.protobuf.ByteString - getCatalogBytes(); - - /** - * <code>optional string schema_pattern = 2;</code> - */ - java.lang.String getSchemaPattern(); - /** - * <code>optional string schema_pattern = 2;</code> - */ - com.google.protobuf.ByteString - getSchemaPatternBytes(); - - /** - * <code>optional string table_name_pattern = 3;</code> - */ - java.lang.String getTableNamePattern(); - /** - * <code>optional string table_name_pattern = 3;</code> - */ - com.google.protobuf.ByteString - getTableNamePatternBytes(); - - /** - * <code>repeated string type_list = 4;</code> - */ - java.util.List<java.lang.String> - getTypeListList(); - /** - * <code>repeated string type_list = 4;</code> - */ - int getTypeListCount(); - /** - * <code>repeated string type_list = 4;</code> - */ - java.lang.String getTypeList(int index); - /** - * <code>repeated string type_list = 4;</code> - */ - com.google.protobuf.ByteString - getTypeListBytes(int index); - - /** - * <pre> - * Having an empty type_list is distinct from a null type_list - * </pre> - * - * <code>optional bool has_type_list = 6;</code> - */ - boolean getHasTypeList(); - - /** - * <code>optional string connection_id = 7;</code> - */ - java.lang.String getConnectionId(); - /** - * <code>optional string connection_id = 7;</code> - */ - com.google.protobuf.ByteString - getConnectionIdBytes(); - } - /** - * <pre> - * Request for Request for Meta#getTables(String, org.apache.calcite.avatica.Meta.Pat, - * org.apache.calcite.avatica.Meta.Pat, java.util.List) - * </pre> - * - * Protobuf type {@code TablesRequest} - */ - public static final class TablesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TablesRequest) - TablesRequestOrBuilder { - // Use TablesRequest.newBuilder() to construct. - private TablesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private TablesRequest() { - catalog_ = ""; - schemaPattern_ = ""; - tableNamePattern_ = ""; - typeList_ = com.google.protobuf.LazyStringArrayList.EMPTY; - hasTypeList_ = false; - connectionId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private TablesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - catalog_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - schemaPattern_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - tableNamePattern_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - typeList_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - typeList_.add(s); - break; - } - case 48: { - - hasTypeList_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - connectionId_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - typeList_ = typeList_.getUnmodifiableView(); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.calcite.avatica.proto.Requests.internal_static_TablesRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.calcite.avatica.proto.Requests.internal_static_TablesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.calcite.avatica.proto.Requests.TablesRequest.class, org.apache.calcite.avatica.proto.Requests.TablesRequest.Builder.class); - } - - private int bitField0_; - public static final int CATALOG_FIELD_NUMBER = 1; - private volatile java.lang.Object catalog_; - /** - * <code>optional string catalog = 1;</code> - */ - public java.lang.String getCatalog() { - java.lang.Object ref = catalog_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - catalog_ = s; - return s; - } - } - /** - * <code>optional string catalog = 1;</code> - */ - public com.google.protobuf.ByteString - getCatalogBytes() { - java.lang.Object ref = catalog_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - catalog_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCHEMA_PATTERN_FIELD_NUMBER = 2; - private volatile java.lang.Object schemaPattern_; - /** - * <code>optional string schema_pattern = 2;</code> - */ - public java.lang.String getSchemaPattern() { - java.lang.Object ref = schemaPattern_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - schemaPattern_ = s; - return s; - } - } - /** - * <code>optional string schema_pattern = 2;</code> - */ - public com.google.protobuf.ByteString - getSchemaPatternBytes() { - java.lang.Object ref = schemaPattern_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - schemaPattern_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TABLE_NAME_PATTERN_FIELD_NUMBER = 3; - private volatile java.lang.Object tableNamePattern_; - /** - * <code>optional string table_name_pattern = 3;</code> - */ - public java.lang.String getTableNamePattern() { - java.lang.Object ref = tableNamePattern_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tableNamePattern_ = s; - return s; - } - } - /** - * <code>optional string table_name_pattern = 3;</code> - */ - public com.google.protobuf.ByteString - getTableNamePatternBytes() { - java.lang.Object ref = tableNamePattern_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tableNamePattern_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_LIST_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList typeList_; - /** - * <code>repeated string type_list = 4;</code> - */ - public com.google.protobuf.ProtocolStringList - getTypeListList() { - return typeList_; - } - /** - * <code>repeated string type_list = 4;</code> - */ - public int getTypeListCount() { - return typeList_.size(); - } - /** - * <code>repeated string type_list = 4;</code> - */ - public java.lang.String getTypeList(int index) { - return typeList_.get(index); - } - /** - * <code>repeated string type_list = 4;</code> - */ - public com.google.protobuf.ByteString - getTypeListBytes(int index) { - return typeList_.getByteString(index); - } - - public static final int HAS_TYPE_LIST_FIELD_NUMBER = 6; - private boolean hasTypeList_; - /** - * <pre> - * Having an empty type_list is distinct from a null type_list - * </pre> - * - * <code>optional bool has_type_list = 6;</code> - */ - public boolean getHasTypeList() { - return hasTypeList_; - } - - public static final int CONNECTION_ID_FIELD_NUMBER = 7; - private volatile java.lang.Object connectionId_; - /** - * <code>optional string connection_id = 7;</code> - */ - public java.lang.String getConnectionId() { - java.lang.Object ref = connectionId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - connectionId_ = s; - return s; - } - } - /** - * <code>optional string connection_id = 7;</code> - */ - public com.google.protobuf.ByteString - getConnectionIdBytes() { - java.lang.Object ref = connectionId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - connectionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - 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_); - } - } - - 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 (!getTableNamePatternBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tableNamePattern_); - } - { - int dataSize = 0; - for (int i = 0; i < typeList_.size(); i++) { - dataSize += computeStringSizeNoTag(typeList_.getRaw(i)); - } - size += dataSize; - size += 1 * getTypeListList().size(); - } - if (hasTypeList_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, hasTypeList_); - } - if (!getConnectionIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, connectionId_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @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()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptorForType().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; - } - - public static org.apache.calcite.avatica.proto.Requests.TablesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.calcite.avatica.proto.Requests.TablesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.TablesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.calcite.avatica.proto.Requests.TablesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.TablesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.apache.calcite.avatica.proto.Requests.TablesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.TablesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.apache.calcite.avatica.proto.Requests.TablesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.TablesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.apache.calcite.avatica.proto.Requests.TablesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.apache.calcite.avatica.proto.Requests.TablesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * <pre> - * Request for Request for Meta#getTables(String, org.apache.calcite.avatica.Meta.Pat, - * org.apache.calcite.avatica.Meta.Pat, java.util.List) - * </pre> - * - * Protobuf type {@code TablesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:TablesRequest) - org.apache.calcite.avatica.proto.Requests.TablesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.calcite.avatica.proto.Requests.internal_static_TablesRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.calcite.avatica.proto.Requests.internal_static_TablesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.calcite.avatica.proto.Requests.TablesRequest.class, org.apache.calcite.avatica.proto.Requests.TablesRequest.Builder.class); - } - - // Construct using org.apache.calcite.avatica.proto.Requests.TablesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - catalog_ = ""; - - schemaPattern_ = ""; - - tableNamePattern_ = ""; - - typeList_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - hasTypeList_ = false; - - connectionId_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.calcite.avatica.proto.Requests.internal_static_TablesRequest_descriptor; - } - - public org.apache.calcite.avatica.proto.Requests.TablesRequest getDefaultInstanceForType() { - return org.apache.calcite.avatica.proto.Requests.TablesRequest.getDefaultInstance(); - } - - public org.apache.calcite.avatica.proto.Requests.TablesRequest build() { - org.apache.calcite.avatica.proto.Requests.TablesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(re
<TRUNCATED>
