// Generated by the protocol buffer compiler. DO NOT EDIT! // source: prefs.proto package com.opera.core.systems.scope.protos; public final class PrefsProtos { private PrefsProtos() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface PrefOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .scope.Pref.Type type = 1; boolean hasType(); com.opera.core.systems.scope.protos.PrefsProtos.Pref.Type getType(); // optional string section = 2; boolean hasSection(); String getSection(); // optional string key = 3; boolean hasKey(); String getKey(); // optional string value = 4; boolean hasValue(); String getValue(); // optional bool enabled = 5; boolean hasEnabled(); boolean getEnabled(); } public static final class Pref extends com.google.protobuf.GeneratedMessage implements PrefOrBuilder { // Use Pref.newBuilder() to construct. private Pref(Builder builder) { super(builder); } private Pref(boolean noInit) {} private static final Pref defaultInstance; public static Pref getDefaultInstance() { return defaultInstance; } public Pref getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_Pref_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_Pref_fieldAccessorTable; } public enum Type implements com.google.protobuf.ProtocolMessageEnum { STRING(0, 1), INTEGER(1, 2), BOOLEAN(2, 3), FILE(3, 4), REQUIRED_FILE(4, 5), DIRECTORY(5, 6), COLOR(6, 7), ; public static final int STRING_VALUE = 1; public static final int INTEGER_VALUE = 2; public static final int BOOLEAN_VALUE = 3; public static final int FILE_VALUE = 4; public static final int REQUIRED_FILE_VALUE = 5; public static final int DIRECTORY_VALUE = 6; public static final int COLOR_VALUE = 7; public final int getNumber() { return value; } public static Type valueOf(int value) { switch (value) { case 1: return STRING; case 2: return INTEGER; case 3: return BOOLEAN; case 4: return FILE; case 5: return REQUIRED_FILE; case 6: return DIRECTORY; case 7: return COLOR; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<Type> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Type>() { public Type findValueByNumber(int number) { return Type.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.PrefsProtos.Pref.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = { STRING, INTEGER, BOOLEAN, FILE, REQUIRED_FILE, DIRECTORY, COLOR, }; public static Type 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 Type(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:scope.Pref.Type) } private int bitField0_; // required .scope.Pref.Type type = 1; public static final int TYPE_FIELD_NUMBER = 1; private com.opera.core.systems.scope.protos.PrefsProtos.Pref.Type type_; public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } public com.opera.core.systems.scope.protos.PrefsProtos.Pref.Type getType() { return type_; } // optional string section = 2; public static final int SECTION_FIELD_NUMBER = 2; private java.lang.Object section_; public boolean hasSection() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getSection() { java.lang.Object ref = section_; 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)) { section_ = s; } return s; } } private com.google.protobuf.ByteString getSectionBytes() { java.lang.Object ref = section_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); section_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string key = 3; public static final int KEY_FIELD_NUMBER = 3; private java.lang.Object key_; public boolean hasKey() { return ((bitField0_ & 0x00000004) == 0x00000004); } public String getKey() { java.lang.Object ref = key_; 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)) { key_ = s; } return s; } } private com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string value = 4; public static final int VALUE_FIELD_NUMBER = 4; private java.lang.Object value_; public boolean hasValue() { return ((bitField0_ & 0x00000008) == 0x00000008); } public String getValue() { java.lang.Object ref = value_; 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)) { value_ = s; } return s; } } private com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bool enabled = 5; public static final int ENABLED_FIELD_NUMBER = 5; private boolean enabled_; public boolean hasEnabled() { return ((bitField0_ & 0x00000010) == 0x00000010); } public boolean getEnabled() { return enabled_; } private void initFields() { type_ = com.opera.core.systems.scope.protos.PrefsProtos.Pref.Type.STRING; section_ = ""; key_ = ""; value_ = ""; enabled_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasType()) { 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.writeEnum(1, type_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getSectionBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getKeyBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getValueBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(5, enabled_); } 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 .computeEnumSize(1, type_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getSectionBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getKeyBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getValueBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, enabled_); } 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.PrefsProtos.Pref parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.Pref 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.PrefsProtos.Pref parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.Pref 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.PrefsProtos.Pref parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.Pref 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.PrefsProtos.Pref 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.PrefsProtos.Pref 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.PrefsProtos.Pref parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.Pref 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.PrefsProtos.Pref 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.PrefsProtos.PrefOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_Pref_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_Pref_fieldAccessorTable; } // Construct using com.opera.core.systems.scope.protos.PrefsProtos.Pref.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(); type_ = com.opera.core.systems.scope.protos.PrefsProtos.Pref.Type.STRING; bitField0_ = (bitField0_ & ~0x00000001); section_ = ""; bitField0_ = (bitField0_ & ~0x00000002); key_ = ""; bitField0_ = (bitField0_ & ~0x00000004); value_ = ""; bitField0_ = (bitField0_ & ~0x00000008); enabled_ = false; 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.PrefsProtos.Pref.getDescriptor(); } public com.opera.core.systems.scope.protos.PrefsProtos.Pref getDefaultInstanceForType() { return com.opera.core.systems.scope.protos.PrefsProtos.Pref.getDefaultInstance(); } public com.opera.core.systems.scope.protos.PrefsProtos.Pref build() { com.opera.core.systems.scope.protos.PrefsProtos.Pref result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.opera.core.systems.scope.protos.PrefsProtos.Pref buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.opera.core.systems.scope.protos.PrefsProtos.Pref result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.opera.core.systems.scope.protos.PrefsProtos.Pref buildPartial() { com.opera.core.systems.scope.protos.PrefsProtos.Pref result = new com.opera.core.systems.scope.protos.PrefsProtos.Pref(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.section_ = section_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.key_ = key_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.value_ = value_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.enabled_ = enabled_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.opera.core.systems.scope.protos.PrefsProtos.Pref) { return mergeFrom((com.opera.core.systems.scope.protos.PrefsProtos.Pref)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.opera.core.systems.scope.protos.PrefsProtos.Pref other) { if (other == com.opera.core.systems.scope.protos.PrefsProtos.Pref.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasSection()) { setSection(other.getSection()); } if (other.hasKey()) { setKey(other.getKey()); } if (other.hasValue()) { setValue(other.getValue()); } if (other.hasEnabled()) { setEnabled(other.getEnabled()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasType()) { 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 8: { int rawValue = input.readEnum(); com.opera.core.systems.scope.protos.PrefsProtos.Pref.Type value = com.opera.core.systems.scope.protos.PrefsProtos.Pref.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = value; } break; } case 18: { bitField0_ |= 0x00000002; section_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; key_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000008; value_ = input.readBytes(); break; } case 40: { bitField0_ |= 0x00000010; enabled_ = input.readBool(); break; } } } } private int bitField0_; // required .scope.Pref.Type type = 1; private com.opera.core.systems.scope.protos.PrefsProtos.Pref.Type type_ = com.opera.core.systems.scope.protos.PrefsProtos.Pref.Type.STRING; public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } public com.opera.core.systems.scope.protos.PrefsProtos.Pref.Type getType() { return type_; } public Builder setType(com.opera.core.systems.scope.protos.PrefsProtos.Pref.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = com.opera.core.systems.scope.protos.PrefsProtos.Pref.Type.STRING; onChanged(); return this; } // optional string section = 2; private java.lang.Object section_ = ""; public boolean hasSection() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getSection() { java.lang.Object ref = section_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); section_ = s; return s; } else { return (String) ref; } } public Builder setSection(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; section_ = value; onChanged(); return this; } public Builder clearSection() { bitField0_ = (bitField0_ & ~0x00000002); section_ = getDefaultInstance().getSection(); onChanged(); return this; } void setSection(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000002; section_ = value; onChanged(); } // optional string key = 3; private java.lang.Object key_ = ""; public boolean hasKey() { return ((bitField0_ & 0x00000004) == 0x00000004); } public String getKey() { java.lang.Object ref = key_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); key_ = s; return s; } else { return (String) ref; } } public Builder setKey(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; key_ = value; onChanged(); return this; } public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000004); key_ = getDefaultInstance().getKey(); onChanged(); return this; } void setKey(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000004; key_ = value; onChanged(); } // optional string value = 4; private java.lang.Object value_ = ""; public boolean hasValue() { return ((bitField0_ & 0x00000008) == 0x00000008); } public String getValue() { java.lang.Object ref = value_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); value_ = s; return s; } else { return (String) ref; } } public Builder setValue(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; value_ = value; onChanged(); return this; } public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000008); value_ = getDefaultInstance().getValue(); onChanged(); return this; } void setValue(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000008; value_ = value; onChanged(); } // optional bool enabled = 5; private boolean enabled_ ; public boolean hasEnabled() { return ((bitField0_ & 0x00000010) == 0x00000010); } public boolean getEnabled() { return enabled_; } public Builder setEnabled(boolean value) { bitField0_ |= 0x00000010; enabled_ = value; onChanged(); return this; } public Builder clearEnabled() { bitField0_ = (bitField0_ & ~0x00000010); enabled_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:scope.Pref) } static { defaultInstance = new Pref(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:scope.Pref) } public interface PrefValueOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string value = 1; boolean hasValue(); String getValue(); } public static final class PrefValue extends com.google.protobuf.GeneratedMessage implements PrefValueOrBuilder { // Use PrefValue.newBuilder() to construct. private PrefValue(Builder builder) { super(builder); } private PrefValue(boolean noInit) {} private static final PrefValue defaultInstance; public static PrefValue getDefaultInstance() { return defaultInstance; } public PrefValue getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_PrefValue_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_PrefValue_fieldAccessorTable; } private int bitField0_; // required string value = 1; public static final int VALUE_FIELD_NUMBER = 1; private java.lang.Object value_; public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getValue() { java.lang.Object ref = value_; 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)) { value_ = s; } return s; } } private com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { value_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasValue()) { 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, getValueBytes()); } 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, getValueBytes()); } 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.PrefsProtos.PrefValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.PrefValue 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.PrefsProtos.PrefValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.PrefValue 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.PrefsProtos.PrefValue parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.PrefValue 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.PrefsProtos.PrefValue 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.PrefsProtos.PrefValue 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.PrefsProtos.PrefValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.PrefValue 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.PrefsProtos.PrefValue 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.PrefsProtos.PrefValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_PrefValue_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_PrefValue_fieldAccessorTable; } // Construct using com.opera.core.systems.scope.protos.PrefsProtos.PrefValue.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(); value_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.opera.core.systems.scope.protos.PrefsProtos.PrefValue.getDescriptor(); } public com.opera.core.systems.scope.protos.PrefsProtos.PrefValue getDefaultInstanceForType() { return com.opera.core.systems.scope.protos.PrefsProtos.PrefValue.getDefaultInstance(); } public com.opera.core.systems.scope.protos.PrefsProtos.PrefValue build() { com.opera.core.systems.scope.protos.PrefsProtos.PrefValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.opera.core.systems.scope.protos.PrefsProtos.PrefValue buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.opera.core.systems.scope.protos.PrefsProtos.PrefValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.opera.core.systems.scope.protos.PrefsProtos.PrefValue buildPartial() { com.opera.core.systems.scope.protos.PrefsProtos.PrefValue result = new com.opera.core.systems.scope.protos.PrefsProtos.PrefValue(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.opera.core.systems.scope.protos.PrefsProtos.PrefValue) { return mergeFrom((com.opera.core.systems.scope.protos.PrefsProtos.PrefValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.opera.core.systems.scope.protos.PrefsProtos.PrefValue other) { if (other == com.opera.core.systems.scope.protos.PrefsProtos.PrefValue.getDefaultInstance()) return this; if (other.hasValue()) { setValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasValue()) { 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; value_ = input.readBytes(); break; } } } } private int bitField0_; // required string value = 1; private java.lang.Object value_ = ""; public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getValue() { java.lang.Object ref = value_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); value_ = s; return s; } else { return (String) ref; } } public Builder setValue(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = getDefaultInstance().getValue(); onChanged(); return this; } void setValue(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; value_ = value; onChanged(); } // @@protoc_insertion_point(builder_scope:scope.PrefValue) } static { defaultInstance = new PrefValue(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:scope.PrefValue) } public interface PrefListOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .scope.Pref prefList = 1; java.util.List<com.opera.core.systems.scope.protos.PrefsProtos.Pref> getPrefListList(); com.opera.core.systems.scope.protos.PrefsProtos.Pref getPrefList(int index); int getPrefListCount(); java.util.List<? extends com.opera.core.systems.scope.protos.PrefsProtos.PrefOrBuilder> getPrefListOrBuilderList(); com.opera.core.systems.scope.protos.PrefsProtos.PrefOrBuilder getPrefListOrBuilder( int index); } public static final class PrefList extends com.google.protobuf.GeneratedMessage implements PrefListOrBuilder { // Use PrefList.newBuilder() to construct. private PrefList(Builder builder) { super(builder); } private PrefList(boolean noInit) {} private static final PrefList defaultInstance; public static PrefList getDefaultInstance() { return defaultInstance; } public PrefList getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_PrefList_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_PrefList_fieldAccessorTable; } // repeated .scope.Pref prefList = 1; public static final int PREFLIST_FIELD_NUMBER = 1; private java.util.List<com.opera.core.systems.scope.protos.PrefsProtos.Pref> prefList_; public java.util.List<com.opera.core.systems.scope.protos.PrefsProtos.Pref> getPrefListList() { return prefList_; } public java.util.List<? extends com.opera.core.systems.scope.protos.PrefsProtos.PrefOrBuilder> getPrefListOrBuilderList() { return prefList_; } public int getPrefListCount() { return prefList_.size(); } public com.opera.core.systems.scope.protos.PrefsProtos.Pref getPrefList(int index) { return prefList_.get(index); } public com.opera.core.systems.scope.protos.PrefsProtos.PrefOrBuilder getPrefListOrBuilder( int index) { return prefList_.get(index); } private void initFields() { prefList_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getPrefListCount(); i++) { if (!getPrefList(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < prefList_.size(); i++) { output.writeMessage(1, prefList_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < prefList_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, prefList_.get(i)); } 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.PrefsProtos.PrefList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.PrefList 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.PrefsProtos.PrefList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.PrefList 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.PrefsProtos.PrefList parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.PrefList 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.PrefsProtos.PrefList 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.PrefsProtos.PrefList 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.PrefsProtos.PrefList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.PrefList 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.PrefsProtos.PrefList 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.PrefsProtos.PrefListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_PrefList_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_PrefList_fieldAccessorTable; } // Construct using com.opera.core.systems.scope.protos.PrefsProtos.PrefList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPrefListFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (prefListBuilder_ == null) { prefList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { prefListBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.opera.core.systems.scope.protos.PrefsProtos.PrefList.getDescriptor(); } public com.opera.core.systems.scope.protos.PrefsProtos.PrefList getDefaultInstanceForType() { return com.opera.core.systems.scope.protos.PrefsProtos.PrefList.getDefaultInstance(); } public com.opera.core.systems.scope.protos.PrefsProtos.PrefList build() { com.opera.core.systems.scope.protos.PrefsProtos.PrefList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.opera.core.systems.scope.protos.PrefsProtos.PrefList buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.opera.core.systems.scope.protos.PrefsProtos.PrefList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.opera.core.systems.scope.protos.PrefsProtos.PrefList buildPartial() { com.opera.core.systems.scope.protos.PrefsProtos.PrefList result = new com.opera.core.systems.scope.protos.PrefsProtos.PrefList(this); int from_bitField0_ = bitField0_; if (prefListBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { prefList_ = java.util.Collections.unmodifiableList(prefList_); bitField0_ = (bitField0_ & ~0x00000001); } result.prefList_ = prefList_; } else { result.prefList_ = prefListBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.opera.core.systems.scope.protos.PrefsProtos.PrefList) { return mergeFrom((com.opera.core.systems.scope.protos.PrefsProtos.PrefList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.opera.core.systems.scope.protos.PrefsProtos.PrefList other) { if (other == com.opera.core.systems.scope.protos.PrefsProtos.PrefList.getDefaultInstance()) return this; if (prefListBuilder_ == null) { if (!other.prefList_.isEmpty()) { if (prefList_.isEmpty()) { prefList_ = other.prefList_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePrefListIsMutable(); prefList_.addAll(other.prefList_); } onChanged(); } } else { if (!other.prefList_.isEmpty()) { if (prefListBuilder_.isEmpty()) { prefListBuilder_.dispose(); prefListBuilder_ = null; prefList_ = other.prefList_; bitField0_ = (bitField0_ & ~0x00000001); prefListBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPrefListFieldBuilder() : null; } else { prefListBuilder_.addAllMessages(other.prefList_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getPrefListCount(); i++) { if (!getPrefList(i).isInitialized()) { 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: { com.opera.core.systems.scope.protos.PrefsProtos.Pref.Builder subBuilder = com.opera.core.systems.scope.protos.PrefsProtos.Pref.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addPrefList(subBuilder.buildPartial()); break; } } } } private int bitField0_; // repeated .scope.Pref prefList = 1; private java.util.List<com.opera.core.systems.scope.protos.PrefsProtos.Pref> prefList_ = java.util.Collections.emptyList(); private void ensurePrefListIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { prefList_ = new java.util.ArrayList<com.opera.core.systems.scope.protos.PrefsProtos.Pref>(prefList_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< com.opera.core.systems.scope.protos.PrefsProtos.Pref, com.opera.core.systems.scope.protos.PrefsProtos.Pref.Builder, com.opera.core.systems.scope.protos.PrefsProtos.PrefOrBuilder> prefListBuilder_; public java.util.List<com.opera.core.systems.scope.protos.PrefsProtos.Pref> getPrefListList() { if (prefListBuilder_ == null) { return java.util.Collections.unmodifiableList(prefList_); } else { return prefListBuilder_.getMessageList(); } } public int getPrefListCount() { if (prefListBuilder_ == null) { return prefList_.size(); } else { return prefListBuilder_.getCount(); } } public com.opera.core.systems.scope.protos.PrefsProtos.Pref getPrefList(int index) { if (prefListBuilder_ == null) { return prefList_.get(index); } else { return prefListBuilder_.getMessage(index); } } public Builder setPrefList( int index, com.opera.core.systems.scope.protos.PrefsProtos.Pref value) { if (prefListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePrefListIsMutable(); prefList_.set(index, value); onChanged(); } else { prefListBuilder_.setMessage(index, value); } return this; } public Builder setPrefList( int index, com.opera.core.systems.scope.protos.PrefsProtos.Pref.Builder builderForValue) { if (prefListBuilder_ == null) { ensurePrefListIsMutable(); prefList_.set(index, builderForValue.build()); onChanged(); } else { prefListBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addPrefList(com.opera.core.systems.scope.protos.PrefsProtos.Pref value) { if (prefListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePrefListIsMutable(); prefList_.add(value); onChanged(); } else { prefListBuilder_.addMessage(value); } return this; } public Builder addPrefList( int index, com.opera.core.systems.scope.protos.PrefsProtos.Pref value) { if (prefListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePrefListIsMutable(); prefList_.add(index, value); onChanged(); } else { prefListBuilder_.addMessage(index, value); } return this; } public Builder addPrefList( com.opera.core.systems.scope.protos.PrefsProtos.Pref.Builder builderForValue) { if (prefListBuilder_ == null) { ensurePrefListIsMutable(); prefList_.add(builderForValue.build()); onChanged(); } else { prefListBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addPrefList( int index, com.opera.core.systems.scope.protos.PrefsProtos.Pref.Builder builderForValue) { if (prefListBuilder_ == null) { ensurePrefListIsMutable(); prefList_.add(index, builderForValue.build()); onChanged(); } else { prefListBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllPrefList( java.lang.Iterable<? extends com.opera.core.systems.scope.protos.PrefsProtos.Pref> values) { if (prefListBuilder_ == null) { ensurePrefListIsMutable(); super.addAll(values, prefList_); onChanged(); } else { prefListBuilder_.addAllMessages(values); } return this; } public Builder clearPrefList() { if (prefListBuilder_ == null) { prefList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { prefListBuilder_.clear(); } return this; } public Builder removePrefList(int index) { if (prefListBuilder_ == null) { ensurePrefListIsMutable(); prefList_.remove(index); onChanged(); } else { prefListBuilder_.remove(index); } return this; } public com.opera.core.systems.scope.protos.PrefsProtos.Pref.Builder getPrefListBuilder( int index) { return getPrefListFieldBuilder().getBuilder(index); } public com.opera.core.systems.scope.protos.PrefsProtos.PrefOrBuilder getPrefListOrBuilder( int index) { if (prefListBuilder_ == null) { return prefList_.get(index); } else { return prefListBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends com.opera.core.systems.scope.protos.PrefsProtos.PrefOrBuilder> getPrefListOrBuilderList() { if (prefListBuilder_ != null) { return prefListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(prefList_); } } public com.opera.core.systems.scope.protos.PrefsProtos.Pref.Builder addPrefListBuilder() { return getPrefListFieldBuilder().addBuilder( com.opera.core.systems.scope.protos.PrefsProtos.Pref.getDefaultInstance()); } public com.opera.core.systems.scope.protos.PrefsProtos.Pref.Builder addPrefListBuilder( int index) { return getPrefListFieldBuilder().addBuilder( index, com.opera.core.systems.scope.protos.PrefsProtos.Pref.getDefaultInstance()); } public java.util.List<com.opera.core.systems.scope.protos.PrefsProtos.Pref.Builder> getPrefListBuilderList() { return getPrefListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.opera.core.systems.scope.protos.PrefsProtos.Pref, com.opera.core.systems.scope.protos.PrefsProtos.Pref.Builder, com.opera.core.systems.scope.protos.PrefsProtos.PrefOrBuilder> getPrefListFieldBuilder() { if (prefListBuilder_ == null) { prefListBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.opera.core.systems.scope.protos.PrefsProtos.Pref, com.opera.core.systems.scope.protos.PrefsProtos.Pref.Builder, com.opera.core.systems.scope.protos.PrefsProtos.PrefOrBuilder>( prefList_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); prefList_ = null; } return prefListBuilder_; } // @@protoc_insertion_point(builder_scope:scope.PrefList) } static { defaultInstance = new PrefList(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:scope.PrefList) } public interface GetPrefArgOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string section = 1; boolean hasSection(); String getSection(); // required string key = 2; boolean hasKey(); String getKey(); // optional .scope.GetPrefArg.Mode mode = 3 [default = CURRENT]; boolean hasMode(); com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg.Mode getMode(); } public static final class GetPrefArg extends com.google.protobuf.GeneratedMessage implements GetPrefArgOrBuilder { // Use GetPrefArg.newBuilder() to construct. private GetPrefArg(Builder builder) { super(builder); } private GetPrefArg(boolean noInit) {} private static final GetPrefArg defaultInstance; public static GetPrefArg getDefaultInstance() { return defaultInstance; } public GetPrefArg getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_GetPrefArg_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_GetPrefArg_fieldAccessorTable; } public enum Mode implements com.google.protobuf.ProtocolMessageEnum { CURRENT(0, 1), DEFAULT(1, 2), ; public static final int CURRENT_VALUE = 1; public static final int DEFAULT_VALUE = 2; public final int getNumber() { return value; } public static Mode valueOf(int value) { switch (value) { case 1: return CURRENT; case 2: return DEFAULT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<Mode> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<Mode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Mode>() { public Mode findValueByNumber(int number) { return Mode.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.PrefsProtos.GetPrefArg.getDescriptor().getEnumTypes().get(0); } private static final Mode[] VALUES = { CURRENT, DEFAULT, }; public static Mode 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 Mode(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:scope.GetPrefArg.Mode) } private int bitField0_; // required string section = 1; public static final int SECTION_FIELD_NUMBER = 1; private java.lang.Object section_; public boolean hasSection() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getSection() { java.lang.Object ref = section_; 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)) { section_ = s; } return s; } } private com.google.protobuf.ByteString getSectionBytes() { java.lang.Object ref = section_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); section_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string key = 2; public static final int KEY_FIELD_NUMBER = 2; private java.lang.Object key_; public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getKey() { java.lang.Object ref = key_; 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)) { key_ = s; } return s; } } private com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional .scope.GetPrefArg.Mode mode = 3 [default = CURRENT]; public static final int MODE_FIELD_NUMBER = 3; private com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg.Mode mode_; public boolean hasMode() { return ((bitField0_ & 0x00000004) == 0x00000004); } public com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg.Mode getMode() { return mode_; } private void initFields() { section_ = ""; key_ = ""; mode_ = com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg.Mode.CURRENT; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasSection()) { memoizedIsInitialized = 0; return false; } if (!hasKey()) { 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, getSectionBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getKeyBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(3, mode_.getNumber()); } 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, getSectionBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getKeyBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, mode_.getNumber()); } 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.PrefsProtos.GetPrefArg parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg 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.PrefsProtos.GetPrefArg parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg 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.PrefsProtos.GetPrefArg parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg 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.PrefsProtos.GetPrefArg 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.PrefsProtos.GetPrefArg 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.PrefsProtos.GetPrefArg parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg 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.PrefsProtos.GetPrefArg 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.PrefsProtos.GetPrefArgOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_GetPrefArg_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_GetPrefArg_fieldAccessorTable; } // Construct using com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg.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(); section_ = ""; bitField0_ = (bitField0_ & ~0x00000001); key_ = ""; bitField0_ = (bitField0_ & ~0x00000002); mode_ = com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg.Mode.CURRENT; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg.getDescriptor(); } public com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg getDefaultInstanceForType() { return com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg.getDefaultInstance(); } public com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg build() { com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg buildPartial() { com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg result = new com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.section_ = section_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.key_ = key_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.mode_ = mode_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg) { return mergeFrom((com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg other) { if (other == com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg.getDefaultInstance()) return this; if (other.hasSection()) { setSection(other.getSection()); } if (other.hasKey()) { setKey(other.getKey()); } if (other.hasMode()) { setMode(other.getMode()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasSection()) { return false; } if (!hasKey()) { 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; section_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; key_ = input.readBytes(); break; } case 24: { int rawValue = input.readEnum(); com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg.Mode value = com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg.Mode.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { bitField0_ |= 0x00000004; mode_ = value; } break; } } } } private int bitField0_; // required string section = 1; private java.lang.Object section_ = ""; public boolean hasSection() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getSection() { java.lang.Object ref = section_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); section_ = s; return s; } else { return (String) ref; } } public Builder setSection(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; section_ = value; onChanged(); return this; } public Builder clearSection() { bitField0_ = (bitField0_ & ~0x00000001); section_ = getDefaultInstance().getSection(); onChanged(); return this; } void setSection(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; section_ = value; onChanged(); } // required string key = 2; private java.lang.Object key_ = ""; public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getKey() { java.lang.Object ref = key_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); key_ = s; return s; } else { return (String) ref; } } public Builder setKey(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; key_ = value; onChanged(); return this; } public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000002); key_ = getDefaultInstance().getKey(); onChanged(); return this; } void setKey(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000002; key_ = value; onChanged(); } // optional .scope.GetPrefArg.Mode mode = 3 [default = CURRENT]; private com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg.Mode mode_ = com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg.Mode.CURRENT; public boolean hasMode() { return ((bitField0_ & 0x00000004) == 0x00000004); } public com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg.Mode getMode() { return mode_; } public Builder setMode(com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg.Mode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; mode_ = value; onChanged(); return this; } public Builder clearMode() { bitField0_ = (bitField0_ & ~0x00000004); mode_ = com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg.Mode.CURRENT; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:scope.GetPrefArg) } static { defaultInstance = new GetPrefArg(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:scope.GetPrefArg) } public interface ListPrefsArgOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional bool sort = 1 [default = false]; boolean hasSort(); boolean getSort(); // optional string section = 2; boolean hasSection(); String getSection(); } public static final class ListPrefsArg extends com.google.protobuf.GeneratedMessage implements ListPrefsArgOrBuilder { // Use ListPrefsArg.newBuilder() to construct. private ListPrefsArg(Builder builder) { super(builder); } private ListPrefsArg(boolean noInit) {} private static final ListPrefsArg defaultInstance; public static ListPrefsArg getDefaultInstance() { return defaultInstance; } public ListPrefsArg getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_ListPrefsArg_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_ListPrefsArg_fieldAccessorTable; } private int bitField0_; // optional bool sort = 1 [default = false]; public static final int SORT_FIELD_NUMBER = 1; private boolean sort_; public boolean hasSort() { return ((bitField0_ & 0x00000001) == 0x00000001); } public boolean getSort() { return sort_; } // optional string section = 2; public static final int SECTION_FIELD_NUMBER = 2; private java.lang.Object section_; public boolean hasSection() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getSection() { java.lang.Object ref = section_; 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)) { section_ = s; } return s; } } private com.google.protobuf.ByteString getSectionBytes() { java.lang.Object ref = section_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); section_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { sort_ = false; section_ = ""; } 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.writeBool(1, sort_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getSectionBytes()); } 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 .computeBoolSize(1, sort_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getSectionBytes()); } 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.PrefsProtos.ListPrefsArg parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.ListPrefsArg 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.PrefsProtos.ListPrefsArg parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.ListPrefsArg 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.PrefsProtos.ListPrefsArg parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.ListPrefsArg 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.PrefsProtos.ListPrefsArg 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.PrefsProtos.ListPrefsArg 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.PrefsProtos.ListPrefsArg parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.ListPrefsArg 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.PrefsProtos.ListPrefsArg 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.PrefsProtos.ListPrefsArgOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_ListPrefsArg_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_ListPrefsArg_fieldAccessorTable; } // Construct using com.opera.core.systems.scope.protos.PrefsProtos.ListPrefsArg.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(); sort_ = false; bitField0_ = (bitField0_ & ~0x00000001); section_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.opera.core.systems.scope.protos.PrefsProtos.ListPrefsArg.getDescriptor(); } public com.opera.core.systems.scope.protos.PrefsProtos.ListPrefsArg getDefaultInstanceForType() { return com.opera.core.systems.scope.protos.PrefsProtos.ListPrefsArg.getDefaultInstance(); } public com.opera.core.systems.scope.protos.PrefsProtos.ListPrefsArg build() { com.opera.core.systems.scope.protos.PrefsProtos.ListPrefsArg result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.opera.core.systems.scope.protos.PrefsProtos.ListPrefsArg buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.opera.core.systems.scope.protos.PrefsProtos.ListPrefsArg result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.opera.core.systems.scope.protos.PrefsProtos.ListPrefsArg buildPartial() { com.opera.core.systems.scope.protos.PrefsProtos.ListPrefsArg result = new com.opera.core.systems.scope.protos.PrefsProtos.ListPrefsArg(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.sort_ = sort_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.section_ = section_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.opera.core.systems.scope.protos.PrefsProtos.ListPrefsArg) { return mergeFrom((com.opera.core.systems.scope.protos.PrefsProtos.ListPrefsArg)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.opera.core.systems.scope.protos.PrefsProtos.ListPrefsArg other) { if (other == com.opera.core.systems.scope.protos.PrefsProtos.ListPrefsArg.getDefaultInstance()) return this; if (other.hasSort()) { setSort(other.getSort()); } if (other.hasSection()) { setSection(other.getSection()); } 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 8: { bitField0_ |= 0x00000001; sort_ = input.readBool(); break; } case 18: { bitField0_ |= 0x00000002; section_ = input.readBytes(); break; } } } } private int bitField0_; // optional bool sort = 1 [default = false]; private boolean sort_ ; public boolean hasSort() { return ((bitField0_ & 0x00000001) == 0x00000001); } public boolean getSort() { return sort_; } public Builder setSort(boolean value) { bitField0_ |= 0x00000001; sort_ = value; onChanged(); return this; } public Builder clearSort() { bitField0_ = (bitField0_ & ~0x00000001); sort_ = false; onChanged(); return this; } // optional string section = 2; private java.lang.Object section_ = ""; public boolean hasSection() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getSection() { java.lang.Object ref = section_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); section_ = s; return s; } else { return (String) ref; } } public Builder setSection(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; section_ = value; onChanged(); return this; } public Builder clearSection() { bitField0_ = (bitField0_ & ~0x00000002); section_ = getDefaultInstance().getSection(); onChanged(); return this; } void setSection(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000002; section_ = value; onChanged(); } // @@protoc_insertion_point(builder_scope:scope.ListPrefsArg) } static { defaultInstance = new ListPrefsArg(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:scope.ListPrefsArg) } public interface SetPrefArgOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string section = 1; boolean hasSection(); String getSection(); // required string key = 2; boolean hasKey(); String getKey(); // required string value = 3; boolean hasValue(); String getValue(); } public static final class SetPrefArg extends com.google.protobuf.GeneratedMessage implements SetPrefArgOrBuilder { // Use SetPrefArg.newBuilder() to construct. private SetPrefArg(Builder builder) { super(builder); } private SetPrefArg(boolean noInit) {} private static final SetPrefArg defaultInstance; public static SetPrefArg getDefaultInstance() { return defaultInstance; } public SetPrefArg getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_SetPrefArg_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_SetPrefArg_fieldAccessorTable; } private int bitField0_; // required string section = 1; public static final int SECTION_FIELD_NUMBER = 1; private java.lang.Object section_; public boolean hasSection() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getSection() { java.lang.Object ref = section_; 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)) { section_ = s; } return s; } } private com.google.protobuf.ByteString getSectionBytes() { java.lang.Object ref = section_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); section_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string key = 2; public static final int KEY_FIELD_NUMBER = 2; private java.lang.Object key_; public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getKey() { java.lang.Object ref = key_; 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)) { key_ = s; } return s; } } private com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string value = 3; public static final int VALUE_FIELD_NUMBER = 3; private java.lang.Object value_; public boolean hasValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } public String getValue() { java.lang.Object ref = value_; 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)) { value_ = s; } return s; } } private com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { section_ = ""; key_ = ""; value_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasSection()) { memoizedIsInitialized = 0; return false; } if (!hasKey()) { memoizedIsInitialized = 0; return false; } if (!hasValue()) { 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, getSectionBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getKeyBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getValueBytes()); } 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, getSectionBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getKeyBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getValueBytes()); } 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.PrefsProtos.SetPrefArg parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.SetPrefArg 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.PrefsProtos.SetPrefArg parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.SetPrefArg 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.PrefsProtos.SetPrefArg parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.SetPrefArg 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.PrefsProtos.SetPrefArg 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.PrefsProtos.SetPrefArg 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.PrefsProtos.SetPrefArg parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.opera.core.systems.scope.protos.PrefsProtos.SetPrefArg 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.PrefsProtos.SetPrefArg 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.PrefsProtos.SetPrefArgOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_SetPrefArg_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.opera.core.systems.scope.protos.PrefsProtos.internal_static_scope_SetPrefArg_fieldAccessorTable; } // Construct using com.opera.core.systems.scope.protos.PrefsProtos.SetPrefArg.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(); section_ = ""; bitField0_ = (bitField0_ & ~0x00000001); key_ = ""; bitField0_ = (bitField0_ & ~0x00000002); value_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.opera.core.systems.scope.protos.PrefsProtos.SetPrefArg.getDescriptor(); } public com.opera.core.systems.scope.protos.PrefsProtos.SetPrefArg getDefaultInstanceForType() { return com.opera.core.systems.scope.protos.PrefsProtos.SetPrefArg.getDefaultInstance(); } public com.opera.core.systems.scope.protos.PrefsProtos.SetPrefArg build() { com.opera.core.systems.scope.protos.PrefsProtos.SetPrefArg result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.opera.core.systems.scope.protos.PrefsProtos.SetPrefArg buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.opera.core.systems.scope.protos.PrefsProtos.SetPrefArg result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.opera.core.systems.scope.protos.PrefsProtos.SetPrefArg buildPartial() { com.opera.core.systems.scope.protos.PrefsProtos.SetPrefArg result = new com.opera.core.systems.scope.protos.PrefsProtos.SetPrefArg(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.section_ = section_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.key_ = key_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.opera.core.systems.scope.protos.PrefsProtos.SetPrefArg) { return mergeFrom((com.opera.core.systems.scope.protos.PrefsProtos.SetPrefArg)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.opera.core.systems.scope.protos.PrefsProtos.SetPrefArg other) { if (other == com.opera.core.systems.scope.protos.PrefsProtos.SetPrefArg.getDefaultInstance()) return this; if (other.hasSection()) { setSection(other.getSection()); } if (other.hasKey()) { setKey(other.getKey()); } if (other.hasValue()) { setValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasSection()) { return false; } if (!hasKey()) { return false; } if (!hasValue()) { 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; section_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; key_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; value_ = input.readBytes(); break; } } } } private int bitField0_; // required string section = 1; private java.lang.Object section_ = ""; public boolean hasSection() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getSection() { java.lang.Object ref = section_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); section_ = s; return s; } else { return (String) ref; } } public Builder setSection(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; section_ = value; onChanged(); return this; } public Builder clearSection() { bitField0_ = (bitField0_ & ~0x00000001); section_ = getDefaultInstance().getSection(); onChanged(); return this; } void setSection(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; section_ = value; onChanged(); } // required string key = 2; private java.lang.Object key_ = ""; public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getKey() { java.lang.Object ref = key_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); key_ = s; return s; } else { return (String) ref; } } public Builder setKey(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; key_ = value; onChanged(); return this; } public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000002); key_ = getDefaultInstance().getKey(); onChanged(); return this; } void setKey(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000002; key_ = value; onChanged(); } // required string value = 3; private java.lang.Object value_ = ""; public boolean hasValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } public String getValue() { java.lang.Object ref = value_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); value_ = s; return s; } else { return (String) ref; } } public Builder setValue(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; value_ = value; onChanged(); return this; } public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000004); value_ = getDefaultInstance().getValue(); onChanged(); return this; } void setValue(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000004; value_ = value; onChanged(); } // @@protoc_insertion_point(builder_scope:scope.SetPrefArg) } static { defaultInstance = new SetPrefArg(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:scope.SetPrefArg) } private static com.google.protobuf.Descriptors.Descriptor internal_static_scope_Pref_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_scope_Pref_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_scope_PrefValue_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_scope_PrefValue_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_scope_PrefList_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_scope_PrefList_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_scope_GetPrefArg_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_scope_GetPrefArg_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_scope_ListPrefsArg_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_scope_ListPrefsArg_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_scope_SetPrefArg_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_scope_SetPrefArg_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\013prefs.proto\022\005scope\032\"opera/scope/scope_" + "descriptor.proto\"\311\001\n\004Pref\022\036\n\004type\030\001 \002(\0162" + "\020.scope.Pref.Type\022\017\n\007section\030\002 \001(\t\022\013\n\003ke" + "y\030\003 \001(\t\022\r\n\005value\030\004 \001(\t\022\017\n\007enabled\030\005 \001(\010\"" + "c\n\004Type\022\n\n\006STRING\020\001\022\013\n\007INTEGER\020\002\022\013\n\007BOOL" + "EAN\020\003\022\010\n\004FILE\020\004\022\021\n\rREQUIRED_FILE\020\005\022\r\n\tDI" + "RECTORY\020\006\022\t\n\005COLOR\020\007\"\032\n\tPrefValue\022\r\n\005val" + "ue\030\001 \002(\t\")\n\010PrefList\022\035\n\010prefList\030\001 \003(\0132\013" + ".scope.Pref\"{\n\nGetPrefArg\022\017\n\007section\030\001 \002" + "(\t\022\013\n\003key\030\002 \002(\t\022-\n\004mode\030\003 \001(\0162\026.scope.Ge", "tPrefArg.Mode:\007CURRENT\" \n\004Mode\022\013\n\007CURREN" + "T\020\001\022\013\n\007DEFAULT\020\002\"4\n\014ListPrefsArg\022\023\n\004sort" + "\030\001 \001(\010:\005false\022\017\n\007section\030\002 \001(\t\"9\n\nSetPre" + "fArg\022\017\n\007section\030\001 \002(\t\022\013\n\003key\030\002 \002(\t\022\r\n\005va" + "lue\030\003 \002(\tB4\n#com.opera.core.systems.scop" + "e.protosB\013PrefsProtosH\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_scope_Pref_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_scope_Pref_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_scope_Pref_descriptor, new java.lang.String[] { "Type", "Section", "Key", "Value", "Enabled", }, com.opera.core.systems.scope.protos.PrefsProtos.Pref.class, com.opera.core.systems.scope.protos.PrefsProtos.Pref.Builder.class); internal_static_scope_PrefValue_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_scope_PrefValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_scope_PrefValue_descriptor, new java.lang.String[] { "Value", }, com.opera.core.systems.scope.protos.PrefsProtos.PrefValue.class, com.opera.core.systems.scope.protos.PrefsProtos.PrefValue.Builder.class); internal_static_scope_PrefList_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_scope_PrefList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_scope_PrefList_descriptor, new java.lang.String[] { "PrefList", }, com.opera.core.systems.scope.protos.PrefsProtos.PrefList.class, com.opera.core.systems.scope.protos.PrefsProtos.PrefList.Builder.class); internal_static_scope_GetPrefArg_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_scope_GetPrefArg_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_scope_GetPrefArg_descriptor, new java.lang.String[] { "Section", "Key", "Mode", }, com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg.class, com.opera.core.systems.scope.protos.PrefsProtos.GetPrefArg.Builder.class); internal_static_scope_ListPrefsArg_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_scope_ListPrefsArg_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_scope_ListPrefsArg_descriptor, new java.lang.String[] { "Sort", "Section", }, com.opera.core.systems.scope.protos.PrefsProtos.ListPrefsArg.class, com.opera.core.systems.scope.protos.PrefsProtos.ListPrefsArg.Builder.class); internal_static_scope_SetPrefArg_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_scope_SetPrefArg_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_scope_SetPrefArg_descriptor, new java.lang.String[] { "Section", "Key", "Value", }, com.opera.core.systems.scope.protos.PrefsProtos.SetPrefArg.class, com.opera.core.systems.scope.protos.PrefsProtos.SetPrefArg.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) }