com.salesforce.hyperdb.grpc.QueryResultHeader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jdbc Show documentation
Show all versions of jdbc Show documentation
Salesforce Data Cloud JDBC Driver
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: hyper_service.proto
// Protobuf Java Version: 3.25.5
package com.salesforce.hyperdb.grpc;
/**
* Protobuf type {@code salesforce.hyperdb.grpc.v1.QueryResultHeader}
*/
public final class QueryResultHeader extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:salesforce.hyperdb.grpc.v1.QueryResultHeader)
QueryResultHeaderOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryResultHeader.newBuilder() to construct.
private QueryResultHeader(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryResultHeader() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryResultHeader();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.salesforce.hyperdb.grpc.HyperDatabaseServiceProto.internal_static_salesforce_hyperdb_grpc_v1_QueryResultHeader_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.salesforce.hyperdb.grpc.HyperDatabaseServiceProto.internal_static_salesforce_hyperdb_grpc_v1_QueryResultHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.salesforce.hyperdb.grpc.QueryResultHeader.class, com.salesforce.hyperdb.grpc.QueryResultHeader.Builder.class);
}
private int headerCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object header_;
public enum HeaderCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
SCHEMA(1),
COMMAND(2),
HEADER_NOT_SET(0);
private final int value;
private HeaderCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static HeaderCase valueOf(int value) {
return forNumber(value);
}
public static HeaderCase forNumber(int value) {
switch (value) {
case 1: return SCHEMA;
case 2: return COMMAND;
case 0: return HEADER_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public HeaderCase
getHeaderCase() {
return HeaderCase.forNumber(
headerCase_);
}
public static final int SCHEMA_FIELD_NUMBER = 1;
/**
* .salesforce.hyperdb.grpc.v1.QueryResultSchema schema = 1;
* @return Whether the schema field is set.
*/
@java.lang.Override
public boolean hasSchema() {
return headerCase_ == 1;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultSchema schema = 1;
* @return The schema.
*/
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryResultSchema getSchema() {
if (headerCase_ == 1) {
return (com.salesforce.hyperdb.grpc.QueryResultSchema) header_;
}
return com.salesforce.hyperdb.grpc.QueryResultSchema.getDefaultInstance();
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultSchema schema = 1;
*/
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryResultSchemaOrBuilder getSchemaOrBuilder() {
if (headerCase_ == 1) {
return (com.salesforce.hyperdb.grpc.QueryResultSchema) header_;
}
return com.salesforce.hyperdb.grpc.QueryResultSchema.getDefaultInstance();
}
public static final int COMMAND_FIELD_NUMBER = 2;
/**
* .salesforce.hyperdb.grpc.v1.QueryCommandOk command = 2;
* @return Whether the command field is set.
*/
@java.lang.Override
public boolean hasCommand() {
return headerCase_ == 2;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryCommandOk command = 2;
* @return The command.
*/
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryCommandOk getCommand() {
if (headerCase_ == 2) {
return (com.salesforce.hyperdb.grpc.QueryCommandOk) header_;
}
return com.salesforce.hyperdb.grpc.QueryCommandOk.getDefaultInstance();
}
/**
* .salesforce.hyperdb.grpc.v1.QueryCommandOk command = 2;
*/
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryCommandOkOrBuilder getCommandOrBuilder() {
if (headerCase_ == 2) {
return (com.salesforce.hyperdb.grpc.QueryCommandOk) header_;
}
return com.salesforce.hyperdb.grpc.QueryCommandOk.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (headerCase_ == 1) {
output.writeMessage(1, (com.salesforce.hyperdb.grpc.QueryResultSchema) header_);
}
if (headerCase_ == 2) {
output.writeMessage(2, (com.salesforce.hyperdb.grpc.QueryCommandOk) header_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (headerCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.salesforce.hyperdb.grpc.QueryResultSchema) header_);
}
if (headerCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.salesforce.hyperdb.grpc.QueryCommandOk) header_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.salesforce.hyperdb.grpc.QueryResultHeader)) {
return super.equals(obj);
}
com.salesforce.hyperdb.grpc.QueryResultHeader other = (com.salesforce.hyperdb.grpc.QueryResultHeader) obj;
if (!getHeaderCase().equals(other.getHeaderCase())) return false;
switch (headerCase_) {
case 1:
if (!getSchema()
.equals(other.getSchema())) return false;
break;
case 2:
if (!getCommand()
.equals(other.getCommand())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (headerCase_) {
case 1:
hash = (37 * hash) + SCHEMA_FIELD_NUMBER;
hash = (53 * hash) + getSchema().hashCode();
break;
case 2:
hash = (37 * hash) + COMMAND_FIELD_NUMBER;
hash = (53 * hash) + getCommand().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.salesforce.hyperdb.grpc.QueryResultHeader parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.salesforce.hyperdb.grpc.QueryResultHeader parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.salesforce.hyperdb.grpc.QueryResultHeader parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.salesforce.hyperdb.grpc.QueryResultHeader parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.salesforce.hyperdb.grpc.QueryResultHeader parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.salesforce.hyperdb.grpc.QueryResultHeader parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.salesforce.hyperdb.grpc.QueryResultHeader parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.salesforce.hyperdb.grpc.QueryResultHeader parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.salesforce.hyperdb.grpc.QueryResultHeader parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.salesforce.hyperdb.grpc.QueryResultHeader parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.salesforce.hyperdb.grpc.QueryResultHeader parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.salesforce.hyperdb.grpc.QueryResultHeader parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.salesforce.hyperdb.grpc.QueryResultHeader prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code salesforce.hyperdb.grpc.v1.QueryResultHeader}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:salesforce.hyperdb.grpc.v1.QueryResultHeader)
com.salesforce.hyperdb.grpc.QueryResultHeaderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.salesforce.hyperdb.grpc.HyperDatabaseServiceProto.internal_static_salesforce_hyperdb_grpc_v1_QueryResultHeader_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.salesforce.hyperdb.grpc.HyperDatabaseServiceProto.internal_static_salesforce_hyperdb_grpc_v1_QueryResultHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.salesforce.hyperdb.grpc.QueryResultHeader.class, com.salesforce.hyperdb.grpc.QueryResultHeader.Builder.class);
}
// Construct using com.salesforce.hyperdb.grpc.QueryResultHeader.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (schemaBuilder_ != null) {
schemaBuilder_.clear();
}
if (commandBuilder_ != null) {
commandBuilder_.clear();
}
headerCase_ = 0;
header_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.salesforce.hyperdb.grpc.HyperDatabaseServiceProto.internal_static_salesforce_hyperdb_grpc_v1_QueryResultHeader_descriptor;
}
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryResultHeader getDefaultInstanceForType() {
return com.salesforce.hyperdb.grpc.QueryResultHeader.getDefaultInstance();
}
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryResultHeader build() {
com.salesforce.hyperdb.grpc.QueryResultHeader result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryResultHeader buildPartial() {
com.salesforce.hyperdb.grpc.QueryResultHeader result = new com.salesforce.hyperdb.grpc.QueryResultHeader(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.salesforce.hyperdb.grpc.QueryResultHeader result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(com.salesforce.hyperdb.grpc.QueryResultHeader result) {
result.headerCase_ = headerCase_;
result.header_ = this.header_;
if (headerCase_ == 1 &&
schemaBuilder_ != null) {
result.header_ = schemaBuilder_.build();
}
if (headerCase_ == 2 &&
commandBuilder_ != null) {
result.header_ = commandBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.salesforce.hyperdb.grpc.QueryResultHeader) {
return mergeFrom((com.salesforce.hyperdb.grpc.QueryResultHeader)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.salesforce.hyperdb.grpc.QueryResultHeader other) {
if (other == com.salesforce.hyperdb.grpc.QueryResultHeader.getDefaultInstance()) return this;
switch (other.getHeaderCase()) {
case SCHEMA: {
mergeSchema(other.getSchema());
break;
}
case COMMAND: {
mergeCommand(other.getCommand());
break;
}
case HEADER_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getSchemaFieldBuilder().getBuilder(),
extensionRegistry);
headerCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getCommandFieldBuilder().getBuilder(),
extensionRegistry);
headerCase_ = 2;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int headerCase_ = 0;
private java.lang.Object header_;
public HeaderCase
getHeaderCase() {
return HeaderCase.forNumber(
headerCase_);
}
public Builder clearHeader() {
headerCase_ = 0;
header_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
com.salesforce.hyperdb.grpc.QueryResultSchema, com.salesforce.hyperdb.grpc.QueryResultSchema.Builder, com.salesforce.hyperdb.grpc.QueryResultSchemaOrBuilder> schemaBuilder_;
/**
* .salesforce.hyperdb.grpc.v1.QueryResultSchema schema = 1;
* @return Whether the schema field is set.
*/
@java.lang.Override
public boolean hasSchema() {
return headerCase_ == 1;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultSchema schema = 1;
* @return The schema.
*/
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryResultSchema getSchema() {
if (schemaBuilder_ == null) {
if (headerCase_ == 1) {
return (com.salesforce.hyperdb.grpc.QueryResultSchema) header_;
}
return com.salesforce.hyperdb.grpc.QueryResultSchema.getDefaultInstance();
} else {
if (headerCase_ == 1) {
return schemaBuilder_.getMessage();
}
return com.salesforce.hyperdb.grpc.QueryResultSchema.getDefaultInstance();
}
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultSchema schema = 1;
*/
public Builder setSchema(com.salesforce.hyperdb.grpc.QueryResultSchema value) {
if (schemaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
onChanged();
} else {
schemaBuilder_.setMessage(value);
}
headerCase_ = 1;
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultSchema schema = 1;
*/
public Builder setSchema(
com.salesforce.hyperdb.grpc.QueryResultSchema.Builder builderForValue) {
if (schemaBuilder_ == null) {
header_ = builderForValue.build();
onChanged();
} else {
schemaBuilder_.setMessage(builderForValue.build());
}
headerCase_ = 1;
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultSchema schema = 1;
*/
public Builder mergeSchema(com.salesforce.hyperdb.grpc.QueryResultSchema value) {
if (schemaBuilder_ == null) {
if (headerCase_ == 1 &&
header_ != com.salesforce.hyperdb.grpc.QueryResultSchema.getDefaultInstance()) {
header_ = com.salesforce.hyperdb.grpc.QueryResultSchema.newBuilder((com.salesforce.hyperdb.grpc.QueryResultSchema) header_)
.mergeFrom(value).buildPartial();
} else {
header_ = value;
}
onChanged();
} else {
if (headerCase_ == 1) {
schemaBuilder_.mergeFrom(value);
} else {
schemaBuilder_.setMessage(value);
}
}
headerCase_ = 1;
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultSchema schema = 1;
*/
public Builder clearSchema() {
if (schemaBuilder_ == null) {
if (headerCase_ == 1) {
headerCase_ = 0;
header_ = null;
onChanged();
}
} else {
if (headerCase_ == 1) {
headerCase_ = 0;
header_ = null;
}
schemaBuilder_.clear();
}
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultSchema schema = 1;
*/
public com.salesforce.hyperdb.grpc.QueryResultSchema.Builder getSchemaBuilder() {
return getSchemaFieldBuilder().getBuilder();
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultSchema schema = 1;
*/
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryResultSchemaOrBuilder getSchemaOrBuilder() {
if ((headerCase_ == 1) && (schemaBuilder_ != null)) {
return schemaBuilder_.getMessageOrBuilder();
} else {
if (headerCase_ == 1) {
return (com.salesforce.hyperdb.grpc.QueryResultSchema) header_;
}
return com.salesforce.hyperdb.grpc.QueryResultSchema.getDefaultInstance();
}
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultSchema schema = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.salesforce.hyperdb.grpc.QueryResultSchema, com.salesforce.hyperdb.grpc.QueryResultSchema.Builder, com.salesforce.hyperdb.grpc.QueryResultSchemaOrBuilder>
getSchemaFieldBuilder() {
if (schemaBuilder_ == null) {
if (!(headerCase_ == 1)) {
header_ = com.salesforce.hyperdb.grpc.QueryResultSchema.getDefaultInstance();
}
schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.salesforce.hyperdb.grpc.QueryResultSchema, com.salesforce.hyperdb.grpc.QueryResultSchema.Builder, com.salesforce.hyperdb.grpc.QueryResultSchemaOrBuilder>(
(com.salesforce.hyperdb.grpc.QueryResultSchema) header_,
getParentForChildren(),
isClean());
header_ = null;
}
headerCase_ = 1;
onChanged();
return schemaBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.salesforce.hyperdb.grpc.QueryCommandOk, com.salesforce.hyperdb.grpc.QueryCommandOk.Builder, com.salesforce.hyperdb.grpc.QueryCommandOkOrBuilder> commandBuilder_;
/**
* .salesforce.hyperdb.grpc.v1.QueryCommandOk command = 2;
* @return Whether the command field is set.
*/
@java.lang.Override
public boolean hasCommand() {
return headerCase_ == 2;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryCommandOk command = 2;
* @return The command.
*/
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryCommandOk getCommand() {
if (commandBuilder_ == null) {
if (headerCase_ == 2) {
return (com.salesforce.hyperdb.grpc.QueryCommandOk) header_;
}
return com.salesforce.hyperdb.grpc.QueryCommandOk.getDefaultInstance();
} else {
if (headerCase_ == 2) {
return commandBuilder_.getMessage();
}
return com.salesforce.hyperdb.grpc.QueryCommandOk.getDefaultInstance();
}
}
/**
* .salesforce.hyperdb.grpc.v1.QueryCommandOk command = 2;
*/
public Builder setCommand(com.salesforce.hyperdb.grpc.QueryCommandOk value) {
if (commandBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
onChanged();
} else {
commandBuilder_.setMessage(value);
}
headerCase_ = 2;
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryCommandOk command = 2;
*/
public Builder setCommand(
com.salesforce.hyperdb.grpc.QueryCommandOk.Builder builderForValue) {
if (commandBuilder_ == null) {
header_ = builderForValue.build();
onChanged();
} else {
commandBuilder_.setMessage(builderForValue.build());
}
headerCase_ = 2;
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryCommandOk command = 2;
*/
public Builder mergeCommand(com.salesforce.hyperdb.grpc.QueryCommandOk value) {
if (commandBuilder_ == null) {
if (headerCase_ == 2 &&
header_ != com.salesforce.hyperdb.grpc.QueryCommandOk.getDefaultInstance()) {
header_ = com.salesforce.hyperdb.grpc.QueryCommandOk.newBuilder((com.salesforce.hyperdb.grpc.QueryCommandOk) header_)
.mergeFrom(value).buildPartial();
} else {
header_ = value;
}
onChanged();
} else {
if (headerCase_ == 2) {
commandBuilder_.mergeFrom(value);
} else {
commandBuilder_.setMessage(value);
}
}
headerCase_ = 2;
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryCommandOk command = 2;
*/
public Builder clearCommand() {
if (commandBuilder_ == null) {
if (headerCase_ == 2) {
headerCase_ = 0;
header_ = null;
onChanged();
}
} else {
if (headerCase_ == 2) {
headerCase_ = 0;
header_ = null;
}
commandBuilder_.clear();
}
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryCommandOk command = 2;
*/
public com.salesforce.hyperdb.grpc.QueryCommandOk.Builder getCommandBuilder() {
return getCommandFieldBuilder().getBuilder();
}
/**
* .salesforce.hyperdb.grpc.v1.QueryCommandOk command = 2;
*/
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryCommandOkOrBuilder getCommandOrBuilder() {
if ((headerCase_ == 2) && (commandBuilder_ != null)) {
return commandBuilder_.getMessageOrBuilder();
} else {
if (headerCase_ == 2) {
return (com.salesforce.hyperdb.grpc.QueryCommandOk) header_;
}
return com.salesforce.hyperdb.grpc.QueryCommandOk.getDefaultInstance();
}
}
/**
* .salesforce.hyperdb.grpc.v1.QueryCommandOk command = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.salesforce.hyperdb.grpc.QueryCommandOk, com.salesforce.hyperdb.grpc.QueryCommandOk.Builder, com.salesforce.hyperdb.grpc.QueryCommandOkOrBuilder>
getCommandFieldBuilder() {
if (commandBuilder_ == null) {
if (!(headerCase_ == 2)) {
header_ = com.salesforce.hyperdb.grpc.QueryCommandOk.getDefaultInstance();
}
commandBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.salesforce.hyperdb.grpc.QueryCommandOk, com.salesforce.hyperdb.grpc.QueryCommandOk.Builder, com.salesforce.hyperdb.grpc.QueryCommandOkOrBuilder>(
(com.salesforce.hyperdb.grpc.QueryCommandOk) header_,
getParentForChildren(),
isClean());
header_ = null;
}
headerCase_ = 2;
onChanged();
return commandBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:salesforce.hyperdb.grpc.v1.QueryResultHeader)
}
// @@protoc_insertion_point(class_scope:salesforce.hyperdb.grpc.v1.QueryResultHeader)
private static final com.salesforce.hyperdb.grpc.QueryResultHeader DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.salesforce.hyperdb.grpc.QueryResultHeader();
}
public static com.salesforce.hyperdb.grpc.QueryResultHeader getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryResultHeader parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryResultHeader getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy