// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: desktop_window_manager.proto
package com.opera.core.systems.scope.protos;
public final class DesktopWmProtos {
private DesktopWmProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface DesktopWindowInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required uint32 windowID = 1;
boolean hasWindowID();
int getWindowID();
// required string title = 2;
boolean hasTitle();
String getTitle();
// required string name = 3;
boolean hasName();
String getName();
// required .scope.DesktopWindowInfo.DesktopWindowType windowType = 4;
boolean hasWindowType();
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowType getWindowType();
// required bool onScreen = 5;
boolean hasOnScreen();
boolean getOnScreen();
// required .scope.DesktopWindowInfo.DesktopWindowState state = 6;
boolean hasState();
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowState getState();
// required .scope.DesktopWindowRect rect = 7;
boolean hasRect();
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect getRect();
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder getRectOrBuilder();
// required bool active = 8;
boolean hasActive();
boolean getActive();
}
public static final class DesktopWindowInfo extends
com.google.protobuf.GeneratedMessage
implements DesktopWindowInfoOrBuilder {
// Use DesktopWindowInfo.newBuilder() to construct.
private DesktopWindowInfo(Builder builder) {
super(builder);
}
private DesktopWindowInfo(boolean noInit) {}
private static final DesktopWindowInfo defaultInstance;
public static DesktopWindowInfo getDefaultInstance() {
return defaultInstance;
}
public DesktopWindowInfo getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_DesktopWindowInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_DesktopWindowInfo_fieldAccessorTable;
}
public enum DesktopWindowType
implements com.google.protobuf.ProtocolMessageEnum {
UNKNOWN(0, 0),
DIALOG(1, 1),
NORMAL(2, 2),
;
public static final int UNKNOWN_VALUE = 0;
public static final int DIALOG_VALUE = 1;
public static final int NORMAL_VALUE = 2;
public final int getNumber() { return value; }
public static DesktopWindowType valueOf(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return DIALOG;
case 2: return NORMAL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<DesktopWindowType>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<DesktopWindowType>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<DesktopWindowType>() {
public DesktopWindowType findValueByNumber(int number) {
return DesktopWindowType.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.DesktopWmProtos.DesktopWindowInfo.getDescriptor().getEnumTypes().get(0);
}
private static final DesktopWindowType[] VALUES = {
UNKNOWN, DIALOG, NORMAL,
};
public static DesktopWindowType 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 DesktopWindowType(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:scope.DesktopWindowInfo.DesktopWindowType)
}
public enum DesktopWindowState
implements com.google.protobuf.ProtocolMessageEnum {
RESTORED(0, 0),
MINIMIZED(1, 1),
MAXIMIZED(2, 2),
FULLSCREEN(3, 3),
;
public static final int RESTORED_VALUE = 0;
public static final int MINIMIZED_VALUE = 1;
public static final int MAXIMIZED_VALUE = 2;
public static final int FULLSCREEN_VALUE = 3;
public final int getNumber() { return value; }
public static DesktopWindowState valueOf(int value) {
switch (value) {
case 0: return RESTORED;
case 1: return MINIMIZED;
case 2: return MAXIMIZED;
case 3: return FULLSCREEN;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<DesktopWindowState>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<DesktopWindowState>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<DesktopWindowState>() {
public DesktopWindowState findValueByNumber(int number) {
return DesktopWindowState.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.DesktopWmProtos.DesktopWindowInfo.getDescriptor().getEnumTypes().get(1);
}
private static final DesktopWindowState[] VALUES = {
RESTORED, MINIMIZED, MAXIMIZED, FULLSCREEN,
};
public static DesktopWindowState 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 DesktopWindowState(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:scope.DesktopWindowInfo.DesktopWindowState)
}
private int bitField0_;
// required uint32 windowID = 1;
public static final int WINDOWID_FIELD_NUMBER = 1;
private int windowID_;
public boolean hasWindowID() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public int getWindowID() {
return windowID_;
}
// required string title = 2;
public static final int TITLE_FIELD_NUMBER = 2;
private java.lang.Object title_;
public boolean hasTitle() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public String getTitle() {
java.lang.Object ref = title_;
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)) {
title_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required string name = 3;
public static final int NAME_FIELD_NUMBER = 3;
private java.lang.Object name_;
public boolean hasName() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public String getName() {
java.lang.Object ref = name_;
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)) {
name_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required .scope.DesktopWindowInfo.DesktopWindowType windowType = 4;
public static final int WINDOWTYPE_FIELD_NUMBER = 4;
private com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowType windowType_;
public boolean hasWindowType() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowType getWindowType() {
return windowType_;
}
// required bool onScreen = 5;
public static final int ONSCREEN_FIELD_NUMBER = 5;
private boolean onScreen_;
public boolean hasOnScreen() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
public boolean getOnScreen() {
return onScreen_;
}
// required .scope.DesktopWindowInfo.DesktopWindowState state = 6;
public static final int STATE_FIELD_NUMBER = 6;
private com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowState state_;
public boolean hasState() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowState getState() {
return state_;
}
// required .scope.DesktopWindowRect rect = 7;
public static final int RECT_FIELD_NUMBER = 7;
private com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect rect_;
public boolean hasRect() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect getRect() {
return rect_;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder getRectOrBuilder() {
return rect_;
}
// required bool active = 8;
public static final int ACTIVE_FIELD_NUMBER = 8;
private boolean active_;
public boolean hasActive() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
public boolean getActive() {
return active_;
}
private void initFields() {
windowID_ = 0;
title_ = "";
name_ = "";
windowType_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowType.UNKNOWN;
onScreen_ = false;
state_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowState.RESTORED;
rect_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDefaultInstance();
active_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasWindowID()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasTitle()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasWindowType()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasOnScreen()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasState()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasRect()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasActive()) {
memoizedIsInitialized = 0;
return false;
}
if (!getRect().isInitialized()) {
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.writeUInt32(1, windowID_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getTitleBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getNameBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeEnum(4, windowType_.getNumber());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBool(5, onScreen_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeEnum(6, state_.getNumber());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeMessage(7, rect_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeBool(8, active_);
}
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
.computeUInt32Size(1, windowID_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getTitleBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getNameBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, windowType_.getNumber());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, onScreen_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, state_.getNumber());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, rect_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, active_);
}
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.DesktopWmProtos.DesktopWindowInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo 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.DesktopWmProtos.DesktopWindowInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo 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.DesktopWmProtos.DesktopWindowInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo 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.DesktopWmProtos.DesktopWindowInfo 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.DesktopWmProtos.DesktopWindowInfo 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.DesktopWmProtos.DesktopWindowInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo 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.DesktopWmProtos.DesktopWindowInfo 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.DesktopWmProtos.DesktopWindowInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_DesktopWindowInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_DesktopWindowInfo_fieldAccessorTable;
}
// Construct using com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getRectFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
windowID_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
title_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
windowType_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowType.UNKNOWN;
bitField0_ = (bitField0_ & ~0x00000008);
onScreen_ = false;
bitField0_ = (bitField0_ & ~0x00000010);
state_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowState.RESTORED;
bitField0_ = (bitField0_ & ~0x00000020);
if (rectBuilder_ == null) {
rect_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDefaultInstance();
} else {
rectBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
active_ = false;
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.getDescriptor();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo getDefaultInstanceForType() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.getDefaultInstance();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo build() {
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return result;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo buildPartial() {
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo result = new com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.windowID_ = windowID_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.title_ = title_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.windowType_ = windowType_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.onScreen_ = onScreen_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.state_ = state_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
if (rectBuilder_ == null) {
result.rect_ = rect_;
} else {
result.rect_ = rectBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.active_ = active_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo) {
return mergeFrom((com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo other) {
if (other == com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.getDefaultInstance()) return this;
if (other.hasWindowID()) {
setWindowID(other.getWindowID());
}
if (other.hasTitle()) {
setTitle(other.getTitle());
}
if (other.hasName()) {
setName(other.getName());
}
if (other.hasWindowType()) {
setWindowType(other.getWindowType());
}
if (other.hasOnScreen()) {
setOnScreen(other.getOnScreen());
}
if (other.hasState()) {
setState(other.getState());
}
if (other.hasRect()) {
mergeRect(other.getRect());
}
if (other.hasActive()) {
setActive(other.getActive());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasWindowID()) {
return false;
}
if (!hasTitle()) {
return false;
}
if (!hasName()) {
return false;
}
if (!hasWindowType()) {
return false;
}
if (!hasOnScreen()) {
return false;
}
if (!hasState()) {
return false;
}
if (!hasRect()) {
return false;
}
if (!hasActive()) {
return false;
}
if (!getRect().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 8: {
bitField0_ |= 0x00000001;
windowID_ = input.readUInt32();
break;
}
case 18: {
bitField0_ |= 0x00000002;
title_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000004;
name_ = input.readBytes();
break;
}
case 32: {
int rawValue = input.readEnum();
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowType value = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(4, rawValue);
} else {
bitField0_ |= 0x00000008;
windowType_ = value;
}
break;
}
case 40: {
bitField0_ |= 0x00000010;
onScreen_ = input.readBool();
break;
}
case 48: {
int rawValue = input.readEnum();
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowState value = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowState.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(6, rawValue);
} else {
bitField0_ |= 0x00000020;
state_ = value;
}
break;
}
case 58: {
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder subBuilder = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.newBuilder();
if (hasRect()) {
subBuilder.mergeFrom(getRect());
}
input.readMessage(subBuilder, extensionRegistry);
setRect(subBuilder.buildPartial());
break;
}
case 64: {
bitField0_ |= 0x00000080;
active_ = input.readBool();
break;
}
}
}
}
private int bitField0_;
// required uint32 windowID = 1;
private int windowID_ ;
public boolean hasWindowID() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public int getWindowID() {
return windowID_;
}
public Builder setWindowID(int value) {
bitField0_ |= 0x00000001;
windowID_ = value;
onChanged();
return this;
}
public Builder clearWindowID() {
bitField0_ = (bitField0_ & ~0x00000001);
windowID_ = 0;
onChanged();
return this;
}
// required string title = 2;
private java.lang.Object title_ = "";
public boolean hasTitle() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public String getTitle() {
java.lang.Object ref = title_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
title_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setTitle(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
title_ = value;
onChanged();
return this;
}
public Builder clearTitle() {
bitField0_ = (bitField0_ & ~0x00000002);
title_ = getDefaultInstance().getTitle();
onChanged();
return this;
}
void setTitle(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000002;
title_ = value;
onChanged();
}
// required string name = 3;
private java.lang.Object name_ = "";
public boolean hasName() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
name_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setName(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
name_ = value;
onChanged();
return this;
}
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000004);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
void setName(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000004;
name_ = value;
onChanged();
}
// required .scope.DesktopWindowInfo.DesktopWindowType windowType = 4;
private com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowType windowType_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowType.UNKNOWN;
public boolean hasWindowType() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowType getWindowType() {
return windowType_;
}
public Builder setWindowType(com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
windowType_ = value;
onChanged();
return this;
}
public Builder clearWindowType() {
bitField0_ = (bitField0_ & ~0x00000008);
windowType_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowType.UNKNOWN;
onChanged();
return this;
}
// required bool onScreen = 5;
private boolean onScreen_ ;
public boolean hasOnScreen() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
public boolean getOnScreen() {
return onScreen_;
}
public Builder setOnScreen(boolean value) {
bitField0_ |= 0x00000010;
onScreen_ = value;
onChanged();
return this;
}
public Builder clearOnScreen() {
bitField0_ = (bitField0_ & ~0x00000010);
onScreen_ = false;
onChanged();
return this;
}
// required .scope.DesktopWindowInfo.DesktopWindowState state = 6;
private com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowState state_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowState.RESTORED;
public boolean hasState() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowState getState() {
return state_;
}
public Builder setState(com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowState value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
state_ = value;
onChanged();
return this;
}
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000020);
state_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.DesktopWindowState.RESTORED;
onChanged();
return this;
}
// required .scope.DesktopWindowRect rect = 7;
private com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect rect_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder> rectBuilder_;
public boolean hasRect() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect getRect() {
if (rectBuilder_ == null) {
return rect_;
} else {
return rectBuilder_.getMessage();
}
}
public Builder setRect(com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect value) {
if (rectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rect_ = value;
onChanged();
} else {
rectBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
public Builder setRect(
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder builderForValue) {
if (rectBuilder_ == null) {
rect_ = builderForValue.build();
onChanged();
} else {
rectBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
public Builder mergeRect(com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect value) {
if (rectBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040) &&
rect_ != com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDefaultInstance()) {
rect_ =
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.newBuilder(rect_).mergeFrom(value).buildPartial();
} else {
rect_ = value;
}
onChanged();
} else {
rectBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
public Builder clearRect() {
if (rectBuilder_ == null) {
rect_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDefaultInstance();
onChanged();
} else {
rectBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder getRectBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getRectFieldBuilder().getBuilder();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder getRectOrBuilder() {
if (rectBuilder_ != null) {
return rectBuilder_.getMessageOrBuilder();
} else {
return rect_;
}
}
private com.google.protobuf.SingleFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder>
getRectFieldBuilder() {
if (rectBuilder_ == null) {
rectBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder>(
rect_,
getParentForChildren(),
isClean());
rect_ = null;
}
return rectBuilder_;
}
// required bool active = 8;
private boolean active_ ;
public boolean hasActive() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
public boolean getActive() {
return active_;
}
public Builder setActive(boolean value) {
bitField0_ |= 0x00000080;
active_ = value;
onChanged();
return this;
}
public Builder clearActive() {
bitField0_ = (bitField0_ & ~0x00000080);
active_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:scope.DesktopWindowInfo)
}
static {
defaultInstance = new DesktopWindowInfo(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:scope.DesktopWindowInfo)
}
public interface DesktopWindowRectOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required uint32 x = 1;
boolean hasX();
int getX();
// required uint32 y = 2;
boolean hasY();
int getY();
// required uint32 width = 3;
boolean hasWidth();
int getWidth();
// required uint32 height = 4;
boolean hasHeight();
int getHeight();
}
public static final class DesktopWindowRect extends
com.google.protobuf.GeneratedMessage
implements DesktopWindowRectOrBuilder {
// Use DesktopWindowRect.newBuilder() to construct.
private DesktopWindowRect(Builder builder) {
super(builder);
}
private DesktopWindowRect(boolean noInit) {}
private static final DesktopWindowRect defaultInstance;
public static DesktopWindowRect getDefaultInstance() {
return defaultInstance;
}
public DesktopWindowRect getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_DesktopWindowRect_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_DesktopWindowRect_fieldAccessorTable;
}
private int bitField0_;
// required uint32 x = 1;
public static final int X_FIELD_NUMBER = 1;
private int x_;
public boolean hasX() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public int getX() {
return x_;
}
// required uint32 y = 2;
public static final int Y_FIELD_NUMBER = 2;
private int y_;
public boolean hasY() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public int getY() {
return y_;
}
// required uint32 width = 3;
public static final int WIDTH_FIELD_NUMBER = 3;
private int width_;
public boolean hasWidth() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public int getWidth() {
return width_;
}
// required uint32 height = 4;
public static final int HEIGHT_FIELD_NUMBER = 4;
private int height_;
public boolean hasHeight() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
public int getHeight() {
return height_;
}
private void initFields() {
x_ = 0;
y_ = 0;
width_ = 0;
height_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasX()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasY()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasWidth()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasHeight()) {
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.writeUInt32(1, x_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, y_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(3, width_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt32(4, height_);
}
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
.computeUInt32Size(1, x_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, y_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, width_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, height_);
}
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.DesktopWmProtos.DesktopWindowRect parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect 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.DesktopWmProtos.DesktopWindowRect parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect 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.DesktopWmProtos.DesktopWindowRect parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect 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.DesktopWmProtos.DesktopWindowRect 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.DesktopWmProtos.DesktopWindowRect 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.DesktopWmProtos.DesktopWindowRect parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect 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.DesktopWmProtos.DesktopWindowRect 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.DesktopWmProtos.DesktopWindowRectOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_DesktopWindowRect_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_DesktopWindowRect_fieldAccessorTable;
}
// Construct using com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.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();
x_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
y_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
width_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
height_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDescriptor();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect getDefaultInstanceForType() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDefaultInstance();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect build() {
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return result;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect buildPartial() {
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect result = new com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.x_ = x_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.y_ = y_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.width_ = width_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.height_ = height_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect) {
return mergeFrom((com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect other) {
if (other == com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDefaultInstance()) return this;
if (other.hasX()) {
setX(other.getX());
}
if (other.hasY()) {
setY(other.getY());
}
if (other.hasWidth()) {
setWidth(other.getWidth());
}
if (other.hasHeight()) {
setHeight(other.getHeight());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasX()) {
return false;
}
if (!hasY()) {
return false;
}
if (!hasWidth()) {
return false;
}
if (!hasHeight()) {
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: {
bitField0_ |= 0x00000001;
x_ = input.readUInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
y_ = input.readUInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
width_ = input.readUInt32();
break;
}
case 32: {
bitField0_ |= 0x00000008;
height_ = input.readUInt32();
break;
}
}
}
}
private int bitField0_;
// required uint32 x = 1;
private int x_ ;
public boolean hasX() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public int getX() {
return x_;
}
public Builder setX(int value) {
bitField0_ |= 0x00000001;
x_ = value;
onChanged();
return this;
}
public Builder clearX() {
bitField0_ = (bitField0_ & ~0x00000001);
x_ = 0;
onChanged();
return this;
}
// required uint32 y = 2;
private int y_ ;
public boolean hasY() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public int getY() {
return y_;
}
public Builder setY(int value) {
bitField0_ |= 0x00000002;
y_ = value;
onChanged();
return this;
}
public Builder clearY() {
bitField0_ = (bitField0_ & ~0x00000002);
y_ = 0;
onChanged();
return this;
}
// required uint32 width = 3;
private int width_ ;
public boolean hasWidth() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public int getWidth() {
return width_;
}
public Builder setWidth(int value) {
bitField0_ |= 0x00000004;
width_ = value;
onChanged();
return this;
}
public Builder clearWidth() {
bitField0_ = (bitField0_ & ~0x00000004);
width_ = 0;
onChanged();
return this;
}
// required uint32 height = 4;
private int height_ ;
public boolean hasHeight() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
public int getHeight() {
return height_;
}
public Builder setHeight(int value) {
bitField0_ |= 0x00000008;
height_ = value;
onChanged();
return this;
}
public Builder clearHeight() {
bitField0_ = (bitField0_ & ~0x00000008);
height_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:scope.DesktopWindowRect)
}
static {
defaultInstance = new DesktopWindowRect(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:scope.DesktopWindowRect)
}
public interface QuickMenuIDOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string menuName = 1;
boolean hasMenuName();
String getMenuName();
}
public static final class QuickMenuID extends
com.google.protobuf.GeneratedMessage
implements QuickMenuIDOrBuilder {
// Use QuickMenuID.newBuilder() to construct.
private QuickMenuID(Builder builder) {
super(builder);
}
private QuickMenuID(boolean noInit) {}
private static final QuickMenuID defaultInstance;
public static QuickMenuID getDefaultInstance() {
return defaultInstance;
}
public QuickMenuID getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickMenuID_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickMenuID_fieldAccessorTable;
}
private int bitField0_;
// required string menuName = 1;
public static final int MENUNAME_FIELD_NUMBER = 1;
private java.lang.Object menuName_;
public boolean hasMenuName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public String getMenuName() {
java.lang.Object ref = menuName_;
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)) {
menuName_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getMenuNameBytes() {
java.lang.Object ref = menuName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
menuName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
menuName_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasMenuName()) {
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, getMenuNameBytes());
}
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, getMenuNameBytes());
}
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.DesktopWmProtos.QuickMenuID parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID 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.DesktopWmProtos.QuickMenuID parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID 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.DesktopWmProtos.QuickMenuID parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID 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.DesktopWmProtos.QuickMenuID 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.DesktopWmProtos.QuickMenuID 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.DesktopWmProtos.QuickMenuID parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID 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.DesktopWmProtos.QuickMenuID 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.DesktopWmProtos.QuickMenuIDOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickMenuID_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickMenuID_fieldAccessorTable;
}
// Construct using com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID.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();
menuName_ = "";
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.DesktopWmProtos.QuickMenuID.getDescriptor();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID getDefaultInstanceForType() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID.getDefaultInstance();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID build() {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return result;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID buildPartial() {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID result = new com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.menuName_ = menuName_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID) {
return mergeFrom((com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID other) {
if (other == com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID.getDefaultInstance()) return this;
if (other.hasMenuName()) {
setMenuName(other.getMenuName());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasMenuName()) {
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;
menuName_ = input.readBytes();
break;
}
}
}
}
private int bitField0_;
// required string menuName = 1;
private java.lang.Object menuName_ = "";
public boolean hasMenuName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public String getMenuName() {
java.lang.Object ref = menuName_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
menuName_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setMenuName(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
menuName_ = value;
onChanged();
return this;
}
public Builder clearMenuName() {
bitField0_ = (bitField0_ & ~0x00000001);
menuName_ = getDefaultInstance().getMenuName();
onChanged();
return this;
}
void setMenuName(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000001;
menuName_ = value;
onChanged();
}
// @@protoc_insertion_point(builder_scope:scope.QuickMenuID)
}
static {
defaultInstance = new QuickMenuID(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:scope.QuickMenuID)
}
public interface QuickMenuListOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .scope.QuickMenuInfo menuList = 1;
java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo>
getMenuListList();
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo getMenuList(int index);
int getMenuListCount();
java.util.List<? extends com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfoOrBuilder>
getMenuListOrBuilderList();
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfoOrBuilder getMenuListOrBuilder(
int index);
}
public static final class QuickMenuList extends
com.google.protobuf.GeneratedMessage
implements QuickMenuListOrBuilder {
// Use QuickMenuList.newBuilder() to construct.
private QuickMenuList(Builder builder) {
super(builder);
}
private QuickMenuList(boolean noInit) {}
private static final QuickMenuList defaultInstance;
public static QuickMenuList getDefaultInstance() {
return defaultInstance;
}
public QuickMenuList getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickMenuList_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickMenuList_fieldAccessorTable;
}
// repeated .scope.QuickMenuInfo menuList = 1;
public static final int MENULIST_FIELD_NUMBER = 1;
private java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo> menuList_;
public java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo> getMenuListList() {
return menuList_;
}
public java.util.List<? extends com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfoOrBuilder>
getMenuListOrBuilderList() {
return menuList_;
}
public int getMenuListCount() {
return menuList_.size();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo getMenuList(int index) {
return menuList_.get(index);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfoOrBuilder getMenuListOrBuilder(
int index) {
return menuList_.get(index);
}
private void initFields() {
menuList_ = 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 < getMenuListCount(); i++) {
if (!getMenuList(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 < menuList_.size(); i++) {
output.writeMessage(1, menuList_.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 < menuList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, menuList_.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.DesktopWmProtos.QuickMenuList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuList 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.DesktopWmProtos.QuickMenuList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuList 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.DesktopWmProtos.QuickMenuList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuList 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.DesktopWmProtos.QuickMenuList 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.DesktopWmProtos.QuickMenuList 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.DesktopWmProtos.QuickMenuList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuList 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.DesktopWmProtos.QuickMenuList 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.DesktopWmProtos.QuickMenuListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickMenuList_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickMenuList_fieldAccessorTable;
}
// Construct using com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getMenuListFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (menuListBuilder_ == null) {
menuList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
menuListBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuList.getDescriptor();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuList getDefaultInstanceForType() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuList.getDefaultInstance();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuList build() {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuList buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return result;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuList buildPartial() {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuList result = new com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuList(this);
int from_bitField0_ = bitField0_;
if (menuListBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
menuList_ = java.util.Collections.unmodifiableList(menuList_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.menuList_ = menuList_;
} else {
result.menuList_ = menuListBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuList) {
return mergeFrom((com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuList other) {
if (other == com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuList.getDefaultInstance()) return this;
if (menuListBuilder_ == null) {
if (!other.menuList_.isEmpty()) {
if (menuList_.isEmpty()) {
menuList_ = other.menuList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMenuListIsMutable();
menuList_.addAll(other.menuList_);
}
onChanged();
}
} else {
if (!other.menuList_.isEmpty()) {
if (menuListBuilder_.isEmpty()) {
menuListBuilder_.dispose();
menuListBuilder_ = null;
menuList_ = other.menuList_;
bitField0_ = (bitField0_ & ~0x00000001);
menuListBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getMenuListFieldBuilder() : null;
} else {
menuListBuilder_.addAllMessages(other.menuList_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getMenuListCount(); i++) {
if (!getMenuList(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.DesktopWmProtos.QuickMenuInfo.Builder subBuilder = com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo.newBuilder();
input.readMessage(subBuilder, extensionRegistry);
addMenuList(subBuilder.buildPartial());
break;
}
}
}
}
private int bitField0_;
// repeated .scope.QuickMenuInfo menuList = 1;
private java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo> menuList_ =
java.util.Collections.emptyList();
private void ensureMenuListIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
menuList_ = new java.util.ArrayList<com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo>(menuList_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfoOrBuilder> menuListBuilder_;
public java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo> getMenuListList() {
if (menuListBuilder_ == null) {
return java.util.Collections.unmodifiableList(menuList_);
} else {
return menuListBuilder_.getMessageList();
}
}
public int getMenuListCount() {
if (menuListBuilder_ == null) {
return menuList_.size();
} else {
return menuListBuilder_.getCount();
}
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo getMenuList(int index) {
if (menuListBuilder_ == null) {
return menuList_.get(index);
} else {
return menuListBuilder_.getMessage(index);
}
}
public Builder setMenuList(
int index, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo value) {
if (menuListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMenuListIsMutable();
menuList_.set(index, value);
onChanged();
} else {
menuListBuilder_.setMessage(index, value);
}
return this;
}
public Builder setMenuList(
int index, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo.Builder builderForValue) {
if (menuListBuilder_ == null) {
ensureMenuListIsMutable();
menuList_.set(index, builderForValue.build());
onChanged();
} else {
menuListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
public Builder addMenuList(com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo value) {
if (menuListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMenuListIsMutable();
menuList_.add(value);
onChanged();
} else {
menuListBuilder_.addMessage(value);
}
return this;
}
public Builder addMenuList(
int index, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo value) {
if (menuListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMenuListIsMutable();
menuList_.add(index, value);
onChanged();
} else {
menuListBuilder_.addMessage(index, value);
}
return this;
}
public Builder addMenuList(
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo.Builder builderForValue) {
if (menuListBuilder_ == null) {
ensureMenuListIsMutable();
menuList_.add(builderForValue.build());
onChanged();
} else {
menuListBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addMenuList(
int index, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo.Builder builderForValue) {
if (menuListBuilder_ == null) {
ensureMenuListIsMutable();
menuList_.add(index, builderForValue.build());
onChanged();
} else {
menuListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
public Builder addAllMenuList(
java.lang.Iterable<? extends com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo> values) {
if (menuListBuilder_ == null) {
ensureMenuListIsMutable();
super.addAll(values, menuList_);
onChanged();
} else {
menuListBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearMenuList() {
if (menuListBuilder_ == null) {
menuList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
menuListBuilder_.clear();
}
return this;
}
public Builder removeMenuList(int index) {
if (menuListBuilder_ == null) {
ensureMenuListIsMutable();
menuList_.remove(index);
onChanged();
} else {
menuListBuilder_.remove(index);
}
return this;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo.Builder getMenuListBuilder(
int index) {
return getMenuListFieldBuilder().getBuilder(index);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfoOrBuilder getMenuListOrBuilder(
int index) {
if (menuListBuilder_ == null) {
return menuList_.get(index); } else {
return menuListBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List<? extends com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfoOrBuilder>
getMenuListOrBuilderList() {
if (menuListBuilder_ != null) {
return menuListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(menuList_);
}
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo.Builder addMenuListBuilder() {
return getMenuListFieldBuilder().addBuilder(
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo.getDefaultInstance());
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo.Builder addMenuListBuilder(
int index) {
return getMenuListFieldBuilder().addBuilder(
index, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo.getDefaultInstance());
}
public java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo.Builder>
getMenuListBuilderList() {
return getMenuListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfoOrBuilder>
getMenuListFieldBuilder() {
if (menuListBuilder_ == null) {
menuListBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfoOrBuilder>(
menuList_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
menuList_ = null;
}
return menuListBuilder_;
}
// @@protoc_insertion_point(builder_scope:scope.QuickMenuList)
}
static {
defaultInstance = new QuickMenuList(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:scope.QuickMenuList)
}
public interface QuickMenuInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .scope.QuickMenuID menuId = 1;
boolean hasMenuId();
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID getMenuId();
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuIDOrBuilder getMenuIdOrBuilder();
// required .scope.DesktopWindowRect rect = 2;
boolean hasRect();
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect getRect();
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder getRectOrBuilder();
// required .scope.DesktopWindowID windowId = 3;
boolean hasWindowId();
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID getWindowId();
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowIDOrBuilder getWindowIdOrBuilder();
// repeated .scope.QuickMenuItemInfo menuItemList = 4;
java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo>
getMenuItemListList();
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo getMenuItemList(int index);
int getMenuItemListCount();
java.util.List<? extends com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfoOrBuilder>
getMenuItemListOrBuilderList();
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfoOrBuilder getMenuItemListOrBuilder(
int index);
}
public static final class QuickMenuInfo extends
com.google.protobuf.GeneratedMessage
implements QuickMenuInfoOrBuilder {
// Use QuickMenuInfo.newBuilder() to construct.
private QuickMenuInfo(Builder builder) {
super(builder);
}
private QuickMenuInfo(boolean noInit) {}
private static final QuickMenuInfo defaultInstance;
public static QuickMenuInfo getDefaultInstance() {
return defaultInstance;
}
public QuickMenuInfo getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickMenuInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickMenuInfo_fieldAccessorTable;
}
private int bitField0_;
// required .scope.QuickMenuID menuId = 1;
public static final int MENUID_FIELD_NUMBER = 1;
private com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID menuId_;
public boolean hasMenuId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID getMenuId() {
return menuId_;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuIDOrBuilder getMenuIdOrBuilder() {
return menuId_;
}
// required .scope.DesktopWindowRect rect = 2;
public static final int RECT_FIELD_NUMBER = 2;
private com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect rect_;
public boolean hasRect() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect getRect() {
return rect_;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder getRectOrBuilder() {
return rect_;
}
// required .scope.DesktopWindowID windowId = 3;
public static final int WINDOWID_FIELD_NUMBER = 3;
private com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID windowId_;
public boolean hasWindowId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID getWindowId() {
return windowId_;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowIDOrBuilder getWindowIdOrBuilder() {
return windowId_;
}
// repeated .scope.QuickMenuItemInfo menuItemList = 4;
public static final int MENUITEMLIST_FIELD_NUMBER = 4;
private java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo> menuItemList_;
public java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo> getMenuItemListList() {
return menuItemList_;
}
public java.util.List<? extends com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfoOrBuilder>
getMenuItemListOrBuilderList() {
return menuItemList_;
}
public int getMenuItemListCount() {
return menuItemList_.size();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo getMenuItemList(int index) {
return menuItemList_.get(index);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfoOrBuilder getMenuItemListOrBuilder(
int index) {
return menuItemList_.get(index);
}
private void initFields() {
menuId_ = com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID.getDefaultInstance();
rect_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDefaultInstance();
windowId_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.getDefaultInstance();
menuItemList_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasMenuId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasRect()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasWindowId()) {
memoizedIsInitialized = 0;
return false;
}
if (!getMenuId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (!getRect().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (!getWindowId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getMenuItemListCount(); i++) {
if (!getMenuItemList(i).isInitialized()) {
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.writeMessage(1, menuId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, rect_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, windowId_);
}
for (int i = 0; i < menuItemList_.size(); i++) {
output.writeMessage(4, menuItemList_.get(i));
}
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
.computeMessageSize(1, menuId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, rect_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, windowId_);
}
for (int i = 0; i < menuItemList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, menuItemList_.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.DesktopWmProtos.QuickMenuInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo 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.DesktopWmProtos.QuickMenuInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo 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.DesktopWmProtos.QuickMenuInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo 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.DesktopWmProtos.QuickMenuInfo 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.DesktopWmProtos.QuickMenuInfo 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.DesktopWmProtos.QuickMenuInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo 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.DesktopWmProtos.QuickMenuInfo 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.DesktopWmProtos.QuickMenuInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickMenuInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickMenuInfo_fieldAccessorTable;
}
// Construct using com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getMenuIdFieldBuilder();
getRectFieldBuilder();
getWindowIdFieldBuilder();
getMenuItemListFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (menuIdBuilder_ == null) {
menuId_ = com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID.getDefaultInstance();
} else {
menuIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (rectBuilder_ == null) {
rect_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDefaultInstance();
} else {
rectBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (windowIdBuilder_ == null) {
windowId_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.getDefaultInstance();
} else {
windowIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (menuItemListBuilder_ == null) {
menuItemList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
menuItemListBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo.getDescriptor();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo getDefaultInstanceForType() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo.getDefaultInstance();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo build() {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return result;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo buildPartial() {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo result = new com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (menuIdBuilder_ == null) {
result.menuId_ = menuId_;
} else {
result.menuId_ = menuIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (rectBuilder_ == null) {
result.rect_ = rect_;
} else {
result.rect_ = rectBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (windowIdBuilder_ == null) {
result.windowId_ = windowId_;
} else {
result.windowId_ = windowIdBuilder_.build();
}
if (menuItemListBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
menuItemList_ = java.util.Collections.unmodifiableList(menuItemList_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.menuItemList_ = menuItemList_;
} else {
result.menuItemList_ = menuItemListBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo) {
return mergeFrom((com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo other) {
if (other == com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo.getDefaultInstance()) return this;
if (other.hasMenuId()) {
mergeMenuId(other.getMenuId());
}
if (other.hasRect()) {
mergeRect(other.getRect());
}
if (other.hasWindowId()) {
mergeWindowId(other.getWindowId());
}
if (menuItemListBuilder_ == null) {
if (!other.menuItemList_.isEmpty()) {
if (menuItemList_.isEmpty()) {
menuItemList_ = other.menuItemList_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureMenuItemListIsMutable();
menuItemList_.addAll(other.menuItemList_);
}
onChanged();
}
} else {
if (!other.menuItemList_.isEmpty()) {
if (menuItemListBuilder_.isEmpty()) {
menuItemListBuilder_.dispose();
menuItemListBuilder_ = null;
menuItemList_ = other.menuItemList_;
bitField0_ = (bitField0_ & ~0x00000008);
menuItemListBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getMenuItemListFieldBuilder() : null;
} else {
menuItemListBuilder_.addAllMessages(other.menuItemList_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasMenuId()) {
return false;
}
if (!hasRect()) {
return false;
}
if (!hasWindowId()) {
return false;
}
if (!getMenuId().isInitialized()) {
return false;
}
if (!getRect().isInitialized()) {
return false;
}
if (!getWindowId().isInitialized()) {
return false;
}
for (int i = 0; i < getMenuItemListCount(); i++) {
if (!getMenuItemList(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.DesktopWmProtos.QuickMenuID.Builder subBuilder = com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID.newBuilder();
if (hasMenuId()) {
subBuilder.mergeFrom(getMenuId());
}
input.readMessage(subBuilder, extensionRegistry);
setMenuId(subBuilder.buildPartial());
break;
}
case 18: {
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder subBuilder = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.newBuilder();
if (hasRect()) {
subBuilder.mergeFrom(getRect());
}
input.readMessage(subBuilder, extensionRegistry);
setRect(subBuilder.buildPartial());
break;
}
case 26: {
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.Builder subBuilder = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.newBuilder();
if (hasWindowId()) {
subBuilder.mergeFrom(getWindowId());
}
input.readMessage(subBuilder, extensionRegistry);
setWindowId(subBuilder.buildPartial());
break;
}
case 34: {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo.Builder subBuilder = com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo.newBuilder();
input.readMessage(subBuilder, extensionRegistry);
addMenuItemList(subBuilder.buildPartial());
break;
}
}
}
}
private int bitField0_;
// required .scope.QuickMenuID menuId = 1;
private com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID menuId_ = com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuIDOrBuilder> menuIdBuilder_;
public boolean hasMenuId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID getMenuId() {
if (menuIdBuilder_ == null) {
return menuId_;
} else {
return menuIdBuilder_.getMessage();
}
}
public Builder setMenuId(com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID value) {
if (menuIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
menuId_ = value;
onChanged();
} else {
menuIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
public Builder setMenuId(
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID.Builder builderForValue) {
if (menuIdBuilder_ == null) {
menuId_ = builderForValue.build();
onChanged();
} else {
menuIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
public Builder mergeMenuId(com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID value) {
if (menuIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
menuId_ != com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID.getDefaultInstance()) {
menuId_ =
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID.newBuilder(menuId_).mergeFrom(value).buildPartial();
} else {
menuId_ = value;
}
onChanged();
} else {
menuIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
public Builder clearMenuId() {
if (menuIdBuilder_ == null) {
menuId_ = com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID.getDefaultInstance();
onChanged();
} else {
menuIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID.Builder getMenuIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMenuIdFieldBuilder().getBuilder();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuIDOrBuilder getMenuIdOrBuilder() {
if (menuIdBuilder_ != null) {
return menuIdBuilder_.getMessageOrBuilder();
} else {
return menuId_;
}
}
private com.google.protobuf.SingleFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuIDOrBuilder>
getMenuIdFieldBuilder() {
if (menuIdBuilder_ == null) {
menuIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuIDOrBuilder>(
menuId_,
getParentForChildren(),
isClean());
menuId_ = null;
}
return menuIdBuilder_;
}
// required .scope.DesktopWindowRect rect = 2;
private com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect rect_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder> rectBuilder_;
public boolean hasRect() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect getRect() {
if (rectBuilder_ == null) {
return rect_;
} else {
return rectBuilder_.getMessage();
}
}
public Builder setRect(com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect value) {
if (rectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rect_ = value;
onChanged();
} else {
rectBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
public Builder setRect(
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder builderForValue) {
if (rectBuilder_ == null) {
rect_ = builderForValue.build();
onChanged();
} else {
rectBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
public Builder mergeRect(com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect value) {
if (rectBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
rect_ != com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDefaultInstance()) {
rect_ =
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.newBuilder(rect_).mergeFrom(value).buildPartial();
} else {
rect_ = value;
}
onChanged();
} else {
rectBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
public Builder clearRect() {
if (rectBuilder_ == null) {
rect_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDefaultInstance();
onChanged();
} else {
rectBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder getRectBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getRectFieldBuilder().getBuilder();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder getRectOrBuilder() {
if (rectBuilder_ != null) {
return rectBuilder_.getMessageOrBuilder();
} else {
return rect_;
}
}
private com.google.protobuf.SingleFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder>
getRectFieldBuilder() {
if (rectBuilder_ == null) {
rectBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder>(
rect_,
getParentForChildren(),
isClean());
rect_ = null;
}
return rectBuilder_;
}
// required .scope.DesktopWindowID windowId = 3;
private com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID windowId_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowIDOrBuilder> windowIdBuilder_;
public boolean hasWindowId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID getWindowId() {
if (windowIdBuilder_ == null) {
return windowId_;
} else {
return windowIdBuilder_.getMessage();
}
}
public Builder setWindowId(com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID value) {
if (windowIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
windowId_ = value;
onChanged();
} else {
windowIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
public Builder setWindowId(
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.Builder builderForValue) {
if (windowIdBuilder_ == null) {
windowId_ = builderForValue.build();
onChanged();
} else {
windowIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
public Builder mergeWindowId(com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID value) {
if (windowIdBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
windowId_ != com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.getDefaultInstance()) {
windowId_ =
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.newBuilder(windowId_).mergeFrom(value).buildPartial();
} else {
windowId_ = value;
}
onChanged();
} else {
windowIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
public Builder clearWindowId() {
if (windowIdBuilder_ == null) {
windowId_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.getDefaultInstance();
onChanged();
} else {
windowIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.Builder getWindowIdBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getWindowIdFieldBuilder().getBuilder();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowIDOrBuilder getWindowIdOrBuilder() {
if (windowIdBuilder_ != null) {
return windowIdBuilder_.getMessageOrBuilder();
} else {
return windowId_;
}
}
private com.google.protobuf.SingleFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowIDOrBuilder>
getWindowIdFieldBuilder() {
if (windowIdBuilder_ == null) {
windowIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowIDOrBuilder>(
windowId_,
getParentForChildren(),
isClean());
windowId_ = null;
}
return windowIdBuilder_;
}
// repeated .scope.QuickMenuItemInfo menuItemList = 4;
private java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo> menuItemList_ =
java.util.Collections.emptyList();
private void ensureMenuItemListIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
menuItemList_ = new java.util.ArrayList<com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo>(menuItemList_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfoOrBuilder> menuItemListBuilder_;
public java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo> getMenuItemListList() {
if (menuItemListBuilder_ == null) {
return java.util.Collections.unmodifiableList(menuItemList_);
} else {
return menuItemListBuilder_.getMessageList();
}
}
public int getMenuItemListCount() {
if (menuItemListBuilder_ == null) {
return menuItemList_.size();
} else {
return menuItemListBuilder_.getCount();
}
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo getMenuItemList(int index) {
if (menuItemListBuilder_ == null) {
return menuItemList_.get(index);
} else {
return menuItemListBuilder_.getMessage(index);
}
}
public Builder setMenuItemList(
int index, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo value) {
if (menuItemListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMenuItemListIsMutable();
menuItemList_.set(index, value);
onChanged();
} else {
menuItemListBuilder_.setMessage(index, value);
}
return this;
}
public Builder setMenuItemList(
int index, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo.Builder builderForValue) {
if (menuItemListBuilder_ == null) {
ensureMenuItemListIsMutable();
menuItemList_.set(index, builderForValue.build());
onChanged();
} else {
menuItemListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
public Builder addMenuItemList(com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo value) {
if (menuItemListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMenuItemListIsMutable();
menuItemList_.add(value);
onChanged();
} else {
menuItemListBuilder_.addMessage(value);
}
return this;
}
public Builder addMenuItemList(
int index, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo value) {
if (menuItemListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMenuItemListIsMutable();
menuItemList_.add(index, value);
onChanged();
} else {
menuItemListBuilder_.addMessage(index, value);
}
return this;
}
public Builder addMenuItemList(
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo.Builder builderForValue) {
if (menuItemListBuilder_ == null) {
ensureMenuItemListIsMutable();
menuItemList_.add(builderForValue.build());
onChanged();
} else {
menuItemListBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addMenuItemList(
int index, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo.Builder builderForValue) {
if (menuItemListBuilder_ == null) {
ensureMenuItemListIsMutable();
menuItemList_.add(index, builderForValue.build());
onChanged();
} else {
menuItemListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
public Builder addAllMenuItemList(
java.lang.Iterable<? extends com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo> values) {
if (menuItemListBuilder_ == null) {
ensureMenuItemListIsMutable();
super.addAll(values, menuItemList_);
onChanged();
} else {
menuItemListBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearMenuItemList() {
if (menuItemListBuilder_ == null) {
menuItemList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
menuItemListBuilder_.clear();
}
return this;
}
public Builder removeMenuItemList(int index) {
if (menuItemListBuilder_ == null) {
ensureMenuItemListIsMutable();
menuItemList_.remove(index);
onChanged();
} else {
menuItemListBuilder_.remove(index);
}
return this;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo.Builder getMenuItemListBuilder(
int index) {
return getMenuItemListFieldBuilder().getBuilder(index);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfoOrBuilder getMenuItemListOrBuilder(
int index) {
if (menuItemListBuilder_ == null) {
return menuItemList_.get(index); } else {
return menuItemListBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List<? extends com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfoOrBuilder>
getMenuItemListOrBuilderList() {
if (menuItemListBuilder_ != null) {
return menuItemListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(menuItemList_);
}
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo.Builder addMenuItemListBuilder() {
return getMenuItemListFieldBuilder().addBuilder(
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo.getDefaultInstance());
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo.Builder addMenuItemListBuilder(
int index) {
return getMenuItemListFieldBuilder().addBuilder(
index, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo.getDefaultInstance());
}
public java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo.Builder>
getMenuItemListBuilderList() {
return getMenuItemListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfoOrBuilder>
getMenuItemListFieldBuilder() {
if (menuItemListBuilder_ == null) {
menuItemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfoOrBuilder>(
menuItemList_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
menuItemList_ = null;
}
return menuItemListBuilder_;
}
// @@protoc_insertion_point(builder_scope:scope.QuickMenuInfo)
}
static {
defaultInstance = new QuickMenuInfo(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:scope.QuickMenuInfo)
}
public interface QuickMenuItemIDOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string menuText = 1;
boolean hasMenuText();
String getMenuText();
// optional bool popupMenu = 2;
boolean hasPopupMenu();
boolean getPopupMenu();
}
public static final class QuickMenuItemID extends
com.google.protobuf.GeneratedMessage
implements QuickMenuItemIDOrBuilder {
// Use QuickMenuItemID.newBuilder() to construct.
private QuickMenuItemID(Builder builder) {
super(builder);
}
private QuickMenuItemID(boolean noInit) {}
private static final QuickMenuItemID defaultInstance;
public static QuickMenuItemID getDefaultInstance() {
return defaultInstance;
}
public QuickMenuItemID getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickMenuItemID_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickMenuItemID_fieldAccessorTable;
}
private int bitField0_;
// required string menuText = 1;
public static final int MENUTEXT_FIELD_NUMBER = 1;
private java.lang.Object menuText_;
public boolean hasMenuText() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public String getMenuText() {
java.lang.Object ref = menuText_;
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)) {
menuText_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getMenuTextBytes() {
java.lang.Object ref = menuText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
menuText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional bool popupMenu = 2;
public static final int POPUPMENU_FIELD_NUMBER = 2;
private boolean popupMenu_;
public boolean hasPopupMenu() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public boolean getPopupMenu() {
return popupMenu_;
}
private void initFields() {
menuText_ = "";
popupMenu_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasMenuText()) {
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, getMenuTextBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(2, popupMenu_);
}
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, getMenuTextBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, popupMenu_);
}
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.DesktopWmProtos.QuickMenuItemID parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemID 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.DesktopWmProtos.QuickMenuItemID parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemID 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.DesktopWmProtos.QuickMenuItemID parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemID 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.DesktopWmProtos.QuickMenuItemID 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.DesktopWmProtos.QuickMenuItemID 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.DesktopWmProtos.QuickMenuItemID parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemID 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.DesktopWmProtos.QuickMenuItemID 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.DesktopWmProtos.QuickMenuItemIDOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickMenuItemID_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickMenuItemID_fieldAccessorTable;
}
// Construct using com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemID.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();
menuText_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
popupMenu_ = false;
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.DesktopWmProtos.QuickMenuItemID.getDescriptor();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemID getDefaultInstanceForType() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemID.getDefaultInstance();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemID build() {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemID result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemID buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemID result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return result;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemID buildPartial() {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemID result = new com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemID(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.menuText_ = menuText_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.popupMenu_ = popupMenu_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemID) {
return mergeFrom((com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemID)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemID other) {
if (other == com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemID.getDefaultInstance()) return this;
if (other.hasMenuText()) {
setMenuText(other.getMenuText());
}
if (other.hasPopupMenu()) {
setPopupMenu(other.getPopupMenu());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasMenuText()) {
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;
menuText_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
popupMenu_ = input.readBool();
break;
}
}
}
}
private int bitField0_;
// required string menuText = 1;
private java.lang.Object menuText_ = "";
public boolean hasMenuText() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public String getMenuText() {
java.lang.Object ref = menuText_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
menuText_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setMenuText(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
menuText_ = value;
onChanged();
return this;
}
public Builder clearMenuText() {
bitField0_ = (bitField0_ & ~0x00000001);
menuText_ = getDefaultInstance().getMenuText();
onChanged();
return this;
}
void setMenuText(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000001;
menuText_ = value;
onChanged();
}
// optional bool popupMenu = 2;
private boolean popupMenu_ ;
public boolean hasPopupMenu() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public boolean getPopupMenu() {
return popupMenu_;
}
public Builder setPopupMenu(boolean value) {
bitField0_ |= 0x00000002;
popupMenu_ = value;
onChanged();
return this;
}
public Builder clearPopupMenu() {
bitField0_ = (bitField0_ & ~0x00000002);
popupMenu_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:scope.QuickMenuItemID)
}
static {
defaultInstance = new QuickMenuItemID(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:scope.QuickMenuItemID)
}
public interface QuickMenuItemInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string text = 1;
boolean hasText();
String getText();
// optional string action = 2;
boolean hasAction();
String getAction();
// optional string submenu = 3;
boolean hasSubmenu();
String getSubmenu();
// optional string actionParam = 4;
boolean hasActionParam();
String getActionParam();
// required uint32 row = 5;
boolean hasRow();
int getRow();
// optional string shortcutLetter = 6;
boolean hasShortcutLetter();
String getShortcutLetter();
// optional string shortcut = 7;
boolean hasShortcut();
String getShortcut();
// required .scope.DesktopWindowRect rect = 8;
boolean hasRect();
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect getRect();
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder getRectOrBuilder();
// required bool enabled = 9;
boolean hasEnabled();
boolean getEnabled();
// required bool checked = 10;
boolean hasChecked();
boolean getChecked();
// required bool bold = 11;
boolean hasBold();
boolean getBold();
// required bool separator = 12;
boolean hasSeparator();
boolean getSeparator();
}
public static final class QuickMenuItemInfo extends
com.google.protobuf.GeneratedMessage
implements QuickMenuItemInfoOrBuilder {
// Use QuickMenuItemInfo.newBuilder() to construct.
private QuickMenuItemInfo(Builder builder) {
super(builder);
}
private QuickMenuItemInfo(boolean noInit) {}
private static final QuickMenuItemInfo defaultInstance;
public static QuickMenuItemInfo getDefaultInstance() {
return defaultInstance;
}
public QuickMenuItemInfo getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickMenuItemInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickMenuItemInfo_fieldAccessorTable;
}
private int bitField0_;
// required string text = 1;
public static final int TEXT_FIELD_NUMBER = 1;
private java.lang.Object text_;
public boolean hasText() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public String getText() {
java.lang.Object ref = text_;
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)) {
text_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string action = 2;
public static final int ACTION_FIELD_NUMBER = 2;
private java.lang.Object action_;
public boolean hasAction() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public String getAction() {
java.lang.Object ref = action_;
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)) {
action_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getActionBytes() {
java.lang.Object ref = action_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
action_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string submenu = 3;
public static final int SUBMENU_FIELD_NUMBER = 3;
private java.lang.Object submenu_;
public boolean hasSubmenu() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public String getSubmenu() {
java.lang.Object ref = submenu_;
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)) {
submenu_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getSubmenuBytes() {
java.lang.Object ref = submenu_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
submenu_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string actionParam = 4;
public static final int ACTIONPARAM_FIELD_NUMBER = 4;
private java.lang.Object actionParam_;
public boolean hasActionParam() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
public String getActionParam() {
java.lang.Object ref = actionParam_;
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)) {
actionParam_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getActionParamBytes() {
java.lang.Object ref = actionParam_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
actionParam_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required uint32 row = 5;
public static final int ROW_FIELD_NUMBER = 5;
private int row_;
public boolean hasRow() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
public int getRow() {
return row_;
}
// optional string shortcutLetter = 6;
public static final int SHORTCUTLETTER_FIELD_NUMBER = 6;
private java.lang.Object shortcutLetter_;
public boolean hasShortcutLetter() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
public String getShortcutLetter() {
java.lang.Object ref = shortcutLetter_;
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)) {
shortcutLetter_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getShortcutLetterBytes() {
java.lang.Object ref = shortcutLetter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
shortcutLetter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string shortcut = 7;
public static final int SHORTCUT_FIELD_NUMBER = 7;
private java.lang.Object shortcut_;
public boolean hasShortcut() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
public String getShortcut() {
java.lang.Object ref = shortcut_;
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)) {
shortcut_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getShortcutBytes() {
java.lang.Object ref = shortcut_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
shortcut_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required .scope.DesktopWindowRect rect = 8;
public static final int RECT_FIELD_NUMBER = 8;
private com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect rect_;
public boolean hasRect() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect getRect() {
return rect_;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder getRectOrBuilder() {
return rect_;
}
// required bool enabled = 9;
public static final int ENABLED_FIELD_NUMBER = 9;
private boolean enabled_;
public boolean hasEnabled() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
public boolean getEnabled() {
return enabled_;
}
// required bool checked = 10;
public static final int CHECKED_FIELD_NUMBER = 10;
private boolean checked_;
public boolean hasChecked() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
public boolean getChecked() {
return checked_;
}
// required bool bold = 11;
public static final int BOLD_FIELD_NUMBER = 11;
private boolean bold_;
public boolean hasBold() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
public boolean getBold() {
return bold_;
}
// required bool separator = 12;
public static final int SEPARATOR_FIELD_NUMBER = 12;
private boolean separator_;
public boolean hasSeparator() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
public boolean getSeparator() {
return separator_;
}
private void initFields() {
text_ = "";
action_ = "";
submenu_ = "";
actionParam_ = "";
row_ = 0;
shortcutLetter_ = "";
shortcut_ = "";
rect_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDefaultInstance();
enabled_ = false;
checked_ = false;
bold_ = false;
separator_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasText()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasRow()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasRect()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasEnabled()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasChecked()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasBold()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasSeparator()) {
memoizedIsInitialized = 0;
return false;
}
if (!getRect().isInitialized()) {
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, getTextBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getActionBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getSubmenuBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getActionParamBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeUInt32(5, row_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBytes(6, getShortcutLetterBytes());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBytes(7, getShortcutBytes());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeMessage(8, rect_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeBool(9, enabled_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeBool(10, checked_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeBool(11, bold_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeBool(12, separator_);
}
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, getTextBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getActionBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getSubmenuBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getActionParamBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, row_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, getShortcutLetterBytes());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, getShortcutBytes());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, rect_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, enabled_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(10, checked_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(11, bold_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(12, separator_);
}
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.DesktopWmProtos.QuickMenuItemInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo 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.DesktopWmProtos.QuickMenuItemInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo 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.DesktopWmProtos.QuickMenuItemInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo 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.DesktopWmProtos.QuickMenuItemInfo 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.DesktopWmProtos.QuickMenuItemInfo 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.DesktopWmProtos.QuickMenuItemInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo 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.DesktopWmProtos.QuickMenuItemInfo 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.DesktopWmProtos.QuickMenuItemInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickMenuItemInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickMenuItemInfo_fieldAccessorTable;
}
// Construct using com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getRectFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
text_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
action_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
submenu_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
actionParam_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
row_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
shortcutLetter_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
shortcut_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
if (rectBuilder_ == null) {
rect_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDefaultInstance();
} else {
rectBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
enabled_ = false;
bitField0_ = (bitField0_ & ~0x00000100);
checked_ = false;
bitField0_ = (bitField0_ & ~0x00000200);
bold_ = false;
bitField0_ = (bitField0_ & ~0x00000400);
separator_ = false;
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo.getDescriptor();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo getDefaultInstanceForType() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo.getDefaultInstance();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo build() {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return result;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo buildPartial() {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo result = new com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.text_ = text_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.action_ = action_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.submenu_ = submenu_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.actionParam_ = actionParam_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.row_ = row_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.shortcutLetter_ = shortcutLetter_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.shortcut_ = shortcut_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
if (rectBuilder_ == null) {
result.rect_ = rect_;
} else {
result.rect_ = rectBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.enabled_ = enabled_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.checked_ = checked_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
result.bold_ = bold_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000800;
}
result.separator_ = separator_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo) {
return mergeFrom((com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo other) {
if (other == com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo.getDefaultInstance()) return this;
if (other.hasText()) {
setText(other.getText());
}
if (other.hasAction()) {
setAction(other.getAction());
}
if (other.hasSubmenu()) {
setSubmenu(other.getSubmenu());
}
if (other.hasActionParam()) {
setActionParam(other.getActionParam());
}
if (other.hasRow()) {
setRow(other.getRow());
}
if (other.hasShortcutLetter()) {
setShortcutLetter(other.getShortcutLetter());
}
if (other.hasShortcut()) {
setShortcut(other.getShortcut());
}
if (other.hasRect()) {
mergeRect(other.getRect());
}
if (other.hasEnabled()) {
setEnabled(other.getEnabled());
}
if (other.hasChecked()) {
setChecked(other.getChecked());
}
if (other.hasBold()) {
setBold(other.getBold());
}
if (other.hasSeparator()) {
setSeparator(other.getSeparator());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasText()) {
return false;
}
if (!hasRow()) {
return false;
}
if (!hasRect()) {
return false;
}
if (!hasEnabled()) {
return false;
}
if (!hasChecked()) {
return false;
}
if (!hasBold()) {
return false;
}
if (!hasSeparator()) {
return false;
}
if (!getRect().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: {
bitField0_ |= 0x00000001;
text_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
action_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000004;
submenu_ = input.readBytes();
break;
}
case 34: {
bitField0_ |= 0x00000008;
actionParam_ = input.readBytes();
break;
}
case 40: {
bitField0_ |= 0x00000010;
row_ = input.readUInt32();
break;
}
case 50: {
bitField0_ |= 0x00000020;
shortcutLetter_ = input.readBytes();
break;
}
case 58: {
bitField0_ |= 0x00000040;
shortcut_ = input.readBytes();
break;
}
case 66: {
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder subBuilder = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.newBuilder();
if (hasRect()) {
subBuilder.mergeFrom(getRect());
}
input.readMessage(subBuilder, extensionRegistry);
setRect(subBuilder.buildPartial());
break;
}
case 72: {
bitField0_ |= 0x00000100;
enabled_ = input.readBool();
break;
}
case 80: {
bitField0_ |= 0x00000200;
checked_ = input.readBool();
break;
}
case 88: {
bitField0_ |= 0x00000400;
bold_ = input.readBool();
break;
}
case 96: {
bitField0_ |= 0x00000800;
separator_ = input.readBool();
break;
}
}
}
}
private int bitField0_;
// required string text = 1;
private java.lang.Object text_ = "";
public boolean hasText() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public String getText() {
java.lang.Object ref = text_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
text_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setText(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
text_ = value;
onChanged();
return this;
}
public Builder clearText() {
bitField0_ = (bitField0_ & ~0x00000001);
text_ = getDefaultInstance().getText();
onChanged();
return this;
}
void setText(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000001;
text_ = value;
onChanged();
}
// optional string action = 2;
private java.lang.Object action_ = "";
public boolean hasAction() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public String getAction() {
java.lang.Object ref = action_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
action_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setAction(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
action_ = value;
onChanged();
return this;
}
public Builder clearAction() {
bitField0_ = (bitField0_ & ~0x00000002);
action_ = getDefaultInstance().getAction();
onChanged();
return this;
}
void setAction(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000002;
action_ = value;
onChanged();
}
// optional string submenu = 3;
private java.lang.Object submenu_ = "";
public boolean hasSubmenu() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public String getSubmenu() {
java.lang.Object ref = submenu_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
submenu_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setSubmenu(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
submenu_ = value;
onChanged();
return this;
}
public Builder clearSubmenu() {
bitField0_ = (bitField0_ & ~0x00000004);
submenu_ = getDefaultInstance().getSubmenu();
onChanged();
return this;
}
void setSubmenu(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000004;
submenu_ = value;
onChanged();
}
// optional string actionParam = 4;
private java.lang.Object actionParam_ = "";
public boolean hasActionParam() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
public String getActionParam() {
java.lang.Object ref = actionParam_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
actionParam_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setActionParam(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
actionParam_ = value;
onChanged();
return this;
}
public Builder clearActionParam() {
bitField0_ = (bitField0_ & ~0x00000008);
actionParam_ = getDefaultInstance().getActionParam();
onChanged();
return this;
}
void setActionParam(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000008;
actionParam_ = value;
onChanged();
}
// required uint32 row = 5;
private int row_ ;
public boolean hasRow() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
public int getRow() {
return row_;
}
public Builder setRow(int value) {
bitField0_ |= 0x00000010;
row_ = value;
onChanged();
return this;
}
public Builder clearRow() {
bitField0_ = (bitField0_ & ~0x00000010);
row_ = 0;
onChanged();
return this;
}
// optional string shortcutLetter = 6;
private java.lang.Object shortcutLetter_ = "";
public boolean hasShortcutLetter() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
public String getShortcutLetter() {
java.lang.Object ref = shortcutLetter_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
shortcutLetter_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setShortcutLetter(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
shortcutLetter_ = value;
onChanged();
return this;
}
public Builder clearShortcutLetter() {
bitField0_ = (bitField0_ & ~0x00000020);
shortcutLetter_ = getDefaultInstance().getShortcutLetter();
onChanged();
return this;
}
void setShortcutLetter(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000020;
shortcutLetter_ = value;
onChanged();
}
// optional string shortcut = 7;
private java.lang.Object shortcut_ = "";
public boolean hasShortcut() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
public String getShortcut() {
java.lang.Object ref = shortcut_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
shortcut_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setShortcut(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
shortcut_ = value;
onChanged();
return this;
}
public Builder clearShortcut() {
bitField0_ = (bitField0_ & ~0x00000040);
shortcut_ = getDefaultInstance().getShortcut();
onChanged();
return this;
}
void setShortcut(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000040;
shortcut_ = value;
onChanged();
}
// required .scope.DesktopWindowRect rect = 8;
private com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect rect_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder> rectBuilder_;
public boolean hasRect() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect getRect() {
if (rectBuilder_ == null) {
return rect_;
} else {
return rectBuilder_.getMessage();
}
}
public Builder setRect(com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect value) {
if (rectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rect_ = value;
onChanged();
} else {
rectBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
return this;
}
public Builder setRect(
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder builderForValue) {
if (rectBuilder_ == null) {
rect_ = builderForValue.build();
onChanged();
} else {
rectBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
return this;
}
public Builder mergeRect(com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect value) {
if (rectBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080) &&
rect_ != com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDefaultInstance()) {
rect_ =
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.newBuilder(rect_).mergeFrom(value).buildPartial();
} else {
rect_ = value;
}
onChanged();
} else {
rectBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
return this;
}
public Builder clearRect() {
if (rectBuilder_ == null) {
rect_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDefaultInstance();
onChanged();
} else {
rectBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder getRectBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getRectFieldBuilder().getBuilder();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder getRectOrBuilder() {
if (rectBuilder_ != null) {
return rectBuilder_.getMessageOrBuilder();
} else {
return rect_;
}
}
private com.google.protobuf.SingleFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder>
getRectFieldBuilder() {
if (rectBuilder_ == null) {
rectBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder>(
rect_,
getParentForChildren(),
isClean());
rect_ = null;
}
return rectBuilder_;
}
// required bool enabled = 9;
private boolean enabled_ ;
public boolean hasEnabled() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
public boolean getEnabled() {
return enabled_;
}
public Builder setEnabled(boolean value) {
bitField0_ |= 0x00000100;
enabled_ = value;
onChanged();
return this;
}
public Builder clearEnabled() {
bitField0_ = (bitField0_ & ~0x00000100);
enabled_ = false;
onChanged();
return this;
}
// required bool checked = 10;
private boolean checked_ ;
public boolean hasChecked() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
public boolean getChecked() {
return checked_;
}
public Builder setChecked(boolean value) {
bitField0_ |= 0x00000200;
checked_ = value;
onChanged();
return this;
}
public Builder clearChecked() {
bitField0_ = (bitField0_ & ~0x00000200);
checked_ = false;
onChanged();
return this;
}
// required bool bold = 11;
private boolean bold_ ;
public boolean hasBold() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
public boolean getBold() {
return bold_;
}
public Builder setBold(boolean value) {
bitField0_ |= 0x00000400;
bold_ = value;
onChanged();
return this;
}
public Builder clearBold() {
bitField0_ = (bitField0_ & ~0x00000400);
bold_ = false;
onChanged();
return this;
}
// required bool separator = 12;
private boolean separator_ ;
public boolean hasSeparator() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
public boolean getSeparator() {
return separator_;
}
public Builder setSeparator(boolean value) {
bitField0_ |= 0x00000800;
separator_ = value;
onChanged();
return this;
}
public Builder clearSeparator() {
bitField0_ = (bitField0_ & ~0x00000800);
separator_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:scope.QuickMenuItemInfo)
}
static {
defaultInstance = new QuickMenuItemInfo(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:scope.QuickMenuItemInfo)
}
public interface QuickWidgetInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string name = 1;
boolean hasName();
String getName();
// required .scope.QuickWidgetInfo.QuickWidgetType type = 2;
boolean hasType();
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.QuickWidgetType getType();
// required bool visible = 3;
boolean hasVisible();
boolean getVisible();
// required string text = 4;
boolean hasText();
String getText();
// required uint32 value = 5;
boolean hasValue();
int getValue();
// required bool enabled = 6;
boolean hasEnabled();
boolean getEnabled();
// required bool defaultLook = 7;
boolean hasDefaultLook();
boolean getDefaultLook();
// required bool focusedLook = 8;
boolean hasFocusedLook();
boolean getFocusedLook();
// required .scope.DesktopWindowRect rect = 9;
boolean hasRect();
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect getRect();
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder getRectOrBuilder();
// optional string parent = 10;
boolean hasParent();
String getParent();
// optional uint32 row = 11;
boolean hasRow();
int getRow();
// optional uint32 col = 12;
boolean hasCol();
int getCol();
// optional string visible_text = 13;
boolean hasVisibleText();
String getVisibleText();
// optional string additional_text = 14;
boolean hasAdditionalText();
String getAdditionalText();
}
public static final class QuickWidgetInfo extends
com.google.protobuf.GeneratedMessage
implements QuickWidgetInfoOrBuilder {
// Use QuickWidgetInfo.newBuilder() to construct.
private QuickWidgetInfo(Builder builder) {
super(builder);
}
private QuickWidgetInfo(boolean noInit) {}
private static final QuickWidgetInfo defaultInstance;
public static QuickWidgetInfo getDefaultInstance() {
return defaultInstance;
}
public QuickWidgetInfo getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickWidgetInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickWidgetInfo_fieldAccessorTable;
}
public enum QuickWidgetType
implements com.google.protobuf.ProtocolMessageEnum {
UNKNOWN(0, 0),
BUTTON(1, 1),
CHECKBOX(2, 2),
DIALOGTAB(3, 3),
DROPDOWN(4, 4),
DROPDOWNITEM(5, 5),
EDITFIELD(6, 6),
LABEL(7, 7),
RADIOBUTTON(8, 8),
ADDRESSFIELD(9, 9),
SEARCH(10, 10),
TOOLBAR(11, 11),
TREEVIEW(12, 12),
TREEITEM(13, 13),
TABBUTTON(14, 14),
THUMBNAIL(15, 15),
GRIDLAYOUT(16, 16),
GRIDITEM(17, 17),
QUICKFIND(18, 18),
ICON(19, 19),
PROGRESSBAR(20, 20),
LISTBOX(21, 21),
;
public static final int UNKNOWN_VALUE = 0;
public static final int BUTTON_VALUE = 1;
public static final int CHECKBOX_VALUE = 2;
public static final int DIALOGTAB_VALUE = 3;
public static final int DROPDOWN_VALUE = 4;
public static final int DROPDOWNITEM_VALUE = 5;
public static final int EDITFIELD_VALUE = 6;
public static final int LABEL_VALUE = 7;
public static final int RADIOBUTTON_VALUE = 8;
public static final int ADDRESSFIELD_VALUE = 9;
public static final int SEARCH_VALUE = 10;
public static final int TOOLBAR_VALUE = 11;
public static final int TREEVIEW_VALUE = 12;
public static final int TREEITEM_VALUE = 13;
public static final int TABBUTTON_VALUE = 14;
public static final int THUMBNAIL_VALUE = 15;
public static final int GRIDLAYOUT_VALUE = 16;
public static final int GRIDITEM_VALUE = 17;
public static final int QUICKFIND_VALUE = 18;
public static final int ICON_VALUE = 19;
public static final int PROGRESSBAR_VALUE = 20;
public static final int LISTBOX_VALUE = 21;
public final int getNumber() { return value; }
public static QuickWidgetType valueOf(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return BUTTON;
case 2: return CHECKBOX;
case 3: return DIALOGTAB;
case 4: return DROPDOWN;
case 5: return DROPDOWNITEM;
case 6: return EDITFIELD;
case 7: return LABEL;
case 8: return RADIOBUTTON;
case 9: return ADDRESSFIELD;
case 10: return SEARCH;
case 11: return TOOLBAR;
case 12: return TREEVIEW;
case 13: return TREEITEM;
case 14: return TABBUTTON;
case 15: return THUMBNAIL;
case 16: return GRIDLAYOUT;
case 17: return GRIDITEM;
case 18: return QUICKFIND;
case 19: return ICON;
case 20: return PROGRESSBAR;
case 21: return LISTBOX;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<QuickWidgetType>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<QuickWidgetType>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<QuickWidgetType>() {
public QuickWidgetType findValueByNumber(int number) {
return QuickWidgetType.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.DesktopWmProtos.QuickWidgetInfo.getDescriptor().getEnumTypes().get(0);
}
private static final QuickWidgetType[] VALUES = {
UNKNOWN, BUTTON, CHECKBOX, DIALOGTAB, DROPDOWN, DROPDOWNITEM, EDITFIELD, LABEL, RADIOBUTTON, ADDRESSFIELD, SEARCH, TOOLBAR, TREEVIEW, TREEITEM, TABBUTTON, THUMBNAIL, GRIDLAYOUT, GRIDITEM, QUICKFIND, ICON, PROGRESSBAR, LISTBOX,
};
public static QuickWidgetType 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 QuickWidgetType(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:scope.QuickWidgetInfo.QuickWidgetType)
}
private int bitField0_;
// required string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.Object name_;
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public String getName() {
java.lang.Object ref = name_;
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)) {
name_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required .scope.QuickWidgetInfo.QuickWidgetType type = 2;
public static final int TYPE_FIELD_NUMBER = 2;
private com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.QuickWidgetType type_;
public boolean hasType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.QuickWidgetType getType() {
return type_;
}
// required bool visible = 3;
public static final int VISIBLE_FIELD_NUMBER = 3;
private boolean visible_;
public boolean hasVisible() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public boolean getVisible() {
return visible_;
}
// required string text = 4;
public static final int TEXT_FIELD_NUMBER = 4;
private java.lang.Object text_;
public boolean hasText() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
public String getText() {
java.lang.Object ref = text_;
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)) {
text_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required uint32 value = 5;
public static final int VALUE_FIELD_NUMBER = 5;
private int value_;
public boolean hasValue() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
public int getValue() {
return value_;
}
// required bool enabled = 6;
public static final int ENABLED_FIELD_NUMBER = 6;
private boolean enabled_;
public boolean hasEnabled() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
public boolean getEnabled() {
return enabled_;
}
// required bool defaultLook = 7;
public static final int DEFAULTLOOK_FIELD_NUMBER = 7;
private boolean defaultLook_;
public boolean hasDefaultLook() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
public boolean getDefaultLook() {
return defaultLook_;
}
// required bool focusedLook = 8;
public static final int FOCUSEDLOOK_FIELD_NUMBER = 8;
private boolean focusedLook_;
public boolean hasFocusedLook() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
public boolean getFocusedLook() {
return focusedLook_;
}
// required .scope.DesktopWindowRect rect = 9;
public static final int RECT_FIELD_NUMBER = 9;
private com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect rect_;
public boolean hasRect() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect getRect() {
return rect_;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder getRectOrBuilder() {
return rect_;
}
// optional string parent = 10;
public static final int PARENT_FIELD_NUMBER = 10;
private java.lang.Object parent_;
public boolean hasParent() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
public String getParent() {
java.lang.Object ref = parent_;
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)) {
parent_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
parent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional uint32 row = 11;
public static final int ROW_FIELD_NUMBER = 11;
private int row_;
public boolean hasRow() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
public int getRow() {
return row_;
}
// optional uint32 col = 12;
public static final int COL_FIELD_NUMBER = 12;
private int col_;
public boolean hasCol() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
public int getCol() {
return col_;
}
// optional string visible_text = 13;
public static final int VISIBLE_TEXT_FIELD_NUMBER = 13;
private java.lang.Object visibleText_;
public boolean hasVisibleText() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
public String getVisibleText() {
java.lang.Object ref = visibleText_;
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)) {
visibleText_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getVisibleTextBytes() {
java.lang.Object ref = visibleText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
visibleText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string additional_text = 14;
public static final int ADDITIONAL_TEXT_FIELD_NUMBER = 14;
private java.lang.Object additionalText_;
public boolean hasAdditionalText() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
public String getAdditionalText() {
java.lang.Object ref = additionalText_;
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)) {
additionalText_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getAdditionalTextBytes() {
java.lang.Object ref = additionalText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
additionalText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
name_ = "";
type_ = com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.QuickWidgetType.UNKNOWN;
visible_ = false;
text_ = "";
value_ = 0;
enabled_ = false;
defaultLook_ = false;
focusedLook_ = false;
rect_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDefaultInstance();
parent_ = "";
row_ = 0;
col_ = 0;
visibleText_ = "";
additionalText_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasType()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasVisible()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasText()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasValue()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasEnabled()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasDefaultLook()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasFocusedLook()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasRect()) {
memoizedIsInitialized = 0;
return false;
}
if (!getRect().isInitialized()) {
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, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeEnum(2, type_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(3, visible_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getTextBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeUInt32(5, value_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBool(6, enabled_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBool(7, defaultLook_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeBool(8, focusedLook_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeMessage(9, rect_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeBytes(10, getParentBytes());
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeUInt32(11, row_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeUInt32(12, col_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
output.writeBytes(13, getVisibleTextBytes());
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
output.writeBytes(14, getAdditionalTextBytes());
}
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, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, type_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, visible_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getTextBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, value_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, enabled_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, defaultLook_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, focusedLook_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, rect_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(10, getParentBytes());
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(11, row_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, col_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(13, getVisibleTextBytes());
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(14, getAdditionalTextBytes());
}
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.DesktopWmProtos.QuickWidgetInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo 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.DesktopWmProtos.QuickWidgetInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo 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.DesktopWmProtos.QuickWidgetInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo 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.DesktopWmProtos.QuickWidgetInfo 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.DesktopWmProtos.QuickWidgetInfo 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.DesktopWmProtos.QuickWidgetInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo 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.DesktopWmProtos.QuickWidgetInfo 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.DesktopWmProtos.QuickWidgetInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickWidgetInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickWidgetInfo_fieldAccessorTable;
}
// Construct using com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getRectFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
type_ = com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.QuickWidgetType.UNKNOWN;
bitField0_ = (bitField0_ & ~0x00000002);
visible_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
text_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
value_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
enabled_ = false;
bitField0_ = (bitField0_ & ~0x00000020);
defaultLook_ = false;
bitField0_ = (bitField0_ & ~0x00000040);
focusedLook_ = false;
bitField0_ = (bitField0_ & ~0x00000080);
if (rectBuilder_ == null) {
rect_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDefaultInstance();
} else {
rectBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
parent_ = "";
bitField0_ = (bitField0_ & ~0x00000200);
row_ = 0;
bitField0_ = (bitField0_ & ~0x00000400);
col_ = 0;
bitField0_ = (bitField0_ & ~0x00000800);
visibleText_ = "";
bitField0_ = (bitField0_ & ~0x00001000);
additionalText_ = "";
bitField0_ = (bitField0_ & ~0x00002000);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.getDescriptor();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo getDefaultInstanceForType() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.getDefaultInstance();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo build() {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return result;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo buildPartial() {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo result = new com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.visible_ = visible_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.text_ = text_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.value_ = value_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.enabled_ = enabled_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.defaultLook_ = defaultLook_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.focusedLook_ = focusedLook_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
if (rectBuilder_ == null) {
result.rect_ = rect_;
} else {
result.rect_ = rectBuilder_.build();
}
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.parent_ = parent_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
result.row_ = row_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000800;
}
result.col_ = col_;
if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
to_bitField0_ |= 0x00001000;
}
result.visibleText_ = visibleText_;
if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
to_bitField0_ |= 0x00002000;
}
result.additionalText_ = additionalText_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo) {
return mergeFrom((com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo other) {
if (other == com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.getDefaultInstance()) return this;
if (other.hasName()) {
setName(other.getName());
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasVisible()) {
setVisible(other.getVisible());
}
if (other.hasText()) {
setText(other.getText());
}
if (other.hasValue()) {
setValue(other.getValue());
}
if (other.hasEnabled()) {
setEnabled(other.getEnabled());
}
if (other.hasDefaultLook()) {
setDefaultLook(other.getDefaultLook());
}
if (other.hasFocusedLook()) {
setFocusedLook(other.getFocusedLook());
}
if (other.hasRect()) {
mergeRect(other.getRect());
}
if (other.hasParent()) {
setParent(other.getParent());
}
if (other.hasRow()) {
setRow(other.getRow());
}
if (other.hasCol()) {
setCol(other.getCol());
}
if (other.hasVisibleText()) {
setVisibleText(other.getVisibleText());
}
if (other.hasAdditionalText()) {
setAdditionalText(other.getAdditionalText());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
if (!hasType()) {
return false;
}
if (!hasVisible()) {
return false;
}
if (!hasText()) {
return false;
}
if (!hasValue()) {
return false;
}
if (!hasEnabled()) {
return false;
}
if (!hasDefaultLook()) {
return false;
}
if (!hasFocusedLook()) {
return false;
}
if (!hasRect()) {
return false;
}
if (!getRect().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: {
bitField0_ |= 0x00000001;
name_ = input.readBytes();
break;
}
case 16: {
int rawValue = input.readEnum();
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.QuickWidgetType value = com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.QuickWidgetType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
type_ = value;
}
break;
}
case 24: {
bitField0_ |= 0x00000004;
visible_ = input.readBool();
break;
}
case 34: {
bitField0_ |= 0x00000008;
text_ = input.readBytes();
break;
}
case 40: {
bitField0_ |= 0x00000010;
value_ = input.readUInt32();
break;
}
case 48: {
bitField0_ |= 0x00000020;
enabled_ = input.readBool();
break;
}
case 56: {
bitField0_ |= 0x00000040;
defaultLook_ = input.readBool();
break;
}
case 64: {
bitField0_ |= 0x00000080;
focusedLook_ = input.readBool();
break;
}
case 74: {
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder subBuilder = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.newBuilder();
if (hasRect()) {
subBuilder.mergeFrom(getRect());
}
input.readMessage(subBuilder, extensionRegistry);
setRect(subBuilder.buildPartial());
break;
}
case 82: {
bitField0_ |= 0x00000200;
parent_ = input.readBytes();
break;
}
case 88: {
bitField0_ |= 0x00000400;
row_ = input.readUInt32();
break;
}
case 96: {
bitField0_ |= 0x00000800;
col_ = input.readUInt32();
break;
}
case 106: {
bitField0_ |= 0x00001000;
visibleText_ = input.readBytes();
break;
}
case 114: {
bitField0_ |= 0x00002000;
additionalText_ = input.readBytes();
break;
}
}
}
}
private int bitField0_;
// required string name = 1;
private java.lang.Object name_ = "";
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
name_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setName(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
void setName(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
}
// required .scope.QuickWidgetInfo.QuickWidgetType type = 2;
private com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.QuickWidgetType type_ = com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.QuickWidgetType.UNKNOWN;
public boolean hasType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.QuickWidgetType getType() {
return type_;
}
public Builder setType(com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.QuickWidgetType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
type_ = value;
onChanged();
return this;
}
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
type_ = com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.QuickWidgetType.UNKNOWN;
onChanged();
return this;
}
// required bool visible = 3;
private boolean visible_ ;
public boolean hasVisible() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public boolean getVisible() {
return visible_;
}
public Builder setVisible(boolean value) {
bitField0_ |= 0x00000004;
visible_ = value;
onChanged();
return this;
}
public Builder clearVisible() {
bitField0_ = (bitField0_ & ~0x00000004);
visible_ = false;
onChanged();
return this;
}
// required string text = 4;
private java.lang.Object text_ = "";
public boolean hasText() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
public String getText() {
java.lang.Object ref = text_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
text_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setText(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
text_ = value;
onChanged();
return this;
}
public Builder clearText() {
bitField0_ = (bitField0_ & ~0x00000008);
text_ = getDefaultInstance().getText();
onChanged();
return this;
}
void setText(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000008;
text_ = value;
onChanged();
}
// required uint32 value = 5;
private int value_ ;
public boolean hasValue() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
public int getValue() {
return value_;
}
public Builder setValue(int value) {
bitField0_ |= 0x00000010;
value_ = value;
onChanged();
return this;
}
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000010);
value_ = 0;
onChanged();
return this;
}
// required bool enabled = 6;
private boolean enabled_ ;
public boolean hasEnabled() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
public boolean getEnabled() {
return enabled_;
}
public Builder setEnabled(boolean value) {
bitField0_ |= 0x00000020;
enabled_ = value;
onChanged();
return this;
}
public Builder clearEnabled() {
bitField0_ = (bitField0_ & ~0x00000020);
enabled_ = false;
onChanged();
return this;
}
// required bool defaultLook = 7;
private boolean defaultLook_ ;
public boolean hasDefaultLook() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
public boolean getDefaultLook() {
return defaultLook_;
}
public Builder setDefaultLook(boolean value) {
bitField0_ |= 0x00000040;
defaultLook_ = value;
onChanged();
return this;
}
public Builder clearDefaultLook() {
bitField0_ = (bitField0_ & ~0x00000040);
defaultLook_ = false;
onChanged();
return this;
}
// required bool focusedLook = 8;
private boolean focusedLook_ ;
public boolean hasFocusedLook() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
public boolean getFocusedLook() {
return focusedLook_;
}
public Builder setFocusedLook(boolean value) {
bitField0_ |= 0x00000080;
focusedLook_ = value;
onChanged();
return this;
}
public Builder clearFocusedLook() {
bitField0_ = (bitField0_ & ~0x00000080);
focusedLook_ = false;
onChanged();
return this;
}
// required .scope.DesktopWindowRect rect = 9;
private com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect rect_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder> rectBuilder_;
public boolean hasRect() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect getRect() {
if (rectBuilder_ == null) {
return rect_;
} else {
return rectBuilder_.getMessage();
}
}
public Builder setRect(com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect value) {
if (rectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rect_ = value;
onChanged();
} else {
rectBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
return this;
}
public Builder setRect(
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder builderForValue) {
if (rectBuilder_ == null) {
rect_ = builderForValue.build();
onChanged();
} else {
rectBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
return this;
}
public Builder mergeRect(com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect value) {
if (rectBuilder_ == null) {
if (((bitField0_ & 0x00000100) == 0x00000100) &&
rect_ != com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDefaultInstance()) {
rect_ =
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.newBuilder(rect_).mergeFrom(value).buildPartial();
} else {
rect_ = value;
}
onChanged();
} else {
rectBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000100;
return this;
}
public Builder clearRect() {
if (rectBuilder_ == null) {
rect_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.getDefaultInstance();
onChanged();
} else {
rectBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder getRectBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getRectFieldBuilder().getBuilder();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder getRectOrBuilder() {
if (rectBuilder_ != null) {
return rectBuilder_.getMessageOrBuilder();
} else {
return rect_;
}
}
private com.google.protobuf.SingleFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder>
getRectFieldBuilder() {
if (rectBuilder_ == null) {
rectBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRectOrBuilder>(
rect_,
getParentForChildren(),
isClean());
rect_ = null;
}
return rectBuilder_;
}
// optional string parent = 10;
private java.lang.Object parent_ = "";
public boolean hasParent() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
public String getParent() {
java.lang.Object ref = parent_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
parent_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setParent(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
parent_ = value;
onChanged();
return this;
}
public Builder clearParent() {
bitField0_ = (bitField0_ & ~0x00000200);
parent_ = getDefaultInstance().getParent();
onChanged();
return this;
}
void setParent(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000200;
parent_ = value;
onChanged();
}
// optional uint32 row = 11;
private int row_ ;
public boolean hasRow() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
public int getRow() {
return row_;
}
public Builder setRow(int value) {
bitField0_ |= 0x00000400;
row_ = value;
onChanged();
return this;
}
public Builder clearRow() {
bitField0_ = (bitField0_ & ~0x00000400);
row_ = 0;
onChanged();
return this;
}
// optional uint32 col = 12;
private int col_ ;
public boolean hasCol() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
public int getCol() {
return col_;
}
public Builder setCol(int value) {
bitField0_ |= 0x00000800;
col_ = value;
onChanged();
return this;
}
public Builder clearCol() {
bitField0_ = (bitField0_ & ~0x00000800);
col_ = 0;
onChanged();
return this;
}
// optional string visible_text = 13;
private java.lang.Object visibleText_ = "";
public boolean hasVisibleText() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
public String getVisibleText() {
java.lang.Object ref = visibleText_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
visibleText_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setVisibleText(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00001000;
visibleText_ = value;
onChanged();
return this;
}
public Builder clearVisibleText() {
bitField0_ = (bitField0_ & ~0x00001000);
visibleText_ = getDefaultInstance().getVisibleText();
onChanged();
return this;
}
void setVisibleText(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00001000;
visibleText_ = value;
onChanged();
}
// optional string additional_text = 14;
private java.lang.Object additionalText_ = "";
public boolean hasAdditionalText() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
public String getAdditionalText() {
java.lang.Object ref = additionalText_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
additionalText_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setAdditionalText(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
additionalText_ = value;
onChanged();
return this;
}
public Builder clearAdditionalText() {
bitField0_ = (bitField0_ & ~0x00002000);
additionalText_ = getDefaultInstance().getAdditionalText();
onChanged();
return this;
}
void setAdditionalText(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00002000;
additionalText_ = value;
onChanged();
}
// @@protoc_insertion_point(builder_scope:scope.QuickWidgetInfo)
}
static {
defaultInstance = new QuickWidgetInfo(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:scope.QuickWidgetInfo)
}
public interface DesktopWindowIDOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required uint32 windowID = 1;
boolean hasWindowID();
int getWindowID();
}
public static final class DesktopWindowID extends
com.google.protobuf.GeneratedMessage
implements DesktopWindowIDOrBuilder {
// Use DesktopWindowID.newBuilder() to construct.
private DesktopWindowID(Builder builder) {
super(builder);
}
private DesktopWindowID(boolean noInit) {}
private static final DesktopWindowID defaultInstance;
public static DesktopWindowID getDefaultInstance() {
return defaultInstance;
}
public DesktopWindowID getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_DesktopWindowID_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_DesktopWindowID_fieldAccessorTable;
}
private int bitField0_;
// required uint32 windowID = 1;
public static final int WINDOWID_FIELD_NUMBER = 1;
private int windowID_;
public boolean hasWindowID() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public int getWindowID() {
return windowID_;
}
private void initFields() {
windowID_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasWindowID()) {
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.writeUInt32(1, windowID_);
}
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
.computeUInt32Size(1, windowID_);
}
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.DesktopWmProtos.DesktopWindowID parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID 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.DesktopWmProtos.DesktopWindowID parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID 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.DesktopWmProtos.DesktopWindowID parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID 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.DesktopWmProtos.DesktopWindowID 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.DesktopWmProtos.DesktopWindowID 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.DesktopWmProtos.DesktopWindowID parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID 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.DesktopWmProtos.DesktopWindowID 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.DesktopWmProtos.DesktopWindowIDOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_DesktopWindowID_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_DesktopWindowID_fieldAccessorTable;
}
// Construct using com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.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();
windowID_ = 0;
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.DesktopWmProtos.DesktopWindowID.getDescriptor();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID getDefaultInstanceForType() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.getDefaultInstance();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID build() {
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return result;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID buildPartial() {
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID result = new com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.windowID_ = windowID_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID) {
return mergeFrom((com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID other) {
if (other == com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.getDefaultInstance()) return this;
if (other.hasWindowID()) {
setWindowID(other.getWindowID());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasWindowID()) {
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: {
bitField0_ |= 0x00000001;
windowID_ = input.readUInt32();
break;
}
}
}
}
private int bitField0_;
// required uint32 windowID = 1;
private int windowID_ ;
public boolean hasWindowID() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public int getWindowID() {
return windowID_;
}
public Builder setWindowID(int value) {
bitField0_ |= 0x00000001;
windowID_ = value;
onChanged();
return this;
}
public Builder clearWindowID() {
bitField0_ = (bitField0_ & ~0x00000001);
windowID_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:scope.DesktopWindowID)
}
static {
defaultInstance = new DesktopWindowID(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:scope.DesktopWindowID)
}
public interface DesktopWindowListOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .scope.DesktopWindowInfo windowList = 1;
java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo>
getWindowListList();
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo getWindowList(int index);
int getWindowListCount();
java.util.List<? extends com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfoOrBuilder>
getWindowListOrBuilderList();
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfoOrBuilder getWindowListOrBuilder(
int index);
}
public static final class DesktopWindowList extends
com.google.protobuf.GeneratedMessage
implements DesktopWindowListOrBuilder {
// Use DesktopWindowList.newBuilder() to construct.
private DesktopWindowList(Builder builder) {
super(builder);
}
private DesktopWindowList(boolean noInit) {}
private static final DesktopWindowList defaultInstance;
public static DesktopWindowList getDefaultInstance() {
return defaultInstance;
}
public DesktopWindowList getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_DesktopWindowList_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_DesktopWindowList_fieldAccessorTable;
}
// repeated .scope.DesktopWindowInfo windowList = 1;
public static final int WINDOWLIST_FIELD_NUMBER = 1;
private java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo> windowList_;
public java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo> getWindowListList() {
return windowList_;
}
public java.util.List<? extends com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfoOrBuilder>
getWindowListOrBuilderList() {
return windowList_;
}
public int getWindowListCount() {
return windowList_.size();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo getWindowList(int index) {
return windowList_.get(index);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfoOrBuilder getWindowListOrBuilder(
int index) {
return windowList_.get(index);
}
private void initFields() {
windowList_ = 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 < getWindowListCount(); i++) {
if (!getWindowList(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 < windowList_.size(); i++) {
output.writeMessage(1, windowList_.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 < windowList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, windowList_.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.DesktopWmProtos.DesktopWindowList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowList 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.DesktopWmProtos.DesktopWindowList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowList 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.DesktopWmProtos.DesktopWindowList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowList 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.DesktopWmProtos.DesktopWindowList 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.DesktopWmProtos.DesktopWindowList 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.DesktopWmProtos.DesktopWindowList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowList 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.DesktopWmProtos.DesktopWindowList 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.DesktopWmProtos.DesktopWindowListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_DesktopWindowList_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_DesktopWindowList_fieldAccessorTable;
}
// Construct using com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getWindowListFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (windowListBuilder_ == null) {
windowList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
windowListBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowList.getDescriptor();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowList getDefaultInstanceForType() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowList.getDefaultInstance();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowList build() {
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowList buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return result;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowList buildPartial() {
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowList result = new com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowList(this);
int from_bitField0_ = bitField0_;
if (windowListBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
windowList_ = java.util.Collections.unmodifiableList(windowList_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.windowList_ = windowList_;
} else {
result.windowList_ = windowListBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowList) {
return mergeFrom((com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowList other) {
if (other == com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowList.getDefaultInstance()) return this;
if (windowListBuilder_ == null) {
if (!other.windowList_.isEmpty()) {
if (windowList_.isEmpty()) {
windowList_ = other.windowList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureWindowListIsMutable();
windowList_.addAll(other.windowList_);
}
onChanged();
}
} else {
if (!other.windowList_.isEmpty()) {
if (windowListBuilder_.isEmpty()) {
windowListBuilder_.dispose();
windowListBuilder_ = null;
windowList_ = other.windowList_;
bitField0_ = (bitField0_ & ~0x00000001);
windowListBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getWindowListFieldBuilder() : null;
} else {
windowListBuilder_.addAllMessages(other.windowList_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getWindowListCount(); i++) {
if (!getWindowList(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.DesktopWmProtos.DesktopWindowInfo.Builder subBuilder = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.newBuilder();
input.readMessage(subBuilder, extensionRegistry);
addWindowList(subBuilder.buildPartial());
break;
}
}
}
}
private int bitField0_;
// repeated .scope.DesktopWindowInfo windowList = 1;
private java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo> windowList_ =
java.util.Collections.emptyList();
private void ensureWindowListIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
windowList_ = new java.util.ArrayList<com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo>(windowList_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfoOrBuilder> windowListBuilder_;
public java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo> getWindowListList() {
if (windowListBuilder_ == null) {
return java.util.Collections.unmodifiableList(windowList_);
} else {
return windowListBuilder_.getMessageList();
}
}
public int getWindowListCount() {
if (windowListBuilder_ == null) {
return windowList_.size();
} else {
return windowListBuilder_.getCount();
}
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo getWindowList(int index) {
if (windowListBuilder_ == null) {
return windowList_.get(index);
} else {
return windowListBuilder_.getMessage(index);
}
}
public Builder setWindowList(
int index, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo value) {
if (windowListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWindowListIsMutable();
windowList_.set(index, value);
onChanged();
} else {
windowListBuilder_.setMessage(index, value);
}
return this;
}
public Builder setWindowList(
int index, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.Builder builderForValue) {
if (windowListBuilder_ == null) {
ensureWindowListIsMutable();
windowList_.set(index, builderForValue.build());
onChanged();
} else {
windowListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
public Builder addWindowList(com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo value) {
if (windowListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWindowListIsMutable();
windowList_.add(value);
onChanged();
} else {
windowListBuilder_.addMessage(value);
}
return this;
}
public Builder addWindowList(
int index, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo value) {
if (windowListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWindowListIsMutable();
windowList_.add(index, value);
onChanged();
} else {
windowListBuilder_.addMessage(index, value);
}
return this;
}
public Builder addWindowList(
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.Builder builderForValue) {
if (windowListBuilder_ == null) {
ensureWindowListIsMutable();
windowList_.add(builderForValue.build());
onChanged();
} else {
windowListBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addWindowList(
int index, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.Builder builderForValue) {
if (windowListBuilder_ == null) {
ensureWindowListIsMutable();
windowList_.add(index, builderForValue.build());
onChanged();
} else {
windowListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
public Builder addAllWindowList(
java.lang.Iterable<? extends com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo> values) {
if (windowListBuilder_ == null) {
ensureWindowListIsMutable();
super.addAll(values, windowList_);
onChanged();
} else {
windowListBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearWindowList() {
if (windowListBuilder_ == null) {
windowList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
windowListBuilder_.clear();
}
return this;
}
public Builder removeWindowList(int index) {
if (windowListBuilder_ == null) {
ensureWindowListIsMutable();
windowList_.remove(index);
onChanged();
} else {
windowListBuilder_.remove(index);
}
return this;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.Builder getWindowListBuilder(
int index) {
return getWindowListFieldBuilder().getBuilder(index);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfoOrBuilder getWindowListOrBuilder(
int index) {
if (windowListBuilder_ == null) {
return windowList_.get(index); } else {
return windowListBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List<? extends com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfoOrBuilder>
getWindowListOrBuilderList() {
if (windowListBuilder_ != null) {
return windowListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(windowList_);
}
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.Builder addWindowListBuilder() {
return getWindowListFieldBuilder().addBuilder(
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.getDefaultInstance());
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.Builder addWindowListBuilder(
int index) {
return getWindowListFieldBuilder().addBuilder(
index, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.getDefaultInstance());
}
public java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.Builder>
getWindowListBuilderList() {
return getWindowListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfoOrBuilder>
getWindowListFieldBuilder() {
if (windowListBuilder_ == null) {
windowListBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfoOrBuilder>(
windowList_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
windowList_ = null;
}
return windowListBuilder_;
}
// @@protoc_insertion_point(builder_scope:scope.DesktopWindowList)
}
static {
defaultInstance = new DesktopWindowList(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:scope.DesktopWindowList)
}
public interface QuickWidgetInfoListOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .scope.QuickWidgetInfo quickwidgetList = 1;
java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo>
getQuickwidgetListList();
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo getQuickwidgetList(int index);
int getQuickwidgetListCount();
java.util.List<? extends com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoOrBuilder>
getQuickwidgetListOrBuilderList();
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoOrBuilder getQuickwidgetListOrBuilder(
int index);
}
public static final class QuickWidgetInfoList extends
com.google.protobuf.GeneratedMessage
implements QuickWidgetInfoListOrBuilder {
// Use QuickWidgetInfoList.newBuilder() to construct.
private QuickWidgetInfoList(Builder builder) {
super(builder);
}
private QuickWidgetInfoList(boolean noInit) {}
private static final QuickWidgetInfoList defaultInstance;
public static QuickWidgetInfoList getDefaultInstance() {
return defaultInstance;
}
public QuickWidgetInfoList getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickWidgetInfoList_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickWidgetInfoList_fieldAccessorTable;
}
// repeated .scope.QuickWidgetInfo quickwidgetList = 1;
public static final int QUICKWIDGETLIST_FIELD_NUMBER = 1;
private java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo> quickwidgetList_;
public java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo> getQuickwidgetListList() {
return quickwidgetList_;
}
public java.util.List<? extends com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoOrBuilder>
getQuickwidgetListOrBuilderList() {
return quickwidgetList_;
}
public int getQuickwidgetListCount() {
return quickwidgetList_.size();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo getQuickwidgetList(int index) {
return quickwidgetList_.get(index);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoOrBuilder getQuickwidgetListOrBuilder(
int index) {
return quickwidgetList_.get(index);
}
private void initFields() {
quickwidgetList_ = 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 < getQuickwidgetListCount(); i++) {
if (!getQuickwidgetList(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 < quickwidgetList_.size(); i++) {
output.writeMessage(1, quickwidgetList_.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 < quickwidgetList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, quickwidgetList_.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.DesktopWmProtos.QuickWidgetInfoList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoList 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.DesktopWmProtos.QuickWidgetInfoList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoList 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.DesktopWmProtos.QuickWidgetInfoList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoList 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.DesktopWmProtos.QuickWidgetInfoList 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.DesktopWmProtos.QuickWidgetInfoList 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.DesktopWmProtos.QuickWidgetInfoList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoList 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.DesktopWmProtos.QuickWidgetInfoList 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.DesktopWmProtos.QuickWidgetInfoListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickWidgetInfoList_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickWidgetInfoList_fieldAccessorTable;
}
// Construct using com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getQuickwidgetListFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (quickwidgetListBuilder_ == null) {
quickwidgetList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
quickwidgetListBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoList.getDescriptor();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoList getDefaultInstanceForType() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoList.getDefaultInstance();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoList build() {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoList buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return result;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoList buildPartial() {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoList result = new com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoList(this);
int from_bitField0_ = bitField0_;
if (quickwidgetListBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
quickwidgetList_ = java.util.Collections.unmodifiableList(quickwidgetList_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.quickwidgetList_ = quickwidgetList_;
} else {
result.quickwidgetList_ = quickwidgetListBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoList) {
return mergeFrom((com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoList other) {
if (other == com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoList.getDefaultInstance()) return this;
if (quickwidgetListBuilder_ == null) {
if (!other.quickwidgetList_.isEmpty()) {
if (quickwidgetList_.isEmpty()) {
quickwidgetList_ = other.quickwidgetList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureQuickwidgetListIsMutable();
quickwidgetList_.addAll(other.quickwidgetList_);
}
onChanged();
}
} else {
if (!other.quickwidgetList_.isEmpty()) {
if (quickwidgetListBuilder_.isEmpty()) {
quickwidgetListBuilder_.dispose();
quickwidgetListBuilder_ = null;
quickwidgetList_ = other.quickwidgetList_;
bitField0_ = (bitField0_ & ~0x00000001);
quickwidgetListBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getQuickwidgetListFieldBuilder() : null;
} else {
quickwidgetListBuilder_.addAllMessages(other.quickwidgetList_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getQuickwidgetListCount(); i++) {
if (!getQuickwidgetList(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.DesktopWmProtos.QuickWidgetInfo.Builder subBuilder = com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.newBuilder();
input.readMessage(subBuilder, extensionRegistry);
addQuickwidgetList(subBuilder.buildPartial());
break;
}
}
}
}
private int bitField0_;
// repeated .scope.QuickWidgetInfo quickwidgetList = 1;
private java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo> quickwidgetList_ =
java.util.Collections.emptyList();
private void ensureQuickwidgetListIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
quickwidgetList_ = new java.util.ArrayList<com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo>(quickwidgetList_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoOrBuilder> quickwidgetListBuilder_;
public java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo> getQuickwidgetListList() {
if (quickwidgetListBuilder_ == null) {
return java.util.Collections.unmodifiableList(quickwidgetList_);
} else {
return quickwidgetListBuilder_.getMessageList();
}
}
public int getQuickwidgetListCount() {
if (quickwidgetListBuilder_ == null) {
return quickwidgetList_.size();
} else {
return quickwidgetListBuilder_.getCount();
}
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo getQuickwidgetList(int index) {
if (quickwidgetListBuilder_ == null) {
return quickwidgetList_.get(index);
} else {
return quickwidgetListBuilder_.getMessage(index);
}
}
public Builder setQuickwidgetList(
int index, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo value) {
if (quickwidgetListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQuickwidgetListIsMutable();
quickwidgetList_.set(index, value);
onChanged();
} else {
quickwidgetListBuilder_.setMessage(index, value);
}
return this;
}
public Builder setQuickwidgetList(
int index, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.Builder builderForValue) {
if (quickwidgetListBuilder_ == null) {
ensureQuickwidgetListIsMutable();
quickwidgetList_.set(index, builderForValue.build());
onChanged();
} else {
quickwidgetListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
public Builder addQuickwidgetList(com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo value) {
if (quickwidgetListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQuickwidgetListIsMutable();
quickwidgetList_.add(value);
onChanged();
} else {
quickwidgetListBuilder_.addMessage(value);
}
return this;
}
public Builder addQuickwidgetList(
int index, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo value) {
if (quickwidgetListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQuickwidgetListIsMutable();
quickwidgetList_.add(index, value);
onChanged();
} else {
quickwidgetListBuilder_.addMessage(index, value);
}
return this;
}
public Builder addQuickwidgetList(
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.Builder builderForValue) {
if (quickwidgetListBuilder_ == null) {
ensureQuickwidgetListIsMutable();
quickwidgetList_.add(builderForValue.build());
onChanged();
} else {
quickwidgetListBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addQuickwidgetList(
int index, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.Builder builderForValue) {
if (quickwidgetListBuilder_ == null) {
ensureQuickwidgetListIsMutable();
quickwidgetList_.add(index, builderForValue.build());
onChanged();
} else {
quickwidgetListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
public Builder addAllQuickwidgetList(
java.lang.Iterable<? extends com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo> values) {
if (quickwidgetListBuilder_ == null) {
ensureQuickwidgetListIsMutable();
super.addAll(values, quickwidgetList_);
onChanged();
} else {
quickwidgetListBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearQuickwidgetList() {
if (quickwidgetListBuilder_ == null) {
quickwidgetList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
quickwidgetListBuilder_.clear();
}
return this;
}
public Builder removeQuickwidgetList(int index) {
if (quickwidgetListBuilder_ == null) {
ensureQuickwidgetListIsMutable();
quickwidgetList_.remove(index);
onChanged();
} else {
quickwidgetListBuilder_.remove(index);
}
return this;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.Builder getQuickwidgetListBuilder(
int index) {
return getQuickwidgetListFieldBuilder().getBuilder(index);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoOrBuilder getQuickwidgetListOrBuilder(
int index) {
if (quickwidgetListBuilder_ == null) {
return quickwidgetList_.get(index); } else {
return quickwidgetListBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List<? extends com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoOrBuilder>
getQuickwidgetListOrBuilderList() {
if (quickwidgetListBuilder_ != null) {
return quickwidgetListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(quickwidgetList_);
}
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.Builder addQuickwidgetListBuilder() {
return getQuickwidgetListFieldBuilder().addBuilder(
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.getDefaultInstance());
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.Builder addQuickwidgetListBuilder(
int index) {
return getQuickwidgetListFieldBuilder().addBuilder(
index, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.getDefaultInstance());
}
public java.util.List<com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.Builder>
getQuickwidgetListBuilderList() {
return getQuickwidgetListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoOrBuilder>
getQuickwidgetListFieldBuilder() {
if (quickwidgetListBuilder_ == null) {
quickwidgetListBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoOrBuilder>(
quickwidgetList_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
quickwidgetList_ = null;
}
return quickwidgetListBuilder_;
}
// @@protoc_insertion_point(builder_scope:scope.QuickWidgetInfoList)
}
static {
defaultInstance = new QuickWidgetInfoList(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:scope.QuickWidgetInfoList)
}
public interface QuickWidgetSearchOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .scope.DesktopWindowID windowID = 1;
boolean hasWindowID();
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID getWindowID();
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowIDOrBuilder getWindowIDOrBuilder();
// required .scope.QuickWidgetSearch.QuickWidgetSearchType searchType = 2;
boolean hasSearchType();
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType getSearchType();
// required string data = 3;
boolean hasData();
String getData();
}
public static final class QuickWidgetSearch extends
com.google.protobuf.GeneratedMessage
implements QuickWidgetSearchOrBuilder {
// Use QuickWidgetSearch.newBuilder() to construct.
private QuickWidgetSearch(Builder builder) {
super(builder);
}
private QuickWidgetSearch(boolean noInit) {}
private static final QuickWidgetSearch defaultInstance;
public static QuickWidgetSearch getDefaultInstance() {
return defaultInstance;
}
public QuickWidgetSearch getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickWidgetSearch_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickWidgetSearch_fieldAccessorTable;
}
public enum QuickWidgetSearchType
implements com.google.protobuf.ProtocolMessageEnum {
NAME(0, 0),
TEXT(1, 1),
POS(2, 2),
;
public static final int NAME_VALUE = 0;
public static final int TEXT_VALUE = 1;
public static final int POS_VALUE = 2;
public final int getNumber() { return value; }
public static QuickWidgetSearchType valueOf(int value) {
switch (value) {
case 0: return NAME;
case 1: return TEXT;
case 2: return POS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<QuickWidgetSearchType>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<QuickWidgetSearchType>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<QuickWidgetSearchType>() {
public QuickWidgetSearchType findValueByNumber(int number) {
return QuickWidgetSearchType.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.DesktopWmProtos.QuickWidgetSearch.getDescriptor().getEnumTypes().get(0);
}
private static final QuickWidgetSearchType[] VALUES = {
NAME, TEXT, POS,
};
public static QuickWidgetSearchType 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 QuickWidgetSearchType(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:scope.QuickWidgetSearch.QuickWidgetSearchType)
}
private int bitField0_;
// required .scope.DesktopWindowID windowID = 1;
public static final int WINDOWID_FIELD_NUMBER = 1;
private com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID windowID_;
public boolean hasWindowID() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID getWindowID() {
return windowID_;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowIDOrBuilder getWindowIDOrBuilder() {
return windowID_;
}
// required .scope.QuickWidgetSearch.QuickWidgetSearchType searchType = 2;
public static final int SEARCHTYPE_FIELD_NUMBER = 2;
private com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType searchType_;
public boolean hasSearchType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType getSearchType() {
return searchType_;
}
// required string data = 3;
public static final int DATA_FIELD_NUMBER = 3;
private java.lang.Object data_;
public boolean hasData() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public String getData() {
java.lang.Object ref = data_;
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)) {
data_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getDataBytes() {
java.lang.Object ref = data_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
data_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
windowID_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.getDefaultInstance();
searchType_ = com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType.NAME;
data_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasWindowID()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasSearchType()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasData()) {
memoizedIsInitialized = 0;
return false;
}
if (!getWindowID().isInitialized()) {
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.writeMessage(1, windowID_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeEnum(2, searchType_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getDataBytes());
}
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
.computeMessageSize(1, windowID_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, searchType_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getDataBytes());
}
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.DesktopWmProtos.QuickWidgetSearch parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch 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.DesktopWmProtos.QuickWidgetSearch parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch 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.DesktopWmProtos.QuickWidgetSearch parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch 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.DesktopWmProtos.QuickWidgetSearch 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.DesktopWmProtos.QuickWidgetSearch 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.DesktopWmProtos.QuickWidgetSearch parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch 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.DesktopWmProtos.QuickWidgetSearch 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.DesktopWmProtos.QuickWidgetSearchOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickWidgetSearch_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.internal_static_scope_QuickWidgetSearch_fieldAccessorTable;
}
// Construct using com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getWindowIDFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (windowIDBuilder_ == null) {
windowID_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.getDefaultInstance();
} else {
windowIDBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
searchType_ = com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType.NAME;
bitField0_ = (bitField0_ & ~0x00000002);
data_ = "";
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.DesktopWmProtos.QuickWidgetSearch.getDescriptor();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch getDefaultInstanceForType() {
return com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch.getDefaultInstance();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch build() {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return result;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch buildPartial() {
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch result = new com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (windowIDBuilder_ == null) {
result.windowID_ = windowID_;
} else {
result.windowID_ = windowIDBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.searchType_ = searchType_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.data_ = data_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch) {
return mergeFrom((com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch other) {
if (other == com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch.getDefaultInstance()) return this;
if (other.hasWindowID()) {
mergeWindowID(other.getWindowID());
}
if (other.hasSearchType()) {
setSearchType(other.getSearchType());
}
if (other.hasData()) {
setData(other.getData());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasWindowID()) {
return false;
}
if (!hasSearchType()) {
return false;
}
if (!hasData()) {
return false;
}
if (!getWindowID().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.DesktopWmProtos.DesktopWindowID.Builder subBuilder = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.newBuilder();
if (hasWindowID()) {
subBuilder.mergeFrom(getWindowID());
}
input.readMessage(subBuilder, extensionRegistry);
setWindowID(subBuilder.buildPartial());
break;
}
case 16: {
int rawValue = input.readEnum();
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType value = com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
searchType_ = value;
}
break;
}
case 26: {
bitField0_ |= 0x00000004;
data_ = input.readBytes();
break;
}
}
}
}
private int bitField0_;
// required .scope.DesktopWindowID windowID = 1;
private com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID windowID_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowIDOrBuilder> windowIDBuilder_;
public boolean hasWindowID() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID getWindowID() {
if (windowIDBuilder_ == null) {
return windowID_;
} else {
return windowIDBuilder_.getMessage();
}
}
public Builder setWindowID(com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID value) {
if (windowIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
windowID_ = value;
onChanged();
} else {
windowIDBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
public Builder setWindowID(
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.Builder builderForValue) {
if (windowIDBuilder_ == null) {
windowID_ = builderForValue.build();
onChanged();
} else {
windowIDBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
public Builder mergeWindowID(com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID value) {
if (windowIDBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
windowID_ != com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.getDefaultInstance()) {
windowID_ =
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.newBuilder(windowID_).mergeFrom(value).buildPartial();
} else {
windowID_ = value;
}
onChanged();
} else {
windowIDBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
public Builder clearWindowID() {
if (windowIDBuilder_ == null) {
windowID_ = com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.getDefaultInstance();
onChanged();
} else {
windowIDBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.Builder getWindowIDBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getWindowIDFieldBuilder().getBuilder();
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowIDOrBuilder getWindowIDOrBuilder() {
if (windowIDBuilder_ != null) {
return windowIDBuilder_.getMessageOrBuilder();
} else {
return windowID_;
}
}
private com.google.protobuf.SingleFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowIDOrBuilder>
getWindowIDFieldBuilder() {
if (windowIDBuilder_ == null) {
windowIDBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.Builder, com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowIDOrBuilder>(
windowID_,
getParentForChildren(),
isClean());
windowID_ = null;
}
return windowIDBuilder_;
}
// required .scope.QuickWidgetSearch.QuickWidgetSearchType searchType = 2;
private com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType searchType_ = com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType.NAME;
public boolean hasSearchType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType getSearchType() {
return searchType_;
}
public Builder setSearchType(com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
searchType_ = value;
onChanged();
return this;
}
public Builder clearSearchType() {
bitField0_ = (bitField0_ & ~0x00000002);
searchType_ = com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch.QuickWidgetSearchType.NAME;
onChanged();
return this;
}
// required string data = 3;
private java.lang.Object data_ = "";
public boolean hasData() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public String getData() {
java.lang.Object ref = data_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
data_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setData(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
data_ = value;
onChanged();
return this;
}
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000004);
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
void setData(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000004;
data_ = value;
onChanged();
}
// @@protoc_insertion_point(builder_scope:scope.QuickWidgetSearch)
}
static {
defaultInstance = new QuickWidgetSearch(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:scope.QuickWidgetSearch)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_scope_DesktopWindowInfo_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_scope_DesktopWindowInfo_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_scope_DesktopWindowRect_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_scope_DesktopWindowRect_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_scope_QuickMenuID_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_scope_QuickMenuID_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_scope_QuickMenuList_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_scope_QuickMenuList_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_scope_QuickMenuInfo_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_scope_QuickMenuInfo_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_scope_QuickMenuItemID_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_scope_QuickMenuItemID_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_scope_QuickMenuItemInfo_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_scope_QuickMenuItemInfo_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_scope_QuickWidgetInfo_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_scope_QuickWidgetInfo_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_scope_DesktopWindowID_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_scope_DesktopWindowID_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_scope_DesktopWindowList_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_scope_DesktopWindowList_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_scope_QuickWidgetInfoList_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_scope_QuickWidgetInfoList_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_scope_QuickWidgetSearch_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_scope_QuickWidgetSearch_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\034desktop_window_manager.proto\022\005scope\032\"o" +
"pera/scope/scope_descriptor.proto\"\224\003\n\021De" +
"sktopWindowInfo\022\020\n\010windowID\030\001 \002(\r\022\r\n\005tit" +
"le\030\002 \002(\t\022\014\n\004name\030\003 \002(\t\022>\n\nwindowType\030\004 \002" +
"(\0162*.scope.DesktopWindowInfo.DesktopWind" +
"owType\022\020\n\010onScreen\030\005 \002(\010\022:\n\005state\030\006 \002(\0162" +
"+.scope.DesktopWindowInfo.DesktopWindowS" +
"tate\022&\n\004rect\030\007 \002(\0132\030.scope.DesktopWindow" +
"Rect\022\016\n\006active\030\010 \002(\010\"8\n\021DesktopWindowTyp" +
"e\022\013\n\007UNKNOWN\020\000\022\n\n\006DIALOG\020\001\022\n\n\006NORMAL\020\002\"P",
"\n\022DesktopWindowState\022\014\n\010RESTORED\020\000\022\r\n\tMI" +
"NIMIZED\020\001\022\r\n\tMAXIMIZED\020\002\022\016\n\nFULLSCREEN\020\003" +
"\"H\n\021DesktopWindowRect\022\t\n\001x\030\001 \002(\r\022\t\n\001y\030\002 " +
"\002(\r\022\r\n\005width\030\003 \002(\r\022\016\n\006height\030\004 \002(\r\"\037\n\013Qu" +
"ickMenuID\022\020\n\010menuName\030\001 \002(\t\"7\n\rQuickMenu" +
"List\022&\n\010menuList\030\001 \003(\0132\024.scope.QuickMenu" +
"Info\"\265\001\n\rQuickMenuInfo\022\"\n\006menuId\030\001 \002(\0132\022" +
".scope.QuickMenuID\022&\n\004rect\030\002 \002(\0132\030.scope" +
".DesktopWindowRect\022(\n\010windowId\030\003 \002(\0132\026.s" +
"cope.DesktopWindowID\022.\n\014menuItemList\030\004 \003",
"(\0132\030.scope.QuickMenuItemInfo\"6\n\017QuickMen" +
"uItemID\022\020\n\010menuText\030\001 \002(\t\022\021\n\tpopupMenu\030\002" +
" \001(\010\"\371\001\n\021QuickMenuItemInfo\022\014\n\004text\030\001 \002(\t" +
"\022\016\n\006action\030\002 \001(\t\022\017\n\007submenu\030\003 \001(\t\022\023\n\013act" +
"ionParam\030\004 \001(\t\022\013\n\003row\030\005 \002(\r\022\026\n\016shortcutL" +
"etter\030\006 \001(\t\022\020\n\010shortcut\030\007 \001(\t\022&\n\004rect\030\010 " +
"\002(\0132\030.scope.DesktopWindowRect\022\017\n\007enabled" +
"\030\t \002(\010\022\017\n\007checked\030\n \002(\010\022\014\n\004bold\030\013 \002(\010\022\021\n" +
"\tseparator\030\014 \002(\010\"\216\005\n\017QuickWidgetInfo\022\014\n\004" +
"name\030\001 \002(\t\0224\n\004type\030\002 \002(\0162&.scope.QuickWi",
"dgetInfo.QuickWidgetType\022\017\n\007visible\030\003 \002(" +
"\010\022\014\n\004text\030\004 \002(\t\022\r\n\005value\030\005 \002(\r\022\017\n\007enable" +
"d\030\006 \002(\010\022\023\n\013defaultLook\030\007 \002(\010\022\023\n\013focusedL" +
"ook\030\010 \002(\010\022&\n\004rect\030\t \002(\0132\030.scope.DesktopW" +
"indowRect\022\016\n\006parent\030\n \001(\t\022\013\n\003row\030\013 \001(\r\022\013" +
"\n\003col\030\014 \001(\r\022\024\n\014visible_text\030\r \001(\t\022\027\n\017add" +
"itional_text\030\016 \001(\t\"\314\002\n\017QuickWidgetType\022\013" +
"\n\007UNKNOWN\020\000\022\n\n\006BUTTON\020\001\022\014\n\010CHECKBOX\020\002\022\r\n" +
"\tDIALOGTAB\020\003\022\014\n\010DROPDOWN\020\004\022\020\n\014DROPDOWNIT" +
"EM\020\005\022\r\n\tEDITFIELD\020\006\022\t\n\005LABEL\020\007\022\017\n\013RADIOB",
"UTTON\020\010\022\020\n\014ADDRESSFIELD\020\t\022\n\n\006SEARCH\020\n\022\013\n" +
"\007TOOLBAR\020\013\022\014\n\010TREEVIEW\020\014\022\014\n\010TREEITEM\020\r\022\r" +
"\n\tTABBUTTON\020\016\022\r\n\tTHUMBNAIL\020\017\022\016\n\nGRIDLAYO" +
"UT\020\020\022\014\n\010GRIDITEM\020\021\022\r\n\tQUICKFIND\020\022\022\010\n\004ICO" +
"N\020\023\022\017\n\013PROGRESSBAR\020\024\022\013\n\007LISTBOX\020\025\"#\n\017Des" +
"ktopWindowID\022\020\n\010windowID\030\001 \002(\r\"A\n\021Deskto" +
"pWindowList\022,\n\nwindowList\030\001 \003(\0132\030.scope." +
"DesktopWindowInfo\"F\n\023QuickWidgetInfoList" +
"\022/\n\017quickwidgetList\030\001 \003(\0132\026.scope.QuickW" +
"idgetInfo\"\305\001\n\021QuickWidgetSearch\022(\n\010windo",
"wID\030\001 \002(\0132\026.scope.DesktopWindowID\022B\n\nsea" +
"rchType\030\002 \002(\0162..scope.QuickWidgetSearch." +
"QuickWidgetSearchType\022\014\n\004data\030\003 \002(\t\"4\n\025Q" +
"uickWidgetSearchType\022\010\n\004NAME\020\000\022\010\n\004TEXT\020\001" +
"\022\007\n\003POS\020\002B8\n#com.opera.core.systems.scop" +
"e.protosB\017DesktopWmProtosH\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_DesktopWindowInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_scope_DesktopWindowInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scope_DesktopWindowInfo_descriptor,
new java.lang.String[] { "WindowID", "Title", "Name", "WindowType", "OnScreen", "State", "Rect", "Active", },
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.class,
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo.Builder.class);
internal_static_scope_DesktopWindowRect_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_scope_DesktopWindowRect_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scope_DesktopWindowRect_descriptor,
new java.lang.String[] { "X", "Y", "Width", "Height", },
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.class,
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowRect.Builder.class);
internal_static_scope_QuickMenuID_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_scope_QuickMenuID_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scope_QuickMenuID_descriptor,
new java.lang.String[] { "MenuName", },
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID.class,
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuID.Builder.class);
internal_static_scope_QuickMenuList_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_scope_QuickMenuList_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scope_QuickMenuList_descriptor,
new java.lang.String[] { "MenuList", },
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuList.class,
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuList.Builder.class);
internal_static_scope_QuickMenuInfo_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_scope_QuickMenuInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scope_QuickMenuInfo_descriptor,
new java.lang.String[] { "MenuId", "Rect", "WindowId", "MenuItemList", },
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo.class,
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuInfo.Builder.class);
internal_static_scope_QuickMenuItemID_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_scope_QuickMenuItemID_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scope_QuickMenuItemID_descriptor,
new java.lang.String[] { "MenuText", "PopupMenu", },
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemID.class,
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemID.Builder.class);
internal_static_scope_QuickMenuItemInfo_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_scope_QuickMenuItemInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scope_QuickMenuItemInfo_descriptor,
new java.lang.String[] { "Text", "Action", "Submenu", "ActionParam", "Row", "ShortcutLetter", "Shortcut", "Rect", "Enabled", "Checked", "Bold", "Separator", },
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo.class,
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickMenuItemInfo.Builder.class);
internal_static_scope_QuickWidgetInfo_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_scope_QuickWidgetInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scope_QuickWidgetInfo_descriptor,
new java.lang.String[] { "Name", "Type", "Visible", "Text", "Value", "Enabled", "DefaultLook", "FocusedLook", "Rect", "Parent", "Row", "Col", "VisibleText", "AdditionalText", },
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.class,
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfo.Builder.class);
internal_static_scope_DesktopWindowID_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_scope_DesktopWindowID_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scope_DesktopWindowID_descriptor,
new java.lang.String[] { "WindowID", },
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.class,
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowID.Builder.class);
internal_static_scope_DesktopWindowList_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_scope_DesktopWindowList_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scope_DesktopWindowList_descriptor,
new java.lang.String[] { "WindowList", },
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowList.class,
com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowList.Builder.class);
internal_static_scope_QuickWidgetInfoList_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_scope_QuickWidgetInfoList_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scope_QuickWidgetInfoList_descriptor,
new java.lang.String[] { "QuickwidgetList", },
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoList.class,
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetInfoList.Builder.class);
internal_static_scope_QuickWidgetSearch_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_scope_QuickWidgetSearch_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scope_QuickWidgetSearch_descriptor,
new java.lang.String[] { "WindowID", "SearchType", "Data", },
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch.class,
com.opera.core.systems.scope.protos.DesktopWmProtos.QuickWidgetSearch.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)
}