org.apache.calcite.avatica.proto.Responses Maven / Gradle / Ivy
The newest version!
/*
* 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: responses.proto
package org.apache.calcite.avatica.proto;
@SuppressWarnings({"unused", "rawtypes"}) public final class Responses {
private Responses() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface ResultSetResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:ResultSetResponse)
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 bool own_statement = 3;
*/
boolean getOwnStatement();
/**
* optional .Signature signature = 4;
*/
boolean hasSignature();
/**
* optional .Signature signature = 4;
*/
org.apache.calcite.avatica.proto.Common.Signature getSignature();
/**
* optional .Signature signature = 4;
*/
org.apache.calcite.avatica.proto.Common.SignatureOrBuilder getSignatureOrBuilder();
/**
* optional .Frame first_frame = 5;
*/
boolean hasFirstFrame();
/**
* optional .Frame first_frame = 5;
*/
org.apache.calcite.avatica.proto.Common.Frame getFirstFrame();
/**
* optional .Frame first_frame = 5;
*/
org.apache.calcite.avatica.proto.Common.FrameOrBuilder getFirstFrameOrBuilder();
/**
* optional uint64 update_count = 6;
*
*
* -1 for normal result sets, else this response contains a dummy result set
*
*/
long getUpdateCount();
/**
* optional .RpcMetadata metadata = 7;
*
*
* with no signature nor other data.
*
*/
boolean hasMetadata();
/**
* optional .RpcMetadata metadata = 7;
*
*
* with no signature nor other data.
*
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();
/**
* optional .RpcMetadata metadata = 7;
*
*
* with no signature nor other data.
*
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code ResultSetResponse}
*
*
* Response that contains a result set.
*
*/
public static final class ResultSetResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:ResultSetResponse)
ResultSetResponseOrBuilder {
// Use ResultSetResponse.newBuilder() to construct.
private ResultSetResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ResultSetResponse() {
connectionId_ = "";
statementId_ = 0;
ownStatement_ = false;
updateCount_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ResultSetResponse(
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: {
ownStatement_ = input.readBool();
break;
}
case 34: {
org.apache.calcite.avatica.proto.Common.Signature.Builder subBuilder = null;
if (signature_ != null) {
subBuilder = signature_.toBuilder();
}
signature_ = input.readMessage(org.apache.calcite.avatica.proto.Common.Signature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(signature_);
signature_ = subBuilder.buildPartial();
}
break;
}
case 42: {
org.apache.calcite.avatica.proto.Common.Frame.Builder subBuilder = null;
if (firstFrame_ != null) {
subBuilder = firstFrame_.toBuilder();
}
firstFrame_ = input.readMessage(org.apache.calcite.avatica.proto.Common.Frame.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(firstFrame_);
firstFrame_ = subBuilder.buildPartial();
}
break;
}
case 48: {
updateCount_ = input.readUInt64();
break;
}
case 58: {
org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.apache.calcite.avatica.proto.Responses.RpcMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = 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.Responses.internal_static_ResultSetResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_ResultSetResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.ResultSetResponse.class, org.apache.calcite.avatica.proto.Responses.ResultSetResponse.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 OWN_STATEMENT_FIELD_NUMBER = 3;
private boolean ownStatement_;
/**
* optional bool own_statement = 3;
*/
public boolean getOwnStatement() {
return ownStatement_;
}
public static final int SIGNATURE_FIELD_NUMBER = 4;
private org.apache.calcite.avatica.proto.Common.Signature signature_;
/**
* optional .Signature signature = 4;
*/
public boolean hasSignature() {
return signature_ != null;
}
/**
* optional .Signature signature = 4;
*/
public org.apache.calcite.avatica.proto.Common.Signature getSignature() {
return signature_ == null ? org.apache.calcite.avatica.proto.Common.Signature.getDefaultInstance() : signature_;
}
/**
* optional .Signature signature = 4;
*/
public org.apache.calcite.avatica.proto.Common.SignatureOrBuilder getSignatureOrBuilder() {
return getSignature();
}
public static final int FIRST_FRAME_FIELD_NUMBER = 5;
private org.apache.calcite.avatica.proto.Common.Frame firstFrame_;
/**
* optional .Frame first_frame = 5;
*/
public boolean hasFirstFrame() {
return firstFrame_ != null;
}
/**
* optional .Frame first_frame = 5;
*/
public org.apache.calcite.avatica.proto.Common.Frame getFirstFrame() {
return firstFrame_ == null ? org.apache.calcite.avatica.proto.Common.Frame.getDefaultInstance() : firstFrame_;
}
/**
* optional .Frame first_frame = 5;
*/
public org.apache.calcite.avatica.proto.Common.FrameOrBuilder getFirstFrameOrBuilder() {
return getFirstFrame();
}
public static final int UPDATE_COUNT_FIELD_NUMBER = 6;
private long updateCount_;
/**
* optional uint64 update_count = 6;
*
*
* -1 for normal result sets, else this response contains a dummy result set
*
*/
public long getUpdateCount() {
return updateCount_;
}
public static final int METADATA_FIELD_NUMBER = 7;
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_;
/**
* optional .RpcMetadata metadata = 7;
*
*
* with no signature nor other data.
*
*/
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 7;
*
*
* with no signature nor other data.
*
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
/**
* optional .RpcMetadata metadata = 7;
*
*
* with no signature nor other data.
*
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
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 (ownStatement_ != false) {
output.writeBool(3, ownStatement_);
}
if (signature_ != null) {
output.writeMessage(4, getSignature());
}
if (firstFrame_ != null) {
output.writeMessage(5, getFirstFrame());
}
if (updateCount_ != 0L) {
output.writeUInt64(6, updateCount_);
}
if (metadata_ != null) {
output.writeMessage(7, getMetadata());
}
}
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 (ownStatement_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, ownStatement_);
}
if (signature_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getSignature());
}
if (firstFrame_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getFirstFrame());
}
if (updateCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(6, updateCount_);
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getMetadata());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Responses.ResultSetResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.ResultSetResponse 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.Responses.ResultSetResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.ResultSetResponse 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.Responses.ResultSetResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.ResultSetResponse 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.Responses.ResultSetResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.ResultSetResponse 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.Responses.ResultSetResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.ResultSetResponse 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.Responses.ResultSetResponse 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 ResultSetResponse}
*
*
* Response that contains a result set.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:ResultSetResponse)
org.apache.calcite.avatica.proto.Responses.ResultSetResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Responses.internal_static_ResultSetResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_ResultSetResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.ResultSetResponse.class, org.apache.calcite.avatica.proto.Responses.ResultSetResponse.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Responses.ResultSetResponse.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;
ownStatement_ = false;
if (signatureBuilder_ == null) {
signature_ = null;
} else {
signature_ = null;
signatureBuilder_ = null;
}
if (firstFrameBuilder_ == null) {
firstFrame_ = null;
} else {
firstFrame_ = null;
firstFrameBuilder_ = null;
}
updateCount_ = 0L;
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Responses.internal_static_ResultSetResponse_descriptor;
}
public org.apache.calcite.avatica.proto.Responses.ResultSetResponse getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Responses.ResultSetResponse.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Responses.ResultSetResponse build() {
org.apache.calcite.avatica.proto.Responses.ResultSetResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Responses.ResultSetResponse buildPartial() {
org.apache.calcite.avatica.proto.Responses.ResultSetResponse result = new org.apache.calcite.avatica.proto.Responses.ResultSetResponse(this);
result.connectionId_ = connectionId_;
result.statementId_ = statementId_;
result.ownStatement_ = ownStatement_;
if (signatureBuilder_ == null) {
result.signature_ = signature_;
} else {
result.signature_ = signatureBuilder_.build();
}
if (firstFrameBuilder_ == null) {
result.firstFrame_ = firstFrame_;
} else {
result.firstFrame_ = firstFrameBuilder_.build();
}
result.updateCount_ = updateCount_;
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Responses.ResultSetResponse) {
return mergeFrom((org.apache.calcite.avatica.proto.Responses.ResultSetResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Responses.ResultSetResponse other) {
if (other == org.apache.calcite.avatica.proto.Responses.ResultSetResponse.getDefaultInstance()) return this;
if (!other.getConnectionId().isEmpty()) {
connectionId_ = other.connectionId_;
onChanged();
}
if (other.getStatementId() != 0) {
setStatementId(other.getStatementId());
}
if (other.getOwnStatement() != false) {
setOwnStatement(other.getOwnStatement());
}
if (other.hasSignature()) {
mergeSignature(other.getSignature());
}
if (other.hasFirstFrame()) {
mergeFirstFrame(other.getFirstFrame());
}
if (other.getUpdateCount() != 0L) {
setUpdateCount(other.getUpdateCount());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.Responses.ResultSetResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Responses.ResultSetResponse) 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 boolean ownStatement_ ;
/**
* optional bool own_statement = 3;
*/
public boolean getOwnStatement() {
return ownStatement_;
}
/**
* optional bool own_statement = 3;
*/
public Builder setOwnStatement(boolean value) {
ownStatement_ = value;
onChanged();
return this;
}
/**
* optional bool own_statement = 3;
*/
public Builder clearOwnStatement() {
ownStatement_ = false;
onChanged();
return this;
}
private org.apache.calcite.avatica.proto.Common.Signature signature_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.Signature, org.apache.calcite.avatica.proto.Common.Signature.Builder, org.apache.calcite.avatica.proto.Common.SignatureOrBuilder> signatureBuilder_;
/**
* optional .Signature signature = 4;
*/
public boolean hasSignature() {
return signatureBuilder_ != null || signature_ != null;
}
/**
* optional .Signature signature = 4;
*/
public org.apache.calcite.avatica.proto.Common.Signature getSignature() {
if (signatureBuilder_ == null) {
return signature_ == null ? org.apache.calcite.avatica.proto.Common.Signature.getDefaultInstance() : signature_;
} else {
return signatureBuilder_.getMessage();
}
}
/**
* optional .Signature signature = 4;
*/
public Builder setSignature(org.apache.calcite.avatica.proto.Common.Signature value) {
if (signatureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
signature_ = value;
onChanged();
} else {
signatureBuilder_.setMessage(value);
}
return this;
}
/**
* optional .Signature signature = 4;
*/
public Builder setSignature(
org.apache.calcite.avatica.proto.Common.Signature.Builder builderForValue) {
if (signatureBuilder_ == null) {
signature_ = builderForValue.build();
onChanged();
} else {
signatureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .Signature signature = 4;
*/
public Builder mergeSignature(org.apache.calcite.avatica.proto.Common.Signature value) {
if (signatureBuilder_ == null) {
if (signature_ != null) {
signature_ =
org.apache.calcite.avatica.proto.Common.Signature.newBuilder(signature_).mergeFrom(value).buildPartial();
} else {
signature_ = value;
}
onChanged();
} else {
signatureBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .Signature signature = 4;
*/
public Builder clearSignature() {
if (signatureBuilder_ == null) {
signature_ = null;
onChanged();
} else {
signature_ = null;
signatureBuilder_ = null;
}
return this;
}
/**
* optional .Signature signature = 4;
*/
public org.apache.calcite.avatica.proto.Common.Signature.Builder getSignatureBuilder() {
onChanged();
return getSignatureFieldBuilder().getBuilder();
}
/**
* optional .Signature signature = 4;
*/
public org.apache.calcite.avatica.proto.Common.SignatureOrBuilder getSignatureOrBuilder() {
if (signatureBuilder_ != null) {
return signatureBuilder_.getMessageOrBuilder();
} else {
return signature_ == null ?
org.apache.calcite.avatica.proto.Common.Signature.getDefaultInstance() : signature_;
}
}
/**
* optional .Signature signature = 4;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.Signature, org.apache.calcite.avatica.proto.Common.Signature.Builder, org.apache.calcite.avatica.proto.Common.SignatureOrBuilder>
getSignatureFieldBuilder() {
if (signatureBuilder_ == null) {
signatureBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.Signature, org.apache.calcite.avatica.proto.Common.Signature.Builder, org.apache.calcite.avatica.proto.Common.SignatureOrBuilder>(
getSignature(),
getParentForChildren(),
isClean());
signature_ = null;
}
return signatureBuilder_;
}
private org.apache.calcite.avatica.proto.Common.Frame firstFrame_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.Frame, org.apache.calcite.avatica.proto.Common.Frame.Builder, org.apache.calcite.avatica.proto.Common.FrameOrBuilder> firstFrameBuilder_;
/**
* optional .Frame first_frame = 5;
*/
public boolean hasFirstFrame() {
return firstFrameBuilder_ != null || firstFrame_ != null;
}
/**
* optional .Frame first_frame = 5;
*/
public org.apache.calcite.avatica.proto.Common.Frame getFirstFrame() {
if (firstFrameBuilder_ == null) {
return firstFrame_ == null ? org.apache.calcite.avatica.proto.Common.Frame.getDefaultInstance() : firstFrame_;
} else {
return firstFrameBuilder_.getMessage();
}
}
/**
* optional .Frame first_frame = 5;
*/
public Builder setFirstFrame(org.apache.calcite.avatica.proto.Common.Frame value) {
if (firstFrameBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
firstFrame_ = value;
onChanged();
} else {
firstFrameBuilder_.setMessage(value);
}
return this;
}
/**
* optional .Frame first_frame = 5;
*/
public Builder setFirstFrame(
org.apache.calcite.avatica.proto.Common.Frame.Builder builderForValue) {
if (firstFrameBuilder_ == null) {
firstFrame_ = builderForValue.build();
onChanged();
} else {
firstFrameBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .Frame first_frame = 5;
*/
public Builder mergeFirstFrame(org.apache.calcite.avatica.proto.Common.Frame value) {
if (firstFrameBuilder_ == null) {
if (firstFrame_ != null) {
firstFrame_ =
org.apache.calcite.avatica.proto.Common.Frame.newBuilder(firstFrame_).mergeFrom(value).buildPartial();
} else {
firstFrame_ = value;
}
onChanged();
} else {
firstFrameBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .Frame first_frame = 5;
*/
public Builder clearFirstFrame() {
if (firstFrameBuilder_ == null) {
firstFrame_ = null;
onChanged();
} else {
firstFrame_ = null;
firstFrameBuilder_ = null;
}
return this;
}
/**
* optional .Frame first_frame = 5;
*/
public org.apache.calcite.avatica.proto.Common.Frame.Builder getFirstFrameBuilder() {
onChanged();
return getFirstFrameFieldBuilder().getBuilder();
}
/**
* optional .Frame first_frame = 5;
*/
public org.apache.calcite.avatica.proto.Common.FrameOrBuilder getFirstFrameOrBuilder() {
if (firstFrameBuilder_ != null) {
return firstFrameBuilder_.getMessageOrBuilder();
} else {
return firstFrame_ == null ?
org.apache.calcite.avatica.proto.Common.Frame.getDefaultInstance() : firstFrame_;
}
}
/**
* optional .Frame first_frame = 5;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.Frame, org.apache.calcite.avatica.proto.Common.Frame.Builder, org.apache.calcite.avatica.proto.Common.FrameOrBuilder>
getFirstFrameFieldBuilder() {
if (firstFrameBuilder_ == null) {
firstFrameBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.Frame, org.apache.calcite.avatica.proto.Common.Frame.Builder, org.apache.calcite.avatica.proto.Common.FrameOrBuilder>(
getFirstFrame(),
getParentForChildren(),
isClean());
firstFrame_ = null;
}
return firstFrameBuilder_;
}
private long updateCount_ ;
/**
* optional uint64 update_count = 6;
*
*
* -1 for normal result sets, else this response contains a dummy result set
*
*/
public long getUpdateCount() {
return updateCount_;
}
/**
* optional uint64 update_count = 6;
*
*
* -1 for normal result sets, else this response contains a dummy result set
*
*/
public Builder setUpdateCount(long value) {
updateCount_ = value;
onChanged();
return this;
}
/**
* optional uint64 update_count = 6;
*
*
* -1 for normal result sets, else this response contains a dummy result set
*
*/
public Builder clearUpdateCount() {
updateCount_ = 0L;
onChanged();
return this;
}
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder> metadataBuilder_;
/**
* optional .RpcMetadata metadata = 7;
*
*
* with no signature nor other data.
*
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 7;
*
*
* with no signature nor other data.
*
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* optional .RpcMetadata metadata = 7;
*
*
* with no signature nor other data.
*
*/
public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 7;
*
*
* with no signature nor other data.
*
*/
public Builder setMetadata(
org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .RpcMetadata metadata = 7;
*
*
* with no signature nor other data.
*
*/
public Builder mergeMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.apache.calcite.avatica.proto.Responses.RpcMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 7;
*
*
* with no signature nor other data.
*
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* optional .RpcMetadata metadata = 7;
*
*
* with no signature nor other data.
*
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* optional .RpcMetadata metadata = 7;
*
*
* with no signature nor other data.
*
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
}
/**
* optional .RpcMetadata metadata = 7;
*
*
* with no signature nor other data.
*
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
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:ResultSetResponse)
}
// @@protoc_insertion_point(class_scope:ResultSetResponse)
private static final org.apache.calcite.avatica.proto.Responses.ResultSetResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Responses.ResultSetResponse();
}
public static org.apache.calcite.avatica.proto.Responses.ResultSetResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ResultSetResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new ResultSetResponse(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.Responses.ResultSetResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:ExecuteResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .ResultSetResponse results = 1;
*/
java.util.List
getResultsList();
/**
* repeated .ResultSetResponse results = 1;
*/
org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);
/**
* repeated .ResultSetResponse results = 1;
*/
int getResultsCount();
/**
* repeated .ResultSetResponse results = 1;
*/
java.util.List extends org.apache.calcite.avatica.proto.Responses.ResultSetResponseOrBuilder>
getResultsOrBuilderList();
/**
* repeated .ResultSetResponse results = 1;
*/
org.apache.calcite.avatica.proto.Responses.ResultSetResponseOrBuilder getResultsOrBuilder(
int index);
/**
* optional bool missing_statement = 2;
*
*
* Did the request fail because of no-cached statement
*
*/
boolean getMissingStatement();
/**
* optional .RpcMetadata metadata = 3;
*/
boolean hasMetadata();
/**
* optional .RpcMetadata metadata = 3;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();
/**
* optional .RpcMetadata metadata = 3;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code ExecuteResponse}
*
*
* Response to PrepareAndExecuteRequest
*
*/
public static final class ExecuteResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:ExecuteResponse)
ExecuteResponseOrBuilder {
// Use ExecuteResponse.newBuilder() to construct.
private ExecuteResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ExecuteResponse() {
results_ = java.util.Collections.emptyList();
missingStatement_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ExecuteResponse(
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)) {
results_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
results_.add(input.readMessage(org.apache.calcite.avatica.proto.Responses.ResultSetResponse.parser(), extensionRegistry));
break;
}
case 16: {
missingStatement_ = input.readBool();
break;
}
case 26: {
org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.apache.calcite.avatica.proto.Responses.RpcMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = 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 {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
results_ = java.util.Collections.unmodifiableList(results_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Responses.internal_static_ExecuteResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_ExecuteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.ExecuteResponse.class, org.apache.calcite.avatica.proto.Responses.ExecuteResponse.Builder.class);
}
private int bitField0_;
public static final int RESULTS_FIELD_NUMBER = 1;
private java.util.List results_;
/**
* repeated .ResultSetResponse results = 1;
*/
public java.util.List getResultsList() {
return results_;
}
/**
* repeated .ResultSetResponse results = 1;
*/
public java.util.List extends org.apache.calcite.avatica.proto.Responses.ResultSetResponseOrBuilder>
getResultsOrBuilderList() {
return results_;
}
/**
* repeated .ResultSetResponse results = 1;
*/
public int getResultsCount() {
return results_.size();
}
/**
* repeated .ResultSetResponse results = 1;
*/
public org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index) {
return results_.get(index);
}
/**
* repeated .ResultSetResponse results = 1;
*/
public org.apache.calcite.avatica.proto.Responses.ResultSetResponseOrBuilder getResultsOrBuilder(
int index) {
return results_.get(index);
}
public static final int MISSING_STATEMENT_FIELD_NUMBER = 2;
private boolean missingStatement_;
/**
* optional bool missing_statement = 2;
*
*
* Did the request fail because of no-cached statement
*
*/
public boolean getMissingStatement() {
return missingStatement_;
}
public static final int METADATA_FIELD_NUMBER = 3;
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_;
/**
* optional .RpcMetadata metadata = 3;
*/
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
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 < results_.size(); i++) {
output.writeMessage(1, results_.get(i));
}
if (missingStatement_ != false) {
output.writeBool(2, missingStatement_);
}
if (metadata_ != null) {
output.writeMessage(3, getMetadata());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < results_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, results_.get(i));
}
if (missingStatement_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, missingStatement_);
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getMetadata());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Responses.ExecuteResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.ExecuteResponse 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.Responses.ExecuteResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.ExecuteResponse 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.Responses.ExecuteResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.ExecuteResponse 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.Responses.ExecuteResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.ExecuteResponse 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.Responses.ExecuteResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.ExecuteResponse 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.Responses.ExecuteResponse 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 ExecuteResponse}
*
*
* Response to PrepareAndExecuteRequest
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:ExecuteResponse)
org.apache.calcite.avatica.proto.Responses.ExecuteResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Responses.internal_static_ExecuteResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_ExecuteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.ExecuteResponse.class, org.apache.calcite.avatica.proto.Responses.ExecuteResponse.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Responses.ExecuteResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getResultsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (resultsBuilder_ == null) {
results_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
resultsBuilder_.clear();
}
missingStatement_ = false;
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Responses.internal_static_ExecuteResponse_descriptor;
}
public org.apache.calcite.avatica.proto.Responses.ExecuteResponse getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Responses.ExecuteResponse.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Responses.ExecuteResponse build() {
org.apache.calcite.avatica.proto.Responses.ExecuteResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Responses.ExecuteResponse buildPartial() {
org.apache.calcite.avatica.proto.Responses.ExecuteResponse result = new org.apache.calcite.avatica.proto.Responses.ExecuteResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (resultsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
results_ = java.util.Collections.unmodifiableList(results_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.results_ = results_;
} else {
result.results_ = resultsBuilder_.build();
}
result.missingStatement_ = missingStatement_;
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Responses.ExecuteResponse) {
return mergeFrom((org.apache.calcite.avatica.proto.Responses.ExecuteResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Responses.ExecuteResponse other) {
if (other == org.apache.calcite.avatica.proto.Responses.ExecuteResponse.getDefaultInstance()) return this;
if (resultsBuilder_ == null) {
if (!other.results_.isEmpty()) {
if (results_.isEmpty()) {
results_ = other.results_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureResultsIsMutable();
results_.addAll(other.results_);
}
onChanged();
}
} else {
if (!other.results_.isEmpty()) {
if (resultsBuilder_.isEmpty()) {
resultsBuilder_.dispose();
resultsBuilder_ = null;
results_ = other.results_;
bitField0_ = (bitField0_ & ~0x00000001);
resultsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getResultsFieldBuilder() : null;
} else {
resultsBuilder_.addAllMessages(other.results_);
}
}
}
if (other.getMissingStatement() != false) {
setMissingStatement(other.getMissingStatement());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.Responses.ExecuteResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Responses.ExecuteResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List results_ =
java.util.Collections.emptyList();
private void ensureResultsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
results_ = new java.util.ArrayList(results_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.calcite.avatica.proto.Responses.ResultSetResponse, org.apache.calcite.avatica.proto.Responses.ResultSetResponse.Builder, org.apache.calcite.avatica.proto.Responses.ResultSetResponseOrBuilder> resultsBuilder_;
/**
* repeated .ResultSetResponse results = 1;
*/
public java.util.List getResultsList() {
if (resultsBuilder_ == null) {
return java.util.Collections.unmodifiableList(results_);
} else {
return resultsBuilder_.getMessageList();
}
}
/**
* repeated .ResultSetResponse results = 1;
*/
public int getResultsCount() {
if (resultsBuilder_ == null) {
return results_.size();
} else {
return resultsBuilder_.getCount();
}
}
/**
* repeated .ResultSetResponse results = 1;
*/
public org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index) {
if (resultsBuilder_ == null) {
return results_.get(index);
} else {
return resultsBuilder_.getMessage(index);
}
}
/**
* repeated .ResultSetResponse results = 1;
*/
public Builder setResults(
int index, org.apache.calcite.avatica.proto.Responses.ResultSetResponse value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.set(index, value);
onChanged();
} else {
resultsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .ResultSetResponse results = 1;
*/
public Builder setResults(
int index, org.apache.calcite.avatica.proto.Responses.ResultSetResponse.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.set(index, builderForValue.build());
onChanged();
} else {
resultsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .ResultSetResponse results = 1;
*/
public Builder addResults(org.apache.calcite.avatica.proto.Responses.ResultSetResponse value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.add(value);
onChanged();
} else {
resultsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .ResultSetResponse results = 1;
*/
public Builder addResults(
int index, org.apache.calcite.avatica.proto.Responses.ResultSetResponse value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.add(index, value);
onChanged();
} else {
resultsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .ResultSetResponse results = 1;
*/
public Builder addResults(
org.apache.calcite.avatica.proto.Responses.ResultSetResponse.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.add(builderForValue.build());
onChanged();
} else {
resultsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .ResultSetResponse results = 1;
*/
public Builder addResults(
int index, org.apache.calcite.avatica.proto.Responses.ResultSetResponse.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.add(index, builderForValue.build());
onChanged();
} else {
resultsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .ResultSetResponse results = 1;
*/
public Builder addAllResults(
java.lang.Iterable extends org.apache.calcite.avatica.proto.Responses.ResultSetResponse> values) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, results_);
onChanged();
} else {
resultsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .ResultSetResponse results = 1;
*/
public Builder clearResults() {
if (resultsBuilder_ == null) {
results_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
resultsBuilder_.clear();
}
return this;
}
/**
* repeated .ResultSetResponse results = 1;
*/
public Builder removeResults(int index) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.remove(index);
onChanged();
} else {
resultsBuilder_.remove(index);
}
return this;
}
/**
* repeated .ResultSetResponse results = 1;
*/
public org.apache.calcite.avatica.proto.Responses.ResultSetResponse.Builder getResultsBuilder(
int index) {
return getResultsFieldBuilder().getBuilder(index);
}
/**
* repeated .ResultSetResponse results = 1;
*/
public org.apache.calcite.avatica.proto.Responses.ResultSetResponseOrBuilder getResultsOrBuilder(
int index) {
if (resultsBuilder_ == null) {
return results_.get(index); } else {
return resultsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .ResultSetResponse results = 1;
*/
public java.util.List extends org.apache.calcite.avatica.proto.Responses.ResultSetResponseOrBuilder>
getResultsOrBuilderList() {
if (resultsBuilder_ != null) {
return resultsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(results_);
}
}
/**
* repeated .ResultSetResponse results = 1;
*/
public org.apache.calcite.avatica.proto.Responses.ResultSetResponse.Builder addResultsBuilder() {
return getResultsFieldBuilder().addBuilder(
org.apache.calcite.avatica.proto.Responses.ResultSetResponse.getDefaultInstance());
}
/**
* repeated .ResultSetResponse results = 1;
*/
public org.apache.calcite.avatica.proto.Responses.ResultSetResponse.Builder addResultsBuilder(
int index) {
return getResultsFieldBuilder().addBuilder(
index, org.apache.calcite.avatica.proto.Responses.ResultSetResponse.getDefaultInstance());
}
/**
* repeated .ResultSetResponse results = 1;
*/
public java.util.List
getResultsBuilderList() {
return getResultsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.calcite.avatica.proto.Responses.ResultSetResponse, org.apache.calcite.avatica.proto.Responses.ResultSetResponse.Builder, org.apache.calcite.avatica.proto.Responses.ResultSetResponseOrBuilder>
getResultsFieldBuilder() {
if (resultsBuilder_ == null) {
resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.calcite.avatica.proto.Responses.ResultSetResponse, org.apache.calcite.avatica.proto.Responses.ResultSetResponse.Builder, org.apache.calcite.avatica.proto.Responses.ResultSetResponseOrBuilder>(
results_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
results_ = null;
}
return resultsBuilder_;
}
private boolean missingStatement_ ;
/**
* optional bool missing_statement = 2;
*
*
* Did the request fail because of no-cached statement
*
*/
public boolean getMissingStatement() {
return missingStatement_;
}
/**
* optional bool missing_statement = 2;
*
*
* Did the request fail because of no-cached statement
*
*/
public Builder setMissingStatement(boolean value) {
missingStatement_ = value;
onChanged();
return this;
}
/**
* optional bool missing_statement = 2;
*
*
* Did the request fail because of no-cached statement
*
*/
public Builder clearMissingStatement() {
missingStatement_ = false;
onChanged();
return this;
}
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder> metadataBuilder_;
/**
* optional .RpcMetadata metadata = 3;
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* optional .RpcMetadata metadata = 3;
*/
public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public Builder setMetadata(
org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public Builder mergeMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.apache.calcite.avatica.proto.Responses.RpcMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* optional .RpcMetadata metadata = 3;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
}
/**
* optional .RpcMetadata metadata = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
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:ExecuteResponse)
}
// @@protoc_insertion_point(class_scope:ExecuteResponse)
private static final org.apache.calcite.avatica.proto.Responses.ExecuteResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Responses.ExecuteResponse();
}
public static org.apache.calcite.avatica.proto.Responses.ExecuteResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExecuteResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new ExecuteResponse(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.Responses.ExecuteResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PrepareResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:PrepareResponse)
com.google.protobuf.MessageOrBuilder {
/**
* optional .StatementHandle statement = 1;
*/
boolean hasStatement();
/**
* optional .StatementHandle statement = 1;
*/
org.apache.calcite.avatica.proto.Common.StatementHandle getStatement();
/**
* optional .StatementHandle statement = 1;
*/
org.apache.calcite.avatica.proto.Common.StatementHandleOrBuilder getStatementOrBuilder();
/**
* optional .RpcMetadata metadata = 2;
*/
boolean hasMetadata();
/**
* optional .RpcMetadata metadata = 2;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();
/**
* optional .RpcMetadata metadata = 2;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code PrepareResponse}
*
*
* Response to PrepareRequest
*
*/
public static final class PrepareResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:PrepareResponse)
PrepareResponseOrBuilder {
// Use PrepareResponse.newBuilder() to construct.
private PrepareResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private PrepareResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private PrepareResponse(
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 (statement_ != null) {
subBuilder = statement_.toBuilder();
}
statement_ = input.readMessage(org.apache.calcite.avatica.proto.Common.StatementHandle.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(statement_);
statement_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.apache.calcite.avatica.proto.Responses.RpcMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = 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.Responses.internal_static_PrepareResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_PrepareResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.PrepareResponse.class, org.apache.calcite.avatica.proto.Responses.PrepareResponse.Builder.class);
}
public static final int STATEMENT_FIELD_NUMBER = 1;
private org.apache.calcite.avatica.proto.Common.StatementHandle statement_;
/**
* optional .StatementHandle statement = 1;
*/
public boolean hasStatement() {
return statement_ != null;
}
/**
* optional .StatementHandle statement = 1;
*/
public org.apache.calcite.avatica.proto.Common.StatementHandle getStatement() {
return statement_ == null ? org.apache.calcite.avatica.proto.Common.StatementHandle.getDefaultInstance() : statement_;
}
/**
* optional .StatementHandle statement = 1;
*/
public org.apache.calcite.avatica.proto.Common.StatementHandleOrBuilder getStatementOrBuilder() {
return getStatement();
}
public static final int METADATA_FIELD_NUMBER = 2;
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_;
/**
* optional .RpcMetadata metadata = 2;
*/
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 2;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
/**
* optional .RpcMetadata metadata = 2;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
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 (statement_ != null) {
output.writeMessage(1, getStatement());
}
if (metadata_ != null) {
output.writeMessage(2, getMetadata());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (statement_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getStatement());
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMetadata());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Responses.PrepareResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.PrepareResponse 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.Responses.PrepareResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.PrepareResponse 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.Responses.PrepareResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.PrepareResponse 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.Responses.PrepareResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.PrepareResponse 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.Responses.PrepareResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.PrepareResponse 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.Responses.PrepareResponse 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 PrepareResponse}
*
*
* Response to PrepareRequest
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:PrepareResponse)
org.apache.calcite.avatica.proto.Responses.PrepareResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Responses.internal_static_PrepareResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_PrepareResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.PrepareResponse.class, org.apache.calcite.avatica.proto.Responses.PrepareResponse.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Responses.PrepareResponse.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();
if (statementBuilder_ == null) {
statement_ = null;
} else {
statement_ = null;
statementBuilder_ = null;
}
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Responses.internal_static_PrepareResponse_descriptor;
}
public org.apache.calcite.avatica.proto.Responses.PrepareResponse getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Responses.PrepareResponse.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Responses.PrepareResponse build() {
org.apache.calcite.avatica.proto.Responses.PrepareResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Responses.PrepareResponse buildPartial() {
org.apache.calcite.avatica.proto.Responses.PrepareResponse result = new org.apache.calcite.avatica.proto.Responses.PrepareResponse(this);
if (statementBuilder_ == null) {
result.statement_ = statement_;
} else {
result.statement_ = statementBuilder_.build();
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Responses.PrepareResponse) {
return mergeFrom((org.apache.calcite.avatica.proto.Responses.PrepareResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Responses.PrepareResponse other) {
if (other == org.apache.calcite.avatica.proto.Responses.PrepareResponse.getDefaultInstance()) return this;
if (other.hasStatement()) {
mergeStatement(other.getStatement());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.Responses.PrepareResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Responses.PrepareResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.apache.calcite.avatica.proto.Common.StatementHandle statement_ = 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> statementBuilder_;
/**
* optional .StatementHandle statement = 1;
*/
public boolean hasStatement() {
return statementBuilder_ != null || statement_ != null;
}
/**
* optional .StatementHandle statement = 1;
*/
public org.apache.calcite.avatica.proto.Common.StatementHandle getStatement() {
if (statementBuilder_ == null) {
return statement_ == null ? org.apache.calcite.avatica.proto.Common.StatementHandle.getDefaultInstance() : statement_;
} else {
return statementBuilder_.getMessage();
}
}
/**
* optional .StatementHandle statement = 1;
*/
public Builder setStatement(org.apache.calcite.avatica.proto.Common.StatementHandle value) {
if (statementBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
statement_ = value;
onChanged();
} else {
statementBuilder_.setMessage(value);
}
return this;
}
/**
* optional .StatementHandle statement = 1;
*/
public Builder setStatement(
org.apache.calcite.avatica.proto.Common.StatementHandle.Builder builderForValue) {
if (statementBuilder_ == null) {
statement_ = builderForValue.build();
onChanged();
} else {
statementBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .StatementHandle statement = 1;
*/
public Builder mergeStatement(org.apache.calcite.avatica.proto.Common.StatementHandle value) {
if (statementBuilder_ == null) {
if (statement_ != null) {
statement_ =
org.apache.calcite.avatica.proto.Common.StatementHandle.newBuilder(statement_).mergeFrom(value).buildPartial();
} else {
statement_ = value;
}
onChanged();
} else {
statementBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .StatementHandle statement = 1;
*/
public Builder clearStatement() {
if (statementBuilder_ == null) {
statement_ = null;
onChanged();
} else {
statement_ = null;
statementBuilder_ = null;
}
return this;
}
/**
* optional .StatementHandle statement = 1;
*/
public org.apache.calcite.avatica.proto.Common.StatementHandle.Builder getStatementBuilder() {
onChanged();
return getStatementFieldBuilder().getBuilder();
}
/**
* optional .StatementHandle statement = 1;
*/
public org.apache.calcite.avatica.proto.Common.StatementHandleOrBuilder getStatementOrBuilder() {
if (statementBuilder_ != null) {
return statementBuilder_.getMessageOrBuilder();
} else {
return statement_ == null ?
org.apache.calcite.avatica.proto.Common.StatementHandle.getDefaultInstance() : statement_;
}
}
/**
* optional .StatementHandle statement = 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>
getStatementFieldBuilder() {
if (statementBuilder_ == null) {
statementBuilder_ = 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>(
getStatement(),
getParentForChildren(),
isClean());
statement_ = null;
}
return statementBuilder_;
}
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder> metadataBuilder_;
/**
* optional .RpcMetadata metadata = 2;
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 2;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* optional .RpcMetadata metadata = 2;
*/
public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 2;
*/
public Builder setMetadata(
org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .RpcMetadata metadata = 2;
*/
public Builder mergeMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.apache.calcite.avatica.proto.Responses.RpcMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 2;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* optional .RpcMetadata metadata = 2;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* optional .RpcMetadata metadata = 2;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
}
/**
* optional .RpcMetadata metadata = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
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:PrepareResponse)
}
// @@protoc_insertion_point(class_scope:PrepareResponse)
private static final org.apache.calcite.avatica.proto.Responses.PrepareResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Responses.PrepareResponse();
}
public static org.apache.calcite.avatica.proto.Responses.PrepareResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PrepareResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new PrepareResponse(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.Responses.PrepareResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FetchResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:FetchResponse)
com.google.protobuf.MessageOrBuilder {
/**
* optional .Frame frame = 1;
*/
boolean hasFrame();
/**
* optional .Frame frame = 1;
*/
org.apache.calcite.avatica.proto.Common.Frame getFrame();
/**
* optional .Frame frame = 1;
*/
org.apache.calcite.avatica.proto.Common.FrameOrBuilder getFrameOrBuilder();
/**
* optional bool missing_statement = 2;
*
*
* Did the request fail because of no-cached statement
*
*/
boolean getMissingStatement();
/**
* optional bool missing_results = 3;
*
*
* Did the request fail because of a cached-statement w/o ResultSet
*
*/
boolean getMissingResults();
/**
* optional .RpcMetadata metadata = 4;
*/
boolean hasMetadata();
/**
* optional .RpcMetadata metadata = 4;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();
/**
* optional .RpcMetadata metadata = 4;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code FetchResponse}
*
*
* Response to FetchRequest
*
*/
public static final class FetchResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:FetchResponse)
FetchResponseOrBuilder {
// Use FetchResponse.newBuilder() to construct.
private FetchResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private FetchResponse() {
missingStatement_ = false;
missingResults_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private FetchResponse(
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.Frame.Builder subBuilder = null;
if (frame_ != null) {
subBuilder = frame_.toBuilder();
}
frame_ = input.readMessage(org.apache.calcite.avatica.proto.Common.Frame.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(frame_);
frame_ = subBuilder.buildPartial();
}
break;
}
case 16: {
missingStatement_ = input.readBool();
break;
}
case 24: {
missingResults_ = input.readBool();
break;
}
case 34: {
org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.apache.calcite.avatica.proto.Responses.RpcMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = 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.Responses.internal_static_FetchResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_FetchResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.FetchResponse.class, org.apache.calcite.avatica.proto.Responses.FetchResponse.Builder.class);
}
public static final int FRAME_FIELD_NUMBER = 1;
private org.apache.calcite.avatica.proto.Common.Frame frame_;
/**
* optional .Frame frame = 1;
*/
public boolean hasFrame() {
return frame_ != null;
}
/**
* optional .Frame frame = 1;
*/
public org.apache.calcite.avatica.proto.Common.Frame getFrame() {
return frame_ == null ? org.apache.calcite.avatica.proto.Common.Frame.getDefaultInstance() : frame_;
}
/**
* optional .Frame frame = 1;
*/
public org.apache.calcite.avatica.proto.Common.FrameOrBuilder getFrameOrBuilder() {
return getFrame();
}
public static final int MISSING_STATEMENT_FIELD_NUMBER = 2;
private boolean missingStatement_;
/**
* optional bool missing_statement = 2;
*
*
* Did the request fail because of no-cached statement
*
*/
public boolean getMissingStatement() {
return missingStatement_;
}
public static final int MISSING_RESULTS_FIELD_NUMBER = 3;
private boolean missingResults_;
/**
* optional bool missing_results = 3;
*
*
* Did the request fail because of a cached-statement w/o ResultSet
*
*/
public boolean getMissingResults() {
return missingResults_;
}
public static final int METADATA_FIELD_NUMBER = 4;
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_;
/**
* optional .RpcMetadata metadata = 4;
*/
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 4;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
/**
* optional .RpcMetadata metadata = 4;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
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 (frame_ != null) {
output.writeMessage(1, getFrame());
}
if (missingStatement_ != false) {
output.writeBool(2, missingStatement_);
}
if (missingResults_ != false) {
output.writeBool(3, missingResults_);
}
if (metadata_ != null) {
output.writeMessage(4, getMetadata());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (frame_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getFrame());
}
if (missingStatement_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, missingStatement_);
}
if (missingResults_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, missingResults_);
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getMetadata());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Responses.FetchResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.FetchResponse 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.Responses.FetchResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.FetchResponse 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.Responses.FetchResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.FetchResponse 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.Responses.FetchResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.FetchResponse 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.Responses.FetchResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.FetchResponse 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.Responses.FetchResponse 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 FetchResponse}
*
*
* Response to FetchRequest
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:FetchResponse)
org.apache.calcite.avatica.proto.Responses.FetchResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Responses.internal_static_FetchResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_FetchResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.FetchResponse.class, org.apache.calcite.avatica.proto.Responses.FetchResponse.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Responses.FetchResponse.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();
if (frameBuilder_ == null) {
frame_ = null;
} else {
frame_ = null;
frameBuilder_ = null;
}
missingStatement_ = false;
missingResults_ = false;
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Responses.internal_static_FetchResponse_descriptor;
}
public org.apache.calcite.avatica.proto.Responses.FetchResponse getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Responses.FetchResponse.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Responses.FetchResponse build() {
org.apache.calcite.avatica.proto.Responses.FetchResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Responses.FetchResponse buildPartial() {
org.apache.calcite.avatica.proto.Responses.FetchResponse result = new org.apache.calcite.avatica.proto.Responses.FetchResponse(this);
if (frameBuilder_ == null) {
result.frame_ = frame_;
} else {
result.frame_ = frameBuilder_.build();
}
result.missingStatement_ = missingStatement_;
result.missingResults_ = missingResults_;
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Responses.FetchResponse) {
return mergeFrom((org.apache.calcite.avatica.proto.Responses.FetchResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Responses.FetchResponse other) {
if (other == org.apache.calcite.avatica.proto.Responses.FetchResponse.getDefaultInstance()) return this;
if (other.hasFrame()) {
mergeFrame(other.getFrame());
}
if (other.getMissingStatement() != false) {
setMissingStatement(other.getMissingStatement());
}
if (other.getMissingResults() != false) {
setMissingResults(other.getMissingResults());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.Responses.FetchResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Responses.FetchResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.apache.calcite.avatica.proto.Common.Frame frame_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.Frame, org.apache.calcite.avatica.proto.Common.Frame.Builder, org.apache.calcite.avatica.proto.Common.FrameOrBuilder> frameBuilder_;
/**
* optional .Frame frame = 1;
*/
public boolean hasFrame() {
return frameBuilder_ != null || frame_ != null;
}
/**
* optional .Frame frame = 1;
*/
public org.apache.calcite.avatica.proto.Common.Frame getFrame() {
if (frameBuilder_ == null) {
return frame_ == null ? org.apache.calcite.avatica.proto.Common.Frame.getDefaultInstance() : frame_;
} else {
return frameBuilder_.getMessage();
}
}
/**
* optional .Frame frame = 1;
*/
public Builder setFrame(org.apache.calcite.avatica.proto.Common.Frame value) {
if (frameBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
frame_ = value;
onChanged();
} else {
frameBuilder_.setMessage(value);
}
return this;
}
/**
* optional .Frame frame = 1;
*/
public Builder setFrame(
org.apache.calcite.avatica.proto.Common.Frame.Builder builderForValue) {
if (frameBuilder_ == null) {
frame_ = builderForValue.build();
onChanged();
} else {
frameBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .Frame frame = 1;
*/
public Builder mergeFrame(org.apache.calcite.avatica.proto.Common.Frame value) {
if (frameBuilder_ == null) {
if (frame_ != null) {
frame_ =
org.apache.calcite.avatica.proto.Common.Frame.newBuilder(frame_).mergeFrom(value).buildPartial();
} else {
frame_ = value;
}
onChanged();
} else {
frameBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .Frame frame = 1;
*/
public Builder clearFrame() {
if (frameBuilder_ == null) {
frame_ = null;
onChanged();
} else {
frame_ = null;
frameBuilder_ = null;
}
return this;
}
/**
* optional .Frame frame = 1;
*/
public org.apache.calcite.avatica.proto.Common.Frame.Builder getFrameBuilder() {
onChanged();
return getFrameFieldBuilder().getBuilder();
}
/**
* optional .Frame frame = 1;
*/
public org.apache.calcite.avatica.proto.Common.FrameOrBuilder getFrameOrBuilder() {
if (frameBuilder_ != null) {
return frameBuilder_.getMessageOrBuilder();
} else {
return frame_ == null ?
org.apache.calcite.avatica.proto.Common.Frame.getDefaultInstance() : frame_;
}
}
/**
* optional .Frame frame = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.Frame, org.apache.calcite.avatica.proto.Common.Frame.Builder, org.apache.calcite.avatica.proto.Common.FrameOrBuilder>
getFrameFieldBuilder() {
if (frameBuilder_ == null) {
frameBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.Frame, org.apache.calcite.avatica.proto.Common.Frame.Builder, org.apache.calcite.avatica.proto.Common.FrameOrBuilder>(
getFrame(),
getParentForChildren(),
isClean());
frame_ = null;
}
return frameBuilder_;
}
private boolean missingStatement_ ;
/**
* optional bool missing_statement = 2;
*
*
* Did the request fail because of no-cached statement
*
*/
public boolean getMissingStatement() {
return missingStatement_;
}
/**
* optional bool missing_statement = 2;
*
*
* Did the request fail because of no-cached statement
*
*/
public Builder setMissingStatement(boolean value) {
missingStatement_ = value;
onChanged();
return this;
}
/**
* optional bool missing_statement = 2;
*
*
* Did the request fail because of no-cached statement
*
*/
public Builder clearMissingStatement() {
missingStatement_ = false;
onChanged();
return this;
}
private boolean missingResults_ ;
/**
* optional bool missing_results = 3;
*
*
* Did the request fail because of a cached-statement w/o ResultSet
*
*/
public boolean getMissingResults() {
return missingResults_;
}
/**
* optional bool missing_results = 3;
*
*
* Did the request fail because of a cached-statement w/o ResultSet
*
*/
public Builder setMissingResults(boolean value) {
missingResults_ = value;
onChanged();
return this;
}
/**
* optional bool missing_results = 3;
*
*
* Did the request fail because of a cached-statement w/o ResultSet
*
*/
public Builder clearMissingResults() {
missingResults_ = false;
onChanged();
return this;
}
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder> metadataBuilder_;
/**
* optional .RpcMetadata metadata = 4;
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 4;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* optional .RpcMetadata metadata = 4;
*/
public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 4;
*/
public Builder setMetadata(
org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .RpcMetadata metadata = 4;
*/
public Builder mergeMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.apache.calcite.avatica.proto.Responses.RpcMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 4;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* optional .RpcMetadata metadata = 4;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* optional .RpcMetadata metadata = 4;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
}
/**
* optional .RpcMetadata metadata = 4;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
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:FetchResponse)
}
// @@protoc_insertion_point(class_scope:FetchResponse)
private static final org.apache.calcite.avatica.proto.Responses.FetchResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Responses.FetchResponse();
}
public static org.apache.calcite.avatica.proto.Responses.FetchResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public FetchResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new FetchResponse(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.Responses.FetchResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateStatementResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:CreateStatementResponse)
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 .RpcMetadata metadata = 3;
*/
boolean hasMetadata();
/**
* optional .RpcMetadata metadata = 3;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();
/**
* optional .RpcMetadata metadata = 3;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code CreateStatementResponse}
*
*
* Response to CreateStatementRequest
*
*/
public static final class CreateStatementResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:CreateStatementResponse)
CreateStatementResponseOrBuilder {
// Use CreateStatementResponse.newBuilder() to construct.
private CreateStatementResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private CreateStatementResponse() {
connectionId_ = "";
statementId_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CreateStatementResponse(
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.Responses.RpcMetadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.apache.calcite.avatica.proto.Responses.RpcMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = 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.Responses.internal_static_CreateStatementResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_CreateStatementResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.CreateStatementResponse.class, org.apache.calcite.avatica.proto.Responses.CreateStatementResponse.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 METADATA_FIELD_NUMBER = 3;
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_;
/**
* optional .RpcMetadata metadata = 3;
*/
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
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 (metadata_ != null) {
output.writeMessage(3, getMetadata());
}
}
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 (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getMetadata());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Responses.CreateStatementResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.CreateStatementResponse 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.Responses.CreateStatementResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.CreateStatementResponse 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.Responses.CreateStatementResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.CreateStatementResponse 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.Responses.CreateStatementResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.CreateStatementResponse 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.Responses.CreateStatementResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.CreateStatementResponse 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.Responses.CreateStatementResponse 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 CreateStatementResponse}
*
*
* Response to CreateStatementRequest
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:CreateStatementResponse)
org.apache.calcite.avatica.proto.Responses.CreateStatementResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Responses.internal_static_CreateStatementResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_CreateStatementResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.CreateStatementResponse.class, org.apache.calcite.avatica.proto.Responses.CreateStatementResponse.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Responses.CreateStatementResponse.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 (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Responses.internal_static_CreateStatementResponse_descriptor;
}
public org.apache.calcite.avatica.proto.Responses.CreateStatementResponse getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Responses.CreateStatementResponse.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Responses.CreateStatementResponse build() {
org.apache.calcite.avatica.proto.Responses.CreateStatementResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Responses.CreateStatementResponse buildPartial() {
org.apache.calcite.avatica.proto.Responses.CreateStatementResponse result = new org.apache.calcite.avatica.proto.Responses.CreateStatementResponse(this);
result.connectionId_ = connectionId_;
result.statementId_ = statementId_;
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Responses.CreateStatementResponse) {
return mergeFrom((org.apache.calcite.avatica.proto.Responses.CreateStatementResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Responses.CreateStatementResponse other) {
if (other == org.apache.calcite.avatica.proto.Responses.CreateStatementResponse.getDefaultInstance()) return this;
if (!other.getConnectionId().isEmpty()) {
connectionId_ = other.connectionId_;
onChanged();
}
if (other.getStatementId() != 0) {
setStatementId(other.getStatementId());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.Responses.CreateStatementResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Responses.CreateStatementResponse) 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.Responses.RpcMetadata metadata_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder> metadataBuilder_;
/**
* optional .RpcMetadata metadata = 3;
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* optional .RpcMetadata metadata = 3;
*/
public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public Builder setMetadata(
org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public Builder mergeMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.apache.calcite.avatica.proto.Responses.RpcMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* optional .RpcMetadata metadata = 3;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
}
/**
* optional .RpcMetadata metadata = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
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:CreateStatementResponse)
}
// @@protoc_insertion_point(class_scope:CreateStatementResponse)
private static final org.apache.calcite.avatica.proto.Responses.CreateStatementResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Responses.CreateStatementResponse();
}
public static org.apache.calcite.avatica.proto.Responses.CreateStatementResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CreateStatementResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new CreateStatementResponse(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.Responses.CreateStatementResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CloseStatementResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:CloseStatementResponse)
com.google.protobuf.MessageOrBuilder {
/**
* optional .RpcMetadata metadata = 1;
*/
boolean hasMetadata();
/**
* optional .RpcMetadata metadata = 1;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();
/**
* optional .RpcMetadata metadata = 1;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code CloseStatementResponse}
*
*
* Response to CloseStatementRequest
*
*/
public static final class CloseStatementResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:CloseStatementResponse)
CloseStatementResponseOrBuilder {
// Use CloseStatementResponse.newBuilder() to construct.
private CloseStatementResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private CloseStatementResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CloseStatementResponse(
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.Responses.RpcMetadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.apache.calcite.avatica.proto.Responses.RpcMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = 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.Responses.internal_static_CloseStatementResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_CloseStatementResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.CloseStatementResponse.class, org.apache.calcite.avatica.proto.Responses.CloseStatementResponse.Builder.class);
}
public static final int METADATA_FIELD_NUMBER = 1;
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_;
/**
* optional .RpcMetadata metadata = 1;
*/
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 1;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
/**
* optional .RpcMetadata metadata = 1;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
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 (metadata_ != null) {
output.writeMessage(1, getMetadata());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMetadata());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Responses.CloseStatementResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.CloseStatementResponse 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.Responses.CloseStatementResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.CloseStatementResponse 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.Responses.CloseStatementResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.CloseStatementResponse 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.Responses.CloseStatementResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.CloseStatementResponse 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.Responses.CloseStatementResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.CloseStatementResponse 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.Responses.CloseStatementResponse 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 CloseStatementResponse}
*
*
* Response to CloseStatementRequest
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:CloseStatementResponse)
org.apache.calcite.avatica.proto.Responses.CloseStatementResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Responses.internal_static_CloseStatementResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_CloseStatementResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.CloseStatementResponse.class, org.apache.calcite.avatica.proto.Responses.CloseStatementResponse.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Responses.CloseStatementResponse.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();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Responses.internal_static_CloseStatementResponse_descriptor;
}
public org.apache.calcite.avatica.proto.Responses.CloseStatementResponse getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Responses.CloseStatementResponse.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Responses.CloseStatementResponse build() {
org.apache.calcite.avatica.proto.Responses.CloseStatementResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Responses.CloseStatementResponse buildPartial() {
org.apache.calcite.avatica.proto.Responses.CloseStatementResponse result = new org.apache.calcite.avatica.proto.Responses.CloseStatementResponse(this);
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Responses.CloseStatementResponse) {
return mergeFrom((org.apache.calcite.avatica.proto.Responses.CloseStatementResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Responses.CloseStatementResponse other) {
if (other == org.apache.calcite.avatica.proto.Responses.CloseStatementResponse.getDefaultInstance()) return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.Responses.CloseStatementResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Responses.CloseStatementResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder> metadataBuilder_;
/**
* optional .RpcMetadata metadata = 1;
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 1;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* optional .RpcMetadata metadata = 1;
*/
public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 1;
*/
public Builder setMetadata(
org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .RpcMetadata metadata = 1;
*/
public Builder mergeMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.apache.calcite.avatica.proto.Responses.RpcMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 1;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* optional .RpcMetadata metadata = 1;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* optional .RpcMetadata metadata = 1;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
}
/**
* optional .RpcMetadata metadata = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
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:CloseStatementResponse)
}
// @@protoc_insertion_point(class_scope:CloseStatementResponse)
private static final org.apache.calcite.avatica.proto.Responses.CloseStatementResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Responses.CloseStatementResponse();
}
public static org.apache.calcite.avatica.proto.Responses.CloseStatementResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CloseStatementResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new CloseStatementResponse(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.Responses.CloseStatementResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OpenConnectionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:OpenConnectionResponse)
com.google.protobuf.MessageOrBuilder {
/**
* optional .RpcMetadata metadata = 1;
*/
boolean hasMetadata();
/**
* optional .RpcMetadata metadata = 1;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();
/**
* optional .RpcMetadata metadata = 1;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code OpenConnectionResponse}
*
*
* Response to OpenConnectionRequest {
*
*/
public static final class OpenConnectionResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:OpenConnectionResponse)
OpenConnectionResponseOrBuilder {
// Use OpenConnectionResponse.newBuilder() to construct.
private OpenConnectionResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private OpenConnectionResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private OpenConnectionResponse(
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.Responses.RpcMetadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.apache.calcite.avatica.proto.Responses.RpcMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = 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.Responses.internal_static_OpenConnectionResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_OpenConnectionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse.class, org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse.Builder.class);
}
public static final int METADATA_FIELD_NUMBER = 1;
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_;
/**
* optional .RpcMetadata metadata = 1;
*/
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 1;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
/**
* optional .RpcMetadata metadata = 1;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
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 (metadata_ != null) {
output.writeMessage(1, getMetadata());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMetadata());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse 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.Responses.OpenConnectionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse 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.Responses.OpenConnectionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse 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.Responses.OpenConnectionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse 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.Responses.OpenConnectionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse 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.Responses.OpenConnectionResponse 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 OpenConnectionResponse}
*
*
* Response to OpenConnectionRequest {
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:OpenConnectionResponse)
org.apache.calcite.avatica.proto.Responses.OpenConnectionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Responses.internal_static_OpenConnectionResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_OpenConnectionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse.class, org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse.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();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Responses.internal_static_OpenConnectionResponse_descriptor;
}
public org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse build() {
org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse buildPartial() {
org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse result = new org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse(this);
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse) {
return mergeFrom((org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse other) {
if (other == org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse.getDefaultInstance()) return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.Responses.OpenConnectionResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder> metadataBuilder_;
/**
* optional .RpcMetadata metadata = 1;
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 1;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* optional .RpcMetadata metadata = 1;
*/
public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 1;
*/
public Builder setMetadata(
org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .RpcMetadata metadata = 1;
*/
public Builder mergeMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.apache.calcite.avatica.proto.Responses.RpcMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 1;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* optional .RpcMetadata metadata = 1;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* optional .RpcMetadata metadata = 1;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
}
/**
* optional .RpcMetadata metadata = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
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:OpenConnectionResponse)
}
// @@protoc_insertion_point(class_scope:OpenConnectionResponse)
private static final org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse();
}
public static org.apache.calcite.avatica.proto.Responses.OpenConnectionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public OpenConnectionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new OpenConnectionResponse(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.Responses.OpenConnectionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CloseConnectionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:CloseConnectionResponse)
com.google.protobuf.MessageOrBuilder {
/**
* optional .RpcMetadata metadata = 1;
*/
boolean hasMetadata();
/**
* optional .RpcMetadata metadata = 1;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();
/**
* optional .RpcMetadata metadata = 1;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code CloseConnectionResponse}
*
*
* Response to CloseConnectionRequest {
*
*/
public static final class CloseConnectionResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:CloseConnectionResponse)
CloseConnectionResponseOrBuilder {
// Use CloseConnectionResponse.newBuilder() to construct.
private CloseConnectionResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private CloseConnectionResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CloseConnectionResponse(
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.Responses.RpcMetadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.apache.calcite.avatica.proto.Responses.RpcMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = 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.Responses.internal_static_CloseConnectionResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_CloseConnectionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse.class, org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse.Builder.class);
}
public static final int METADATA_FIELD_NUMBER = 1;
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_;
/**
* optional .RpcMetadata metadata = 1;
*/
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 1;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
/**
* optional .RpcMetadata metadata = 1;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
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 (metadata_ != null) {
output.writeMessage(1, getMetadata());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMetadata());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse 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.Responses.CloseConnectionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse 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.Responses.CloseConnectionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse 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.Responses.CloseConnectionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse 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.Responses.CloseConnectionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse 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.Responses.CloseConnectionResponse 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 CloseConnectionResponse}
*
*
* Response to CloseConnectionRequest {
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:CloseConnectionResponse)
org.apache.calcite.avatica.proto.Responses.CloseConnectionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Responses.internal_static_CloseConnectionResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_CloseConnectionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse.class, org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse.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();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Responses.internal_static_CloseConnectionResponse_descriptor;
}
public org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse build() {
org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse buildPartial() {
org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse result = new org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse(this);
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse) {
return mergeFrom((org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse other) {
if (other == org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse.getDefaultInstance()) return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.Responses.CloseConnectionResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder> metadataBuilder_;
/**
* optional .RpcMetadata metadata = 1;
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 1;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* optional .RpcMetadata metadata = 1;
*/
public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 1;
*/
public Builder setMetadata(
org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .RpcMetadata metadata = 1;
*/
public Builder mergeMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.apache.calcite.avatica.proto.Responses.RpcMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 1;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* optional .RpcMetadata metadata = 1;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* optional .RpcMetadata metadata = 1;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
}
/**
* optional .RpcMetadata metadata = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
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:CloseConnectionResponse)
}
// @@protoc_insertion_point(class_scope:CloseConnectionResponse)
private static final org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse();
}
public static org.apache.calcite.avatica.proto.Responses.CloseConnectionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CloseConnectionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new CloseConnectionResponse(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.Responses.CloseConnectionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConnectionSyncResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:ConnectionSyncResponse)
com.google.protobuf.MessageOrBuilder {
/**
* optional .ConnectionProperties conn_props = 1;
*/
boolean hasConnProps();
/**
* optional .ConnectionProperties conn_props = 1;
*/
org.apache.calcite.avatica.proto.Common.ConnectionProperties getConnProps();
/**
* optional .ConnectionProperties conn_props = 1;
*/
org.apache.calcite.avatica.proto.Common.ConnectionPropertiesOrBuilder getConnPropsOrBuilder();
/**
* optional .RpcMetadata metadata = 2;
*/
boolean hasMetadata();
/**
* optional .RpcMetadata metadata = 2;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();
/**
* optional .RpcMetadata metadata = 2;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code ConnectionSyncResponse}
*
*
* Response to ConnectionSyncRequest
*
*/
public static final class ConnectionSyncResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:ConnectionSyncResponse)
ConnectionSyncResponseOrBuilder {
// Use ConnectionSyncResponse.newBuilder() to construct.
private ConnectionSyncResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ConnectionSyncResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ConnectionSyncResponse(
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.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;
}
case 18: {
org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.apache.calcite.avatica.proto.Responses.RpcMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = 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.Responses.internal_static_ConnectionSyncResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_ConnectionSyncResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse.class, org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse.Builder.class);
}
public static final int CONN_PROPS_FIELD_NUMBER = 1;
private org.apache.calcite.avatica.proto.Common.ConnectionProperties connProps_;
/**
* optional .ConnectionProperties conn_props = 1;
*/
public boolean hasConnProps() {
return connProps_ != null;
}
/**
* optional .ConnectionProperties conn_props = 1;
*/
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 = 1;
*/
public org.apache.calcite.avatica.proto.Common.ConnectionPropertiesOrBuilder getConnPropsOrBuilder() {
return getConnProps();
}
public static final int METADATA_FIELD_NUMBER = 2;
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_;
/**
* optional .RpcMetadata metadata = 2;
*/
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 2;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
/**
* optional .RpcMetadata metadata = 2;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
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 (connProps_ != null) {
output.writeMessage(1, getConnProps());
}
if (metadata_ != null) {
output.writeMessage(2, getMetadata());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (connProps_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getConnProps());
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMetadata());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse 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.Responses.ConnectionSyncResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse 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.Responses.ConnectionSyncResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse 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.Responses.ConnectionSyncResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse 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.Responses.ConnectionSyncResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse 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.Responses.ConnectionSyncResponse 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 ConnectionSyncResponse}
*
*
* Response to ConnectionSyncRequest
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:ConnectionSyncResponse)
org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Responses.internal_static_ConnectionSyncResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_ConnectionSyncResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse.class, org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse.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();
if (connPropsBuilder_ == null) {
connProps_ = null;
} else {
connProps_ = null;
connPropsBuilder_ = null;
}
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Responses.internal_static_ConnectionSyncResponse_descriptor;
}
public org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse build() {
org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse buildPartial() {
org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse result = new org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse(this);
if (connPropsBuilder_ == null) {
result.connProps_ = connProps_;
} else {
result.connProps_ = connPropsBuilder_.build();
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse) {
return mergeFrom((org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse other) {
if (other == org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse.getDefaultInstance()) return this;
if (other.hasConnProps()) {
mergeConnProps(other.getConnProps());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.Responses.ConnectionSyncResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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 = 1;
*/
public boolean hasConnProps() {
return connPropsBuilder_ != null || connProps_ != null;
}
/**
* optional .ConnectionProperties conn_props = 1;
*/
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 = 1;
*/
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 = 1;
*/
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 = 1;
*/
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 = 1;
*/
public Builder clearConnProps() {
if (connPropsBuilder_ == null) {
connProps_ = null;
onChanged();
} else {
connProps_ = null;
connPropsBuilder_ = null;
}
return this;
}
/**
* optional .ConnectionProperties conn_props = 1;
*/
public org.apache.calcite.avatica.proto.Common.ConnectionProperties.Builder getConnPropsBuilder() {
onChanged();
return getConnPropsFieldBuilder().getBuilder();
}
/**
* optional .ConnectionProperties conn_props = 1;
*/
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 = 1;
*/
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_;
}
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder> metadataBuilder_;
/**
* optional .RpcMetadata metadata = 2;
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 2;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* optional .RpcMetadata metadata = 2;
*/
public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 2;
*/
public Builder setMetadata(
org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .RpcMetadata metadata = 2;
*/
public Builder mergeMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.apache.calcite.avatica.proto.Responses.RpcMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 2;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* optional .RpcMetadata metadata = 2;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* optional .RpcMetadata metadata = 2;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
}
/**
* optional .RpcMetadata metadata = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
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:ConnectionSyncResponse)
}
// @@protoc_insertion_point(class_scope:ConnectionSyncResponse)
private static final org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse();
}
public static org.apache.calcite.avatica.proto.Responses.ConnectionSyncResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ConnectionSyncResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new ConnectionSyncResponse(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.Responses.ConnectionSyncResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DatabasePropertyElementOrBuilder extends
// @@protoc_insertion_point(interface_extends:DatabasePropertyElement)
com.google.protobuf.MessageOrBuilder {
/**
* optional .DatabaseProperty key = 1;
*/
boolean hasKey();
/**
* optional .DatabaseProperty key = 1;
*/
org.apache.calcite.avatica.proto.Common.DatabaseProperty getKey();
/**
* optional .DatabaseProperty key = 1;
*/
org.apache.calcite.avatica.proto.Common.DatabasePropertyOrBuilder getKeyOrBuilder();
/**
* optional .TypedValue value = 2;
*/
boolean hasValue();
/**
* optional .TypedValue value = 2;
*/
org.apache.calcite.avatica.proto.Common.TypedValue getValue();
/**
* optional .TypedValue value = 2;
*/
org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder getValueOrBuilder();
/**
* optional .RpcMetadata metadata = 3;
*/
boolean hasMetadata();
/**
* optional .RpcMetadata metadata = 3;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();
/**
* optional .RpcMetadata metadata = 3;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code DatabasePropertyElement}
*/
public static final class DatabasePropertyElement extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:DatabasePropertyElement)
DatabasePropertyElementOrBuilder {
// Use DatabasePropertyElement.newBuilder() to construct.
private DatabasePropertyElement(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private DatabasePropertyElement() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private DatabasePropertyElement(
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.DatabaseProperty.Builder subBuilder = null;
if (key_ != null) {
subBuilder = key_.toBuilder();
}
key_ = input.readMessage(org.apache.calcite.avatica.proto.Common.DatabaseProperty.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(key_);
key_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.apache.calcite.avatica.proto.Common.TypedValue.Builder subBuilder = null;
if (value_ != null) {
subBuilder = value_.toBuilder();
}
value_ = input.readMessage(org.apache.calcite.avatica.proto.Common.TypedValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(value_);
value_ = subBuilder.buildPartial();
}
break;
}
case 26: {
org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.apache.calcite.avatica.proto.Responses.RpcMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = 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.Responses.internal_static_DatabasePropertyElement_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_DatabasePropertyElement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement.class, org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
private org.apache.calcite.avatica.proto.Common.DatabaseProperty key_;
/**
* optional .DatabaseProperty key = 1;
*/
public boolean hasKey() {
return key_ != null;
}
/**
* optional .DatabaseProperty key = 1;
*/
public org.apache.calcite.avatica.proto.Common.DatabaseProperty getKey() {
return key_ == null ? org.apache.calcite.avatica.proto.Common.DatabaseProperty.getDefaultInstance() : key_;
}
/**
* optional .DatabaseProperty key = 1;
*/
public org.apache.calcite.avatica.proto.Common.DatabasePropertyOrBuilder getKeyOrBuilder() {
return getKey();
}
public static final int VALUE_FIELD_NUMBER = 2;
private org.apache.calcite.avatica.proto.Common.TypedValue value_;
/**
* optional .TypedValue value = 2;
*/
public boolean hasValue() {
return value_ != null;
}
/**
* optional .TypedValue value = 2;
*/
public org.apache.calcite.avatica.proto.Common.TypedValue getValue() {
return value_ == null ? org.apache.calcite.avatica.proto.Common.TypedValue.getDefaultInstance() : value_;
}
/**
* optional .TypedValue value = 2;
*/
public org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder getValueOrBuilder() {
return getValue();
}
public static final int METADATA_FIELD_NUMBER = 3;
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_;
/**
* optional .RpcMetadata metadata = 3;
*/
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
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 (key_ != null) {
output.writeMessage(1, getKey());
}
if (value_ != null) {
output.writeMessage(2, getValue());
}
if (metadata_ != null) {
output.writeMessage(3, getMetadata());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (key_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getKey());
}
if (value_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getValue());
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getMetadata());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement 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.Responses.DatabasePropertyElement parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement 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.Responses.DatabasePropertyElement parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement 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.Responses.DatabasePropertyElement parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement 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.Responses.DatabasePropertyElement parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement 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.Responses.DatabasePropertyElement 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 DatabasePropertyElement}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:DatabasePropertyElement)
org.apache.calcite.avatica.proto.Responses.DatabasePropertyElementOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Responses.internal_static_DatabasePropertyElement_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_DatabasePropertyElement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement.class, org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement.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();
if (keyBuilder_ == null) {
key_ = null;
} else {
key_ = null;
keyBuilder_ = null;
}
if (valueBuilder_ == null) {
value_ = null;
} else {
value_ = null;
valueBuilder_ = null;
}
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Responses.internal_static_DatabasePropertyElement_descriptor;
}
public org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement build() {
org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement buildPartial() {
org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement result = new org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement(this);
if (keyBuilder_ == null) {
result.key_ = key_;
} else {
result.key_ = keyBuilder_.build();
}
if (valueBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = valueBuilder_.build();
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement) {
return mergeFrom((org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement other) {
if (other == org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement.getDefaultInstance()) return this;
if (other.hasKey()) {
mergeKey(other.getKey());
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.Responses.DatabasePropertyElement parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.apache.calcite.avatica.proto.Common.DatabaseProperty key_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.DatabaseProperty, org.apache.calcite.avatica.proto.Common.DatabaseProperty.Builder, org.apache.calcite.avatica.proto.Common.DatabasePropertyOrBuilder> keyBuilder_;
/**
* optional .DatabaseProperty key = 1;
*/
public boolean hasKey() {
return keyBuilder_ != null || key_ != null;
}
/**
* optional .DatabaseProperty key = 1;
*/
public org.apache.calcite.avatica.proto.Common.DatabaseProperty getKey() {
if (keyBuilder_ == null) {
return key_ == null ? org.apache.calcite.avatica.proto.Common.DatabaseProperty.getDefaultInstance() : key_;
} else {
return keyBuilder_.getMessage();
}
}
/**
* optional .DatabaseProperty key = 1;
*/
public Builder setKey(org.apache.calcite.avatica.proto.Common.DatabaseProperty value) {
if (keyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
} else {
keyBuilder_.setMessage(value);
}
return this;
}
/**
* optional .DatabaseProperty key = 1;
*/
public Builder setKey(
org.apache.calcite.avatica.proto.Common.DatabaseProperty.Builder builderForValue) {
if (keyBuilder_ == null) {
key_ = builderForValue.build();
onChanged();
} else {
keyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .DatabaseProperty key = 1;
*/
public Builder mergeKey(org.apache.calcite.avatica.proto.Common.DatabaseProperty value) {
if (keyBuilder_ == null) {
if (key_ != null) {
key_ =
org.apache.calcite.avatica.proto.Common.DatabaseProperty.newBuilder(key_).mergeFrom(value).buildPartial();
} else {
key_ = value;
}
onChanged();
} else {
keyBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .DatabaseProperty key = 1;
*/
public Builder clearKey() {
if (keyBuilder_ == null) {
key_ = null;
onChanged();
} else {
key_ = null;
keyBuilder_ = null;
}
return this;
}
/**
* optional .DatabaseProperty key = 1;
*/
public org.apache.calcite.avatica.proto.Common.DatabaseProperty.Builder getKeyBuilder() {
onChanged();
return getKeyFieldBuilder().getBuilder();
}
/**
* optional .DatabaseProperty key = 1;
*/
public org.apache.calcite.avatica.proto.Common.DatabasePropertyOrBuilder getKeyOrBuilder() {
if (keyBuilder_ != null) {
return keyBuilder_.getMessageOrBuilder();
} else {
return key_ == null ?
org.apache.calcite.avatica.proto.Common.DatabaseProperty.getDefaultInstance() : key_;
}
}
/**
* optional .DatabaseProperty key = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.DatabaseProperty, org.apache.calcite.avatica.proto.Common.DatabaseProperty.Builder, org.apache.calcite.avatica.proto.Common.DatabasePropertyOrBuilder>
getKeyFieldBuilder() {
if (keyBuilder_ == null) {
keyBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.DatabaseProperty, org.apache.calcite.avatica.proto.Common.DatabaseProperty.Builder, org.apache.calcite.avatica.proto.Common.DatabasePropertyOrBuilder>(
getKey(),
getParentForChildren(),
isClean());
key_ = null;
}
return keyBuilder_;
}
private org.apache.calcite.avatica.proto.Common.TypedValue value_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.TypedValue, org.apache.calcite.avatica.proto.Common.TypedValue.Builder, org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder> valueBuilder_;
/**
* optional .TypedValue value = 2;
*/
public boolean hasValue() {
return valueBuilder_ != null || value_ != null;
}
/**
* optional .TypedValue value = 2;
*/
public org.apache.calcite.avatica.proto.Common.TypedValue getValue() {
if (valueBuilder_ == null) {
return value_ == null ? org.apache.calcite.avatica.proto.Common.TypedValue.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* optional .TypedValue value = 2;
*/
public Builder setValue(org.apache.calcite.avatica.proto.Common.TypedValue value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
valueBuilder_.setMessage(value);
}
return this;
}
/**
* optional .TypedValue value = 2;
*/
public Builder setValue(
org.apache.calcite.avatica.proto.Common.TypedValue.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .TypedValue value = 2;
*/
public Builder mergeValue(org.apache.calcite.avatica.proto.Common.TypedValue value) {
if (valueBuilder_ == null) {
if (value_ != null) {
value_ =
org.apache.calcite.avatica.proto.Common.TypedValue.newBuilder(value_).mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
valueBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .TypedValue value = 2;
*/
public Builder clearValue() {
if (valueBuilder_ == null) {
value_ = null;
onChanged();
} else {
value_ = null;
valueBuilder_ = null;
}
return this;
}
/**
* optional .TypedValue value = 2;
*/
public org.apache.calcite.avatica.proto.Common.TypedValue.Builder getValueBuilder() {
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* optional .TypedValue value = 2;
*/
public org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
org.apache.calcite.avatica.proto.Common.TypedValue.getDefaultInstance() : value_;
}
}
/**
* optional .TypedValue value = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.TypedValue, org.apache.calcite.avatica.proto.Common.TypedValue.Builder, org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Common.TypedValue, org.apache.calcite.avatica.proto.Common.TypedValue.Builder, org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder> metadataBuilder_;
/**
* optional .RpcMetadata metadata = 3;
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* optional .RpcMetadata metadata = 3;
*/
public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public Builder setMetadata(
org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public Builder mergeMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.apache.calcite.avatica.proto.Responses.RpcMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* optional .RpcMetadata metadata = 3;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
}
/**
* optional .RpcMetadata metadata = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
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:DatabasePropertyElement)
}
// @@protoc_insertion_point(class_scope:DatabasePropertyElement)
private static final org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement();
}
public static org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public DatabasePropertyElement parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new DatabasePropertyElement(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.Responses.DatabasePropertyElement getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DatabasePropertyResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:DatabasePropertyResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .DatabasePropertyElement props = 1;
*/
java.util.List
getPropsList();
/**
* repeated .DatabasePropertyElement props = 1;
*/
org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement getProps(int index);
/**
* repeated .DatabasePropertyElement props = 1;
*/
int getPropsCount();
/**
* repeated .DatabasePropertyElement props = 1;
*/
java.util.List extends org.apache.calcite.avatica.proto.Responses.DatabasePropertyElementOrBuilder>
getPropsOrBuilderList();
/**
* repeated .DatabasePropertyElement props = 1;
*/
org.apache.calcite.avatica.proto.Responses.DatabasePropertyElementOrBuilder getPropsOrBuilder(
int index);
/**
* optional .RpcMetadata metadata = 2;
*/
boolean hasMetadata();
/**
* optional .RpcMetadata metadata = 2;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();
/**
* optional .RpcMetadata metadata = 2;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code DatabasePropertyResponse}
*
*
* Response for Meta#getDatabaseProperties()
*
*/
public static final class DatabasePropertyResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:DatabasePropertyResponse)
DatabasePropertyResponseOrBuilder {
// Use DatabasePropertyResponse.newBuilder() to construct.
private DatabasePropertyResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private DatabasePropertyResponse() {
props_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private DatabasePropertyResponse(
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)) {
props_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
props_.add(input.readMessage(org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement.parser(), extensionRegistry));
break;
}
case 18: {
org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.apache.calcite.avatica.proto.Responses.RpcMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = 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 {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
props_ = java.util.Collections.unmodifiableList(props_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Responses.internal_static_DatabasePropertyResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_DatabasePropertyResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse.class, org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse.Builder.class);
}
private int bitField0_;
public static final int PROPS_FIELD_NUMBER = 1;
private java.util.List props_;
/**
* repeated .DatabasePropertyElement props = 1;
*/
public java.util.List getPropsList() {
return props_;
}
/**
* repeated .DatabasePropertyElement props = 1;
*/
public java.util.List extends org.apache.calcite.avatica.proto.Responses.DatabasePropertyElementOrBuilder>
getPropsOrBuilderList() {
return props_;
}
/**
* repeated .DatabasePropertyElement props = 1;
*/
public int getPropsCount() {
return props_.size();
}
/**
* repeated .DatabasePropertyElement props = 1;
*/
public org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement getProps(int index) {
return props_.get(index);
}
/**
* repeated .DatabasePropertyElement props = 1;
*/
public org.apache.calcite.avatica.proto.Responses.DatabasePropertyElementOrBuilder getPropsOrBuilder(
int index) {
return props_.get(index);
}
public static final int METADATA_FIELD_NUMBER = 2;
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_;
/**
* optional .RpcMetadata metadata = 2;
*/
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 2;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
/**
* optional .RpcMetadata metadata = 2;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
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 < props_.size(); i++) {
output.writeMessage(1, props_.get(i));
}
if (metadata_ != null) {
output.writeMessage(2, getMetadata());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < props_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, props_.get(i));
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMetadata());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse 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.Responses.DatabasePropertyResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse 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.Responses.DatabasePropertyResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse 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.Responses.DatabasePropertyResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse 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.Responses.DatabasePropertyResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse 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.Responses.DatabasePropertyResponse 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 DatabasePropertyResponse}
*
*
* Response for Meta#getDatabaseProperties()
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:DatabasePropertyResponse)
org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Responses.internal_static_DatabasePropertyResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_DatabasePropertyResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse.class, org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getPropsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (propsBuilder_ == null) {
props_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
propsBuilder_.clear();
}
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Responses.internal_static_DatabasePropertyResponse_descriptor;
}
public org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse build() {
org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse buildPartial() {
org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse result = new org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (propsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
props_ = java.util.Collections.unmodifiableList(props_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.props_ = props_;
} else {
result.props_ = propsBuilder_.build();
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse) {
return mergeFrom((org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse other) {
if (other == org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse.getDefaultInstance()) return this;
if (propsBuilder_ == null) {
if (!other.props_.isEmpty()) {
if (props_.isEmpty()) {
props_ = other.props_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePropsIsMutable();
props_.addAll(other.props_);
}
onChanged();
}
} else {
if (!other.props_.isEmpty()) {
if (propsBuilder_.isEmpty()) {
propsBuilder_.dispose();
propsBuilder_ = null;
props_ = other.props_;
bitField0_ = (bitField0_ & ~0x00000001);
propsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getPropsFieldBuilder() : null;
} else {
propsBuilder_.addAllMessages(other.props_);
}
}
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.Responses.DatabasePropertyResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List props_ =
java.util.Collections.emptyList();
private void ensurePropsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
props_ = new java.util.ArrayList(props_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement, org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement.Builder, org.apache.calcite.avatica.proto.Responses.DatabasePropertyElementOrBuilder> propsBuilder_;
/**
* repeated .DatabasePropertyElement props = 1;
*/
public java.util.List getPropsList() {
if (propsBuilder_ == null) {
return java.util.Collections.unmodifiableList(props_);
} else {
return propsBuilder_.getMessageList();
}
}
/**
* repeated .DatabasePropertyElement props = 1;
*/
public int getPropsCount() {
if (propsBuilder_ == null) {
return props_.size();
} else {
return propsBuilder_.getCount();
}
}
/**
* repeated .DatabasePropertyElement props = 1;
*/
public org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement getProps(int index) {
if (propsBuilder_ == null) {
return props_.get(index);
} else {
return propsBuilder_.getMessage(index);
}
}
/**
* repeated .DatabasePropertyElement props = 1;
*/
public Builder setProps(
int index, org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement value) {
if (propsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePropsIsMutable();
props_.set(index, value);
onChanged();
} else {
propsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .DatabasePropertyElement props = 1;
*/
public Builder setProps(
int index, org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement.Builder builderForValue) {
if (propsBuilder_ == null) {
ensurePropsIsMutable();
props_.set(index, builderForValue.build());
onChanged();
} else {
propsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .DatabasePropertyElement props = 1;
*/
public Builder addProps(org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement value) {
if (propsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePropsIsMutable();
props_.add(value);
onChanged();
} else {
propsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .DatabasePropertyElement props = 1;
*/
public Builder addProps(
int index, org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement value) {
if (propsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePropsIsMutable();
props_.add(index, value);
onChanged();
} else {
propsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .DatabasePropertyElement props = 1;
*/
public Builder addProps(
org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement.Builder builderForValue) {
if (propsBuilder_ == null) {
ensurePropsIsMutable();
props_.add(builderForValue.build());
onChanged();
} else {
propsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .DatabasePropertyElement props = 1;
*/
public Builder addProps(
int index, org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement.Builder builderForValue) {
if (propsBuilder_ == null) {
ensurePropsIsMutable();
props_.add(index, builderForValue.build());
onChanged();
} else {
propsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .DatabasePropertyElement props = 1;
*/
public Builder addAllProps(
java.lang.Iterable extends org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement> values) {
if (propsBuilder_ == null) {
ensurePropsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, props_);
onChanged();
} else {
propsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .DatabasePropertyElement props = 1;
*/
public Builder clearProps() {
if (propsBuilder_ == null) {
props_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
propsBuilder_.clear();
}
return this;
}
/**
* repeated .DatabasePropertyElement props = 1;
*/
public Builder removeProps(int index) {
if (propsBuilder_ == null) {
ensurePropsIsMutable();
props_.remove(index);
onChanged();
} else {
propsBuilder_.remove(index);
}
return this;
}
/**
* repeated .DatabasePropertyElement props = 1;
*/
public org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement.Builder getPropsBuilder(
int index) {
return getPropsFieldBuilder().getBuilder(index);
}
/**
* repeated .DatabasePropertyElement props = 1;
*/
public org.apache.calcite.avatica.proto.Responses.DatabasePropertyElementOrBuilder getPropsOrBuilder(
int index) {
if (propsBuilder_ == null) {
return props_.get(index); } else {
return propsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .DatabasePropertyElement props = 1;
*/
public java.util.List extends org.apache.calcite.avatica.proto.Responses.DatabasePropertyElementOrBuilder>
getPropsOrBuilderList() {
if (propsBuilder_ != null) {
return propsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(props_);
}
}
/**
* repeated .DatabasePropertyElement props = 1;
*/
public org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement.Builder addPropsBuilder() {
return getPropsFieldBuilder().addBuilder(
org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement.getDefaultInstance());
}
/**
* repeated .DatabasePropertyElement props = 1;
*/
public org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement.Builder addPropsBuilder(
int index) {
return getPropsFieldBuilder().addBuilder(
index, org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement.getDefaultInstance());
}
/**
* repeated .DatabasePropertyElement props = 1;
*/
public java.util.List
getPropsBuilderList() {
return getPropsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement, org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement.Builder, org.apache.calcite.avatica.proto.Responses.DatabasePropertyElementOrBuilder>
getPropsFieldBuilder() {
if (propsBuilder_ == null) {
propsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement, org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement.Builder, org.apache.calcite.avatica.proto.Responses.DatabasePropertyElementOrBuilder>(
props_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
props_ = null;
}
return propsBuilder_;
}
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder> metadataBuilder_;
/**
* optional .RpcMetadata metadata = 2;
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 2;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* optional .RpcMetadata metadata = 2;
*/
public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 2;
*/
public Builder setMetadata(
org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .RpcMetadata metadata = 2;
*/
public Builder mergeMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.apache.calcite.avatica.proto.Responses.RpcMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 2;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* optional .RpcMetadata metadata = 2;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* optional .RpcMetadata metadata = 2;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
}
/**
* optional .RpcMetadata metadata = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
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:DatabasePropertyResponse)
}
// @@protoc_insertion_point(class_scope:DatabasePropertyResponse)
private static final org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse();
}
public static org.apache.calcite.avatica.proto.Responses.DatabasePropertyResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public DatabasePropertyResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new DatabasePropertyResponse(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.Responses.DatabasePropertyResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ErrorResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:ErrorResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string exceptions = 1;
*
*
* exception stacktraces, many for linked exceptions.
*
*/
com.google.protobuf.ProtocolStringList
getExceptionsList();
/**
* repeated string exceptions = 1;
*
*
* exception stacktraces, many for linked exceptions.
*
*/
int getExceptionsCount();
/**
* repeated string exceptions = 1;
*
*
* exception stacktraces, many for linked exceptions.
*
*/
java.lang.String getExceptions(int index);
/**
* repeated string exceptions = 1;
*
*
* exception stacktraces, many for linked exceptions.
*
*/
com.google.protobuf.ByteString
getExceptionsBytes(int index);
/**
* optional bool has_exceptions = 7;
*
*
* are there stacktraces contained?
*
*/
boolean getHasExceptions();
/**
* optional string error_message = 2;
*
*
* human readable description
*
*/
java.lang.String getErrorMessage();
/**
* optional string error_message = 2;
*
*
* human readable description
*
*/
com.google.protobuf.ByteString
getErrorMessageBytes();
/**
* optional .Severity severity = 3;
*/
int getSeverityValue();
/**
* optional .Severity severity = 3;
*/
org.apache.calcite.avatica.proto.Common.Severity getSeverity();
/**
* optional uint32 error_code = 4;
*
*
* numeric identifier for error
*
*/
int getErrorCode();
/**
* optional string sql_state = 5;
*
*
* five-character standard-defined value
*
*/
java.lang.String getSqlState();
/**
* optional string sql_state = 5;
*
*
* five-character standard-defined value
*
*/
com.google.protobuf.ByteString
getSqlStateBytes();
/**
* optional .RpcMetadata metadata = 6;
*/
boolean hasMetadata();
/**
* optional .RpcMetadata metadata = 6;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();
/**
* optional .RpcMetadata metadata = 6;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code ErrorResponse}
*
*
* Send contextual information about some error over the wire from the server.
*
*/
public static final class ErrorResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:ErrorResponse)
ErrorResponseOrBuilder {
// Use ErrorResponse.newBuilder() to construct.
private ErrorResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ErrorResponse() {
exceptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
hasExceptions_ = false;
errorMessage_ = "";
severity_ = 0;
errorCode_ = 0;
sqlState_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ErrorResponse(
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();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
exceptions_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
exceptions_.add(s);
break;
}
case 18: {
String s = input.readStringRequireUtf8();
errorMessage_ = s;
break;
}
case 24: {
int rawValue = input.readEnum();
severity_ = rawValue;
break;
}
case 32: {
errorCode_ = input.readUInt32();
break;
}
case 42: {
String s = input.readStringRequireUtf8();
sqlState_ = s;
break;
}
case 50: {
org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.apache.calcite.avatica.proto.Responses.RpcMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
break;
}
case 56: {
hasExceptions_ = 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_ & 0x00000001) == 0x00000001)) {
exceptions_ = exceptions_.getUnmodifiableView();
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Responses.internal_static_ErrorResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_ErrorResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.ErrorResponse.class, org.apache.calcite.avatica.proto.Responses.ErrorResponse.Builder.class);
}
private int bitField0_;
public static final int EXCEPTIONS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList exceptions_;
/**
* repeated string exceptions = 1;
*
*
* exception stacktraces, many for linked exceptions.
*
*/
public com.google.protobuf.ProtocolStringList
getExceptionsList() {
return exceptions_;
}
/**
* repeated string exceptions = 1;
*
*
* exception stacktraces, many for linked exceptions.
*
*/
public int getExceptionsCount() {
return exceptions_.size();
}
/**
* repeated string exceptions = 1;
*
*
* exception stacktraces, many for linked exceptions.
*
*/
public java.lang.String getExceptions(int index) {
return exceptions_.get(index);
}
/**
* repeated string exceptions = 1;
*
*
* exception stacktraces, many for linked exceptions.
*
*/
public com.google.protobuf.ByteString
getExceptionsBytes(int index) {
return exceptions_.getByteString(index);
}
public static final int HAS_EXCEPTIONS_FIELD_NUMBER = 7;
private boolean hasExceptions_;
/**
* optional bool has_exceptions = 7;
*
*
* are there stacktraces contained?
*
*/
public boolean getHasExceptions() {
return hasExceptions_;
}
public static final int ERROR_MESSAGE_FIELD_NUMBER = 2;
private volatile java.lang.Object errorMessage_;
/**
* optional string error_message = 2;
*
*
* human readable description
*
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
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();
errorMessage_ = s;
return s;
}
}
/**
* optional string error_message = 2;
*
*
* human readable description
*
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SEVERITY_FIELD_NUMBER = 3;
private int severity_;
/**
* optional .Severity severity = 3;
*/
public int getSeverityValue() {
return severity_;
}
/**
* optional .Severity severity = 3;
*/
public org.apache.calcite.avatica.proto.Common.Severity getSeverity() {
org.apache.calcite.avatica.proto.Common.Severity result = org.apache.calcite.avatica.proto.Common.Severity.valueOf(severity_);
return result == null ? org.apache.calcite.avatica.proto.Common.Severity.UNRECOGNIZED : result;
}
public static final int ERROR_CODE_FIELD_NUMBER = 4;
private int errorCode_;
/**
* optional uint32 error_code = 4;
*
*
* numeric identifier for error
*
*/
public int getErrorCode() {
return errorCode_;
}
public static final int SQL_STATE_FIELD_NUMBER = 5;
private volatile java.lang.Object sqlState_;
/**
* optional string sql_state = 5;
*
*
* five-character standard-defined value
*
*/
public java.lang.String getSqlState() {
java.lang.Object ref = sqlState_;
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();
sqlState_ = s;
return s;
}
}
/**
* optional string sql_state = 5;
*
*
* five-character standard-defined value
*
*/
public com.google.protobuf.ByteString
getSqlStateBytes() {
java.lang.Object ref = sqlState_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sqlState_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int METADATA_FIELD_NUMBER = 6;
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_;
/**
* optional .RpcMetadata metadata = 6;
*/
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 6;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
/**
* optional .RpcMetadata metadata = 6;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
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 < exceptions_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, exceptions_.getRaw(i));
}
if (!getErrorMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, errorMessage_);
}
if (severity_ != org.apache.calcite.avatica.proto.Common.Severity.UNKNOWN_SEVERITY.getNumber()) {
output.writeEnum(3, severity_);
}
if (errorCode_ != 0) {
output.writeUInt32(4, errorCode_);
}
if (!getSqlStateBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 5, sqlState_);
}
if (metadata_ != null) {
output.writeMessage(6, getMetadata());
}
if (hasExceptions_ != false) {
output.writeBool(7, hasExceptions_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < exceptions_.size(); i++) {
dataSize += computeStringSizeNoTag(exceptions_.getRaw(i));
}
size += dataSize;
size += 1 * getExceptionsList().size();
}
if (!getErrorMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, errorMessage_);
}
if (severity_ != org.apache.calcite.avatica.proto.Common.Severity.UNKNOWN_SEVERITY.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, severity_);
}
if (errorCode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, errorCode_);
}
if (!getSqlStateBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(5, sqlState_);
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getMetadata());
}
if (hasExceptions_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, hasExceptions_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Responses.ErrorResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.ErrorResponse 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.Responses.ErrorResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.ErrorResponse 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.Responses.ErrorResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.ErrorResponse 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.Responses.ErrorResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.ErrorResponse 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.Responses.ErrorResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.ErrorResponse 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.Responses.ErrorResponse 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 ErrorResponse}
*
*
* Send contextual information about some error over the wire from the server.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:ErrorResponse)
org.apache.calcite.avatica.proto.Responses.ErrorResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Responses.internal_static_ErrorResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_ErrorResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.ErrorResponse.class, org.apache.calcite.avatica.proto.Responses.ErrorResponse.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Responses.ErrorResponse.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();
exceptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
hasExceptions_ = false;
errorMessage_ = "";
severity_ = 0;
errorCode_ = 0;
sqlState_ = "";
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Responses.internal_static_ErrorResponse_descriptor;
}
public org.apache.calcite.avatica.proto.Responses.ErrorResponse getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Responses.ErrorResponse.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Responses.ErrorResponse build() {
org.apache.calcite.avatica.proto.Responses.ErrorResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Responses.ErrorResponse buildPartial() {
org.apache.calcite.avatica.proto.Responses.ErrorResponse result = new org.apache.calcite.avatica.proto.Responses.ErrorResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
exceptions_ = exceptions_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.exceptions_ = exceptions_;
result.hasExceptions_ = hasExceptions_;
result.errorMessage_ = errorMessage_;
result.severity_ = severity_;
result.errorCode_ = errorCode_;
result.sqlState_ = sqlState_;
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Responses.ErrorResponse) {
return mergeFrom((org.apache.calcite.avatica.proto.Responses.ErrorResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Responses.ErrorResponse other) {
if (other == org.apache.calcite.avatica.proto.Responses.ErrorResponse.getDefaultInstance()) return this;
if (!other.exceptions_.isEmpty()) {
if (exceptions_.isEmpty()) {
exceptions_ = other.exceptions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureExceptionsIsMutable();
exceptions_.addAll(other.exceptions_);
}
onChanged();
}
if (other.getHasExceptions() != false) {
setHasExceptions(other.getHasExceptions());
}
if (!other.getErrorMessage().isEmpty()) {
errorMessage_ = other.errorMessage_;
onChanged();
}
if (other.severity_ != 0) {
setSeverityValue(other.getSeverityValue());
}
if (other.getErrorCode() != 0) {
setErrorCode(other.getErrorCode());
}
if (!other.getSqlState().isEmpty()) {
sqlState_ = other.sqlState_;
onChanged();
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.Responses.ErrorResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Responses.ErrorResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList exceptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureExceptionsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
exceptions_ = new com.google.protobuf.LazyStringArrayList(exceptions_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string exceptions = 1;
*
*
* exception stacktraces, many for linked exceptions.
*
*/
public com.google.protobuf.ProtocolStringList
getExceptionsList() {
return exceptions_.getUnmodifiableView();
}
/**
* repeated string exceptions = 1;
*
*
* exception stacktraces, many for linked exceptions.
*
*/
public int getExceptionsCount() {
return exceptions_.size();
}
/**
* repeated string exceptions = 1;
*
*
* exception stacktraces, many for linked exceptions.
*
*/
public java.lang.String getExceptions(int index) {
return exceptions_.get(index);
}
/**
* repeated string exceptions = 1;
*
*
* exception stacktraces, many for linked exceptions.
*
*/
public com.google.protobuf.ByteString
getExceptionsBytes(int index) {
return exceptions_.getByteString(index);
}
/**
* repeated string exceptions = 1;
*
*
* exception stacktraces, many for linked exceptions.
*
*/
public Builder setExceptions(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureExceptionsIsMutable();
exceptions_.set(index, value);
onChanged();
return this;
}
/**
* repeated string exceptions = 1;
*
*
* exception stacktraces, many for linked exceptions.
*
*/
public Builder addExceptions(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureExceptionsIsMutable();
exceptions_.add(value);
onChanged();
return this;
}
/**
* repeated string exceptions = 1;
*
*
* exception stacktraces, many for linked exceptions.
*
*/
public Builder addAllExceptions(
java.lang.Iterable values) {
ensureExceptionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, exceptions_);
onChanged();
return this;
}
/**
* repeated string exceptions = 1;
*
*
* exception stacktraces, many for linked exceptions.
*
*/
public Builder clearExceptions() {
exceptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string exceptions = 1;
*
*
* exception stacktraces, many for linked exceptions.
*
*/
public Builder addExceptionsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureExceptionsIsMutable();
exceptions_.add(value);
onChanged();
return this;
}
private boolean hasExceptions_ ;
/**
* optional bool has_exceptions = 7;
*
*
* are there stacktraces contained?
*
*/
public boolean getHasExceptions() {
return hasExceptions_;
}
/**
* optional bool has_exceptions = 7;
*
*
* are there stacktraces contained?
*
*/
public Builder setHasExceptions(boolean value) {
hasExceptions_ = value;
onChanged();
return this;
}
/**
* optional bool has_exceptions = 7;
*
*
* are there stacktraces contained?
*
*/
public Builder clearHasExceptions() {
hasExceptions_ = false;
onChanged();
return this;
}
private java.lang.Object errorMessage_ = "";
/**
* optional string error_message = 2;
*
*
* human readable description
*
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string error_message = 2;
*
*
* human readable description
*
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string error_message = 2;
*
*
* human readable description
*
*/
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
errorMessage_ = value;
onChanged();
return this;
}
/**
* optional string error_message = 2;
*
*
* human readable description
*
*/
public Builder clearErrorMessage() {
errorMessage_ = getDefaultInstance().getErrorMessage();
onChanged();
return this;
}
/**
* optional string error_message = 2;
*
*
* human readable description
*
*/
public Builder setErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
errorMessage_ = value;
onChanged();
return this;
}
private int severity_ = 0;
/**
* optional .Severity severity = 3;
*/
public int getSeverityValue() {
return severity_;
}
/**
* optional .Severity severity = 3;
*/
public Builder setSeverityValue(int value) {
severity_ = value;
onChanged();
return this;
}
/**
* optional .Severity severity = 3;
*/
public org.apache.calcite.avatica.proto.Common.Severity getSeverity() {
org.apache.calcite.avatica.proto.Common.Severity result = org.apache.calcite.avatica.proto.Common.Severity.valueOf(severity_);
return result == null ? org.apache.calcite.avatica.proto.Common.Severity.UNRECOGNIZED : result;
}
/**
* optional .Severity severity = 3;
*/
public Builder setSeverity(org.apache.calcite.avatica.proto.Common.Severity value) {
if (value == null) {
throw new NullPointerException();
}
severity_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .Severity severity = 3;
*/
public Builder clearSeverity() {
severity_ = 0;
onChanged();
return this;
}
private int errorCode_ ;
/**
* optional uint32 error_code = 4;
*
*
* numeric identifier for error
*
*/
public int getErrorCode() {
return errorCode_;
}
/**
* optional uint32 error_code = 4;
*
*
* numeric identifier for error
*
*/
public Builder setErrorCode(int value) {
errorCode_ = value;
onChanged();
return this;
}
/**
* optional uint32 error_code = 4;
*
*
* numeric identifier for error
*
*/
public Builder clearErrorCode() {
errorCode_ = 0;
onChanged();
return this;
}
private java.lang.Object sqlState_ = "";
/**
* optional string sql_state = 5;
*
*
* five-character standard-defined value
*
*/
public java.lang.String getSqlState() {
java.lang.Object ref = sqlState_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sqlState_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string sql_state = 5;
*
*
* five-character standard-defined value
*
*/
public com.google.protobuf.ByteString
getSqlStateBytes() {
java.lang.Object ref = sqlState_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sqlState_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string sql_state = 5;
*
*
* five-character standard-defined value
*
*/
public Builder setSqlState(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sqlState_ = value;
onChanged();
return this;
}
/**
* optional string sql_state = 5;
*
*
* five-character standard-defined value
*
*/
public Builder clearSqlState() {
sqlState_ = getDefaultInstance().getSqlState();
onChanged();
return this;
}
/**
* optional string sql_state = 5;
*
*
* five-character standard-defined value
*
*/
public Builder setSqlStateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sqlState_ = value;
onChanged();
return this;
}
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder> metadataBuilder_;
/**
* optional .RpcMetadata metadata = 6;
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 6;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* optional .RpcMetadata metadata = 6;
*/
public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 6;
*/
public Builder setMetadata(
org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .RpcMetadata metadata = 6;
*/
public Builder mergeMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.apache.calcite.avatica.proto.Responses.RpcMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 6;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* optional .RpcMetadata metadata = 6;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* optional .RpcMetadata metadata = 6;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
}
/**
* optional .RpcMetadata metadata = 6;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
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:ErrorResponse)
}
// @@protoc_insertion_point(class_scope:ErrorResponse)
private static final org.apache.calcite.avatica.proto.Responses.ErrorResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Responses.ErrorResponse();
}
public static org.apache.calcite.avatica.proto.Responses.ErrorResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ErrorResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new ErrorResponse(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.Responses.ErrorResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SyncResultsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:SyncResultsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* optional bool missing_statement = 1;
*
*
* Server doesn't have the statement with the ID from the request
*
*/
boolean getMissingStatement();
/**
* optional bool more_results = 2;
*
*
* Should the client fetch() to get more results
*
*/
boolean getMoreResults();
/**
* optional .RpcMetadata metadata = 3;
*/
boolean hasMetadata();
/**
* optional .RpcMetadata metadata = 3;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();
/**
* optional .RpcMetadata metadata = 3;
*/
org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder();
}
/**
* Protobuf type {@code SyncResultsResponse}
*/
public static final class SyncResultsResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:SyncResultsResponse)
SyncResultsResponseOrBuilder {
// Use SyncResultsResponse.newBuilder() to construct.
private SyncResultsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private SyncResultsResponse() {
missingStatement_ = false;
moreResults_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private SyncResultsResponse(
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 8: {
missingStatement_ = input.readBool();
break;
}
case 16: {
moreResults_ = input.readBool();
break;
}
case 26: {
org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.apache.calcite.avatica.proto.Responses.RpcMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = 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.Responses.internal_static_SyncResultsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_SyncResultsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.SyncResultsResponse.class, org.apache.calcite.avatica.proto.Responses.SyncResultsResponse.Builder.class);
}
public static final int MISSING_STATEMENT_FIELD_NUMBER = 1;
private boolean missingStatement_;
/**
* optional bool missing_statement = 1;
*
*
* Server doesn't have the statement with the ID from the request
*
*/
public boolean getMissingStatement() {
return missingStatement_;
}
public static final int MORE_RESULTS_FIELD_NUMBER = 2;
private boolean moreResults_;
/**
* optional bool more_results = 2;
*
*
* Should the client fetch() to get more results
*
*/
public boolean getMoreResults() {
return moreResults_;
}
public static final int METADATA_FIELD_NUMBER = 3;
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_;
/**
* optional .RpcMetadata metadata = 3;
*/
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
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 (missingStatement_ != false) {
output.writeBool(1, missingStatement_);
}
if (moreResults_ != false) {
output.writeBool(2, moreResults_);
}
if (metadata_ != null) {
output.writeMessage(3, getMetadata());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (missingStatement_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, missingStatement_);
}
if (moreResults_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, moreResults_);
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getMetadata());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Responses.SyncResultsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.SyncResultsResponse 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.Responses.SyncResultsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.SyncResultsResponse 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.Responses.SyncResultsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.SyncResultsResponse 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.Responses.SyncResultsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.SyncResultsResponse 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.Responses.SyncResultsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.SyncResultsResponse 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.Responses.SyncResultsResponse 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 SyncResultsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:SyncResultsResponse)
org.apache.calcite.avatica.proto.Responses.SyncResultsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Responses.internal_static_SyncResultsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_SyncResultsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.SyncResultsResponse.class, org.apache.calcite.avatica.proto.Responses.SyncResultsResponse.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Responses.SyncResultsResponse.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();
missingStatement_ = false;
moreResults_ = false;
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Responses.internal_static_SyncResultsResponse_descriptor;
}
public org.apache.calcite.avatica.proto.Responses.SyncResultsResponse getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Responses.SyncResultsResponse.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Responses.SyncResultsResponse build() {
org.apache.calcite.avatica.proto.Responses.SyncResultsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Responses.SyncResultsResponse buildPartial() {
org.apache.calcite.avatica.proto.Responses.SyncResultsResponse result = new org.apache.calcite.avatica.proto.Responses.SyncResultsResponse(this);
result.missingStatement_ = missingStatement_;
result.moreResults_ = moreResults_;
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Responses.SyncResultsResponse) {
return mergeFrom((org.apache.calcite.avatica.proto.Responses.SyncResultsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Responses.SyncResultsResponse other) {
if (other == org.apache.calcite.avatica.proto.Responses.SyncResultsResponse.getDefaultInstance()) return this;
if (other.getMissingStatement() != false) {
setMissingStatement(other.getMissingStatement());
}
if (other.getMoreResults() != false) {
setMoreResults(other.getMoreResults());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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.Responses.SyncResultsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Responses.SyncResultsResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private boolean missingStatement_ ;
/**
* optional bool missing_statement = 1;
*
*
* Server doesn't have the statement with the ID from the request
*
*/
public boolean getMissingStatement() {
return missingStatement_;
}
/**
* optional bool missing_statement = 1;
*
*
* Server doesn't have the statement with the ID from the request
*
*/
public Builder setMissingStatement(boolean value) {
missingStatement_ = value;
onChanged();
return this;
}
/**
* optional bool missing_statement = 1;
*
*
* Server doesn't have the statement with the ID from the request
*
*/
public Builder clearMissingStatement() {
missingStatement_ = false;
onChanged();
return this;
}
private boolean moreResults_ ;
/**
* optional bool more_results = 2;
*
*
* Should the client fetch() to get more results
*
*/
public boolean getMoreResults() {
return moreResults_;
}
/**
* optional bool more_results = 2;
*
*
* Should the client fetch() to get more results
*
*/
public Builder setMoreResults(boolean value) {
moreResults_ = value;
onChanged();
return this;
}
/**
* optional bool more_results = 2;
*
*
* Should the client fetch() to get more results
*
*/
public Builder clearMoreResults() {
moreResults_ = false;
onChanged();
return this;
}
private org.apache.calcite.avatica.proto.Responses.RpcMetadata metadata_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder> metadataBuilder_;
/**
* optional .RpcMetadata metadata = 3;
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* optional .RpcMetadata metadata = 3;
*/
public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public Builder setMetadata(
org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public Builder mergeMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
org.apache.calcite.avatica.proto.Responses.RpcMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* optional .RpcMetadata metadata = 3;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* optional .RpcMetadata metadata = 3;
*/
public org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;
}
}
/**
* optional .RpcMetadata metadata = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.calcite.avatica.proto.Responses.RpcMetadata, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder, org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
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:SyncResultsResponse)
}
// @@protoc_insertion_point(class_scope:SyncResultsResponse)
private static final org.apache.calcite.avatica.proto.Responses.SyncResultsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Responses.SyncResultsResponse();
}
public static org.apache.calcite.avatica.proto.Responses.SyncResultsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SyncResultsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new SyncResultsResponse(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.Responses.SyncResultsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RpcMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:RpcMetadata)
com.google.protobuf.MessageOrBuilder {
/**
* optional string server_address = 1;
*
*
* The host:port of the server
*
*/
java.lang.String getServerAddress();
/**
* optional string server_address = 1;
*
*
* The host:port of the server
*
*/
com.google.protobuf.ByteString
getServerAddressBytes();
}
/**
* Protobuf type {@code RpcMetadata}
*
*
* Generic metadata for the server to return with each response.
*
*/
public static final class RpcMetadata extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:RpcMetadata)
RpcMetadataOrBuilder {
// Use RpcMetadata.newBuilder() to construct.
private RpcMetadata(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private RpcMetadata() {
serverAddress_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private RpcMetadata(
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();
serverAddress_ = 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.Responses.internal_static_RpcMetadata_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_RpcMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.RpcMetadata.class, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder.class);
}
public static final int SERVER_ADDRESS_FIELD_NUMBER = 1;
private volatile java.lang.Object serverAddress_;
/**
* optional string server_address = 1;
*
*
* The host:port of the server
*
*/
public java.lang.String getServerAddress() {
java.lang.Object ref = serverAddress_;
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();
serverAddress_ = s;
return s;
}
}
/**
* optional string server_address = 1;
*
*
* The host:port of the server
*
*/
public com.google.protobuf.ByteString
getServerAddressBytes() {
java.lang.Object ref = serverAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serverAddress_ = 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 (!getServerAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, serverAddress_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getServerAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, serverAddress_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Responses.RpcMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.RpcMetadata 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.Responses.RpcMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.RpcMetadata 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.Responses.RpcMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.RpcMetadata 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.Responses.RpcMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.RpcMetadata 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.Responses.RpcMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.RpcMetadata 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.Responses.RpcMetadata 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 RpcMetadata}
*
*
* Generic metadata for the server to return with each response.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:RpcMetadata)
org.apache.calcite.avatica.proto.Responses.RpcMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Responses.internal_static_RpcMetadata_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_RpcMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.RpcMetadata.class, org.apache.calcite.avatica.proto.Responses.RpcMetadata.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Responses.RpcMetadata.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();
serverAddress_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Responses.internal_static_RpcMetadata_descriptor;
}
public org.apache.calcite.avatica.proto.Responses.RpcMetadata getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Responses.RpcMetadata build() {
org.apache.calcite.avatica.proto.Responses.RpcMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Responses.RpcMetadata buildPartial() {
org.apache.calcite.avatica.proto.Responses.RpcMetadata result = new org.apache.calcite.avatica.proto.Responses.RpcMetadata(this);
result.serverAddress_ = serverAddress_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Responses.RpcMetadata) {
return mergeFrom((org.apache.calcite.avatica.proto.Responses.RpcMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Responses.RpcMetadata other) {
if (other == org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance()) return this;
if (!other.getServerAddress().isEmpty()) {
serverAddress_ = other.serverAddress_;
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.Responses.RpcMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Responses.RpcMetadata) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object serverAddress_ = "";
/**
* optional string server_address = 1;
*
*
* The host:port of the server
*
*/
public java.lang.String getServerAddress() {
java.lang.Object ref = serverAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serverAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string server_address = 1;
*
*
* The host:port of the server
*
*/
public com.google.protobuf.ByteString
getServerAddressBytes() {
java.lang.Object ref = serverAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serverAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string server_address = 1;
*
*
* The host:port of the server
*
*/
public Builder setServerAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serverAddress_ = value;
onChanged();
return this;
}
/**
* optional string server_address = 1;
*
*
* The host:port of the server
*
*/
public Builder clearServerAddress() {
serverAddress_ = getDefaultInstance().getServerAddress();
onChanged();
return this;
}
/**
* optional string server_address = 1;
*
*
* The host:port of the server
*
*/
public Builder setServerAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serverAddress_ = 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:RpcMetadata)
}
// @@protoc_insertion_point(class_scope:RpcMetadata)
private static final org.apache.calcite.avatica.proto.Responses.RpcMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Responses.RpcMetadata();
}
public static org.apache.calcite.avatica.proto.Responses.RpcMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public RpcMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new RpcMetadata(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.Responses.RpcMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CommitResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:CommitResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code CommitResponse}
*
*
* Response to a commit request
*
*/
public static final class CommitResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:CommitResponse)
CommitResponseOrBuilder {
// Use CommitResponse.newBuilder() to construct.
private CommitResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private CommitResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CommitResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
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;
}
}
}
} 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.Responses.internal_static_CommitResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_CommitResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.CommitResponse.class, org.apache.calcite.avatica.proto.Responses.CommitResponse.Builder.class);
}
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 {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Responses.CommitResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.CommitResponse 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.Responses.CommitResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.CommitResponse 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.Responses.CommitResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.CommitResponse 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.Responses.CommitResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.CommitResponse 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.Responses.CommitResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.CommitResponse 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.Responses.CommitResponse 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 CommitResponse}
*
*
* Response to a commit request
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:CommitResponse)
org.apache.calcite.avatica.proto.Responses.CommitResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Responses.internal_static_CommitResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_CommitResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.CommitResponse.class, org.apache.calcite.avatica.proto.Responses.CommitResponse.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Responses.CommitResponse.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();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Responses.internal_static_CommitResponse_descriptor;
}
public org.apache.calcite.avatica.proto.Responses.CommitResponse getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Responses.CommitResponse.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Responses.CommitResponse build() {
org.apache.calcite.avatica.proto.Responses.CommitResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Responses.CommitResponse buildPartial() {
org.apache.calcite.avatica.proto.Responses.CommitResponse result = new org.apache.calcite.avatica.proto.Responses.CommitResponse(this);
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Responses.CommitResponse) {
return mergeFrom((org.apache.calcite.avatica.proto.Responses.CommitResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Responses.CommitResponse other) {
if (other == org.apache.calcite.avatica.proto.Responses.CommitResponse.getDefaultInstance()) return this;
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.Responses.CommitResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Responses.CommitResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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:CommitResponse)
}
// @@protoc_insertion_point(class_scope:CommitResponse)
private static final org.apache.calcite.avatica.proto.Responses.CommitResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Responses.CommitResponse();
}
public static org.apache.calcite.avatica.proto.Responses.CommitResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CommitResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new CommitResponse(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.Responses.CommitResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RollbackResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:RollbackResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code RollbackResponse}
*
*
* Response to a rollback request
*
*/
public static final class RollbackResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:RollbackResponse)
RollbackResponseOrBuilder {
// Use RollbackResponse.newBuilder() to construct.
private RollbackResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private RollbackResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private RollbackResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
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;
}
}
}
} 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.Responses.internal_static_RollbackResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_RollbackResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.RollbackResponse.class, org.apache.calcite.avatica.proto.Responses.RollbackResponse.Builder.class);
}
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 {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.apache.calcite.avatica.proto.Responses.RollbackResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.RollbackResponse 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.Responses.RollbackResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.calcite.avatica.proto.Responses.RollbackResponse 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.Responses.RollbackResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.RollbackResponse 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.Responses.RollbackResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.RollbackResponse 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.Responses.RollbackResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.calcite.avatica.proto.Responses.RollbackResponse 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.Responses.RollbackResponse 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 RollbackResponse}
*
*
* Response to a rollback request
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:RollbackResponse)
org.apache.calcite.avatica.proto.Responses.RollbackResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.calcite.avatica.proto.Responses.internal_static_RollbackResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.calcite.avatica.proto.Responses.internal_static_RollbackResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.calcite.avatica.proto.Responses.RollbackResponse.class, org.apache.calcite.avatica.proto.Responses.RollbackResponse.Builder.class);
}
// Construct using org.apache.calcite.avatica.proto.Responses.RollbackResponse.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();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.calcite.avatica.proto.Responses.internal_static_RollbackResponse_descriptor;
}
public org.apache.calcite.avatica.proto.Responses.RollbackResponse getDefaultInstanceForType() {
return org.apache.calcite.avatica.proto.Responses.RollbackResponse.getDefaultInstance();
}
public org.apache.calcite.avatica.proto.Responses.RollbackResponse build() {
org.apache.calcite.avatica.proto.Responses.RollbackResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.calcite.avatica.proto.Responses.RollbackResponse buildPartial() {
org.apache.calcite.avatica.proto.Responses.RollbackResponse result = new org.apache.calcite.avatica.proto.Responses.RollbackResponse(this);
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.calcite.avatica.proto.Responses.RollbackResponse) {
return mergeFrom((org.apache.calcite.avatica.proto.Responses.RollbackResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.calcite.avatica.proto.Responses.RollbackResponse other) {
if (other == org.apache.calcite.avatica.proto.Responses.RollbackResponse.getDefaultInstance()) return this;
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.Responses.RollbackResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.calcite.avatica.proto.Responses.RollbackResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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:RollbackResponse)
}
// @@protoc_insertion_point(class_scope:RollbackResponse)
private static final org.apache.calcite.avatica.proto.Responses.RollbackResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Responses.RollbackResponse();
}
public static org.apache.calcite.avatica.proto.Responses.RollbackResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public RollbackResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new RollbackResponse(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.Responses.RollbackResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_ResultSetResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ResultSetResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_ExecuteResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ExecuteResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_PrepareResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_PrepareResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_FetchResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_FetchResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_CreateStatementResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_CreateStatementResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_CloseStatementResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_CloseStatementResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_OpenConnectionResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_OpenConnectionResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_CloseConnectionResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_CloseConnectionResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_ConnectionSyncResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ConnectionSyncResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_DatabasePropertyElement_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_DatabasePropertyElement_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_DatabasePropertyResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_DatabasePropertyResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_ErrorResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ErrorResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_SyncResultsResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_SyncResultsResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_RpcMetadata_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_RpcMetadata_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_CommitResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_CommitResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_RollbackResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_RollbackResponse_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\017responses.proto\032\014common.proto\"\311\001\n\021Resu" +
"ltSetResponse\022\025\n\rconnection_id\030\001 \001(\t\022\024\n\014" +
"statement_id\030\002 \001(\r\022\025\n\rown_statement\030\003 \001(" +
"\010\022\035\n\tsignature\030\004 \001(\0132\n.Signature\022\033\n\013firs" +
"t_frame\030\005 \001(\0132\006.Frame\022\024\n\014update_count\030\006 " +
"\001(\004\022\036\n\010metadata\030\007 \001(\0132\014.RpcMetadata\"q\n\017E" +
"xecuteResponse\022#\n\007results\030\001 \003(\0132\022.Result" +
"SetResponse\022\031\n\021missing_statement\030\002 \001(\010\022\036" +
"\n\010metadata\030\003 \001(\0132\014.RpcMetadata\"V\n\017Prepar" +
"eResponse\022#\n\tstatement\030\001 \001(\0132\020.Statement",
"Handle\022\036\n\010metadata\030\002 \001(\0132\014.RpcMetadata\"z" +
"\n\rFetchResponse\022\025\n\005frame\030\001 \001(\0132\006.Frame\022\031" +
"\n\021missing_statement\030\002 \001(\010\022\027\n\017missing_res" +
"ults\030\003 \001(\010\022\036\n\010metadata\030\004 \001(\0132\014.RpcMetada" +
"ta\"f\n\027CreateStatementResponse\022\025\n\rconnect" +
"ion_id\030\001 \001(\t\022\024\n\014statement_id\030\002 \001(\r\022\036\n\010me" +
"tadata\030\003 \001(\0132\014.RpcMetadata\"8\n\026CloseState" +
"mentResponse\022\036\n\010metadata\030\001 \001(\0132\014.RpcMeta" +
"data\"8\n\026OpenConnectionResponse\022\036\n\010metada" +
"ta\030\001 \001(\0132\014.RpcMetadata\"9\n\027CloseConnectio",
"nResponse\022\036\n\010metadata\030\001 \001(\0132\014.RpcMetadat" +
"a\"c\n\026ConnectionSyncResponse\022)\n\nconn_prop" +
"s\030\001 \001(\0132\025.ConnectionProperties\022\036\n\010metada" +
"ta\030\002 \001(\0132\014.RpcMetadata\"u\n\027DatabaseProper" +
"tyElement\022\036\n\003key\030\001 \001(\0132\021.DatabasePropert" +
"y\022\032\n\005value\030\002 \001(\0132\013.TypedValue\022\036\n\010metadat" +
"a\030\003 \001(\0132\014.RpcMetadata\"c\n\030DatabasePropert" +
"yResponse\022\'\n\005props\030\001 \003(\0132\030.DatabasePrope" +
"rtyElement\022\036\n\010metadata\030\002 \001(\0132\014.RpcMetada" +
"ta\"\266\001\n\rErrorResponse\022\022\n\nexceptions\030\001 \003(\t",
"\022\026\n\016has_exceptions\030\007 \001(\010\022\025\n\rerror_messag" +
"e\030\002 \001(\t\022\033\n\010severity\030\003 \001(\0162\t.Severity\022\022\n\n" +
"error_code\030\004 \001(\r\022\021\n\tsql_state\030\005 \001(\t\022\036\n\010m" +
"etadata\030\006 \001(\0132\014.RpcMetadata\"f\n\023SyncResul" +
"tsResponse\022\031\n\021missing_statement\030\001 \001(\010\022\024\n" +
"\014more_results\030\002 \001(\010\022\036\n\010metadata\030\003 \001(\0132\014." +
"RpcMetadata\"%\n\013RpcMetadata\022\026\n\016server_add" +
"ress\030\001 \001(\t\"\020\n\016CommitResponse\"\022\n\020Rollback" +
"ResponseB\"\n org.apache.calcite.avatica.p" +
"rotob\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_ResultSetResponse_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_ResultSetResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ResultSetResponse_descriptor,
new java.lang.String[] { "ConnectionId", "StatementId", "OwnStatement", "Signature", "FirstFrame", "UpdateCount", "Metadata", });
internal_static_ExecuteResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_ExecuteResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ExecuteResponse_descriptor,
new java.lang.String[] { "Results", "MissingStatement", "Metadata", });
internal_static_PrepareResponse_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_PrepareResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_PrepareResponse_descriptor,
new java.lang.String[] { "Statement", "Metadata", });
internal_static_FetchResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_FetchResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_FetchResponse_descriptor,
new java.lang.String[] { "Frame", "MissingStatement", "MissingResults", "Metadata", });
internal_static_CreateStatementResponse_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_CreateStatementResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_CreateStatementResponse_descriptor,
new java.lang.String[] { "ConnectionId", "StatementId", "Metadata", });
internal_static_CloseStatementResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_CloseStatementResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_CloseStatementResponse_descriptor,
new java.lang.String[] { "Metadata", });
internal_static_OpenConnectionResponse_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_OpenConnectionResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_OpenConnectionResponse_descriptor,
new java.lang.String[] { "Metadata", });
internal_static_CloseConnectionResponse_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_CloseConnectionResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_CloseConnectionResponse_descriptor,
new java.lang.String[] { "Metadata", });
internal_static_ConnectionSyncResponse_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_ConnectionSyncResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ConnectionSyncResponse_descriptor,
new java.lang.String[] { "ConnProps", "Metadata", });
internal_static_DatabasePropertyElement_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_DatabasePropertyElement_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_DatabasePropertyElement_descriptor,
new java.lang.String[] { "Key", "Value", "Metadata", });
internal_static_DatabasePropertyResponse_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_DatabasePropertyResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_DatabasePropertyResponse_descriptor,
new java.lang.String[] { "Props", "Metadata", });
internal_static_ErrorResponse_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_ErrorResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ErrorResponse_descriptor,
new java.lang.String[] { "Exceptions", "HasExceptions", "ErrorMessage", "Severity", "ErrorCode", "SqlState", "Metadata", });
internal_static_SyncResultsResponse_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_SyncResultsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_SyncResultsResponse_descriptor,
new java.lang.String[] { "MissingStatement", "MoreResults", "Metadata", });
internal_static_RpcMetadata_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_RpcMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpcMetadata_descriptor,
new java.lang.String[] { "ServerAddress", });
internal_static_CommitResponse_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_CommitResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_CommitResponse_descriptor,
new java.lang.String[] { });
internal_static_RollbackResponse_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_RollbackResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RollbackResponse_descriptor,
new java.lang.String[] { });
org.apache.calcite.avatica.proto.Common.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}