All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.cmu.cs.gabriel.protocol.Protos Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: gabriel.proto

package edu.cmu.cs.gabriel.protocol;

public final class Protos {
  private Protos() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }
  /**
   * Protobuf enum {@code gabriel.PayloadType}
   */
  public enum PayloadType
      implements com.google.protobuf.Internal.EnumLite {
    /**
     * IMAGE = 0;
     */
    IMAGE(0),
    /**
     * VIDEO = 1;
     */
    VIDEO(1),
    /**
     * AUDIO = 2;
     */
    AUDIO(2),
    /**
     * IMU = 3;
     */
    IMU(3),
    /**
     * TEXT = 4;
     */
    TEXT(4),
    /**
     * ANIMATION = 5;
     */
    ANIMATION(5),
    /**
     * OTHER = 6;
     */
    OTHER(6),
    UNRECOGNIZED(-1),
    ;

    /**
     * IMAGE = 0;
     */
    public static final int IMAGE_VALUE = 0;
    /**
     * VIDEO = 1;
     */
    public static final int VIDEO_VALUE = 1;
    /**
     * AUDIO = 2;
     */
    public static final int AUDIO_VALUE = 2;
    /**
     * IMU = 3;
     */
    public static final int IMU_VALUE = 3;
    /**
     * TEXT = 4;
     */
    public static final int TEXT_VALUE = 4;
    /**
     * ANIMATION = 5;
     */
    public static final int ANIMATION_VALUE = 5;
    /**
     * OTHER = 6;
     */
    public static final int OTHER_VALUE = 6;


    public final int getNumber() {
      return value;
    }

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static PayloadType valueOf(int value) {
      return forNumber(value);
    }

    public static PayloadType forNumber(int value) {
      switch (value) {
        case 0: return IMAGE;
        case 1: return VIDEO;
        case 2: return AUDIO;
        case 3: return IMU;
        case 4: return TEXT;
        case 5: return ANIMATION;
        case 6: return OTHER;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        PayloadType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public PayloadType findValueByNumber(int number) {
              return PayloadType.forNumber(number);
            }
          };

    private final int value;

    private PayloadType(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:gabriel.PayloadType)
  }

  public interface InputFrameOrBuilder extends
      // @@protoc_insertion_point(interface_extends:gabriel.InputFrame)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * optional .gabriel.PayloadType payload_type = 1;
     */
    int getPayloadTypeValue();
    /**
     * optional .gabriel.PayloadType payload_type = 1;
     */
    edu.cmu.cs.gabriel.protocol.Protos.PayloadType getPayloadType();

    /**
     * repeated bytes payloads = 2;
     */
    java.util.List getPayloadsList();
    /**
     * repeated bytes payloads = 2;
     */
    int getPayloadsCount();
    /**
     * repeated bytes payloads = 2;
     */
    com.google.protobuf.ByteString getPayloads(int index);

    /**
     * 
     * Optional additional fields
     * 
* * optional .google.protobuf.Any extras = 3; */ boolean hasExtras(); /** *
     * Optional additional fields
     * 
* * optional .google.protobuf.Any extras = 3; */ com.google.protobuf.Any getExtras(); } /** * Protobuf type {@code gabriel.InputFrame} */ public static final class InputFrame extends com.google.protobuf.GeneratedMessageLite< InputFrame, InputFrame.Builder> implements // @@protoc_insertion_point(message_implements:gabriel.InputFrame) InputFrameOrBuilder { private InputFrame() { payloads_ = emptyProtobufList(); } private int bitField0_; public static final int PAYLOAD_TYPE_FIELD_NUMBER = 1; private int payloadType_; /** * optional .gabriel.PayloadType payload_type = 1; */ public int getPayloadTypeValue() { return payloadType_; } /** * optional .gabriel.PayloadType payload_type = 1; */ public edu.cmu.cs.gabriel.protocol.Protos.PayloadType getPayloadType() { edu.cmu.cs.gabriel.protocol.Protos.PayloadType result = edu.cmu.cs.gabriel.protocol.Protos.PayloadType.forNumber(payloadType_); return result == null ? edu.cmu.cs.gabriel.protocol.Protos.PayloadType.UNRECOGNIZED : result; } /** * optional .gabriel.PayloadType payload_type = 1; */ private void setPayloadTypeValue(int value) { payloadType_ = value; } /** * optional .gabriel.PayloadType payload_type = 1; */ private void setPayloadType(edu.cmu.cs.gabriel.protocol.Protos.PayloadType value) { if (value == null) { throw new NullPointerException(); } payloadType_ = value.getNumber(); } /** * optional .gabriel.PayloadType payload_type = 1; */ private void clearPayloadType() { payloadType_ = 0; } public static final int PAYLOADS_FIELD_NUMBER = 2; private com.google.protobuf.Internal.ProtobufList payloads_; /** * repeated bytes payloads = 2; */ public java.util.List getPayloadsList() { return payloads_; } /** * repeated bytes payloads = 2; */ public int getPayloadsCount() { return payloads_.size(); } /** * repeated bytes payloads = 2; */ public com.google.protobuf.ByteString getPayloads(int index) { return payloads_.get(index); } private void ensurePayloadsIsMutable() { if (!payloads_.isModifiable()) { payloads_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(payloads_); } } /** * repeated bytes payloads = 2; */ private void setPayloads( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensurePayloadsIsMutable(); payloads_.set(index, value); } /** * repeated bytes payloads = 2; */ private void addPayloads(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensurePayloadsIsMutable(); payloads_.add(value); } /** * repeated bytes payloads = 2; */ private void addAllPayloads( java.lang.Iterable values) { ensurePayloadsIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, payloads_); } /** * repeated bytes payloads = 2; */ private void clearPayloads() { payloads_ = emptyProtobufList(); } public static final int EXTRAS_FIELD_NUMBER = 3; private com.google.protobuf.Any extras_; /** *
     * Optional additional fields
     * 
* * optional .google.protobuf.Any extras = 3; */ public boolean hasExtras() { return extras_ != null; } /** *
     * Optional additional fields
     * 
* * optional .google.protobuf.Any extras = 3; */ public com.google.protobuf.Any getExtras() { return extras_ == null ? com.google.protobuf.Any.getDefaultInstance() : extras_; } /** *
     * Optional additional fields
     * 
* * optional .google.protobuf.Any extras = 3; */ private void setExtras(com.google.protobuf.Any value) { if (value == null) { throw new NullPointerException(); } extras_ = value; } /** *
     * Optional additional fields
     * 
* * optional .google.protobuf.Any extras = 3; */ private void setExtras( com.google.protobuf.Any.Builder builderForValue) { extras_ = builderForValue.build(); } /** *
     * Optional additional fields
     * 
* * optional .google.protobuf.Any extras = 3; */ private void mergeExtras(com.google.protobuf.Any value) { if (extras_ != null && extras_ != com.google.protobuf.Any.getDefaultInstance()) { extras_ = com.google.protobuf.Any.newBuilder(extras_).mergeFrom(value).buildPartial(); } else { extras_ = value; } } /** *
     * Optional additional fields
     * 
* * optional .google.protobuf.Any extras = 3; */ private void clearExtras() { extras_ = null; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (payloadType_ != edu.cmu.cs.gabriel.protocol.Protos.PayloadType.IMAGE.getNumber()) { output.writeEnum(1, payloadType_); } for (int i = 0; i < payloads_.size(); i++) { output.writeBytes(2, payloads_.get(i)); } if (extras_ != null) { output.writeMessage(3, getExtras()); } } public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (payloadType_ != edu.cmu.cs.gabriel.protocol.Protos.PayloadType.IMAGE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, payloadType_); } { int dataSize = 0; for (int i = 0; i < payloads_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(payloads_.get(i)); } size += dataSize; size += 1 * getPayloadsList().size(); } if (extras_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getExtras()); } memoizedSerializedSize = size; return size; } public static edu.cmu.cs.gabriel.protocol.Protos.InputFrame parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static edu.cmu.cs.gabriel.protocol.Protos.InputFrame parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.InputFrame parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static edu.cmu.cs.gabriel.protocol.Protos.InputFrame parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.InputFrame parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.InputFrame parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.InputFrame parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.InputFrame parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.InputFrame parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.InputFrame parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(edu.cmu.cs.gabriel.protocol.Protos.InputFrame prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** * Protobuf type {@code gabriel.InputFrame} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< edu.cmu.cs.gabriel.protocol.Protos.InputFrame, Builder> implements // @@protoc_insertion_point(builder_implements:gabriel.InputFrame) edu.cmu.cs.gabriel.protocol.Protos.InputFrameOrBuilder { // Construct using edu.cmu.cs.gabriel.protocol.Protos.InputFrame.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * optional .gabriel.PayloadType payload_type = 1; */ public int getPayloadTypeValue() { return instance.getPayloadTypeValue(); } /** * optional .gabriel.PayloadType payload_type = 1; */ public Builder setPayloadTypeValue(int value) { copyOnWrite(); instance.setPayloadTypeValue(value); return this; } /** * optional .gabriel.PayloadType payload_type = 1; */ public edu.cmu.cs.gabriel.protocol.Protos.PayloadType getPayloadType() { return instance.getPayloadType(); } /** * optional .gabriel.PayloadType payload_type = 1; */ public Builder setPayloadType(edu.cmu.cs.gabriel.protocol.Protos.PayloadType value) { copyOnWrite(); instance.setPayloadType(value); return this; } /** * optional .gabriel.PayloadType payload_type = 1; */ public Builder clearPayloadType() { copyOnWrite(); instance.clearPayloadType(); return this; } /** * repeated bytes payloads = 2; */ public java.util.List getPayloadsList() { return java.util.Collections.unmodifiableList( instance.getPayloadsList()); } /** * repeated bytes payloads = 2; */ public int getPayloadsCount() { return instance.getPayloadsCount(); } /** * repeated bytes payloads = 2; */ public com.google.protobuf.ByteString getPayloads(int index) { return instance.getPayloads(index); } /** * repeated bytes payloads = 2; */ public Builder setPayloads( int index, com.google.protobuf.ByteString value) { copyOnWrite(); instance.setPayloads(index, value); return this; } /** * repeated bytes payloads = 2; */ public Builder addPayloads(com.google.protobuf.ByteString value) { copyOnWrite(); instance.addPayloads(value); return this; } /** * repeated bytes payloads = 2; */ public Builder addAllPayloads( java.lang.Iterable values) { copyOnWrite(); instance.addAllPayloads(values); return this; } /** * repeated bytes payloads = 2; */ public Builder clearPayloads() { copyOnWrite(); instance.clearPayloads(); return this; } /** *
       * Optional additional fields
       * 
* * optional .google.protobuf.Any extras = 3; */ public boolean hasExtras() { return instance.hasExtras(); } /** *
       * Optional additional fields
       * 
* * optional .google.protobuf.Any extras = 3; */ public com.google.protobuf.Any getExtras() { return instance.getExtras(); } /** *
       * Optional additional fields
       * 
* * optional .google.protobuf.Any extras = 3; */ public Builder setExtras(com.google.protobuf.Any value) { copyOnWrite(); instance.setExtras(value); return this; } /** *
       * Optional additional fields
       * 
* * optional .google.protobuf.Any extras = 3; */ public Builder setExtras( com.google.protobuf.Any.Builder builderForValue) { copyOnWrite(); instance.setExtras(builderForValue); return this; } /** *
       * Optional additional fields
       * 
* * optional .google.protobuf.Any extras = 3; */ public Builder mergeExtras(com.google.protobuf.Any value) { copyOnWrite(); instance.mergeExtras(value); return this; } /** *
       * Optional additional fields
       * 
* * optional .google.protobuf.Any extras = 3; */ public Builder clearExtras() { copyOnWrite(); instance.clearExtras(); return this; } // @@protoc_insertion_point(builder_scope:gabriel.InputFrame) } protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new edu.cmu.cs.gabriel.protocol.Protos.InputFrame(); } case IS_INITIALIZED: { return DEFAULT_INSTANCE; } case MAKE_IMMUTABLE: { payloads_.makeImmutable(); return null; } case NEW_BUILDER: { return new Builder(); } case VISIT: { Visitor visitor = (Visitor) arg0; edu.cmu.cs.gabriel.protocol.Protos.InputFrame other = (edu.cmu.cs.gabriel.protocol.Protos.InputFrame) arg1; payloadType_ = visitor.visitInt(payloadType_ != 0, payloadType_, other.payloadType_ != 0, other.payloadType_); payloads_= visitor.visitList(payloads_, other.payloads_); extras_ = visitor.visitMessage(extras_, other.extras_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { bitField0_ |= other.bitField0_; } return this; } case MERGE_FROM_STREAM: { com.google.protobuf.CodedInputStream input = (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; 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 8: { int rawValue = input.readEnum(); payloadType_ = rawValue; break; } case 18: { if (!payloads_.isModifiable()) { payloads_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(payloads_); } payloads_.add(input.readBytes()); break; } case 26: { com.google.protobuf.Any.Builder subBuilder = null; if (extras_ != null) { subBuilder = extras_.toBuilder(); } extras_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(extras_); extras_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { } } case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { if (PARSER == null) { synchronized (edu.cmu.cs.gabriel.protocol.Protos.InputFrame.class) { if (PARSER == null) { PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); } } } return PARSER; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:gabriel.InputFrame) private static final edu.cmu.cs.gabriel.protocol.Protos.InputFrame DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new InputFrame(); DEFAULT_INSTANCE.makeImmutable(); } public static edu.cmu.cs.gabriel.protocol.Protos.InputFrame getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface FromClientOrBuilder extends // @@protoc_insertion_point(interface_extends:gabriel.FromClient) com.google.protobuf.MessageLiteOrBuilder { /** * optional int64 frame_id = 1; */ long getFrameId(); /** * optional string source_name = 2; */ java.lang.String getSourceName(); /** * optional string source_name = 2; */ com.google.protobuf.ByteString getSourceNameBytes(); /** * optional .gabriel.InputFrame input_frame = 3; */ boolean hasInputFrame(); /** * optional .gabriel.InputFrame input_frame = 3; */ edu.cmu.cs.gabriel.protocol.Protos.InputFrame getInputFrame(); } /** * Protobuf type {@code gabriel.FromClient} */ public static final class FromClient extends com.google.protobuf.GeneratedMessageLite< FromClient, FromClient.Builder> implements // @@protoc_insertion_point(message_implements:gabriel.FromClient) FromClientOrBuilder { private FromClient() { sourceName_ = ""; } public static final int FRAME_ID_FIELD_NUMBER = 1; private long frameId_; /** * optional int64 frame_id = 1; */ public long getFrameId() { return frameId_; } /** * optional int64 frame_id = 1; */ private void setFrameId(long value) { frameId_ = value; } /** * optional int64 frame_id = 1; */ private void clearFrameId() { frameId_ = 0L; } public static final int SOURCE_NAME_FIELD_NUMBER = 2; private java.lang.String sourceName_; /** * optional string source_name = 2; */ public java.lang.String getSourceName() { return sourceName_; } /** * optional string source_name = 2; */ public com.google.protobuf.ByteString getSourceNameBytes() { return com.google.protobuf.ByteString.copyFromUtf8(sourceName_); } /** * optional string source_name = 2; */ private void setSourceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sourceName_ = value; } /** * optional string source_name = 2; */ private void clearSourceName() { sourceName_ = getDefaultInstance().getSourceName(); } /** * optional string source_name = 2; */ private void setSourceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceName_ = value.toStringUtf8(); } public static final int INPUT_FRAME_FIELD_NUMBER = 3; private edu.cmu.cs.gabriel.protocol.Protos.InputFrame inputFrame_; /** * optional .gabriel.InputFrame input_frame = 3; */ public boolean hasInputFrame() { return inputFrame_ != null; } /** * optional .gabriel.InputFrame input_frame = 3; */ public edu.cmu.cs.gabriel.protocol.Protos.InputFrame getInputFrame() { return inputFrame_ == null ? edu.cmu.cs.gabriel.protocol.Protos.InputFrame.getDefaultInstance() : inputFrame_; } /** * optional .gabriel.InputFrame input_frame = 3; */ private void setInputFrame(edu.cmu.cs.gabriel.protocol.Protos.InputFrame value) { if (value == null) { throw new NullPointerException(); } inputFrame_ = value; } /** * optional .gabriel.InputFrame input_frame = 3; */ private void setInputFrame( edu.cmu.cs.gabriel.protocol.Protos.InputFrame.Builder builderForValue) { inputFrame_ = builderForValue.build(); } /** * optional .gabriel.InputFrame input_frame = 3; */ private void mergeInputFrame(edu.cmu.cs.gabriel.protocol.Protos.InputFrame value) { if (inputFrame_ != null && inputFrame_ != edu.cmu.cs.gabriel.protocol.Protos.InputFrame.getDefaultInstance()) { inputFrame_ = edu.cmu.cs.gabriel.protocol.Protos.InputFrame.newBuilder(inputFrame_).mergeFrom(value).buildPartial(); } else { inputFrame_ = value; } } /** * optional .gabriel.InputFrame input_frame = 3; */ private void clearInputFrame() { inputFrame_ = null; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (frameId_ != 0L) { output.writeInt64(1, frameId_); } if (!sourceName_.isEmpty()) { output.writeString(2, getSourceName()); } if (inputFrame_ != null) { output.writeMessage(3, getInputFrame()); } } public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (frameId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, frameId_); } if (!sourceName_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeStringSize(2, getSourceName()); } if (inputFrame_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getInputFrame()); } memoizedSerializedSize = size; return size; } public static edu.cmu.cs.gabriel.protocol.Protos.FromClient parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static edu.cmu.cs.gabriel.protocol.Protos.FromClient parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.FromClient parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static edu.cmu.cs.gabriel.protocol.Protos.FromClient parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.FromClient parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.FromClient parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.FromClient parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.FromClient parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.FromClient parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.FromClient parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(edu.cmu.cs.gabriel.protocol.Protos.FromClient prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** * Protobuf type {@code gabriel.FromClient} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< edu.cmu.cs.gabriel.protocol.Protos.FromClient, Builder> implements // @@protoc_insertion_point(builder_implements:gabriel.FromClient) edu.cmu.cs.gabriel.protocol.Protos.FromClientOrBuilder { // Construct using edu.cmu.cs.gabriel.protocol.Protos.FromClient.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * optional int64 frame_id = 1; */ public long getFrameId() { return instance.getFrameId(); } /** * optional int64 frame_id = 1; */ public Builder setFrameId(long value) { copyOnWrite(); instance.setFrameId(value); return this; } /** * optional int64 frame_id = 1; */ public Builder clearFrameId() { copyOnWrite(); instance.clearFrameId(); return this; } /** * optional string source_name = 2; */ public java.lang.String getSourceName() { return instance.getSourceName(); } /** * optional string source_name = 2; */ public com.google.protobuf.ByteString getSourceNameBytes() { return instance.getSourceNameBytes(); } /** * optional string source_name = 2; */ public Builder setSourceName( java.lang.String value) { copyOnWrite(); instance.setSourceName(value); return this; } /** * optional string source_name = 2; */ public Builder clearSourceName() { copyOnWrite(); instance.clearSourceName(); return this; } /** * optional string source_name = 2; */ public Builder setSourceNameBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setSourceNameBytes(value); return this; } /** * optional .gabriel.InputFrame input_frame = 3; */ public boolean hasInputFrame() { return instance.hasInputFrame(); } /** * optional .gabriel.InputFrame input_frame = 3; */ public edu.cmu.cs.gabriel.protocol.Protos.InputFrame getInputFrame() { return instance.getInputFrame(); } /** * optional .gabriel.InputFrame input_frame = 3; */ public Builder setInputFrame(edu.cmu.cs.gabriel.protocol.Protos.InputFrame value) { copyOnWrite(); instance.setInputFrame(value); return this; } /** * optional .gabriel.InputFrame input_frame = 3; */ public Builder setInputFrame( edu.cmu.cs.gabriel.protocol.Protos.InputFrame.Builder builderForValue) { copyOnWrite(); instance.setInputFrame(builderForValue); return this; } /** * optional .gabriel.InputFrame input_frame = 3; */ public Builder mergeInputFrame(edu.cmu.cs.gabriel.protocol.Protos.InputFrame value) { copyOnWrite(); instance.mergeInputFrame(value); return this; } /** * optional .gabriel.InputFrame input_frame = 3; */ public Builder clearInputFrame() { copyOnWrite(); instance.clearInputFrame(); return this; } // @@protoc_insertion_point(builder_scope:gabriel.FromClient) } protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new edu.cmu.cs.gabriel.protocol.Protos.FromClient(); } case IS_INITIALIZED: { return DEFAULT_INSTANCE; } case MAKE_IMMUTABLE: { return null; } case NEW_BUILDER: { return new Builder(); } case VISIT: { Visitor visitor = (Visitor) arg0; edu.cmu.cs.gabriel.protocol.Protos.FromClient other = (edu.cmu.cs.gabriel.protocol.Protos.FromClient) arg1; frameId_ = visitor.visitLong(frameId_ != 0L, frameId_, other.frameId_ != 0L, other.frameId_); sourceName_ = visitor.visitString(!sourceName_.isEmpty(), sourceName_, !other.sourceName_.isEmpty(), other.sourceName_); inputFrame_ = visitor.visitMessage(inputFrame_, other.inputFrame_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { } return this; } case MERGE_FROM_STREAM: { com.google.protobuf.CodedInputStream input = (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; 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 8: { frameId_ = input.readInt64(); break; } case 18: { String s = input.readStringRequireUtf8(); sourceName_ = s; break; } case 26: { edu.cmu.cs.gabriel.protocol.Protos.InputFrame.Builder subBuilder = null; if (inputFrame_ != null) { subBuilder = inputFrame_.toBuilder(); } inputFrame_ = input.readMessage(edu.cmu.cs.gabriel.protocol.Protos.InputFrame.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(inputFrame_); inputFrame_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { } } case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { if (PARSER == null) { synchronized (edu.cmu.cs.gabriel.protocol.Protos.FromClient.class) { if (PARSER == null) { PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); } } } return PARSER; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:gabriel.FromClient) private static final edu.cmu.cs.gabriel.protocol.Protos.FromClient DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new FromClient(); DEFAULT_INSTANCE.makeImmutable(); } public static edu.cmu.cs.gabriel.protocol.Protos.FromClient getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ResultWrapperOrBuilder extends // @@protoc_insertion_point(interface_extends:gabriel.ResultWrapper) com.google.protobuf.MessageLiteOrBuilder { /** * optional .gabriel.ResultWrapper.Status status = 1; */ int getStatusValue(); /** * optional .gabriel.ResultWrapper.Status status = 1; */ edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Status getStatus(); /** * repeated .gabriel.ResultWrapper.Result results = 2; */ java.util.List getResultsList(); /** * repeated .gabriel.ResultWrapper.Result results = 2; */ edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result getResults(int index); /** * repeated .gabriel.ResultWrapper.Result results = 2; */ int getResultsCount(); /** *
     * Optional additional fields
     * 
* * optional .google.protobuf.Any extras = 3; */ boolean hasExtras(); /** *
     * Optional additional fields
     * 
* * optional .google.protobuf.Any extras = 3; */ com.google.protobuf.Any getExtras(); /** *
     * Optionally specify the name of the module that produced the result
     * 
* * optional .gabriel.ResultWrapper.StringValue result_producer_name = 4; */ boolean hasResultProducerName(); /** *
     * Optionally specify the name of the module that produced the result
     * 
* * optional .gabriel.ResultWrapper.StringValue result_producer_name = 4; */ edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue getResultProducerName(); } /** * Protobuf type {@code gabriel.ResultWrapper} */ public static final class ResultWrapper extends com.google.protobuf.GeneratedMessageLite< ResultWrapper, ResultWrapper.Builder> implements // @@protoc_insertion_point(message_implements:gabriel.ResultWrapper) ResultWrapperOrBuilder { private ResultWrapper() { results_ = emptyProtobufList(); } /** * Protobuf enum {@code gabriel.ResultWrapper.Status} */ public enum Status implements com.google.protobuf.Internal.EnumLite { /** * SUCCESS = 0; */ SUCCESS(0), /** * UNSPECIFIED_ERROR = 1; */ UNSPECIFIED_ERROR(1), /** *
       * Errors that are not related to Gabriel but rather to the engine
       * itself.
       * 
* * ENGINE_ERROR = 2; */ ENGINE_ERROR(2), /** *
       * Cognitive engine expected different PayloadType from this source
       * 
* * WRONG_INPUT_FORMAT = 3; */ WRONG_INPUT_FORMAT(3), /** *
       * No Cognitive engines accept frames from source_name
       * 
* * NO_ENGINE_FOR_SOURCE = 4; */ NO_ENGINE_FOR_SOURCE(4), /** *
       * This client has no tokens to send frames from source_name
       * 
* * NO_TOKENS = 5; */ NO_TOKENS(5), /** *
       * The server dropped the frame because it was backed up
       * 
* * SERVER_DROPPED_FRAME = 6; */ SERVER_DROPPED_FRAME(6), UNRECOGNIZED(-1), ; /** * SUCCESS = 0; */ public static final int SUCCESS_VALUE = 0; /** * UNSPECIFIED_ERROR = 1; */ public static final int UNSPECIFIED_ERROR_VALUE = 1; /** *
       * Errors that are not related to Gabriel but rather to the engine
       * itself.
       * 
* * ENGINE_ERROR = 2; */ public static final int ENGINE_ERROR_VALUE = 2; /** *
       * Cognitive engine expected different PayloadType from this source
       * 
* * WRONG_INPUT_FORMAT = 3; */ public static final int WRONG_INPUT_FORMAT_VALUE = 3; /** *
       * No Cognitive engines accept frames from source_name
       * 
* * NO_ENGINE_FOR_SOURCE = 4; */ public static final int NO_ENGINE_FOR_SOURCE_VALUE = 4; /** *
       * This client has no tokens to send frames from source_name
       * 
* * NO_TOKENS = 5; */ public static final int NO_TOKENS_VALUE = 5; /** *
       * The server dropped the frame because it was backed up
       * 
* * SERVER_DROPPED_FRAME = 6; */ public static final int SERVER_DROPPED_FRAME_VALUE = 6; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Status valueOf(int value) { return forNumber(value); } public static Status forNumber(int value) { switch (value) { case 0: return SUCCESS; case 1: return UNSPECIFIED_ERROR; case 2: return ENGINE_ERROR; case 3: return WRONG_INPUT_FORMAT; case 4: return NO_ENGINE_FOR_SOURCE; case 5: return NO_TOKENS; case 6: return SERVER_DROPPED_FRAME; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Status findValueByNumber(int number) { return Status.forNumber(number); } }; private final int value; private Status(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:gabriel.ResultWrapper.Status) } public interface ResultOrBuilder extends // @@protoc_insertion_point(interface_extends:gabriel.ResultWrapper.Result) com.google.protobuf.MessageLiteOrBuilder { /** * optional .gabriel.PayloadType payload_type = 1; */ int getPayloadTypeValue(); /** * optional .gabriel.PayloadType payload_type = 1; */ edu.cmu.cs.gabriel.protocol.Protos.PayloadType getPayloadType(); /** * optional bytes payload = 2; */ com.google.protobuf.ByteString getPayload(); } /** * Protobuf type {@code gabriel.ResultWrapper.Result} */ public static final class Result extends com.google.protobuf.GeneratedMessageLite< Result, Result.Builder> implements // @@protoc_insertion_point(message_implements:gabriel.ResultWrapper.Result) ResultOrBuilder { private Result() { payload_ = com.google.protobuf.ByteString.EMPTY; } public static final int PAYLOAD_TYPE_FIELD_NUMBER = 1; private int payloadType_; /** * optional .gabriel.PayloadType payload_type = 1; */ public int getPayloadTypeValue() { return payloadType_; } /** * optional .gabriel.PayloadType payload_type = 1; */ public edu.cmu.cs.gabriel.protocol.Protos.PayloadType getPayloadType() { edu.cmu.cs.gabriel.protocol.Protos.PayloadType result = edu.cmu.cs.gabriel.protocol.Protos.PayloadType.forNumber(payloadType_); return result == null ? edu.cmu.cs.gabriel.protocol.Protos.PayloadType.UNRECOGNIZED : result; } /** * optional .gabriel.PayloadType payload_type = 1; */ private void setPayloadTypeValue(int value) { payloadType_ = value; } /** * optional .gabriel.PayloadType payload_type = 1; */ private void setPayloadType(edu.cmu.cs.gabriel.protocol.Protos.PayloadType value) { if (value == null) { throw new NullPointerException(); } payloadType_ = value.getNumber(); } /** * optional .gabriel.PayloadType payload_type = 1; */ private void clearPayloadType() { payloadType_ = 0; } public static final int PAYLOAD_FIELD_NUMBER = 2; private com.google.protobuf.ByteString payload_; /** * optional bytes payload = 2; */ public com.google.protobuf.ByteString getPayload() { return payload_; } /** * optional bytes payload = 2; */ private void setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } payload_ = value; } /** * optional bytes payload = 2; */ private void clearPayload() { payload_ = getDefaultInstance().getPayload(); } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (payloadType_ != edu.cmu.cs.gabriel.protocol.Protos.PayloadType.IMAGE.getNumber()) { output.writeEnum(1, payloadType_); } if (!payload_.isEmpty()) { output.writeBytes(2, payload_); } } public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (payloadType_ != edu.cmu.cs.gabriel.protocol.Protos.PayloadType.IMAGE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, payloadType_); } if (!payload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, payload_); } memoizedSerializedSize = size; return size; } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** * Protobuf type {@code gabriel.ResultWrapper.Result} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result, Builder> implements // @@protoc_insertion_point(builder_implements:gabriel.ResultWrapper.Result) edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.ResultOrBuilder { // Construct using edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * optional .gabriel.PayloadType payload_type = 1; */ public int getPayloadTypeValue() { return instance.getPayloadTypeValue(); } /** * optional .gabriel.PayloadType payload_type = 1; */ public Builder setPayloadTypeValue(int value) { copyOnWrite(); instance.setPayloadTypeValue(value); return this; } /** * optional .gabriel.PayloadType payload_type = 1; */ public edu.cmu.cs.gabriel.protocol.Protos.PayloadType getPayloadType() { return instance.getPayloadType(); } /** * optional .gabriel.PayloadType payload_type = 1; */ public Builder setPayloadType(edu.cmu.cs.gabriel.protocol.Protos.PayloadType value) { copyOnWrite(); instance.setPayloadType(value); return this; } /** * optional .gabriel.PayloadType payload_type = 1; */ public Builder clearPayloadType() { copyOnWrite(); instance.clearPayloadType(); return this; } /** * optional bytes payload = 2; */ public com.google.protobuf.ByteString getPayload() { return instance.getPayload(); } /** * optional bytes payload = 2; */ public Builder setPayload(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setPayload(value); return this; } /** * optional bytes payload = 2; */ public Builder clearPayload() { copyOnWrite(); instance.clearPayload(); return this; } // @@protoc_insertion_point(builder_scope:gabriel.ResultWrapper.Result) } protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result(); } case IS_INITIALIZED: { return DEFAULT_INSTANCE; } case MAKE_IMMUTABLE: { return null; } case NEW_BUILDER: { return new Builder(); } case VISIT: { Visitor visitor = (Visitor) arg0; edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result other = (edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result) arg1; payloadType_ = visitor.visitInt(payloadType_ != 0, payloadType_, other.payloadType_ != 0, other.payloadType_); payload_ = visitor.visitByteString(payload_ != com.google.protobuf.ByteString.EMPTY, payload_, other.payload_ != com.google.protobuf.ByteString.EMPTY, other.payload_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { } return this; } case MERGE_FROM_STREAM: { com.google.protobuf.CodedInputStream input = (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; 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 8: { int rawValue = input.readEnum(); payloadType_ = rawValue; break; } case 18: { payload_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { } } case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { if (PARSER == null) { synchronized (edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result.class) { if (PARSER == null) { PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); } } } return PARSER; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:gabriel.ResultWrapper.Result) private static final edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new Result(); DEFAULT_INSTANCE.makeImmutable(); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface StringValueOrBuilder extends // @@protoc_insertion_point(interface_extends:gabriel.ResultWrapper.StringValue) com.google.protobuf.MessageLiteOrBuilder { /** *
       * The string value.
       * 
* * optional string value = 1; */ java.lang.String getValue(); /** *
       * The string value.
       * 
* * optional string value = 1; */ com.google.protobuf.ByteString getValueBytes(); } /** *
     * From https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/wrappers.proto#L120
     * TODO: Switch to google.protobuf.StringValue once MobilEdgeX supports
     * protobuf-javalite
     * 
* * Protobuf type {@code gabriel.ResultWrapper.StringValue} */ public static final class StringValue extends com.google.protobuf.GeneratedMessageLite< StringValue, StringValue.Builder> implements // @@protoc_insertion_point(message_implements:gabriel.ResultWrapper.StringValue) StringValueOrBuilder { private StringValue() { value_ = ""; } public static final int VALUE_FIELD_NUMBER = 1; private java.lang.String value_; /** *
       * The string value.
       * 
* * optional string value = 1; */ public java.lang.String getValue() { return value_; } /** *
       * The string value.
       * 
* * optional string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { return com.google.protobuf.ByteString.copyFromUtf8(value_); } /** *
       * The string value.
       * 
* * optional string value = 1; */ private void setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } value_ = value; } /** *
       * The string value.
       * 
* * optional string value = 1; */ private void clearValue() { value_ = getDefaultInstance().getValue(); } /** *
       * The string value.
       * 
* * optional string value = 1; */ private void setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value.toStringUtf8(); } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!value_.isEmpty()) { output.writeString(1, getValue()); } } public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeStringSize(1, getValue()); } memoizedSerializedSize = size; return size; } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** *
       * From https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/wrappers.proto#L120
       * TODO: Switch to google.protobuf.StringValue once MobilEdgeX supports
       * protobuf-javalite
       * 
* * Protobuf type {@code gabriel.ResultWrapper.StringValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue, Builder> implements // @@protoc_insertion_point(builder_implements:gabriel.ResultWrapper.StringValue) edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValueOrBuilder { // Construct using edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
         * The string value.
         * 
* * optional string value = 1; */ public java.lang.String getValue() { return instance.getValue(); } /** *
         * The string value.
         * 
* * optional string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { return instance.getValueBytes(); } /** *
         * The string value.
         * 
* * optional string value = 1; */ public Builder setValue( java.lang.String value) { copyOnWrite(); instance.setValue(value); return this; } /** *
         * The string value.
         * 
* * optional string value = 1; */ public Builder clearValue() { copyOnWrite(); instance.clearValue(); return this; } /** *
         * The string value.
         * 
* * optional string value = 1; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setValueBytes(value); return this; } // @@protoc_insertion_point(builder_scope:gabriel.ResultWrapper.StringValue) } protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue(); } case IS_INITIALIZED: { return DEFAULT_INSTANCE; } case MAKE_IMMUTABLE: { return null; } case NEW_BUILDER: { return new Builder(); } case VISIT: { Visitor visitor = (Visitor) arg0; edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue other = (edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue) arg1; value_ = visitor.visitString(!value_.isEmpty(), value_, !other.value_.isEmpty(), other.value_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { } return this; } case MERGE_FROM_STREAM: { com.google.protobuf.CodedInputStream input = (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; 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: { String s = input.readStringRequireUtf8(); value_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { } } case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { if (PARSER == null) { synchronized (edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue.class) { if (PARSER == null) { PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); } } } return PARSER; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:gabriel.ResultWrapper.StringValue) private static final edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new StringValue(); DEFAULT_INSTANCE.makeImmutable(); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } private int bitField0_; public static final int STATUS_FIELD_NUMBER = 1; private int status_; /** * optional .gabriel.ResultWrapper.Status status = 1; */ public int getStatusValue() { return status_; } /** * optional .gabriel.ResultWrapper.Status status = 1; */ public edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Status getStatus() { edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Status result = edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Status.forNumber(status_); return result == null ? edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Status.UNRECOGNIZED : result; } /** * optional .gabriel.ResultWrapper.Status status = 1; */ private void setStatusValue(int value) { status_ = value; } /** * optional .gabriel.ResultWrapper.Status status = 1; */ private void setStatus(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Status value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); } /** * optional .gabriel.ResultWrapper.Status status = 1; */ private void clearStatus() { status_ = 0; } public static final int RESULTS_FIELD_NUMBER = 2; private com.google.protobuf.Internal.ProtobufList results_; /** * repeated .gabriel.ResultWrapper.Result results = 2; */ public java.util.List getResultsList() { return results_; } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ public java.util.List getResultsOrBuilderList() { return results_; } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ public int getResultsCount() { return results_.size(); } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ public edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result getResults(int index) { return results_.get(index); } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ public edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.ResultOrBuilder getResultsOrBuilder( int index) { return results_.get(index); } private void ensureResultsIsMutable() { if (!results_.isModifiable()) { results_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(results_); } } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ private void setResults( int index, edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result value) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.set(index, value); } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ private void setResults( int index, edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result.Builder builderForValue) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ private void addResults(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result value) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.add(value); } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ private void addResults( int index, edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result value) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.add(index, value); } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ private void addResults( edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result.Builder builderForValue) { ensureResultsIsMutable(); results_.add(builderForValue.build()); } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ private void addResults( int index, edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result.Builder builderForValue) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ private void addAllResults( java.lang.Iterable values) { ensureResultsIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, results_); } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ private void clearResults() { results_ = emptyProtobufList(); } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ private void removeResults(int index) { ensureResultsIsMutable(); results_.remove(index); } public static final int EXTRAS_FIELD_NUMBER = 3; private com.google.protobuf.Any extras_; /** *
     * Optional additional fields
     * 
* * optional .google.protobuf.Any extras = 3; */ public boolean hasExtras() { return extras_ != null; } /** *
     * Optional additional fields
     * 
* * optional .google.protobuf.Any extras = 3; */ public com.google.protobuf.Any getExtras() { return extras_ == null ? com.google.protobuf.Any.getDefaultInstance() : extras_; } /** *
     * Optional additional fields
     * 
* * optional .google.protobuf.Any extras = 3; */ private void setExtras(com.google.protobuf.Any value) { if (value == null) { throw new NullPointerException(); } extras_ = value; } /** *
     * Optional additional fields
     * 
* * optional .google.protobuf.Any extras = 3; */ private void setExtras( com.google.protobuf.Any.Builder builderForValue) { extras_ = builderForValue.build(); } /** *
     * Optional additional fields
     * 
* * optional .google.protobuf.Any extras = 3; */ private void mergeExtras(com.google.protobuf.Any value) { if (extras_ != null && extras_ != com.google.protobuf.Any.getDefaultInstance()) { extras_ = com.google.protobuf.Any.newBuilder(extras_).mergeFrom(value).buildPartial(); } else { extras_ = value; } } /** *
     * Optional additional fields
     * 
* * optional .google.protobuf.Any extras = 3; */ private void clearExtras() { extras_ = null; } public static final int RESULT_PRODUCER_NAME_FIELD_NUMBER = 4; private edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue resultProducerName_; /** *
     * Optionally specify the name of the module that produced the result
     * 
* * optional .gabriel.ResultWrapper.StringValue result_producer_name = 4; */ public boolean hasResultProducerName() { return resultProducerName_ != null; } /** *
     * Optionally specify the name of the module that produced the result
     * 
* * optional .gabriel.ResultWrapper.StringValue result_producer_name = 4; */ public edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue getResultProducerName() { return resultProducerName_ == null ? edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue.getDefaultInstance() : resultProducerName_; } /** *
     * Optionally specify the name of the module that produced the result
     * 
* * optional .gabriel.ResultWrapper.StringValue result_producer_name = 4; */ private void setResultProducerName(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue value) { if (value == null) { throw new NullPointerException(); } resultProducerName_ = value; } /** *
     * Optionally specify the name of the module that produced the result
     * 
* * optional .gabriel.ResultWrapper.StringValue result_producer_name = 4; */ private void setResultProducerName( edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue.Builder builderForValue) { resultProducerName_ = builderForValue.build(); } /** *
     * Optionally specify the name of the module that produced the result
     * 
* * optional .gabriel.ResultWrapper.StringValue result_producer_name = 4; */ private void mergeResultProducerName(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue value) { if (resultProducerName_ != null && resultProducerName_ != edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue.getDefaultInstance()) { resultProducerName_ = edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue.newBuilder(resultProducerName_).mergeFrom(value).buildPartial(); } else { resultProducerName_ = value; } } /** *
     * Optionally specify the name of the module that produced the result
     * 
* * optional .gabriel.ResultWrapper.StringValue result_producer_name = 4; */ private void clearResultProducerName() { resultProducerName_ = null; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (status_ != edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Status.SUCCESS.getNumber()) { output.writeEnum(1, status_); } for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } if (extras_ != null) { output.writeMessage(3, getExtras()); } if (resultProducerName_ != null) { output.writeMessage(4, getResultProducerName()); } } public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (status_ != edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Status.SUCCESS.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, status_); } for (int i = 0; i < results_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } if (extras_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getExtras()); } if (resultProducerName_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getResultProducerName()); } memoizedSerializedSize = size; return size; } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** * Protobuf type {@code gabriel.ResultWrapper} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper, Builder> implements // @@protoc_insertion_point(builder_implements:gabriel.ResultWrapper) edu.cmu.cs.gabriel.protocol.Protos.ResultWrapperOrBuilder { // Construct using edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * optional .gabriel.ResultWrapper.Status status = 1; */ public int getStatusValue() { return instance.getStatusValue(); } /** * optional .gabriel.ResultWrapper.Status status = 1; */ public Builder setStatusValue(int value) { copyOnWrite(); instance.setStatusValue(value); return this; } /** * optional .gabriel.ResultWrapper.Status status = 1; */ public edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Status getStatus() { return instance.getStatus(); } /** * optional .gabriel.ResultWrapper.Status status = 1; */ public Builder setStatus(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Status value) { copyOnWrite(); instance.setStatus(value); return this; } /** * optional .gabriel.ResultWrapper.Status status = 1; */ public Builder clearStatus() { copyOnWrite(); instance.clearStatus(); return this; } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ public java.util.List getResultsList() { return java.util.Collections.unmodifiableList( instance.getResultsList()); } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ public int getResultsCount() { return instance.getResultsCount(); }/** * repeated .gabriel.ResultWrapper.Result results = 2; */ public edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result getResults(int index) { return instance.getResults(index); } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ public Builder setResults( int index, edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result value) { copyOnWrite(); instance.setResults(index, value); return this; } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ public Builder setResults( int index, edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result.Builder builderForValue) { copyOnWrite(); instance.setResults(index, builderForValue); return this; } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ public Builder addResults(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result value) { copyOnWrite(); instance.addResults(value); return this; } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ public Builder addResults( int index, edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result value) { copyOnWrite(); instance.addResults(index, value); return this; } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ public Builder addResults( edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result.Builder builderForValue) { copyOnWrite(); instance.addResults(builderForValue); return this; } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ public Builder addResults( int index, edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result.Builder builderForValue) { copyOnWrite(); instance.addResults(index, builderForValue); return this; } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ public Builder addAllResults( java.lang.Iterable values) { copyOnWrite(); instance.addAllResults(values); return this; } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ public Builder clearResults() { copyOnWrite(); instance.clearResults(); return this; } /** * repeated .gabriel.ResultWrapper.Result results = 2; */ public Builder removeResults(int index) { copyOnWrite(); instance.removeResults(index); return this; } /** *
       * Optional additional fields
       * 
* * optional .google.protobuf.Any extras = 3; */ public boolean hasExtras() { return instance.hasExtras(); } /** *
       * Optional additional fields
       * 
* * optional .google.protobuf.Any extras = 3; */ public com.google.protobuf.Any getExtras() { return instance.getExtras(); } /** *
       * Optional additional fields
       * 
* * optional .google.protobuf.Any extras = 3; */ public Builder setExtras(com.google.protobuf.Any value) { copyOnWrite(); instance.setExtras(value); return this; } /** *
       * Optional additional fields
       * 
* * optional .google.protobuf.Any extras = 3; */ public Builder setExtras( com.google.protobuf.Any.Builder builderForValue) { copyOnWrite(); instance.setExtras(builderForValue); return this; } /** *
       * Optional additional fields
       * 
* * optional .google.protobuf.Any extras = 3; */ public Builder mergeExtras(com.google.protobuf.Any value) { copyOnWrite(); instance.mergeExtras(value); return this; } /** *
       * Optional additional fields
       * 
* * optional .google.protobuf.Any extras = 3; */ public Builder clearExtras() { copyOnWrite(); instance.clearExtras(); return this; } /** *
       * Optionally specify the name of the module that produced the result
       * 
* * optional .gabriel.ResultWrapper.StringValue result_producer_name = 4; */ public boolean hasResultProducerName() { return instance.hasResultProducerName(); } /** *
       * Optionally specify the name of the module that produced the result
       * 
* * optional .gabriel.ResultWrapper.StringValue result_producer_name = 4; */ public edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue getResultProducerName() { return instance.getResultProducerName(); } /** *
       * Optionally specify the name of the module that produced the result
       * 
* * optional .gabriel.ResultWrapper.StringValue result_producer_name = 4; */ public Builder setResultProducerName(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue value) { copyOnWrite(); instance.setResultProducerName(value); return this; } /** *
       * Optionally specify the name of the module that produced the result
       * 
* * optional .gabriel.ResultWrapper.StringValue result_producer_name = 4; */ public Builder setResultProducerName( edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue.Builder builderForValue) { copyOnWrite(); instance.setResultProducerName(builderForValue); return this; } /** *
       * Optionally specify the name of the module that produced the result
       * 
* * optional .gabriel.ResultWrapper.StringValue result_producer_name = 4; */ public Builder mergeResultProducerName(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue value) { copyOnWrite(); instance.mergeResultProducerName(value); return this; } /** *
       * Optionally specify the name of the module that produced the result
       * 
* * optional .gabriel.ResultWrapper.StringValue result_producer_name = 4; */ public Builder clearResultProducerName() { copyOnWrite(); instance.clearResultProducerName(); return this; } // @@protoc_insertion_point(builder_scope:gabriel.ResultWrapper) } protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper(); } case IS_INITIALIZED: { return DEFAULT_INSTANCE; } case MAKE_IMMUTABLE: { results_.makeImmutable(); return null; } case NEW_BUILDER: { return new Builder(); } case VISIT: { Visitor visitor = (Visitor) arg0; edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper other = (edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper) arg1; status_ = visitor.visitInt(status_ != 0, status_, other.status_ != 0, other.status_); results_= visitor.visitList(results_, other.results_); extras_ = visitor.visitMessage(extras_, other.extras_); resultProducerName_ = visitor.visitMessage(resultProducerName_, other.resultProducerName_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { bitField0_ |= other.bitField0_; } return this; } case MERGE_FROM_STREAM: { com.google.protobuf.CodedInputStream input = (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; 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 8: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 18: { if (!results_.isModifiable()) { results_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(results_); } results_.add( input.readMessage(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Result.parser(), extensionRegistry)); break; } case 26: { com.google.protobuf.Any.Builder subBuilder = null; if (extras_ != null) { subBuilder = extras_.toBuilder(); } extras_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(extras_); extras_ = subBuilder.buildPartial(); } break; } case 34: { edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue.Builder subBuilder = null; if (resultProducerName_ != null) { subBuilder = resultProducerName_.toBuilder(); } resultProducerName_ = input.readMessage(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.StringValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resultProducerName_); resultProducerName_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { } } case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { if (PARSER == null) { synchronized (edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.class) { if (PARSER == null) { PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); } } } return PARSER; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:gabriel.ResultWrapper) private static final edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ResultWrapper(); DEFAULT_INSTANCE.makeImmutable(); } public static edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ToClientOrBuilder extends // @@protoc_insertion_point(interface_extends:gabriel.ToClient) com.google.protobuf.MessageLiteOrBuilder { /** * optional .gabriel.ToClient.Welcome welcome = 1; */ edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome getWelcome(); /** * optional .gabriel.ToClient.Response response = 2; */ edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response getResponse(); public edu.cmu.cs.gabriel.protocol.Protos.ToClient.WelcomeOrResponseCase getWelcomeOrResponseCase(); } /** * Protobuf type {@code gabriel.ToClient} */ public static final class ToClient extends com.google.protobuf.GeneratedMessageLite< ToClient, ToClient.Builder> implements // @@protoc_insertion_point(message_implements:gabriel.ToClient) ToClientOrBuilder { private ToClient() { } public interface WelcomeOrBuilder extends // @@protoc_insertion_point(interface_extends:gabriel.ToClient.Welcome) com.google.protobuf.MessageLiteOrBuilder { /** * repeated string sources_consumed = 1; */ java.util.List getSourcesConsumedList(); /** * repeated string sources_consumed = 1; */ int getSourcesConsumedCount(); /** * repeated string sources_consumed = 1; */ java.lang.String getSourcesConsumed(int index); /** * repeated string sources_consumed = 1; */ com.google.protobuf.ByteString getSourcesConsumedBytes(int index); /** * optional int32 num_tokens_per_source = 2; */ int getNumTokensPerSource(); } /** * Protobuf type {@code gabriel.ToClient.Welcome} */ public static final class Welcome extends com.google.protobuf.GeneratedMessageLite< Welcome, Welcome.Builder> implements // @@protoc_insertion_point(message_implements:gabriel.ToClient.Welcome) WelcomeOrBuilder { private Welcome() { sourcesConsumed_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); } private int bitField0_; public static final int SOURCES_CONSUMED_FIELD_NUMBER = 1; private com.google.protobuf.Internal.ProtobufList sourcesConsumed_; /** * repeated string sources_consumed = 1; */ public java.util.List getSourcesConsumedList() { return sourcesConsumed_; } /** * repeated string sources_consumed = 1; */ public int getSourcesConsumedCount() { return sourcesConsumed_.size(); } /** * repeated string sources_consumed = 1; */ public java.lang.String getSourcesConsumed(int index) { return sourcesConsumed_.get(index); } /** * repeated string sources_consumed = 1; */ public com.google.protobuf.ByteString getSourcesConsumedBytes(int index) { return com.google.protobuf.ByteString.copyFromUtf8( sourcesConsumed_.get(index)); } private void ensureSourcesConsumedIsMutable() { if (!sourcesConsumed_.isModifiable()) { sourcesConsumed_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(sourcesConsumed_); } } /** * repeated string sources_consumed = 1; */ private void setSourcesConsumed( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSourcesConsumedIsMutable(); sourcesConsumed_.set(index, value); } /** * repeated string sources_consumed = 1; */ private void addSourcesConsumed( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSourcesConsumedIsMutable(); sourcesConsumed_.add(value); } /** * repeated string sources_consumed = 1; */ private void addAllSourcesConsumed( java.lang.Iterable values) { ensureSourcesConsumedIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, sourcesConsumed_); } /** * repeated string sources_consumed = 1; */ private void clearSourcesConsumed() { sourcesConsumed_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); } /** * repeated string sources_consumed = 1; */ private void addSourcesConsumedBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSourcesConsumedIsMutable(); sourcesConsumed_.add(value.toStringUtf8()); } public static final int NUM_TOKENS_PER_SOURCE_FIELD_NUMBER = 2; private int numTokensPerSource_; /** * optional int32 num_tokens_per_source = 2; */ public int getNumTokensPerSource() { return numTokensPerSource_; } /** * optional int32 num_tokens_per_source = 2; */ private void setNumTokensPerSource(int value) { numTokensPerSource_ = value; } /** * optional int32 num_tokens_per_source = 2; */ private void clearNumTokensPerSource() { numTokensPerSource_ = 0; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < sourcesConsumed_.size(); i++) { output.writeString(1, sourcesConsumed_.get(i)); } if (numTokensPerSource_ != 0) { output.writeInt32(2, numTokensPerSource_); } } public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < sourcesConsumed_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeStringSizeNoTag(sourcesConsumed_.get(i)); } size += dataSize; size += 1 * getSourcesConsumedList().size(); } if (numTokensPerSource_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, numTokensPerSource_); } memoizedSerializedSize = size; return size; } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** * Protobuf type {@code gabriel.ToClient.Welcome} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome, Builder> implements // @@protoc_insertion_point(builder_implements:gabriel.ToClient.Welcome) edu.cmu.cs.gabriel.protocol.Protos.ToClient.WelcomeOrBuilder { // Construct using edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * repeated string sources_consumed = 1; */ public java.util.List getSourcesConsumedList() { return java.util.Collections.unmodifiableList( instance.getSourcesConsumedList()); } /** * repeated string sources_consumed = 1; */ public int getSourcesConsumedCount() { return instance.getSourcesConsumedCount(); } /** * repeated string sources_consumed = 1; */ public java.lang.String getSourcesConsumed(int index) { return instance.getSourcesConsumed(index); } /** * repeated string sources_consumed = 1; */ public com.google.protobuf.ByteString getSourcesConsumedBytes(int index) { return instance.getSourcesConsumedBytes(index); } /** * repeated string sources_consumed = 1; */ public Builder setSourcesConsumed( int index, java.lang.String value) { copyOnWrite(); instance.setSourcesConsumed(index, value); return this; } /** * repeated string sources_consumed = 1; */ public Builder addSourcesConsumed( java.lang.String value) { copyOnWrite(); instance.addSourcesConsumed(value); return this; } /** * repeated string sources_consumed = 1; */ public Builder addAllSourcesConsumed( java.lang.Iterable values) { copyOnWrite(); instance.addAllSourcesConsumed(values); return this; } /** * repeated string sources_consumed = 1; */ public Builder clearSourcesConsumed() { copyOnWrite(); instance.clearSourcesConsumed(); return this; } /** * repeated string sources_consumed = 1; */ public Builder addSourcesConsumedBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.addSourcesConsumedBytes(value); return this; } /** * optional int32 num_tokens_per_source = 2; */ public int getNumTokensPerSource() { return instance.getNumTokensPerSource(); } /** * optional int32 num_tokens_per_source = 2; */ public Builder setNumTokensPerSource(int value) { copyOnWrite(); instance.setNumTokensPerSource(value); return this; } /** * optional int32 num_tokens_per_source = 2; */ public Builder clearNumTokensPerSource() { copyOnWrite(); instance.clearNumTokensPerSource(); return this; } // @@protoc_insertion_point(builder_scope:gabriel.ToClient.Welcome) } protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome(); } case IS_INITIALIZED: { return DEFAULT_INSTANCE; } case MAKE_IMMUTABLE: { sourcesConsumed_.makeImmutable(); return null; } case NEW_BUILDER: { return new Builder(); } case VISIT: { Visitor visitor = (Visitor) arg0; edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome other = (edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome) arg1; sourcesConsumed_= visitor.visitList(sourcesConsumed_, other.sourcesConsumed_); numTokensPerSource_ = visitor.visitInt(numTokensPerSource_ != 0, numTokensPerSource_, other.numTokensPerSource_ != 0, other.numTokensPerSource_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { bitField0_ |= other.bitField0_; } return this; } case MERGE_FROM_STREAM: { com.google.protobuf.CodedInputStream input = (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; 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: { String s = input.readStringRequireUtf8(); if (!sourcesConsumed_.isModifiable()) { sourcesConsumed_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(sourcesConsumed_); } sourcesConsumed_.add(s); break; } case 16: { numTokensPerSource_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { } } case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { if (PARSER == null) { synchronized (edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome.class) { if (PARSER == null) { PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); } } } return PARSER; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:gabriel.ToClient.Welcome) private static final edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new Welcome(); DEFAULT_INSTANCE.makeImmutable(); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface ResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:gabriel.ToClient.Response) com.google.protobuf.MessageLiteOrBuilder { /** *
       * The source of the original frame; allows the client to return the
       * token correctly.
       * 
* * optional string source_name = 1; */ java.lang.String getSourceName(); /** *
       * The source of the original frame; allows the client to return the
       * token correctly.
       * 
* * optional string source_name = 1; */ com.google.protobuf.ByteString getSourceNameBytes(); /** * optional int64 frame_id = 2; */ long getFrameId(); /** * optional bool return_token = 3; */ boolean getReturnToken(); /** * optional .gabriel.ResultWrapper result_wrapper = 4; */ boolean hasResultWrapper(); /** * optional .gabriel.ResultWrapper result_wrapper = 4; */ edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper getResultWrapper(); } /** * Protobuf type {@code gabriel.ToClient.Response} */ public static final class Response extends com.google.protobuf.GeneratedMessageLite< Response, Response.Builder> implements // @@protoc_insertion_point(message_implements:gabriel.ToClient.Response) ResponseOrBuilder { private Response() { sourceName_ = ""; } public static final int SOURCE_NAME_FIELD_NUMBER = 1; private java.lang.String sourceName_; /** *
       * The source of the original frame; allows the client to return the
       * token correctly.
       * 
* * optional string source_name = 1; */ public java.lang.String getSourceName() { return sourceName_; } /** *
       * The source of the original frame; allows the client to return the
       * token correctly.
       * 
* * optional string source_name = 1; */ public com.google.protobuf.ByteString getSourceNameBytes() { return com.google.protobuf.ByteString.copyFromUtf8(sourceName_); } /** *
       * The source of the original frame; allows the client to return the
       * token correctly.
       * 
* * optional string source_name = 1; */ private void setSourceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sourceName_ = value; } /** *
       * The source of the original frame; allows the client to return the
       * token correctly.
       * 
* * optional string source_name = 1; */ private void clearSourceName() { sourceName_ = getDefaultInstance().getSourceName(); } /** *
       * The source of the original frame; allows the client to return the
       * token correctly.
       * 
* * optional string source_name = 1; */ private void setSourceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceName_ = value.toStringUtf8(); } public static final int FRAME_ID_FIELD_NUMBER = 2; private long frameId_; /** * optional int64 frame_id = 2; */ public long getFrameId() { return frameId_; } /** * optional int64 frame_id = 2; */ private void setFrameId(long value) { frameId_ = value; } /** * optional int64 frame_id = 2; */ private void clearFrameId() { frameId_ = 0L; } public static final int RETURN_TOKEN_FIELD_NUMBER = 3; private boolean returnToken_; /** * optional bool return_token = 3; */ public boolean getReturnToken() { return returnToken_; } /** * optional bool return_token = 3; */ private void setReturnToken(boolean value) { returnToken_ = value; } /** * optional bool return_token = 3; */ private void clearReturnToken() { returnToken_ = false; } public static final int RESULT_WRAPPER_FIELD_NUMBER = 4; private edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper resultWrapper_; /** * optional .gabriel.ResultWrapper result_wrapper = 4; */ public boolean hasResultWrapper() { return resultWrapper_ != null; } /** * optional .gabriel.ResultWrapper result_wrapper = 4; */ public edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper getResultWrapper() { return resultWrapper_ == null ? edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.getDefaultInstance() : resultWrapper_; } /** * optional .gabriel.ResultWrapper result_wrapper = 4; */ private void setResultWrapper(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper value) { if (value == null) { throw new NullPointerException(); } resultWrapper_ = value; } /** * optional .gabriel.ResultWrapper result_wrapper = 4; */ private void setResultWrapper( edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Builder builderForValue) { resultWrapper_ = builderForValue.build(); } /** * optional .gabriel.ResultWrapper result_wrapper = 4; */ private void mergeResultWrapper(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper value) { if (resultWrapper_ != null && resultWrapper_ != edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.getDefaultInstance()) { resultWrapper_ = edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.newBuilder(resultWrapper_).mergeFrom(value).buildPartial(); } else { resultWrapper_ = value; } } /** * optional .gabriel.ResultWrapper result_wrapper = 4; */ private void clearResultWrapper() { resultWrapper_ = null; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!sourceName_.isEmpty()) { output.writeString(1, getSourceName()); } if (frameId_ != 0L) { output.writeInt64(2, frameId_); } if (returnToken_ != false) { output.writeBool(3, returnToken_); } if (resultWrapper_ != null) { output.writeMessage(4, getResultWrapper()); } } public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (!sourceName_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeStringSize(1, getSourceName()); } if (frameId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, frameId_); } if (returnToken_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, returnToken_); } if (resultWrapper_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getResultWrapper()); } memoizedSerializedSize = size; return size; } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** * Protobuf type {@code gabriel.ToClient.Response} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response, Builder> implements // @@protoc_insertion_point(builder_implements:gabriel.ToClient.Response) edu.cmu.cs.gabriel.protocol.Protos.ToClient.ResponseOrBuilder { // Construct using edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
         * The source of the original frame; allows the client to return the
         * token correctly.
         * 
* * optional string source_name = 1; */ public java.lang.String getSourceName() { return instance.getSourceName(); } /** *
         * The source of the original frame; allows the client to return the
         * token correctly.
         * 
* * optional string source_name = 1; */ public com.google.protobuf.ByteString getSourceNameBytes() { return instance.getSourceNameBytes(); } /** *
         * The source of the original frame; allows the client to return the
         * token correctly.
         * 
* * optional string source_name = 1; */ public Builder setSourceName( java.lang.String value) { copyOnWrite(); instance.setSourceName(value); return this; } /** *
         * The source of the original frame; allows the client to return the
         * token correctly.
         * 
* * optional string source_name = 1; */ public Builder clearSourceName() { copyOnWrite(); instance.clearSourceName(); return this; } /** *
         * The source of the original frame; allows the client to return the
         * token correctly.
         * 
* * optional string source_name = 1; */ public Builder setSourceNameBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setSourceNameBytes(value); return this; } /** * optional int64 frame_id = 2; */ public long getFrameId() { return instance.getFrameId(); } /** * optional int64 frame_id = 2; */ public Builder setFrameId(long value) { copyOnWrite(); instance.setFrameId(value); return this; } /** * optional int64 frame_id = 2; */ public Builder clearFrameId() { copyOnWrite(); instance.clearFrameId(); return this; } /** * optional bool return_token = 3; */ public boolean getReturnToken() { return instance.getReturnToken(); } /** * optional bool return_token = 3; */ public Builder setReturnToken(boolean value) { copyOnWrite(); instance.setReturnToken(value); return this; } /** * optional bool return_token = 3; */ public Builder clearReturnToken() { copyOnWrite(); instance.clearReturnToken(); return this; } /** * optional .gabriel.ResultWrapper result_wrapper = 4; */ public boolean hasResultWrapper() { return instance.hasResultWrapper(); } /** * optional .gabriel.ResultWrapper result_wrapper = 4; */ public edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper getResultWrapper() { return instance.getResultWrapper(); } /** * optional .gabriel.ResultWrapper result_wrapper = 4; */ public Builder setResultWrapper(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper value) { copyOnWrite(); instance.setResultWrapper(value); return this; } /** * optional .gabriel.ResultWrapper result_wrapper = 4; */ public Builder setResultWrapper( edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Builder builderForValue) { copyOnWrite(); instance.setResultWrapper(builderForValue); return this; } /** * optional .gabriel.ResultWrapper result_wrapper = 4; */ public Builder mergeResultWrapper(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper value) { copyOnWrite(); instance.mergeResultWrapper(value); return this; } /** * optional .gabriel.ResultWrapper result_wrapper = 4; */ public Builder clearResultWrapper() { copyOnWrite(); instance.clearResultWrapper(); return this; } // @@protoc_insertion_point(builder_scope:gabriel.ToClient.Response) } protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response(); } case IS_INITIALIZED: { return DEFAULT_INSTANCE; } case MAKE_IMMUTABLE: { return null; } case NEW_BUILDER: { return new Builder(); } case VISIT: { Visitor visitor = (Visitor) arg0; edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response other = (edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response) arg1; sourceName_ = visitor.visitString(!sourceName_.isEmpty(), sourceName_, !other.sourceName_.isEmpty(), other.sourceName_); frameId_ = visitor.visitLong(frameId_ != 0L, frameId_, other.frameId_ != 0L, other.frameId_); returnToken_ = visitor.visitBoolean(returnToken_ != false, returnToken_, other.returnToken_ != false, other.returnToken_); resultWrapper_ = visitor.visitMessage(resultWrapper_, other.resultWrapper_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { } return this; } case MERGE_FROM_STREAM: { com.google.protobuf.CodedInputStream input = (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; 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: { String s = input.readStringRequireUtf8(); sourceName_ = s; break; } case 16: { frameId_ = input.readInt64(); break; } case 24: { returnToken_ = input.readBool(); break; } case 34: { edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Builder subBuilder = null; if (resultWrapper_ != null) { subBuilder = resultWrapper_.toBuilder(); } resultWrapper_ = input.readMessage(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resultWrapper_); resultWrapper_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { } } case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { if (PARSER == null) { synchronized (edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response.class) { if (PARSER == null) { PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); } } } return PARSER; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:gabriel.ToClient.Response) private static final edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new Response(); DEFAULT_INSTANCE.makeImmutable(); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } private int welcomeOrResponseCase_ = 0; private java.lang.Object welcomeOrResponse_; public enum WelcomeOrResponseCase implements com.google.protobuf.Internal.EnumLite { WELCOME(1), RESPONSE(2), WELCOMEORRESPONSE_NOT_SET(0); private final int value; private WelcomeOrResponseCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static WelcomeOrResponseCase valueOf(int value) { return forNumber(value); } public static WelcomeOrResponseCase forNumber(int value) { switch (value) { case 1: return WELCOME; case 2: return RESPONSE; case 0: return WELCOMEORRESPONSE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public WelcomeOrResponseCase getWelcomeOrResponseCase() { return WelcomeOrResponseCase.forNumber( welcomeOrResponseCase_); } private void clearWelcomeOrResponse() { welcomeOrResponseCase_ = 0; welcomeOrResponse_ = null; } public static final int WELCOME_FIELD_NUMBER = 1; /** * optional .gabriel.ToClient.Welcome welcome = 1; */ public edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome getWelcome() { if (welcomeOrResponseCase_ == 1) { return (edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome) welcomeOrResponse_; } return edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome.getDefaultInstance(); } /** * optional .gabriel.ToClient.Welcome welcome = 1; */ private void setWelcome(edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome value) { if (value == null) { throw new NullPointerException(); } welcomeOrResponse_ = value; welcomeOrResponseCase_ = 1; } /** * optional .gabriel.ToClient.Welcome welcome = 1; */ private void setWelcome( edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome.Builder builderForValue) { welcomeOrResponse_ = builderForValue.build(); welcomeOrResponseCase_ = 1; } /** * optional .gabriel.ToClient.Welcome welcome = 1; */ private void mergeWelcome(edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome value) { if (welcomeOrResponseCase_ == 1 && welcomeOrResponse_ != edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome.getDefaultInstance()) { welcomeOrResponse_ = edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome.newBuilder((edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome) welcomeOrResponse_) .mergeFrom(value).buildPartial(); } else { welcomeOrResponse_ = value; } welcomeOrResponseCase_ = 1; } /** * optional .gabriel.ToClient.Welcome welcome = 1; */ private void clearWelcome() { if (welcomeOrResponseCase_ == 1) { welcomeOrResponseCase_ = 0; welcomeOrResponse_ = null; } } public static final int RESPONSE_FIELD_NUMBER = 2; /** * optional .gabriel.ToClient.Response response = 2; */ public edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response getResponse() { if (welcomeOrResponseCase_ == 2) { return (edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response) welcomeOrResponse_; } return edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response.getDefaultInstance(); } /** * optional .gabriel.ToClient.Response response = 2; */ private void setResponse(edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response value) { if (value == null) { throw new NullPointerException(); } welcomeOrResponse_ = value; welcomeOrResponseCase_ = 2; } /** * optional .gabriel.ToClient.Response response = 2; */ private void setResponse( edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response.Builder builderForValue) { welcomeOrResponse_ = builderForValue.build(); welcomeOrResponseCase_ = 2; } /** * optional .gabriel.ToClient.Response response = 2; */ private void mergeResponse(edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response value) { if (welcomeOrResponseCase_ == 2 && welcomeOrResponse_ != edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response.getDefaultInstance()) { welcomeOrResponse_ = edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response.newBuilder((edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response) welcomeOrResponse_) .mergeFrom(value).buildPartial(); } else { welcomeOrResponse_ = value; } welcomeOrResponseCase_ = 2; } /** * optional .gabriel.ToClient.Response response = 2; */ private void clearResponse() { if (welcomeOrResponseCase_ == 2) { welcomeOrResponseCase_ = 0; welcomeOrResponse_ = null; } } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (welcomeOrResponseCase_ == 1) { output.writeMessage(1, (edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome) welcomeOrResponse_); } if (welcomeOrResponseCase_ == 2) { output.writeMessage(2, (edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response) welcomeOrResponse_); } } public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (welcomeOrResponseCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome) welcomeOrResponse_); } if (welcomeOrResponseCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response) welcomeOrResponse_); } memoizedSerializedSize = size; return size; } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(edu.cmu.cs.gabriel.protocol.Protos.ToClient prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** * Protobuf type {@code gabriel.ToClient} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< edu.cmu.cs.gabriel.protocol.Protos.ToClient, Builder> implements // @@protoc_insertion_point(builder_implements:gabriel.ToClient) edu.cmu.cs.gabriel.protocol.Protos.ToClientOrBuilder { // Construct using edu.cmu.cs.gabriel.protocol.Protos.ToClient.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } public WelcomeOrResponseCase getWelcomeOrResponseCase() { return instance.getWelcomeOrResponseCase(); } public Builder clearWelcomeOrResponse() { copyOnWrite(); instance.clearWelcomeOrResponse(); return this; } /** * optional .gabriel.ToClient.Welcome welcome = 1; */ public edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome getWelcome() { return instance.getWelcome(); } /** * optional .gabriel.ToClient.Welcome welcome = 1; */ public Builder setWelcome(edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome value) { copyOnWrite(); instance.setWelcome(value); return this; } /** * optional .gabriel.ToClient.Welcome welcome = 1; */ public Builder setWelcome( edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome.Builder builderForValue) { copyOnWrite(); instance.setWelcome(builderForValue); return this; } /** * optional .gabriel.ToClient.Welcome welcome = 1; */ public Builder mergeWelcome(edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome value) { copyOnWrite(); instance.mergeWelcome(value); return this; } /** * optional .gabriel.ToClient.Welcome welcome = 1; */ public Builder clearWelcome() { copyOnWrite(); instance.clearWelcome(); return this; } /** * optional .gabriel.ToClient.Response response = 2; */ public edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response getResponse() { return instance.getResponse(); } /** * optional .gabriel.ToClient.Response response = 2; */ public Builder setResponse(edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response value) { copyOnWrite(); instance.setResponse(value); return this; } /** * optional .gabriel.ToClient.Response response = 2; */ public Builder setResponse( edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response.Builder builderForValue) { copyOnWrite(); instance.setResponse(builderForValue); return this; } /** * optional .gabriel.ToClient.Response response = 2; */ public Builder mergeResponse(edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response value) { copyOnWrite(); instance.mergeResponse(value); return this; } /** * optional .gabriel.ToClient.Response response = 2; */ public Builder clearResponse() { copyOnWrite(); instance.clearResponse(); return this; } // @@protoc_insertion_point(builder_scope:gabriel.ToClient) } protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new edu.cmu.cs.gabriel.protocol.Protos.ToClient(); } case IS_INITIALIZED: { return DEFAULT_INSTANCE; } case MAKE_IMMUTABLE: { return null; } case NEW_BUILDER: { return new Builder(); } case VISIT: { Visitor visitor = (Visitor) arg0; edu.cmu.cs.gabriel.protocol.Protos.ToClient other = (edu.cmu.cs.gabriel.protocol.Protos.ToClient) arg1; switch (other.getWelcomeOrResponseCase()) { case WELCOME: { welcomeOrResponse_ = visitor.visitOneofMessage( welcomeOrResponseCase_ == 1, welcomeOrResponse_, other.welcomeOrResponse_); break; } case RESPONSE: { welcomeOrResponse_ = visitor.visitOneofMessage( welcomeOrResponseCase_ == 2, welcomeOrResponse_, other.welcomeOrResponse_); break; } case WELCOMEORRESPONSE_NOT_SET: { visitor.visitOneofNotSet(welcomeOrResponseCase_ != 0); break; } } if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { if (other.welcomeOrResponseCase_ != 0) { welcomeOrResponseCase_ = other.welcomeOrResponseCase_; } } return this; } case MERGE_FROM_STREAM: { com.google.protobuf.CodedInputStream input = (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; 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: { edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome.Builder subBuilder = null; if (welcomeOrResponseCase_ == 1) { subBuilder = ((edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome) welcomeOrResponse_).toBuilder(); } welcomeOrResponse_ = input.readMessage(edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((edu.cmu.cs.gabriel.protocol.Protos.ToClient.Welcome) welcomeOrResponse_); welcomeOrResponse_ = subBuilder.buildPartial(); } welcomeOrResponseCase_ = 1; break; } case 18: { edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response.Builder subBuilder = null; if (welcomeOrResponseCase_ == 2) { subBuilder = ((edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response) welcomeOrResponse_).toBuilder(); } welcomeOrResponse_ = input.readMessage(edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((edu.cmu.cs.gabriel.protocol.Protos.ToClient.Response) welcomeOrResponse_); welcomeOrResponse_ = subBuilder.buildPartial(); } welcomeOrResponseCase_ = 2; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { } } case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { if (PARSER == null) { synchronized (edu.cmu.cs.gabriel.protocol.Protos.ToClient.class) { if (PARSER == null) { PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); } } } return PARSER; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:gabriel.ToClient) private static final edu.cmu.cs.gabriel.protocol.Protos.ToClient DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ToClient(); DEFAULT_INSTANCE.makeImmutable(); } public static edu.cmu.cs.gabriel.protocol.Protos.ToClient getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface FromStandaloneEngineOrBuilder extends // @@protoc_insertion_point(interface_extends:gabriel.FromStandaloneEngine) com.google.protobuf.MessageLiteOrBuilder { /** * optional .gabriel.FromStandaloneEngine.Welcome welcome = 1; */ edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome getWelcome(); /** * optional .gabriel.ResultWrapper result_wrapper = 2; */ edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper getResultWrapper(); public edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.WelcomeOrResultWrapperCase getWelcomeOrResultWrapperCase(); } /** * Protobuf type {@code gabriel.FromStandaloneEngine} */ public static final class FromStandaloneEngine extends com.google.protobuf.GeneratedMessageLite< FromStandaloneEngine, FromStandaloneEngine.Builder> implements // @@protoc_insertion_point(message_implements:gabriel.FromStandaloneEngine) FromStandaloneEngineOrBuilder { private FromStandaloneEngine() { } public interface WelcomeOrBuilder extends // @@protoc_insertion_point(interface_extends:gabriel.FromStandaloneEngine.Welcome) com.google.protobuf.MessageLiteOrBuilder { /** * optional string source_name = 1; */ java.lang.String getSourceName(); /** * optional string source_name = 1; */ com.google.protobuf.ByteString getSourceNameBytes(); /** * optional bool all_responses_required = 2; */ boolean getAllResponsesRequired(); } /** * Protobuf type {@code gabriel.FromStandaloneEngine.Welcome} */ public static final class Welcome extends com.google.protobuf.GeneratedMessageLite< Welcome, Welcome.Builder> implements // @@protoc_insertion_point(message_implements:gabriel.FromStandaloneEngine.Welcome) WelcomeOrBuilder { private Welcome() { sourceName_ = ""; } public static final int SOURCE_NAME_FIELD_NUMBER = 1; private java.lang.String sourceName_; /** * optional string source_name = 1; */ public java.lang.String getSourceName() { return sourceName_; } /** * optional string source_name = 1; */ public com.google.protobuf.ByteString getSourceNameBytes() { return com.google.protobuf.ByteString.copyFromUtf8(sourceName_); } /** * optional string source_name = 1; */ private void setSourceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sourceName_ = value; } /** * optional string source_name = 1; */ private void clearSourceName() { sourceName_ = getDefaultInstance().getSourceName(); } /** * optional string source_name = 1; */ private void setSourceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceName_ = value.toStringUtf8(); } public static final int ALL_RESPONSES_REQUIRED_FIELD_NUMBER = 2; private boolean allResponsesRequired_; /** * optional bool all_responses_required = 2; */ public boolean getAllResponsesRequired() { return allResponsesRequired_; } /** * optional bool all_responses_required = 2; */ private void setAllResponsesRequired(boolean value) { allResponsesRequired_ = value; } /** * optional bool all_responses_required = 2; */ private void clearAllResponsesRequired() { allResponsesRequired_ = false; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!sourceName_.isEmpty()) { output.writeString(1, getSourceName()); } if (allResponsesRequired_ != false) { output.writeBool(2, allResponsesRequired_); } } public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (!sourceName_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeStringSize(1, getSourceName()); } if (allResponsesRequired_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, allResponsesRequired_); } memoizedSerializedSize = size; return size; } public static edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** * Protobuf type {@code gabriel.FromStandaloneEngine.Welcome} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome, Builder> implements // @@protoc_insertion_point(builder_implements:gabriel.FromStandaloneEngine.Welcome) edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.WelcomeOrBuilder { // Construct using edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * optional string source_name = 1; */ public java.lang.String getSourceName() { return instance.getSourceName(); } /** * optional string source_name = 1; */ public com.google.protobuf.ByteString getSourceNameBytes() { return instance.getSourceNameBytes(); } /** * optional string source_name = 1; */ public Builder setSourceName( java.lang.String value) { copyOnWrite(); instance.setSourceName(value); return this; } /** * optional string source_name = 1; */ public Builder clearSourceName() { copyOnWrite(); instance.clearSourceName(); return this; } /** * optional string source_name = 1; */ public Builder setSourceNameBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setSourceNameBytes(value); return this; } /** * optional bool all_responses_required = 2; */ public boolean getAllResponsesRequired() { return instance.getAllResponsesRequired(); } /** * optional bool all_responses_required = 2; */ public Builder setAllResponsesRequired(boolean value) { copyOnWrite(); instance.setAllResponsesRequired(value); return this; } /** * optional bool all_responses_required = 2; */ public Builder clearAllResponsesRequired() { copyOnWrite(); instance.clearAllResponsesRequired(); return this; } // @@protoc_insertion_point(builder_scope:gabriel.FromStandaloneEngine.Welcome) } protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome(); } case IS_INITIALIZED: { return DEFAULT_INSTANCE; } case MAKE_IMMUTABLE: { return null; } case NEW_BUILDER: { return new Builder(); } case VISIT: { Visitor visitor = (Visitor) arg0; edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome other = (edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome) arg1; sourceName_ = visitor.visitString(!sourceName_.isEmpty(), sourceName_, !other.sourceName_.isEmpty(), other.sourceName_); allResponsesRequired_ = visitor.visitBoolean(allResponsesRequired_ != false, allResponsesRequired_, other.allResponsesRequired_ != false, other.allResponsesRequired_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { } return this; } case MERGE_FROM_STREAM: { com.google.protobuf.CodedInputStream input = (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; 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: { String s = input.readStringRequireUtf8(); sourceName_ = s; break; } case 16: { allResponsesRequired_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { } } case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { if (PARSER == null) { synchronized (edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome.class) { if (PARSER == null) { PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); } } } return PARSER; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:gabriel.FromStandaloneEngine.Welcome) private static final edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new Welcome(); DEFAULT_INSTANCE.makeImmutable(); } public static edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } private int welcomeOrResultWrapperCase_ = 0; private java.lang.Object welcomeOrResultWrapper_; public enum WelcomeOrResultWrapperCase implements com.google.protobuf.Internal.EnumLite { WELCOME(1), RESULT_WRAPPER(2), WELCOMEORRESULTWRAPPER_NOT_SET(0); private final int value; private WelcomeOrResultWrapperCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static WelcomeOrResultWrapperCase valueOf(int value) { return forNumber(value); } public static WelcomeOrResultWrapperCase forNumber(int value) { switch (value) { case 1: return WELCOME; case 2: return RESULT_WRAPPER; case 0: return WELCOMEORRESULTWRAPPER_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public WelcomeOrResultWrapperCase getWelcomeOrResultWrapperCase() { return WelcomeOrResultWrapperCase.forNumber( welcomeOrResultWrapperCase_); } private void clearWelcomeOrResultWrapper() { welcomeOrResultWrapperCase_ = 0; welcomeOrResultWrapper_ = null; } public static final int WELCOME_FIELD_NUMBER = 1; /** * optional .gabriel.FromStandaloneEngine.Welcome welcome = 1; */ public edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome getWelcome() { if (welcomeOrResultWrapperCase_ == 1) { return (edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome) welcomeOrResultWrapper_; } return edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome.getDefaultInstance(); } /** * optional .gabriel.FromStandaloneEngine.Welcome welcome = 1; */ private void setWelcome(edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome value) { if (value == null) { throw new NullPointerException(); } welcomeOrResultWrapper_ = value; welcomeOrResultWrapperCase_ = 1; } /** * optional .gabriel.FromStandaloneEngine.Welcome welcome = 1; */ private void setWelcome( edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome.Builder builderForValue) { welcomeOrResultWrapper_ = builderForValue.build(); welcomeOrResultWrapperCase_ = 1; } /** * optional .gabriel.FromStandaloneEngine.Welcome welcome = 1; */ private void mergeWelcome(edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome value) { if (welcomeOrResultWrapperCase_ == 1 && welcomeOrResultWrapper_ != edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome.getDefaultInstance()) { welcomeOrResultWrapper_ = edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome.newBuilder((edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome) welcomeOrResultWrapper_) .mergeFrom(value).buildPartial(); } else { welcomeOrResultWrapper_ = value; } welcomeOrResultWrapperCase_ = 1; } /** * optional .gabriel.FromStandaloneEngine.Welcome welcome = 1; */ private void clearWelcome() { if (welcomeOrResultWrapperCase_ == 1) { welcomeOrResultWrapperCase_ = 0; welcomeOrResultWrapper_ = null; } } public static final int RESULT_WRAPPER_FIELD_NUMBER = 2; /** * optional .gabriel.ResultWrapper result_wrapper = 2; */ public edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper getResultWrapper() { if (welcomeOrResultWrapperCase_ == 2) { return (edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper) welcomeOrResultWrapper_; } return edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.getDefaultInstance(); } /** * optional .gabriel.ResultWrapper result_wrapper = 2; */ private void setResultWrapper(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper value) { if (value == null) { throw new NullPointerException(); } welcomeOrResultWrapper_ = value; welcomeOrResultWrapperCase_ = 2; } /** * optional .gabriel.ResultWrapper result_wrapper = 2; */ private void setResultWrapper( edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Builder builderForValue) { welcomeOrResultWrapper_ = builderForValue.build(); welcomeOrResultWrapperCase_ = 2; } /** * optional .gabriel.ResultWrapper result_wrapper = 2; */ private void mergeResultWrapper(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper value) { if (welcomeOrResultWrapperCase_ == 2 && welcomeOrResultWrapper_ != edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.getDefaultInstance()) { welcomeOrResultWrapper_ = edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.newBuilder((edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper) welcomeOrResultWrapper_) .mergeFrom(value).buildPartial(); } else { welcomeOrResultWrapper_ = value; } welcomeOrResultWrapperCase_ = 2; } /** * optional .gabriel.ResultWrapper result_wrapper = 2; */ private void clearResultWrapper() { if (welcomeOrResultWrapperCase_ == 2) { welcomeOrResultWrapperCase_ = 0; welcomeOrResultWrapper_ = null; } } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (welcomeOrResultWrapperCase_ == 1) { output.writeMessage(1, (edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome) welcomeOrResultWrapper_); } if (welcomeOrResultWrapperCase_ == 2) { output.writeMessage(2, (edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper) welcomeOrResultWrapper_); } } public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (welcomeOrResultWrapperCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome) welcomeOrResultWrapper_); } if (welcomeOrResultWrapperCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper) welcomeOrResultWrapper_); } memoizedSerializedSize = size; return size; } public static edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** * Protobuf type {@code gabriel.FromStandaloneEngine} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine, Builder> implements // @@protoc_insertion_point(builder_implements:gabriel.FromStandaloneEngine) edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngineOrBuilder { // Construct using edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } public WelcomeOrResultWrapperCase getWelcomeOrResultWrapperCase() { return instance.getWelcomeOrResultWrapperCase(); } public Builder clearWelcomeOrResultWrapper() { copyOnWrite(); instance.clearWelcomeOrResultWrapper(); return this; } /** * optional .gabriel.FromStandaloneEngine.Welcome welcome = 1; */ public edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome getWelcome() { return instance.getWelcome(); } /** * optional .gabriel.FromStandaloneEngine.Welcome welcome = 1; */ public Builder setWelcome(edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome value) { copyOnWrite(); instance.setWelcome(value); return this; } /** * optional .gabriel.FromStandaloneEngine.Welcome welcome = 1; */ public Builder setWelcome( edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome.Builder builderForValue) { copyOnWrite(); instance.setWelcome(builderForValue); return this; } /** * optional .gabriel.FromStandaloneEngine.Welcome welcome = 1; */ public Builder mergeWelcome(edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome value) { copyOnWrite(); instance.mergeWelcome(value); return this; } /** * optional .gabriel.FromStandaloneEngine.Welcome welcome = 1; */ public Builder clearWelcome() { copyOnWrite(); instance.clearWelcome(); return this; } /** * optional .gabriel.ResultWrapper result_wrapper = 2; */ public edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper getResultWrapper() { return instance.getResultWrapper(); } /** * optional .gabriel.ResultWrapper result_wrapper = 2; */ public Builder setResultWrapper(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper value) { copyOnWrite(); instance.setResultWrapper(value); return this; } /** * optional .gabriel.ResultWrapper result_wrapper = 2; */ public Builder setResultWrapper( edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Builder builderForValue) { copyOnWrite(); instance.setResultWrapper(builderForValue); return this; } /** * optional .gabriel.ResultWrapper result_wrapper = 2; */ public Builder mergeResultWrapper(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper value) { copyOnWrite(); instance.mergeResultWrapper(value); return this; } /** * optional .gabriel.ResultWrapper result_wrapper = 2; */ public Builder clearResultWrapper() { copyOnWrite(); instance.clearResultWrapper(); return this; } // @@protoc_insertion_point(builder_scope:gabriel.FromStandaloneEngine) } protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine(); } case IS_INITIALIZED: { return DEFAULT_INSTANCE; } case MAKE_IMMUTABLE: { return null; } case NEW_BUILDER: { return new Builder(); } case VISIT: { Visitor visitor = (Visitor) arg0; edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine other = (edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine) arg1; switch (other.getWelcomeOrResultWrapperCase()) { case WELCOME: { welcomeOrResultWrapper_ = visitor.visitOneofMessage( welcomeOrResultWrapperCase_ == 1, welcomeOrResultWrapper_, other.welcomeOrResultWrapper_); break; } case RESULT_WRAPPER: { welcomeOrResultWrapper_ = visitor.visitOneofMessage( welcomeOrResultWrapperCase_ == 2, welcomeOrResultWrapper_, other.welcomeOrResultWrapper_); break; } case WELCOMEORRESULTWRAPPER_NOT_SET: { visitor.visitOneofNotSet(welcomeOrResultWrapperCase_ != 0); break; } } if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { if (other.welcomeOrResultWrapperCase_ != 0) { welcomeOrResultWrapperCase_ = other.welcomeOrResultWrapperCase_; } } return this; } case MERGE_FROM_STREAM: { com.google.protobuf.CodedInputStream input = (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; 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: { edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome.Builder subBuilder = null; if (welcomeOrResultWrapperCase_ == 1) { subBuilder = ((edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome) welcomeOrResultWrapper_).toBuilder(); } welcomeOrResultWrapper_ = input.readMessage(edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.Welcome) welcomeOrResultWrapper_); welcomeOrResultWrapper_ = subBuilder.buildPartial(); } welcomeOrResultWrapperCase_ = 1; break; } case 18: { edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.Builder subBuilder = null; if (welcomeOrResultWrapperCase_ == 2) { subBuilder = ((edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper) welcomeOrResultWrapper_).toBuilder(); } welcomeOrResultWrapper_ = input.readMessage(edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((edu.cmu.cs.gabriel.protocol.Protos.ResultWrapper) welcomeOrResultWrapper_); welcomeOrResultWrapper_ = subBuilder.buildPartial(); } welcomeOrResultWrapperCase_ = 2; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { } } case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { if (PARSER == null) { synchronized (edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine.class) { if (PARSER == null) { PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); } } } return PARSER; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:gabriel.FromStandaloneEngine) private static final edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new FromStandaloneEngine(); DEFAULT_INSTANCE.makeImmutable(); } public static edu.cmu.cs.gabriel.protocol.Protos.FromStandaloneEngine getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } static { } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy