org.apache.calcite.avatica.proto.Requests Maven / Gradle / Ivy
/*
* 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 {
/**
* optional string connection_id = 1;
*/
java.lang.String getConnectionId();
/**
* optional string connection_id = 1;
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
}
/**
* Protobuf type {@code CatalogsRequest}
*
*
* Request for Meta#getCatalogs()
*
*/
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_;
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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}
*
*
* Request for Meta#getCatalogs()
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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_ = "";
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
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
PARSER = new com.google.protobuf.AbstractParser() {
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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser 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 {
/**
* optional string connection_id = 1;
*/
java.lang.String getConnectionId();
/**
* optional string connection_id = 1;
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
}
/**
* Protobuf type {@code DatabasePropertyRequest}
*
*
* Request for Meta#getDatabaseProperties()
*
*/
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_;
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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}
*
*
* Request for Meta#getDatabaseProperties()
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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_ = "";
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
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
PARSER = new com.google.protobuf.AbstractParser() {
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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser 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 {
/**
* optional string catalog = 1;
*/
java.lang.String getCatalog();
/**
* optional string catalog = 1;
*/
com.google.protobuf.ByteString
getCatalogBytes();
/**
* optional string schema_pattern = 2;
*/
java.lang.String getSchemaPattern();
/**
* optional string schema_pattern = 2;
*/
com.google.protobuf.ByteString
getSchemaPatternBytes();
/**
* optional string connection_id = 3;
*/
java.lang.String getConnectionId();
/**
* optional string connection_id = 3;
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
}
/**
* Protobuf type {@code SchemasRequest}
*
*
* Request for Meta#getSchemas(String, org.apache.calcite.avatica.Meta.Pat)}
*
*/
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_;
/**
* optional string catalog = 1;
*/
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;
}
}
/**
* optional string catalog = 1;
*/
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_;
/**
* optional string schema_pattern = 2;
*/
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;
}
}
/**
* optional string schema_pattern = 2;
*/
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_;
/**
* optional string connection_id = 3;
*/
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;
}
}
/**
* optional string connection_id = 3;
*/
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}
*
*
* Request for Meta#getSchemas(String, org.apache.calcite.avatica.Meta.Pat)}
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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_ = "";
/**
* optional string catalog = 1;
*/
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;
}
}
/**
* optional string catalog = 1;
*/
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;
}
}
/**
* optional string catalog = 1;
*/
public Builder setCatalog(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
catalog_ = value;
onChanged();
return this;
}
/**
* optional string catalog = 1;
*/
public Builder clearCatalog() {
catalog_ = getDefaultInstance().getCatalog();
onChanged();
return this;
}
/**
* optional string catalog = 1;
*/
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_ = "";
/**
* optional string schema_pattern = 2;
*/
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;
}
}
/**
* optional string schema_pattern = 2;
*/
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;
}
}
/**
* optional string schema_pattern = 2;
*/
public Builder setSchemaPattern(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
schemaPattern_ = value;
onChanged();
return this;
}
/**
* optional string schema_pattern = 2;
*/
public Builder clearSchemaPattern() {
schemaPattern_ = getDefaultInstance().getSchemaPattern();
onChanged();
return this;
}
/**
* optional string schema_pattern = 2;
*/
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_ = "";
/**
* optional string connection_id = 3;
*/
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;
}
}
/**
* optional string connection_id = 3;
*/
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;
}
}
/**
* optional string connection_id = 3;
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
* optional string connection_id = 3;
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
* optional string connection_id = 3;
*/
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
PARSER = new com.google.protobuf.AbstractParser() {
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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser 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 {
/**
* optional string catalog = 1;
*/
java.lang.String getCatalog();
/**
* optional string catalog = 1;
*/
com.google.protobuf.ByteString
getCatalogBytes();
/**
* optional string schema_pattern = 2;
*/
java.lang.String getSchemaPattern();
/**
* optional string schema_pattern = 2;
*/
com.google.protobuf.ByteString
getSchemaPatternBytes();
/**
* optional string table_name_pattern = 3;
*/
java.lang.String getTableNamePattern();
/**
* optional string table_name_pattern = 3;
*/
com.google.protobuf.ByteString
getTableNamePatternBytes();
/**
* repeated string type_list = 4;
*/
com.google.protobuf.ProtocolStringList
getTypeListList();
/**
* repeated string type_list = 4;
*/
int getTypeListCount();
/**
* repeated string type_list = 4;
*/
java.lang.String getTypeList(int index);
/**
* repeated string type_list = 4;
*/
com.google.protobuf.ByteString
getTypeListBytes(int index);
/**
* optional bool has_type_list = 6;
*
*
* Having an empty type_list is distinct from a null type_list
*
*/
boolean getHasTypeList();
/**
* optional string connection_id = 7;
*/
java.lang.String getConnectionId();
/**
* optional string connection_id = 7;
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
}
/**
* Protobuf type {@code TablesRequest}
*
*
* Request for Request for Meta#getTables(String, org.apache.calcite.avatica.Meta.Pat,
* org.apache.calcite.avatica.Meta.Pat, java.util.List)
*
*/
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_;
/**
* optional string catalog = 1;
*/
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;
}
}
/**
* optional string catalog = 1;
*/
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_;
/**
* optional string schema_pattern = 2;
*/
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;
}
}
/**
* optional string schema_pattern = 2;
*/
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_;
/**
* optional string table_name_pattern = 3;
*/
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;
}
}
/**
* optional string table_name_pattern = 3;
*/
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_;
/**
* repeated string type_list = 4;
*/
public com.google.protobuf.ProtocolStringList
getTypeListList() {
return typeList_;
}
/**
* repeated string type_list = 4;
*/
public int getTypeListCount() {
return typeList_.size();
}
/**
* repeated string type_list = 4;
*/
public java.lang.String getTypeList(int index) {
return typeList_.get(index);
}
/**
* repeated string type_list = 4;
*/
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_;
/**
* optional bool has_type_list = 6;
*
*
* Having an empty type_list is distinct from a null type_list
*
*/
public boolean getHasTypeList() {
return hasTypeList_;
}
public static final int CONNECTION_ID_FIELD_NUMBER = 7;
private volatile java.lang.Object connectionId_;
/**
* optional string connection_id = 7;
*/
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;
}
}
/**
* optional string connection_id = 7;
*/
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}
*
*
* Request for Request for Meta#getTables(String, org.apache.calcite.avatica.Meta.Pat,
* org.apache.calcite.avatica.Meta.Pat, java.util.List)
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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_ = "";
/**
* optional string catalog = 1;
*/
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;
}
}
/**
* optional string catalog = 1;
*/
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;
}
}
/**
* optional string catalog = 1;
*/
public Builder setCatalog(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
catalog_ = value;
onChanged();
return this;
}
/**
* optional string catalog = 1;
*/
public Builder clearCatalog() {
catalog_ = getDefaultInstance().getCatalog();
onChanged();
return this;
}
/**
* optional string catalog = 1;
*/
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_ = "";
/**
* optional string schema_pattern = 2;
*/
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;
}
}
/**
* optional string schema_pattern = 2;
*/
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;
}
}
/**
* optional string schema_pattern = 2;
*/
public Builder setSchemaPattern(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
schemaPattern_ = value;
onChanged();
return this;
}
/**
* optional string schema_pattern = 2;
*/
public Builder clearSchemaPattern() {
schemaPattern_ = getDefaultInstance().getSchemaPattern();
onChanged();
return this;
}
/**
* optional string schema_pattern = 2;
*/
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_ = "";
/**
* optional string table_name_pattern = 3;
*/
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;
}
}
/**
* optional string table_name_pattern = 3;
*/
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;
}
}
/**
* optional string table_name_pattern = 3;
*/
public Builder setTableNamePattern(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
tableNamePattern_ = value;
onChanged();
return this;
}
/**
* optional string table_name_pattern = 3;
*/
public Builder clearTableNamePattern() {
tableNamePattern_ = getDefaultInstance().getTableNamePattern();
onChanged();
return this;
}
/**
* optional string table_name_pattern = 3;
*/
public Builder setTableNamePatternBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
tableNamePattern_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList typeList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTypeListIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
typeList_ = new com.google.protobuf.LazyStringArrayList(typeList_);
bitField0_ |= 0x00000008;
}
}
/**
* repeated string type_list = 4;
*/
public com.google.protobuf.ProtocolStringList
getTypeListList() {
return typeList_.getUnmodifiableView();
}
/**
* repeated string type_list = 4;
*/
public int getTypeListCount() {
return typeList_.size();
}
/**
* repeated string type_list = 4;
*/
public java.lang.String getTypeList(int index) {
return typeList_.get(index);
}
/**
* repeated string type_list = 4;
*/
public com.google.protobuf.ByteString
getTypeListBytes(int index) {
return typeList_.getByteString(index);
}
/**
* repeated string type_list = 4;
*/
public Builder setTypeList(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTypeListIsMutable();
typeList_.set(index, value);
onChanged();
return this;
}
/**
* repeated string type_list = 4;
*/
public Builder addTypeList(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTypeListIsMutable();
typeList_.add(value);
onChanged();
return this;
}
/**
* repeated string type_list = 4;
*/
public Builder addAllTypeList(
java.lang.Iterable values) {
ensureTypeListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, typeList_);
onChanged();
return this;
}
/**
* repeated string type_list = 4;
*/
public Builder clearTypeList() {
typeList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* repeated string type_list = 4;
*/
public Builder addTypeListBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureTypeListIsMutable();
typeList_.add(value);
onChanged();
return this;
}
private boolean hasTypeList_ ;
/**
* optional bool has_type_list = 6;
*
*
* Having an empty type_list is distinct from a null type_list
*
*/
public boolean getHasTypeList() {
return hasTypeList_;
}
/**
* optional bool has_type_list = 6;
*
*
* Having an empty type_list is distinct from a null type_list
*
*/
public Builder setHasTypeList(boolean value) {
hasTypeList_ = value;
onChanged();
return this;
}
/**
* optional bool has_type_list = 6;
*
*
* Having an empty type_list is distinct from a null type_list
*
*/
public Builder clearHasTypeList() {
hasTypeList_ = false;
onChanged();
return this;
}
private java.lang.Object connectionId_ = "";
/**
* optional string connection_id = 7;
*/
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;
}
}
/**
* optional string connection_id = 7;
*/
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;
}
}
/**
* optional string connection_id = 7;
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
* optional string connection_id = 7;
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
* optional string connection_id = 7;
*/
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:TablesRequest)
}
// @@protoc_insertion_point(class_scope:TablesRequest)
private static final org.apache.calcite.avatica.proto.Requests.TablesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Requests.TablesRequest();
}
public static org.apache.calcite.avatica.proto.Requests.TablesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TablesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new TablesRequest(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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.calcite.avatica.proto.Requests.TablesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TableTypesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:TableTypesRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string connection_id = 1;
*/
java.lang.String getConnectionId();
/**
* optional string connection_id = 1;
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
}
/**
* Protobuf type {@code TableTypesRequest}
*
*
* Request for Meta#getTableTypes()
*
*/
public static final class TableTypesRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:TableTypesRequest)
TableTypesRequestOrBuilder {
// Use TableTypesRequest.newBuilder() to construct.
private TableTypesRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private TableTypesRequest() {
connectionId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private TableTypesRequest(
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_TableTypesRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_TableTypesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.TableTypesRequest.class, org.apache.calcite.avatica.proto.Requests.TableTypesRequest.Builder.class);
}
public static final int CONNECTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object connectionId_;
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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.TableTypesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.TableTypesRequest 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.TableTypesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.TableTypesRequest 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.TableTypesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.TableTypesRequest 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.TableTypesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.TableTypesRequest 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.TableTypesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.TableTypesRequest 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.TableTypesRequest 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 TableTypesRequest}
*
*
* Request for Meta#getTableTypes()
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:TableTypesRequest)
org.apache.calcite.avatica.proto.Requests.TableTypesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Requests.internal_static_TableTypesRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_TableTypesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.TableTypesRequest.class, org.apache.calcite.avatica.proto.Requests.TableTypesRequest.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Requests.TableTypesRequest.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_TableTypesRequest_descriptor;
}
public org.apache.calcite.avatica.proto.Requests.TableTypesRequest getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Requests.TableTypesRequest.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Requests.TableTypesRequest build() {
org.apache.calcite.avatica.proto.Requests.TableTypesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Requests.TableTypesRequest buildPartial() {
org.apache.calcite.avatica.proto.Requests.TableTypesRequest result = new org.apache.calcite.avatica.proto.Requests.TableTypesRequest(this);
result.connectionId_ = connectionId_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Requests.TableTypesRequest) {
return mergeFrom((org.apache.calcite.avatica.proto.Requests.TableTypesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.TableTypesRequest other) {
if (other == org.apache.calcite.avatica.proto.Requests.TableTypesRequest.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.TableTypesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Requests.TableTypesRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object connectionId_ = "";
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
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:TableTypesRequest)
}
// @@protoc_insertion_point(class_scope:TableTypesRequest)
private static final org.apache.calcite.avatica.proto.Requests.TableTypesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Requests.TableTypesRequest();
}
public static org.apache.calcite.avatica.proto.Requests.TableTypesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TableTypesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new TableTypesRequest(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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.calcite.avatica.proto.Requests.TableTypesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ColumnsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:ColumnsRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string catalog = 1;
*/
java.lang.String getCatalog();
/**
* optional string catalog = 1;
*/
com.google.protobuf.ByteString
getCatalogBytes();
/**
* optional string schema_pattern = 2;
*/
java.lang.String getSchemaPattern();
/**
* optional string schema_pattern = 2;
*/
com.google.protobuf.ByteString
getSchemaPatternBytes();
/**
* optional string table_name_pattern = 3;
*/
java.lang.String getTableNamePattern();
/**
* optional string table_name_pattern = 3;
*/
com.google.protobuf.ByteString
getTableNamePatternBytes();
/**
* optional string column_name_pattern = 4;
*/
java.lang.String getColumnNamePattern();
/**
* optional string column_name_pattern = 4;
*/
com.google.protobuf.ByteString
getColumnNamePatternBytes();
/**
* optional string connection_id = 5;
*/
java.lang.String getConnectionId();
/**
* optional string connection_id = 5;
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
}
/**
* Protobuf type {@code ColumnsRequest}
*
*
* Request for Meta#getColumns(String, org.apache.calcite.avatica.Meta.Pat,
* org.apache.calcite.avatica.Meta.Pat, org.apache.calcite.avatica.Meta.Pat).
*
*/
public static final class ColumnsRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:ColumnsRequest)
ColumnsRequestOrBuilder {
// Use ColumnsRequest.newBuilder() to construct.
private ColumnsRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ColumnsRequest() {
catalog_ = "";
schemaPattern_ = "";
tableNamePattern_ = "";
columnNamePattern_ = "";
connectionId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ColumnsRequest(
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();
columnNamePattern_ = s;
break;
}
case 42: {
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_ColumnsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_ColumnsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.ColumnsRequest.class, org.apache.calcite.avatica.proto.Requests.ColumnsRequest.Builder.class);
}
public static final int CATALOG_FIELD_NUMBER = 1;
private volatile java.lang.Object catalog_;
/**
* optional string catalog = 1;
*/
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;
}
}
/**
* optional string catalog = 1;
*/
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_;
/**
* optional string schema_pattern = 2;
*/
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;
}
}
/**
* optional string schema_pattern = 2;
*/
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_;
/**
* optional string table_name_pattern = 3;
*/
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;
}
}
/**
* optional string table_name_pattern = 3;
*/
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 COLUMN_NAME_PATTERN_FIELD_NUMBER = 4;
private volatile java.lang.Object columnNamePattern_;
/**
* optional string column_name_pattern = 4;
*/
public java.lang.String getColumnNamePattern() {
java.lang.Object ref = columnNamePattern_;
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();
columnNamePattern_ = s;
return s;
}
}
/**
* optional string column_name_pattern = 4;
*/
public com.google.protobuf.ByteString
getColumnNamePatternBytes() {
java.lang.Object ref = columnNamePattern_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
columnNamePattern_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONNECTION_ID_FIELD_NUMBER = 5;
private volatile java.lang.Object connectionId_;
/**
* optional string connection_id = 5;
*/
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;
}
}
/**
* optional string connection_id = 5;
*/
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_);
}
if (!getColumnNamePatternBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 4, columnNamePattern_);
}
if (!getConnectionIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 5, 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_);
}
if (!getColumnNamePatternBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(4, columnNamePattern_);
}
if (!getConnectionIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(5, connectionId_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Requests.ColumnsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.ColumnsRequest 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.ColumnsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.ColumnsRequest 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.ColumnsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.ColumnsRequest 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.ColumnsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.ColumnsRequest 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.ColumnsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.ColumnsRequest 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.ColumnsRequest 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 ColumnsRequest}
*
*
* Request for Meta#getColumns(String, org.apache.calcite.avatica.Meta.Pat,
* org.apache.calcite.avatica.Meta.Pat, org.apache.calcite.avatica.Meta.Pat).
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:ColumnsRequest)
org.apache.calcite.avatica.proto.Requests.ColumnsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Requests.internal_static_ColumnsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_ColumnsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.ColumnsRequest.class, org.apache.calcite.avatica.proto.Requests.ColumnsRequest.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Requests.ColumnsRequest.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_ = "";
columnNamePattern_ = "";
connectionId_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Requests.internal_static_ColumnsRequest_descriptor;
}
public org.apache.calcite.avatica.proto.Requests.ColumnsRequest getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Requests.ColumnsRequest.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Requests.ColumnsRequest build() {
org.apache.calcite.avatica.proto.Requests.ColumnsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Requests.ColumnsRequest buildPartial() {
org.apache.calcite.avatica.proto.Requests.ColumnsRequest result = new org.apache.calcite.avatica.proto.Requests.ColumnsRequest(this);
result.catalog_ = catalog_;
result.schemaPattern_ = schemaPattern_;
result.tableNamePattern_ = tableNamePattern_;
result.columnNamePattern_ = columnNamePattern_;
result.connectionId_ = connectionId_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Requests.ColumnsRequest) {
return mergeFrom((org.apache.calcite.avatica.proto.Requests.ColumnsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.ColumnsRequest other) {
if (other == org.apache.calcite.avatica.proto.Requests.ColumnsRequest.getDefaultInstance()) return this;
if (!other.getCatalog().isEmpty()) {
catalog_ = other.catalog_;
onChanged();
}
if (!other.getSchemaPattern().isEmpty()) {
schemaPattern_ = other.schemaPattern_;
onChanged();
}
if (!other.getTableNamePattern().isEmpty()) {
tableNamePattern_ = other.tableNamePattern_;
onChanged();
}
if (!other.getColumnNamePattern().isEmpty()) {
columnNamePattern_ = other.columnNamePattern_;
onChanged();
}
if (!other.getConnectionId().isEmpty()) {
connectionId_ = other.connectionId_;
onChanged();
}
onChanged();
return this;
}
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.ColumnsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Requests.ColumnsRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object catalog_ = "";
/**
* optional string catalog = 1;
*/
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;
}
}
/**
* optional string catalog = 1;
*/
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;
}
}
/**
* optional string catalog = 1;
*/
public Builder setCatalog(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
catalog_ = value;
onChanged();
return this;
}
/**
* optional string catalog = 1;
*/
public Builder clearCatalog() {
catalog_ = getDefaultInstance().getCatalog();
onChanged();
return this;
}
/**
* optional string catalog = 1;
*/
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_ = "";
/**
* optional string schema_pattern = 2;
*/
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;
}
}
/**
* optional string schema_pattern = 2;
*/
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;
}
}
/**
* optional string schema_pattern = 2;
*/
public Builder setSchemaPattern(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
schemaPattern_ = value;
onChanged();
return this;
}
/**
* optional string schema_pattern = 2;
*/
public Builder clearSchemaPattern() {
schemaPattern_ = getDefaultInstance().getSchemaPattern();
onChanged();
return this;
}
/**
* optional string schema_pattern = 2;
*/
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_ = "";
/**
* optional string table_name_pattern = 3;
*/
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;
}
}
/**
* optional string table_name_pattern = 3;
*/
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;
}
}
/**
* optional string table_name_pattern = 3;
*/
public Builder setTableNamePattern(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
tableNamePattern_ = value;
onChanged();
return this;
}
/**
* optional string table_name_pattern = 3;
*/
public Builder clearTableNamePattern() {
tableNamePattern_ = getDefaultInstance().getTableNamePattern();
onChanged();
return this;
}
/**
* optional string table_name_pattern = 3;
*/
public Builder setTableNamePatternBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
tableNamePattern_ = value;
onChanged();
return this;
}
private java.lang.Object columnNamePattern_ = "";
/**
* optional string column_name_pattern = 4;
*/
public java.lang.String getColumnNamePattern() {
java.lang.Object ref = columnNamePattern_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
columnNamePattern_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string column_name_pattern = 4;
*/
public com.google.protobuf.ByteString
getColumnNamePatternBytes() {
java.lang.Object ref = columnNamePattern_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
columnNamePattern_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string column_name_pattern = 4;
*/
public Builder setColumnNamePattern(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
columnNamePattern_ = value;
onChanged();
return this;
}
/**
* optional string column_name_pattern = 4;
*/
public Builder clearColumnNamePattern() {
columnNamePattern_ = getDefaultInstance().getColumnNamePattern();
onChanged();
return this;
}
/**
* optional string column_name_pattern = 4;
*/
public Builder setColumnNamePatternBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
columnNamePattern_ = value;
onChanged();
return this;
}
private java.lang.Object connectionId_ = "";
/**
* optional string connection_id = 5;
*/
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;
}
}
/**
* optional string connection_id = 5;
*/
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;
}
}
/**
* optional string connection_id = 5;
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
* optional string connection_id = 5;
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
* optional string connection_id = 5;
*/
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:ColumnsRequest)
}
// @@protoc_insertion_point(class_scope:ColumnsRequest)
private static final org.apache.calcite.avatica.proto.Requests.ColumnsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Requests.ColumnsRequest();
}
public static org.apache.calcite.avatica.proto.Requests.ColumnsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ColumnsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new ColumnsRequest(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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.calcite.avatica.proto.Requests.ColumnsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TypeInfoRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:TypeInfoRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string connection_id = 1;
*/
java.lang.String getConnectionId();
/**
* optional string connection_id = 1;
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
}
/**
* Protobuf type {@code TypeInfoRequest}
*
*
* Request for Meta#getTypeInfo()
*
*/
public static final class TypeInfoRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:TypeInfoRequest)
TypeInfoRequestOrBuilder {
// Use TypeInfoRequest.newBuilder() to construct.
private TypeInfoRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private TypeInfoRequest() {
connectionId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private TypeInfoRequest(
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_TypeInfoRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_TypeInfoRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.TypeInfoRequest.class, org.apache.calcite.avatica.proto.Requests.TypeInfoRequest.Builder.class);
}
public static final int CONNECTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object connectionId_;
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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.TypeInfoRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.TypeInfoRequest 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.TypeInfoRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.TypeInfoRequest 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.TypeInfoRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.TypeInfoRequest 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.TypeInfoRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.TypeInfoRequest 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.TypeInfoRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.TypeInfoRequest 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.TypeInfoRequest 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 TypeInfoRequest}
*
*
* Request for Meta#getTypeInfo()
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:TypeInfoRequest)
org.apache.calcite.avatica.proto.Requests.TypeInfoRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Requests.internal_static_TypeInfoRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_TypeInfoRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.TypeInfoRequest.class, org.apache.calcite.avatica.proto.Requests.TypeInfoRequest.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Requests.TypeInfoRequest.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_TypeInfoRequest_descriptor;
}
public org.apache.calcite.avatica.proto.Requests.TypeInfoRequest getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Requests.TypeInfoRequest.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Requests.TypeInfoRequest build() {
org.apache.calcite.avatica.proto.Requests.TypeInfoRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Requests.TypeInfoRequest buildPartial() {
org.apache.calcite.avatica.proto.Requests.TypeInfoRequest result = new org.apache.calcite.avatica.proto.Requests.TypeInfoRequest(this);
result.connectionId_ = connectionId_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Requests.TypeInfoRequest) {
return mergeFrom((org.apache.calcite.avatica.proto.Requests.TypeInfoRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.TypeInfoRequest other) {
if (other == org.apache.calcite.avatica.proto.Requests.TypeInfoRequest.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.TypeInfoRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Requests.TypeInfoRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object connectionId_ = "";
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
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:TypeInfoRequest)
}
// @@protoc_insertion_point(class_scope:TypeInfoRequest)
private static final org.apache.calcite.avatica.proto.Requests.TypeInfoRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Requests.TypeInfoRequest();
}
public static org.apache.calcite.avatica.proto.Requests.TypeInfoRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TypeInfoRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new TypeInfoRequest(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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.calcite.avatica.proto.Requests.TypeInfoRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PrepareAndExecuteRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:PrepareAndExecuteRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string connection_id = 1;
*/
java.lang.String getConnectionId();
/**
* optional string connection_id = 1;
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
/**
* optional string sql = 2;
*/
java.lang.String getSql();
/**
* optional string sql = 2;
*/
com.google.protobuf.ByteString
getSqlBytes();
/**
* optional uint64 max_row_count = 3;
*
*
* Deprecated
*
*/
long getMaxRowCount();
/**
* optional uint32 statement_id = 4;
*/
int getStatementId();
/**
* optional int64 max_rows_total = 5;
*
*
* The maximum number of rows that will be allowed for this query
*
*/
long getMaxRowsTotal();
/**
* optional int32 first_frame_max_size = 6;
*
*
* The maximum number of rows that will be returned in the
*
*/
int getFirstFrameMaxSize();
}
/**
* Protobuf type {@code PrepareAndExecuteRequest}
*
*
* Request for Meta#prepareAndExecute(Meta.StatementHandle, String, long, Meta.PrepareCallback)
*
*/
public static final class PrepareAndExecuteRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:PrepareAndExecuteRequest)
PrepareAndExecuteRequestOrBuilder {
// Use PrepareAndExecuteRequest.newBuilder() to construct.
private PrepareAndExecuteRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private PrepareAndExecuteRequest() {
connectionId_ = "";
sql_ = "";
maxRowCount_ = 0L;
statementId_ = 0;
maxRowsTotal_ = 0L;
firstFrameMaxSize_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private PrepareAndExecuteRequest(
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;
}
case 18: {
String s = input.readStringRequireUtf8();
sql_ = s;
break;
}
case 24: {
maxRowCount_ = input.readUInt64();
break;
}
case 32: {
statementId_ = input.readUInt32();
break;
}
case 40: {
maxRowsTotal_ = input.readInt64();
break;
}
case 48: {
firstFrameMaxSize_ = input.readInt32();
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_PrepareAndExecuteRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_PrepareAndExecuteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest.class, org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest.Builder.class);
}
public static final int CONNECTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object connectionId_;
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
public static final int SQL_FIELD_NUMBER = 2;
private volatile java.lang.Object sql_;
/**
* optional string sql = 2;
*/
public java.lang.String getSql() {
java.lang.Object ref = sql_;
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();
sql_ = s;
return s;
}
}
/**
* optional string sql = 2;
*/
public com.google.protobuf.ByteString
getSqlBytes() {
java.lang.Object ref = sql_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sql_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MAX_ROW_COUNT_FIELD_NUMBER = 3;
private long maxRowCount_;
/**
* optional uint64 max_row_count = 3;
*
*
* Deprecated
*
*/
public long getMaxRowCount() {
return maxRowCount_;
}
public static final int STATEMENT_ID_FIELD_NUMBER = 4;
private int statementId_;
/**
* optional uint32 statement_id = 4;
*/
public int getStatementId() {
return statementId_;
}
public static final int MAX_ROWS_TOTAL_FIELD_NUMBER = 5;
private long maxRowsTotal_;
/**
* optional int64 max_rows_total = 5;
*
*
* The maximum number of rows that will be allowed for this query
*
*/
public long getMaxRowsTotal() {
return maxRowsTotal_;
}
public static final int FIRST_FRAME_MAX_SIZE_FIELD_NUMBER = 6;
private int firstFrameMaxSize_;
/**
* optional int32 first_frame_max_size = 6;
*
*
* The maximum number of rows that will be returned in the
*
*/
public int getFirstFrameMaxSize() {
return firstFrameMaxSize_;
}
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_);
}
if (!getSqlBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, sql_);
}
if (maxRowCount_ != 0L) {
output.writeUInt64(3, maxRowCount_);
}
if (statementId_ != 0) {
output.writeUInt32(4, statementId_);
}
if (maxRowsTotal_ != 0L) {
output.writeInt64(5, maxRowsTotal_);
}
if (firstFrameMaxSize_ != 0) {
output.writeInt32(6, firstFrameMaxSize_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getConnectionIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, connectionId_);
}
if (!getSqlBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, sql_);
}
if (maxRowCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, maxRowCount_);
}
if (statementId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, statementId_);
}
if (maxRowsTotal_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, maxRowsTotal_);
}
if (firstFrameMaxSize_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, firstFrameMaxSize_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest 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.PrepareAndExecuteRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest 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.PrepareAndExecuteRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest 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.PrepareAndExecuteRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest 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.PrepareAndExecuteRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest 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.PrepareAndExecuteRequest 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 PrepareAndExecuteRequest}
*
*
* Request for Meta#prepareAndExecute(Meta.StatementHandle, String, long, Meta.PrepareCallback)
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:PrepareAndExecuteRequest)
org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Requests.internal_static_PrepareAndExecuteRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_PrepareAndExecuteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest.class, org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest.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_ = "";
sql_ = "";
maxRowCount_ = 0L;
statementId_ = 0;
maxRowsTotal_ = 0L;
firstFrameMaxSize_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Requests.internal_static_PrepareAndExecuteRequest_descriptor;
}
public org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest build() {
org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest buildPartial() {
org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest result = new org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest(this);
result.connectionId_ = connectionId_;
result.sql_ = sql_;
result.maxRowCount_ = maxRowCount_;
result.statementId_ = statementId_;
result.maxRowsTotal_ = maxRowsTotal_;
result.firstFrameMaxSize_ = firstFrameMaxSize_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest) {
return mergeFrom((org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest other) {
if (other == org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest.getDefaultInstance()) return this;
if (!other.getConnectionId().isEmpty()) {
connectionId_ = other.connectionId_;
onChanged();
}
if (!other.getSql().isEmpty()) {
sql_ = other.sql_;
onChanged();
}
if (other.getMaxRowCount() != 0L) {
setMaxRowCount(other.getMaxRowCount());
}
if (other.getStatementId() != 0) {
setStatementId(other.getStatementId());
}
if (other.getMaxRowsTotal() != 0L) {
setMaxRowsTotal(other.getMaxRowsTotal());
}
if (other.getFirstFrameMaxSize() != 0) {
setFirstFrameMaxSize(other.getFirstFrameMaxSize());
}
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.PrepareAndExecuteRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object connectionId_ = "";
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
connectionId_ = value;
onChanged();
return this;
}
private java.lang.Object sql_ = "";
/**
* optional string sql = 2;
*/
public java.lang.String getSql() {
java.lang.Object ref = sql_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sql_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string sql = 2;
*/
public com.google.protobuf.ByteString
getSqlBytes() {
java.lang.Object ref = sql_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sql_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string sql = 2;
*/
public Builder setSql(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sql_ = value;
onChanged();
return this;
}
/**
* optional string sql = 2;
*/
public Builder clearSql() {
sql_ = getDefaultInstance().getSql();
onChanged();
return this;
}
/**
* optional string sql = 2;
*/
public Builder setSqlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sql_ = value;
onChanged();
return this;
}
private long maxRowCount_ ;
/**
* optional uint64 max_row_count = 3;
*
*
* Deprecated
*
*/
public long getMaxRowCount() {
return maxRowCount_;
}
/**
* optional uint64 max_row_count = 3;
*
*
* Deprecated
*
*/
public Builder setMaxRowCount(long value) {
maxRowCount_ = value;
onChanged();
return this;
}
/**
* optional uint64 max_row_count = 3;
*
*
* Deprecated
*
*/
public Builder clearMaxRowCount() {
maxRowCount_ = 0L;
onChanged();
return this;
}
private int statementId_ ;
/**
* optional uint32 statement_id = 4;
*/
public int getStatementId() {
return statementId_;
}
/**
* optional uint32 statement_id = 4;
*/
public Builder setStatementId(int value) {
statementId_ = value;
onChanged();
return this;
}
/**
* optional uint32 statement_id = 4;
*/
public Builder clearStatementId() {
statementId_ = 0;
onChanged();
return this;
}
private long maxRowsTotal_ ;
/**
* optional int64 max_rows_total = 5;
*
*
* The maximum number of rows that will be allowed for this query
*
*/
public long getMaxRowsTotal() {
return maxRowsTotal_;
}
/**
* optional int64 max_rows_total = 5;
*
*
* The maximum number of rows that will be allowed for this query
*
*/
public Builder setMaxRowsTotal(long value) {
maxRowsTotal_ = value;
onChanged();
return this;
}
/**
* optional int64 max_rows_total = 5;
*
*
* The maximum number of rows that will be allowed for this query
*
*/
public Builder clearMaxRowsTotal() {
maxRowsTotal_ = 0L;
onChanged();
return this;
}
private int firstFrameMaxSize_ ;
/**
* optional int32 first_frame_max_size = 6;
*
*
* The maximum number of rows that will be returned in the
*
*/
public int getFirstFrameMaxSize() {
return firstFrameMaxSize_;
}
/**
* optional int32 first_frame_max_size = 6;
*
*
* The maximum number of rows that will be returned in the
*
*/
public Builder setFirstFrameMaxSize(int value) {
firstFrameMaxSize_ = value;
onChanged();
return this;
}
/**
* optional int32 first_frame_max_size = 6;
*
*
* The maximum number of rows that will be returned in the
*
*/
public Builder clearFirstFrameMaxSize() {
firstFrameMaxSize_ = 0;
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:PrepareAndExecuteRequest)
}
// @@protoc_insertion_point(class_scope:PrepareAndExecuteRequest)
private static final org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest();
}
public static org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PrepareAndExecuteRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new PrepareAndExecuteRequest(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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PrepareRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:PrepareRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string connection_id = 1;
*/
java.lang.String getConnectionId();
/**
* optional string connection_id = 1;
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
/**
* optional string sql = 2;
*/
java.lang.String getSql();
/**
* optional string sql = 2;
*/
com.google.protobuf.ByteString
getSqlBytes();
/**
* optional uint64 max_row_count = 3;
*
*
* Deprecated
*
*/
long getMaxRowCount();
/**
* optional int64 max_rows_total = 4;
*
*
* The maximum number of rows that will be allowed for this query
*
*/
long getMaxRowsTotal();
}
/**
* Protobuf type {@code PrepareRequest}
*
*
* Request for Meta.prepare(Meta.ConnectionHandle, String, long)
*
*/
public static final class PrepareRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:PrepareRequest)
PrepareRequestOrBuilder {
// Use PrepareRequest.newBuilder() to construct.
private PrepareRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private PrepareRequest() {
connectionId_ = "";
sql_ = "";
maxRowCount_ = 0L;
maxRowsTotal_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private PrepareRequest(
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;
}
case 18: {
String s = input.readStringRequireUtf8();
sql_ = s;
break;
}
case 24: {
maxRowCount_ = input.readUInt64();
break;
}
case 32: {
maxRowsTotal_ = input.readInt64();
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_PrepareRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_PrepareRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.PrepareRequest.class, org.apache.calcite.avatica.proto.Requests.PrepareRequest.Builder.class);
}
public static final int CONNECTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object connectionId_;
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
public static final int SQL_FIELD_NUMBER = 2;
private volatile java.lang.Object sql_;
/**
* optional string sql = 2;
*/
public java.lang.String getSql() {
java.lang.Object ref = sql_;
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();
sql_ = s;
return s;
}
}
/**
* optional string sql = 2;
*/
public com.google.protobuf.ByteString
getSqlBytes() {
java.lang.Object ref = sql_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sql_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MAX_ROW_COUNT_FIELD_NUMBER = 3;
private long maxRowCount_;
/**
* optional uint64 max_row_count = 3;
*
*
* Deprecated
*
*/
public long getMaxRowCount() {
return maxRowCount_;
}
public static final int MAX_ROWS_TOTAL_FIELD_NUMBER = 4;
private long maxRowsTotal_;
/**
* optional int64 max_rows_total = 4;
*
*
* The maximum number of rows that will be allowed for this query
*
*/
public long getMaxRowsTotal() {
return maxRowsTotal_;
}
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_);
}
if (!getSqlBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, sql_);
}
if (maxRowCount_ != 0L) {
output.writeUInt64(3, maxRowCount_);
}
if (maxRowsTotal_ != 0L) {
output.writeInt64(4, maxRowsTotal_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getConnectionIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, connectionId_);
}
if (!getSqlBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, sql_);
}
if (maxRowCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, maxRowCount_);
}
if (maxRowsTotal_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, maxRowsTotal_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Requests.PrepareRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.PrepareRequest 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.PrepareRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.PrepareRequest 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.PrepareRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.PrepareRequest 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.PrepareRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.PrepareRequest 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.PrepareRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.PrepareRequest 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.PrepareRequest 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 PrepareRequest}
*
*
* Request for Meta.prepare(Meta.ConnectionHandle, String, long)
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:PrepareRequest)
org.apache.calcite.avatica.proto.Requests.PrepareRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Requests.internal_static_PrepareRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_PrepareRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.PrepareRequest.class, org.apache.calcite.avatica.proto.Requests.PrepareRequest.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Requests.PrepareRequest.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_ = "";
sql_ = "";
maxRowCount_ = 0L;
maxRowsTotal_ = 0L;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Requests.internal_static_PrepareRequest_descriptor;
}
public org.apache.calcite.avatica.proto.Requests.PrepareRequest getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Requests.PrepareRequest.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Requests.PrepareRequest build() {
org.apache.calcite.avatica.proto.Requests.PrepareRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Requests.PrepareRequest buildPartial() {
org.apache.calcite.avatica.proto.Requests.PrepareRequest result = new org.apache.calcite.avatica.proto.Requests.PrepareRequest(this);
result.connectionId_ = connectionId_;
result.sql_ = sql_;
result.maxRowCount_ = maxRowCount_;
result.maxRowsTotal_ = maxRowsTotal_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Requests.PrepareRequest) {
return mergeFrom((org.apache.calcite.avatica.proto.Requests.PrepareRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.PrepareRequest other) {
if (other == org.apache.calcite.avatica.proto.Requests.PrepareRequest.getDefaultInstance()) return this;
if (!other.getConnectionId().isEmpty()) {
connectionId_ = other.connectionId_;
onChanged();
}
if (!other.getSql().isEmpty()) {
sql_ = other.sql_;
onChanged();
}
if (other.getMaxRowCount() != 0L) {
setMaxRowCount(other.getMaxRowCount());
}
if (other.getMaxRowsTotal() != 0L) {
setMaxRowsTotal(other.getMaxRowsTotal());
}
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.PrepareRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Requests.PrepareRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object connectionId_ = "";
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
connectionId_ = value;
onChanged();
return this;
}
private java.lang.Object sql_ = "";
/**
* optional string sql = 2;
*/
public java.lang.String getSql() {
java.lang.Object ref = sql_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sql_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string sql = 2;
*/
public com.google.protobuf.ByteString
getSqlBytes() {
java.lang.Object ref = sql_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sql_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string sql = 2;
*/
public Builder setSql(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sql_ = value;
onChanged();
return this;
}
/**
* optional string sql = 2;
*/
public Builder clearSql() {
sql_ = getDefaultInstance().getSql();
onChanged();
return this;
}
/**
* optional string sql = 2;
*/
public Builder setSqlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sql_ = value;
onChanged();
return this;
}
private long maxRowCount_ ;
/**
* optional uint64 max_row_count = 3;
*
*
* Deprecated
*
*/
public long getMaxRowCount() {
return maxRowCount_;
}
/**
* optional uint64 max_row_count = 3;
*
*
* Deprecated
*
*/
public Builder setMaxRowCount(long value) {
maxRowCount_ = value;
onChanged();
return this;
}
/**
* optional uint64 max_row_count = 3;
*
*
* Deprecated
*
*/
public Builder clearMaxRowCount() {
maxRowCount_ = 0L;
onChanged();
return this;
}
private long maxRowsTotal_ ;
/**
* optional int64 max_rows_total = 4;
*
*
* The maximum number of rows that will be allowed for this query
*
*/
public long getMaxRowsTotal() {
return maxRowsTotal_;
}
/**
* optional int64 max_rows_total = 4;
*
*
* The maximum number of rows that will be allowed for this query
*
*/
public Builder setMaxRowsTotal(long value) {
maxRowsTotal_ = value;
onChanged();
return this;
}
/**
* optional int64 max_rows_total = 4;
*
*
* The maximum number of rows that will be allowed for this query
*
*/
public Builder clearMaxRowsTotal() {
maxRowsTotal_ = 0L;
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:PrepareRequest)
}
// @@protoc_insertion_point(class_scope:PrepareRequest)
private static final org.apache.calcite.avatica.proto.Requests.PrepareRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Requests.PrepareRequest();
}
public static org.apache.calcite.avatica.proto.Requests.PrepareRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PrepareRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new PrepareRequest(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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.calcite.avatica.proto.Requests.PrepareRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FetchRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:FetchRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string connection_id = 1;
*/
java.lang.String getConnectionId();
/**
* optional string connection_id = 1;
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
/**
* optional uint32 statement_id = 2;
*/
int getStatementId();
/**
* optional uint64 offset = 3;
*/
long getOffset();
/**
* optional uint32 fetch_max_row_count = 4;
*
*
* Maximum number of rows to be returned in the frame. Negative means no limit. Deprecated!
*
*/
int getFetchMaxRowCount();
/**
* optional int32 frame_max_size = 5;
*/
int getFrameMaxSize();
}
/**
* Protobuf type {@code FetchRequest}
*
*
* Request for Meta#fetch(Meta.StatementHandle, List, long, int)
*
*/
public static final class FetchRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:FetchRequest)
FetchRequestOrBuilder {
// Use FetchRequest.newBuilder() to construct.
private FetchRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private FetchRequest() {
connectionId_ = "";
statementId_ = 0;
offset_ = 0L;
fetchMaxRowCount_ = 0;
frameMaxSize_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private FetchRequest(
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;
}
case 16: {
statementId_ = input.readUInt32();
break;
}
case 24: {
offset_ = input.readUInt64();
break;
}
case 32: {
fetchMaxRowCount_ = input.readUInt32();
break;
}
case 40: {
frameMaxSize_ = input.readInt32();
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_FetchRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_FetchRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.FetchRequest.class, org.apache.calcite.avatica.proto.Requests.FetchRequest.Builder.class);
}
public static final int CONNECTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object connectionId_;
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
public static final int STATEMENT_ID_FIELD_NUMBER = 2;
private int statementId_;
/**
* optional uint32 statement_id = 2;
*/
public int getStatementId() {
return statementId_;
}
public static final int OFFSET_FIELD_NUMBER = 3;
private long offset_;
/**
* optional uint64 offset = 3;
*/
public long getOffset() {
return offset_;
}
public static final int FETCH_MAX_ROW_COUNT_FIELD_NUMBER = 4;
private int fetchMaxRowCount_;
/**
* optional uint32 fetch_max_row_count = 4;
*
*
* Maximum number of rows to be returned in the frame. Negative means no limit. Deprecated!
*
*/
public int getFetchMaxRowCount() {
return fetchMaxRowCount_;
}
public static final int FRAME_MAX_SIZE_FIELD_NUMBER = 5;
private int frameMaxSize_;
/**
* optional int32 frame_max_size = 5;
*/
public int getFrameMaxSize() {
return frameMaxSize_;
}
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_);
}
if (statementId_ != 0) {
output.writeUInt32(2, statementId_);
}
if (offset_ != 0L) {
output.writeUInt64(3, offset_);
}
if (fetchMaxRowCount_ != 0) {
output.writeUInt32(4, fetchMaxRowCount_);
}
if (frameMaxSize_ != 0) {
output.writeInt32(5, frameMaxSize_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getConnectionIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, connectionId_);
}
if (statementId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, statementId_);
}
if (offset_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, offset_);
}
if (fetchMaxRowCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, fetchMaxRowCount_);
}
if (frameMaxSize_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, frameMaxSize_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Requests.FetchRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.FetchRequest 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.FetchRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.FetchRequest 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.FetchRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.FetchRequest 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.FetchRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.FetchRequest 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.FetchRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.FetchRequest 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.FetchRequest 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 FetchRequest}
*
*
* Request for Meta#fetch(Meta.StatementHandle, List, long, int)
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:FetchRequest)
org.apache.calcite.avatica.proto.Requests.FetchRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Requests.internal_static_FetchRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_FetchRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.FetchRequest.class, org.apache.calcite.avatica.proto.Requests.FetchRequest.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Requests.FetchRequest.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_ = "";
statementId_ = 0;
offset_ = 0L;
fetchMaxRowCount_ = 0;
frameMaxSize_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Requests.internal_static_FetchRequest_descriptor;
}
public org.apache.calcite.avatica.proto.Requests.FetchRequest getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Requests.FetchRequest.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Requests.FetchRequest build() {
org.apache.calcite.avatica.proto.Requests.FetchRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Requests.FetchRequest buildPartial() {
org.apache.calcite.avatica.proto.Requests.FetchRequest result = new org.apache.calcite.avatica.proto.Requests.FetchRequest(this);
result.connectionId_ = connectionId_;
result.statementId_ = statementId_;
result.offset_ = offset_;
result.fetchMaxRowCount_ = fetchMaxRowCount_;
result.frameMaxSize_ = frameMaxSize_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Requests.FetchRequest) {
return mergeFrom((org.apache.calcite.avatica.proto.Requests.FetchRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.FetchRequest other) {
if (other == org.apache.calcite.avatica.proto.Requests.FetchRequest.getDefaultInstance()) return this;
if (!other.getConnectionId().isEmpty()) {
connectionId_ = other.connectionId_;
onChanged();
}
if (other.getStatementId() != 0) {
setStatementId(other.getStatementId());
}
if (other.getOffset() != 0L) {
setOffset(other.getOffset());
}
if (other.getFetchMaxRowCount() != 0) {
setFetchMaxRowCount(other.getFetchMaxRowCount());
}
if (other.getFrameMaxSize() != 0) {
setFrameMaxSize(other.getFrameMaxSize());
}
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.FetchRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Requests.FetchRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object connectionId_ = "";
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
connectionId_ = value;
onChanged();
return this;
}
private int statementId_ ;
/**
* optional uint32 statement_id = 2;
*/
public int getStatementId() {
return statementId_;
}
/**
* optional uint32 statement_id = 2;
*/
public Builder setStatementId(int value) {
statementId_ = value;
onChanged();
return this;
}
/**
* optional uint32 statement_id = 2;
*/
public Builder clearStatementId() {
statementId_ = 0;
onChanged();
return this;
}
private long offset_ ;
/**
* optional uint64 offset = 3;
*/
public long getOffset() {
return offset_;
}
/**
* optional uint64 offset = 3;
*/
public Builder setOffset(long value) {
offset_ = value;
onChanged();
return this;
}
/**
* optional uint64 offset = 3;
*/
public Builder clearOffset() {
offset_ = 0L;
onChanged();
return this;
}
private int fetchMaxRowCount_ ;
/**
* optional uint32 fetch_max_row_count = 4;
*
*
* Maximum number of rows to be returned in the frame. Negative means no limit. Deprecated!
*
*/
public int getFetchMaxRowCount() {
return fetchMaxRowCount_;
}
/**
* optional uint32 fetch_max_row_count = 4;
*
*
* Maximum number of rows to be returned in the frame. Negative means no limit. Deprecated!
*
*/
public Builder setFetchMaxRowCount(int value) {
fetchMaxRowCount_ = value;
onChanged();
return this;
}
/**
* optional uint32 fetch_max_row_count = 4;
*
*
* Maximum number of rows to be returned in the frame. Negative means no limit. Deprecated!
*
*/
public Builder clearFetchMaxRowCount() {
fetchMaxRowCount_ = 0;
onChanged();
return this;
}
private int frameMaxSize_ ;
/**
* optional int32 frame_max_size = 5;
*/
public int getFrameMaxSize() {
return frameMaxSize_;
}
/**
* optional int32 frame_max_size = 5;
*/
public Builder setFrameMaxSize(int value) {
frameMaxSize_ = value;
onChanged();
return this;
}
/**
* optional int32 frame_max_size = 5;
*/
public Builder clearFrameMaxSize() {
frameMaxSize_ = 0;
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:FetchRequest)
}
// @@protoc_insertion_point(class_scope:FetchRequest)
private static final org.apache.calcite.avatica.proto.Requests.FetchRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Requests.FetchRequest();
}
public static org.apache.calcite.avatica.proto.Requests.FetchRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public FetchRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new FetchRequest(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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.calcite.avatica.proto.Requests.FetchRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateStatementRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:CreateStatementRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string connection_id = 1;
*/
java.lang.String getConnectionId();
/**
* optional string connection_id = 1;
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
}
/**
* Protobuf type {@code CreateStatementRequest}
*
*
* Request for Meta#createStatement(Meta.ConnectionHandle)
*
*/
public static final class CreateStatementRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:CreateStatementRequest)
CreateStatementRequestOrBuilder {
// Use CreateStatementRequest.newBuilder() to construct.
private CreateStatementRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private CreateStatementRequest() {
connectionId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CreateStatementRequest(
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_CreateStatementRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_CreateStatementRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.CreateStatementRequest.class, org.apache.calcite.avatica.proto.Requests.CreateStatementRequest.Builder.class);
}
public static final int CONNECTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object connectionId_;
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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.CreateStatementRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.CreateStatementRequest 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.CreateStatementRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.CreateStatementRequest 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.CreateStatementRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.CreateStatementRequest 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.CreateStatementRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.CreateStatementRequest 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.CreateStatementRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.CreateStatementRequest 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.CreateStatementRequest 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 CreateStatementRequest}
*
*
* Request for Meta#createStatement(Meta.ConnectionHandle)
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:CreateStatementRequest)
org.apache.calcite.avatica.proto.Requests.CreateStatementRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Requests.internal_static_CreateStatementRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_CreateStatementRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.CreateStatementRequest.class, org.apache.calcite.avatica.proto.Requests.CreateStatementRequest.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Requests.CreateStatementRequest.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_CreateStatementRequest_descriptor;
}
public org.apache.calcite.avatica.proto.Requests.CreateStatementRequest getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Requests.CreateStatementRequest.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Requests.CreateStatementRequest build() {
org.apache.calcite.avatica.proto.Requests.CreateStatementRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Requests.CreateStatementRequest buildPartial() {
org.apache.calcite.avatica.proto.Requests.CreateStatementRequest result = new org.apache.calcite.avatica.proto.Requests.CreateStatementRequest(this);
result.connectionId_ = connectionId_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Requests.CreateStatementRequest) {
return mergeFrom((org.apache.calcite.avatica.proto.Requests.CreateStatementRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.CreateStatementRequest other) {
if (other == org.apache.calcite.avatica.proto.Requests.CreateStatementRequest.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.CreateStatementRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Requests.CreateStatementRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object connectionId_ = "";
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
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:CreateStatementRequest)
}
// @@protoc_insertion_point(class_scope:CreateStatementRequest)
private static final org.apache.calcite.avatica.proto.Requests.CreateStatementRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Requests.CreateStatementRequest();
}
public static org.apache.calcite.avatica.proto.Requests.CreateStatementRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CreateStatementRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new CreateStatementRequest(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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.calcite.avatica.proto.Requests.CreateStatementRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CloseStatementRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:CloseStatementRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string connection_id = 1;
*/
java.lang.String getConnectionId();
/**
* optional string connection_id = 1;
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
/**
* optional uint32 statement_id = 2;
*/
int getStatementId();
}
/**
* Protobuf type {@code CloseStatementRequest}
*
*
* Request for Meta#closeStatement(Meta.StatementHandle)
*
*/
public static final class CloseStatementRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:CloseStatementRequest)
CloseStatementRequestOrBuilder {
// Use CloseStatementRequest.newBuilder() to construct.
private CloseStatementRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private CloseStatementRequest() {
connectionId_ = "";
statementId_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CloseStatementRequest(
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;
}
case 16: {
statementId_ = input.readUInt32();
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_CloseStatementRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_CloseStatementRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.CloseStatementRequest.class, org.apache.calcite.avatica.proto.Requests.CloseStatementRequest.Builder.class);
}
public static final int CONNECTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object connectionId_;
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
public static final int STATEMENT_ID_FIELD_NUMBER = 2;
private int statementId_;
/**
* optional uint32 statement_id = 2;
*/
public int getStatementId() {
return statementId_;
}
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_);
}
if (statementId_ != 0) {
output.writeUInt32(2, statementId_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getConnectionIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, connectionId_);
}
if (statementId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, statementId_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Requests.CloseStatementRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.CloseStatementRequest 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.CloseStatementRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.CloseStatementRequest 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.CloseStatementRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.CloseStatementRequest 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.CloseStatementRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.CloseStatementRequest 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.CloseStatementRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.CloseStatementRequest 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.CloseStatementRequest 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 CloseStatementRequest}
*
*
* Request for Meta#closeStatement(Meta.StatementHandle)
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:CloseStatementRequest)
org.apache.calcite.avatica.proto.Requests.CloseStatementRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Requests.internal_static_CloseStatementRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_CloseStatementRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.CloseStatementRequest.class, org.apache.calcite.avatica.proto.Requests.CloseStatementRequest.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Requests.CloseStatementRequest.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_ = "";
statementId_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Requests.internal_static_CloseStatementRequest_descriptor;
}
public org.apache.calcite.avatica.proto.Requests.CloseStatementRequest getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Requests.CloseStatementRequest.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Requests.CloseStatementRequest build() {
org.apache.calcite.avatica.proto.Requests.CloseStatementRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Requests.CloseStatementRequest buildPartial() {
org.apache.calcite.avatica.proto.Requests.CloseStatementRequest result = new org.apache.calcite.avatica.proto.Requests.CloseStatementRequest(this);
result.connectionId_ = connectionId_;
result.statementId_ = statementId_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Requests.CloseStatementRequest) {
return mergeFrom((org.apache.calcite.avatica.proto.Requests.CloseStatementRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.CloseStatementRequest other) {
if (other == org.apache.calcite.avatica.proto.Requests.CloseStatementRequest.getDefaultInstance()) return this;
if (!other.getConnectionId().isEmpty()) {
connectionId_ = other.connectionId_;
onChanged();
}
if (other.getStatementId() != 0) {
setStatementId(other.getStatementId());
}
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.CloseStatementRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Requests.CloseStatementRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object connectionId_ = "";
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
connectionId_ = value;
onChanged();
return this;
}
private int statementId_ ;
/**
* optional uint32 statement_id = 2;
*/
public int getStatementId() {
return statementId_;
}
/**
* optional uint32 statement_id = 2;
*/
public Builder setStatementId(int value) {
statementId_ = value;
onChanged();
return this;
}
/**
* optional uint32 statement_id = 2;
*/
public Builder clearStatementId() {
statementId_ = 0;
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:CloseStatementRequest)
}
// @@protoc_insertion_point(class_scope:CloseStatementRequest)
private static final org.apache.calcite.avatica.proto.Requests.CloseStatementRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Requests.CloseStatementRequest();
}
public static org.apache.calcite.avatica.proto.Requests.CloseStatementRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CloseStatementRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new CloseStatementRequest(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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.calcite.avatica.proto.Requests.CloseStatementRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OpenConnectionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:OpenConnectionRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string connection_id = 1;
*/
java.lang.String getConnectionId();
/**
* optional string connection_id = 1;
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
/**
* map<string, string> info = 2;
*/
java.util.Map
getInfo();
}
/**
* Protobuf type {@code OpenConnectionRequest}
*
*
* Request for Meta#openConnection(Meta.ConnectionHandle, Map<String, String>)
*
*/
public static final class OpenConnectionRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:OpenConnectionRequest)
OpenConnectionRequestOrBuilder {
// Use OpenConnectionRequest.newBuilder() to construct.
private OpenConnectionRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private OpenConnectionRequest() {
connectionId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private OpenConnectionRequest(
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;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
info_ = com.google.protobuf.MapField.newMapField(
InfoDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
info = input.readMessage(
InfoDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
info_.getMutableMap().put(info.getKey(), info.getValue());
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_OpenConnectionRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetInfo();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_OpenConnectionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest.class, org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest.Builder.class);
}
private int bitField0_;
public static final int CONNECTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object connectionId_;
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
public static final int INFO_FIELD_NUMBER = 2;
private static final class InfoDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.apache.calcite.avatica.proto.Requests.internal_static_OpenConnectionRequest_InfoEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> info_;
private com.google.protobuf.MapField
internalGetInfo() {
if (info_ == null) {
return com.google.protobuf.MapField.emptyMapField(
InfoDefaultEntryHolder.defaultEntry);
}
return info_;
}
/**
* map<string, string> info = 2;
*/
public java.util.Map getInfo() {
return internalGetInfo().getMap();
}
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_);
}
for (java.util.Map.Entry entry
: internalGetInfo().getMap().entrySet()) {
com.google.protobuf.MapEntry
info = InfoDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
output.writeMessage(2, info);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getConnectionIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, connectionId_);
}
for (java.util.Map.Entry entry
: internalGetInfo().getMap().entrySet()) {
com.google.protobuf.MapEntry
info = InfoDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, info);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest 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.OpenConnectionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest 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.OpenConnectionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest 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.OpenConnectionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest 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.OpenConnectionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest 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.OpenConnectionRequest 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 OpenConnectionRequest}
*
*
* Request for Meta#openConnection(Meta.ConnectionHandle, Map<String, String>)
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:OpenConnectionRequest)
org.apache.calcite.avatica.proto.Requests.OpenConnectionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Requests.internal_static_OpenConnectionRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetInfo();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 2:
return internalGetMutableInfo();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_OpenConnectionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest.class, org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest.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_ = "";
internalGetMutableInfo().clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Requests.internal_static_OpenConnectionRequest_descriptor;
}
public org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest build() {
org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest buildPartial() {
org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest result = new org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.connectionId_ = connectionId_;
result.info_ = internalGetInfo();
result.info_.makeImmutable();
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest) {
return mergeFrom((org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest other) {
if (other == org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest.getDefaultInstance()) return this;
if (!other.getConnectionId().isEmpty()) {
connectionId_ = other.connectionId_;
onChanged();
}
internalGetMutableInfo().mergeFrom(
other.internalGetInfo());
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.OpenConnectionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object connectionId_ = "";
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
connectionId_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> info_;
private com.google.protobuf.MapField
internalGetInfo() {
if (info_ == null) {
return com.google.protobuf.MapField.emptyMapField(
InfoDefaultEntryHolder.defaultEntry);
}
return info_;
}
private com.google.protobuf.MapField
internalGetMutableInfo() {
onChanged();;
if (info_ == null) {
info_ = com.google.protobuf.MapField.newMapField(
InfoDefaultEntryHolder.defaultEntry);
}
if (!info_.isMutable()) {
info_ = info_.copy();
}
return info_;
}
/**
* map<string, string> info = 2;
*/
public java.util.Map getInfo() {
return internalGetInfo().getMap();
}
/**
* map<string, string> info = 2;
*/
public java.util.Map
getMutableInfo() {
return internalGetMutableInfo().getMutableMap();
}
/**
* map<string, string> info = 2;
*/
public Builder putAllInfo(
java.util.Map values) {
getMutableInfo().putAll(values);
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:OpenConnectionRequest)
}
// @@protoc_insertion_point(class_scope:OpenConnectionRequest)
private static final org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest();
}
public static org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public OpenConnectionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new OpenConnectionRequest(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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.calcite.avatica.proto.Requests.OpenConnectionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CloseConnectionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:CloseConnectionRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string connection_id = 1;
*/
java.lang.String getConnectionId();
/**
* optional string connection_id = 1;
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
}
/**
* Protobuf type {@code CloseConnectionRequest}
*
*
* Request for Meta#closeConnection(Meta.ConnectionHandle)
*
*/
public static final class CloseConnectionRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:CloseConnectionRequest)
CloseConnectionRequestOrBuilder {
// Use CloseConnectionRequest.newBuilder() to construct.
private CloseConnectionRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private CloseConnectionRequest() {
connectionId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CloseConnectionRequest(
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_CloseConnectionRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_CloseConnectionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest.class, org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest.Builder.class);
}
public static final int CONNECTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object connectionId_;
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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.CloseConnectionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest 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.CloseConnectionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest 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.CloseConnectionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest 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.CloseConnectionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest 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.CloseConnectionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest 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.CloseConnectionRequest 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 CloseConnectionRequest}
*
*
* Request for Meta#closeConnection(Meta.ConnectionHandle)
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:CloseConnectionRequest)
org.apache.calcite.avatica.proto.Requests.CloseConnectionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Requests.internal_static_CloseConnectionRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_CloseConnectionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest.class, org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest.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_CloseConnectionRequest_descriptor;
}
public org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest build() {
org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest buildPartial() {
org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest result = new org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest(this);
result.connectionId_ = connectionId_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest) {
return mergeFrom((org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest other) {
if (other == org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest.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.CloseConnectionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object connectionId_ = "";
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
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:CloseConnectionRequest)
}
// @@protoc_insertion_point(class_scope:CloseConnectionRequest)
private static final org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest();
}
public static org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CloseConnectionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new CloseConnectionRequest(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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.calcite.avatica.proto.Requests.CloseConnectionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConnectionSyncRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:ConnectionSyncRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string connection_id = 1;
*/
java.lang.String getConnectionId();
/**
* optional string connection_id = 1;
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
/**
* optional .ConnectionProperties conn_props = 2;
*/
boolean hasConnProps();
/**
* optional .ConnectionProperties conn_props = 2;
*/
org.apache.calcite.avatica.proto.Common.ConnectionProperties getConnProps();
/**
* optional .ConnectionProperties conn_props = 2;
*/
org.apache.calcite.avatica.proto.Common.ConnectionPropertiesOrBuilder getConnPropsOrBuilder();
}
/**
* Protobuf type {@code ConnectionSyncRequest}
*/
public static final class ConnectionSyncRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:ConnectionSyncRequest)
ConnectionSyncRequestOrBuilder {
// Use ConnectionSyncRequest.newBuilder() to construct.
private ConnectionSyncRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ConnectionSyncRequest() {
connectionId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ConnectionSyncRequest(
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;
}
case 18: {
org.apache.calcite.avatica.proto.Common.ConnectionProperties.Builder subBuilder = null;
if (connProps_ != null) {
subBuilder = connProps_.toBuilder();
}
connProps_ = input.readMessage(org.apache.calcite.avatica.proto.Common.ConnectionProperties.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(connProps_);
connProps_ = subBuilder.buildPartial();
}
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_ConnectionSyncRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_ConnectionSyncRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest.class, org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest.Builder.class);
}
public static final int CONNECTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object connectionId_;
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
public static final int CONN_PROPS_FIELD_NUMBER = 2;
private org.apache.calcite.avatica.proto.Common.ConnectionProperties connProps_;
/**
* optional .ConnectionProperties conn_props = 2;
*/
public boolean hasConnProps() {
return connProps_ != null;
}
/**
* optional .ConnectionProperties conn_props = 2;
*/
public org.apache.calcite.avatica.proto.Common.ConnectionProperties getConnProps() {
return connProps_ == null ? org.apache.calcite.avatica.proto.Common.ConnectionProperties.getDefaultInstance() : connProps_;
}
/**
* optional .ConnectionProperties conn_props = 2;
*/
public org.apache.calcite.avatica.proto.Common.ConnectionPropertiesOrBuilder getConnPropsOrBuilder() {
return getConnProps();
}
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_);
}
if (connProps_ != null) {
output.writeMessage(2, getConnProps());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getConnectionIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, connectionId_);
}
if (connProps_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getConnProps());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest 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.ConnectionSyncRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest 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.ConnectionSyncRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest 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.ConnectionSyncRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest 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.ConnectionSyncRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest 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.ConnectionSyncRequest 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 ConnectionSyncRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:ConnectionSyncRequest)
org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Requests.internal_static_ConnectionSyncRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_ConnectionSyncRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest.class, org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest.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_ = "";
if (connPropsBuilder_ == null) {
connProps_ = null;
} else {
connProps_ = null;
connPropsBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Requests.internal_static_ConnectionSyncRequest_descriptor;
}
public org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest build() {
org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest buildPartial() {
org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest result = new org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest(this);
result.connectionId_ = connectionId_;
if (connPropsBuilder_ == null) {
result.connProps_ = connProps_;
} else {
result.connProps_ = connPropsBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest) {
return mergeFrom((org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest other) {
if (other == org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest.getDefaultInstance()) return this;
if (!other.getConnectionId().isEmpty()) {
connectionId_ = other.connectionId_;
onChanged();
}
if (other.hasConnProps()) {
mergeConnProps(other.getConnProps());
}
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.ConnectionSyncRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object connectionId_ = "";
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
connectionId_ = value;
onChanged();
return this;
}
private org.apache.calcite.avatica.proto.Common.ConnectionProperties connProps_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.ConnectionProperties, org.apache.calcite.avatica.proto.Common.ConnectionProperties.Builder, org.apache.calcite.avatica.proto.Common.ConnectionPropertiesOrBuilder> connPropsBuilder_;
/**
* optional .ConnectionProperties conn_props = 2;
*/
public boolean hasConnProps() {
return connPropsBuilder_ != null || connProps_ != null;
}
/**
* optional .ConnectionProperties conn_props = 2;
*/
public org.apache.calcite.avatica.proto.Common.ConnectionProperties getConnProps() {
if (connPropsBuilder_ == null) {
return connProps_ == null ? org.apache.calcite.avatica.proto.Common.ConnectionProperties.getDefaultInstance() : connProps_;
} else {
return connPropsBuilder_.getMessage();
}
}
/**
* optional .ConnectionProperties conn_props = 2;
*/
public Builder setConnProps(org.apache.calcite.avatica.proto.Common.ConnectionProperties value) {
if (connPropsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
connProps_ = value;
onChanged();
} else {
connPropsBuilder_.setMessage(value);
}
return this;
}
/**
* optional .ConnectionProperties conn_props = 2;
*/
public Builder setConnProps(
org.apache.calcite.avatica.proto.Common.ConnectionProperties.Builder builderForValue) {
if (connPropsBuilder_ == null) {
connProps_ = builderForValue.build();
onChanged();
} else {
connPropsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .ConnectionProperties conn_props = 2;
*/
public Builder mergeConnProps(org.apache.calcite.avatica.proto.Common.ConnectionProperties value) {
if (connPropsBuilder_ == null) {
if (connProps_ != null) {
connProps_ =
org.apache.calcite.avatica.proto.Common.ConnectionProperties.newBuilder(connProps_).mergeFrom(value).buildPartial();
} else {
connProps_ = value;
}
onChanged();
} else {
connPropsBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .ConnectionProperties conn_props = 2;
*/
public Builder clearConnProps() {
if (connPropsBuilder_ == null) {
connProps_ = null;
onChanged();
} else {
connProps_ = null;
connPropsBuilder_ = null;
}
return this;
}
/**
* optional .ConnectionProperties conn_props = 2;
*/
public org.apache.calcite.avatica.proto.Common.ConnectionProperties.Builder getConnPropsBuilder() {
onChanged();
return getConnPropsFieldBuilder().getBuilder();
}
/**
* optional .ConnectionProperties conn_props = 2;
*/
public org.apache.calcite.avatica.proto.Common.ConnectionPropertiesOrBuilder getConnPropsOrBuilder() {
if (connPropsBuilder_ != null) {
return connPropsBuilder_.getMessageOrBuilder();
} else {
return connProps_ == null ?
org.apache.calcite.avatica.proto.Common.ConnectionProperties.getDefaultInstance() : connProps_;
}
}
/**
* optional .ConnectionProperties conn_props = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.ConnectionProperties, org.apache.calcite.avatica.proto.Common.ConnectionProperties.Builder, org.apache.calcite.avatica.proto.Common.ConnectionPropertiesOrBuilder>
getConnPropsFieldBuilder() {
if (connPropsBuilder_ == null) {
connPropsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.ConnectionProperties, org.apache.calcite.avatica.proto.Common.ConnectionProperties.Builder, org.apache.calcite.avatica.proto.Common.ConnectionPropertiesOrBuilder>(
getConnProps(),
getParentForChildren(),
isClean());
connProps_ = null;
}
return connPropsBuilder_;
}
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:ConnectionSyncRequest)
}
// @@protoc_insertion_point(class_scope:ConnectionSyncRequest)
private static final org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest();
}
public static org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ConnectionSyncRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new ConnectionSyncRequest(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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.calcite.avatica.proto.Requests.ConnectionSyncRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:ExecuteRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional .StatementHandle statementHandle = 1;
*/
boolean hasStatementHandle();
/**
* optional .StatementHandle statementHandle = 1;
*/
org.apache.calcite.avatica.proto.Common.StatementHandle getStatementHandle();
/**
* optional .StatementHandle statementHandle = 1;
*/
org.apache.calcite.avatica.proto.Common.StatementHandleOrBuilder getStatementHandleOrBuilder();
/**
* repeated .TypedValue parameter_values = 2;
*/
java.util.List
getParameterValuesList();
/**
* repeated .TypedValue parameter_values = 2;
*/
org.apache.calcite.avatica.proto.Common.TypedValue getParameterValues(int index);
/**
* repeated .TypedValue parameter_values = 2;
*/
int getParameterValuesCount();
/**
* repeated .TypedValue parameter_values = 2;
*/
java.util.List extends org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder>
getParameterValuesOrBuilderList();
/**
* repeated .TypedValue parameter_values = 2;
*/
org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder getParameterValuesOrBuilder(
int index);
/**
* optional uint64 first_frame_max_size = 3;
*
*
* The maximum number of rows to return in the first Frame
*
*/
long getFirstFrameMaxSize();
/**
* optional bool has_parameter_values = 4;
*/
boolean getHasParameterValues();
}
/**
* Protobuf type {@code ExecuteRequest}
*
*
* Request for Meta#execute(Meta.ConnectionHandle, list, long)
*
*/
public static final class ExecuteRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:ExecuteRequest)
ExecuteRequestOrBuilder {
// Use ExecuteRequest.newBuilder() to construct.
private ExecuteRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ExecuteRequest() {
parameterValues_ = java.util.Collections.emptyList();
firstFrameMaxSize_ = 0L;
hasParameterValues_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ExecuteRequest(
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: {
org.apache.calcite.avatica.proto.Common.StatementHandle.Builder subBuilder = null;
if (statementHandle_ != null) {
subBuilder = statementHandle_.toBuilder();
}
statementHandle_ = input.readMessage(org.apache.calcite.avatica.proto.Common.StatementHandle.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(statementHandle_);
statementHandle_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
parameterValues_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
parameterValues_.add(input.readMessage(org.apache.calcite.avatica.proto.Common.TypedValue.parser(), extensionRegistry));
break;
}
case 24: {
firstFrameMaxSize_ = input.readUInt64();
break;
}
case 32: {
hasParameterValues_ = input.readBool();
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_ & 0x00000002) == 0x00000002)) {
parameterValues_ = java.util.Collections.unmodifiableList(parameterValues_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Requests.internal_static_ExecuteRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_ExecuteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.ExecuteRequest.class, org.apache.calcite.avatica.proto.Requests.ExecuteRequest.Builder.class);
}
private int bitField0_;
public static final int STATEMENTHANDLE_FIELD_NUMBER = 1;
private org.apache.calcite.avatica.proto.Common.StatementHandle statementHandle_;
/**
* optional .StatementHandle statementHandle = 1;
*/
public boolean hasStatementHandle() {
return statementHandle_ != null;
}
/**
* optional .StatementHandle statementHandle = 1;
*/
public org.apache.calcite.avatica.proto.Common.StatementHandle getStatementHandle() {
return statementHandle_ == null ? org.apache.calcite.avatica.proto.Common.StatementHandle.getDefaultInstance() : statementHandle_;
}
/**
* optional .StatementHandle statementHandle = 1;
*/
public org.apache.calcite.avatica.proto.Common.StatementHandleOrBuilder getStatementHandleOrBuilder() {
return getStatementHandle();
}
public static final int PARAMETER_VALUES_FIELD_NUMBER = 2;
private java.util.List parameterValues_;
/**
* repeated .TypedValue parameter_values = 2;
*/
public java.util.List getParameterValuesList() {
return parameterValues_;
}
/**
* repeated .TypedValue parameter_values = 2;
*/
public java.util.List extends org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder>
getParameterValuesOrBuilderList() {
return parameterValues_;
}
/**
* repeated .TypedValue parameter_values = 2;
*/
public int getParameterValuesCount() {
return parameterValues_.size();
}
/**
* repeated .TypedValue parameter_values = 2;
*/
public org.apache.calcite.avatica.proto.Common.TypedValue getParameterValues(int index) {
return parameterValues_.get(index);
}
/**
* repeated .TypedValue parameter_values = 2;
*/
public org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder getParameterValuesOrBuilder(
int index) {
return parameterValues_.get(index);
}
public static final int FIRST_FRAME_MAX_SIZE_FIELD_NUMBER = 3;
private long firstFrameMaxSize_;
/**
* optional uint64 first_frame_max_size = 3;
*
*
* The maximum number of rows to return in the first Frame
*
*/
public long getFirstFrameMaxSize() {
return firstFrameMaxSize_;
}
public static final int HAS_PARAMETER_VALUES_FIELD_NUMBER = 4;
private boolean hasParameterValues_;
/**
* optional bool has_parameter_values = 4;
*/
public boolean getHasParameterValues() {
return hasParameterValues_;
}
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 (statementHandle_ != null) {
output.writeMessage(1, getStatementHandle());
}
for (int i = 0; i < parameterValues_.size(); i++) {
output.writeMessage(2, parameterValues_.get(i));
}
if (firstFrameMaxSize_ != 0L) {
output.writeUInt64(3, firstFrameMaxSize_);
}
if (hasParameterValues_ != false) {
output.writeBool(4, hasParameterValues_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (statementHandle_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getStatementHandle());
}
for (int i = 0; i < parameterValues_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, parameterValues_.get(i));
}
if (firstFrameMaxSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, firstFrameMaxSize_);
}
if (hasParameterValues_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, hasParameterValues_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Requests.ExecuteRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.ExecuteRequest 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.ExecuteRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.ExecuteRequest 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.ExecuteRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.ExecuteRequest 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.ExecuteRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.ExecuteRequest 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.ExecuteRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.ExecuteRequest 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.ExecuteRequest 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 ExecuteRequest}
*
*
* Request for Meta#execute(Meta.ConnectionHandle, list, long)
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:ExecuteRequest)
org.apache.calcite.avatica.proto.Requests.ExecuteRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Requests.internal_static_ExecuteRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_ExecuteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.ExecuteRequest.class, org.apache.calcite.avatica.proto.Requests.ExecuteRequest.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Requests.ExecuteRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getParameterValuesFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (statementHandleBuilder_ == null) {
statementHandle_ = null;
} else {
statementHandle_ = null;
statementHandleBuilder_ = null;
}
if (parameterValuesBuilder_ == null) {
parameterValues_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
parameterValuesBuilder_.clear();
}
firstFrameMaxSize_ = 0L;
hasParameterValues_ = false;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Requests.internal_static_ExecuteRequest_descriptor;
}
public org.apache.calcite.avatica.proto.Requests.ExecuteRequest getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Requests.ExecuteRequest.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Requests.ExecuteRequest build() {
org.apache.calcite.avatica.proto.Requests.ExecuteRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Requests.ExecuteRequest buildPartial() {
org.apache.calcite.avatica.proto.Requests.ExecuteRequest result = new org.apache.calcite.avatica.proto.Requests.ExecuteRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (statementHandleBuilder_ == null) {
result.statementHandle_ = statementHandle_;
} else {
result.statementHandle_ = statementHandleBuilder_.build();
}
if (parameterValuesBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
parameterValues_ = java.util.Collections.unmodifiableList(parameterValues_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.parameterValues_ = parameterValues_;
} else {
result.parameterValues_ = parameterValuesBuilder_.build();
}
result.firstFrameMaxSize_ = firstFrameMaxSize_;
result.hasParameterValues_ = hasParameterValues_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Requests.ExecuteRequest) {
return mergeFrom((org.apache.calcite.avatica.proto.Requests.ExecuteRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.ExecuteRequest other) {
if (other == org.apache.calcite.avatica.proto.Requests.ExecuteRequest.getDefaultInstance()) return this;
if (other.hasStatementHandle()) {
mergeStatementHandle(other.getStatementHandle());
}
if (parameterValuesBuilder_ == null) {
if (!other.parameterValues_.isEmpty()) {
if (parameterValues_.isEmpty()) {
parameterValues_ = other.parameterValues_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureParameterValuesIsMutable();
parameterValues_.addAll(other.parameterValues_);
}
onChanged();
}
} else {
if (!other.parameterValues_.isEmpty()) {
if (parameterValuesBuilder_.isEmpty()) {
parameterValuesBuilder_.dispose();
parameterValuesBuilder_ = null;
parameterValues_ = other.parameterValues_;
bitField0_ = (bitField0_ & ~0x00000002);
parameterValuesBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getParameterValuesFieldBuilder() : null;
} else {
parameterValuesBuilder_.addAllMessages(other.parameterValues_);
}
}
}
if (other.getFirstFrameMaxSize() != 0L) {
setFirstFrameMaxSize(other.getFirstFrameMaxSize());
}
if (other.getHasParameterValues() != false) {
setHasParameterValues(other.getHasParameterValues());
}
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.ExecuteRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Requests.ExecuteRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.calcite.avatica.proto.Common.StatementHandle statementHandle_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.StatementHandle, org.apache.calcite.avatica.proto.Common.StatementHandle.Builder, org.apache.calcite.avatica.proto.Common.StatementHandleOrBuilder> statementHandleBuilder_;
/**
* optional .StatementHandle statementHandle = 1;
*/
public boolean hasStatementHandle() {
return statementHandleBuilder_ != null || statementHandle_ != null;
}
/**
* optional .StatementHandle statementHandle = 1;
*/
public org.apache.calcite.avatica.proto.Common.StatementHandle getStatementHandle() {
if (statementHandleBuilder_ == null) {
return statementHandle_ == null ? org.apache.calcite.avatica.proto.Common.StatementHandle.getDefaultInstance() : statementHandle_;
} else {
return statementHandleBuilder_.getMessage();
}
}
/**
* optional .StatementHandle statementHandle = 1;
*/
public Builder setStatementHandle(org.apache.calcite.avatica.proto.Common.StatementHandle value) {
if (statementHandleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
statementHandle_ = value;
onChanged();
} else {
statementHandleBuilder_.setMessage(value);
}
return this;
}
/**
* optional .StatementHandle statementHandle = 1;
*/
public Builder setStatementHandle(
org.apache.calcite.avatica.proto.Common.StatementHandle.Builder builderForValue) {
if (statementHandleBuilder_ == null) {
statementHandle_ = builderForValue.build();
onChanged();
} else {
statementHandleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .StatementHandle statementHandle = 1;
*/
public Builder mergeStatementHandle(org.apache.calcite.avatica.proto.Common.StatementHandle value) {
if (statementHandleBuilder_ == null) {
if (statementHandle_ != null) {
statementHandle_ =
org.apache.calcite.avatica.proto.Common.StatementHandle.newBuilder(statementHandle_).mergeFrom(value).buildPartial();
} else {
statementHandle_ = value;
}
onChanged();
} else {
statementHandleBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .StatementHandle statementHandle = 1;
*/
public Builder clearStatementHandle() {
if (statementHandleBuilder_ == null) {
statementHandle_ = null;
onChanged();
} else {
statementHandle_ = null;
statementHandleBuilder_ = null;
}
return this;
}
/**
* optional .StatementHandle statementHandle = 1;
*/
public org.apache.calcite.avatica.proto.Common.StatementHandle.Builder getStatementHandleBuilder() {
onChanged();
return getStatementHandleFieldBuilder().getBuilder();
}
/**
* optional .StatementHandle statementHandle = 1;
*/
public org.apache.calcite.avatica.proto.Common.StatementHandleOrBuilder getStatementHandleOrBuilder() {
if (statementHandleBuilder_ != null) {
return statementHandleBuilder_.getMessageOrBuilder();
} else {
return statementHandle_ == null ?
org.apache.calcite.avatica.proto.Common.StatementHandle.getDefaultInstance() : statementHandle_;
}
}
/**
* optional .StatementHandle statementHandle = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.StatementHandle, org.apache.calcite.avatica.proto.Common.StatementHandle.Builder, org.apache.calcite.avatica.proto.Common.StatementHandleOrBuilder>
getStatementHandleFieldBuilder() {
if (statementHandleBuilder_ == null) {
statementHandleBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.StatementHandle, org.apache.calcite.avatica.proto.Common.StatementHandle.Builder, org.apache.calcite.avatica.proto.Common.StatementHandleOrBuilder>(
getStatementHandle(),
getParentForChildren(),
isClean());
statementHandle_ = null;
}
return statementHandleBuilder_;
}
private java.util.List parameterValues_ =
java.util.Collections.emptyList();
private void ensureParameterValuesIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
parameterValues_ = new java.util.ArrayList(parameterValues_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.calcite.avatica.proto.Common.TypedValue, org.apache.calcite.avatica.proto.Common.TypedValue.Builder, org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder> parameterValuesBuilder_;
/**
* repeated .TypedValue parameter_values = 2;
*/
public java.util.List getParameterValuesList() {
if (parameterValuesBuilder_ == null) {
return java.util.Collections.unmodifiableList(parameterValues_);
} else {
return parameterValuesBuilder_.getMessageList();
}
}
/**
* repeated .TypedValue parameter_values = 2;
*/
public int getParameterValuesCount() {
if (parameterValuesBuilder_ == null) {
return parameterValues_.size();
} else {
return parameterValuesBuilder_.getCount();
}
}
/**
* repeated .TypedValue parameter_values = 2;
*/
public org.apache.calcite.avatica.proto.Common.TypedValue getParameterValues(int index) {
if (parameterValuesBuilder_ == null) {
return parameterValues_.get(index);
} else {
return parameterValuesBuilder_.getMessage(index);
}
}
/**
* repeated .TypedValue parameter_values = 2;
*/
public Builder setParameterValues(
int index, org.apache.calcite.avatica.proto.Common.TypedValue value) {
if (parameterValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParameterValuesIsMutable();
parameterValues_.set(index, value);
onChanged();
} else {
parameterValuesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .TypedValue parameter_values = 2;
*/
public Builder setParameterValues(
int index, org.apache.calcite.avatica.proto.Common.TypedValue.Builder builderForValue) {
if (parameterValuesBuilder_ == null) {
ensureParameterValuesIsMutable();
parameterValues_.set(index, builderForValue.build());
onChanged();
} else {
parameterValuesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .TypedValue parameter_values = 2;
*/
public Builder addParameterValues(org.apache.calcite.avatica.proto.Common.TypedValue value) {
if (parameterValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParameterValuesIsMutable();
parameterValues_.add(value);
onChanged();
} else {
parameterValuesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .TypedValue parameter_values = 2;
*/
public Builder addParameterValues(
int index, org.apache.calcite.avatica.proto.Common.TypedValue value) {
if (parameterValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParameterValuesIsMutable();
parameterValues_.add(index, value);
onChanged();
} else {
parameterValuesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .TypedValue parameter_values = 2;
*/
public Builder addParameterValues(
org.apache.calcite.avatica.proto.Common.TypedValue.Builder builderForValue) {
if (parameterValuesBuilder_ == null) {
ensureParameterValuesIsMutable();
parameterValues_.add(builderForValue.build());
onChanged();
} else {
parameterValuesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .TypedValue parameter_values = 2;
*/
public Builder addParameterValues(
int index, org.apache.calcite.avatica.proto.Common.TypedValue.Builder builderForValue) {
if (parameterValuesBuilder_ == null) {
ensureParameterValuesIsMutable();
parameterValues_.add(index, builderForValue.build());
onChanged();
} else {
parameterValuesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .TypedValue parameter_values = 2;
*/
public Builder addAllParameterValues(
java.lang.Iterable extends org.apache.calcite.avatica.proto.Common.TypedValue> values) {
if (parameterValuesBuilder_ == null) {
ensureParameterValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, parameterValues_);
onChanged();
} else {
parameterValuesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .TypedValue parameter_values = 2;
*/
public Builder clearParameterValues() {
if (parameterValuesBuilder_ == null) {
parameterValues_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
parameterValuesBuilder_.clear();
}
return this;
}
/**
* repeated .TypedValue parameter_values = 2;
*/
public Builder removeParameterValues(int index) {
if (parameterValuesBuilder_ == null) {
ensureParameterValuesIsMutable();
parameterValues_.remove(index);
onChanged();
} else {
parameterValuesBuilder_.remove(index);
}
return this;
}
/**
* repeated .TypedValue parameter_values = 2;
*/
public org.apache.calcite.avatica.proto.Common.TypedValue.Builder getParameterValuesBuilder(
int index) {
return getParameterValuesFieldBuilder().getBuilder(index);
}
/**
* repeated .TypedValue parameter_values = 2;
*/
public org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder getParameterValuesOrBuilder(
int index) {
if (parameterValuesBuilder_ == null) {
return parameterValues_.get(index); } else {
return parameterValuesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .TypedValue parameter_values = 2;
*/
public java.util.List extends org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder>
getParameterValuesOrBuilderList() {
if (parameterValuesBuilder_ != null) {
return parameterValuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(parameterValues_);
}
}
/**
* repeated .TypedValue parameter_values = 2;
*/
public org.apache.calcite.avatica.proto.Common.TypedValue.Builder addParameterValuesBuilder() {
return getParameterValuesFieldBuilder().addBuilder(
org.apache.calcite.avatica.proto.Common.TypedValue.getDefaultInstance());
}
/**
* repeated .TypedValue parameter_values = 2;
*/
public org.apache.calcite.avatica.proto.Common.TypedValue.Builder addParameterValuesBuilder(
int index) {
return getParameterValuesFieldBuilder().addBuilder(
index, org.apache.calcite.avatica.proto.Common.TypedValue.getDefaultInstance());
}
/**
* repeated .TypedValue parameter_values = 2;
*/
public java.util.List
getParameterValuesBuilderList() {
return getParameterValuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.calcite.avatica.proto.Common.TypedValue, org.apache.calcite.avatica.proto.Common.TypedValue.Builder, org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder>
getParameterValuesFieldBuilder() {
if (parameterValuesBuilder_ == null) {
parameterValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.calcite.avatica.proto.Common.TypedValue, org.apache.calcite.avatica.proto.Common.TypedValue.Builder, org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder>(
parameterValues_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
parameterValues_ = null;
}
return parameterValuesBuilder_;
}
private long firstFrameMaxSize_ ;
/**
* optional uint64 first_frame_max_size = 3;
*
*
* The maximum number of rows to return in the first Frame
*
*/
public long getFirstFrameMaxSize() {
return firstFrameMaxSize_;
}
/**
* optional uint64 first_frame_max_size = 3;
*
*
* The maximum number of rows to return in the first Frame
*
*/
public Builder setFirstFrameMaxSize(long value) {
firstFrameMaxSize_ = value;
onChanged();
return this;
}
/**
* optional uint64 first_frame_max_size = 3;
*
*
* The maximum number of rows to return in the first Frame
*
*/
public Builder clearFirstFrameMaxSize() {
firstFrameMaxSize_ = 0L;
onChanged();
return this;
}
private boolean hasParameterValues_ ;
/**
* optional bool has_parameter_values = 4;
*/
public boolean getHasParameterValues() {
return hasParameterValues_;
}
/**
* optional bool has_parameter_values = 4;
*/
public Builder setHasParameterValues(boolean value) {
hasParameterValues_ = value;
onChanged();
return this;
}
/**
* optional bool has_parameter_values = 4;
*/
public Builder clearHasParameterValues() {
hasParameterValues_ = false;
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:ExecuteRequest)
}
// @@protoc_insertion_point(class_scope:ExecuteRequest)
private static final org.apache.calcite.avatica.proto.Requests.ExecuteRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Requests.ExecuteRequest();
}
public static org.apache.calcite.avatica.proto.Requests.ExecuteRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExecuteRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new ExecuteRequest(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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.calcite.avatica.proto.Requests.ExecuteRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SyncResultsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:SyncResultsRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string connection_id = 1;
*/
java.lang.String getConnectionId();
/**
* optional string connection_id = 1;
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
/**
* optional uint32 statement_id = 2;
*/
int getStatementId();
/**
* optional .QueryState state = 3;
*/
boolean hasState();
/**
* optional .QueryState state = 3;
*/
org.apache.calcite.avatica.proto.Common.QueryState getState();
/**
* optional .QueryState state = 3;
*/
org.apache.calcite.avatica.proto.Common.QueryStateOrBuilder getStateOrBuilder();
/**
* optional uint64 offset = 4;
*/
long getOffset();
}
/**
* Protobuf type {@code SyncResultsRequest}
*/
public static final class SyncResultsRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:SyncResultsRequest)
SyncResultsRequestOrBuilder {
// Use SyncResultsRequest.newBuilder() to construct.
private SyncResultsRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private SyncResultsRequest() {
connectionId_ = "";
statementId_ = 0;
offset_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private SyncResultsRequest(
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;
}
case 16: {
statementId_ = input.readUInt32();
break;
}
case 26: {
org.apache.calcite.avatica.proto.Common.QueryState.Builder subBuilder = null;
if (state_ != null) {
subBuilder = state_.toBuilder();
}
state_ = input.readMessage(org.apache.calcite.avatica.proto.Common.QueryState.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(state_);
state_ = subBuilder.buildPartial();
}
break;
}
case 32: {
offset_ = input.readUInt64();
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_SyncResultsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_SyncResultsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.SyncResultsRequest.class, org.apache.calcite.avatica.proto.Requests.SyncResultsRequest.Builder.class);
}
public static final int CONNECTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object connectionId_;
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
public static final int STATEMENT_ID_FIELD_NUMBER = 2;
private int statementId_;
/**
* optional uint32 statement_id = 2;
*/
public int getStatementId() {
return statementId_;
}
public static final int STATE_FIELD_NUMBER = 3;
private org.apache.calcite.avatica.proto.Common.QueryState state_;
/**
* optional .QueryState state = 3;
*/
public boolean hasState() {
return state_ != null;
}
/**
* optional .QueryState state = 3;
*/
public org.apache.calcite.avatica.proto.Common.QueryState getState() {
return state_ == null ? org.apache.calcite.avatica.proto.Common.QueryState.getDefaultInstance() : state_;
}
/**
* optional .QueryState state = 3;
*/
public org.apache.calcite.avatica.proto.Common.QueryStateOrBuilder getStateOrBuilder() {
return getState();
}
public static final int OFFSET_FIELD_NUMBER = 4;
private long offset_;
/**
* optional uint64 offset = 4;
*/
public long getOffset() {
return offset_;
}
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_);
}
if (statementId_ != 0) {
output.writeUInt32(2, statementId_);
}
if (state_ != null) {
output.writeMessage(3, getState());
}
if (offset_ != 0L) {
output.writeUInt64(4, offset_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getConnectionIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, connectionId_);
}
if (statementId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, statementId_);
}
if (state_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getState());
}
if (offset_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, offset_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Requests.SyncResultsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.SyncResultsRequest 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.SyncResultsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.SyncResultsRequest 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.SyncResultsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.SyncResultsRequest 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.SyncResultsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.SyncResultsRequest 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.SyncResultsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.SyncResultsRequest 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.SyncResultsRequest 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 SyncResultsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:SyncResultsRequest)
org.apache.calcite.avatica.proto.Requests.SyncResultsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Requests.internal_static_SyncResultsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_SyncResultsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.SyncResultsRequest.class, org.apache.calcite.avatica.proto.Requests.SyncResultsRequest.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Requests.SyncResultsRequest.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_ = "";
statementId_ = 0;
if (stateBuilder_ == null) {
state_ = null;
} else {
state_ = null;
stateBuilder_ = null;
}
offset_ = 0L;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Requests.internal_static_SyncResultsRequest_descriptor;
}
public org.apache.calcite.avatica.proto.Requests.SyncResultsRequest getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Requests.SyncResultsRequest.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Requests.SyncResultsRequest build() {
org.apache.calcite.avatica.proto.Requests.SyncResultsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Requests.SyncResultsRequest buildPartial() {
org.apache.calcite.avatica.proto.Requests.SyncResultsRequest result = new org.apache.calcite.avatica.proto.Requests.SyncResultsRequest(this);
result.connectionId_ = connectionId_;
result.statementId_ = statementId_;
if (stateBuilder_ == null) {
result.state_ = state_;
} else {
result.state_ = stateBuilder_.build();
}
result.offset_ = offset_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Requests.SyncResultsRequest) {
return mergeFrom((org.apache.calcite.avatica.proto.Requests.SyncResultsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.SyncResultsRequest other) {
if (other == org.apache.calcite.avatica.proto.Requests.SyncResultsRequest.getDefaultInstance()) return this;
if (!other.getConnectionId().isEmpty()) {
connectionId_ = other.connectionId_;
onChanged();
}
if (other.getStatementId() != 0) {
setStatementId(other.getStatementId());
}
if (other.hasState()) {
mergeState(other.getState());
}
if (other.getOffset() != 0L) {
setOffset(other.getOffset());
}
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.SyncResultsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Requests.SyncResultsRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object connectionId_ = "";
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
connectionId_ = value;
onChanged();
return this;
}
private int statementId_ ;
/**
* optional uint32 statement_id = 2;
*/
public int getStatementId() {
return statementId_;
}
/**
* optional uint32 statement_id = 2;
*/
public Builder setStatementId(int value) {
statementId_ = value;
onChanged();
return this;
}
/**
* optional uint32 statement_id = 2;
*/
public Builder clearStatementId() {
statementId_ = 0;
onChanged();
return this;
}
private org.apache.calcite.avatica.proto.Common.QueryState state_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.QueryState, org.apache.calcite.avatica.proto.Common.QueryState.Builder, org.apache.calcite.avatica.proto.Common.QueryStateOrBuilder> stateBuilder_;
/**
* optional .QueryState state = 3;
*/
public boolean hasState() {
return stateBuilder_ != null || state_ != null;
}
/**
* optional .QueryState state = 3;
*/
public org.apache.calcite.avatica.proto.Common.QueryState getState() {
if (stateBuilder_ == null) {
return state_ == null ? org.apache.calcite.avatica.proto.Common.QueryState.getDefaultInstance() : state_;
} else {
return stateBuilder_.getMessage();
}
}
/**
* optional .QueryState state = 3;
*/
public Builder setState(org.apache.calcite.avatica.proto.Common.QueryState value) {
if (stateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
state_ = value;
onChanged();
} else {
stateBuilder_.setMessage(value);
}
return this;
}
/**
* optional .QueryState state = 3;
*/
public Builder setState(
org.apache.calcite.avatica.proto.Common.QueryState.Builder builderForValue) {
if (stateBuilder_ == null) {
state_ = builderForValue.build();
onChanged();
} else {
stateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .QueryState state = 3;
*/
public Builder mergeState(org.apache.calcite.avatica.proto.Common.QueryState value) {
if (stateBuilder_ == null) {
if (state_ != null) {
state_ =
org.apache.calcite.avatica.proto.Common.QueryState.newBuilder(state_).mergeFrom(value).buildPartial();
} else {
state_ = value;
}
onChanged();
} else {
stateBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .QueryState state = 3;
*/
public Builder clearState() {
if (stateBuilder_ == null) {
state_ = null;
onChanged();
} else {
state_ = null;
stateBuilder_ = null;
}
return this;
}
/**
* optional .QueryState state = 3;
*/
public org.apache.calcite.avatica.proto.Common.QueryState.Builder getStateBuilder() {
onChanged();
return getStateFieldBuilder().getBuilder();
}
/**
* optional .QueryState state = 3;
*/
public org.apache.calcite.avatica.proto.Common.QueryStateOrBuilder getStateOrBuilder() {
if (stateBuilder_ != null) {
return stateBuilder_.getMessageOrBuilder();
} else {
return state_ == null ?
org.apache.calcite.avatica.proto.Common.QueryState.getDefaultInstance() : state_;
}
}
/**
* optional .QueryState state = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.QueryState, org.apache.calcite.avatica.proto.Common.QueryState.Builder, org.apache.calcite.avatica.proto.Common.QueryStateOrBuilder>
getStateFieldBuilder() {
if (stateBuilder_ == null) {
stateBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.QueryState, org.apache.calcite.avatica.proto.Common.QueryState.Builder, org.apache.calcite.avatica.proto.Common.QueryStateOrBuilder>(
getState(),
getParentForChildren(),
isClean());
state_ = null;
}
return stateBuilder_;
}
private long offset_ ;
/**
* optional uint64 offset = 4;
*/
public long getOffset() {
return offset_;
}
/**
* optional uint64 offset = 4;
*/
public Builder setOffset(long value) {
offset_ = value;
onChanged();
return this;
}
/**
* optional uint64 offset = 4;
*/
public Builder clearOffset() {
offset_ = 0L;
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:SyncResultsRequest)
}
// @@protoc_insertion_point(class_scope:SyncResultsRequest)
private static final org.apache.calcite.avatica.proto.Requests.SyncResultsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Requests.SyncResultsRequest();
}
public static org.apache.calcite.avatica.proto.Requests.SyncResultsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SyncResultsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new SyncResultsRequest(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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.calcite.avatica.proto.Requests.SyncResultsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CommitRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:CommitRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string connection_id = 1;
*/
java.lang.String getConnectionId();
/**
* optional string connection_id = 1;
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
}
/**
* Protobuf type {@code CommitRequest}
*
*
* Request to invoke a commit on a Connection
*
*/
public static final class CommitRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:CommitRequest)
CommitRequestOrBuilder {
// Use CommitRequest.newBuilder() to construct.
private CommitRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private CommitRequest() {
connectionId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CommitRequest(
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_CommitRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_CommitRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.CommitRequest.class, org.apache.calcite.avatica.proto.Requests.CommitRequest.Builder.class);
}
public static final int CONNECTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object connectionId_;
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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.CommitRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.CommitRequest 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.CommitRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.CommitRequest 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.CommitRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.CommitRequest 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.CommitRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.CommitRequest 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.CommitRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.CommitRequest 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.CommitRequest 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 CommitRequest}
*
*
* Request to invoke a commit on a Connection
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:CommitRequest)
org.apache.calcite.avatica.proto.Requests.CommitRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Requests.internal_static_CommitRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_CommitRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.CommitRequest.class, org.apache.calcite.avatica.proto.Requests.CommitRequest.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Requests.CommitRequest.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_CommitRequest_descriptor;
}
public org.apache.calcite.avatica.proto.Requests.CommitRequest getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Requests.CommitRequest.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Requests.CommitRequest build() {
org.apache.calcite.avatica.proto.Requests.CommitRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Requests.CommitRequest buildPartial() {
org.apache.calcite.avatica.proto.Requests.CommitRequest result = new org.apache.calcite.avatica.proto.Requests.CommitRequest(this);
result.connectionId_ = connectionId_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Requests.CommitRequest) {
return mergeFrom((org.apache.calcite.avatica.proto.Requests.CommitRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.CommitRequest other) {
if (other == org.apache.calcite.avatica.proto.Requests.CommitRequest.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.CommitRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Requests.CommitRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object connectionId_ = "";
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
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:CommitRequest)
}
// @@protoc_insertion_point(class_scope:CommitRequest)
private static final org.apache.calcite.avatica.proto.Requests.CommitRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Requests.CommitRequest();
}
public static org.apache.calcite.avatica.proto.Requests.CommitRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CommitRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new CommitRequest(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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.calcite.avatica.proto.Requests.CommitRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RollbackRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:RollbackRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string connection_id = 1;
*/
java.lang.String getConnectionId();
/**
* optional string connection_id = 1;
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
}
/**
* Protobuf type {@code RollbackRequest}
*
*
* Request to invoke rollback on a Connection
*
*/
public static final class RollbackRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:RollbackRequest)
RollbackRequestOrBuilder {
// Use RollbackRequest.newBuilder() to construct.
private RollbackRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private RollbackRequest() {
connectionId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private RollbackRequest(
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_RollbackRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_RollbackRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.RollbackRequest.class, org.apache.calcite.avatica.proto.Requests.RollbackRequest.Builder.class);
}
public static final int CONNECTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object connectionId_;
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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.RollbackRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.RollbackRequest 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.RollbackRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.RollbackRequest 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.RollbackRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.RollbackRequest 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.RollbackRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.RollbackRequest 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.RollbackRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.RollbackRequest 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.RollbackRequest 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 RollbackRequest}
*
*
* Request to invoke rollback on a Connection
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:RollbackRequest)
org.apache.calcite.avatica.proto.Requests.RollbackRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Requests.internal_static_RollbackRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_RollbackRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.RollbackRequest.class, org.apache.calcite.avatica.proto.Requests.RollbackRequest.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Requests.RollbackRequest.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_RollbackRequest_descriptor;
}
public org.apache.calcite.avatica.proto.Requests.RollbackRequest getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Requests.RollbackRequest.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Requests.RollbackRequest build() {
org.apache.calcite.avatica.proto.Requests.RollbackRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Requests.RollbackRequest buildPartial() {
org.apache.calcite.avatica.proto.Requests.RollbackRequest result = new org.apache.calcite.avatica.proto.Requests.RollbackRequest(this);
result.connectionId_ = connectionId_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Requests.RollbackRequest) {
return mergeFrom((org.apache.calcite.avatica.proto.Requests.RollbackRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.RollbackRequest other) {
if (other == org.apache.calcite.avatica.proto.Requests.RollbackRequest.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.RollbackRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Requests.RollbackRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object connectionId_ = "";
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
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:RollbackRequest)
}
// @@protoc_insertion_point(class_scope:RollbackRequest)
private static final org.apache.calcite.avatica.proto.Requests.RollbackRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Requests.RollbackRequest();
}
public static org.apache.calcite.avatica.proto.Requests.RollbackRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public RollbackRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new RollbackRequest(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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.calcite.avatica.proto.Requests.RollbackRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PrepareAndExecuteBatchRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:PrepareAndExecuteBatchRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string connection_id = 1;
*/
java.lang.String getConnectionId();
/**
* optional string connection_id = 1;
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
/**
* optional uint32 statement_id = 2;
*/
int getStatementId();
/**
* repeated string sql_commands = 3;
*/
com.google.protobuf.ProtocolStringList
getSqlCommandsList();
/**
* repeated string sql_commands = 3;
*/
int getSqlCommandsCount();
/**
* repeated string sql_commands = 3;
*/
java.lang.String getSqlCommands(int index);
/**
* repeated string sql_commands = 3;
*/
com.google.protobuf.ByteString
getSqlCommandsBytes(int index);
}
/**
* Protobuf type {@code PrepareAndExecuteBatchRequest}
*
*
* Request to prepare and execute a collection of sql statements.
*
*/
public static final class PrepareAndExecuteBatchRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:PrepareAndExecuteBatchRequest)
PrepareAndExecuteBatchRequestOrBuilder {
// Use PrepareAndExecuteBatchRequest.newBuilder() to construct.
private PrepareAndExecuteBatchRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private PrepareAndExecuteBatchRequest() {
connectionId_ = "";
statementId_ = 0;
sqlCommands_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private PrepareAndExecuteBatchRequest(
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;
}
case 16: {
statementId_ = input.readUInt32();
break;
}
case 26: {
String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
sqlCommands_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
sqlCommands_.add(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_ & 0x00000004) == 0x00000004)) {
sqlCommands_ = sqlCommands_.getUnmodifiableView();
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Requests.internal_static_PrepareAndExecuteBatchRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_PrepareAndExecuteBatchRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest.class, org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest.Builder.class);
}
private int bitField0_;
public static final int CONNECTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object connectionId_;
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
public static final int STATEMENT_ID_FIELD_NUMBER = 2;
private int statementId_;
/**
* optional uint32 statement_id = 2;
*/
public int getStatementId() {
return statementId_;
}
public static final int SQL_COMMANDS_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList sqlCommands_;
/**
* repeated string sql_commands = 3;
*/
public com.google.protobuf.ProtocolStringList
getSqlCommandsList() {
return sqlCommands_;
}
/**
* repeated string sql_commands = 3;
*/
public int getSqlCommandsCount() {
return sqlCommands_.size();
}
/**
* repeated string sql_commands = 3;
*/
public java.lang.String getSqlCommands(int index) {
return sqlCommands_.get(index);
}
/**
* repeated string sql_commands = 3;
*/
public com.google.protobuf.ByteString
getSqlCommandsBytes(int index) {
return sqlCommands_.getByteString(index);
}
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_);
}
if (statementId_ != 0) {
output.writeUInt32(2, statementId_);
}
for (int i = 0; i < sqlCommands_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, sqlCommands_.getRaw(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getConnectionIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, connectionId_);
}
if (statementId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, statementId_);
}
{
int dataSize = 0;
for (int i = 0; i < sqlCommands_.size(); i++) {
dataSize += computeStringSizeNoTag(sqlCommands_.getRaw(i));
}
size += dataSize;
size += 1 * getSqlCommandsList().size();
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest 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.PrepareAndExecuteBatchRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest 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.PrepareAndExecuteBatchRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest 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.PrepareAndExecuteBatchRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest 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.PrepareAndExecuteBatchRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest 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.PrepareAndExecuteBatchRequest 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 PrepareAndExecuteBatchRequest}
*
*
* Request to prepare and execute a collection of sql statements.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:PrepareAndExecuteBatchRequest)
org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Requests.internal_static_PrepareAndExecuteBatchRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_PrepareAndExecuteBatchRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest.class, org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest.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_ = "";
statementId_ = 0;
sqlCommands_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Requests.internal_static_PrepareAndExecuteBatchRequest_descriptor;
}
public org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest build() {
org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest buildPartial() {
org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest result = new org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.connectionId_ = connectionId_;
result.statementId_ = statementId_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
sqlCommands_ = sqlCommands_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.sqlCommands_ = sqlCommands_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest) {
return mergeFrom((org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest other) {
if (other == org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest.getDefaultInstance()) return this;
if (!other.getConnectionId().isEmpty()) {
connectionId_ = other.connectionId_;
onChanged();
}
if (other.getStatementId() != 0) {
setStatementId(other.getStatementId());
}
if (!other.sqlCommands_.isEmpty()) {
if (sqlCommands_.isEmpty()) {
sqlCommands_ = other.sqlCommands_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureSqlCommandsIsMutable();
sqlCommands_.addAll(other.sqlCommands_);
}
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.PrepareAndExecuteBatchRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object connectionId_ = "";
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
connectionId_ = value;
onChanged();
return this;
}
private int statementId_ ;
/**
* optional uint32 statement_id = 2;
*/
public int getStatementId() {
return statementId_;
}
/**
* optional uint32 statement_id = 2;
*/
public Builder setStatementId(int value) {
statementId_ = value;
onChanged();
return this;
}
/**
* optional uint32 statement_id = 2;
*/
public Builder clearStatementId() {
statementId_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList sqlCommands_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSqlCommandsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
sqlCommands_ = new com.google.protobuf.LazyStringArrayList(sqlCommands_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated string sql_commands = 3;
*/
public com.google.protobuf.ProtocolStringList
getSqlCommandsList() {
return sqlCommands_.getUnmodifiableView();
}
/**
* repeated string sql_commands = 3;
*/
public int getSqlCommandsCount() {
return sqlCommands_.size();
}
/**
* repeated string sql_commands = 3;
*/
public java.lang.String getSqlCommands(int index) {
return sqlCommands_.get(index);
}
/**
* repeated string sql_commands = 3;
*/
public com.google.protobuf.ByteString
getSqlCommandsBytes(int index) {
return sqlCommands_.getByteString(index);
}
/**
* repeated string sql_commands = 3;
*/
public Builder setSqlCommands(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSqlCommandsIsMutable();
sqlCommands_.set(index, value);
onChanged();
return this;
}
/**
* repeated string sql_commands = 3;
*/
public Builder addSqlCommands(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSqlCommandsIsMutable();
sqlCommands_.add(value);
onChanged();
return this;
}
/**
* repeated string sql_commands = 3;
*/
public Builder addAllSqlCommands(
java.lang.Iterable values) {
ensureSqlCommandsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sqlCommands_);
onChanged();
return this;
}
/**
* repeated string sql_commands = 3;
*/
public Builder clearSqlCommands() {
sqlCommands_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* repeated string sql_commands = 3;
*/
public Builder addSqlCommandsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureSqlCommandsIsMutable();
sqlCommands_.add(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:PrepareAndExecuteBatchRequest)
}
// @@protoc_insertion_point(class_scope:PrepareAndExecuteBatchRequest)
private static final org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest();
}
public static org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PrepareAndExecuteBatchRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new PrepareAndExecuteBatchRequest(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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteBatchRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateBatchOrBuilder extends
// @@protoc_insertion_point(interface_extends:UpdateBatch)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .TypedValue parameter_values = 1;
*/
java.util.List
getParameterValuesList();
/**
* repeated .TypedValue parameter_values = 1;
*/
org.apache.calcite.avatica.proto.Common.TypedValue getParameterValues(int index);
/**
* repeated .TypedValue parameter_values = 1;
*/
int getParameterValuesCount();
/**
* repeated .TypedValue parameter_values = 1;
*/
java.util.List extends org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder>
getParameterValuesOrBuilderList();
/**
* repeated .TypedValue parameter_values = 1;
*/
org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder getParameterValuesOrBuilder(
int index);
}
/**
* Protobuf type {@code UpdateBatch}
*
*
* Each command is a list of TypedValues
*
*/
public static final class UpdateBatch extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:UpdateBatch)
UpdateBatchOrBuilder {
// Use UpdateBatch.newBuilder() to construct.
private UpdateBatch(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private UpdateBatch() {
parameterValues_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private UpdateBatch(
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: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
parameterValues_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
parameterValues_.add(input.readMessage(org.apache.calcite.avatica.proto.Common.TypedValue.parser(), extensionRegistry));
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_ & 0x00000001) == 0x00000001)) {
parameterValues_ = java.util.Collections.unmodifiableList(parameterValues_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Requests.internal_static_UpdateBatch_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_UpdateBatch_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.UpdateBatch.class, org.apache.calcite.avatica.proto.Requests.UpdateBatch.Builder.class);
}
public static final int PARAMETER_VALUES_FIELD_NUMBER = 1;
private java.util.List parameterValues_;
/**
* repeated .TypedValue parameter_values = 1;
*/
public java.util.List getParameterValuesList() {
return parameterValues_;
}
/**
* repeated .TypedValue parameter_values = 1;
*/
public java.util.List extends org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder>
getParameterValuesOrBuilderList() {
return parameterValues_;
}
/**
* repeated .TypedValue parameter_values = 1;
*/
public int getParameterValuesCount() {
return parameterValues_.size();
}
/**
* repeated .TypedValue parameter_values = 1;
*/
public org.apache.calcite.avatica.proto.Common.TypedValue getParameterValues(int index) {
return parameterValues_.get(index);
}
/**
* repeated .TypedValue parameter_values = 1;
*/
public org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder getParameterValuesOrBuilder(
int index) {
return parameterValues_.get(index);
}
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 {
for (int i = 0; i < parameterValues_.size(); i++) {
output.writeMessage(1, parameterValues_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < parameterValues_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, parameterValues_.get(i));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Requests.UpdateBatch parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.UpdateBatch 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.UpdateBatch parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.UpdateBatch 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.UpdateBatch parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.UpdateBatch 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.UpdateBatch parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.UpdateBatch 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.UpdateBatch parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.UpdateBatch 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.UpdateBatch 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 UpdateBatch}
*
*
* Each command is a list of TypedValues
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:UpdateBatch)
org.apache.calcite.avatica.proto.Requests.UpdateBatchOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Requests.internal_static_UpdateBatch_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_UpdateBatch_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.UpdateBatch.class, org.apache.calcite.avatica.proto.Requests.UpdateBatch.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Requests.UpdateBatch.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getParameterValuesFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (parameterValuesBuilder_ == null) {
parameterValues_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
parameterValuesBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Requests.internal_static_UpdateBatch_descriptor;
}
public org.apache.calcite.avatica.proto.Requests.UpdateBatch getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Requests.UpdateBatch.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Requests.UpdateBatch build() {
org.apache.calcite.avatica.proto.Requests.UpdateBatch result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Requests.UpdateBatch buildPartial() {
org.apache.calcite.avatica.proto.Requests.UpdateBatch result = new org.apache.calcite.avatica.proto.Requests.UpdateBatch(this);
int from_bitField0_ = bitField0_;
if (parameterValuesBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
parameterValues_ = java.util.Collections.unmodifiableList(parameterValues_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.parameterValues_ = parameterValues_;
} else {
result.parameterValues_ = parameterValuesBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Requests.UpdateBatch) {
return mergeFrom((org.apache.calcite.avatica.proto.Requests.UpdateBatch)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.UpdateBatch other) {
if (other == org.apache.calcite.avatica.proto.Requests.UpdateBatch.getDefaultInstance()) return this;
if (parameterValuesBuilder_ == null) {
if (!other.parameterValues_.isEmpty()) {
if (parameterValues_.isEmpty()) {
parameterValues_ = other.parameterValues_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureParameterValuesIsMutable();
parameterValues_.addAll(other.parameterValues_);
}
onChanged();
}
} else {
if (!other.parameterValues_.isEmpty()) {
if (parameterValuesBuilder_.isEmpty()) {
parameterValuesBuilder_.dispose();
parameterValuesBuilder_ = null;
parameterValues_ = other.parameterValues_;
bitField0_ = (bitField0_ & ~0x00000001);
parameterValuesBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getParameterValuesFieldBuilder() : null;
} else {
parameterValuesBuilder_.addAllMessages(other.parameterValues_);
}
}
}
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.UpdateBatch parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Requests.UpdateBatch) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List parameterValues_ =
java.util.Collections.emptyList();
private void ensureParameterValuesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
parameterValues_ = new java.util.ArrayList(parameterValues_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.calcite.avatica.proto.Common.TypedValue, org.apache.calcite.avatica.proto.Common.TypedValue.Builder, org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder> parameterValuesBuilder_;
/**
* repeated .TypedValue parameter_values = 1;
*/
public java.util.List getParameterValuesList() {
if (parameterValuesBuilder_ == null) {
return java.util.Collections.unmodifiableList(parameterValues_);
} else {
return parameterValuesBuilder_.getMessageList();
}
}
/**
* repeated .TypedValue parameter_values = 1;
*/
public int getParameterValuesCount() {
if (parameterValuesBuilder_ == null) {
return parameterValues_.size();
} else {
return parameterValuesBuilder_.getCount();
}
}
/**
* repeated .TypedValue parameter_values = 1;
*/
public org.apache.calcite.avatica.proto.Common.TypedValue getParameterValues(int index) {
if (parameterValuesBuilder_ == null) {
return parameterValues_.get(index);
} else {
return parameterValuesBuilder_.getMessage(index);
}
}
/**
* repeated .TypedValue parameter_values = 1;
*/
public Builder setParameterValues(
int index, org.apache.calcite.avatica.proto.Common.TypedValue value) {
if (parameterValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParameterValuesIsMutable();
parameterValues_.set(index, value);
onChanged();
} else {
parameterValuesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .TypedValue parameter_values = 1;
*/
public Builder setParameterValues(
int index, org.apache.calcite.avatica.proto.Common.TypedValue.Builder builderForValue) {
if (parameterValuesBuilder_ == null) {
ensureParameterValuesIsMutable();
parameterValues_.set(index, builderForValue.build());
onChanged();
} else {
parameterValuesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .TypedValue parameter_values = 1;
*/
public Builder addParameterValues(org.apache.calcite.avatica.proto.Common.TypedValue value) {
if (parameterValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParameterValuesIsMutable();
parameterValues_.add(value);
onChanged();
} else {
parameterValuesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .TypedValue parameter_values = 1;
*/
public Builder addParameterValues(
int index, org.apache.calcite.avatica.proto.Common.TypedValue value) {
if (parameterValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParameterValuesIsMutable();
parameterValues_.add(index, value);
onChanged();
} else {
parameterValuesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .TypedValue parameter_values = 1;
*/
public Builder addParameterValues(
org.apache.calcite.avatica.proto.Common.TypedValue.Builder builderForValue) {
if (parameterValuesBuilder_ == null) {
ensureParameterValuesIsMutable();
parameterValues_.add(builderForValue.build());
onChanged();
} else {
parameterValuesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .TypedValue parameter_values = 1;
*/
public Builder addParameterValues(
int index, org.apache.calcite.avatica.proto.Common.TypedValue.Builder builderForValue) {
if (parameterValuesBuilder_ == null) {
ensureParameterValuesIsMutable();
parameterValues_.add(index, builderForValue.build());
onChanged();
} else {
parameterValuesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .TypedValue parameter_values = 1;
*/
public Builder addAllParameterValues(
java.lang.Iterable extends org.apache.calcite.avatica.proto.Common.TypedValue> values) {
if (parameterValuesBuilder_ == null) {
ensureParameterValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, parameterValues_);
onChanged();
} else {
parameterValuesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .TypedValue parameter_values = 1;
*/
public Builder clearParameterValues() {
if (parameterValuesBuilder_ == null) {
parameterValues_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
parameterValuesBuilder_.clear();
}
return this;
}
/**
* repeated .TypedValue parameter_values = 1;
*/
public Builder removeParameterValues(int index) {
if (parameterValuesBuilder_ == null) {
ensureParameterValuesIsMutable();
parameterValues_.remove(index);
onChanged();
} else {
parameterValuesBuilder_.remove(index);
}
return this;
}
/**
* repeated .TypedValue parameter_values = 1;
*/
public org.apache.calcite.avatica.proto.Common.TypedValue.Builder getParameterValuesBuilder(
int index) {
return getParameterValuesFieldBuilder().getBuilder(index);
}
/**
* repeated .TypedValue parameter_values = 1;
*/
public org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder getParameterValuesOrBuilder(
int index) {
if (parameterValuesBuilder_ == null) {
return parameterValues_.get(index); } else {
return parameterValuesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .TypedValue parameter_values = 1;
*/
public java.util.List extends org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder>
getParameterValuesOrBuilderList() {
if (parameterValuesBuilder_ != null) {
return parameterValuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(parameterValues_);
}
}
/**
* repeated .TypedValue parameter_values = 1;
*/
public org.apache.calcite.avatica.proto.Common.TypedValue.Builder addParameterValuesBuilder() {
return getParameterValuesFieldBuilder().addBuilder(
org.apache.calcite.avatica.proto.Common.TypedValue.getDefaultInstance());
}
/**
* repeated .TypedValue parameter_values = 1;
*/
public org.apache.calcite.avatica.proto.Common.TypedValue.Builder addParameterValuesBuilder(
int index) {
return getParameterValuesFieldBuilder().addBuilder(
index, org.apache.calcite.avatica.proto.Common.TypedValue.getDefaultInstance());
}
/**
* repeated .TypedValue parameter_values = 1;
*/
public java.util.List
getParameterValuesBuilderList() {
return getParameterValuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.calcite.avatica.proto.Common.TypedValue, org.apache.calcite.avatica.proto.Common.TypedValue.Builder, org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder>
getParameterValuesFieldBuilder() {
if (parameterValuesBuilder_ == null) {
parameterValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.calcite.avatica.proto.Common.TypedValue, org.apache.calcite.avatica.proto.Common.TypedValue.Builder, org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder>(
parameterValues_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
parameterValues_ = null;
}
return parameterValuesBuilder_;
}
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:UpdateBatch)
}
// @@protoc_insertion_point(class_scope:UpdateBatch)
private static final org.apache.calcite.avatica.proto.Requests.UpdateBatch DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Requests.UpdateBatch();
}
public static org.apache.calcite.avatica.proto.Requests.UpdateBatch getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public UpdateBatch parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new UpdateBatch(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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.calcite.avatica.proto.Requests.UpdateBatch getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteBatchRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:ExecuteBatchRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string connection_id = 1;
*/
java.lang.String getConnectionId();
/**
* optional string connection_id = 1;
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
/**
* optional uint32 statement_id = 2;
*/
int getStatementId();
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
java.util.List
getUpdatesList();
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
org.apache.calcite.avatica.proto.Requests.UpdateBatch getUpdates(int index);
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
int getUpdatesCount();
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
java.util.List extends org.apache.calcite.avatica.proto.Requests.UpdateBatchOrBuilder>
getUpdatesOrBuilderList();
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
org.apache.calcite.avatica.proto.Requests.UpdateBatchOrBuilder getUpdatesOrBuilder(
int index);
}
/**
* Protobuf type {@code ExecuteBatchRequest}
*/
public static final class ExecuteBatchRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:ExecuteBatchRequest)
ExecuteBatchRequestOrBuilder {
// Use ExecuteBatchRequest.newBuilder() to construct.
private ExecuteBatchRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ExecuteBatchRequest() {
connectionId_ = "";
statementId_ = 0;
updates_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ExecuteBatchRequest(
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;
}
case 16: {
statementId_ = input.readUInt32();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
updates_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
updates_.add(input.readMessage(org.apache.calcite.avatica.proto.Requests.UpdateBatch.parser(), extensionRegistry));
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_ & 0x00000004) == 0x00000004)) {
updates_ = java.util.Collections.unmodifiableList(updates_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Requests.internal_static_ExecuteBatchRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_ExecuteBatchRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest.class, org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest.Builder.class);
}
private int bitField0_;
public static final int CONNECTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object connectionId_;
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
public static final int STATEMENT_ID_FIELD_NUMBER = 2;
private int statementId_;
/**
* optional uint32 statement_id = 2;
*/
public int getStatementId() {
return statementId_;
}
public static final int UPDATES_FIELD_NUMBER = 3;
private java.util.List updates_;
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public java.util.List getUpdatesList() {
return updates_;
}
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public java.util.List extends org.apache.calcite.avatica.proto.Requests.UpdateBatchOrBuilder>
getUpdatesOrBuilderList() {
return updates_;
}
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public int getUpdatesCount() {
return updates_.size();
}
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public org.apache.calcite.avatica.proto.Requests.UpdateBatch getUpdates(int index) {
return updates_.get(index);
}
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public org.apache.calcite.avatica.proto.Requests.UpdateBatchOrBuilder getUpdatesOrBuilder(
int index) {
return updates_.get(index);
}
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_);
}
if (statementId_ != 0) {
output.writeUInt32(2, statementId_);
}
for (int i = 0; i < updates_.size(); i++) {
output.writeMessage(3, updates_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getConnectionIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, connectionId_);
}
if (statementId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, statementId_);
}
for (int i = 0; i < updates_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, updates_.get(i));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest 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.ExecuteBatchRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest 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.ExecuteBatchRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest 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.ExecuteBatchRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest 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.ExecuteBatchRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest 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.ExecuteBatchRequest 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 ExecuteBatchRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:ExecuteBatchRequest)
org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Requests.internal_static_ExecuteBatchRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Requests.internal_static_ExecuteBatchRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest.class, org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getUpdatesFieldBuilder();
}
}
public Builder clear() {
super.clear();
connectionId_ = "";
statementId_ = 0;
if (updatesBuilder_ == null) {
updates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
updatesBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Requests.internal_static_ExecuteBatchRequest_descriptor;
}
public org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest build() {
org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest buildPartial() {
org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest result = new org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.connectionId_ = connectionId_;
result.statementId_ = statementId_;
if (updatesBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
updates_ = java.util.Collections.unmodifiableList(updates_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.updates_ = updates_;
} else {
result.updates_ = updatesBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest) {
return mergeFrom((org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest other) {
if (other == org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest.getDefaultInstance()) return this;
if (!other.getConnectionId().isEmpty()) {
connectionId_ = other.connectionId_;
onChanged();
}
if (other.getStatementId() != 0) {
setStatementId(other.getStatementId());
}
if (updatesBuilder_ == null) {
if (!other.updates_.isEmpty()) {
if (updates_.isEmpty()) {
updates_ = other.updates_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureUpdatesIsMutable();
updates_.addAll(other.updates_);
}
onChanged();
}
} else {
if (!other.updates_.isEmpty()) {
if (updatesBuilder_.isEmpty()) {
updatesBuilder_.dispose();
updatesBuilder_ = null;
updates_ = other.updates_;
bitField0_ = (bitField0_ & ~0x00000004);
updatesBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getUpdatesFieldBuilder() : null;
} else {
updatesBuilder_.addAllMessages(other.updates_);
}
}
}
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.ExecuteBatchRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object connectionId_ = "";
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
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;
}
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
* optional string connection_id = 1;
*/
public Builder setConnectionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
connectionId_ = value;
onChanged();
return this;
}
private int statementId_ ;
/**
* optional uint32 statement_id = 2;
*/
public int getStatementId() {
return statementId_;
}
/**
* optional uint32 statement_id = 2;
*/
public Builder setStatementId(int value) {
statementId_ = value;
onChanged();
return this;
}
/**
* optional uint32 statement_id = 2;
*/
public Builder clearStatementId() {
statementId_ = 0;
onChanged();
return this;
}
private java.util.List updates_ =
java.util.Collections.emptyList();
private void ensureUpdatesIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
updates_ = new java.util.ArrayList(updates_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.calcite.avatica.proto.Requests.UpdateBatch, org.apache.calcite.avatica.proto.Requests.UpdateBatch.Builder, org.apache.calcite.avatica.proto.Requests.UpdateBatchOrBuilder> updatesBuilder_;
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public java.util.List getUpdatesList() {
if (updatesBuilder_ == null) {
return java.util.Collections.unmodifiableList(updates_);
} else {
return updatesBuilder_.getMessageList();
}
}
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public int getUpdatesCount() {
if (updatesBuilder_ == null) {
return updates_.size();
} else {
return updatesBuilder_.getCount();
}
}
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public org.apache.calcite.avatica.proto.Requests.UpdateBatch getUpdates(int index) {
if (updatesBuilder_ == null) {
return updates_.get(index);
} else {
return updatesBuilder_.getMessage(index);
}
}
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public Builder setUpdates(
int index, org.apache.calcite.avatica.proto.Requests.UpdateBatch value) {
if (updatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUpdatesIsMutable();
updates_.set(index, value);
onChanged();
} else {
updatesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public Builder setUpdates(
int index, org.apache.calcite.avatica.proto.Requests.UpdateBatch.Builder builderForValue) {
if (updatesBuilder_ == null) {
ensureUpdatesIsMutable();
updates_.set(index, builderForValue.build());
onChanged();
} else {
updatesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public Builder addUpdates(org.apache.calcite.avatica.proto.Requests.UpdateBatch value) {
if (updatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUpdatesIsMutable();
updates_.add(value);
onChanged();
} else {
updatesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public Builder addUpdates(
int index, org.apache.calcite.avatica.proto.Requests.UpdateBatch value) {
if (updatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUpdatesIsMutable();
updates_.add(index, value);
onChanged();
} else {
updatesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public Builder addUpdates(
org.apache.calcite.avatica.proto.Requests.UpdateBatch.Builder builderForValue) {
if (updatesBuilder_ == null) {
ensureUpdatesIsMutable();
updates_.add(builderForValue.build());
onChanged();
} else {
updatesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public Builder addUpdates(
int index, org.apache.calcite.avatica.proto.Requests.UpdateBatch.Builder builderForValue) {
if (updatesBuilder_ == null) {
ensureUpdatesIsMutable();
updates_.add(index, builderForValue.build());
onChanged();
} else {
updatesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public Builder addAllUpdates(
java.lang.Iterable extends org.apache.calcite.avatica.proto.Requests.UpdateBatch> values) {
if (updatesBuilder_ == null) {
ensureUpdatesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, updates_);
onChanged();
} else {
updatesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public Builder clearUpdates() {
if (updatesBuilder_ == null) {
updates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
updatesBuilder_.clear();
}
return this;
}
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public Builder removeUpdates(int index) {
if (updatesBuilder_ == null) {
ensureUpdatesIsMutable();
updates_.remove(index);
onChanged();
} else {
updatesBuilder_.remove(index);
}
return this;
}
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public org.apache.calcite.avatica.proto.Requests.UpdateBatch.Builder getUpdatesBuilder(
int index) {
return getUpdatesFieldBuilder().getBuilder(index);
}
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public org.apache.calcite.avatica.proto.Requests.UpdateBatchOrBuilder getUpdatesOrBuilder(
int index) {
if (updatesBuilder_ == null) {
return updates_.get(index); } else {
return updatesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public java.util.List extends org.apache.calcite.avatica.proto.Requests.UpdateBatchOrBuilder>
getUpdatesOrBuilderList() {
if (updatesBuilder_ != null) {
return updatesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(updates_);
}
}
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public org.apache.calcite.avatica.proto.Requests.UpdateBatch.Builder addUpdatesBuilder() {
return getUpdatesFieldBuilder().addBuilder(
org.apache.calcite.avatica.proto.Requests.UpdateBatch.getDefaultInstance());
}
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public org.apache.calcite.avatica.proto.Requests.UpdateBatch.Builder addUpdatesBuilder(
int index) {
return getUpdatesFieldBuilder().addBuilder(
index, org.apache.calcite.avatica.proto.Requests.UpdateBatch.getDefaultInstance());
}
/**
* repeated .UpdateBatch updates = 3;
*
*
* A batch of updates is a list<list<typevalue>>
*
*/
public java.util.List
getUpdatesBuilderList() {
return getUpdatesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.calcite.avatica.proto.Requests.UpdateBatch, org.apache.calcite.avatica.proto.Requests.UpdateBatch.Builder, org.apache.calcite.avatica.proto.Requests.UpdateBatchOrBuilder>
getUpdatesFieldBuilder() {
if (updatesBuilder_ == null) {
updatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.calcite.avatica.proto.Requests.UpdateBatch, org.apache.calcite.avatica.proto.Requests.UpdateBatch.Builder, org.apache.calcite.avatica.proto.Requests.UpdateBatchOrBuilder>(
updates_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
updates_ = null;
}
return updatesBuilder_;
}
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:ExecuteBatchRequest)
}
// @@protoc_insertion_point(class_scope:ExecuteBatchRequest)
private static final org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest();
}
public static org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExecuteBatchRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new ExecuteBatchRequest(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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.calcite.avatica.proto.Requests.ExecuteBatchRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_CatalogsRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_CatalogsRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_DatabasePropertyRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_DatabasePropertyRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_SchemasRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_SchemasRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_TablesRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_TablesRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_TableTypesRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_TableTypesRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_ColumnsRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ColumnsRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_TypeInfoRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_TypeInfoRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_PrepareAndExecuteRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_PrepareAndExecuteRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_PrepareRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_PrepareRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_FetchRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_FetchRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_CreateStatementRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_CreateStatementRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_CloseStatementRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_CloseStatementRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_OpenConnectionRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_OpenConnectionRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_OpenConnectionRequest_InfoEntry_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_OpenConnectionRequest_InfoEntry_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_CloseConnectionRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_CloseConnectionRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_ConnectionSyncRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ConnectionSyncRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_ExecuteRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ExecuteRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_SyncResultsRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_SyncResultsRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_CommitRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_CommitRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_RollbackRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_RollbackRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_PrepareAndExecuteBatchRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_PrepareAndExecuteBatchRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_UpdateBatch_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_UpdateBatch_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_ExecuteBatchRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ExecuteBatchRequest_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\016requests.proto\032\014common.proto\"(\n\017Catalo" +
"gsRequest\022\025\n\rconnection_id\030\001 \001(\t\"0\n\027Data" +
"basePropertyRequest\022\025\n\rconnection_id\030\001 \001" +
"(\t\"P\n\016SchemasRequest\022\017\n\007catalog\030\001 \001(\t\022\026\n" +
"\016schema_pattern\030\002 \001(\t\022\025\n\rconnection_id\030\003" +
" \001(\t\"\225\001\n\rTablesRequest\022\017\n\007catalog\030\001 \001(\t\022" +
"\026\n\016schema_pattern\030\002 \001(\t\022\032\n\022table_name_pa" +
"ttern\030\003 \001(\t\022\021\n\ttype_list\030\004 \003(\t\022\025\n\rhas_ty" +
"pe_list\030\006 \001(\010\022\025\n\rconnection_id\030\007 \001(\t\"*\n\021" +
"TableTypesRequest\022\025\n\rconnection_id\030\001 \001(\t",
"\"\211\001\n\016ColumnsRequest\022\017\n\007catalog\030\001 \001(\t\022\026\n\016" +
"schema_pattern\030\002 \001(\t\022\032\n\022table_name_patte" +
"rn\030\003 \001(\t\022\033\n\023column_name_pattern\030\004 \001(\t\022\025\n" +
"\rconnection_id\030\005 \001(\t\"(\n\017TypeInfoRequest\022" +
"\025\n\rconnection_id\030\001 \001(\t\"\241\001\n\030PrepareAndExe" +
"cuteRequest\022\025\n\rconnection_id\030\001 \001(\t\022\013\n\003sq" +
"l\030\002 \001(\t\022\025\n\rmax_row_count\030\003 \001(\004\022\024\n\014statem" +
"ent_id\030\004 \001(\r\022\026\n\016max_rows_total\030\005 \001(\003\022\034\n\024" +
"first_frame_max_size\030\006 \001(\005\"c\n\016PrepareReq" +
"uest\022\025\n\rconnection_id\030\001 \001(\t\022\013\n\003sql\030\002 \001(\t",
"\022\025\n\rmax_row_count\030\003 \001(\004\022\026\n\016max_rows_tota" +
"l\030\004 \001(\003\"\200\001\n\014FetchRequest\022\025\n\rconnection_i" +
"d\030\001 \001(\t\022\024\n\014statement_id\030\002 \001(\r\022\016\n\006offset\030" +
"\003 \001(\004\022\033\n\023fetch_max_row_count\030\004 \001(\r\022\026\n\016fr" +
"ame_max_size\030\005 \001(\005\"/\n\026CreateStatementReq" +
"uest\022\025\n\rconnection_id\030\001 \001(\t\"D\n\025CloseStat" +
"ementRequest\022\025\n\rconnection_id\030\001 \001(\t\022\024\n\014s" +
"tatement_id\030\002 \001(\r\"\213\001\n\025OpenConnectionRequ" +
"est\022\025\n\rconnection_id\030\001 \001(\t\022.\n\004info\030\002 \003(\013" +
"2 .OpenConnectionRequest.InfoEntry\032+\n\tIn",
"foEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" +
"/\n\026CloseConnectionRequest\022\025\n\rconnection_" +
"id\030\001 \001(\t\"Y\n\025ConnectionSyncRequest\022\025\n\rcon" +
"nection_id\030\001 \001(\t\022)\n\nconn_props\030\002 \001(\0132\025.C" +
"onnectionProperties\"\236\001\n\016ExecuteRequest\022)" +
"\n\017statementHandle\030\001 \001(\0132\020.StatementHandl" +
"e\022%\n\020parameter_values\030\002 \003(\0132\013.TypedValue" +
"\022\034\n\024first_frame_max_size\030\003 \001(\004\022\034\n\024has_pa" +
"rameter_values\030\004 \001(\010\"m\n\022SyncResultsReque" +
"st\022\025\n\rconnection_id\030\001 \001(\t\022\024\n\014statement_i",
"d\030\002 \001(\r\022\032\n\005state\030\003 \001(\0132\013.QueryState\022\016\n\006o" +
"ffset\030\004 \001(\004\"&\n\rCommitRequest\022\025\n\rconnecti" +
"on_id\030\001 \001(\t\"(\n\017RollbackRequest\022\025\n\rconnec" +
"tion_id\030\001 \001(\t\"b\n\035PrepareAndExecuteBatchR" +
"equest\022\025\n\rconnection_id\030\001 \001(\t\022\024\n\014stateme" +
"nt_id\030\002 \001(\r\022\024\n\014sql_commands\030\003 \003(\t\"4\n\013Upd" +
"ateBatch\022%\n\020parameter_values\030\001 \003(\0132\013.Typ" +
"edValue\"a\n\023ExecuteBatchRequest\022\025\n\rconnec" +
"tion_id\030\001 \001(\t\022\024\n\014statement_id\030\002 \001(\r\022\035\n\007u" +
"pdates\030\003 \003(\0132\014.UpdateBatchB\"\n org.apache",
".calcite.avatica.protob\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.apache.calcite.avatica.proto.Common.getDescriptor(),
}, assigner);
internal_static_CatalogsRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_CatalogsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_CatalogsRequest_descriptor,
new java.lang.String[] { "ConnectionId", });
internal_static_DatabasePropertyRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_DatabasePropertyRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_DatabasePropertyRequest_descriptor,
new java.lang.String[] { "ConnectionId", });
internal_static_SchemasRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_SchemasRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_SchemasRequest_descriptor,
new java.lang.String[] { "Catalog", "SchemaPattern", "ConnectionId", });
internal_static_TablesRequest_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_TablesRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_TablesRequest_descriptor,
new java.lang.String[] { "Catalog", "SchemaPattern", "TableNamePattern", "TypeList", "HasTypeList", "ConnectionId", });
internal_static_TableTypesRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_TableTypesRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_TableTypesRequest_descriptor,
new java.lang.String[] { "ConnectionId", });
internal_static_ColumnsRequest_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_ColumnsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ColumnsRequest_descriptor,
new java.lang.String[] { "Catalog", "SchemaPattern", "TableNamePattern", "ColumnNamePattern", "ConnectionId", });
internal_static_TypeInfoRequest_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_TypeInfoRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_TypeInfoRequest_descriptor,
new java.lang.String[] { "ConnectionId", });
internal_static_PrepareAndExecuteRequest_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_PrepareAndExecuteRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_PrepareAndExecuteRequest_descriptor,
new java.lang.String[] { "ConnectionId", "Sql", "MaxRowCount", "StatementId", "MaxRowsTotal", "FirstFrameMaxSize", });
internal_static_PrepareRequest_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_PrepareRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_PrepareRequest_descriptor,
new java.lang.String[] { "ConnectionId", "Sql", "MaxRowCount", "MaxRowsTotal", });
internal_static_FetchRequest_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_FetchRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_FetchRequest_descriptor,
new java.lang.String[] { "ConnectionId", "StatementId", "Offset", "FetchMaxRowCount", "FrameMaxSize", });
internal_static_CreateStatementRequest_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_CreateStatementRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_CreateStatementRequest_descriptor,
new java.lang.String[] { "ConnectionId", });
internal_static_CloseStatementRequest_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_CloseStatementRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_CloseStatementRequest_descriptor,
new java.lang.String[] { "ConnectionId", "StatementId", });
internal_static_OpenConnectionRequest_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_OpenConnectionRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_OpenConnectionRequest_descriptor,
new java.lang.String[] { "ConnectionId", "Info", });
internal_static_OpenConnectionRequest_InfoEntry_descriptor =
internal_static_OpenConnectionRequest_descriptor.getNestedTypes().get(0);
internal_static_OpenConnectionRequest_InfoEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_OpenConnectionRequest_InfoEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_CloseConnectionRequest_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_CloseConnectionRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_CloseConnectionRequest_descriptor,
new java.lang.String[] { "ConnectionId", });
internal_static_ConnectionSyncRequest_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_ConnectionSyncRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ConnectionSyncRequest_descriptor,
new java.lang.String[] { "ConnectionId", "ConnProps", });
internal_static_ExecuteRequest_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_ExecuteRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ExecuteRequest_descriptor,
new java.lang.String[] { "StatementHandle", "ParameterValues", "FirstFrameMaxSize", "HasParameterValues", });
internal_static_SyncResultsRequest_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_SyncResultsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_SyncResultsRequest_descriptor,
new java.lang.String[] { "ConnectionId", "StatementId", "State", "Offset", });
internal_static_CommitRequest_descriptor =
getDescriptor().getMessageTypes().get(17);
internal_static_CommitRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_CommitRequest_descriptor,
new java.lang.String[] { "ConnectionId", });
internal_static_RollbackRequest_descriptor =
getDescriptor().getMessageTypes().get(18);
internal_static_RollbackRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RollbackRequest_descriptor,
new java.lang.String[] { "ConnectionId", });
internal_static_PrepareAndExecuteBatchRequest_descriptor =
getDescriptor().getMessageTypes().get(19);
internal_static_PrepareAndExecuteBatchRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_PrepareAndExecuteBatchRequest_descriptor,
new java.lang.String[] { "ConnectionId", "StatementId", "SqlCommands", });
internal_static_UpdateBatch_descriptor =
getDescriptor().getMessageTypes().get(20);
internal_static_UpdateBatch_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_UpdateBatch_descriptor,
new java.lang.String[] { "ParameterValues", });
internal_static_ExecuteBatchRequest_descriptor =
getDescriptor().getMessageTypes().get(21);
internal_static_ExecuteBatchRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ExecuteBatchRequest_descriptor,
new java.lang.String[] { "ConnectionId", "StatementId", "Updates", });
org.apache.calcite.avatica.proto.Common.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy