// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: src/main/resources/META-INF/failure.proto
package org.deephacks.westty.protobuf;
public final class FailureMessages {
private FailureMessages() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface FailureOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional uint32 protoType = 1000;
boolean hasProtoType();
int getProtoType();
// required string msg = 1;
boolean hasMsg();
String getMsg();
// required uint32 code = 2;
boolean hasCode();
int getCode();
}
public static final class Failure extends
com.google.protobuf.GeneratedMessage
implements FailureOrBuilder {
// Use Failure.newBuilder() to construct.
private Failure(Builder builder) {
super(builder);
}
private Failure(boolean noInit) {}
private static final Failure defaultInstance;
public static Failure getDefaultInstance() {
return defaultInstance;
}
public Failure getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.deephacks.westty.protobuf.FailureMessages.internal_static_example_Failure_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.deephacks.westty.protobuf.FailureMessages.internal_static_example_Failure_fieldAccessorTable;
}
private int bitField0_;
// optional uint32 protoType = 1000;
public static final int PROTOTYPE_FIELD_NUMBER = 1000;
private int protoType_;
public boolean hasProtoType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public int getProtoType() {
return protoType_;
}
// required string msg = 1;
public static final int MSG_FIELD_NUMBER = 1;
private java.lang.Object msg_;
public boolean hasMsg() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public String getMsg() {
java.lang.Object ref = msg_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (com.google.protobuf.Internal.isValidUtf8(bs)) {
msg_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getMsgBytes() {
java.lang.Object ref = msg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
msg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required uint32 code = 2;
public static final int CODE_FIELD_NUMBER = 2;
private int code_;
public boolean hasCode() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public int getCode() {
return code_;
}
private void initFields() {
protoType_ = 0;
msg_ = "";
code_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasMsg()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasCode()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(1, getMsgBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(2, code_);
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt32(1000, protoType_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getMsgBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, code_);
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1000, protoType_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.deephacks.westty.protobuf.FailureMessages.Failure parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static org.deephacks.westty.protobuf.FailureMessages.Failure parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static org.deephacks.westty.protobuf.FailureMessages.Failure parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static org.deephacks.westty.protobuf.FailureMessages.Failure parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static org.deephacks.westty.protobuf.FailureMessages.Failure parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static org.deephacks.westty.protobuf.FailureMessages.Failure parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static org.deephacks.westty.protobuf.FailureMessages.Failure parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static org.deephacks.westty.protobuf.FailureMessages.Failure parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static org.deephacks.westty.protobuf.FailureMessages.Failure parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static org.deephacks.westty.protobuf.FailureMessages.Failure parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.deephacks.westty.protobuf.FailureMessages.Failure prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.deephacks.westty.protobuf.FailureMessages.FailureOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.deephacks.westty.protobuf.FailureMessages.internal_static_example_Failure_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.deephacks.westty.protobuf.FailureMessages.internal_static_example_Failure_fieldAccessorTable;
}
// Construct using org.deephacks.westty.protobuf.FailureMessages.Failure.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
protoType_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
msg_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
code_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.deephacks.westty.protobuf.FailureMessages.Failure.getDescriptor();
}
public org.deephacks.westty.protobuf.FailureMessages.Failure getDefaultInstanceForType() {
return org.deephacks.westty.protobuf.FailureMessages.Failure.getDefaultInstance();
}
public org.deephacks.westty.protobuf.FailureMessages.Failure build() {
org.deephacks.westty.protobuf.FailureMessages.Failure result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private org.deephacks.westty.protobuf.FailureMessages.Failure buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
org.deephacks.westty.protobuf.FailureMessages.Failure result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return result;
}
public org.deephacks.westty.protobuf.FailureMessages.Failure buildPartial() {
org.deephacks.westty.protobuf.FailureMessages.Failure result = new org.deephacks.westty.protobuf.FailureMessages.Failure(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.protoType_ = protoType_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.msg_ = msg_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.code_ = code_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.deephacks.westty.protobuf.FailureMessages.Failure) {
return mergeFrom((org.deephacks.westty.protobuf.FailureMessages.Failure)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.deephacks.westty.protobuf.FailureMessages.Failure other) {
if (other == org.deephacks.westty.protobuf.FailureMessages.Failure.getDefaultInstance()) return this;
if (other.hasProtoType()) {
setProtoType(other.getProtoType());
}
if (other.hasMsg()) {
setMsg(other.getMsg());
}
if (other.hasCode()) {
setCode(other.getCode());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasMsg()) {
return false;
}
if (!hasCode()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder(
this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
bitField0_ |= 0x00000002;
msg_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000004;
code_ = input.readUInt32();
break;
}
case 8000: {
bitField0_ |= 0x00000001;
protoType_ = input.readUInt32();
break;
}
}
}
}
private int bitField0_;
// optional uint32 protoType = 1000;
private int protoType_ ;
public boolean hasProtoType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public int getProtoType() {
return protoType_;
}
public Builder setProtoType(int value) {
bitField0_ |= 0x00000001;
protoType_ = value;
onChanged();
return this;
}
public Builder clearProtoType() {
bitField0_ = (bitField0_ & ~0x00000001);
protoType_ = 0;
onChanged();
return this;
}
// required string msg = 1;
private java.lang.Object msg_ = "";
public boolean hasMsg() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public String getMsg() {
java.lang.Object ref = msg_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
msg_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setMsg(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
msg_ = value;
onChanged();
return this;
}
public Builder clearMsg() {
bitField0_ = (bitField0_ & ~0x00000002);
msg_ = getDefaultInstance().getMsg();
onChanged();
return this;
}
void setMsg(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000002;
msg_ = value;
onChanged();
}
// required uint32 code = 2;
private int code_ ;
public boolean hasCode() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public int getCode() {
return code_;
}
public Builder setCode(int value) {
bitField0_ |= 0x00000004;
code_ = value;
onChanged();
return this;
}
public Builder clearCode() {
bitField0_ = (bitField0_ & ~0x00000004);
code_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:example.Failure)
}
static {
defaultInstance = new Failure(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:example.Failure)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_example_Failure_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_example_Failure_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)src/main/resources/META-INF/failure.pr" +
"oto\022\007example\"8\n\007Failure\022\022\n\tprotoType\030\350\007 " +
"\001(\r\022\013\n\003msg\030\001 \002(\t\022\014\n\004code\030\002 \002(\rB0\n\035org.de" +
"ephacks.westty.protobufB\017FailureMessages"
};
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;
internal_static_example_Failure_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_example_Failure_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_example_Failure_descriptor,
new java.lang.String[] { "ProtoType", "Msg", "Code", },
org.deephacks.westty.protobuf.FailureMessages.Failure.class,
org.deephacks.westty.protobuf.FailureMessages.Failure.Builder.class);
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}