com.truward.brikar.error.model.ErrorModel Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: error-model.proto
package com.truward.brikar.error.model;
public final class ErrorModel {
private ErrorModel() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface ErrorResponseV2OrBuilder extends
// @@protoc_insertion_point(interface_extends:truward.brikar.error.model.ErrorResponseV2)
com.google.protobuf.MessageOrBuilder {
/**
*
* holds information about an error
*
*
* .truward.brikar.error.model.ErrorV2 error = 1;
*/
boolean hasError();
/**
*
* holds information about an error
*
*
* .truward.brikar.error.model.ErrorV2 error = 1;
*/
com.truward.brikar.error.model.ErrorModel.ErrorV2 getError();
/**
*
* holds information about an error
*
*
* .truward.brikar.error.model.ErrorV2 error = 1;
*/
com.truward.brikar.error.model.ErrorModel.ErrorV2OrBuilder getErrorOrBuilder();
}
/**
* Protobuf type {@code truward.brikar.error.model.ErrorResponseV2}
*/
public static final class ErrorResponseV2 extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:truward.brikar.error.model.ErrorResponseV2)
ErrorResponseV2OrBuilder {
// Use ErrorResponseV2.newBuilder() to construct.
private ErrorResponseV2(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ErrorResponseV2() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ErrorResponseV2(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.truward.brikar.error.model.ErrorModel.ErrorV2.Builder subBuilder = null;
if (error_ != null) {
subBuilder = error_.toBuilder();
}
error_ = input.readMessage(com.truward.brikar.error.model.ErrorModel.ErrorV2.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(error_);
error_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.truward.brikar.error.model.ErrorModel.internal_static_truward_brikar_error_model_ErrorResponseV2_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.truward.brikar.error.model.ErrorModel.internal_static_truward_brikar_error_model_ErrorResponseV2_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.truward.brikar.error.model.ErrorModel.ErrorResponseV2.class, com.truward.brikar.error.model.ErrorModel.ErrorResponseV2.Builder.class);
}
public static final int ERROR_FIELD_NUMBER = 1;
private com.truward.brikar.error.model.ErrorModel.ErrorV2 error_;
/**
*
* holds information about an error
*
*
* .truward.brikar.error.model.ErrorV2 error = 1;
*/
public boolean hasError() {
return error_ != null;
}
/**
*
* holds information about an error
*
*
* .truward.brikar.error.model.ErrorV2 error = 1;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorV2 getError() {
return error_ == null ? com.truward.brikar.error.model.ErrorModel.ErrorV2.getDefaultInstance() : error_;
}
/**
*
* holds information about an error
*
*
* .truward.brikar.error.model.ErrorV2 error = 1;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorV2OrBuilder getErrorOrBuilder() {
return getError();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (error_ != null) {
output.writeMessage(1, getError());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (error_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getError());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.truward.brikar.error.model.ErrorModel.ErrorResponseV2)) {
return super.equals(obj);
}
com.truward.brikar.error.model.ErrorModel.ErrorResponseV2 other = (com.truward.brikar.error.model.ErrorModel.ErrorResponseV2) obj;
boolean result = true;
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError()
.equals(other.getError());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasError()) {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.truward.brikar.error.model.ErrorModel.ErrorResponseV2 parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorResponseV2 parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorResponseV2 parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorResponseV2 parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorResponseV2 parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorResponseV2 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.truward.brikar.error.model.ErrorModel.ErrorResponseV2 parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorResponseV2 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.truward.brikar.error.model.ErrorModel.ErrorResponseV2 parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorResponseV2 parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.brikar.error.model.ErrorModel.ErrorResponseV2 prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 truward.brikar.error.model.ErrorResponseV2}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:truward.brikar.error.model.ErrorResponseV2)
com.truward.brikar.error.model.ErrorModel.ErrorResponseV2OrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.truward.brikar.error.model.ErrorModel.internal_static_truward_brikar_error_model_ErrorResponseV2_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.truward.brikar.error.model.ErrorModel.internal_static_truward_brikar_error_model_ErrorResponseV2_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.truward.brikar.error.model.ErrorModel.ErrorResponseV2.class, com.truward.brikar.error.model.ErrorModel.ErrorResponseV2.Builder.class);
}
// Construct using com.truward.brikar.error.model.ErrorModel.ErrorResponseV2.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (errorBuilder_ == null) {
error_ = null;
} else {
error_ = null;
errorBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.truward.brikar.error.model.ErrorModel.internal_static_truward_brikar_error_model_ErrorResponseV2_descriptor;
}
public com.truward.brikar.error.model.ErrorModel.ErrorResponseV2 getDefaultInstanceForType() {
return com.truward.brikar.error.model.ErrorModel.ErrorResponseV2.getDefaultInstance();
}
public com.truward.brikar.error.model.ErrorModel.ErrorResponseV2 build() {
com.truward.brikar.error.model.ErrorModel.ErrorResponseV2 result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.truward.brikar.error.model.ErrorModel.ErrorResponseV2 buildPartial() {
com.truward.brikar.error.model.ErrorModel.ErrorResponseV2 result = new com.truward.brikar.error.model.ErrorModel.ErrorResponseV2(this);
if (errorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = errorBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.truward.brikar.error.model.ErrorModel.ErrorResponseV2) {
return mergeFrom((com.truward.brikar.error.model.ErrorModel.ErrorResponseV2)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.truward.brikar.error.model.ErrorModel.ErrorResponseV2 other) {
if (other == com.truward.brikar.error.model.ErrorModel.ErrorResponseV2.getDefaultInstance()) return this;
if (other.hasError()) {
mergeError(other.getError());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.truward.brikar.error.model.ErrorModel.ErrorResponseV2 parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.truward.brikar.error.model.ErrorModel.ErrorResponseV2) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.truward.brikar.error.model.ErrorModel.ErrorV2 error_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.truward.brikar.error.model.ErrorModel.ErrorV2, com.truward.brikar.error.model.ErrorModel.ErrorV2.Builder, com.truward.brikar.error.model.ErrorModel.ErrorV2OrBuilder> errorBuilder_;
/**
*
* holds information about an error
*
*
* .truward.brikar.error.model.ErrorV2 error = 1;
*/
public boolean hasError() {
return errorBuilder_ != null || error_ != null;
}
/**
*
* holds information about an error
*
*
* .truward.brikar.error.model.ErrorV2 error = 1;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorV2 getError() {
if (errorBuilder_ == null) {
return error_ == null ? com.truward.brikar.error.model.ErrorModel.ErrorV2.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
}
/**
*
* holds information about an error
*
*
* .truward.brikar.error.model.ErrorV2 error = 1;
*/
public Builder setError(com.truward.brikar.error.model.ErrorModel.ErrorV2 value) {
if (errorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
} else {
errorBuilder_.setMessage(value);
}
return this;
}
/**
*
* holds information about an error
*
*
* .truward.brikar.error.model.ErrorV2 error = 1;
*/
public Builder setError(
com.truward.brikar.error.model.ErrorModel.ErrorV2.Builder builderForValue) {
if (errorBuilder_ == null) {
error_ = builderForValue.build();
onChanged();
} else {
errorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* holds information about an error
*
*
* .truward.brikar.error.model.ErrorV2 error = 1;
*/
public Builder mergeError(com.truward.brikar.error.model.ErrorModel.ErrorV2 value) {
if (errorBuilder_ == null) {
if (error_ != null) {
error_ =
com.truward.brikar.error.model.ErrorModel.ErrorV2.newBuilder(error_).mergeFrom(value).buildPartial();
} else {
error_ = value;
}
onChanged();
} else {
errorBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* holds information about an error
*
*
* .truward.brikar.error.model.ErrorV2 error = 1;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
error_ = null;
onChanged();
} else {
error_ = null;
errorBuilder_ = null;
}
return this;
}
/**
*
* holds information about an error
*
*
* .truward.brikar.error.model.ErrorV2 error = 1;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorV2.Builder getErrorBuilder() {
onChanged();
return getErrorFieldBuilder().getBuilder();
}
/**
*
* holds information about an error
*
*
* .truward.brikar.error.model.ErrorV2 error = 1;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorV2OrBuilder getErrorOrBuilder() {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
return error_ == null ?
com.truward.brikar.error.model.ErrorModel.ErrorV2.getDefaultInstance() : error_;
}
}
/**
*
* holds information about an error
*
*
* .truward.brikar.error.model.ErrorV2 error = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.truward.brikar.error.model.ErrorModel.ErrorV2, com.truward.brikar.error.model.ErrorModel.ErrorV2.Builder, com.truward.brikar.error.model.ErrorModel.ErrorV2OrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.truward.brikar.error.model.ErrorModel.ErrorV2, com.truward.brikar.error.model.ErrorModel.ErrorV2.Builder, com.truward.brikar.error.model.ErrorModel.ErrorV2OrBuilder>(
getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.brikar.error.model.ErrorResponseV2)
}
// @@protoc_insertion_point(class_scope:truward.brikar.error.model.ErrorResponseV2)
private static final com.truward.brikar.error.model.ErrorModel.ErrorResponseV2 DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.brikar.error.model.ErrorModel.ErrorResponseV2();
}
public static com.truward.brikar.error.model.ErrorModel.ErrorResponseV2 getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ErrorResponseV2 parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ErrorResponseV2(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.brikar.error.model.ErrorModel.ErrorResponseV2 getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ErrorValueV2OrBuilder extends
// @@protoc_insertion_point(interface_extends:truward.brikar.error.model.ErrorValueV2)
com.google.protobuf.MessageOrBuilder {
/**
* bytes bytesValue = 1;
*/
com.google.protobuf.ByteString getBytesValue();
/**
* string strValue = 2;
*/
java.lang.String getStrValue();
/**
* string strValue = 2;
*/
com.google.protobuf.ByteString
getStrValueBytes();
/**
* int32 intValue = 3;
*/
int getIntValue();
/**
* int64 longValue = 4;
*/
long getLongValue();
/**
* bool boolValue = 5;
*/
boolean getBoolValue();
}
/**
* Protobuf type {@code truward.brikar.error.model.ErrorValueV2}
*/
public static final class ErrorValueV2 extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:truward.brikar.error.model.ErrorValueV2)
ErrorValueV2OrBuilder {
// Use ErrorValueV2.newBuilder() to construct.
private ErrorValueV2(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ErrorValueV2() {
bytesValue_ = com.google.protobuf.ByteString.EMPTY;
strValue_ = "";
intValue_ = 0;
longValue_ = 0L;
boolValue_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ErrorValueV2(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
bytesValue_ = input.readBytes();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
strValue_ = s;
break;
}
case 24: {
intValue_ = input.readInt32();
break;
}
case 32: {
longValue_ = input.readInt64();
break;
}
case 40: {
boolValue_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.truward.brikar.error.model.ErrorModel.internal_static_truward_brikar_error_model_ErrorValueV2_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.truward.brikar.error.model.ErrorModel.internal_static_truward_brikar_error_model_ErrorValueV2_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.truward.brikar.error.model.ErrorModel.ErrorValueV2.class, com.truward.brikar.error.model.ErrorModel.ErrorValueV2.Builder.class);
}
public static final int BYTESVALUE_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString bytesValue_;
/**
* bytes bytesValue = 1;
*/
public com.google.protobuf.ByteString getBytesValue() {
return bytesValue_;
}
public static final int STRVALUE_FIELD_NUMBER = 2;
private volatile java.lang.Object strValue_;
/**
* string strValue = 2;
*/
public java.lang.String getStrValue() {
java.lang.Object ref = strValue_;
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();
strValue_ = s;
return s;
}
}
/**
* string strValue = 2;
*/
public com.google.protobuf.ByteString
getStrValueBytes() {
java.lang.Object ref = strValue_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
strValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INTVALUE_FIELD_NUMBER = 3;
private int intValue_;
/**
* int32 intValue = 3;
*/
public int getIntValue() {
return intValue_;
}
public static final int LONGVALUE_FIELD_NUMBER = 4;
private long longValue_;
/**
* int64 longValue = 4;
*/
public long getLongValue() {
return longValue_;
}
public static final int BOOLVALUE_FIELD_NUMBER = 5;
private boolean boolValue_;
/**
* bool boolValue = 5;
*/
public boolean getBoolValue() {
return boolValue_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!bytesValue_.isEmpty()) {
output.writeBytes(1, bytesValue_);
}
if (!getStrValueBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, strValue_);
}
if (intValue_ != 0) {
output.writeInt32(3, intValue_);
}
if (longValue_ != 0L) {
output.writeInt64(4, longValue_);
}
if (boolValue_ != false) {
output.writeBool(5, boolValue_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!bytesValue_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, bytesValue_);
}
if (!getStrValueBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, strValue_);
}
if (intValue_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, intValue_);
}
if (longValue_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, longValue_);
}
if (boolValue_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, boolValue_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.truward.brikar.error.model.ErrorModel.ErrorValueV2)) {
return super.equals(obj);
}
com.truward.brikar.error.model.ErrorModel.ErrorValueV2 other = (com.truward.brikar.error.model.ErrorModel.ErrorValueV2) obj;
boolean result = true;
result = result && getBytesValue()
.equals(other.getBytesValue());
result = result && getStrValue()
.equals(other.getStrValue());
result = result && (getIntValue()
== other.getIntValue());
result = result && (getLongValue()
== other.getLongValue());
result = result && (getBoolValue()
== other.getBoolValue());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + BYTESVALUE_FIELD_NUMBER;
hash = (53 * hash) + getBytesValue().hashCode();
hash = (37 * hash) + STRVALUE_FIELD_NUMBER;
hash = (53 * hash) + getStrValue().hashCode();
hash = (37 * hash) + INTVALUE_FIELD_NUMBER;
hash = (53 * hash) + getIntValue();
hash = (37 * hash) + LONGVALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLongValue());
hash = (37 * hash) + BOOLVALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getBoolValue());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.truward.brikar.error.model.ErrorModel.ErrorValueV2 parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorValueV2 parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorValueV2 parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorValueV2 parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorValueV2 parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorValueV2 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.truward.brikar.error.model.ErrorModel.ErrorValueV2 parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorValueV2 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.truward.brikar.error.model.ErrorModel.ErrorValueV2 parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorValueV2 parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.brikar.error.model.ErrorModel.ErrorValueV2 prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 truward.brikar.error.model.ErrorValueV2}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:truward.brikar.error.model.ErrorValueV2)
com.truward.brikar.error.model.ErrorModel.ErrorValueV2OrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.truward.brikar.error.model.ErrorModel.internal_static_truward_brikar_error_model_ErrorValueV2_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.truward.brikar.error.model.ErrorModel.internal_static_truward_brikar_error_model_ErrorValueV2_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.truward.brikar.error.model.ErrorModel.ErrorValueV2.class, com.truward.brikar.error.model.ErrorModel.ErrorValueV2.Builder.class);
}
// Construct using com.truward.brikar.error.model.ErrorModel.ErrorValueV2.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
bytesValue_ = com.google.protobuf.ByteString.EMPTY;
strValue_ = "";
intValue_ = 0;
longValue_ = 0L;
boolValue_ = false;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.truward.brikar.error.model.ErrorModel.internal_static_truward_brikar_error_model_ErrorValueV2_descriptor;
}
public com.truward.brikar.error.model.ErrorModel.ErrorValueV2 getDefaultInstanceForType() {
return com.truward.brikar.error.model.ErrorModel.ErrorValueV2.getDefaultInstance();
}
public com.truward.brikar.error.model.ErrorModel.ErrorValueV2 build() {
com.truward.brikar.error.model.ErrorModel.ErrorValueV2 result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.truward.brikar.error.model.ErrorModel.ErrorValueV2 buildPartial() {
com.truward.brikar.error.model.ErrorModel.ErrorValueV2 result = new com.truward.brikar.error.model.ErrorModel.ErrorValueV2(this);
result.bytesValue_ = bytesValue_;
result.strValue_ = strValue_;
result.intValue_ = intValue_;
result.longValue_ = longValue_;
result.boolValue_ = boolValue_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.truward.brikar.error.model.ErrorModel.ErrorValueV2) {
return mergeFrom((com.truward.brikar.error.model.ErrorModel.ErrorValueV2)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.truward.brikar.error.model.ErrorModel.ErrorValueV2 other) {
if (other == com.truward.brikar.error.model.ErrorModel.ErrorValueV2.getDefaultInstance()) return this;
if (other.getBytesValue() != com.google.protobuf.ByteString.EMPTY) {
setBytesValue(other.getBytesValue());
}
if (!other.getStrValue().isEmpty()) {
strValue_ = other.strValue_;
onChanged();
}
if (other.getIntValue() != 0) {
setIntValue(other.getIntValue());
}
if (other.getLongValue() != 0L) {
setLongValue(other.getLongValue());
}
if (other.getBoolValue() != false) {
setBoolValue(other.getBoolValue());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.truward.brikar.error.model.ErrorModel.ErrorValueV2 parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.truward.brikar.error.model.ErrorModel.ErrorValueV2) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString bytesValue_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes bytesValue = 1;
*/
public com.google.protobuf.ByteString getBytesValue() {
return bytesValue_;
}
/**
* bytes bytesValue = 1;
*/
public Builder setBytesValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bytesValue_ = value;
onChanged();
return this;
}
/**
* bytes bytesValue = 1;
*/
public Builder clearBytesValue() {
bytesValue_ = getDefaultInstance().getBytesValue();
onChanged();
return this;
}
private java.lang.Object strValue_ = "";
/**
* string strValue = 2;
*/
public java.lang.String getStrValue() {
java.lang.Object ref = strValue_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
strValue_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string strValue = 2;
*/
public com.google.protobuf.ByteString
getStrValueBytes() {
java.lang.Object ref = strValue_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
strValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string strValue = 2;
*/
public Builder setStrValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
strValue_ = value;
onChanged();
return this;
}
/**
* string strValue = 2;
*/
public Builder clearStrValue() {
strValue_ = getDefaultInstance().getStrValue();
onChanged();
return this;
}
/**
* string strValue = 2;
*/
public Builder setStrValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
strValue_ = value;
onChanged();
return this;
}
private int intValue_ ;
/**
* int32 intValue = 3;
*/
public int getIntValue() {
return intValue_;
}
/**
* int32 intValue = 3;
*/
public Builder setIntValue(int value) {
intValue_ = value;
onChanged();
return this;
}
/**
* int32 intValue = 3;
*/
public Builder clearIntValue() {
intValue_ = 0;
onChanged();
return this;
}
private long longValue_ ;
/**
* int64 longValue = 4;
*/
public long getLongValue() {
return longValue_;
}
/**
* int64 longValue = 4;
*/
public Builder setLongValue(long value) {
longValue_ = value;
onChanged();
return this;
}
/**
* int64 longValue = 4;
*/
public Builder clearLongValue() {
longValue_ = 0L;
onChanged();
return this;
}
private boolean boolValue_ ;
/**
* bool boolValue = 5;
*/
public boolean getBoolValue() {
return boolValue_;
}
/**
* bool boolValue = 5;
*/
public Builder setBoolValue(boolean value) {
boolValue_ = value;
onChanged();
return this;
}
/**
* bool boolValue = 5;
*/
public Builder clearBoolValue() {
boolValue_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.brikar.error.model.ErrorValueV2)
}
// @@protoc_insertion_point(class_scope:truward.brikar.error.model.ErrorValueV2)
private static final com.truward.brikar.error.model.ErrorModel.ErrorValueV2 DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.brikar.error.model.ErrorModel.ErrorValueV2();
}
public static com.truward.brikar.error.model.ErrorModel.ErrorValueV2 getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ErrorValueV2 parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ErrorValueV2(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.brikar.error.model.ErrorModel.ErrorValueV2 getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ErrorV2OrBuilder extends
// @@protoc_insertion_point(interface_extends:truward.brikar.error.model.ErrorV2)
com.google.protobuf.MessageOrBuilder {
/**
*
* required, custom error code from the predefined enumeration, for example 'BadRequest' or 'CreditCardExpired'
*
*
* string code = 1;
*/
java.lang.String getCode();
/**
*
* required, custom error code from the predefined enumeration, for example 'BadRequest' or 'CreditCardExpired'
*
*
* string code = 1;
*/
com.google.protobuf.ByteString
getCodeBytes();
/**
*
* required, associated human readable error message, for example 'Payment failed, credit card ending with 1234 is expired'
*
*
* string message = 2;
*/
java.lang.String getMessage();
/**
*
* required, associated human readable error message, for example 'Payment failed, credit card ending with 1234 is expired'
*
*
* string message = 2;
*/
com.google.protobuf.ByteString
getMessageBytes();
/**
*
* optional message source, it is recommended to put service name here to allow easy error chaining
*
*
* string source = 5;
*/
java.lang.String getSource();
/**
*
* optional message source, it is recommended to put service name here to allow easy error chaining
*
*
* string source = 5;
*/
com.google.protobuf.ByteString
getSourceBytes();
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
java.util.List
getInnerErrorsList();
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
com.truward.brikar.error.model.ErrorModel.ErrorV2 getInnerErrors(int index);
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
int getInnerErrorsCount();
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
java.util.List extends com.truward.brikar.error.model.ErrorModel.ErrorV2OrBuilder>
getInnerErrorsOrBuilderList();
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
com.truward.brikar.error.model.ErrorModel.ErrorV2OrBuilder getInnerErrorsOrBuilder(
int index);
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
java.util.List
getParametersList();
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 getParameters(int index);
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
int getParametersCount();
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
java.util.List extends com.truward.brikar.error.model.ErrorModel.ErrorParameterV2OrBuilder>
getParametersOrBuilderList();
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
com.truward.brikar.error.model.ErrorModel.ErrorParameterV2OrBuilder getParametersOrBuilder(
int index);
}
/**
* Protobuf type {@code truward.brikar.error.model.ErrorV2}
*/
public static final class ErrorV2 extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:truward.brikar.error.model.ErrorV2)
ErrorV2OrBuilder {
// Use ErrorV2.newBuilder() to construct.
private ErrorV2(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ErrorV2() {
code_ = "";
message_ = "";
source_ = "";
innerErrors_ = java.util.Collections.emptyList();
parameters_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ErrorV2(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
code_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
message_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
innerErrors_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
innerErrors_.add(
input.readMessage(com.truward.brikar.error.model.ErrorModel.ErrorV2.parser(), extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
parameters_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
parameters_.add(
input.readMessage(com.truward.brikar.error.model.ErrorModel.ErrorParameterV2.parser(), extensionRegistry));
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
source_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
innerErrors_ = java.util.Collections.unmodifiableList(innerErrors_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
parameters_ = java.util.Collections.unmodifiableList(parameters_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.truward.brikar.error.model.ErrorModel.internal_static_truward_brikar_error_model_ErrorV2_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.truward.brikar.error.model.ErrorModel.internal_static_truward_brikar_error_model_ErrorV2_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.truward.brikar.error.model.ErrorModel.ErrorV2.class, com.truward.brikar.error.model.ErrorModel.ErrorV2.Builder.class);
}
private int bitField0_;
public static final int CODE_FIELD_NUMBER = 1;
private volatile java.lang.Object code_;
/**
*
* required, custom error code from the predefined enumeration, for example 'BadRequest' or 'CreditCardExpired'
*
*
* string code = 1;
*/
public java.lang.String getCode() {
java.lang.Object ref = code_;
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();
code_ = s;
return s;
}
}
/**
*
* required, custom error code from the predefined enumeration, for example 'BadRequest' or 'CreditCardExpired'
*
*
* string code = 1;
*/
public com.google.protobuf.ByteString
getCodeBytes() {
java.lang.Object ref = code_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
code_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MESSAGE_FIELD_NUMBER = 2;
private volatile java.lang.Object message_;
/**
*
* required, associated human readable error message, for example 'Payment failed, credit card ending with 1234 is expired'
*
*
* string message = 2;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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();
message_ = s;
return s;
}
}
/**
*
* required, associated human readable error message, for example 'Payment failed, credit card ending with 1234 is expired'
*
*
* string message = 2;
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOURCE_FIELD_NUMBER = 5;
private volatile java.lang.Object source_;
/**
*
* optional message source, it is recommended to put service name here to allow easy error chaining
*
*
* string source = 5;
*/
public java.lang.String getSource() {
java.lang.Object ref = source_;
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();
source_ = s;
return s;
}
}
/**
*
* optional message source, it is recommended to put service name here to allow easy error chaining
*
*
* string source = 5;
*/
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INNERERRORS_FIELD_NUMBER = 3;
private java.util.List innerErrors_;
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public java.util.List getInnerErrorsList() {
return innerErrors_;
}
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public java.util.List extends com.truward.brikar.error.model.ErrorModel.ErrorV2OrBuilder>
getInnerErrorsOrBuilderList() {
return innerErrors_;
}
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public int getInnerErrorsCount() {
return innerErrors_.size();
}
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorV2 getInnerErrors(int index) {
return innerErrors_.get(index);
}
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorV2OrBuilder getInnerErrorsOrBuilder(
int index) {
return innerErrors_.get(index);
}
public static final int PARAMETERS_FIELD_NUMBER = 4;
private java.util.List parameters_;
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public java.util.List getParametersList() {
return parameters_;
}
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public java.util.List extends com.truward.brikar.error.model.ErrorModel.ErrorParameterV2OrBuilder>
getParametersOrBuilderList() {
return parameters_;
}
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public int getParametersCount() {
return parameters_.size();
}
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 getParameters(int index) {
return parameters_.get(index);
}
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorParameterV2OrBuilder getParametersOrBuilder(
int index) {
return parameters_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getCodeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_);
}
if (!getMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
}
for (int i = 0; i < innerErrors_.size(); i++) {
output.writeMessage(3, innerErrors_.get(i));
}
for (int i = 0; i < parameters_.size(); i++) {
output.writeMessage(4, parameters_.get(i));
}
if (!getSourceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, source_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getCodeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_);
}
if (!getMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
}
for (int i = 0; i < innerErrors_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, innerErrors_.get(i));
}
for (int i = 0; i < parameters_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, parameters_.get(i));
}
if (!getSourceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, source_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.truward.brikar.error.model.ErrorModel.ErrorV2)) {
return super.equals(obj);
}
com.truward.brikar.error.model.ErrorModel.ErrorV2 other = (com.truward.brikar.error.model.ErrorModel.ErrorV2) obj;
boolean result = true;
result = result && getCode()
.equals(other.getCode());
result = result && getMessage()
.equals(other.getMessage());
result = result && getSource()
.equals(other.getSource());
result = result && getInnerErrorsList()
.equals(other.getInnerErrorsList());
result = result && getParametersList()
.equals(other.getParametersList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCode().hashCode();
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
if (getInnerErrorsCount() > 0) {
hash = (37 * hash) + INNERERRORS_FIELD_NUMBER;
hash = (53 * hash) + getInnerErrorsList().hashCode();
}
if (getParametersCount() > 0) {
hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getParametersList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.truward.brikar.error.model.ErrorModel.ErrorV2 parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorV2 parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorV2 parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorV2 parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorV2 parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorV2 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.truward.brikar.error.model.ErrorModel.ErrorV2 parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorV2 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.truward.brikar.error.model.ErrorModel.ErrorV2 parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorV2 parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.brikar.error.model.ErrorModel.ErrorV2 prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 truward.brikar.error.model.ErrorV2}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:truward.brikar.error.model.ErrorV2)
com.truward.brikar.error.model.ErrorModel.ErrorV2OrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.truward.brikar.error.model.ErrorModel.internal_static_truward_brikar_error_model_ErrorV2_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.truward.brikar.error.model.ErrorModel.internal_static_truward_brikar_error_model_ErrorV2_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.truward.brikar.error.model.ErrorModel.ErrorV2.class, com.truward.brikar.error.model.ErrorModel.ErrorV2.Builder.class);
}
// Construct using com.truward.brikar.error.model.ErrorModel.ErrorV2.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getInnerErrorsFieldBuilder();
getParametersFieldBuilder();
}
}
public Builder clear() {
super.clear();
code_ = "";
message_ = "";
source_ = "";
if (innerErrorsBuilder_ == null) {
innerErrors_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
innerErrorsBuilder_.clear();
}
if (parametersBuilder_ == null) {
parameters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
parametersBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.truward.brikar.error.model.ErrorModel.internal_static_truward_brikar_error_model_ErrorV2_descriptor;
}
public com.truward.brikar.error.model.ErrorModel.ErrorV2 getDefaultInstanceForType() {
return com.truward.brikar.error.model.ErrorModel.ErrorV2.getDefaultInstance();
}
public com.truward.brikar.error.model.ErrorModel.ErrorV2 build() {
com.truward.brikar.error.model.ErrorModel.ErrorV2 result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.truward.brikar.error.model.ErrorModel.ErrorV2 buildPartial() {
com.truward.brikar.error.model.ErrorModel.ErrorV2 result = new com.truward.brikar.error.model.ErrorModel.ErrorV2(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.code_ = code_;
result.message_ = message_;
result.source_ = source_;
if (innerErrorsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
innerErrors_ = java.util.Collections.unmodifiableList(innerErrors_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.innerErrors_ = innerErrors_;
} else {
result.innerErrors_ = innerErrorsBuilder_.build();
}
if (parametersBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
parameters_ = java.util.Collections.unmodifiableList(parameters_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.parameters_ = parameters_;
} else {
result.parameters_ = parametersBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.truward.brikar.error.model.ErrorModel.ErrorV2) {
return mergeFrom((com.truward.brikar.error.model.ErrorModel.ErrorV2)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.truward.brikar.error.model.ErrorModel.ErrorV2 other) {
if (other == com.truward.brikar.error.model.ErrorModel.ErrorV2.getDefaultInstance()) return this;
if (!other.getCode().isEmpty()) {
code_ = other.code_;
onChanged();
}
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
onChanged();
}
if (!other.getSource().isEmpty()) {
source_ = other.source_;
onChanged();
}
if (innerErrorsBuilder_ == null) {
if (!other.innerErrors_.isEmpty()) {
if (innerErrors_.isEmpty()) {
innerErrors_ = other.innerErrors_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureInnerErrorsIsMutable();
innerErrors_.addAll(other.innerErrors_);
}
onChanged();
}
} else {
if (!other.innerErrors_.isEmpty()) {
if (innerErrorsBuilder_.isEmpty()) {
innerErrorsBuilder_.dispose();
innerErrorsBuilder_ = null;
innerErrors_ = other.innerErrors_;
bitField0_ = (bitField0_ & ~0x00000008);
innerErrorsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInnerErrorsFieldBuilder() : null;
} else {
innerErrorsBuilder_.addAllMessages(other.innerErrors_);
}
}
}
if (parametersBuilder_ == null) {
if (!other.parameters_.isEmpty()) {
if (parameters_.isEmpty()) {
parameters_ = other.parameters_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureParametersIsMutable();
parameters_.addAll(other.parameters_);
}
onChanged();
}
} else {
if (!other.parameters_.isEmpty()) {
if (parametersBuilder_.isEmpty()) {
parametersBuilder_.dispose();
parametersBuilder_ = null;
parameters_ = other.parameters_;
bitField0_ = (bitField0_ & ~0x00000010);
parametersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getParametersFieldBuilder() : null;
} else {
parametersBuilder_.addAllMessages(other.parameters_);
}
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.truward.brikar.error.model.ErrorModel.ErrorV2 parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.truward.brikar.error.model.ErrorModel.ErrorV2) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object code_ = "";
/**
*
* required, custom error code from the predefined enumeration, for example 'BadRequest' or 'CreditCardExpired'
*
*
* string code = 1;
*/
public java.lang.String getCode() {
java.lang.Object ref = code_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
code_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* required, custom error code from the predefined enumeration, for example 'BadRequest' or 'CreditCardExpired'
*
*
* string code = 1;
*/
public com.google.protobuf.ByteString
getCodeBytes() {
java.lang.Object ref = code_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
code_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* required, custom error code from the predefined enumeration, for example 'BadRequest' or 'CreditCardExpired'
*
*
* string code = 1;
*/
public Builder setCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
code_ = value;
onChanged();
return this;
}
/**
*
* required, custom error code from the predefined enumeration, for example 'BadRequest' or 'CreditCardExpired'
*
*
* string code = 1;
*/
public Builder clearCode() {
code_ = getDefaultInstance().getCode();
onChanged();
return this;
}
/**
*
* required, custom error code from the predefined enumeration, for example 'BadRequest' or 'CreditCardExpired'
*
*
* string code = 1;
*/
public Builder setCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
code_ = value;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
*
* required, associated human readable error message, for example 'Payment failed, credit card ending with 1234 is expired'
*
*
* string message = 2;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* required, associated human readable error message, for example 'Payment failed, credit card ending with 1234 is expired'
*
*
* string message = 2;
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* required, associated human readable error message, for example 'Payment failed, credit card ending with 1234 is expired'
*
*
* string message = 2;
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
return this;
}
/**
*
* required, associated human readable error message, for example 'Payment failed, credit card ending with 1234 is expired'
*
*
* string message = 2;
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
*
* required, associated human readable error message, for example 'Payment failed, credit card ending with 1234 is expired'
*
*
* string message = 2;
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
message_ = value;
onChanged();
return this;
}
private java.lang.Object source_ = "";
/**
*
* optional message source, it is recommended to put service name here to allow easy error chaining
*
*
* string source = 5;
*/
public java.lang.String getSource() {
java.lang.Object ref = source_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
source_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* optional message source, it is recommended to put service name here to allow easy error chaining
*
*
* string source = 5;
*/
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* optional message source, it is recommended to put service name here to allow easy error chaining
*
*
* string source = 5;
*/
public Builder setSource(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
onChanged();
return this;
}
/**
*
* optional message source, it is recommended to put service name here to allow easy error chaining
*
*
* string source = 5;
*/
public Builder clearSource() {
source_ = getDefaultInstance().getSource();
onChanged();
return this;
}
/**
*
* optional message source, it is recommended to put service name here to allow easy error chaining
*
*
* string source = 5;
*/
public Builder setSourceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
source_ = value;
onChanged();
return this;
}
private java.util.List innerErrors_ =
java.util.Collections.emptyList();
private void ensureInnerErrorsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
innerErrors_ = new java.util.ArrayList(innerErrors_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.truward.brikar.error.model.ErrorModel.ErrorV2, com.truward.brikar.error.model.ErrorModel.ErrorV2.Builder, com.truward.brikar.error.model.ErrorModel.ErrorV2OrBuilder> innerErrorsBuilder_;
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public java.util.List getInnerErrorsList() {
if (innerErrorsBuilder_ == null) {
return java.util.Collections.unmodifiableList(innerErrors_);
} else {
return innerErrorsBuilder_.getMessageList();
}
}
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public int getInnerErrorsCount() {
if (innerErrorsBuilder_ == null) {
return innerErrors_.size();
} else {
return innerErrorsBuilder_.getCount();
}
}
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorV2 getInnerErrors(int index) {
if (innerErrorsBuilder_ == null) {
return innerErrors_.get(index);
} else {
return innerErrorsBuilder_.getMessage(index);
}
}
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public Builder setInnerErrors(
int index, com.truward.brikar.error.model.ErrorModel.ErrorV2 value) {
if (innerErrorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInnerErrorsIsMutable();
innerErrors_.set(index, value);
onChanged();
} else {
innerErrorsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public Builder setInnerErrors(
int index, com.truward.brikar.error.model.ErrorModel.ErrorV2.Builder builderForValue) {
if (innerErrorsBuilder_ == null) {
ensureInnerErrorsIsMutable();
innerErrors_.set(index, builderForValue.build());
onChanged();
} else {
innerErrorsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public Builder addInnerErrors(com.truward.brikar.error.model.ErrorModel.ErrorV2 value) {
if (innerErrorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInnerErrorsIsMutable();
innerErrors_.add(value);
onChanged();
} else {
innerErrorsBuilder_.addMessage(value);
}
return this;
}
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public Builder addInnerErrors(
int index, com.truward.brikar.error.model.ErrorModel.ErrorV2 value) {
if (innerErrorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInnerErrorsIsMutable();
innerErrors_.add(index, value);
onChanged();
} else {
innerErrorsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public Builder addInnerErrors(
com.truward.brikar.error.model.ErrorModel.ErrorV2.Builder builderForValue) {
if (innerErrorsBuilder_ == null) {
ensureInnerErrorsIsMutable();
innerErrors_.add(builderForValue.build());
onChanged();
} else {
innerErrorsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public Builder addInnerErrors(
int index, com.truward.brikar.error.model.ErrorModel.ErrorV2.Builder builderForValue) {
if (innerErrorsBuilder_ == null) {
ensureInnerErrorsIsMutable();
innerErrors_.add(index, builderForValue.build());
onChanged();
} else {
innerErrorsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public Builder addAllInnerErrors(
java.lang.Iterable extends com.truward.brikar.error.model.ErrorModel.ErrorV2> values) {
if (innerErrorsBuilder_ == null) {
ensureInnerErrorsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, innerErrors_);
onChanged();
} else {
innerErrorsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public Builder clearInnerErrors() {
if (innerErrorsBuilder_ == null) {
innerErrors_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
innerErrorsBuilder_.clear();
}
return this;
}
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public Builder removeInnerErrors(int index) {
if (innerErrorsBuilder_ == null) {
ensureInnerErrorsIsMutable();
innerErrors_.remove(index);
onChanged();
} else {
innerErrorsBuilder_.remove(index);
}
return this;
}
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorV2.Builder getInnerErrorsBuilder(
int index) {
return getInnerErrorsFieldBuilder().getBuilder(index);
}
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorV2OrBuilder getInnerErrorsOrBuilder(
int index) {
if (innerErrorsBuilder_ == null) {
return innerErrors_.get(index); } else {
return innerErrorsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public java.util.List extends com.truward.brikar.error.model.ErrorModel.ErrorV2OrBuilder>
getInnerErrorsOrBuilderList() {
if (innerErrorsBuilder_ != null) {
return innerErrorsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(innerErrors_);
}
}
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorV2.Builder addInnerErrorsBuilder() {
return getInnerErrorsFieldBuilder().addBuilder(
com.truward.brikar.error.model.ErrorModel.ErrorV2.getDefaultInstance());
}
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorV2.Builder addInnerErrorsBuilder(
int index) {
return getInnerErrorsFieldBuilder().addBuilder(
index, com.truward.brikar.error.model.ErrorModel.ErrorV2.getDefaultInstance());
}
/**
*
* array of specific details that led to this error
*
*
* repeated .truward.brikar.error.model.ErrorV2 innerErrors = 3;
*/
public java.util.List
getInnerErrorsBuilderList() {
return getInnerErrorsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.truward.brikar.error.model.ErrorModel.ErrorV2, com.truward.brikar.error.model.ErrorModel.ErrorV2.Builder, com.truward.brikar.error.model.ErrorModel.ErrorV2OrBuilder>
getInnerErrorsFieldBuilder() {
if (innerErrorsBuilder_ == null) {
innerErrorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.truward.brikar.error.model.ErrorModel.ErrorV2, com.truward.brikar.error.model.ErrorModel.ErrorV2.Builder, com.truward.brikar.error.model.ErrorModel.ErrorV2OrBuilder>(
innerErrors_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
innerErrors_ = null;
}
return innerErrorsBuilder_;
}
private java.util.List parameters_ =
java.util.Collections.emptyList();
private void ensureParametersIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
parameters_ = new java.util.ArrayList(parameters_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.truward.brikar.error.model.ErrorModel.ErrorParameterV2, com.truward.brikar.error.model.ErrorModel.ErrorParameterV2.Builder, com.truward.brikar.error.model.ErrorModel.ErrorParameterV2OrBuilder> parametersBuilder_;
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public java.util.List getParametersList() {
if (parametersBuilder_ == null) {
return java.util.Collections.unmodifiableList(parameters_);
} else {
return parametersBuilder_.getMessageList();
}
}
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public int getParametersCount() {
if (parametersBuilder_ == null) {
return parameters_.size();
} else {
return parametersBuilder_.getCount();
}
}
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 getParameters(int index) {
if (parametersBuilder_ == null) {
return parameters_.get(index);
} else {
return parametersBuilder_.getMessage(index);
}
}
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public Builder setParameters(
int index, com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 value) {
if (parametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParametersIsMutable();
parameters_.set(index, value);
onChanged();
} else {
parametersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public Builder setParameters(
int index, com.truward.brikar.error.model.ErrorModel.ErrorParameterV2.Builder builderForValue) {
if (parametersBuilder_ == null) {
ensureParametersIsMutable();
parameters_.set(index, builderForValue.build());
onChanged();
} else {
parametersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public Builder addParameters(com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 value) {
if (parametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParametersIsMutable();
parameters_.add(value);
onChanged();
} else {
parametersBuilder_.addMessage(value);
}
return this;
}
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public Builder addParameters(
int index, com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 value) {
if (parametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParametersIsMutable();
parameters_.add(index, value);
onChanged();
} else {
parametersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public Builder addParameters(
com.truward.brikar.error.model.ErrorModel.ErrorParameterV2.Builder builderForValue) {
if (parametersBuilder_ == null) {
ensureParametersIsMutable();
parameters_.add(builderForValue.build());
onChanged();
} else {
parametersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public Builder addParameters(
int index, com.truward.brikar.error.model.ErrorModel.ErrorParameterV2.Builder builderForValue) {
if (parametersBuilder_ == null) {
ensureParametersIsMutable();
parameters_.add(index, builderForValue.build());
onChanged();
} else {
parametersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public Builder addAllParameters(
java.lang.Iterable extends com.truward.brikar.error.model.ErrorModel.ErrorParameterV2> values) {
if (parametersBuilder_ == null) {
ensureParametersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, parameters_);
onChanged();
} else {
parametersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public Builder clearParameters() {
if (parametersBuilder_ == null) {
parameters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
parametersBuilder_.clear();
}
return this;
}
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public Builder removeParameters(int index) {
if (parametersBuilder_ == null) {
ensureParametersIsMutable();
parameters_.remove(index);
onChanged();
} else {
parametersBuilder_.remove(index);
}
return this;
}
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorParameterV2.Builder getParametersBuilder(
int index) {
return getParametersFieldBuilder().getBuilder(index);
}
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorParameterV2OrBuilder getParametersOrBuilder(
int index) {
if (parametersBuilder_ == null) {
return parameters_.get(index); } else {
return parametersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public java.util.List extends com.truward.brikar.error.model.ErrorModel.ErrorParameterV2OrBuilder>
getParametersOrBuilderList() {
if (parametersBuilder_ != null) {
return parametersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(parameters_);
}
}
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorParameterV2.Builder addParametersBuilder() {
return getParametersFieldBuilder().addBuilder(
com.truward.brikar.error.model.ErrorModel.ErrorParameterV2.getDefaultInstance());
}
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorParameterV2.Builder addParametersBuilder(
int index) {
return getParametersFieldBuilder().addBuilder(
index, com.truward.brikar.error.model.ErrorModel.ErrorParameterV2.getDefaultInstance());
}
/**
*
* list of error parameter
*
*
* repeated .truward.brikar.error.model.ErrorParameterV2 parameters = 4;
*/
public java.util.List
getParametersBuilderList() {
return getParametersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.truward.brikar.error.model.ErrorModel.ErrorParameterV2, com.truward.brikar.error.model.ErrorModel.ErrorParameterV2.Builder, com.truward.brikar.error.model.ErrorModel.ErrorParameterV2OrBuilder>
getParametersFieldBuilder() {
if (parametersBuilder_ == null) {
parametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.truward.brikar.error.model.ErrorModel.ErrorParameterV2, com.truward.brikar.error.model.ErrorModel.ErrorParameterV2.Builder, com.truward.brikar.error.model.ErrorModel.ErrorParameterV2OrBuilder>(
parameters_,
((bitField0_ & 0x00000010) == 0x00000010),
getParentForChildren(),
isClean());
parameters_ = null;
}
return parametersBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.brikar.error.model.ErrorV2)
}
// @@protoc_insertion_point(class_scope:truward.brikar.error.model.ErrorV2)
private static final com.truward.brikar.error.model.ErrorModel.ErrorV2 DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.brikar.error.model.ErrorModel.ErrorV2();
}
public static com.truward.brikar.error.model.ErrorModel.ErrorV2 getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ErrorV2 parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ErrorV2(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.brikar.error.model.ErrorModel.ErrorV2 getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ErrorParameterV2OrBuilder extends
// @@protoc_insertion_point(interface_extends:truward.brikar.error.model.ErrorParameterV2)
com.google.protobuf.MessageOrBuilder {
/**
* string key = 1;
*/
java.lang.String getKey();
/**
* string key = 1;
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
* .truward.brikar.error.model.ErrorValueV2 value = 2;
*/
boolean hasValue();
/**
* .truward.brikar.error.model.ErrorValueV2 value = 2;
*/
com.truward.brikar.error.model.ErrorModel.ErrorValueV2 getValue();
/**
* .truward.brikar.error.model.ErrorValueV2 value = 2;
*/
com.truward.brikar.error.model.ErrorModel.ErrorValueV2OrBuilder getValueOrBuilder();
}
/**
* Protobuf type {@code truward.brikar.error.model.ErrorParameterV2}
*/
public static final class ErrorParameterV2 extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:truward.brikar.error.model.ErrorParameterV2)
ErrorParameterV2OrBuilder {
// Use ErrorParameterV2.newBuilder() to construct.
private ErrorParameterV2(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ErrorParameterV2() {
key_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ErrorParameterV2(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
key_ = s;
break;
}
case 18: {
com.truward.brikar.error.model.ErrorModel.ErrorValueV2.Builder subBuilder = null;
if (value_ != null) {
subBuilder = value_.toBuilder();
}
value_ = input.readMessage(com.truward.brikar.error.model.ErrorModel.ErrorValueV2.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(value_);
value_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.truward.brikar.error.model.ErrorModel.internal_static_truward_brikar_error_model_ErrorParameterV2_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.truward.brikar.error.model.ErrorModel.internal_static_truward_brikar_error_model_ErrorParameterV2_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.truward.brikar.error.model.ErrorModel.ErrorParameterV2.class, com.truward.brikar.error.model.ErrorModel.ErrorParameterV2.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
private volatile java.lang.Object key_;
/**
* string key = 1;
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
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();
key_ = s;
return s;
}
}
/**
* string key = 1;
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private com.truward.brikar.error.model.ErrorModel.ErrorValueV2 value_;
/**
* .truward.brikar.error.model.ErrorValueV2 value = 2;
*/
public boolean hasValue() {
return value_ != null;
}
/**
* .truward.brikar.error.model.ErrorValueV2 value = 2;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorValueV2 getValue() {
return value_ == null ? com.truward.brikar.error.model.ErrorModel.ErrorValueV2.getDefaultInstance() : value_;
}
/**
* .truward.brikar.error.model.ErrorValueV2 value = 2;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorValueV2OrBuilder getValueOrBuilder() {
return getValue();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getKeyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (value_ != null) {
output.writeMessage(2, getValue());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getKeyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
}
if (value_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getValue());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.truward.brikar.error.model.ErrorModel.ErrorParameterV2)) {
return super.equals(obj);
}
com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 other = (com.truward.brikar.error.model.ErrorModel.ErrorParameterV2) obj;
boolean result = true;
result = result && getKey()
.equals(other.getKey());
result = result && (hasValue() == other.hasValue());
if (hasValue()) {
result = result && getValue()
.equals(other.getValue());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 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.truward.brikar.error.model.ErrorModel.ErrorParameterV2 parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 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.truward.brikar.error.model.ErrorModel.ErrorParameterV2 parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 truward.brikar.error.model.ErrorParameterV2}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:truward.brikar.error.model.ErrorParameterV2)
com.truward.brikar.error.model.ErrorModel.ErrorParameterV2OrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.truward.brikar.error.model.ErrorModel.internal_static_truward_brikar_error_model_ErrorParameterV2_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.truward.brikar.error.model.ErrorModel.internal_static_truward_brikar_error_model_ErrorParameterV2_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.truward.brikar.error.model.ErrorModel.ErrorParameterV2.class, com.truward.brikar.error.model.ErrorModel.ErrorParameterV2.Builder.class);
}
// Construct using com.truward.brikar.error.model.ErrorModel.ErrorParameterV2.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
key_ = "";
if (valueBuilder_ == null) {
value_ = null;
} else {
value_ = null;
valueBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.truward.brikar.error.model.ErrorModel.internal_static_truward_brikar_error_model_ErrorParameterV2_descriptor;
}
public com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 getDefaultInstanceForType() {
return com.truward.brikar.error.model.ErrorModel.ErrorParameterV2.getDefaultInstance();
}
public com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 build() {
com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 buildPartial() {
com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 result = new com.truward.brikar.error.model.ErrorModel.ErrorParameterV2(this);
result.key_ = key_;
if (valueBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = valueBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.truward.brikar.error.model.ErrorModel.ErrorParameterV2) {
return mergeFrom((com.truward.brikar.error.model.ErrorModel.ErrorParameterV2)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 other) {
if (other == com.truward.brikar.error.model.ErrorModel.ErrorParameterV2.getDefaultInstance()) return this;
if (!other.getKey().isEmpty()) {
key_ = other.key_;
onChanged();
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.truward.brikar.error.model.ErrorModel.ErrorParameterV2) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object key_ = "";
/**
* string key = 1;
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string key = 1;
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string key = 1;
*/
public Builder setKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
* string key = 1;
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
* string key = 1;
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
key_ = value;
onChanged();
return this;
}
private com.truward.brikar.error.model.ErrorModel.ErrorValueV2 value_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.truward.brikar.error.model.ErrorModel.ErrorValueV2, com.truward.brikar.error.model.ErrorModel.ErrorValueV2.Builder, com.truward.brikar.error.model.ErrorModel.ErrorValueV2OrBuilder> valueBuilder_;
/**
* .truward.brikar.error.model.ErrorValueV2 value = 2;
*/
public boolean hasValue() {
return valueBuilder_ != null || value_ != null;
}
/**
* .truward.brikar.error.model.ErrorValueV2 value = 2;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorValueV2 getValue() {
if (valueBuilder_ == null) {
return value_ == null ? com.truward.brikar.error.model.ErrorModel.ErrorValueV2.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* .truward.brikar.error.model.ErrorValueV2 value = 2;
*/
public Builder setValue(com.truward.brikar.error.model.ErrorModel.ErrorValueV2 value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
valueBuilder_.setMessage(value);
}
return this;
}
/**
* .truward.brikar.error.model.ErrorValueV2 value = 2;
*/
public Builder setValue(
com.truward.brikar.error.model.ErrorModel.ErrorValueV2.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .truward.brikar.error.model.ErrorValueV2 value = 2;
*/
public Builder mergeValue(com.truward.brikar.error.model.ErrorModel.ErrorValueV2 value) {
if (valueBuilder_ == null) {
if (value_ != null) {
value_ =
com.truward.brikar.error.model.ErrorModel.ErrorValueV2.newBuilder(value_).mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
valueBuilder_.mergeFrom(value);
}
return this;
}
/**
* .truward.brikar.error.model.ErrorValueV2 value = 2;
*/
public Builder clearValue() {
if (valueBuilder_ == null) {
value_ = null;
onChanged();
} else {
value_ = null;
valueBuilder_ = null;
}
return this;
}
/**
* .truward.brikar.error.model.ErrorValueV2 value = 2;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorValueV2.Builder getValueBuilder() {
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* .truward.brikar.error.model.ErrorValueV2 value = 2;
*/
public com.truward.brikar.error.model.ErrorModel.ErrorValueV2OrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
com.truward.brikar.error.model.ErrorModel.ErrorValueV2.getDefaultInstance() : value_;
}
}
/**
* .truward.brikar.error.model.ErrorValueV2 value = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.truward.brikar.error.model.ErrorModel.ErrorValueV2, com.truward.brikar.error.model.ErrorModel.ErrorValueV2.Builder, com.truward.brikar.error.model.ErrorModel.ErrorValueV2OrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.truward.brikar.error.model.ErrorModel.ErrorValueV2, com.truward.brikar.error.model.ErrorModel.ErrorValueV2.Builder, com.truward.brikar.error.model.ErrorModel.ErrorValueV2OrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:truward.brikar.error.model.ErrorParameterV2)
}
// @@protoc_insertion_point(class_scope:truward.brikar.error.model.ErrorParameterV2)
private static final com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.truward.brikar.error.model.ErrorModel.ErrorParameterV2();
}
public static com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ErrorParameterV2 parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ErrorParameterV2(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.truward.brikar.error.model.ErrorModel.ErrorParameterV2 getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_truward_brikar_error_model_ErrorResponseV2_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_truward_brikar_error_model_ErrorResponseV2_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_truward_brikar_error_model_ErrorValueV2_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_truward_brikar_error_model_ErrorValueV2_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_truward_brikar_error_model_ErrorV2_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_truward_brikar_error_model_ErrorV2_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_truward_brikar_error_model_ErrorParameterV2_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_truward_brikar_error_model_ErrorParameterV2_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\021error-model.proto\022\032truward.brikar.erro" +
"r.model\"E\n\017ErrorResponseV2\0222\n\005error\030\001 \001(" +
"\0132#.truward.brikar.error.model.ErrorV2\"l" +
"\n\014ErrorValueV2\022\022\n\nbytesValue\030\001 \001(\014\022\020\n\010st" +
"rValue\030\002 \001(\t\022\020\n\010intValue\030\003 \001(\005\022\021\n\tlongVa" +
"lue\030\004 \001(\003\022\021\n\tboolValue\030\005 \001(\010\"\264\001\n\007ErrorV2" +
"\022\014\n\004code\030\001 \001(\t\022\017\n\007message\030\002 \001(\t\022\016\n\006sourc" +
"e\030\005 \001(\t\0228\n\013innerErrors\030\003 \003(\0132#.truward.b" +
"rikar.error.model.ErrorV2\022@\n\nparameters\030" +
"\004 \003(\0132,.truward.brikar.error.model.Error",
"ParameterV2\"X\n\020ErrorParameterV2\022\013\n\003key\030\001" +
" \001(\t\0227\n\005value\030\002 \001(\0132(.truward.brikar.err" +
"or.model.ErrorValueV2B,\n\036com.truward.bri" +
"kar.error.modelB\nErrorModelb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_truward_brikar_error_model_ErrorResponseV2_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_truward_brikar_error_model_ErrorResponseV2_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_truward_brikar_error_model_ErrorResponseV2_descriptor,
new java.lang.String[] { "Error", });
internal_static_truward_brikar_error_model_ErrorValueV2_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_truward_brikar_error_model_ErrorValueV2_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_truward_brikar_error_model_ErrorValueV2_descriptor,
new java.lang.String[] { "BytesValue", "StrValue", "IntValue", "LongValue", "BoolValue", });
internal_static_truward_brikar_error_model_ErrorV2_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_truward_brikar_error_model_ErrorV2_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_truward_brikar_error_model_ErrorV2_descriptor,
new java.lang.String[] { "Code", "Message", "Source", "InnerErrors", "Parameters", });
internal_static_truward_brikar_error_model_ErrorParameterV2_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_truward_brikar_error_model_ErrorParameterV2_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_truward_brikar_error_model_ErrorParameterV2_descriptor,
new java.lang.String[] { "Key", "Value", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy