com.salesforce.hyperdb.grpc.ErrorInfo 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: error_details.proto
package com.salesforce.hyperdb.grpc;
/**
* Protobuf type {@code salesforce.hyperdb.grpc.v1.ErrorInfo}
*/
public final class ErrorInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:salesforce.hyperdb.grpc.v1.ErrorInfo)
ErrorInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ErrorInfo.newBuilder() to construct.
private ErrorInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ErrorInfo() {
primaryMessage_ = "";
sqlstate_ = "";
customerHint_ = "";
customerDetail_ = "";
systemDetail_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ErrorInfo();
}
@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.ErrorDetails.internal_static_salesforce_hyperdb_grpc_v1_ErrorInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.salesforce.hyperdb.grpc.ErrorDetails.internal_static_salesforce_hyperdb_grpc_v1_ErrorInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.salesforce.hyperdb.grpc.ErrorInfo.class, com.salesforce.hyperdb.grpc.ErrorInfo.Builder.class);
}
public static final int PRIMARY_MESSAGE_FIELD_NUMBER = 1;
private volatile java.lang.Object primaryMessage_;
/**
* string primary_message = 1;
* @return The primaryMessage.
*/
@java.lang.Override
public java.lang.String getPrimaryMessage() {
java.lang.Object ref = primaryMessage_;
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();
primaryMessage_ = s;
return s;
}
}
/**
* string primary_message = 1;
* @return The bytes for primaryMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPrimaryMessageBytes() {
java.lang.Object ref = primaryMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
primaryMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SQLSTATE_FIELD_NUMBER = 2;
private volatile java.lang.Object sqlstate_;
/**
* string sqlstate = 2;
* @return The sqlstate.
*/
@java.lang.Override
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;
}
}
/**
* string sqlstate = 2;
* @return The bytes for sqlstate.
*/
@java.lang.Override
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 CUSTOMER_HINT_FIELD_NUMBER = 3;
private volatile java.lang.Object customerHint_;
/**
* string customer_hint = 3;
* @return The customerHint.
*/
@java.lang.Override
public java.lang.String getCustomerHint() {
java.lang.Object ref = customerHint_;
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();
customerHint_ = s;
return s;
}
}
/**
* string customer_hint = 3;
* @return The bytes for customerHint.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCustomerHintBytes() {
java.lang.Object ref = customerHint_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
customerHint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CUSTOMER_DETAIL_FIELD_NUMBER = 4;
private volatile java.lang.Object customerDetail_;
/**
* string customer_detail = 4;
* @return The customerDetail.
*/
@java.lang.Override
public java.lang.String getCustomerDetail() {
java.lang.Object ref = customerDetail_;
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();
customerDetail_ = s;
return s;
}
}
/**
* string customer_detail = 4;
* @return The bytes for customerDetail.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCustomerDetailBytes() {
java.lang.Object ref = customerDetail_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
customerDetail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SYSTEM_DETAIL_FIELD_NUMBER = 5;
private volatile java.lang.Object systemDetail_;
/**
* string system_detail = 5;
* @return The systemDetail.
*/
@java.lang.Override
public java.lang.String getSystemDetail() {
java.lang.Object ref = systemDetail_;
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();
systemDetail_ = s;
return s;
}
}
/**
* string system_detail = 5;
* @return The bytes for systemDetail.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSystemDetailBytes() {
java.lang.Object ref = systemDetail_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
systemDetail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int POSITION_FIELD_NUMBER = 6;
private com.salesforce.hyperdb.grpc.TextPosition position_;
/**
* .salesforce.hyperdb.grpc.v1.TextPosition position = 6;
* @return Whether the position field is set.
*/
@java.lang.Override
public boolean hasPosition() {
return position_ != null;
}
/**
* .salesforce.hyperdb.grpc.v1.TextPosition position = 6;
* @return The position.
*/
@java.lang.Override
public com.salesforce.hyperdb.grpc.TextPosition getPosition() {
return position_ == null ? com.salesforce.hyperdb.grpc.TextPosition.getDefaultInstance() : position_;
}
/**
* .salesforce.hyperdb.grpc.v1.TextPosition position = 6;
*/
@java.lang.Override
public com.salesforce.hyperdb.grpc.TextPositionOrBuilder getPositionOrBuilder() {
return getPosition();
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryMessage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, primaryMessage_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlstate_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sqlstate_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerHint_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, customerHint_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerDetail_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, customerDetail_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(systemDetail_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, systemDetail_);
}
if (position_ != null) {
output.writeMessage(6, getPosition());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryMessage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, primaryMessage_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlstate_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sqlstate_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerHint_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, customerHint_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerDetail_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, customerDetail_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(systemDetail_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, systemDetail_);
}
if (position_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getPosition());
}
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.ErrorInfo)) {
return super.equals(obj);
}
com.salesforce.hyperdb.grpc.ErrorInfo other = (com.salesforce.hyperdb.grpc.ErrorInfo) obj;
if (!getPrimaryMessage()
.equals(other.getPrimaryMessage())) return false;
if (!getSqlstate()
.equals(other.getSqlstate())) return false;
if (!getCustomerHint()
.equals(other.getCustomerHint())) return false;
if (!getCustomerDetail()
.equals(other.getCustomerDetail())) return false;
if (!getSystemDetail()
.equals(other.getSystemDetail())) return false;
if (hasPosition() != other.hasPosition()) return false;
if (hasPosition()) {
if (!getPosition()
.equals(other.getPosition())) return false;
}
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();
hash = (37 * hash) + PRIMARY_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getPrimaryMessage().hashCode();
hash = (37 * hash) + SQLSTATE_FIELD_NUMBER;
hash = (53 * hash) + getSqlstate().hashCode();
hash = (37 * hash) + CUSTOMER_HINT_FIELD_NUMBER;
hash = (53 * hash) + getCustomerHint().hashCode();
hash = (37 * hash) + CUSTOMER_DETAIL_FIELD_NUMBER;
hash = (53 * hash) + getCustomerDetail().hashCode();
hash = (37 * hash) + SYSTEM_DETAIL_FIELD_NUMBER;
hash = (53 * hash) + getSystemDetail().hashCode();
if (hasPosition()) {
hash = (37 * hash) + POSITION_FIELD_NUMBER;
hash = (53 * hash) + getPosition().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.salesforce.hyperdb.grpc.ErrorInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.salesforce.hyperdb.grpc.ErrorInfo 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.ErrorInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.salesforce.hyperdb.grpc.ErrorInfo 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.ErrorInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.salesforce.hyperdb.grpc.ErrorInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.salesforce.hyperdb.grpc.ErrorInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.salesforce.hyperdb.grpc.ErrorInfo 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.ErrorInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.salesforce.hyperdb.grpc.ErrorInfo 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.ErrorInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.salesforce.hyperdb.grpc.ErrorInfo 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.ErrorInfo 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.ErrorInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:salesforce.hyperdb.grpc.v1.ErrorInfo)
com.salesforce.hyperdb.grpc.ErrorInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.salesforce.hyperdb.grpc.ErrorDetails.internal_static_salesforce_hyperdb_grpc_v1_ErrorInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.salesforce.hyperdb.grpc.ErrorDetails.internal_static_salesforce_hyperdb_grpc_v1_ErrorInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.salesforce.hyperdb.grpc.ErrorInfo.class, com.salesforce.hyperdb.grpc.ErrorInfo.Builder.class);
}
// Construct using com.salesforce.hyperdb.grpc.ErrorInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
primaryMessage_ = "";
sqlstate_ = "";
customerHint_ = "";
customerDetail_ = "";
systemDetail_ = "";
if (positionBuilder_ == null) {
position_ = null;
} else {
position_ = null;
positionBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.salesforce.hyperdb.grpc.ErrorDetails.internal_static_salesforce_hyperdb_grpc_v1_ErrorInfo_descriptor;
}
@java.lang.Override
public com.salesforce.hyperdb.grpc.ErrorInfo getDefaultInstanceForType() {
return com.salesforce.hyperdb.grpc.ErrorInfo.getDefaultInstance();
}
@java.lang.Override
public com.salesforce.hyperdb.grpc.ErrorInfo build() {
com.salesforce.hyperdb.grpc.ErrorInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.salesforce.hyperdb.grpc.ErrorInfo buildPartial() {
com.salesforce.hyperdb.grpc.ErrorInfo result = new com.salesforce.hyperdb.grpc.ErrorInfo(this);
result.primaryMessage_ = primaryMessage_;
result.sqlstate_ = sqlstate_;
result.customerHint_ = customerHint_;
result.customerDetail_ = customerDetail_;
result.systemDetail_ = systemDetail_;
if (positionBuilder_ == null) {
result.position_ = position_;
} else {
result.position_ = positionBuilder_.build();
}
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.ErrorInfo) {
return mergeFrom((com.salesforce.hyperdb.grpc.ErrorInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.salesforce.hyperdb.grpc.ErrorInfo other) {
if (other == com.salesforce.hyperdb.grpc.ErrorInfo.getDefaultInstance()) return this;
if (!other.getPrimaryMessage().isEmpty()) {
primaryMessage_ = other.primaryMessage_;
onChanged();
}
if (!other.getSqlstate().isEmpty()) {
sqlstate_ = other.sqlstate_;
onChanged();
}
if (!other.getCustomerHint().isEmpty()) {
customerHint_ = other.customerHint_;
onChanged();
}
if (!other.getCustomerDetail().isEmpty()) {
customerDetail_ = other.customerDetail_;
onChanged();
}
if (!other.getSystemDetail().isEmpty()) {
systemDetail_ = other.systemDetail_;
onChanged();
}
if (other.hasPosition()) {
mergePosition(other.getPosition());
}
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: {
primaryMessage_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
sqlstate_ = input.readStringRequireUtf8();
break;
} // case 18
case 26: {
customerHint_ = input.readStringRequireUtf8();
break;
} // case 26
case 34: {
customerDetail_ = input.readStringRequireUtf8();
break;
} // case 34
case 42: {
systemDetail_ = input.readStringRequireUtf8();
break;
} // case 42
case 50: {
input.readMessage(
getPositionFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 50
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 java.lang.Object primaryMessage_ = "";
/**
* string primary_message = 1;
* @return The primaryMessage.
*/
public java.lang.String getPrimaryMessage() {
java.lang.Object ref = primaryMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
primaryMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string primary_message = 1;
* @return The bytes for primaryMessage.
*/
public com.google.protobuf.ByteString
getPrimaryMessageBytes() {
java.lang.Object ref = primaryMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
primaryMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string primary_message = 1;
* @param value The primaryMessage to set.
* @return This builder for chaining.
*/
public Builder setPrimaryMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
primaryMessage_ = value;
onChanged();
return this;
}
/**
* string primary_message = 1;
* @return This builder for chaining.
*/
public Builder clearPrimaryMessage() {
primaryMessage_ = getDefaultInstance().getPrimaryMessage();
onChanged();
return this;
}
/**
* string primary_message = 1;
* @param value The bytes for primaryMessage to set.
* @return This builder for chaining.
*/
public Builder setPrimaryMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
primaryMessage_ = value;
onChanged();
return this;
}
private java.lang.Object sqlstate_ = "";
/**
* string sqlstate = 2;
* @return The sqlstate.
*/
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;
}
}
/**
* string sqlstate = 2;
* @return The bytes for sqlstate.
*/
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;
}
}
/**
* string sqlstate = 2;
* @param value The sqlstate to set.
* @return This builder for chaining.
*/
public Builder setSqlstate(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sqlstate_ = value;
onChanged();
return this;
}
/**
* string sqlstate = 2;
* @return This builder for chaining.
*/
public Builder clearSqlstate() {
sqlstate_ = getDefaultInstance().getSqlstate();
onChanged();
return this;
}
/**
* string sqlstate = 2;
* @param value The bytes for sqlstate to set.
* @return This builder for chaining.
*/
public Builder setSqlstateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sqlstate_ = value;
onChanged();
return this;
}
private java.lang.Object customerHint_ = "";
/**
* string customer_hint = 3;
* @return The customerHint.
*/
public java.lang.String getCustomerHint() {
java.lang.Object ref = customerHint_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
customerHint_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string customer_hint = 3;
* @return The bytes for customerHint.
*/
public com.google.protobuf.ByteString
getCustomerHintBytes() {
java.lang.Object ref = customerHint_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
customerHint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string customer_hint = 3;
* @param value The customerHint to set.
* @return This builder for chaining.
*/
public Builder setCustomerHint(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
customerHint_ = value;
onChanged();
return this;
}
/**
* string customer_hint = 3;
* @return This builder for chaining.
*/
public Builder clearCustomerHint() {
customerHint_ = getDefaultInstance().getCustomerHint();
onChanged();
return this;
}
/**
* string customer_hint = 3;
* @param value The bytes for customerHint to set.
* @return This builder for chaining.
*/
public Builder setCustomerHintBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
customerHint_ = value;
onChanged();
return this;
}
private java.lang.Object customerDetail_ = "";
/**
* string customer_detail = 4;
* @return The customerDetail.
*/
public java.lang.String getCustomerDetail() {
java.lang.Object ref = customerDetail_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
customerDetail_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string customer_detail = 4;
* @return The bytes for customerDetail.
*/
public com.google.protobuf.ByteString
getCustomerDetailBytes() {
java.lang.Object ref = customerDetail_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
customerDetail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string customer_detail = 4;
* @param value The customerDetail to set.
* @return This builder for chaining.
*/
public Builder setCustomerDetail(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
customerDetail_ = value;
onChanged();
return this;
}
/**
* string customer_detail = 4;
* @return This builder for chaining.
*/
public Builder clearCustomerDetail() {
customerDetail_ = getDefaultInstance().getCustomerDetail();
onChanged();
return this;
}
/**
* string customer_detail = 4;
* @param value The bytes for customerDetail to set.
* @return This builder for chaining.
*/
public Builder setCustomerDetailBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
customerDetail_ = value;
onChanged();
return this;
}
private java.lang.Object systemDetail_ = "";
/**
* string system_detail = 5;
* @return The systemDetail.
*/
public java.lang.String getSystemDetail() {
java.lang.Object ref = systemDetail_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
systemDetail_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string system_detail = 5;
* @return The bytes for systemDetail.
*/
public com.google.protobuf.ByteString
getSystemDetailBytes() {
java.lang.Object ref = systemDetail_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
systemDetail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string system_detail = 5;
* @param value The systemDetail to set.
* @return This builder for chaining.
*/
public Builder setSystemDetail(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
systemDetail_ = value;
onChanged();
return this;
}
/**
* string system_detail = 5;
* @return This builder for chaining.
*/
public Builder clearSystemDetail() {
systemDetail_ = getDefaultInstance().getSystemDetail();
onChanged();
return this;
}
/**
* string system_detail = 5;
* @param value The bytes for systemDetail to set.
* @return This builder for chaining.
*/
public Builder setSystemDetailBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
systemDetail_ = value;
onChanged();
return this;
}
private com.salesforce.hyperdb.grpc.TextPosition position_;
private com.google.protobuf.SingleFieldBuilderV3<
com.salesforce.hyperdb.grpc.TextPosition, com.salesforce.hyperdb.grpc.TextPosition.Builder, com.salesforce.hyperdb.grpc.TextPositionOrBuilder> positionBuilder_;
/**
* .salesforce.hyperdb.grpc.v1.TextPosition position = 6;
* @return Whether the position field is set.
*/
public boolean hasPosition() {
return positionBuilder_ != null || position_ != null;
}
/**
* .salesforce.hyperdb.grpc.v1.TextPosition position = 6;
* @return The position.
*/
public com.salesforce.hyperdb.grpc.TextPosition getPosition() {
if (positionBuilder_ == null) {
return position_ == null ? com.salesforce.hyperdb.grpc.TextPosition.getDefaultInstance() : position_;
} else {
return positionBuilder_.getMessage();
}
}
/**
* .salesforce.hyperdb.grpc.v1.TextPosition position = 6;
*/
public Builder setPosition(com.salesforce.hyperdb.grpc.TextPosition value) {
if (positionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
position_ = value;
onChanged();
} else {
positionBuilder_.setMessage(value);
}
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.TextPosition position = 6;
*/
public Builder setPosition(
com.salesforce.hyperdb.grpc.TextPosition.Builder builderForValue) {
if (positionBuilder_ == null) {
position_ = builderForValue.build();
onChanged();
} else {
positionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.TextPosition position = 6;
*/
public Builder mergePosition(com.salesforce.hyperdb.grpc.TextPosition value) {
if (positionBuilder_ == null) {
if (position_ != null) {
position_ =
com.salesforce.hyperdb.grpc.TextPosition.newBuilder(position_).mergeFrom(value).buildPartial();
} else {
position_ = value;
}
onChanged();
} else {
positionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.TextPosition position = 6;
*/
public Builder clearPosition() {
if (positionBuilder_ == null) {
position_ = null;
onChanged();
} else {
position_ = null;
positionBuilder_ = null;
}
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.TextPosition position = 6;
*/
public com.salesforce.hyperdb.grpc.TextPosition.Builder getPositionBuilder() {
onChanged();
return getPositionFieldBuilder().getBuilder();
}
/**
* .salesforce.hyperdb.grpc.v1.TextPosition position = 6;
*/
public com.salesforce.hyperdb.grpc.TextPositionOrBuilder getPositionOrBuilder() {
if (positionBuilder_ != null) {
return positionBuilder_.getMessageOrBuilder();
} else {
return position_ == null ?
com.salesforce.hyperdb.grpc.TextPosition.getDefaultInstance() : position_;
}
}
/**
* .salesforce.hyperdb.grpc.v1.TextPosition position = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.salesforce.hyperdb.grpc.TextPosition, com.salesforce.hyperdb.grpc.TextPosition.Builder, com.salesforce.hyperdb.grpc.TextPositionOrBuilder>
getPositionFieldBuilder() {
if (positionBuilder_ == null) {
positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.salesforce.hyperdb.grpc.TextPosition, com.salesforce.hyperdb.grpc.TextPosition.Builder, com.salesforce.hyperdb.grpc.TextPositionOrBuilder>(
getPosition(),
getParentForChildren(),
isClean());
position_ = null;
}
return positionBuilder_;
}
@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.ErrorInfo)
}
// @@protoc_insertion_point(class_scope:salesforce.hyperdb.grpc.v1.ErrorInfo)
private static final com.salesforce.hyperdb.grpc.ErrorInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.salesforce.hyperdb.grpc.ErrorInfo();
}
public static com.salesforce.hyperdb.grpc.ErrorInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ErrorInfo 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.ErrorInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy