/akka-amqp/src/main/java/akka/amqp/AkkaAmqp.java
https://github.com/apeshimam/akka-modules · Java · 340 lines · 295 code · 36 blank · 9 comment · 26 complexity · 1c4fc48775ffc04499a03d9056b88d2a MD5 · raw file
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: akka-amqp.proto
- package akka.amqp;
- public final class AkkaAmqp {
- private AkkaAmqp() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- }
- public static final class TestMessage extends
- com.google.protobuf.GeneratedMessage {
- // Use TestMessage.newBuilder() to construct.
- private TestMessage() {
- initFields();
- }
- private TestMessage(boolean noInit) {}
-
- private static final TestMessage defaultInstance;
- public static TestMessage getDefaultInstance() {
- return defaultInstance;
- }
-
- public TestMessage getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return akka.amqp.AkkaAmqp.internal_static_TestMessage_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return akka.amqp.AkkaAmqp.internal_static_TestMessage_fieldAccessorTable;
- }
-
- // optional string message = 1;
- public static final int MESSAGE_FIELD_NUMBER = 1;
- private boolean hasMessage;
- private java.lang.String message_ = "";
- public boolean hasMessage() { return hasMessage; }
- public java.lang.String getMessage() { return message_; }
-
- private void initFields() {
- }
- public final boolean isInitialized() {
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (hasMessage()) {
- output.writeString(1, getMessage());
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasMessage()) {
- size += com.google.protobuf.CodedOutputStream
- .computeStringSize(1, getMessage());
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- public static akka.amqp.AkkaAmqp.TestMessage parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static akka.amqp.AkkaAmqp.TestMessage parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static akka.amqp.AkkaAmqp.TestMessage parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static akka.amqp.AkkaAmqp.TestMessage parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static akka.amqp.AkkaAmqp.TestMessage parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static akka.amqp.AkkaAmqp.TestMessage parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static akka.amqp.AkkaAmqp.TestMessage parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static akka.amqp.AkkaAmqp.TestMessage 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 akka.amqp.AkkaAmqp.TestMessage parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static akka.amqp.AkkaAmqp.TestMessage 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(akka.amqp.AkkaAmqp.TestMessage prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
-
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> {
- private akka.amqp.AkkaAmqp.TestMessage result;
-
- // Construct using akka.amqp.AkkaAmqp.TestMessage.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new akka.amqp.AkkaAmqp.TestMessage();
- return builder;
- }
-
- protected akka.amqp.AkkaAmqp.TestMessage internalGetResult() {
- return result;
- }
-
- public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
- }
- result = new akka.amqp.AkkaAmqp.TestMessage();
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(result);
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return akka.amqp.AkkaAmqp.TestMessage.getDescriptor();
- }
-
- public akka.amqp.AkkaAmqp.TestMessage getDefaultInstanceForType() {
- return akka.amqp.AkkaAmqp.TestMessage.getDefaultInstance();
- }
-
- public boolean isInitialized() {
- return result.isInitialized();
- }
- public akka.amqp.AkkaAmqp.TestMessage build() {
- if (result != null && !isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return buildPartial();
- }
-
- private akka.amqp.AkkaAmqp.TestMessage buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return buildPartial();
- }
-
- public akka.amqp.AkkaAmqp.TestMessage buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
- }
- akka.amqp.AkkaAmqp.TestMessage returnMe = result;
- result = null;
- return returnMe;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof akka.amqp.AkkaAmqp.TestMessage) {
- return mergeFrom((akka.amqp.AkkaAmqp.TestMessage)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(akka.amqp.AkkaAmqp.TestMessage other) {
- if (other == akka.amqp.AkkaAmqp.TestMessage.getDefaultInstance()) return this;
- if (other.hasMessage()) {
- setMessage(other.getMessage());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- 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());
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- return this;
- }
- break;
- }
- case 10: {
- setMessage(input.readString());
- break;
- }
- }
- }
- }
-
-
- // optional string message = 1;
- public boolean hasMessage() {
- return result.hasMessage();
- }
- public java.lang.String getMessage() {
- return result.getMessage();
- }
- public Builder setMessage(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.hasMessage = true;
- result.message_ = value;
- return this;
- }
- public Builder clearMessage() {
- result.hasMessage = false;
- result.message_ = getDefaultInstance().getMessage();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:TestMessage)
- }
-
- static {
- defaultInstance = new TestMessage(true);
- akka.amqp.AkkaAmqp.internalForceInit();
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:TestMessage)
- }
-
- private static com.google.protobuf.Descriptors.Descriptor
- internal_static_TestMessage_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_TestMessage_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\017akka-amqp.proto\"\036\n\013TestMessage\022\017\n\007mess" +
- "age\030\001 \001(\tB\013\n\takka.amqp"
- };
- 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_TestMessage_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_TestMessage_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_TestMessage_descriptor,
- new java.lang.String[] { "Message", },
- akka.amqp.AkkaAmqp.TestMessage.class,
- akka.amqp.AkkaAmqp.TestMessage.Builder.class);
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- }, assigner);
- }
-
- public static void internalForceInit() {}
-
- // @@protoc_insertion_point(outer_class_scope)
- }