// Generated by the protocol buffer compiler. DO NOT EDIT! // source: ums.proto package com.opera.core.systems.scope.protos; public final class UmsProtos { private UmsProtos() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public enum STPType implements com.google.protobuf.ProtocolMessageEnum { COMMAND(0, 1), RESPONSE(1, 2), EVENT(2, 3), ERROR(3, 4), ; public static final int COMMAND_VALUE = 1; public static final int RESPONSE_VALUE = 2; public static final int EVENT_VALUE = 3; public static final int ERROR_VALUE = 4; public final int getNumber() { return value; } public static STPType valueOf(int value) { switch (value) { case 1: return COMMAND; case 2: return RESPONSE; case 3: return EVENT; case 4: return ERROR; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<STPType> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<STPType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<STPType>() { public STPType findValueByNumber(int number) { return STPType.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.opera.core.systems.scope.protos.UmsProtos.getDescriptor().getEnumTypes().get(0); } private static final STPType[] VALUES = { COMMAND, RESPONSE, EVENT, ERROR, }; public static STPType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private STPType(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:ums.STPType) } public enum Status implements com.google.protobuf.ProtocolMessageEnum { OK(0, 0), BAD_REQUEST(1, 3), INTERNAL_ERROR(2, 4), COMMAND_NOT_FOUND(3, 5), SERVICE_NOT_FOUND(4, 6), OUT_OF_MEMORY(5, 7), SERVICE_NOT_ENABLED(6, 8), SERVICE_ALREADY_ENABLED(7, 9), ; public static final int OK_VALUE = 0; public static final int BAD_REQUEST_VALUE = 3; public static final int INTERNAL_ERROR_VALUE = 4; public static final int COMMAND_NOT_FOUND_VALUE = 5; public static final int SERVICE_NOT_FOUND_VALUE = 6; public static final int OUT_OF_MEMORY_VALUE = 7; public static final int SERVICE_NOT_ENABLED_VALUE = 8; public static final int SERVICE_ALREADY_ENABLED_VALUE = 9; public final int getNumber() { return value; } public static Status valueOf(int value) { switch (value) { case 0: return OK; case 3: return BAD_REQUEST; case 4: return INTERNAL_ERROR; case 5: return COMMAND_NOT_FOUND; case 6: return SERVICE_NOT_FOUND; case 7: return OUT_OF_MEMORY; case 8: return SERVICE_NOT_ENABLED; case 9: return SERVICE_ALREADY_ENABLED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<Status> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Status>() { public Status findValueByNumber(int number) { return Status.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.opera.core.systems.scope.protos.UmsProtos.getDescriptor().getEnumTypes().get(1); } private static final Status[] VALUES = { OK, BAD_REQUEST, INTERNAL_ERROR, COMMAND_NOT_FOUND, SERVICE_NOT_FOUND, OUT_OF_MEMORY, SERVICE_NOT_ENABLED, SERVICE_ALREADY_ENABLED, }; public static Status valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private Status(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:ums.Status) } public enum Format implements com.google.protobuf.ProtocolMessageEnum { PROTOCOL_BUFFER(0, 0), JSON(1, 1), XML(2, 2), ; public static final int PROTOCOL_BUFFER_VALUE = 0; public static final int JSON_VALUE = 1; public static final int XML_VALUE = 2; public final int getNumber() { return value; } public static Format valueOf(int value) { switch (value) { case 0: return PROTOCOL_BUFFER; case 1: return JSON; case 2: return XML; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<Format> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<Format> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Format>() { public Format findValueByNumber(int number) { return Format.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.opera.core.systems.scope.protos.UmsProtos.getDescriptor().getEnumTypes().get(2); } private static final Format[] VALUES = { PROTOCOL_BUFFER, JSON, XML, }; public static Format valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private Format(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:ums.Format) } public interface ErrorInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string description = 1; boolean hasDescription(); String getDescription(); // optional sint32 line = 2; boolean hasLine(); int getLine(); // optional sint32 column = 3; boolean hasColumn(); int getColumn(); // optional sint32 offset = 4; boolean hasOffset(); int getOffset(); } public static final class ErrorInfo extends com.google.protobuf.GeneratedMessage implements ErrorInfoOrBuilder { // Use ErrorInfo.newBuilder() to construct. private ErrorInfo(Builder builder) { super(builder); } private ErrorInfo(boolean noInit) {} private static final ErrorInfo defaultInstance; public static ErrorInfo getDefaultInstance() { return defaultInstance; } public ErrorInfo getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_ErrorInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_ErrorInfo_fieldAccessorTable; } private int bitField0_; // optional string description = 1; public static final int DESCRIPTION_FIELD_NUMBER = 1; private java.lang.Object description_; public boolean hasDescription() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getDescription() { java.lang.Object ref = description_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { description_ = s; } return s; } } private com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional sint32 line = 2; public static final int LINE_FIELD_NUMBER = 2; private int line_; public boolean hasLine() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getLine() { return line_; } // optional sint32 column = 3; public static final int COLUMN_FIELD_NUMBER = 3; private int column_; public boolean hasColumn() { return ((bitField0_ & 0x00000004) == 0x00000004); } public int getColumn() { return column_; } // optional sint32 offset = 4; public static final int OFFSET_FIELD_NUMBER = 4; private int offset_; public boolean hasOffset() { return ((bitField0_ & 0x00000008) == 0x00000008); } public int getOffset() { return offset_; } private void initFields() { description_ = ""; line_ = 0; column_ = 0; offset_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getDescriptionBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeSInt32(2, line_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeSInt32(3, column_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeSInt32(4, offset_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getDescriptionBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(2, line_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(3, column_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(4, offset_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.opera.core.systems.scope.protos.UmsProtos.ErrorInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_ErrorInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_ErrorInfo_fieldAccessorTable; } // Construct using com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); description_ = ""; bitField0_ = (bitField0_ & ~0x00000001); line_ = 0; bitField0_ = (bitField0_ & ~0x00000002); column_ = 0; bitField0_ = (bitField0_ & ~0x00000004); offset_ = 0; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo.getDescriptor(); } public com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo getDefaultInstanceForType() { return com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo.getDefaultInstance(); } public com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo build() { com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo buildPartial() { com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo result = new com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.description_ = description_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.line_ = line_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.column_ = column_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.offset_ = offset_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo) { return mergeFrom((com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo other) { if (other == com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo.getDefaultInstance()) return this; if (other.hasDescription()) { setDescription(other.getDescription()); } if (other.hasLine()) { setLine(other.getLine()); } if (other.hasColumn()) { setColumn(other.getColumn()); } if (other.hasOffset()) { setOffset(other.getOffset()); } this.mergeUnknownFields(other.getUnknownFields()); 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.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; description_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; line_ = input.readSInt32(); break; } case 24: { bitField0_ |= 0x00000004; column_ = input.readSInt32(); break; } case 32: { bitField0_ |= 0x00000008; offset_ = input.readSInt32(); break; } } } } private int bitField0_; // optional string description = 1; private java.lang.Object description_ = ""; public boolean hasDescription() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); description_ = s; return s; } else { return (String) ref; } } public Builder setDescription(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; description_ = value; onChanged(); return this; } public Builder clearDescription() { bitField0_ = (bitField0_ & ~0x00000001); description_ = getDefaultInstance().getDescription(); onChanged(); return this; } void setDescription(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; description_ = value; onChanged(); } // optional sint32 line = 2; private int line_ ; public boolean hasLine() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getLine() { return line_; } public Builder setLine(int value) { bitField0_ |= 0x00000002; line_ = value; onChanged(); return this; } public Builder clearLine() { bitField0_ = (bitField0_ & ~0x00000002); line_ = 0; onChanged(); return this; } // optional sint32 column = 3; private int column_ ; public boolean hasColumn() { return ((bitField0_ & 0x00000004) == 0x00000004); } public int getColumn() { return column_; } public Builder setColumn(int value) { bitField0_ |= 0x00000004; column_ = value; onChanged(); return this; } public Builder clearColumn() { bitField0_ = (bitField0_ & ~0x00000004); column_ = 0; onChanged(); return this; } // optional sint32 offset = 4; private int offset_ ; public boolean hasOffset() { return ((bitField0_ & 0x00000008) == 0x00000008); } public int getOffset() { return offset_; } public Builder setOffset(int value) { bitField0_ |= 0x00000008; offset_ = value; onChanged(); return this; } public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000008); offset_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ums.ErrorInfo) } static { defaultInstance = new ErrorInfo(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ums.ErrorInfo) } public interface TransportMessageOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string service = 1; boolean hasService(); String getService(); // required uint32 commandID = 2; boolean hasCommandID(); int getCommandID(); // required uint32 format = 3; boolean hasFormat(); int getFormat(); // optional uint32 status = 4; boolean hasStatus(); int getStatus(); // optional uint32 tag = 5; boolean hasTag(); int getTag(); // required bytes payload = 8; boolean hasPayload(); com.google.protobuf.ByteString getPayload(); } public static final class TransportMessage extends com.google.protobuf.GeneratedMessage implements TransportMessageOrBuilder { // Use TransportMessage.newBuilder() to construct. private TransportMessage(Builder builder) { super(builder); } private TransportMessage(boolean noInit) {} private static final TransportMessage defaultInstance; public static TransportMessage getDefaultInstance() { return defaultInstance; } public TransportMessage getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_TransportMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_TransportMessage_fieldAccessorTable; } private int bitField0_; // required string service = 1; public static final int SERVICE_FIELD_NUMBER = 1; private java.lang.Object service_; public boolean hasService() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getService() { java.lang.Object ref = service_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { service_ = s; } return s; } } private com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); service_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required uint32 commandID = 2; public static final int COMMANDID_FIELD_NUMBER = 2; private int commandID_; public boolean hasCommandID() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getCommandID() { return commandID_; } // required uint32 format = 3; public static final int FORMAT_FIELD_NUMBER = 3; private int format_; public boolean hasFormat() { return ((bitField0_ & 0x00000004) == 0x00000004); } public int getFormat() { return format_; } // optional uint32 status = 4; public static final int STATUS_FIELD_NUMBER = 4; private int status_; public boolean hasStatus() { return ((bitField0_ & 0x00000008) == 0x00000008); } public int getStatus() { return status_; } // optional uint32 tag = 5; public static final int TAG_FIELD_NUMBER = 5; private int tag_; public boolean hasTag() { return ((bitField0_ & 0x00000010) == 0x00000010); } public int getTag() { return tag_; } // required bytes payload = 8; public static final int PAYLOAD_FIELD_NUMBER = 8; private com.google.protobuf.ByteString payload_; public boolean hasPayload() { return ((bitField0_ & 0x00000020) == 0x00000020); } public com.google.protobuf.ByteString getPayload() { return payload_; } private void initFields() { service_ = ""; commandID_ = 0; format_ = 0; status_ = 0; tag_ = 0; payload_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasService()) { memoizedIsInitialized = 0; return false; } if (!hasCommandID()) { memoizedIsInitialized = 0; return false; } if (!hasFormat()) { memoizedIsInitialized = 0; return false; } if (!hasPayload()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getServiceBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, commandID_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, format_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(4, status_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(5, tag_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(8, payload_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getServiceBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, commandID_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, format_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, status_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, tag_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, payload_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.opera.core.systems.scope.protos.UmsProtos.TransportMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.TransportMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.TransportMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.TransportMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.TransportMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.TransportMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.TransportMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.opera.core.systems.scope.protos.UmsProtos.TransportMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.opera.core.systems.scope.protos.UmsProtos.TransportMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.TransportMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.opera.core.systems.scope.protos.UmsProtos.TransportMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.opera.core.systems.scope.protos.UmsProtos.TransportMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_TransportMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_TransportMessage_fieldAccessorTable; } // Construct using com.opera.core.systems.scope.protos.UmsProtos.TransportMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); service_ = ""; bitField0_ = (bitField0_ & ~0x00000001); commandID_ = 0; bitField0_ = (bitField0_ & ~0x00000002); format_ = 0; bitField0_ = (bitField0_ & ~0x00000004); status_ = 0; bitField0_ = (bitField0_ & ~0x00000008); tag_ = 0; bitField0_ = (bitField0_ & ~0x00000010); payload_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.opera.core.systems.scope.protos.UmsProtos.TransportMessage.getDescriptor(); } public com.opera.core.systems.scope.protos.UmsProtos.TransportMessage getDefaultInstanceForType() { return com.opera.core.systems.scope.protos.UmsProtos.TransportMessage.getDefaultInstance(); } public com.opera.core.systems.scope.protos.UmsProtos.TransportMessage build() { com.opera.core.systems.scope.protos.UmsProtos.TransportMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.opera.core.systems.scope.protos.UmsProtos.TransportMessage buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.opera.core.systems.scope.protos.UmsProtos.TransportMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.opera.core.systems.scope.protos.UmsProtos.TransportMessage buildPartial() { com.opera.core.systems.scope.protos.UmsProtos.TransportMessage result = new com.opera.core.systems.scope.protos.UmsProtos.TransportMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.service_ = service_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.commandID_ = commandID_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.format_ = format_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.status_ = status_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.tag_ = tag_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.payload_ = payload_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.opera.core.systems.scope.protos.UmsProtos.TransportMessage) { return mergeFrom((com.opera.core.systems.scope.protos.UmsProtos.TransportMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.opera.core.systems.scope.protos.UmsProtos.TransportMessage other) { if (other == com.opera.core.systems.scope.protos.UmsProtos.TransportMessage.getDefaultInstance()) return this; if (other.hasService()) { setService(other.getService()); } if (other.hasCommandID()) { setCommandID(other.getCommandID()); } if (other.hasFormat()) { setFormat(other.getFormat()); } if (other.hasStatus()) { setStatus(other.getStatus()); } if (other.hasTag()) { setTag(other.getTag()); } if (other.hasPayload()) { setPayload(other.getPayload()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasService()) { return false; } if (!hasCommandID()) { return false; } if (!hasFormat()) { return false; } if (!hasPayload()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; service_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; commandID_ = input.readUInt32(); break; } case 24: { bitField0_ |= 0x00000004; format_ = input.readUInt32(); break; } case 32: { bitField0_ |= 0x00000008; status_ = input.readUInt32(); break; } case 40: { bitField0_ |= 0x00000010; tag_ = input.readUInt32(); break; } case 66: { bitField0_ |= 0x00000020; payload_ = input.readBytes(); break; } } } } private int bitField0_; // required string service = 1; private java.lang.Object service_ = ""; public boolean hasService() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getService() { java.lang.Object ref = service_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); service_ = s; return s; } else { return (String) ref; } } public Builder setService(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; service_ = value; onChanged(); return this; } public Builder clearService() { bitField0_ = (bitField0_ & ~0x00000001); service_ = getDefaultInstance().getService(); onChanged(); return this; } void setService(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; service_ = value; onChanged(); } // required uint32 commandID = 2; private int commandID_ ; public boolean hasCommandID() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getCommandID() { return commandID_; } public Builder setCommandID(int value) { bitField0_ |= 0x00000002; commandID_ = value; onChanged(); return this; } public Builder clearCommandID() { bitField0_ = (bitField0_ & ~0x00000002); commandID_ = 0; onChanged(); return this; } // required uint32 format = 3; private int format_ ; public boolean hasFormat() { return ((bitField0_ & 0x00000004) == 0x00000004); } public int getFormat() { return format_; } public Builder setFormat(int value) { bitField0_ |= 0x00000004; format_ = value; onChanged(); return this; } public Builder clearFormat() { bitField0_ = (bitField0_ & ~0x00000004); format_ = 0; onChanged(); return this; } // optional uint32 status = 4; private int status_ ; public boolean hasStatus() { return ((bitField0_ & 0x00000008) == 0x00000008); } public int getStatus() { return status_; } public Builder setStatus(int value) { bitField0_ |= 0x00000008; status_ = value; onChanged(); return this; } public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000008); status_ = 0; onChanged(); return this; } // optional uint32 tag = 5; private int tag_ ; public boolean hasTag() { return ((bitField0_ & 0x00000010) == 0x00000010); } public int getTag() { return tag_; } public Builder setTag(int value) { bitField0_ |= 0x00000010; tag_ = value; onChanged(); return this; } public Builder clearTag() { bitField0_ = (bitField0_ & ~0x00000010); tag_ = 0; onChanged(); return this; } // required bytes payload = 8; private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; public boolean hasPayload() { return ((bitField0_ & 0x00000020) == 0x00000020); } public com.google.protobuf.ByteString getPayload() { return payload_; } public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; payload_ = value; onChanged(); return this; } public Builder clearPayload() { bitField0_ = (bitField0_ & ~0x00000020); payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ums.TransportMessage) } static { defaultInstance = new TransportMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ums.TransportMessage) } public interface CommandOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string service = 1; boolean hasService(); String getService(); // required uint32 commandID = 2; boolean hasCommandID(); int getCommandID(); // required uint32 format = 3; boolean hasFormat(); int getFormat(); // required uint32 tag = 5; boolean hasTag(); int getTag(); // required bytes payload = 8; boolean hasPayload(); com.google.protobuf.ByteString getPayload(); } public static final class Command extends com.google.protobuf.GeneratedMessage implements CommandOrBuilder { // Use Command.newBuilder() to construct. private Command(Builder builder) { super(builder); } private Command(boolean noInit) {} private static final Command defaultInstance; public static Command getDefaultInstance() { return defaultInstance; } public Command getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_Command_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_Command_fieldAccessorTable; } private int bitField0_; // required string service = 1; public static final int SERVICE_FIELD_NUMBER = 1; private java.lang.Object service_; public boolean hasService() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getService() { java.lang.Object ref = service_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { service_ = s; } return s; } } private com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); service_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required uint32 commandID = 2; public static final int COMMANDID_FIELD_NUMBER = 2; private int commandID_; public boolean hasCommandID() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getCommandID() { return commandID_; } // required uint32 format = 3; public static final int FORMAT_FIELD_NUMBER = 3; private int format_; public boolean hasFormat() { return ((bitField0_ & 0x00000004) == 0x00000004); } public int getFormat() { return format_; } // required uint32 tag = 5; public static final int TAG_FIELD_NUMBER = 5; private int tag_; public boolean hasTag() { return ((bitField0_ & 0x00000008) == 0x00000008); } public int getTag() { return tag_; } // required bytes payload = 8; public static final int PAYLOAD_FIELD_NUMBER = 8; private com.google.protobuf.ByteString payload_; public boolean hasPayload() { return ((bitField0_ & 0x00000010) == 0x00000010); } public com.google.protobuf.ByteString getPayload() { return payload_; } private void initFields() { service_ = ""; commandID_ = 0; format_ = 0; tag_ = 0; payload_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasService()) { memoizedIsInitialized = 0; return false; } if (!hasCommandID()) { memoizedIsInitialized = 0; return false; } if (!hasFormat()) { memoizedIsInitialized = 0; return false; } if (!hasTag()) { memoizedIsInitialized = 0; return false; } if (!hasPayload()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getServiceBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, commandID_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, format_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(5, tag_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(8, payload_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getServiceBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, commandID_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, format_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, tag_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, payload_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.opera.core.systems.scope.protos.UmsProtos.Command parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Command parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Command parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Command parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Command parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Command parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Command parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.opera.core.systems.scope.protos.UmsProtos.Command parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.opera.core.systems.scope.protos.UmsProtos.Command parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Command parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.opera.core.systems.scope.protos.UmsProtos.Command prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.opera.core.systems.scope.protos.UmsProtos.CommandOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_Command_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_Command_fieldAccessorTable; } // Construct using com.opera.core.systems.scope.protos.UmsProtos.Command.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); service_ = ""; bitField0_ = (bitField0_ & ~0x00000001); commandID_ = 0; bitField0_ = (bitField0_ & ~0x00000002); format_ = 0; bitField0_ = (bitField0_ & ~0x00000004); tag_ = 0; bitField0_ = (bitField0_ & ~0x00000008); payload_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.opera.core.systems.scope.protos.UmsProtos.Command.getDescriptor(); } public com.opera.core.systems.scope.protos.UmsProtos.Command getDefaultInstanceForType() { return com.opera.core.systems.scope.protos.UmsProtos.Command.getDefaultInstance(); } public com.opera.core.systems.scope.protos.UmsProtos.Command build() { com.opera.core.systems.scope.protos.UmsProtos.Command result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.opera.core.systems.scope.protos.UmsProtos.Command buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.opera.core.systems.scope.protos.UmsProtos.Command result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.opera.core.systems.scope.protos.UmsProtos.Command buildPartial() { com.opera.core.systems.scope.protos.UmsProtos.Command result = new com.opera.core.systems.scope.protos.UmsProtos.Command(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.service_ = service_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.commandID_ = commandID_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.format_ = format_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.tag_ = tag_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.payload_ = payload_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.opera.core.systems.scope.protos.UmsProtos.Command) { return mergeFrom((com.opera.core.systems.scope.protos.UmsProtos.Command)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.opera.core.systems.scope.protos.UmsProtos.Command other) { if (other == com.opera.core.systems.scope.protos.UmsProtos.Command.getDefaultInstance()) return this; if (other.hasService()) { setService(other.getService()); } if (other.hasCommandID()) { setCommandID(other.getCommandID()); } if (other.hasFormat()) { setFormat(other.getFormat()); } if (other.hasTag()) { setTag(other.getTag()); } if (other.hasPayload()) { setPayload(other.getPayload()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasService()) { return false; } if (!hasCommandID()) { return false; } if (!hasFormat()) { return false; } if (!hasTag()) { return false; } if (!hasPayload()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; service_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; commandID_ = input.readUInt32(); break; } case 24: { bitField0_ |= 0x00000004; format_ = input.readUInt32(); break; } case 40: { bitField0_ |= 0x00000008; tag_ = input.readUInt32(); break; } case 66: { bitField0_ |= 0x00000010; payload_ = input.readBytes(); break; } } } } private int bitField0_; // required string service = 1; private java.lang.Object service_ = ""; public boolean hasService() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getService() { java.lang.Object ref = service_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); service_ = s; return s; } else { return (String) ref; } } public Builder setService(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; service_ = value; onChanged(); return this; } public Builder clearService() { bitField0_ = (bitField0_ & ~0x00000001); service_ = getDefaultInstance().getService(); onChanged(); return this; } void setService(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; service_ = value; onChanged(); } // required uint32 commandID = 2; private int commandID_ ; public boolean hasCommandID() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getCommandID() { return commandID_; } public Builder setCommandID(int value) { bitField0_ |= 0x00000002; commandID_ = value; onChanged(); return this; } public Builder clearCommandID() { bitField0_ = (bitField0_ & ~0x00000002); commandID_ = 0; onChanged(); return this; } // required uint32 format = 3; private int format_ ; public boolean hasFormat() { return ((bitField0_ & 0x00000004) == 0x00000004); } public int getFormat() { return format_; } public Builder setFormat(int value) { bitField0_ |= 0x00000004; format_ = value; onChanged(); return this; } public Builder clearFormat() { bitField0_ = (bitField0_ & ~0x00000004); format_ = 0; onChanged(); return this; } // required uint32 tag = 5; private int tag_ ; public boolean hasTag() { return ((bitField0_ & 0x00000008) == 0x00000008); } public int getTag() { return tag_; } public Builder setTag(int value) { bitField0_ |= 0x00000008; tag_ = value; onChanged(); return this; } public Builder clearTag() { bitField0_ = (bitField0_ & ~0x00000008); tag_ = 0; onChanged(); return this; } // required bytes payload = 8; private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; public boolean hasPayload() { return ((bitField0_ & 0x00000010) == 0x00000010); } public com.google.protobuf.ByteString getPayload() { return payload_; } public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; payload_ = value; onChanged(); return this; } public Builder clearPayload() { bitField0_ = (bitField0_ & ~0x00000010); payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ums.Command) } static { defaultInstance = new Command(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ums.Command) } public interface ResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string service = 1; boolean hasService(); String getService(); // required uint32 commandID = 2; boolean hasCommandID(); int getCommandID(); // required uint32 format = 3; boolean hasFormat(); int getFormat(); // required uint32 tag = 5; boolean hasTag(); int getTag(); // required bytes payload = 8; boolean hasPayload(); com.google.protobuf.ByteString getPayload(); } public static final class Response extends com.google.protobuf.GeneratedMessage implements ResponseOrBuilder { // Use Response.newBuilder() to construct. private Response(Builder builder) { super(builder); } private Response(boolean noInit) {} private static final Response defaultInstance; public static Response getDefaultInstance() { return defaultInstance; } public Response getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_Response_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_Response_fieldAccessorTable; } private int bitField0_; // required string service = 1; public static final int SERVICE_FIELD_NUMBER = 1; private java.lang.Object service_; public boolean hasService() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getService() { java.lang.Object ref = service_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { service_ = s; } return s; } } private com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); service_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required uint32 commandID = 2; public static final int COMMANDID_FIELD_NUMBER = 2; private int commandID_; public boolean hasCommandID() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getCommandID() { return commandID_; } // required uint32 format = 3; public static final int FORMAT_FIELD_NUMBER = 3; private int format_; public boolean hasFormat() { return ((bitField0_ & 0x00000004) == 0x00000004); } public int getFormat() { return format_; } // required uint32 tag = 5; public static final int TAG_FIELD_NUMBER = 5; private int tag_; public boolean hasTag() { return ((bitField0_ & 0x00000008) == 0x00000008); } public int getTag() { return tag_; } // required bytes payload = 8; public static final int PAYLOAD_FIELD_NUMBER = 8; private com.google.protobuf.ByteString payload_; public boolean hasPayload() { return ((bitField0_ & 0x00000010) == 0x00000010); } public com.google.protobuf.ByteString getPayload() { return payload_; } private void initFields() { service_ = ""; commandID_ = 0; format_ = 0; tag_ = 0; payload_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasService()) { memoizedIsInitialized = 0; return false; } if (!hasCommandID()) { memoizedIsInitialized = 0; return false; } if (!hasFormat()) { memoizedIsInitialized = 0; return false; } if (!hasTag()) { memoizedIsInitialized = 0; return false; } if (!hasPayload()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getServiceBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, commandID_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, format_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(5, tag_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(8, payload_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getServiceBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, commandID_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, format_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, tag_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, payload_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.opera.core.systems.scope.protos.UmsProtos.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Response parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Response parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Response parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Response parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.opera.core.systems.scope.protos.UmsProtos.Response parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.opera.core.systems.scope.protos.UmsProtos.Response parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Response parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.opera.core.systems.scope.protos.UmsProtos.Response prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.opera.core.systems.scope.protos.UmsProtos.ResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_Response_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_Response_fieldAccessorTable; } // Construct using com.opera.core.systems.scope.protos.UmsProtos.Response.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); service_ = ""; bitField0_ = (bitField0_ & ~0x00000001); commandID_ = 0; bitField0_ = (bitField0_ & ~0x00000002); format_ = 0; bitField0_ = (bitField0_ & ~0x00000004); tag_ = 0; bitField0_ = (bitField0_ & ~0x00000008); payload_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.opera.core.systems.scope.protos.UmsProtos.Response.getDescriptor(); } public com.opera.core.systems.scope.protos.UmsProtos.Response getDefaultInstanceForType() { return com.opera.core.systems.scope.protos.UmsProtos.Response.getDefaultInstance(); } public com.opera.core.systems.scope.protos.UmsProtos.Response build() { com.opera.core.systems.scope.protos.UmsProtos.Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.opera.core.systems.scope.protos.UmsProtos.Response buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.opera.core.systems.scope.protos.UmsProtos.Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.opera.core.systems.scope.protos.UmsProtos.Response buildPartial() { com.opera.core.systems.scope.protos.UmsProtos.Response result = new com.opera.core.systems.scope.protos.UmsProtos.Response(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.service_ = service_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.commandID_ = commandID_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.format_ = format_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.tag_ = tag_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.payload_ = payload_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.opera.core.systems.scope.protos.UmsProtos.Response) { return mergeFrom((com.opera.core.systems.scope.protos.UmsProtos.Response)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.opera.core.systems.scope.protos.UmsProtos.Response other) { if (other == com.opera.core.systems.scope.protos.UmsProtos.Response.getDefaultInstance()) return this; if (other.hasService()) { setService(other.getService()); } if (other.hasCommandID()) { setCommandID(other.getCommandID()); } if (other.hasFormat()) { setFormat(other.getFormat()); } if (other.hasTag()) { setTag(other.getTag()); } if (other.hasPayload()) { setPayload(other.getPayload()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasService()) { return false; } if (!hasCommandID()) { return false; } if (!hasFormat()) { return false; } if (!hasTag()) { return false; } if (!hasPayload()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; service_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; commandID_ = input.readUInt32(); break; } case 24: { bitField0_ |= 0x00000004; format_ = input.readUInt32(); break; } case 40: { bitField0_ |= 0x00000008; tag_ = input.readUInt32(); break; } case 66: { bitField0_ |= 0x00000010; payload_ = input.readBytes(); break; } } } } private int bitField0_; // required string service = 1; private java.lang.Object service_ = ""; public boolean hasService() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getService() { java.lang.Object ref = service_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); service_ = s; return s; } else { return (String) ref; } } public Builder setService(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; service_ = value; onChanged(); return this; } public Builder clearService() { bitField0_ = (bitField0_ & ~0x00000001); service_ = getDefaultInstance().getService(); onChanged(); return this; } void setService(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; service_ = value; onChanged(); } // required uint32 commandID = 2; private int commandID_ ; public boolean hasCommandID() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getCommandID() { return commandID_; } public Builder setCommandID(int value) { bitField0_ |= 0x00000002; commandID_ = value; onChanged(); return this; } public Builder clearCommandID() { bitField0_ = (bitField0_ & ~0x00000002); commandID_ = 0; onChanged(); return this; } // required uint32 format = 3; private int format_ ; public boolean hasFormat() { return ((bitField0_ & 0x00000004) == 0x00000004); } public int getFormat() { return format_; } public Builder setFormat(int value) { bitField0_ |= 0x00000004; format_ = value; onChanged(); return this; } public Builder clearFormat() { bitField0_ = (bitField0_ & ~0x00000004); format_ = 0; onChanged(); return this; } // required uint32 tag = 5; private int tag_ ; public boolean hasTag() { return ((bitField0_ & 0x00000008) == 0x00000008); } public int getTag() { return tag_; } public Builder setTag(int value) { bitField0_ |= 0x00000008; tag_ = value; onChanged(); return this; } public Builder clearTag() { bitField0_ = (bitField0_ & ~0x00000008); tag_ = 0; onChanged(); return this; } // required bytes payload = 8; private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; public boolean hasPayload() { return ((bitField0_ & 0x00000010) == 0x00000010); } public com.google.protobuf.ByteString getPayload() { return payload_; } public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; payload_ = value; onChanged(); return this; } public Builder clearPayload() { bitField0_ = (bitField0_ & ~0x00000010); payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ums.Response) } static { defaultInstance = new Response(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ums.Response) } public interface EventOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string service = 1; boolean hasService(); String getService(); // required uint32 commandID = 2; boolean hasCommandID(); int getCommandID(); // required uint32 format = 3; boolean hasFormat(); int getFormat(); // required bytes payload = 8; boolean hasPayload(); com.google.protobuf.ByteString getPayload(); } public static final class Event extends com.google.protobuf.GeneratedMessage implements EventOrBuilder { // Use Event.newBuilder() to construct. private Event(Builder builder) { super(builder); } private Event(boolean noInit) {} private static final Event defaultInstance; public static Event getDefaultInstance() { return defaultInstance; } public Event getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_Event_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_Event_fieldAccessorTable; } private int bitField0_; // required string service = 1; public static final int SERVICE_FIELD_NUMBER = 1; private java.lang.Object service_; public boolean hasService() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getService() { java.lang.Object ref = service_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { service_ = s; } return s; } } private com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); service_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required uint32 commandID = 2; public static final int COMMANDID_FIELD_NUMBER = 2; private int commandID_; public boolean hasCommandID() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getCommandID() { return commandID_; } // required uint32 format = 3; public static final int FORMAT_FIELD_NUMBER = 3; private int format_; public boolean hasFormat() { return ((bitField0_ & 0x00000004) == 0x00000004); } public int getFormat() { return format_; } // required bytes payload = 8; public static final int PAYLOAD_FIELD_NUMBER = 8; private com.google.protobuf.ByteString payload_; public boolean hasPayload() { return ((bitField0_ & 0x00000008) == 0x00000008); } public com.google.protobuf.ByteString getPayload() { return payload_; } private void initFields() { service_ = ""; commandID_ = 0; format_ = 0; payload_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasService()) { memoizedIsInitialized = 0; return false; } if (!hasCommandID()) { memoizedIsInitialized = 0; return false; } if (!hasFormat()) { memoizedIsInitialized = 0; return false; } if (!hasPayload()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getServiceBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, commandID_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, format_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(8, payload_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getServiceBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, commandID_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, format_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, payload_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.opera.core.systems.scope.protos.UmsProtos.Event parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Event parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Event parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Event parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Event parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Event parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Event parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.opera.core.systems.scope.protos.UmsProtos.Event parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.opera.core.systems.scope.protos.UmsProtos.Event parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Event parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.opera.core.systems.scope.protos.UmsProtos.Event prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.opera.core.systems.scope.protos.UmsProtos.EventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_Event_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_Event_fieldAccessorTable; } // Construct using com.opera.core.systems.scope.protos.UmsProtos.Event.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); service_ = ""; bitField0_ = (bitField0_ & ~0x00000001); commandID_ = 0; bitField0_ = (bitField0_ & ~0x00000002); format_ = 0; bitField0_ = (bitField0_ & ~0x00000004); payload_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.opera.core.systems.scope.protos.UmsProtos.Event.getDescriptor(); } public com.opera.core.systems.scope.protos.UmsProtos.Event getDefaultInstanceForType() { return com.opera.core.systems.scope.protos.UmsProtos.Event.getDefaultInstance(); } public com.opera.core.systems.scope.protos.UmsProtos.Event build() { com.opera.core.systems.scope.protos.UmsProtos.Event result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.opera.core.systems.scope.protos.UmsProtos.Event buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.opera.core.systems.scope.protos.UmsProtos.Event result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.opera.core.systems.scope.protos.UmsProtos.Event buildPartial() { com.opera.core.systems.scope.protos.UmsProtos.Event result = new com.opera.core.systems.scope.protos.UmsProtos.Event(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.service_ = service_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.commandID_ = commandID_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.format_ = format_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.payload_ = payload_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.opera.core.systems.scope.protos.UmsProtos.Event) { return mergeFrom((com.opera.core.systems.scope.protos.UmsProtos.Event)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.opera.core.systems.scope.protos.UmsProtos.Event other) { if (other == com.opera.core.systems.scope.protos.UmsProtos.Event.getDefaultInstance()) return this; if (other.hasService()) { setService(other.getService()); } if (other.hasCommandID()) { setCommandID(other.getCommandID()); } if (other.hasFormat()) { setFormat(other.getFormat()); } if (other.hasPayload()) { setPayload(other.getPayload()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasService()) { return false; } if (!hasCommandID()) { return false; } if (!hasFormat()) { return false; } if (!hasPayload()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; service_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; commandID_ = input.readUInt32(); break; } case 24: { bitField0_ |= 0x00000004; format_ = input.readUInt32(); break; } case 66: { bitField0_ |= 0x00000008; payload_ = input.readBytes(); break; } } } } private int bitField0_; // required string service = 1; private java.lang.Object service_ = ""; public boolean hasService() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getService() { java.lang.Object ref = service_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); service_ = s; return s; } else { return (String) ref; } } public Builder setService(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; service_ = value; onChanged(); return this; } public Builder clearService() { bitField0_ = (bitField0_ & ~0x00000001); service_ = getDefaultInstance().getService(); onChanged(); return this; } void setService(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; service_ = value; onChanged(); } // required uint32 commandID = 2; private int commandID_ ; public boolean hasCommandID() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getCommandID() { return commandID_; } public Builder setCommandID(int value) { bitField0_ |= 0x00000002; commandID_ = value; onChanged(); return this; } public Builder clearCommandID() { bitField0_ = (bitField0_ & ~0x00000002); commandID_ = 0; onChanged(); return this; } // required uint32 format = 3; private int format_ ; public boolean hasFormat() { return ((bitField0_ & 0x00000004) == 0x00000004); } public int getFormat() { return format_; } public Builder setFormat(int value) { bitField0_ |= 0x00000004; format_ = value; onChanged(); return this; } public Builder clearFormat() { bitField0_ = (bitField0_ & ~0x00000004); format_ = 0; onChanged(); return this; } // required bytes payload = 8; private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; public boolean hasPayload() { return ((bitField0_ & 0x00000008) == 0x00000008); } public com.google.protobuf.ByteString getPayload() { return payload_; } public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; payload_ = value; onChanged(); return this; } public Builder clearPayload() { bitField0_ = (bitField0_ & ~0x00000008); payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ums.Event) } static { defaultInstance = new Event(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ums.Event) } public interface ErrorOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string service = 1; boolean hasService(); String getService(); // required uint32 commandID = 2; boolean hasCommandID(); int getCommandID(); // required uint32 format = 3; boolean hasFormat(); int getFormat(); // optional uint32 status = 4; boolean hasStatus(); int getStatus(); // optional uint32 tag = 5; boolean hasTag(); int getTag(); // required bytes payload = 8; boolean hasPayload(); com.google.protobuf.ByteString getPayload(); } public static final class Error extends com.google.protobuf.GeneratedMessage implements ErrorOrBuilder { // Use Error.newBuilder() to construct. private Error(Builder builder) { super(builder); } private Error(boolean noInit) {} private static final Error defaultInstance; public static Error getDefaultInstance() { return defaultInstance; } public Error getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_Error_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_Error_fieldAccessorTable; } private int bitField0_; // required string service = 1; public static final int SERVICE_FIELD_NUMBER = 1; private java.lang.Object service_; public boolean hasService() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getService() { java.lang.Object ref = service_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { service_ = s; } return s; } } private com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); service_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required uint32 commandID = 2; public static final int COMMANDID_FIELD_NUMBER = 2; private int commandID_; public boolean hasCommandID() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getCommandID() { return commandID_; } // required uint32 format = 3; public static final int FORMAT_FIELD_NUMBER = 3; private int format_; public boolean hasFormat() { return ((bitField0_ & 0x00000004) == 0x00000004); } public int getFormat() { return format_; } // optional uint32 status = 4; public static final int STATUS_FIELD_NUMBER = 4; private int status_; public boolean hasStatus() { return ((bitField0_ & 0x00000008) == 0x00000008); } public int getStatus() { return status_; } // optional uint32 tag = 5; public static final int TAG_FIELD_NUMBER = 5; private int tag_; public boolean hasTag() { return ((bitField0_ & 0x00000010) == 0x00000010); } public int getTag() { return tag_; } // required bytes payload = 8; public static final int PAYLOAD_FIELD_NUMBER = 8; private com.google.protobuf.ByteString payload_; public boolean hasPayload() { return ((bitField0_ & 0x00000020) == 0x00000020); } public com.google.protobuf.ByteString getPayload() { return payload_; } private void initFields() { service_ = ""; commandID_ = 0; format_ = 0; status_ = 0; tag_ = 0; payload_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasService()) { memoizedIsInitialized = 0; return false; } if (!hasCommandID()) { memoizedIsInitialized = 0; return false; } if (!hasFormat()) { memoizedIsInitialized = 0; return false; } if (!hasPayload()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getServiceBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, commandID_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, format_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(4, status_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(5, tag_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(8, payload_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getServiceBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, commandID_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, format_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, status_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, tag_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, payload_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.opera.core.systems.scope.protos.UmsProtos.Error parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Error parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Error parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Error parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Error parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Error parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Error parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.opera.core.systems.scope.protos.UmsProtos.Error parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.opera.core.systems.scope.protos.UmsProtos.Error parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.UmsProtos.Error parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.opera.core.systems.scope.protos.UmsProtos.Error prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.opera.core.systems.scope.protos.UmsProtos.ErrorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_Error_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.UmsProtos.internal_static_ums_Error_fieldAccessorTable; } // Construct using com.opera.core.systems.scope.protos.UmsProtos.Error.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); service_ = ""; bitField0_ = (bitField0_ & ~0x00000001); commandID_ = 0; bitField0_ = (bitField0_ & ~0x00000002); format_ = 0; bitField0_ = (bitField0_ & ~0x00000004); status_ = 0; bitField0_ = (bitField0_ & ~0x00000008); tag_ = 0; bitField0_ = (bitField0_ & ~0x00000010); payload_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.opera.core.systems.scope.protos.UmsProtos.Error.getDescriptor(); } public com.opera.core.systems.scope.protos.UmsProtos.Error getDefaultInstanceForType() { return com.opera.core.systems.scope.protos.UmsProtos.Error.getDefaultInstance(); } public com.opera.core.systems.scope.protos.UmsProtos.Error build() { com.opera.core.systems.scope.protos.UmsProtos.Error result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.opera.core.systems.scope.protos.UmsProtos.Error buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.opera.core.systems.scope.protos.UmsProtos.Error result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.opera.core.systems.scope.protos.UmsProtos.Error buildPartial() { com.opera.core.systems.scope.protos.UmsProtos.Error result = new com.opera.core.systems.scope.protos.UmsProtos.Error(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.service_ = service_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.commandID_ = commandID_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.format_ = format_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.status_ = status_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.tag_ = tag_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.payload_ = payload_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.opera.core.systems.scope.protos.UmsProtos.Error) { return mergeFrom((com.opera.core.systems.scope.protos.UmsProtos.Error)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.opera.core.systems.scope.protos.UmsProtos.Error other) { if (other == com.opera.core.systems.scope.protos.UmsProtos.Error.getDefaultInstance()) return this; if (other.hasService()) { setService(other.getService()); } if (other.hasCommandID()) { setCommandID(other.getCommandID()); } if (other.hasFormat()) { setFormat(other.getFormat()); } if (other.hasStatus()) { setStatus(other.getStatus()); } if (other.hasTag()) { setTag(other.getTag()); } if (other.hasPayload()) { setPayload(other.getPayload()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasService()) { return false; } if (!hasCommandID()) { return false; } if (!hasFormat()) { return false; } if (!hasPayload()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; service_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; commandID_ = input.readUInt32(); break; } case 24: { bitField0_ |= 0x00000004; format_ = input.readUInt32(); break; } case 32: { bitField0_ |= 0x00000008; status_ = input.readUInt32(); break; } case 40: { bitField0_ |= 0x00000010; tag_ = input.readUInt32(); break; } case 66: { bitField0_ |= 0x00000020; payload_ = input.readBytes(); break; } } } } private int bitField0_; // required string service = 1; private java.lang.Object service_ = ""; public boolean hasService() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getService() { java.lang.Object ref = service_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); service_ = s; return s; } else { return (String) ref; } } public Builder setService(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; service_ = value; onChanged(); return this; } public Builder clearService() { bitField0_ = (bitField0_ & ~0x00000001); service_ = getDefaultInstance().getService(); onChanged(); return this; } void setService(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; service_ = value; onChanged(); } // required uint32 commandID = 2; private int commandID_ ; public boolean hasCommandID() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getCommandID() { return commandID_; } public Builder setCommandID(int value) { bitField0_ |= 0x00000002; commandID_ = value; onChanged(); return this; } public Builder clearCommandID() { bitField0_ = (bitField0_ & ~0x00000002); commandID_ = 0; onChanged(); return this; } // required uint32 format = 3; private int format_ ; public boolean hasFormat() { return ((bitField0_ & 0x00000004) == 0x00000004); } public int getFormat() { return format_; } public Builder setFormat(int value) { bitField0_ |= 0x00000004; format_ = value; onChanged(); return this; } public Builder clearFormat() { bitField0_ = (bitField0_ & ~0x00000004); format_ = 0; onChanged(); return this; } // optional uint32 status = 4; private int status_ ; public boolean hasStatus() { return ((bitField0_ & 0x00000008) == 0x00000008); } public int getStatus() { return status_; } public Builder setStatus(int value) { bitField0_ |= 0x00000008; status_ = value; onChanged(); return this; } public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000008); status_ = 0; onChanged(); return this; } // optional uint32 tag = 5; private int tag_ ; public boolean hasTag() { return ((bitField0_ & 0x00000010) == 0x00000010); } public int getTag() { return tag_; } public Builder setTag(int value) { bitField0_ |= 0x00000010; tag_ = value; onChanged(); return this; } public Builder clearTag() { bitField0_ = (bitField0_ & ~0x00000010); tag_ = 0; onChanged(); return this; } // required bytes payload = 8; private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; public boolean hasPayload() { return ((bitField0_ & 0x00000020) == 0x00000020); } public com.google.protobuf.ByteString getPayload() { return payload_; } public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; payload_ = value; onChanged(); return this; } public Builder clearPayload() { bitField0_ = (bitField0_ & ~0x00000020); payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ums.Error) } static { defaultInstance = new Error(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ums.Error) } private static com.google.protobuf.Descriptors.Descriptor internal_static_ums_ErrorInfo_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ums_ErrorInfo_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_ums_TransportMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ums_TransportMessage_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_ums_Command_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ums_Command_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_ums_Response_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ums_Response_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_ums_Event_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ums_Event_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_ums_Error_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ums_Error_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\tums.proto\022\003ums\032\"opera/scope/scope_desc" + "riptor.proto\"N\n\tErrorInfo\022\023\n\013description" + "\030\001 \001(\t\022\014\n\004line\030\002 \001(\021\022\016\n\006column\030\003 \001(\021\022\016\n\006" + "offset\030\004 \001(\021\"t\n\020TransportMessage\022\017\n\007serv" + "ice\030\001 \002(\t\022\021\n\tcommandID\030\002 \002(\r\022\016\n\006format\030\003" + " \002(\r\022\016\n\006status\030\004 \001(\r\022\013\n\003tag\030\005 \001(\r\022\017\n\007pay" + "load\030\010 \002(\014\"[\n\007Command\022\017\n\007service\030\001 \002(\t\022\021" + "\n\tcommandID\030\002 \002(\r\022\016\n\006format\030\003 \002(\r\022\013\n\003tag" + "\030\005 \002(\r\022\017\n\007payload\030\010 \002(\014\"\\\n\010Response\022\017\n\007s" + "ervice\030\001 \002(\t\022\021\n\tcommandID\030\002 \002(\r\022\016\n\006forma", "t\030\003 \002(\r\022\013\n\003tag\030\005 \002(\r\022\017\n\007payload\030\010 \002(\014\"L\n" + "\005Event\022\017\n\007service\030\001 \002(\t\022\021\n\tcommandID\030\002 \002" + "(\r\022\016\n\006format\030\003 \002(\r\022\017\n\007payload\030\010 \002(\014\"i\n\005E" + "rror\022\017\n\007service\030\001 \002(\t\022\021\n\tcommandID\030\002 \002(\r" + "\022\016\n\006format\030\003 \002(\r\022\016\n\006status\030\004 \001(\r\022\013\n\003tag\030" + "\005 \001(\r\022\017\n\007payload\030\010 \002(\014*:\n\007STPType\022\013\n\007COM" + "MAND\020\001\022\014\n\010RESPONSE\020\002\022\t\n\005EVENT\020\003\022\t\n\005ERROR" + "\020\004*\254\001\n\006Status\022\006\n\002OK\020\000\022\017\n\013BAD_REQUEST\020\003\022\022" + "\n\016INTERNAL_ERROR\020\004\022\025\n\021COMMAND_NOT_FOUND\020" + "\005\022\025\n\021SERVICE_NOT_FOUND\020\006\022\021\n\rOUT_OF_MEMOR", "Y\020\007\022\027\n\023SERVICE_NOT_ENABLED\020\010\022\033\n\027SERVICE_" + "ALREADY_ENABLED\020\t*0\n\006Format\022\023\n\017PROTOCOL_" + "BUFFER\020\000\022\010\n\004JSON\020\001\022\007\n\003XML\020\002B2\n#com.opera" + ".core.systems.scope.protosB\tUmsProtosH\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; internal_static_ums_ErrorInfo_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_ums_ErrorInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ums_ErrorInfo_descriptor, new java.lang.String[] { "Description", "Line", "Column", "Offset", }, com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo.class, com.opera.core.systems.scope.protos.UmsProtos.ErrorInfo.Builder.class); internal_static_ums_TransportMessage_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_ums_TransportMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ums_TransportMessage_descriptor, new java.lang.String[] { "Service", "CommandID", "Format", "Status", "Tag", "Payload", }, com.opera.core.systems.scope.protos.UmsProtos.TransportMessage.class, com.opera.core.systems.scope.protos.UmsProtos.TransportMessage.Builder.class); internal_static_ums_Command_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_ums_Command_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ums_Command_descriptor, new java.lang.String[] { "Service", "CommandID", "Format", "Tag", "Payload", }, com.opera.core.systems.scope.protos.UmsProtos.Command.class, com.opera.core.systems.scope.protos.UmsProtos.Command.Builder.class); internal_static_ums_Response_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_ums_Response_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ums_Response_descriptor, new java.lang.String[] { "Service", "CommandID", "Format", "Tag", "Payload", }, com.opera.core.systems.scope.protos.UmsProtos.Response.class, com.opera.core.systems.scope.protos.UmsProtos.Response.Builder.class); internal_static_ums_Event_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_ums_Event_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ums_Event_descriptor, new java.lang.String[] { "Service", "CommandID", "Format", "Payload", }, com.opera.core.systems.scope.protos.UmsProtos.Event.class, com.opera.core.systems.scope.protos.UmsProtos.Event.Builder.class); internal_static_ums_Error_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_ums_Error_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ums_Error_descriptor, new java.lang.String[] { "Service", "CommandID", "Format", "Status", "Tag", "Payload", }, com.opera.core.systems.scope.protos.UmsProtos.Error.class, com.opera.core.systems.scope.protos.UmsProtos.Error.Builder.class); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { ScopeDescriptor.getDescriptor(), }, assigner); } // @@protoc_insertion_point(outer_class_scope) }