public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, getMessageBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, getCauseBytes()); } memoizedSerializedSize = size; return size; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getMessageBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getCauseBytes()); } }
private QueryExceptionType(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType buildPartial() { datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType result = new datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType( this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.message_ = message_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.cause_ = cause_; result.bitField0_ = to_bitField0_; return result; }
public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType getDefaultInstanceForType() { return datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.getDefaultInstance(); }
public Builder mergeFrom(datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType other) { if (other == datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.getDefaultInstance()) return this; if (other.hasMessage()) { bitField0_ |= 0x00000001; message_ = other.message_; } if (other.hasCause()) { bitField0_ |= 0x00000002; cause_ = other.cause_; } return this; }
/** * <code>optional string message = 1;</code> */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000001); message_ = getDefaultInstance().getMessage(); return this; }
/** * <code>optional string cause = 2;</code> */ public Builder clearCause() { bitField0_ = (bitField0_ & ~0x00000002); cause_ = getDefaultInstance().getCause(); return this; }