com.salesforce.hyperdb.grpc.QueryResult 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
package com.salesforce.hyperdb.grpc;
/**
* Protobuf type {@code salesforce.hyperdb.grpc.v1.QueryResult}
*/
public final class QueryResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:salesforce.hyperdb.grpc.v1.QueryResult)
QueryResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryResult.newBuilder() to construct.
private QueryResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryResult() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryResult();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.salesforce.hyperdb.grpc.HyperDatabaseServiceProto.internal_static_salesforce_hyperdb_grpc_v1_QueryResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.salesforce.hyperdb.grpc.HyperDatabaseServiceProto.internal_static_salesforce_hyperdb_grpc_v1_QueryResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.salesforce.hyperdb.grpc.QueryResult.class, com.salesforce.hyperdb.grpc.QueryResult.Builder.class);
}
private int resultCase_ = 0;
private java.lang.Object result_;
public enum ResultCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
BINARY_PART(1),
STRING_PART(2),
RESULT_NOT_SET(0);
private final int value;
private ResultCase(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 ResultCase valueOf(int value) {
return forNumber(value);
}
public static ResultCase forNumber(int value) {
switch (value) {
case 1: return BINARY_PART;
case 2: return STRING_PART;
case 0: return RESULT_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ResultCase
getResultCase() {
return ResultCase.forNumber(
resultCase_);
}
public static final int BINARY_PART_FIELD_NUMBER = 1;
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 1;
* @return Whether the binaryPart field is set.
*/
@java.lang.Override
public boolean hasBinaryPart() {
return resultCase_ == 1;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 1;
* @return The binaryPart.
*/
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryResultPartBinary getBinaryPart() {
if (resultCase_ == 1) {
return (com.salesforce.hyperdb.grpc.QueryResultPartBinary) result_;
}
return com.salesforce.hyperdb.grpc.QueryResultPartBinary.getDefaultInstance();
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 1;
*/
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryResultPartBinaryOrBuilder getBinaryPartOrBuilder() {
if (resultCase_ == 1) {
return (com.salesforce.hyperdb.grpc.QueryResultPartBinary) result_;
}
return com.salesforce.hyperdb.grpc.QueryResultPartBinary.getDefaultInstance();
}
public static final int STRING_PART_FIELD_NUMBER = 2;
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 2;
* @return Whether the stringPart field is set.
*/
@java.lang.Override
public boolean hasStringPart() {
return resultCase_ == 2;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 2;
* @return The stringPart.
*/
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryResultPartString getStringPart() {
if (resultCase_ == 2) {
return (com.salesforce.hyperdb.grpc.QueryResultPartString) result_;
}
return com.salesforce.hyperdb.grpc.QueryResultPartString.getDefaultInstance();
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 2;
*/
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryResultPartStringOrBuilder getStringPartOrBuilder() {
if (resultCase_ == 2) {
return (com.salesforce.hyperdb.grpc.QueryResultPartString) result_;
}
return com.salesforce.hyperdb.grpc.QueryResultPartString.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 (resultCase_ == 1) {
output.writeMessage(1, (com.salesforce.hyperdb.grpc.QueryResultPartBinary) result_);
}
if (resultCase_ == 2) {
output.writeMessage(2, (com.salesforce.hyperdb.grpc.QueryResultPartString) result_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (resultCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.salesforce.hyperdb.grpc.QueryResultPartBinary) result_);
}
if (resultCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.salesforce.hyperdb.grpc.QueryResultPartString) result_);
}
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.QueryResult)) {
return super.equals(obj);
}
com.salesforce.hyperdb.grpc.QueryResult other = (com.salesforce.hyperdb.grpc.QueryResult) obj;
if (!getResultCase().equals(other.getResultCase())) return false;
switch (resultCase_) {
case 1:
if (!getBinaryPart()
.equals(other.getBinaryPart())) return false;
break;
case 2:
if (!getStringPart()
.equals(other.getStringPart())) 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 (resultCase_) {
case 1:
hash = (37 * hash) + BINARY_PART_FIELD_NUMBER;
hash = (53 * hash) + getBinaryPart().hashCode();
break;
case 2:
hash = (37 * hash) + STRING_PART_FIELD_NUMBER;
hash = (53 * hash) + getStringPart().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.salesforce.hyperdb.grpc.QueryResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.salesforce.hyperdb.grpc.QueryResult 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.QueryResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.salesforce.hyperdb.grpc.QueryResult 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.QueryResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.salesforce.hyperdb.grpc.QueryResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.salesforce.hyperdb.grpc.QueryResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.salesforce.hyperdb.grpc.QueryResult 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.QueryResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.salesforce.hyperdb.grpc.QueryResult 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.QueryResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.salesforce.hyperdb.grpc.QueryResult 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.QueryResult 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.QueryResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:salesforce.hyperdb.grpc.v1.QueryResult)
com.salesforce.hyperdb.grpc.QueryResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.salesforce.hyperdb.grpc.HyperDatabaseServiceProto.internal_static_salesforce_hyperdb_grpc_v1_QueryResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.salesforce.hyperdb.grpc.HyperDatabaseServiceProto.internal_static_salesforce_hyperdb_grpc_v1_QueryResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.salesforce.hyperdb.grpc.QueryResult.class, com.salesforce.hyperdb.grpc.QueryResult.Builder.class);
}
// Construct using com.salesforce.hyperdb.grpc.QueryResult.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (binaryPartBuilder_ != null) {
binaryPartBuilder_.clear();
}
if (stringPartBuilder_ != null) {
stringPartBuilder_.clear();
}
resultCase_ = 0;
result_ = 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_QueryResult_descriptor;
}
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryResult getDefaultInstanceForType() {
return com.salesforce.hyperdb.grpc.QueryResult.getDefaultInstance();
}
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryResult build() {
com.salesforce.hyperdb.grpc.QueryResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryResult buildPartial() {
com.salesforce.hyperdb.grpc.QueryResult result = new com.salesforce.hyperdb.grpc.QueryResult(this);
if (resultCase_ == 1) {
if (binaryPartBuilder_ == null) {
result.result_ = result_;
} else {
result.result_ = binaryPartBuilder_.build();
}
}
if (resultCase_ == 2) {
if (stringPartBuilder_ == null) {
result.result_ = result_;
} else {
result.result_ = stringPartBuilder_.build();
}
}
result.resultCase_ = resultCase_;
onBuilt();
return result;
}
@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.QueryResult) {
return mergeFrom((com.salesforce.hyperdb.grpc.QueryResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.salesforce.hyperdb.grpc.QueryResult other) {
if (other == com.salesforce.hyperdb.grpc.QueryResult.getDefaultInstance()) return this;
switch (other.getResultCase()) {
case BINARY_PART: {
mergeBinaryPart(other.getBinaryPart());
break;
}
case STRING_PART: {
mergeStringPart(other.getStringPart());
break;
}
case RESULT_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(
getBinaryPartFieldBuilder().getBuilder(),
extensionRegistry);
resultCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getStringPartFieldBuilder().getBuilder(),
extensionRegistry);
resultCase_ = 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 resultCase_ = 0;
private java.lang.Object result_;
public ResultCase
getResultCase() {
return ResultCase.forNumber(
resultCase_);
}
public Builder clearResult() {
resultCase_ = 0;
result_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.salesforce.hyperdb.grpc.QueryResultPartBinary, com.salesforce.hyperdb.grpc.QueryResultPartBinary.Builder, com.salesforce.hyperdb.grpc.QueryResultPartBinaryOrBuilder> binaryPartBuilder_;
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 1;
* @return Whether the binaryPart field is set.
*/
@java.lang.Override
public boolean hasBinaryPart() {
return resultCase_ == 1;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 1;
* @return The binaryPart.
*/
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryResultPartBinary getBinaryPart() {
if (binaryPartBuilder_ == null) {
if (resultCase_ == 1) {
return (com.salesforce.hyperdb.grpc.QueryResultPartBinary) result_;
}
return com.salesforce.hyperdb.grpc.QueryResultPartBinary.getDefaultInstance();
} else {
if (resultCase_ == 1) {
return binaryPartBuilder_.getMessage();
}
return com.salesforce.hyperdb.grpc.QueryResultPartBinary.getDefaultInstance();
}
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 1;
*/
public Builder setBinaryPart(com.salesforce.hyperdb.grpc.QueryResultPartBinary value) {
if (binaryPartBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
binaryPartBuilder_.setMessage(value);
}
resultCase_ = 1;
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 1;
*/
public Builder setBinaryPart(
com.salesforce.hyperdb.grpc.QueryResultPartBinary.Builder builderForValue) {
if (binaryPartBuilder_ == null) {
result_ = builderForValue.build();
onChanged();
} else {
binaryPartBuilder_.setMessage(builderForValue.build());
}
resultCase_ = 1;
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 1;
*/
public Builder mergeBinaryPart(com.salesforce.hyperdb.grpc.QueryResultPartBinary value) {
if (binaryPartBuilder_ == null) {
if (resultCase_ == 1 &&
result_ != com.salesforce.hyperdb.grpc.QueryResultPartBinary.getDefaultInstance()) {
result_ = com.salesforce.hyperdb.grpc.QueryResultPartBinary.newBuilder((com.salesforce.hyperdb.grpc.QueryResultPartBinary) result_)
.mergeFrom(value).buildPartial();
} else {
result_ = value;
}
onChanged();
} else {
if (resultCase_ == 1) {
binaryPartBuilder_.mergeFrom(value);
}
binaryPartBuilder_.setMessage(value);
}
resultCase_ = 1;
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 1;
*/
public Builder clearBinaryPart() {
if (binaryPartBuilder_ == null) {
if (resultCase_ == 1) {
resultCase_ = 0;
result_ = null;
onChanged();
}
} else {
if (resultCase_ == 1) {
resultCase_ = 0;
result_ = null;
}
binaryPartBuilder_.clear();
}
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 1;
*/
public com.salesforce.hyperdb.grpc.QueryResultPartBinary.Builder getBinaryPartBuilder() {
return getBinaryPartFieldBuilder().getBuilder();
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 1;
*/
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryResultPartBinaryOrBuilder getBinaryPartOrBuilder() {
if ((resultCase_ == 1) && (binaryPartBuilder_ != null)) {
return binaryPartBuilder_.getMessageOrBuilder();
} else {
if (resultCase_ == 1) {
return (com.salesforce.hyperdb.grpc.QueryResultPartBinary) result_;
}
return com.salesforce.hyperdb.grpc.QueryResultPartBinary.getDefaultInstance();
}
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.salesforce.hyperdb.grpc.QueryResultPartBinary, com.salesforce.hyperdb.grpc.QueryResultPartBinary.Builder, com.salesforce.hyperdb.grpc.QueryResultPartBinaryOrBuilder>
getBinaryPartFieldBuilder() {
if (binaryPartBuilder_ == null) {
if (!(resultCase_ == 1)) {
result_ = com.salesforce.hyperdb.grpc.QueryResultPartBinary.getDefaultInstance();
}
binaryPartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.salesforce.hyperdb.grpc.QueryResultPartBinary, com.salesforce.hyperdb.grpc.QueryResultPartBinary.Builder, com.salesforce.hyperdb.grpc.QueryResultPartBinaryOrBuilder>(
(com.salesforce.hyperdb.grpc.QueryResultPartBinary) result_,
getParentForChildren(),
isClean());
result_ = null;
}
resultCase_ = 1;
onChanged();;
return binaryPartBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.salesforce.hyperdb.grpc.QueryResultPartString, com.salesforce.hyperdb.grpc.QueryResultPartString.Builder, com.salesforce.hyperdb.grpc.QueryResultPartStringOrBuilder> stringPartBuilder_;
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 2;
* @return Whether the stringPart field is set.
*/
@java.lang.Override
public boolean hasStringPart() {
return resultCase_ == 2;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 2;
* @return The stringPart.
*/
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryResultPartString getStringPart() {
if (stringPartBuilder_ == null) {
if (resultCase_ == 2) {
return (com.salesforce.hyperdb.grpc.QueryResultPartString) result_;
}
return com.salesforce.hyperdb.grpc.QueryResultPartString.getDefaultInstance();
} else {
if (resultCase_ == 2) {
return stringPartBuilder_.getMessage();
}
return com.salesforce.hyperdb.grpc.QueryResultPartString.getDefaultInstance();
}
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 2;
*/
public Builder setStringPart(com.salesforce.hyperdb.grpc.QueryResultPartString value) {
if (stringPartBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
stringPartBuilder_.setMessage(value);
}
resultCase_ = 2;
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 2;
*/
public Builder setStringPart(
com.salesforce.hyperdb.grpc.QueryResultPartString.Builder builderForValue) {
if (stringPartBuilder_ == null) {
result_ = builderForValue.build();
onChanged();
} else {
stringPartBuilder_.setMessage(builderForValue.build());
}
resultCase_ = 2;
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 2;
*/
public Builder mergeStringPart(com.salesforce.hyperdb.grpc.QueryResultPartString value) {
if (stringPartBuilder_ == null) {
if (resultCase_ == 2 &&
result_ != com.salesforce.hyperdb.grpc.QueryResultPartString.getDefaultInstance()) {
result_ = com.salesforce.hyperdb.grpc.QueryResultPartString.newBuilder((com.salesforce.hyperdb.grpc.QueryResultPartString) result_)
.mergeFrom(value).buildPartial();
} else {
result_ = value;
}
onChanged();
} else {
if (resultCase_ == 2) {
stringPartBuilder_.mergeFrom(value);
}
stringPartBuilder_.setMessage(value);
}
resultCase_ = 2;
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 2;
*/
public Builder clearStringPart() {
if (stringPartBuilder_ == null) {
if (resultCase_ == 2) {
resultCase_ = 0;
result_ = null;
onChanged();
}
} else {
if (resultCase_ == 2) {
resultCase_ = 0;
result_ = null;
}
stringPartBuilder_.clear();
}
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 2;
*/
public com.salesforce.hyperdb.grpc.QueryResultPartString.Builder getStringPartBuilder() {
return getStringPartFieldBuilder().getBuilder();
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 2;
*/
@java.lang.Override
public com.salesforce.hyperdb.grpc.QueryResultPartStringOrBuilder getStringPartOrBuilder() {
if ((resultCase_ == 2) && (stringPartBuilder_ != null)) {
return stringPartBuilder_.getMessageOrBuilder();
} else {
if (resultCase_ == 2) {
return (com.salesforce.hyperdb.grpc.QueryResultPartString) result_;
}
return com.salesforce.hyperdb.grpc.QueryResultPartString.getDefaultInstance();
}
}
/**
* .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.salesforce.hyperdb.grpc.QueryResultPartString, com.salesforce.hyperdb.grpc.QueryResultPartString.Builder, com.salesforce.hyperdb.grpc.QueryResultPartStringOrBuilder>
getStringPartFieldBuilder() {
if (stringPartBuilder_ == null) {
if (!(resultCase_ == 2)) {
result_ = com.salesforce.hyperdb.grpc.QueryResultPartString.getDefaultInstance();
}
stringPartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.salesforce.hyperdb.grpc.QueryResultPartString, com.salesforce.hyperdb.grpc.QueryResultPartString.Builder, com.salesforce.hyperdb.grpc.QueryResultPartStringOrBuilder>(
(com.salesforce.hyperdb.grpc.QueryResultPartString) result_,
getParentForChildren(),
isClean());
result_ = null;
}
resultCase_ = 2;
onChanged();;
return stringPartBuilder_;
}
@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.QueryResult)
}
// @@protoc_insertion_point(class_scope:salesforce.hyperdb.grpc.v1.QueryResult)
private static final com.salesforce.hyperdb.grpc.QueryResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.salesforce.hyperdb.grpc.QueryResult();
}
public static com.salesforce.hyperdb.grpc.QueryResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryResult 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.QueryResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy