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
// Protobuf Java Version: 3.25.5
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();
}
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);
}
private int bitField0_;
public static final int PRIMARY_MESSAGE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
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;
@SuppressWarnings("serial")
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;
@SuppressWarnings("serial")
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;
@SuppressWarnings("serial")
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;
@SuppressWarnings("serial")
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 ((bitField0_ & 0x00000001) != 0);
}
/**
* .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 position_ == null ? com.salesforce.hyperdb.grpc.TextPosition.getDefaultInstance() : position_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
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 (((bitField0_ & 0x00000001) != 0)) {
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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPositionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
primaryMessage_ = "";
sqlstate_ = "";
customerHint_ = "";
customerDetail_ = "";
systemDetail_ = "";
position_ = null;
if (positionBuilder_ != null) {
positionBuilder_.dispose();
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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.salesforce.hyperdb.grpc.ErrorInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.primaryMessage_ = primaryMessage_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.sqlstate_ = sqlstate_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.customerHint_ = customerHint_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.customerDetail_ = customerDetail_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.systemDetail_ = systemDetail_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.position_ = positionBuilder_ == null
? position_
: positionBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getSqlstate().isEmpty()) {
sqlstate_ = other.sqlstate_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getCustomerHint().isEmpty()) {
customerHint_ = other.customerHint_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getCustomerDetail().isEmpty()) {
customerDetail_ = other.customerDetail_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getSystemDetail().isEmpty()) {
systemDetail_ = other.systemDetail_;
bitField0_ |= 0x00000010;
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();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
sqlstate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
customerHint_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
customerDetail_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
systemDetail_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getPositionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
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 int bitField0_;
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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string primary_message = 1;
* @return This builder for chaining.
*/
public Builder clearPrimaryMessage() {
primaryMessage_ = getDefaultInstance().getPrimaryMessage();
bitField0_ = (bitField0_ & ~0x00000001);
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;
bitField0_ |= 0x00000001;
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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string sqlstate = 2;
* @return This builder for chaining.
*/
public Builder clearSqlstate() {
sqlstate_ = getDefaultInstance().getSqlstate();
bitField0_ = (bitField0_ & ~0x00000002);
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;
bitField0_ |= 0x00000002;
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;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string customer_hint = 3;
* @return This builder for chaining.
*/
public Builder clearCustomerHint() {
customerHint_ = getDefaultInstance().getCustomerHint();
bitField0_ = (bitField0_ & ~0x00000004);
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;
bitField0_ |= 0x00000004;
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;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* string customer_detail = 4;
* @return This builder for chaining.
*/
public Builder clearCustomerDetail() {
customerDetail_ = getDefaultInstance().getCustomerDetail();
bitField0_ = (bitField0_ & ~0x00000008);
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;
bitField0_ |= 0x00000008;
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;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* string system_detail = 5;
* @return This builder for chaining.
*/
public Builder clearSystemDetail() {
systemDetail_ = getDefaultInstance().getSystemDetail();
bitField0_ = (bitField0_ & ~0x00000010);
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;
bitField0_ |= 0x00000010;
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 ((bitField0_ & 0x00000020) != 0);
}
/**
* .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;
} else {
positionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
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();
} else {
positionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.TextPosition position = 6;
*/
public Builder mergePosition(com.salesforce.hyperdb.grpc.TextPosition value) {
if (positionBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
position_ != null &&
position_ != com.salesforce.hyperdb.grpc.TextPosition.getDefaultInstance()) {
getPositionBuilder().mergeFrom(value);
} else {
position_ = value;
}
} else {
positionBuilder_.mergeFrom(value);
}
if (position_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.TextPosition position = 6;
*/
public Builder clearPosition() {
bitField0_ = (bitField0_ & ~0x00000020);
position_ = null;
if (positionBuilder_ != null) {
positionBuilder_.dispose();
positionBuilder_ = null;
}
onChanged();
return this;
}
/**
* .salesforce.hyperdb.grpc.v1.TextPosition position = 6;
*/
public com.salesforce.hyperdb.grpc.TextPosition.Builder getPositionBuilder() {
bitField0_ |= 0x00000020;
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