http://git-wip-us.apache.org/repos/asf/calcite/blob/5cee486f/avatica/src/main/java/org/apache/calcite/avatica/proto/Requests.java ---------------------------------------------------------------------- diff --git a/avatica/src/main/java/org/apache/calcite/avatica/proto/Requests.java b/avatica/src/main/java/org/apache/calcite/avatica/proto/Requests.java deleted file mode 100644 index 6d34757..0000000 --- a/avatica/src/main/java/org/apache/calcite/avatica/proto/Requests.java +++ /dev/null @@ -1,12327 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to you under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: requests.proto - -package org.apache.calcite.avatica.proto; - -@SuppressWarnings({"unused", "rawtypes"}) public final class Requests { - private Requests() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry 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(); - } - /** - * Protobuf type {@code CatalogsRequest} - * - * <pre> - * Request for Meta#getCatalogs() - * </pre> - */ - public static final class CatalogsRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:CatalogsRequest) - CatalogsRequestOrBuilder { - // Use CatalogsRequest.newBuilder() to construct. - private CatalogsRequest(com.google.protobuf.GeneratedMessage.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) { - 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: { - String s = input.readStringRequireUtf8(); - - connectionId_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).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.GeneratedMessage.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.GeneratedMessage.writeString(output, 1, connectionId_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getConnectionIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, connectionId_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - 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 PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.CatalogsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(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 PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.CatalogsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(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 PARSER.parseFrom(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.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CatalogsRequest} - * - * <pre> - * Request for Meta#getCatalogs() - * </pre> - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.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 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; - } 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 { - try { - return new CatalogsRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - 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(); - } - /** - * Protobuf type {@code DatabasePropertyRequest} - * - * <pre> - * Request for Meta#getDatabaseProperties() - * </pre> - */ - public static final class DatabasePropertyRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:DatabasePropertyRequest) - DatabasePropertyRequestOrBuilder { - // Use DatabasePropertyRequest.newBuilder() to construct. - private DatabasePropertyRequest(com.google.protobuf.GeneratedMessage.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) { - 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: { - String s = input.readStringRequireUtf8(); - - connectionId_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).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.GeneratedMessage.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.GeneratedMessage.writeString(output, 1, connectionId_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getConnectionIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, connectionId_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - 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 PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(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 PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.DatabasePropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(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 PARSER.parseFrom(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.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code DatabasePropertyRequest} - * - * <pre> - * Request for Meta#getDatabaseProperties() - * </pre> - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.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 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; - } 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 { - try { - return new DatabasePropertyRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - 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(); - } - /** - * Protobuf type {@code SchemasRequest} - * - * <pre> - * Request for Meta#getSchemas(String, org.apache.calcite.avatica.Meta.Pat)} - * </pre> - */ - public static final class SchemasRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:SchemasRequest) - SchemasRequestOrBuilder { - // Use SchemasRequest.newBuilder() to construct. - private SchemasRequest(com.google.protobuf.GeneratedMessage.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) { - 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: { - String s = input.readStringRequireUtf8(); - - catalog_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - schemaPattern_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - connectionId_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).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.GeneratedMessage.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.GeneratedMessage.writeString(output, 1, catalog_); - } - if (!getSchemaPatternBytes().isEmpty()) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, schemaPattern_); - } - if (!getConnectionIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, connectionId_); - } - } - - 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; - } - - private static final long serialVersionUID = 0L; - 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 PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.SchemasRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(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 PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.SchemasRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(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 PARSER.parseFrom(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.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SchemasRequest} - * - * <pre> - * Request for Meta#getSchemas(String, org.apache.calcite.avatica.Meta.Pat)} - * </pre> - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.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 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; - } 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 { - try { - return new SchemasRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - 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> - */ - com.google.protobuf.ProtocolStringList - 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); - - /** - * <code>optional bool has_type_list = 6;</code> - * - * <pre> - * Having an empty type_list is distinct from a null type_list - * </pre> - */ - 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(); - } - /** - * Protobuf type {@code TablesRequest} - * - * <pre> - * Request for Request for Meta#getTables(String, org.apache.calcite.avatica.Meta.Pat, - * org.apache.calcite.avatica.Meta.Pat, java.util.List) - * </pre> - */ - public static final class TablesRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:TablesRequest) - TablesRequestOrBuilder { - // Use TablesRequest.newBuilder() to construct. - private TablesRequest(com.google.protobuf.GeneratedMessage.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) { - 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: { - String s = input.readStringRequireUtf8(); - - catalog_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - schemaPattern_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - tableNamePattern_ = s; - break; - } - case 34: { - 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: { - String s = input.readStringRequireUtf8(); - - connectionId_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).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.GeneratedMessage.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_; - /** - * <code>optional bool has_type_list = 6;</code> - * - * <pre> - * Having an empty type_list is distinct from a null type_list - * </pre> - */ - 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.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_); - } - } - - 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 (!getTableNamePatternBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessage.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.GeneratedMessage.computeStringSize(7, connectionId_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - 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 PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.TablesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(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 PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.calcite.avatica.proto.Requests.TablesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(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 PARSER.parseFrom(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.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TablesRequest} - * - * <pre> - * Request for Request for Meta#getTables(String, org.apache.calcite.avatica.Meta.Pat, - * org.apache.calcite.avatica.Meta.Pat, java.util.List) - * </pre> - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.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(result); - } - 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 Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.calcite.avatica.proto.Requests.TablesRequest) { - return mergeFrom((org.apache.calcite.avatica.proto.Requests.TablesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - 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.typeList_.isEmpty()) { - if (typeList_.isEmpty()) { - typeList_ = other.typeList_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureTypeListIsMutable(); - typeList_.addAll(other.typeList_); - } - onChanged(); - } - if (other.getHasTypeList() != false) { - setHasTypeList(other.getHasTypeList()); - } - 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.TablesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.calcite.avatica.proto.Requests.TablesRequest) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - 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 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)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tableNamePattern_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>optional string table_name_pattern = 3;</code> - */ - public com.google.protobuf.ByteString - getTableNamePatternBytes() { - java.lang.Object ref = tableNamePattern_; - if (ref instanceof 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; - } - } - /** - * <code>optional string table_name_pattern = 3;</code> - */ - public Builder setTableNamePattern( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tableNamePattern_ = value; - onChanged(); - return this; - } - /** -
<TRUNCATED>
