diff options
8 files changed, 3270 insertions, 2 deletions
diff --git a/Software/Android_Studio/ColorCapture/app/src/main/java/com/twine/tango/pmr/integration/ApplicationInformationOuterClass.java b/Software/Android_Studio/ColorCapture/app/src/main/java/com/twine/tango/pmr/integration/ApplicationInformationOuterClass.java new file mode 100644 index 000000000..a3a1f04b1 --- /dev/null +++ b/Software/Android_Studio/ColorCapture/app/src/main/java/com/twine/tango/pmr/integration/ApplicationInformationOuterClass.java @@ -0,0 +1,716 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ApplicationInformation.proto + +package com.twine.tango.pmr.integration; + +public final class ApplicationInformationOuterClass { + private ApplicationInformationOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ApplicationInformationOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Integration.ApplicationInformation) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>string Version = 1;</code> + */ + java.lang.String getVersion(); + /** + * <code>string Version = 1;</code> + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + * <code>string StartupDate = 2;</code> + */ + java.lang.String getStartupDate(); + /** + * <code>string StartupDate = 2;</code> + */ + com.google.protobuf.ByteString + getStartupDateBytes(); + } + /** + * Protobuf type {@code Tango.PMR.Integration.ApplicationInformation} + */ + public static final class ApplicationInformation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Integration.ApplicationInformation) + ApplicationInformationOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplicationInformation.newBuilder() to construct. + private ApplicationInformation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private ApplicationInformation() { + version_ = ""; + startupDate_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ApplicationInformation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + startupDate_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.integration.ApplicationInformationOuterClass.internal_static_Tango_PMR_Integration_ApplicationInformation_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.integration.ApplicationInformationOuterClass.internal_static_Tango_PMR_Integration_ApplicationInformation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation.class, com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation.Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object version_; + /** + * <code>string Version = 1;</code> + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * <code>string Version = 1;</code> + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STARTUPDATE_FIELD_NUMBER = 2; + private volatile java.lang.Object startupDate_; + /** + * <code>string StartupDate = 2;</code> + */ + public java.lang.String getStartupDate() { + java.lang.Object ref = startupDate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startupDate_ = s; + return s; + } + } + /** + * <code>string StartupDate = 2;</code> + */ + public com.google.protobuf.ByteString + getStartupDateBytes() { + java.lang.Object ref = startupDate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + startupDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); + } + if (!getStartupDateBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, startupDate_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); + } + if (!getStartupDateBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, startupDate_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation)) { + return super.equals(obj); + } + com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation other = (com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation) obj; + + boolean result = true; + result = result && getVersion() + .equals(other.getVersion()); + result = result && getStartupDate() + .equals(other.getStartupDate()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + STARTUPDATE_FIELD_NUMBER; + hash = (53 * hash) + getStartupDate().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code Tango.PMR.Integration.ApplicationInformation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Integration.ApplicationInformation) + com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.integration.ApplicationInformationOuterClass.internal_static_Tango_PMR_Integration_ApplicationInformation_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.integration.ApplicationInformationOuterClass.internal_static_Tango_PMR_Integration_ApplicationInformation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation.class, com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation.Builder.class); + } + + // Construct using com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + version_ = ""; + + startupDate_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.integration.ApplicationInformationOuterClass.internal_static_Tango_PMR_Integration_ApplicationInformation_descriptor; + } + + public com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation getDefaultInstanceForType() { + return com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation.getDefaultInstance(); + } + + public com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation build() { + com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation buildPartial() { + com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation result = new com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation(this); + result.version_ = version_; + result.startupDate_ = startupDate_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation) { + return mergeFrom((com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation other) { + if (other == com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation.getDefaultInstance()) return this; + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.getStartupDate().isEmpty()) { + startupDate_ = other.startupDate_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object version_ = ""; + /** + * <code>string Version = 1;</code> + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <code>string Version = 1;</code> + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <code>string Version = 1;</code> + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * <code>string Version = 1;</code> + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * <code>string Version = 1;</code> + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private java.lang.Object startupDate_ = ""; + /** + * <code>string StartupDate = 2;</code> + */ + public java.lang.String getStartupDate() { + java.lang.Object ref = startupDate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startupDate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <code>string StartupDate = 2;</code> + */ + public com.google.protobuf.ByteString + getStartupDateBytes() { + java.lang.Object ref = startupDate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + startupDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <code>string StartupDate = 2;</code> + */ + public Builder setStartupDate( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + startupDate_ = value; + onChanged(); + return this; + } + /** + * <code>string StartupDate = 2;</code> + */ + public Builder clearStartupDate() { + + startupDate_ = getDefaultInstance().getStartupDate(); + onChanged(); + return this; + } + /** + * <code>string StartupDate = 2;</code> + */ + public Builder setStartupDateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + startupDate_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Integration.ApplicationInformation) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Integration.ApplicationInformation) + private static final com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation(); + } + + public static com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<ApplicationInformation> + PARSER = new com.google.protobuf.AbstractParser<ApplicationInformation>() { + public ApplicationInformation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplicationInformation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<ApplicationInformation> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<ApplicationInformation> getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.integration.ApplicationInformationOuterClass.ApplicationInformation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Integration_ApplicationInformation_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Integration_ApplicationInformation_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034ApplicationInformation.proto\022\025Tango.PM" + + "R.Integration\">\n\026ApplicationInformation\022" + + "\017\n\007Version\030\001 \001(\t\022\023\n\013StartupDate\030\002 \001(\tB!\n" + + "\037com.twine.tango.pmr.integrationb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Integration_ApplicationInformation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Integration_ApplicationInformation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Integration_ApplicationInformation_descriptor, + new java.lang.String[] { "Version", "StartupDate", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/ColorCapture/app/src/main/java/com/twine/tango/pmr/integration/ConfigureProtocolRequestOuterClass.java b/Software/Android_Studio/ColorCapture/app/src/main/java/com/twine/tango/pmr/integration/ConfigureProtocolRequestOuterClass.java new file mode 100644 index 000000000..4f0f95126 --- /dev/null +++ b/Software/Android_Studio/ColorCapture/app/src/main/java/com/twine/tango/pmr/integration/ConfigureProtocolRequestOuterClass.java @@ -0,0 +1,603 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ConfigureProtocolRequest.proto + +package com.twine.tango.pmr.integration; + +public final class ConfigureProtocolRequestOuterClass { + private ConfigureProtocolRequestOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ConfigureProtocolRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Integration.ConfigureProtocolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>bool EnableCompression = 1;</code> + */ + boolean getEnableCompression(); + + /** + * <code>.Tango.PMR.Integration.GenericMessageProtocol GenericProtocol = 2;</code> + */ + int getGenericProtocolValue(); + /** + * <code>.Tango.PMR.Integration.GenericMessageProtocol GenericProtocol = 2;</code> + */ + com.twine.tango.pmr.integration.GenericMessageProtocolOuterClass.GenericMessageProtocol getGenericProtocol(); + } + /** + * Protobuf type {@code Tango.PMR.Integration.ConfigureProtocolRequest} + */ + public static final class ConfigureProtocolRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Integration.ConfigureProtocolRequest) + ConfigureProtocolRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConfigureProtocolRequest.newBuilder() to construct. + private ConfigureProtocolRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private ConfigureProtocolRequest() { + enableCompression_ = false; + genericProtocol_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConfigureProtocolRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + enableCompression_ = input.readBool(); + break; + } + case 16: { + int rawValue = input.readEnum(); + + genericProtocol_ = rawValue; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.internal_static_Tango_PMR_Integration_ConfigureProtocolRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.internal_static_Tango_PMR_Integration_ConfigureProtocolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest.class, com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest.Builder.class); + } + + public static final int ENABLECOMPRESSION_FIELD_NUMBER = 1; + private boolean enableCompression_; + /** + * <code>bool EnableCompression = 1;</code> + */ + public boolean getEnableCompression() { + return enableCompression_; + } + + public static final int GENERICPROTOCOL_FIELD_NUMBER = 2; + private int genericProtocol_; + /** + * <code>.Tango.PMR.Integration.GenericMessageProtocol GenericProtocol = 2;</code> + */ + public int getGenericProtocolValue() { + return genericProtocol_; + } + /** + * <code>.Tango.PMR.Integration.GenericMessageProtocol GenericProtocol = 2;</code> + */ + public com.twine.tango.pmr.integration.GenericMessageProtocolOuterClass.GenericMessageProtocol getGenericProtocol() { + com.twine.tango.pmr.integration.GenericMessageProtocolOuterClass.GenericMessageProtocol result = com.twine.tango.pmr.integration.GenericMessageProtocolOuterClass.GenericMessageProtocol.valueOf(genericProtocol_); + return result == null ? com.twine.tango.pmr.integration.GenericMessageProtocolOuterClass.GenericMessageProtocol.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enableCompression_ != false) { + output.writeBool(1, enableCompression_); + } + if (genericProtocol_ != com.twine.tango.pmr.integration.GenericMessageProtocolOuterClass.GenericMessageProtocol.Json.getNumber()) { + output.writeEnum(2, genericProtocol_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableCompression_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableCompression_); + } + if (genericProtocol_ != com.twine.tango.pmr.integration.GenericMessageProtocolOuterClass.GenericMessageProtocol.Json.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, genericProtocol_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest other = (com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest) obj; + + boolean result = true; + result = result && (getEnableCompression() + == other.getEnableCompression()); + result = result && genericProtocol_ == other.genericProtocol_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLECOMPRESSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableCompression()); + hash = (37 * hash) + GENERICPROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + genericProtocol_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code Tango.PMR.Integration.ConfigureProtocolRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Integration.ConfigureProtocolRequest) + com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.internal_static_Tango_PMR_Integration_ConfigureProtocolRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.internal_static_Tango_PMR_Integration_ConfigureProtocolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest.class, com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + enableCompression_ = false; + + genericProtocol_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.internal_static_Tango_PMR_Integration_ConfigureProtocolRequest_descriptor; + } + + public com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest build() { + com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest buildPartial() { + com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest result = new com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest(this); + result.enableCompression_ = enableCompression_; + result.genericProtocol_ = genericProtocol_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest) { + return mergeFrom((com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest other) { + if (other == com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest.getDefaultInstance()) return this; + if (other.getEnableCompression() != false) { + setEnableCompression(other.getEnableCompression()); + } + if (other.genericProtocol_ != 0) { + setGenericProtocolValue(other.getGenericProtocolValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enableCompression_ ; + /** + * <code>bool EnableCompression = 1;</code> + */ + public boolean getEnableCompression() { + return enableCompression_; + } + /** + * <code>bool EnableCompression = 1;</code> + */ + public Builder setEnableCompression(boolean value) { + + enableCompression_ = value; + onChanged(); + return this; + } + /** + * <code>bool EnableCompression = 1;</code> + */ + public Builder clearEnableCompression() { + + enableCompression_ = false; + onChanged(); + return this; + } + + private int genericProtocol_ = 0; + /** + * <code>.Tango.PMR.Integration.GenericMessageProtocol GenericProtocol = 2;</code> + */ + public int getGenericProtocolValue() { + return genericProtocol_; + } + /** + * <code>.Tango.PMR.Integration.GenericMessageProtocol GenericProtocol = 2;</code> + */ + public Builder setGenericProtocolValue(int value) { + genericProtocol_ = value; + onChanged(); + return this; + } + /** + * <code>.Tango.PMR.Integration.GenericMessageProtocol GenericProtocol = 2;</code> + */ + public com.twine.tango.pmr.integration.GenericMessageProtocolOuterClass.GenericMessageProtocol getGenericProtocol() { + com.twine.tango.pmr.integration.GenericMessageProtocolOuterClass.GenericMessageProtocol result = com.twine.tango.pmr.integration.GenericMessageProtocolOuterClass.GenericMessageProtocol.valueOf(genericProtocol_); + return result == null ? com.twine.tango.pmr.integration.GenericMessageProtocolOuterClass.GenericMessageProtocol.UNRECOGNIZED : result; + } + /** + * <code>.Tango.PMR.Integration.GenericMessageProtocol GenericProtocol = 2;</code> + */ + public Builder setGenericProtocol(com.twine.tango.pmr.integration.GenericMessageProtocolOuterClass.GenericMessageProtocol value) { + if (value == null) { + throw new NullPointerException(); + } + + genericProtocol_ = value.getNumber(); + onChanged(); + return this; + } + /** + * <code>.Tango.PMR.Integration.GenericMessageProtocol GenericProtocol = 2;</code> + */ + public Builder clearGenericProtocol() { + + genericProtocol_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Integration.ConfigureProtocolRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Integration.ConfigureProtocolRequest) + private static final com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest(); + } + + public static com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<ConfigureProtocolRequest> + PARSER = new com.google.protobuf.AbstractParser<ConfigureProtocolRequest>() { + public ConfigureProtocolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigureProtocolRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<ConfigureProtocolRequest> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<ConfigureProtocolRequest> getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.integration.ConfigureProtocolRequestOuterClass.ConfigureProtocolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Integration_ConfigureProtocolRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Integration_ConfigureProtocolRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\036ConfigureProtocolRequest.proto\022\025Tango." + + "PMR.Integration\032\034GenericMessageProtocol." + + "proto\"}\n\030ConfigureProtocolRequest\022\031\n\021Ena" + + "bleCompression\030\001 \001(\010\022F\n\017GenericProtocol\030" + + "\002 \001(\0162-.Tango.PMR.Integration.GenericMes" + + "sageProtocolB!\n\037com.twine.tango.pmr.inte" + + "grationb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.integration.GenericMessageProtocolOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Integration_ConfigureProtocolRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Integration_ConfigureProtocolRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Integration_ConfigureProtocolRequest_descriptor, + new java.lang.String[] { "EnableCompression", "GenericProtocol", }); + com.twine.tango.pmr.integration.GenericMessageProtocolOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/ColorCapture/app/src/main/java/com/twine/tango/pmr/integration/ConfigureProtocolResponseOuterClass.java b/Software/Android_Studio/ColorCapture/app/src/main/java/com/twine/tango/pmr/integration/ConfigureProtocolResponseOuterClass.java new file mode 100644 index 000000000..aec962ac4 --- /dev/null +++ b/Software/Android_Studio/ColorCapture/app/src/main/java/com/twine/tango/pmr/integration/ConfigureProtocolResponseOuterClass.java @@ -0,0 +1,506 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ConfigureProtocolResponse.proto + +package com.twine.tango.pmr.integration; + +public final class ConfigureProtocolResponseOuterClass { + private ConfigureProtocolResponseOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ConfigureProtocolResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Integration.ConfigureProtocolResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>bool Confirmed = 1;</code> + */ + boolean getConfirmed(); + } + /** + * Protobuf type {@code Tango.PMR.Integration.ConfigureProtocolResponse} + */ + public static final class ConfigureProtocolResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Integration.ConfigureProtocolResponse) + ConfigureProtocolResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConfigureProtocolResponse.newBuilder() to construct. + private ConfigureProtocolResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private ConfigureProtocolResponse() { + confirmed_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConfigureProtocolResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + confirmed_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.internal_static_Tango_PMR_Integration_ConfigureProtocolResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.internal_static_Tango_PMR_Integration_ConfigureProtocolResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse.class, com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse.Builder.class); + } + + public static final int CONFIRMED_FIELD_NUMBER = 1; + private boolean confirmed_; + /** + * <code>bool Confirmed = 1;</code> + */ + public boolean getConfirmed() { + return confirmed_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (confirmed_ != false) { + output.writeBool(1, confirmed_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (confirmed_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, confirmed_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse other = (com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse) obj; + + boolean result = true; + result = result && (getConfirmed() + == other.getConfirmed()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONFIRMED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getConfirmed()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code Tango.PMR.Integration.ConfigureProtocolResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Integration.ConfigureProtocolResponse) + com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.internal_static_Tango_PMR_Integration_ConfigureProtocolResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.internal_static_Tango_PMR_Integration_ConfigureProtocolResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse.class, com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + confirmed_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.internal_static_Tango_PMR_Integration_ConfigureProtocolResponse_descriptor; + } + + public com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse build() { + com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse buildPartial() { + com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse result = new com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse(this); + result.confirmed_ = confirmed_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse) { + return mergeFrom((com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse other) { + if (other == com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse.getDefaultInstance()) return this; + if (other.getConfirmed() != false) { + setConfirmed(other.getConfirmed()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean confirmed_ ; + /** + * <code>bool Confirmed = 1;</code> + */ + public boolean getConfirmed() { + return confirmed_; + } + /** + * <code>bool Confirmed = 1;</code> + */ + public Builder setConfirmed(boolean value) { + + confirmed_ = value; + onChanged(); + return this; + } + /** + * <code>bool Confirmed = 1;</code> + */ + public Builder clearConfirmed() { + + confirmed_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Integration.ConfigureProtocolResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Integration.ConfigureProtocolResponse) + private static final com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse(); + } + + public static com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<ConfigureProtocolResponse> + PARSER = new com.google.protobuf.AbstractParser<ConfigureProtocolResponse>() { + public ConfigureProtocolResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigureProtocolResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<ConfigureProtocolResponse> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<ConfigureProtocolResponse> getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.integration.ConfigureProtocolResponseOuterClass.ConfigureProtocolResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Integration_ConfigureProtocolResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Integration_ConfigureProtocolResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\037ConfigureProtocolResponse.proto\022\025Tango" + + ".PMR.Integration\".\n\031ConfigureProtocolRes" + + "ponse\022\021\n\tConfirmed\030\001 \001(\010B!\n\037com.twine.ta" + + "ngo.pmr.integrationb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Integration_ConfigureProtocolResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Integration_ConfigureProtocolResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Integration_ConfigureProtocolResponse_descriptor, + new java.lang.String[] { "Confirmed", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/ColorCapture/app/src/main/java/com/twine/tango/pmr/integration/GenericMessageProtocolOuterClass.java b/Software/Android_Studio/ColorCapture/app/src/main/java/com/twine/tango/pmr/integration/GenericMessageProtocolOuterClass.java new file mode 100644 index 000000000..4780d0d16 --- /dev/null +++ b/Software/Android_Studio/ColorCapture/app/src/main/java/com/twine/tango/pmr/integration/GenericMessageProtocolOuterClass.java @@ -0,0 +1,153 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GenericMessageProtocol.proto + +package com.twine.tango.pmr.integration; + +public final class GenericMessageProtocolOuterClass { + private GenericMessageProtocolOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + * Protobuf enum {@code Tango.PMR.Integration.GenericMessageProtocol} + */ + public enum GenericMessageProtocol + implements com.google.protobuf.ProtocolMessageEnum { + /** + * <code>Json = 0;</code> + */ + Json(0), + /** + * <code>Bson = 1;</code> + */ + Bson(1), + /** + * <code>Protobuf = 2;</code> + */ + Protobuf(2), + UNRECOGNIZED(-1), + ; + + /** + * <code>Json = 0;</code> + */ + public static final int Json_VALUE = 0; + /** + * <code>Bson = 1;</code> + */ + public static final int Bson_VALUE = 1; + /** + * <code>Protobuf = 2;</code> + */ + public static final int Protobuf_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static GenericMessageProtocol valueOf(int value) { + return forNumber(value); + } + + public static GenericMessageProtocol forNumber(int value) { + switch (value) { + case 0: return Json; + case 1: return Bson; + case 2: return Protobuf; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap<GenericMessageProtocol> + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + GenericMessageProtocol> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap<GenericMessageProtocol>() { + public GenericMessageProtocol findValueByNumber(int number) { + return GenericMessageProtocol.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.twine.tango.pmr.integration.GenericMessageProtocolOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final GenericMessageProtocol[] VALUES = values(); + + public static GenericMessageProtocol valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private GenericMessageProtocol(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:Tango.PMR.Integration.GenericMessageProtocol) + } + + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034GenericMessageProtocol.proto\022\025Tango.PM" + + "R.Integration*:\n\026GenericMessageProtocol\022" + + "\010\n\004Json\020\000\022\010\n\004Bson\020\001\022\014\n\010Protobuf\020\002B!\n\037com" + + ".twine.tango.pmr.integrationb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/ColorCapture/app/src/main/java/com/twine/tango/pmr/integration/GenericRequestOuterClass.java b/Software/Android_Studio/ColorCapture/app/src/main/java/com/twine/tango/pmr/integration/GenericRequestOuterClass.java new file mode 100644 index 000000000..be6709cf5 --- /dev/null +++ b/Software/Android_Studio/ColorCapture/app/src/main/java/com/twine/tango/pmr/integration/GenericRequestOuterClass.java @@ -0,0 +1,645 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GenericRequest.proto + +package com.twine.tango.pmr.integration; + +public final class GenericRequestOuterClass { + private GenericRequestOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface GenericRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Integration.GenericRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>string Type = 1;</code> + */ + java.lang.String getType(); + /** + * <code>string Type = 1;</code> + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + * <code>bytes Data = 2;</code> + */ + com.google.protobuf.ByteString getData(); + } + /** + * Protobuf type {@code Tango.PMR.Integration.GenericRequest} + */ + public static final class GenericRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Integration.GenericRequest) + GenericRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenericRequest.newBuilder() to construct. + private GenericRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private GenericRequest() { + type_ = ""; + data_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GenericRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + type_ = s; + break; + } + case 18: { + + data_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.integration.GenericRequestOuterClass.internal_static_Tango_PMR_Integration_GenericRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.integration.GenericRequestOuterClass.internal_static_Tango_PMR_Integration_GenericRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest.class, com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object type_; + /** + * <code>string Type = 1;</code> + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + /** + * <code>string Type = 1;</code> + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString data_; + /** + * <code>bytes Data = 2;</code> + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); + } + if (!data_.isEmpty()) { + output.writeBytes(2, data_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, data_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest other = (com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest) obj; + + boolean result = true; + result = result && getType() + .equals(other.getType()); + result = result && getData() + .equals(other.getData()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code Tango.PMR.Integration.GenericRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Integration.GenericRequest) + com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.integration.GenericRequestOuterClass.internal_static_Tango_PMR_Integration_GenericRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.integration.GenericRequestOuterClass.internal_static_Tango_PMR_Integration_GenericRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest.class, com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + type_ = ""; + + data_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.integration.GenericRequestOuterClass.internal_static_Tango_PMR_Integration_GenericRequest_descriptor; + } + + public com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest build() { + com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest buildPartial() { + com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest result = new com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest(this); + result.type_ = type_; + result.data_ = data_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest) { + return mergeFrom((com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest other) { + if (other == com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest.getDefaultInstance()) return this; + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object type_ = ""; + /** + * <code>string Type = 1;</code> + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <code>string Type = 1;</code> + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <code>string Type = 1;</code> + */ + public Builder setType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value; + onChanged(); + return this; + } + /** + * <code>string Type = 1;</code> + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + * <code>string Type = 1;</code> + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + type_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>bytes Data = 2;</code> + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * <code>bytes Data = 2;</code> + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * <code>bytes Data = 2;</code> + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Integration.GenericRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Integration.GenericRequest) + private static final com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest(); + } + + public static com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<GenericRequest> + PARSER = new com.google.protobuf.AbstractParser<GenericRequest>() { + public GenericRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenericRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<GenericRequest> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<GenericRequest> getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.integration.GenericRequestOuterClass.GenericRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Integration_GenericRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Integration_GenericRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\024GenericRequest.proto\022\025Tango.PMR.Integr" + + "ation\",\n\016GenericRequest\022\014\n\004Type\030\001 \001(\t\022\014\n" + + "\004Data\030\002 \001(\014B!\n\037com.twine.tango.pmr.integ" + + "rationb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Integration_GenericRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Integration_GenericRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Integration_GenericRequest_descriptor, + new java.lang.String[] { "Type", "Data", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/ColorCapture/app/src/main/java/com/twine/tango/pmr/integration/GenericResponseOuterClass.java b/Software/Android_Studio/ColorCapture/app/src/main/java/com/twine/tango/pmr/integration/GenericResponseOuterClass.java new file mode 100644 index 000000000..984c4421f --- /dev/null +++ b/Software/Android_Studio/ColorCapture/app/src/main/java/com/twine/tango/pmr/integration/GenericResponseOuterClass.java @@ -0,0 +1,645 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: GenericResponse.proto + +package com.twine.tango.pmr.integration; + +public final class GenericResponseOuterClass { + private GenericResponseOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface GenericResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Integration.GenericResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>string Type = 1;</code> + */ + java.lang.String getType(); + /** + * <code>string Type = 1;</code> + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + * <code>bytes Data = 2;</code> + */ + com.google.protobuf.ByteString getData(); + } + /** + * Protobuf type {@code Tango.PMR.Integration.GenericResponse} + */ + public static final class GenericResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Integration.GenericResponse) + GenericResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenericResponse.newBuilder() to construct. + private GenericResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private GenericResponse() { + type_ = ""; + data_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GenericResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + type_ = s; + break; + } + case 18: { + + data_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.integration.GenericResponseOuterClass.internal_static_Tango_PMR_Integration_GenericResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.integration.GenericResponseOuterClass.internal_static_Tango_PMR_Integration_GenericResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse.class, com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object type_; + /** + * <code>string Type = 1;</code> + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + /** + * <code>string Type = 1;</code> + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString data_; + /** + * <code>bytes Data = 2;</code> + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); + } + if (!data_.isEmpty()) { + output.writeBytes(2, data_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, data_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse other = (com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse) obj; + + boolean result = true; + result = result && getType() + .equals(other.getType()); + result = result && getData() + .equals(other.getData()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code Tango.PMR.Integration.GenericResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Integration.GenericResponse) + com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.integration.GenericResponseOuterClass.internal_static_Tango_PMR_Integration_GenericResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.integration.GenericResponseOuterClass.internal_static_Tango_PMR_Integration_GenericResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse.class, com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + type_ = ""; + + data_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.integration.GenericResponseOuterClass.internal_static_Tango_PMR_Integration_GenericResponse_descriptor; + } + + public com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse build() { + com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse buildPartial() { + com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse result = new com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse(this); + result.type_ = type_; + result.data_ = data_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse) { + return mergeFrom((com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse other) { + if (other == com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse.getDefaultInstance()) return this; + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object type_ = ""; + /** + * <code>string Type = 1;</code> + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <code>string Type = 1;</code> + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <code>string Type = 1;</code> + */ + public Builder setType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value; + onChanged(); + return this; + } + /** + * <code>string Type = 1;</code> + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + * <code>string Type = 1;</code> + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + type_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>bytes Data = 2;</code> + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * <code>bytes Data = 2;</code> + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * <code>bytes Data = 2;</code> + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Integration.GenericResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Integration.GenericResponse) + private static final com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse(); + } + + public static com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<GenericResponse> + PARSER = new com.google.protobuf.AbstractParser<GenericResponse>() { + public GenericResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenericResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<GenericResponse> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<GenericResponse> getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.integration.GenericResponseOuterClass.GenericResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Integration_GenericResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Integration_GenericResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\025GenericResponse.proto\022\025Tango.PMR.Integ" + + "ration\"-\n\017GenericResponse\022\014\n\004Type\030\001 \001(\t\022" + + "\014\n\004Data\030\002 \001(\014B!\n\037com.twine.tango.pmr.int" + + "egrationb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Integration_GenericResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Integration_GenericResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Integration_GenericResponse_descriptor, + new java.lang.String[] { "Type", "Data", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Visual_Studio/FSE/Tango.FSE.UI/Tiles/Events/EventsTileView.xaml b/Software/Visual_Studio/FSE/Tango.FSE.UI/Tiles/Events/EventsTileView.xaml index 7963cb733..508ebb6b7 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.UI/Tiles/Events/EventsTileView.xaml +++ b/Software/Visual_Studio/FSE/Tango.FSE.UI/Tiles/Events/EventsTileView.xaml @@ -39,7 +39,7 @@ </Grid> </Grid> <StackPanel Margin="10 0 0 0"> - <TextBlock>active events summery:</TextBlock> + <TextBlock>active events summary:</TextBlock> <StackPanel TextElement.FontSize="{StaticResource FSE_SmallFontSize}" Margin="0 20 0 0"> <DockPanel Margin="0 5"> diff --git a/Software/Visual_Studio/FSE/Tango.FSE.UI/Views/EventsView.xaml b/Software/Visual_Studio/FSE/Tango.FSE.UI/Views/EventsView.xaml index 98f03a0f1..c3715700b 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.UI/Views/EventsView.xaml +++ b/Software/Visual_Studio/FSE/Tango.FSE.UI/Views/EventsView.xaml @@ -176,7 +176,7 @@ </Grid> </Grid> <StackPanel Margin="10 0 0 0"> - <TextBlock>active events summery:</TextBlock> + <TextBlock>active events summary:</TextBlock> <StackPanel TextElement.FontSize="{StaticResource FSE_SmallFontSize}" Margin="0 20 0 0"> <DockPanel Margin="0 5"> |
