diff --git a/.idea/libraries/protobuf.xml b/.idea/libraries/protobuf.xml index 32f1a00bdc23..d369c5ab3cf9 100644 --- a/.idea/libraries/protobuf.xml +++ b/.idea/libraries/protobuf.xml @@ -1,12 +1,12 @@ - + - + - + \ No newline at end of file diff --git a/java/compiler/impl/src/com/intellij/compiler/impl/CompileDriver.java b/java/compiler/impl/src/com/intellij/compiler/impl/CompileDriver.java index 0ebbe8c8c8c5..f3d18ec5cabe 100644 --- a/java/compiler/impl/src/com/intellij/compiler/impl/CompileDriver.java +++ b/java/compiler/impl/src/com/intellij/compiler/impl/CompileDriver.java @@ -73,12 +73,15 @@ public class CompileDriver { private final Map myModuleOutputPaths = new HashMap<>(); private final Map myModuleTestOutputPaths = new HashMap<>(); + @SuppressWarnings("deprecation") private CompilerFilter myCompilerFilter = CompilerFilter.ALL; + public CompileDriver(Project project) { myProject = project; } @SuppressWarnings("deprecation") public void setCompilerFilter(CompilerFilter compilerFilter) { + myCompilerFilter = compilerFilter == null? CompilerFilter.ALL : compilerFilter; } public void rebuild(CompileStatusNotification callback) { @@ -202,7 +205,8 @@ public class CompileDriver { } @Nullable - private TaskFuture compileInExternalProcess(@NotNull final CompileContextImpl compileContext, final boolean onlyCheckUpToDate) { + private TaskFuture compileInExternalProcess(@NotNull final CompileContextImpl compileContext, final boolean onlyCheckUpToDate) + throws Exception { final CompileScope scope = compileContext.getCompileScope(); final Collection paths = CompileScopeUtil.fetchFiles(compileContext); List scopes = getBuildScopes(compileContext, scope, paths); @@ -246,8 +250,8 @@ public class CompileDriver { @Override public void handleFailure(UUID sessionId, CmdlineRemoteProto.Message.Failure failure) { - compileContext.addMessage(CompilerMessageCategory.ERROR, failure.getDescription(), null, -1, -1); - final String trace = failure.getStacktrace(); + compileContext.addMessage(CompilerMessageCategory.ERROR, failure.hasDescription()? failure.getDescription() : "", null, -1, -1); + final String trace = failure.hasStacktrace()? failure.getStacktrace() : null; if (trace != null) { LOG.info(trace); } @@ -262,7 +266,7 @@ public class CompileDriver { if (kind == CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Kind.PROGRESS) { final ProgressIndicator indicator = compileContext.getProgressIndicator(); indicator.setText(messageText); - if (message.getDone() != 0) { + if (message.hasDone()) { indicator.setFraction(message.getDone()); } } @@ -270,12 +274,12 @@ public class CompileDriver { final CompilerMessageCategory category = kind == CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Kind.ERROR ? CompilerMessageCategory.ERROR : kind == CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Kind.WARNING ? CompilerMessageCategory.WARNING : CompilerMessageCategory.INFORMATION; - String sourceFilePath = message.getSourceFilePath(); + String sourceFilePath = message.hasSourceFilePath() ? message.getSourceFilePath() : null; if (sourceFilePath != null) { sourceFilePath = FileUtil.toSystemIndependentName(sourceFilePath); } - final long line = message.getLine(); - final long column = message.getColumn(); + final long line = message.hasLine() ? message.getLine() : -1; + final long column = message.hasColumn() ? message.getColumn() : -1; final String srcUrl = sourceFilePath != null ? VirtualFileManager.constructUrl(LocalFileSystem.PROTOCOL, sourceFilePath) : null; compileContext.addMessage(category, messageText, srcUrl, (int)line, (int)column); if (compileContext.shouldUpdateProblemsView() && kind == CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Kind.JPS_INFO) { @@ -320,8 +324,8 @@ public class CompileDriver { case BUILD_COMPLETED: ExitStatus status = ExitStatus.SUCCESS; - final CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Status completionStatus = event.getCompletionStatus(); - if (completionStatus != CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Status.UNRECOGNIZED) { + if (event.hasCompletionStatus()) { + final CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Status completionStatus = event.getCompletionStatus(); switch (completionStatus) { case CANCELED: status = ExitStatus.CANCELLED; diff --git a/java/compiler/impl/src/com/intellij/compiler/server/AutoMakeMessageHandler.java b/java/compiler/impl/src/com/intellij/compiler/server/AutoMakeMessageHandler.java index 3230ea3dda67..c9e8baabf0c9 100644 --- a/java/compiler/impl/src/com/intellij/compiler/server/AutoMakeMessageHandler.java +++ b/java/compiler/impl/src/com/intellij/compiler/server/AutoMakeMessageHandler.java @@ -9,7 +9,6 @@ import com.intellij.openapi.project.Project; import com.intellij.openapi.ui.MessageType; import com.intellij.openapi.util.Key; import com.intellij.openapi.util.io.FileUtil; -import com.intellij.openapi.util.text.StringUtil; import com.intellij.openapi.vfs.LocalFileSystem; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.openapi.vfs.VirtualFileManager; @@ -54,8 +53,8 @@ class AutoMakeMessageHandler extends DefaultMessageHandler { switch (event.getEventType()) { case BUILD_COMPLETED: myContext.getProgressIndicator().stop(); - final CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Status status = event.getCompletionStatus(); - if (status != CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Status.UNRECOGNIZED) { + if (event.hasCompletionStatus()) { + final CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Status status = event.getCompletionStatus(); myBuildStatus = status; if (status == CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Status.CANCELED) { myContext.getProgressIndicator().cancel(); @@ -103,7 +102,7 @@ class AutoMakeMessageHandler extends DefaultMessageHandler { final CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Kind kind = message.getKind(); if (kind == CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Kind.PROGRESS) { final ProblemsView view = ProblemsView.SERVICE.getInstance(myProject); - if (message.getDone() != 0) { + if (message.hasDone()) { view.setProgress(message.getText(), message.getDone()); } else { @@ -113,10 +112,10 @@ class AutoMakeMessageHandler extends DefaultMessageHandler { else { final CompilerMessageCategory category = convertToCategory(kind); if (category != null) { // only process supported kinds of messages - final String sourceFilePath = message.getSourceFilePath(); + final String sourceFilePath = message.hasSourceFilePath() ? message.getSourceFilePath() : null; final String url = sourceFilePath != null ? VirtualFileManager.constructUrl(LocalFileSystem.PROTOCOL, FileUtil.toSystemIndependentName(sourceFilePath)) : null; - final long line = message.getLine(); - final long column = message.getColumn(); + final long line = message.hasLine() ? message.getLine() : -1; + final long column = message.hasColumn() ? message.getColumn() : -1; final CompilerMessage msg = myContext.createAndAddMessage(category, message.getText(), url, (int)line, (int)column, null); if (kind == CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Kind.ERROR || kind == CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Kind.JPS_INFO) { if (kind == CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Kind.ERROR) { @@ -147,9 +146,9 @@ class AutoMakeMessageHandler extends DefaultMessageHandler { if (myProject.isDisposed()) { return; } - String descr = failure.getDescription(); + String descr = failure.hasDescription() ? failure.getDescription() : null; if (descr == null) { - descr = StringUtil.notNullize(failure.getStacktrace()); + descr = failure.hasStacktrace()? failure.getStacktrace() : ""; } final String msg = "Auto build failure: " + descr; CompilerManager.NOTIFICATION_GROUP.createNotification(msg, MessageType.INFO); diff --git a/jps/jps-builders/proto/cmdline_remote_proto.proto b/jps/jps-builders/proto/cmdline_remote_proto.proto index d96255342a74..8f9fb3fb7fbc 100644 --- a/jps/jps-builders/proto/cmdline_remote_proto.proto +++ b/jps/jps-builders/proto/cmdline_remote_proto.proto @@ -1,5 +1,3 @@ -syntax = "proto3"; - package org.jetbrains.jpsservice; option java_package = "org.jetbrains.jps.api"; @@ -8,159 +6,159 @@ option optimize_for = LITE_RUNTIME; message Message { message UUID { - sint64 most_sig_bits = 1; - sint64 least_sig_bits = 2; + required sint64 most_sig_bits = 1; + required sint64 least_sig_bits = 2; } message KeyValuePair { - string key = 1; - string value = 2; + required string key = 1; + required string value = 2; } enum Type { - CONTROLLER_MESSAGE = 0; - BUILDER_MESSAGE = 1; - FAILURE = 2; + CONTROLLER_MESSAGE = 1; + BUILDER_MESSAGE = 2; + FAILURE = 3; } message Failure { - int32 error_code = 1; - string description = 2; - string stacktrace = 3; + optional int32 error_code = 1; + optional string description = 2; + optional string stacktrace = 3; } message ControllerMessage { enum Type { - BUILD_PARAMETERS = 0; + BUILD_PARAMETERS = 1; CANCEL_BUILD_COMMAND = 2; FS_EVENT = 3; CONSTANT_SEARCH_RESULT = 4; } message FSEvent { - uint64 ordinal = 1; + required uint64 ordinal = 1; repeated string changed_paths = 2; repeated string deleted_paths = 3; } message GlobalSettings { - string global_options_path = 5; + required string global_options_path = 5; } message ParametersMessage { message TargetTypeBuildScope { - string type_id = 1; - bool all_targets = 2; + required string type_id = 1; + optional bool all_targets = 2; repeated string target_id = 3; - bool force_build = 4; + required bool force_build = 4; } enum Type { - BUILD = 0; - CLEAN = 1; - UP_TO_DATE_CHECK = 2; + BUILD = 1; + CLEAN = 2; + UP_TO_DATE_CHECK = 3; } - Type build_type = 1; - GlobalSettings global_settings = 2; - string project_id = 3; + required Type build_type = 1; + optional GlobalSettings global_settings = 2; + optional string project_id = 3; repeated TargetTypeBuildScope scope = 4; repeated string file_path = 5; repeated KeyValuePair builder_parameter = 6; } message ConstantSearchResult { - string owner_class_name = 1; - string field_name = 2; - bool is_success = 3; + required string owner_class_name = 1; + required string field_name = 2; + required bool is_success = 3; repeated string path = 4; } - Type type = 1; - ParametersMessage params_message = 2; - FSEvent fs_event = 3; - ConstantSearchResult constant_search_result = 4; + required Type type = 1; + optional ParametersMessage params_message = 2; + optional FSEvent fs_event = 3; + optional ConstantSearchResult constant_search_result = 4; } message BuilderMessage { enum Type { - PARAM_REQUEST = 0; - BUILD_EVENT = 1; - COMPILE_MESSAGE = 2; - CONSTANT_SEARCH_TASK = 3; + PARAM_REQUEST = 1; + BUILD_EVENT = 2; + COMPILE_MESSAGE = 3; + CONSTANT_SEARCH_TASK = 4; } message BuildEvent { enum Type { - BUILD_COMPLETED = 0; - FILES_GENERATED = 1; - CUSTOM_BUILDER_MESSAGE = 2; + BUILD_COMPLETED = 1; + FILES_GENERATED = 2; + CUSTOM_BUILDER_MESSAGE = 3; } enum Status { - CANCELED = 0; - ERRORS = 1; - SUCCESS = 2; - UP_TO_DATE = 3; + CANCELED = 1; + ERRORS = 2; + SUCCESS = 3; + UP_TO_DATE = 4; } message GeneratedFile { - string output_root = 1; - string relative_path = 2; + required string output_root = 1; + required string relative_path = 2; } message CustomBuilderMessage { - string builder_id = 1; - string message_type = 2; - string message_text = 3; + required string builder_id = 1; + required string message_type = 2; + required string message_text = 3; } - Type event_type = 1; - string description = 2; - Status completion_status = 3; + required Type event_type = 1; + optional string description = 2; + optional Status completion_status = 3; repeated GeneratedFile generated_files = 4; - CustomBuilderMessage custom_builder_message = 5; + optional CustomBuilderMessage custom_builder_message = 5; } message CompileMessage { enum Kind { - ERROR = 0; - WARNING = 1; - INFO = 2; - PROGRESS = 3; - JPS_INFO = 4; - OTHER = 5; + ERROR = 1; + WARNING = 2; + INFO = 3; + PROGRESS = 4; + JPS_INFO = 5; + OTHER = 6; } - Kind kind = 1; - string text = 2; - string source_file_path = 3; - uint64 problem_begin_offset = 4; - uint64 problem_end_offset = 5; - uint64 problem_location_offset = 6; - uint64 line = 7; - uint64 column = 8; - float done = 9; + required Kind kind = 1; + optional string text = 2; + optional string source_file_path = 3; + optional uint64 problem_begin_offset = 4; + optional uint64 problem_end_offset = 5; + optional uint64 problem_location_offset = 6; + optional uint64 line = 7; + optional uint64 column = 8; + optional float done = 9; } message ConstantSearchTask { - string owner_class_name = 1; - string field_name = 2; - int32 access_flags = 3; - bool is_access_changed = 4; - bool is_field_removed = 5; + required string owner_class_name = 1; + required string field_name = 2; + required int32 access_flags = 3; + optional bool is_access_changed = 4 [default = false]; + optional bool is_field_removed = 5 [default = false]; } - Type type = 1; - BuildEvent build_event = 2; - CompileMessage compile_message = 3; - ConstantSearchTask constant_search_task = 4; + required Type type = 1; + optional BuildEvent build_event = 2; + optional CompileMessage compile_message = 3; + optional ConstantSearchTask constant_search_task = 4; } - UUID session_id = 1; - Type type = 2; - ControllerMessage controller_message = 3; - BuilderMessage builder_message = 4; - Failure failure = 5; + required UUID session_id = 1; + required Type type = 2; + optional ControllerMessage controller_message = 3; + optional BuilderMessage builder_message = 4; + optional Failure failure = 5; } diff --git a/jps/jps-builders/src/org/jetbrains/jps/api/CmdlineRemoteProto.java b/jps/jps-builders/src/org/jetbrains/jps/api/CmdlineRemoteProto.java index ed99d9a5dc79..c91df315cb81 100644 --- a/jps/jps-builders/src/org/jetbrains/jps/api/CmdlineRemoteProto.java +++ b/jps/jps-builders/src/org/jetbrains/jps/api/CmdlineRemoteProto.java @@ -15,47 +15,47 @@ public final class CmdlineRemoteProto { com.google.protobuf.MessageLiteOrBuilder { /** - * .org.jetbrains.jpsservice.Message.UUID session_id = 1; + * required .org.jetbrains.jpsservice.Message.UUID session_id = 1; */ boolean hasSessionId(); /** - * .org.jetbrains.jpsservice.Message.UUID session_id = 1; + * required .org.jetbrains.jpsservice.Message.UUID session_id = 1; */ org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID getSessionId(); /** - * .org.jetbrains.jpsservice.Message.Type type = 2; + * required .org.jetbrains.jpsservice.Message.Type type = 2; */ - int getTypeValue(); + boolean hasType(); /** - * .org.jetbrains.jpsservice.Message.Type type = 2; + * required .org.jetbrains.jpsservice.Message.Type type = 2; */ org.jetbrains.jps.api.CmdlineRemoteProto.Message.Type getType(); /** - * .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; */ boolean hasControllerMessage(); /** - * .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; */ org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage getControllerMessage(); /** - * .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; */ boolean hasBuilderMessage(); /** - * .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; */ org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage getBuilderMessage(); /** - * .org.jetbrains.jpsservice.Message.Failure failure = 5; + * optional .org.jetbrains.jpsservice.Message.Failure failure = 5; */ boolean hasFailure(); /** - * .org.jetbrains.jpsservice.Message.Failure failure = 5; + * optional .org.jetbrains.jpsservice.Message.Failure failure = 5; */ org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure getFailure(); } @@ -68,6 +68,7 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(message_implements:org.jetbrains.jpsservice.Message) MessageOrBuilder { private Message() { + type_ = 1; } /** * Protobuf enum {@code org.jetbrains.jpsservice.Message.Type} @@ -75,39 +76,34 @@ public final class CmdlineRemoteProto { public enum Type implements com.google.protobuf.Internal.EnumLite { /** - * CONTROLLER_MESSAGE = 0; + * CONTROLLER_MESSAGE = 1; */ - CONTROLLER_MESSAGE(0), + CONTROLLER_MESSAGE(1), /** - * BUILDER_MESSAGE = 1; + * BUILDER_MESSAGE = 2; */ - BUILDER_MESSAGE(1), + BUILDER_MESSAGE(2), /** - * FAILURE = 2; + * FAILURE = 3; */ - FAILURE(2), - UNRECOGNIZED(-1), + FAILURE(3), ; /** - * CONTROLLER_MESSAGE = 0; + * CONTROLLER_MESSAGE = 1; */ - public static final int CONTROLLER_MESSAGE_VALUE = 0; + public static final int CONTROLLER_MESSAGE_VALUE = 1; /** - * BUILDER_MESSAGE = 1; + * BUILDER_MESSAGE = 2; */ - public static final int BUILDER_MESSAGE_VALUE = 1; + public static final int BUILDER_MESSAGE_VALUE = 2; /** - * FAILURE = 2; + * FAILURE = 3; */ - public static final int FAILURE_VALUE = 2; + public static final int FAILURE_VALUE = 3; public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } return value; } @@ -121,9 +117,9 @@ public final class CmdlineRemoteProto { public static Type forNumber(int value) { switch (value) { - case 0: return CONTROLLER_MESSAGE; - case 1: return BUILDER_MESSAGE; - case 2: return FAILURE; + case 1: return CONTROLLER_MESSAGE; + case 2: return BUILDER_MESSAGE; + case 3: return FAILURE; default: return null; } } @@ -154,12 +150,20 @@ public final class CmdlineRemoteProto { com.google.protobuf.MessageLiteOrBuilder { /** - * sint64 most_sig_bits = 1; + * required sint64 most_sig_bits = 1; + */ + boolean hasMostSigBits(); + /** + * required sint64 most_sig_bits = 1; */ long getMostSigBits(); /** - * sint64 least_sig_bits = 2; + * required sint64 least_sig_bits = 2; + */ + boolean hasLeastSigBits(); + /** + * required sint64 least_sig_bits = 2; */ long getLeastSigBits(); } @@ -173,58 +177,71 @@ public final class CmdlineRemoteProto { UUIDOrBuilder { private UUID() { } + private int bitField0_; public static final int MOST_SIG_BITS_FIELD_NUMBER = 1; private long mostSigBits_; /** - * sint64 most_sig_bits = 1; + * required sint64 most_sig_bits = 1; + */ + public boolean hasMostSigBits() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required sint64 most_sig_bits = 1; */ public long getMostSigBits() { return mostSigBits_; } /** - * sint64 most_sig_bits = 1; + * required sint64 most_sig_bits = 1; */ private void setMostSigBits(long value) { - + bitField0_ |= 0x00000001; mostSigBits_ = value; } /** - * sint64 most_sig_bits = 1; + * required sint64 most_sig_bits = 1; */ private void clearMostSigBits() { - + bitField0_ = (bitField0_ & ~0x00000001); mostSigBits_ = 0L; } public static final int LEAST_SIG_BITS_FIELD_NUMBER = 2; private long leastSigBits_; /** - * sint64 least_sig_bits = 2; + * required sint64 least_sig_bits = 2; + */ + public boolean hasLeastSigBits() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required sint64 least_sig_bits = 2; */ public long getLeastSigBits() { return leastSigBits_; } /** - * sint64 least_sig_bits = 2; + * required sint64 least_sig_bits = 2; */ private void setLeastSigBits(long value) { - + bitField0_ |= 0x00000002; leastSigBits_ = value; } /** - * sint64 least_sig_bits = 2; + * required sint64 least_sig_bits = 2; */ private void clearLeastSigBits() { - + bitField0_ = (bitField0_ & ~0x00000002); leastSigBits_ = 0L; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (mostSigBits_ != 0L) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeSInt64(1, mostSigBits_); } - if (leastSigBits_ != 0L) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeSInt64(2, leastSigBits_); } unknownFields.writeTo(output); @@ -235,11 +252,11 @@ public final class CmdlineRemoteProto { if (size != -1) return size; size = 0; - if (mostSigBits_ != 0L) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(1, mostSigBits_); } - if (leastSigBits_ != 0L) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(2, leastSigBits_); } @@ -248,19 +265,6 @@ public final class CmdlineRemoteProto { return size; } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -323,10 +327,10 @@ public final class CmdlineRemoteProto { } public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** @@ -344,13 +348,19 @@ public final class CmdlineRemoteProto { /** - * sint64 most_sig_bits = 1; + * required sint64 most_sig_bits = 1; + */ + public boolean hasMostSigBits() { + return instance.hasMostSigBits(); + } + /** + * required sint64 most_sig_bits = 1; */ public long getMostSigBits() { return instance.getMostSigBits(); } /** - * sint64 most_sig_bits = 1; + * required sint64 most_sig_bits = 1; */ public Builder setMostSigBits(long value) { copyOnWrite(); @@ -358,7 +368,7 @@ public final class CmdlineRemoteProto { return this; } /** - * sint64 most_sig_bits = 1; + * required sint64 most_sig_bits = 1; */ public Builder clearMostSigBits() { copyOnWrite(); @@ -367,13 +377,19 @@ public final class CmdlineRemoteProto { } /** - * sint64 least_sig_bits = 2; + * required sint64 least_sig_bits = 2; + */ + public boolean hasLeastSigBits() { + return instance.hasLeastSigBits(); + } + /** + * required sint64 least_sig_bits = 2; */ public long getLeastSigBits() { return instance.getLeastSigBits(); } /** - * sint64 least_sig_bits = 2; + * required sint64 least_sig_bits = 2; */ public Builder setLeastSigBits(long value) { copyOnWrite(); @@ -381,7 +397,7 @@ public final class CmdlineRemoteProto { return this; } /** - * sint64 least_sig_bits = 2; + * required sint64 least_sig_bits = 2; */ public Builder clearLeastSigBits() { copyOnWrite(); @@ -391,16 +407,35 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(builder_scope:org.jetbrains.jpsservice.Message.UUID) } - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( + private byte memoizedIsInitialized = -1; + protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { + Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID(); } case IS_INITIALIZED: { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return DEFAULT_INSTANCE; + if (isInitialized == 0) return null; + + boolean shouldMemoize = ((Boolean) arg0).booleanValue(); + if (!hasMostSigBits()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (!hasLeastSigBits()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (shouldMemoize) memoizedIsInitialized = 1; return DEFAULT_INSTANCE; + } case MAKE_IMMUTABLE: { return null; @@ -411,12 +446,15 @@ public final class CmdlineRemoteProto { case VISIT: { Visitor visitor = (Visitor) arg0; org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID other = (org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID) arg1; - mostSigBits_ = visitor.visitLong(mostSigBits_ != 0L, mostSigBits_, - other.mostSigBits_ != 0L, other.mostSigBits_); - leastSigBits_ = visitor.visitLong(leastSigBits_ != 0L, leastSigBits_, - other.leastSigBits_ != 0L, other.leastSigBits_); + mostSigBits_ = visitor.visitLong( + hasMostSigBits(), mostSigBits_, + other.hasMostSigBits(), other.mostSigBits_); + leastSigBits_ = visitor.visitLong( + hasLeastSigBits(), leastSigBits_, + other.hasLeastSigBits(), other.leastSigBits_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { + bitField0_ |= other.bitField0_; } return this; } @@ -425,9 +463,6 @@ public final class CmdlineRemoteProto { (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } try { boolean done = false; while (!done) { @@ -443,12 +478,12 @@ public final class CmdlineRemoteProto { break; } case 8: { - + bitField0_ |= 0x00000001; mostSigBits_ = input.readSInt64(); break; } case 16: { - + bitField0_ |= 0x00000002; leastSigBits_ = input.readSInt64(); break; } @@ -463,7 +498,6 @@ public final class CmdlineRemoteProto { } finally { } } - // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } @@ -475,13 +509,7 @@ public final class CmdlineRemoteProto { } } return PARSER; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } + } } throw new UnsupportedOperationException(); } @@ -510,21 +538,29 @@ public final class CmdlineRemoteProto { com.google.protobuf.MessageLiteOrBuilder { /** - * string key = 1; + * required string key = 1; + */ + boolean hasKey(); + /** + * required string key = 1; */ java.lang.String getKey(); /** - * string key = 1; + * required string key = 1; */ com.google.protobuf.ByteString getKeyBytes(); /** - * string value = 2; + * required string value = 2; + */ + boolean hasValue(); + /** + * required string value = 2; */ java.lang.String getValue(); /** - * string value = 2; + * required string value = 2; */ com.google.protobuf.ByteString getValueBytes(); @@ -541,104 +577,115 @@ public final class CmdlineRemoteProto { key_ = ""; value_ = ""; } + private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; private java.lang.String key_; /** - * string key = 1; + * required string key = 1; + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string key = 1; */ public java.lang.String getKey() { return key_; } /** - * string key = 1; + * required string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { return com.google.protobuf.ByteString.copyFromUtf8(key_); } /** - * string key = 1; + * required string key = 1; */ private void setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; key_ = value; } /** - * string key = 1; + * required string key = 1; */ private void clearKey() { - + bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); } /** - * string key = 1; + * required string key = 1; */ private void setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - + bitField0_ |= 0x00000001; key_ = value.toStringUtf8(); } public static final int VALUE_FIELD_NUMBER = 2; private java.lang.String value_; /** - * string value = 2; + * required string value = 2; + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required string value = 2; */ public java.lang.String getValue() { return value_; } /** - * string value = 2; + * required string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { return com.google.protobuf.ByteString.copyFromUtf8(value_); } /** - * string value = 2; + * required string value = 2; */ private void setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; value_ = value; } /** - * string value = 2; + * required string value = 2; */ private void clearValue() { - + bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); } /** - * string value = 2; + * required string value = 2; */ private void setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - + bitField0_ |= 0x00000002; value_ = value.toStringUtf8(); } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!key_.isEmpty()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeString(1, getKey()); } - if (!value_.isEmpty()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeString(2, getValue()); } unknownFields.writeTo(output); @@ -649,11 +696,11 @@ public final class CmdlineRemoteProto { if (size != -1) return size; size = 0; - if (!key_.isEmpty()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeStringSize(1, getKey()); } - if (!value_.isEmpty()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeStringSize(2, getValue()); } @@ -662,19 +709,6 @@ public final class CmdlineRemoteProto { return size; } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.KeyValuePair parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.KeyValuePair parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.KeyValuePair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -737,10 +771,10 @@ public final class CmdlineRemoteProto { } public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.jetbrains.jps.api.CmdlineRemoteProto.Message.KeyValuePair prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** @@ -758,20 +792,26 @@ public final class CmdlineRemoteProto { /** - * string key = 1; + * required string key = 1; + */ + public boolean hasKey() { + return instance.hasKey(); + } + /** + * required string key = 1; */ public java.lang.String getKey() { return instance.getKey(); } /** - * string key = 1; + * required string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { return instance.getKeyBytes(); } /** - * string key = 1; + * required string key = 1; */ public Builder setKey( java.lang.String value) { @@ -780,7 +820,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string key = 1; + * required string key = 1; */ public Builder clearKey() { copyOnWrite(); @@ -788,7 +828,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string key = 1; + * required string key = 1; */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { @@ -798,20 +838,26 @@ public final class CmdlineRemoteProto { } /** - * string value = 2; + * required string value = 2; + */ + public boolean hasValue() { + return instance.hasValue(); + } + /** + * required string value = 2; */ public java.lang.String getValue() { return instance.getValue(); } /** - * string value = 2; + * required string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { return instance.getValueBytes(); } /** - * string value = 2; + * required string value = 2; */ public Builder setValue( java.lang.String value) { @@ -820,7 +866,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string value = 2; + * required string value = 2; */ public Builder clearValue() { copyOnWrite(); @@ -828,7 +874,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string value = 2; + * required string value = 2; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { @@ -839,16 +885,35 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(builder_scope:org.jetbrains.jpsservice.Message.KeyValuePair) } - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( + private byte memoizedIsInitialized = -1; + protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { + Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new org.jetbrains.jps.api.CmdlineRemoteProto.Message.KeyValuePair(); } case IS_INITIALIZED: { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return DEFAULT_INSTANCE; + if (isInitialized == 0) return null; + + boolean shouldMemoize = ((Boolean) arg0).booleanValue(); + if (!hasKey()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (!hasValue()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (shouldMemoize) memoizedIsInitialized = 1; return DEFAULT_INSTANCE; + } case MAKE_IMMUTABLE: { return null; @@ -859,12 +924,15 @@ public final class CmdlineRemoteProto { case VISIT: { Visitor visitor = (Visitor) arg0; org.jetbrains.jps.api.CmdlineRemoteProto.Message.KeyValuePair other = (org.jetbrains.jps.api.CmdlineRemoteProto.Message.KeyValuePair) arg1; - key_ = visitor.visitString(!key_.isEmpty(), key_, - !other.key_.isEmpty(), other.key_); - value_ = visitor.visitString(!value_.isEmpty(), value_, - !other.value_.isEmpty(), other.value_); + key_ = visitor.visitString( + hasKey(), key_, + other.hasKey(), other.key_); + value_ = visitor.visitString( + hasValue(), value_, + other.hasValue(), other.value_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { + bitField0_ |= other.bitField0_; } return this; } @@ -873,9 +941,6 @@ public final class CmdlineRemoteProto { (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } try { boolean done = false; while (!done) { @@ -891,14 +956,14 @@ public final class CmdlineRemoteProto { break; } case 10: { - java.lang.String s = input.readStringRequireUtf8(); - + String s = input.readString(); + bitField0_ |= 0x00000001; key_ = s; break; } case 18: { - java.lang.String s = input.readStringRequireUtf8(); - + String s = input.readString(); + bitField0_ |= 0x00000002; value_ = s; break; } @@ -913,7 +978,6 @@ public final class CmdlineRemoteProto { } finally { } } - // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } @@ -925,13 +989,7 @@ public final class CmdlineRemoteProto { } } return PARSER; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } + } } throw new UnsupportedOperationException(); } @@ -960,26 +1018,38 @@ public final class CmdlineRemoteProto { com.google.protobuf.MessageLiteOrBuilder { /** - * int32 error_code = 1; + * optional int32 error_code = 1; + */ + boolean hasErrorCode(); + /** + * optional int32 error_code = 1; */ int getErrorCode(); /** - * string description = 2; + * optional string description = 2; + */ + boolean hasDescription(); + /** + * optional string description = 2; */ java.lang.String getDescription(); /** - * string description = 2; + * optional string description = 2; */ com.google.protobuf.ByteString getDescriptionBytes(); /** - * string stacktrace = 3; + * optional string stacktrace = 3; + */ + boolean hasStacktrace(); + /** + * optional string stacktrace = 3; */ java.lang.String getStacktrace(); /** - * string stacktrace = 3; + * optional string stacktrace = 3; */ com.google.protobuf.ByteString getStacktraceBytes(); @@ -996,130 +1066,147 @@ public final class CmdlineRemoteProto { description_ = ""; stacktrace_ = ""; } + private int bitField0_; public static final int ERROR_CODE_FIELD_NUMBER = 1; private int errorCode_; /** - * int32 error_code = 1; + * optional int32 error_code = 1; + */ + public boolean hasErrorCode() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 error_code = 1; */ public int getErrorCode() { return errorCode_; } /** - * int32 error_code = 1; + * optional int32 error_code = 1; */ private void setErrorCode(int value) { - + bitField0_ |= 0x00000001; errorCode_ = value; } /** - * int32 error_code = 1; + * optional int32 error_code = 1; */ private void clearErrorCode() { - + bitField0_ = (bitField0_ & ~0x00000001); errorCode_ = 0; } public static final int DESCRIPTION_FIELD_NUMBER = 2; private java.lang.String description_; /** - * string description = 2; + * optional string description = 2; + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string description = 2; */ public java.lang.String getDescription() { return description_; } /** - * string description = 2; + * optional string description = 2; */ public com.google.protobuf.ByteString getDescriptionBytes() { return com.google.protobuf.ByteString.copyFromUtf8(description_); } /** - * string description = 2; + * optional string description = 2; */ private void setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; description_ = value; } /** - * string description = 2; + * optional string description = 2; */ private void clearDescription() { - + bitField0_ = (bitField0_ & ~0x00000002); description_ = getDefaultInstance().getDescription(); } /** - * string description = 2; + * optional string description = 2; */ private void setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - + bitField0_ |= 0x00000002; description_ = value.toStringUtf8(); } public static final int STACKTRACE_FIELD_NUMBER = 3; private java.lang.String stacktrace_; /** - * string stacktrace = 3; + * optional string stacktrace = 3; + */ + public boolean hasStacktrace() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string stacktrace = 3; */ public java.lang.String getStacktrace() { return stacktrace_; } /** - * string stacktrace = 3; + * optional string stacktrace = 3; */ public com.google.protobuf.ByteString getStacktraceBytes() { return com.google.protobuf.ByteString.copyFromUtf8(stacktrace_); } /** - * string stacktrace = 3; + * optional string stacktrace = 3; */ private void setStacktrace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; stacktrace_ = value; } /** - * string stacktrace = 3; + * optional string stacktrace = 3; */ private void clearStacktrace() { - + bitField0_ = (bitField0_ & ~0x00000004); stacktrace_ = getDefaultInstance().getStacktrace(); } /** - * string stacktrace = 3; + * optional string stacktrace = 3; */ private void setStacktraceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - + bitField0_ |= 0x00000004; stacktrace_ = value.toStringUtf8(); } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (errorCode_ != 0) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, errorCode_); } - if (!description_.isEmpty()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeString(2, getDescription()); } - if (!stacktrace_.isEmpty()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeString(3, getStacktrace()); } unknownFields.writeTo(output); @@ -1130,15 +1217,15 @@ public final class CmdlineRemoteProto { if (size != -1) return size; size = 0; - if (errorCode_ != 0) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, errorCode_); } - if (!description_.isEmpty()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeStringSize(2, getDescription()); } - if (!stacktrace_.isEmpty()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeStringSize(3, getStacktrace()); } @@ -1147,19 +1234,6 @@ public final class CmdlineRemoteProto { return size; } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1222,10 +1296,10 @@ public final class CmdlineRemoteProto { } public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** @@ -1243,13 +1317,19 @@ public final class CmdlineRemoteProto { /** - * int32 error_code = 1; + * optional int32 error_code = 1; + */ + public boolean hasErrorCode() { + return instance.hasErrorCode(); + } + /** + * optional int32 error_code = 1; */ public int getErrorCode() { return instance.getErrorCode(); } /** - * int32 error_code = 1; + * optional int32 error_code = 1; */ public Builder setErrorCode(int value) { copyOnWrite(); @@ -1257,7 +1337,7 @@ public final class CmdlineRemoteProto { return this; } /** - * int32 error_code = 1; + * optional int32 error_code = 1; */ public Builder clearErrorCode() { copyOnWrite(); @@ -1266,20 +1346,26 @@ public final class CmdlineRemoteProto { } /** - * string description = 2; + * optional string description = 2; + */ + public boolean hasDescription() { + return instance.hasDescription(); + } + /** + * optional string description = 2; */ public java.lang.String getDescription() { return instance.getDescription(); } /** - * string description = 2; + * optional string description = 2; */ public com.google.protobuf.ByteString getDescriptionBytes() { return instance.getDescriptionBytes(); } /** - * string description = 2; + * optional string description = 2; */ public Builder setDescription( java.lang.String value) { @@ -1288,7 +1374,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string description = 2; + * optional string description = 2; */ public Builder clearDescription() { copyOnWrite(); @@ -1296,7 +1382,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string description = 2; + * optional string description = 2; */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { @@ -1306,20 +1392,26 @@ public final class CmdlineRemoteProto { } /** - * string stacktrace = 3; + * optional string stacktrace = 3; + */ + public boolean hasStacktrace() { + return instance.hasStacktrace(); + } + /** + * optional string stacktrace = 3; */ public java.lang.String getStacktrace() { return instance.getStacktrace(); } /** - * string stacktrace = 3; + * optional string stacktrace = 3; */ public com.google.protobuf.ByteString getStacktraceBytes() { return instance.getStacktraceBytes(); } /** - * string stacktrace = 3; + * optional string stacktrace = 3; */ public Builder setStacktrace( java.lang.String value) { @@ -1328,7 +1420,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string stacktrace = 3; + * optional string stacktrace = 3; */ public Builder clearStacktrace() { copyOnWrite(); @@ -1336,7 +1428,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string stacktrace = 3; + * optional string stacktrace = 3; */ public Builder setStacktraceBytes( com.google.protobuf.ByteString value) { @@ -1347,10 +1439,9 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(builder_scope:org.jetbrains.jpsservice.Message.Failure) } - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( + protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { + Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure(); @@ -1367,14 +1458,18 @@ public final class CmdlineRemoteProto { case VISIT: { Visitor visitor = (Visitor) arg0; org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure other = (org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure) arg1; - errorCode_ = visitor.visitInt(errorCode_ != 0, errorCode_, - other.errorCode_ != 0, other.errorCode_); - description_ = visitor.visitString(!description_.isEmpty(), description_, - !other.description_.isEmpty(), other.description_); - stacktrace_ = visitor.visitString(!stacktrace_.isEmpty(), stacktrace_, - !other.stacktrace_.isEmpty(), other.stacktrace_); + errorCode_ = visitor.visitInt( + hasErrorCode(), errorCode_, + other.hasErrorCode(), other.errorCode_); + description_ = visitor.visitString( + hasDescription(), description_, + other.hasDescription(), other.description_); + stacktrace_ = visitor.visitString( + hasStacktrace(), stacktrace_, + other.hasStacktrace(), other.stacktrace_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { + bitField0_ |= other.bitField0_; } return this; } @@ -1383,9 +1478,6 @@ public final class CmdlineRemoteProto { (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } try { boolean done = false; while (!done) { @@ -1401,19 +1493,19 @@ public final class CmdlineRemoteProto { break; } case 8: { - + bitField0_ |= 0x00000001; errorCode_ = input.readInt32(); break; } case 18: { - java.lang.String s = input.readStringRequireUtf8(); - + String s = input.readString(); + bitField0_ |= 0x00000002; description_ = s; break; } case 26: { - java.lang.String s = input.readStringRequireUtf8(); - + String s = input.readString(); + bitField0_ |= 0x00000004; stacktrace_ = s; break; } @@ -1428,7 +1520,6 @@ public final class CmdlineRemoteProto { } finally { } } - // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } @@ -1440,13 +1531,7 @@ public final class CmdlineRemoteProto { } } return PARSER; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } + } } throw new UnsupportedOperationException(); } @@ -1475,38 +1560,38 @@ public final class CmdlineRemoteProto { com.google.protobuf.MessageLiteOrBuilder { /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.Type type = 1; + * required .org.jetbrains.jpsservice.Message.ControllerMessage.Type type = 1; */ - int getTypeValue(); + boolean hasType(); /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.Type type = 1; + * required .org.jetbrains.jpsservice.Message.ControllerMessage.Type type = 1; */ org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.Type getType(); /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; */ boolean hasParamsMessage(); /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; */ org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage getParamsMessage(); /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; */ boolean hasFsEvent(); /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; */ org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.FSEvent getFsEvent(); /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; */ boolean hasConstantSearchResult(); /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; */ org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ConstantSearchResult getConstantSearchResult(); } @@ -1519,6 +1604,7 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(message_implements:org.jetbrains.jpsservice.Message.ControllerMessage) ControllerMessageOrBuilder { private ControllerMessage() { + type_ = 1; } /** * Protobuf enum {@code org.jetbrains.jpsservice.Message.ControllerMessage.Type} @@ -1526,9 +1612,9 @@ public final class CmdlineRemoteProto { public enum Type implements com.google.protobuf.Internal.EnumLite { /** - * BUILD_PARAMETERS = 0; + * BUILD_PARAMETERS = 1; */ - BUILD_PARAMETERS(0), + BUILD_PARAMETERS(1), /** * CANCEL_BUILD_COMMAND = 2; */ @@ -1541,13 +1627,12 @@ public final class CmdlineRemoteProto { * CONSTANT_SEARCH_RESULT = 4; */ CONSTANT_SEARCH_RESULT(4), - UNRECOGNIZED(-1), ; /** - * BUILD_PARAMETERS = 0; + * BUILD_PARAMETERS = 1; */ - public static final int BUILD_PARAMETERS_VALUE = 0; + public static final int BUILD_PARAMETERS_VALUE = 1; /** * CANCEL_BUILD_COMMAND = 2; */ @@ -1563,10 +1648,6 @@ public final class CmdlineRemoteProto { public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } return value; } @@ -1580,7 +1661,7 @@ public final class CmdlineRemoteProto { public static Type forNumber(int value) { switch (value) { - case 0: return BUILD_PARAMETERS; + case 1: return BUILD_PARAMETERS; case 2: return CANCEL_BUILD_COMMAND; case 3: return FS_EVENT; case 4: return CONSTANT_SEARCH_RESULT; @@ -1614,14 +1695,18 @@ public final class CmdlineRemoteProto { com.google.protobuf.MessageLiteOrBuilder { /** - * uint64 ordinal = 1; + * required uint64 ordinal = 1; + */ + boolean hasOrdinal(); + /** + * required uint64 ordinal = 1; */ long getOrdinal(); /** * repeated string changed_paths = 2; */ - java.util.List + java.util.List getChangedPathsList(); /** * repeated string changed_paths = 2; @@ -1640,7 +1725,7 @@ public final class CmdlineRemoteProto { /** * repeated string deleted_paths = 3; */ - java.util.List + java.util.List getDeletedPathsList(); /** * repeated string deleted_paths = 3; @@ -1672,32 +1757,38 @@ public final class CmdlineRemoteProto { public static final int ORDINAL_FIELD_NUMBER = 1; private long ordinal_; /** - * uint64 ordinal = 1; + * required uint64 ordinal = 1; + */ + public boolean hasOrdinal() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required uint64 ordinal = 1; */ public long getOrdinal() { return ordinal_; } /** - * uint64 ordinal = 1; + * required uint64 ordinal = 1; */ private void setOrdinal(long value) { - + bitField0_ |= 0x00000001; ordinal_ = value; } /** - * uint64 ordinal = 1; + * required uint64 ordinal = 1; */ private void clearOrdinal() { - + bitField0_ = (bitField0_ & ~0x00000001); ordinal_ = 0L; } public static final int CHANGED_PATHS_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList changedPaths_; + private com.google.protobuf.Internal.ProtobufList changedPaths_; /** * repeated string changed_paths = 2; */ - public java.util.List getChangedPathsList() { + public java.util.List getChangedPathsList() { return changedPaths_; } /** @@ -1771,17 +1862,16 @@ public final class CmdlineRemoteProto { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureChangedPathsIsMutable(); + ensureChangedPathsIsMutable(); changedPaths_.add(value.toStringUtf8()); } public static final int DELETED_PATHS_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.ProtobufList deletedPaths_; + private com.google.protobuf.Internal.ProtobufList deletedPaths_; /** * repeated string deleted_paths = 3; */ - public java.util.List getDeletedPathsList() { + public java.util.List getDeletedPathsList() { return deletedPaths_; } /** @@ -1855,14 +1945,13 @@ public final class CmdlineRemoteProto { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureDeletedPathsIsMutable(); + ensureDeletedPathsIsMutable(); deletedPaths_.add(value.toStringUtf8()); } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (ordinal_ != 0L) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt64(1, ordinal_); } for (int i = 0; i < changedPaths_.size(); i++) { @@ -1879,7 +1968,7 @@ public final class CmdlineRemoteProto { if (size != -1) return size; size = 0; - if (ordinal_ != 0L) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, ordinal_); } @@ -1906,19 +1995,6 @@ public final class CmdlineRemoteProto { return size; } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.FSEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.FSEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.FSEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1981,10 +2057,10 @@ public final class CmdlineRemoteProto { } public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.FSEvent prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** @@ -2002,13 +2078,19 @@ public final class CmdlineRemoteProto { /** - * uint64 ordinal = 1; + * required uint64 ordinal = 1; + */ + public boolean hasOrdinal() { + return instance.hasOrdinal(); + } + /** + * required uint64 ordinal = 1; */ public long getOrdinal() { return instance.getOrdinal(); } /** - * uint64 ordinal = 1; + * required uint64 ordinal = 1; */ public Builder setOrdinal(long value) { copyOnWrite(); @@ -2016,7 +2098,7 @@ public final class CmdlineRemoteProto { return this; } /** - * uint64 ordinal = 1; + * required uint64 ordinal = 1; */ public Builder clearOrdinal() { copyOnWrite(); @@ -2027,7 +2109,7 @@ public final class CmdlineRemoteProto { /** * repeated string changed_paths = 2; */ - public java.util.List + public java.util.List getChangedPathsList() { return java.util.Collections.unmodifiableList( instance.getChangedPathsList()); @@ -2099,7 +2181,7 @@ public final class CmdlineRemoteProto { /** * repeated string deleted_paths = 3; */ - public java.util.List + public java.util.List getDeletedPathsList() { return java.util.Collections.unmodifiableList( instance.getDeletedPathsList()); @@ -2170,16 +2252,29 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(builder_scope:org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent) } - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( + private byte memoizedIsInitialized = -1; + protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { + Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.FSEvent(); } case IS_INITIALIZED: { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return DEFAULT_INSTANCE; + if (isInitialized == 0) return null; + + boolean shouldMemoize = ((Boolean) arg0).booleanValue(); + if (!hasOrdinal()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (shouldMemoize) memoizedIsInitialized = 1; return DEFAULT_INSTANCE; + } case MAKE_IMMUTABLE: { changedPaths_.makeImmutable(); @@ -2192,8 +2287,9 @@ public final class CmdlineRemoteProto { case VISIT: { Visitor visitor = (Visitor) arg0; org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.FSEvent other = (org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.FSEvent) arg1; - ordinal_ = visitor.visitLong(ordinal_ != 0L, ordinal_, - other.ordinal_ != 0L, other.ordinal_); + ordinal_ = visitor.visitLong( + hasOrdinal(), ordinal_, + other.hasOrdinal(), other.ordinal_); changedPaths_= visitor.visitList(changedPaths_, other.changedPaths_); deletedPaths_= visitor.visitList(deletedPaths_, other.deletedPaths_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor @@ -2207,9 +2303,6 @@ public final class CmdlineRemoteProto { (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } try { boolean done = false; while (!done) { @@ -2225,12 +2318,12 @@ public final class CmdlineRemoteProto { break; } case 8: { - + bitField0_ |= 0x00000001; ordinal_ = input.readUInt64(); break; } case 18: { - java.lang.String s = input.readStringRequireUtf8(); + String s = input.readString(); if (!changedPaths_.isModifiable()) { changedPaths_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(changedPaths_); @@ -2239,7 +2332,7 @@ public final class CmdlineRemoteProto { break; } case 26: { - java.lang.String s = input.readStringRequireUtf8(); + String s = input.readString(); if (!deletedPaths_.isModifiable()) { deletedPaths_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(deletedPaths_); @@ -2258,7 +2351,6 @@ public final class CmdlineRemoteProto { } finally { } } - // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } @@ -2270,13 +2362,7 @@ public final class CmdlineRemoteProto { } } return PARSER; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } + } } throw new UnsupportedOperationException(); } @@ -2305,11 +2391,15 @@ public final class CmdlineRemoteProto { com.google.protobuf.MessageLiteOrBuilder { /** - * string global_options_path = 5; + * required string global_options_path = 5; + */ + boolean hasGlobalOptionsPath(); + /** + * required string global_options_path = 5; */ java.lang.String getGlobalOptionsPath(); /** - * string global_options_path = 5; + * required string global_options_path = 5; */ com.google.protobuf.ByteString getGlobalOptionsPathBytes(); @@ -2325,55 +2415,61 @@ public final class CmdlineRemoteProto { private GlobalSettings() { globalOptionsPath_ = ""; } + private int bitField0_; public static final int GLOBAL_OPTIONS_PATH_FIELD_NUMBER = 5; private java.lang.String globalOptionsPath_; /** - * string global_options_path = 5; + * required string global_options_path = 5; + */ + public boolean hasGlobalOptionsPath() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string global_options_path = 5; */ public java.lang.String getGlobalOptionsPath() { return globalOptionsPath_; } /** - * string global_options_path = 5; + * required string global_options_path = 5; */ public com.google.protobuf.ByteString getGlobalOptionsPathBytes() { return com.google.protobuf.ByteString.copyFromUtf8(globalOptionsPath_); } /** - * string global_options_path = 5; + * required string global_options_path = 5; */ private void setGlobalOptionsPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; globalOptionsPath_ = value; } /** - * string global_options_path = 5; + * required string global_options_path = 5; */ private void clearGlobalOptionsPath() { - + bitField0_ = (bitField0_ & ~0x00000001); globalOptionsPath_ = getDefaultInstance().getGlobalOptionsPath(); } /** - * string global_options_path = 5; + * required string global_options_path = 5; */ private void setGlobalOptionsPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - + bitField0_ |= 0x00000001; globalOptionsPath_ = value.toStringUtf8(); } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!globalOptionsPath_.isEmpty()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeString(5, getGlobalOptionsPath()); } unknownFields.writeTo(output); @@ -2384,7 +2480,7 @@ public final class CmdlineRemoteProto { if (size != -1) return size; size = 0; - if (!globalOptionsPath_.isEmpty()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeStringSize(5, getGlobalOptionsPath()); } @@ -2393,19 +2489,6 @@ public final class CmdlineRemoteProto { return size; } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.GlobalSettings parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.GlobalSettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.GlobalSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2468,10 +2551,10 @@ public final class CmdlineRemoteProto { } public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.GlobalSettings prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** @@ -2489,20 +2572,26 @@ public final class CmdlineRemoteProto { /** - * string global_options_path = 5; + * required string global_options_path = 5; + */ + public boolean hasGlobalOptionsPath() { + return instance.hasGlobalOptionsPath(); + } + /** + * required string global_options_path = 5; */ public java.lang.String getGlobalOptionsPath() { return instance.getGlobalOptionsPath(); } /** - * string global_options_path = 5; + * required string global_options_path = 5; */ public com.google.protobuf.ByteString getGlobalOptionsPathBytes() { return instance.getGlobalOptionsPathBytes(); } /** - * string global_options_path = 5; + * required string global_options_path = 5; */ public Builder setGlobalOptionsPath( java.lang.String value) { @@ -2511,7 +2600,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string global_options_path = 5; + * required string global_options_path = 5; */ public Builder clearGlobalOptionsPath() { copyOnWrite(); @@ -2519,7 +2608,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string global_options_path = 5; + * required string global_options_path = 5; */ public Builder setGlobalOptionsPathBytes( com.google.protobuf.ByteString value) { @@ -2530,16 +2619,29 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(builder_scope:org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings) } - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( + private byte memoizedIsInitialized = -1; + protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { + Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.GlobalSettings(); } case IS_INITIALIZED: { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return DEFAULT_INSTANCE; + if (isInitialized == 0) return null; + + boolean shouldMemoize = ((Boolean) arg0).booleanValue(); + if (!hasGlobalOptionsPath()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (shouldMemoize) memoizedIsInitialized = 1; return DEFAULT_INSTANCE; + } case MAKE_IMMUTABLE: { return null; @@ -2550,10 +2652,12 @@ public final class CmdlineRemoteProto { case VISIT: { Visitor visitor = (Visitor) arg0; org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.GlobalSettings other = (org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.GlobalSettings) arg1; - globalOptionsPath_ = visitor.visitString(!globalOptionsPath_.isEmpty(), globalOptionsPath_, - !other.globalOptionsPath_.isEmpty(), other.globalOptionsPath_); + globalOptionsPath_ = visitor.visitString( + hasGlobalOptionsPath(), globalOptionsPath_, + other.hasGlobalOptionsPath(), other.globalOptionsPath_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { + bitField0_ |= other.bitField0_; } return this; } @@ -2562,9 +2666,6 @@ public final class CmdlineRemoteProto { (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } try { boolean done = false; while (!done) { @@ -2580,8 +2681,8 @@ public final class CmdlineRemoteProto { break; } case 42: { - java.lang.String s = input.readStringRequireUtf8(); - + String s = input.readString(); + bitField0_ |= 0x00000001; globalOptionsPath_ = s; break; } @@ -2596,7 +2697,6 @@ public final class CmdlineRemoteProto { } finally { } } - // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } @@ -2608,13 +2708,7 @@ public final class CmdlineRemoteProto { } } return PARSER; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } + } } throw new UnsupportedOperationException(); } @@ -2643,29 +2737,33 @@ public final class CmdlineRemoteProto { com.google.protobuf.MessageLiteOrBuilder { /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.Type build_type = 1; + * required .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.Type build_type = 1; */ - int getBuildTypeValue(); + boolean hasBuildType(); /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.Type build_type = 1; + * required .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.Type build_type = 1; */ org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.Type getBuildType(); /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; */ boolean hasGlobalSettings(); /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; */ org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.GlobalSettings getGlobalSettings(); /** - * string project_id = 3; + * optional string project_id = 3; + */ + boolean hasProjectId(); + /** + * optional string project_id = 3; */ java.lang.String getProjectId(); /** - * string project_id = 3; + * optional string project_id = 3; */ com.google.protobuf.ByteString getProjectIdBytes(); @@ -2687,7 +2785,7 @@ public final class CmdlineRemoteProto { /** * repeated string file_path = 5; */ - java.util.List + java.util.List getFilePathList(); /** * repeated string file_path = 5; @@ -2726,6 +2824,7 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(message_implements:org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage) ParametersMessageOrBuilder { private ParametersMessage() { + buildType_ = 1; projectId_ = ""; scope_ = emptyProtobufList(); filePath_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); @@ -2737,39 +2836,34 @@ public final class CmdlineRemoteProto { public enum Type implements com.google.protobuf.Internal.EnumLite { /** - * BUILD = 0; + * BUILD = 1; */ - BUILD(0), + BUILD(1), /** - * CLEAN = 1; + * CLEAN = 2; */ - CLEAN(1), + CLEAN(2), /** - * UP_TO_DATE_CHECK = 2; + * UP_TO_DATE_CHECK = 3; */ - UP_TO_DATE_CHECK(2), - UNRECOGNIZED(-1), + UP_TO_DATE_CHECK(3), ; /** - * BUILD = 0; + * BUILD = 1; */ - public static final int BUILD_VALUE = 0; + public static final int BUILD_VALUE = 1; /** - * CLEAN = 1; + * CLEAN = 2; */ - public static final int CLEAN_VALUE = 1; + public static final int CLEAN_VALUE = 2; /** - * UP_TO_DATE_CHECK = 2; + * UP_TO_DATE_CHECK = 3; */ - public static final int UP_TO_DATE_CHECK_VALUE = 2; + public static final int UP_TO_DATE_CHECK_VALUE = 3; public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } return value; } @@ -2783,9 +2877,9 @@ public final class CmdlineRemoteProto { public static Type forNumber(int value) { switch (value) { - case 0: return BUILD; - case 1: return CLEAN; - case 2: return UP_TO_DATE_CHECK; + case 1: return BUILD; + case 2: return CLEAN; + case 3: return UP_TO_DATE_CHECK; default: return null; } } @@ -2816,24 +2910,32 @@ public final class CmdlineRemoteProto { com.google.protobuf.MessageLiteOrBuilder { /** - * string type_id = 1; + * required string type_id = 1; + */ + boolean hasTypeId(); + /** + * required string type_id = 1; */ java.lang.String getTypeId(); /** - * string type_id = 1; + * required string type_id = 1; */ com.google.protobuf.ByteString getTypeIdBytes(); /** - * bool all_targets = 2; + * optional bool all_targets = 2; + */ + boolean hasAllTargets(); + /** + * optional bool all_targets = 2; */ boolean getAllTargets(); /** * repeated string target_id = 3; */ - java.util.List + java.util.List getTargetIdList(); /** * repeated string target_id = 3; @@ -2850,7 +2952,11 @@ public final class CmdlineRemoteProto { getTargetIdBytes(int index); /** - * bool force_build = 4; + * required bool force_build = 4; + */ + boolean hasForceBuild(); + /** + * required bool force_build = 4; */ boolean getForceBuild(); } @@ -2870,78 +2976,89 @@ public final class CmdlineRemoteProto { public static final int TYPE_ID_FIELD_NUMBER = 1; private java.lang.String typeId_; /** - * string type_id = 1; + * required string type_id = 1; + */ + public boolean hasTypeId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string type_id = 1; */ public java.lang.String getTypeId() { return typeId_; } /** - * string type_id = 1; + * required string type_id = 1; */ public com.google.protobuf.ByteString getTypeIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(typeId_); } /** - * string type_id = 1; + * required string type_id = 1; */ private void setTypeId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; typeId_ = value; } /** - * string type_id = 1; + * required string type_id = 1; */ private void clearTypeId() { - + bitField0_ = (bitField0_ & ~0x00000001); typeId_ = getDefaultInstance().getTypeId(); } /** - * string type_id = 1; + * required string type_id = 1; */ private void setTypeIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - + bitField0_ |= 0x00000001; typeId_ = value.toStringUtf8(); } public static final int ALL_TARGETS_FIELD_NUMBER = 2; private boolean allTargets_; /** - * bool all_targets = 2; + * optional bool all_targets = 2; + */ + public boolean hasAllTargets() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bool all_targets = 2; */ public boolean getAllTargets() { return allTargets_; } /** - * bool all_targets = 2; + * optional bool all_targets = 2; */ private void setAllTargets(boolean value) { - + bitField0_ |= 0x00000002; allTargets_ = value; } /** - * bool all_targets = 2; + * optional bool all_targets = 2; */ private void clearAllTargets() { - + bitField0_ = (bitField0_ & ~0x00000002); allTargets_ = false; } public static final int TARGET_ID_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.ProtobufList targetId_; + private com.google.protobuf.Internal.ProtobufList targetId_; /** * repeated string target_id = 3; */ - public java.util.List getTargetIdList() { + public java.util.List getTargetIdList() { return targetId_; } /** @@ -3015,46 +3132,51 @@ public final class CmdlineRemoteProto { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureTargetIdIsMutable(); + ensureTargetIdIsMutable(); targetId_.add(value.toStringUtf8()); } public static final int FORCE_BUILD_FIELD_NUMBER = 4; private boolean forceBuild_; /** - * bool force_build = 4; + * required bool force_build = 4; + */ + public boolean hasForceBuild() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * required bool force_build = 4; */ public boolean getForceBuild() { return forceBuild_; } /** - * bool force_build = 4; + * required bool force_build = 4; */ private void setForceBuild(boolean value) { - + bitField0_ |= 0x00000004; forceBuild_ = value; } /** - * bool force_build = 4; + * required bool force_build = 4; */ private void clearForceBuild() { - + bitField0_ = (bitField0_ & ~0x00000004); forceBuild_ = false; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!typeId_.isEmpty()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeString(1, getTypeId()); } - if (allTargets_ != false) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, allTargets_); } for (int i = 0; i < targetId_.size(); i++) { output.writeString(3, targetId_.get(i)); } - if (forceBuild_ != false) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(4, forceBuild_); } unknownFields.writeTo(output); @@ -3065,11 +3187,11 @@ public final class CmdlineRemoteProto { if (size != -1) return size; size = 0; - if (!typeId_.isEmpty()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeStringSize(1, getTypeId()); } - if (allTargets_ != false) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, allTargets_); } @@ -3082,7 +3204,7 @@ public final class CmdlineRemoteProto { size += dataSize; size += 1 * getTargetIdList().size(); } - if (forceBuild_ != false) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, forceBuild_); } @@ -3091,19 +3213,6 @@ public final class CmdlineRemoteProto { return size; } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.TargetTypeBuildScope parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.TargetTypeBuildScope parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.TargetTypeBuildScope parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3166,10 +3275,10 @@ public final class CmdlineRemoteProto { } public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.TargetTypeBuildScope prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** @@ -3187,20 +3296,26 @@ public final class CmdlineRemoteProto { /** - * string type_id = 1; + * required string type_id = 1; + */ + public boolean hasTypeId() { + return instance.hasTypeId(); + } + /** + * required string type_id = 1; */ public java.lang.String getTypeId() { return instance.getTypeId(); } /** - * string type_id = 1; + * required string type_id = 1; */ public com.google.protobuf.ByteString getTypeIdBytes() { return instance.getTypeIdBytes(); } /** - * string type_id = 1; + * required string type_id = 1; */ public Builder setTypeId( java.lang.String value) { @@ -3209,7 +3324,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string type_id = 1; + * required string type_id = 1; */ public Builder clearTypeId() { copyOnWrite(); @@ -3217,7 +3332,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string type_id = 1; + * required string type_id = 1; */ public Builder setTypeIdBytes( com.google.protobuf.ByteString value) { @@ -3227,13 +3342,19 @@ public final class CmdlineRemoteProto { } /** - * bool all_targets = 2; + * optional bool all_targets = 2; + */ + public boolean hasAllTargets() { + return instance.hasAllTargets(); + } + /** + * optional bool all_targets = 2; */ public boolean getAllTargets() { return instance.getAllTargets(); } /** - * bool all_targets = 2; + * optional bool all_targets = 2; */ public Builder setAllTargets(boolean value) { copyOnWrite(); @@ -3241,7 +3362,7 @@ public final class CmdlineRemoteProto { return this; } /** - * bool all_targets = 2; + * optional bool all_targets = 2; */ public Builder clearAllTargets() { copyOnWrite(); @@ -3252,7 +3373,7 @@ public final class CmdlineRemoteProto { /** * repeated string target_id = 3; */ - public java.util.List + public java.util.List getTargetIdList() { return java.util.Collections.unmodifiableList( instance.getTargetIdList()); @@ -3322,13 +3443,19 @@ public final class CmdlineRemoteProto { } /** - * bool force_build = 4; + * required bool force_build = 4; + */ + public boolean hasForceBuild() { + return instance.hasForceBuild(); + } + /** + * required bool force_build = 4; */ public boolean getForceBuild() { return instance.getForceBuild(); } /** - * bool force_build = 4; + * required bool force_build = 4; */ public Builder setForceBuild(boolean value) { copyOnWrite(); @@ -3336,7 +3463,7 @@ public final class CmdlineRemoteProto { return this; } /** - * bool force_build = 4; + * required bool force_build = 4; */ public Builder clearForceBuild() { copyOnWrite(); @@ -3346,16 +3473,35 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(builder_scope:org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.TargetTypeBuildScope) } - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( + private byte memoizedIsInitialized = -1; + protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { + Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.TargetTypeBuildScope(); } case IS_INITIALIZED: { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return DEFAULT_INSTANCE; + if (isInitialized == 0) return null; + + boolean shouldMemoize = ((Boolean) arg0).booleanValue(); + if (!hasTypeId()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (!hasForceBuild()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (shouldMemoize) memoizedIsInitialized = 1; return DEFAULT_INSTANCE; + } case MAKE_IMMUTABLE: { targetId_.makeImmutable(); @@ -3367,13 +3513,16 @@ public final class CmdlineRemoteProto { case VISIT: { Visitor visitor = (Visitor) arg0; org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.TargetTypeBuildScope other = (org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.TargetTypeBuildScope) arg1; - typeId_ = visitor.visitString(!typeId_.isEmpty(), typeId_, - !other.typeId_.isEmpty(), other.typeId_); - allTargets_ = visitor.visitBoolean(allTargets_ != false, allTargets_, - other.allTargets_ != false, other.allTargets_); + typeId_ = visitor.visitString( + hasTypeId(), typeId_, + other.hasTypeId(), other.typeId_); + allTargets_ = visitor.visitBoolean( + hasAllTargets(), allTargets_, + other.hasAllTargets(), other.allTargets_); targetId_= visitor.visitList(targetId_, other.targetId_); - forceBuild_ = visitor.visitBoolean(forceBuild_ != false, forceBuild_, - other.forceBuild_ != false, other.forceBuild_); + forceBuild_ = visitor.visitBoolean( + hasForceBuild(), forceBuild_, + other.hasForceBuild(), other.forceBuild_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { bitField0_ |= other.bitField0_; @@ -3385,9 +3534,6 @@ public final class CmdlineRemoteProto { (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } try { boolean done = false; while (!done) { @@ -3403,18 +3549,18 @@ public final class CmdlineRemoteProto { break; } case 10: { - java.lang.String s = input.readStringRequireUtf8(); - + String s = input.readString(); + bitField0_ |= 0x00000001; typeId_ = s; break; } case 16: { - + bitField0_ |= 0x00000002; allTargets_ = input.readBool(); break; } case 26: { - java.lang.String s = input.readStringRequireUtf8(); + String s = input.readString(); if (!targetId_.isModifiable()) { targetId_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(targetId_); @@ -3423,7 +3569,7 @@ public final class CmdlineRemoteProto { break; } case 32: { - + bitField0_ |= 0x00000004; forceBuild_ = input.readBool(); break; } @@ -3438,7 +3584,6 @@ public final class CmdlineRemoteProto { } finally { } } - // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } @@ -3450,13 +3595,7 @@ public final class CmdlineRemoteProto { } } return PARSER; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } + } } throw new UnsupportedOperationException(); } @@ -3484,76 +3623,70 @@ public final class CmdlineRemoteProto { public static final int BUILD_TYPE_FIELD_NUMBER = 1; private int buildType_; /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.Type build_type = 1; + * required .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.Type build_type = 1; */ - public int getBuildTypeValue() { - return buildType_; + public boolean hasBuildType() { + return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.Type build_type = 1; + * required .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.Type build_type = 1; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.Type getBuildType() { org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.Type result = org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.Type.forNumber(buildType_); - return result == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.Type.UNRECOGNIZED : result; + return result == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.Type.BUILD : result; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.Type build_type = 1; - */ - private void setBuildTypeValue(int value) { - buildType_ = value; - } - /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.Type build_type = 1; + * required .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.Type build_type = 1; */ private void setBuildType(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.Type value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; buildType_ = value.getNumber(); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.Type build_type = 1; + * required .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.Type build_type = 1; */ private void clearBuildType() { - - buildType_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + buildType_ = 1; } public static final int GLOBAL_SETTINGS_FIELD_NUMBER = 2; private org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.GlobalSettings globalSettings_; /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; */ public boolean hasGlobalSettings() { - return globalSettings_ != null; + return ((bitField0_ & 0x00000002) == 0x00000002); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.GlobalSettings getGlobalSettings() { return globalSettings_ == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.GlobalSettings.getDefaultInstance() : globalSettings_; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; */ private void setGlobalSettings(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.GlobalSettings value) { if (value == null) { throw new NullPointerException(); } globalSettings_ = value; - + bitField0_ |= 0x00000002; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; */ private void setGlobalSettings( org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.GlobalSettings.Builder builderForValue) { globalSettings_ = builderForValue.build(); - + bitField0_ |= 0x00000002; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; */ private void mergeGlobalSettings(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.GlobalSettings value) { if (globalSettings_ != null && @@ -3563,58 +3696,63 @@ public final class CmdlineRemoteProto { } else { globalSettings_ = value; } - + bitField0_ |= 0x00000002; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; */ private void clearGlobalSettings() { globalSettings_ = null; - + bitField0_ = (bitField0_ & ~0x00000002); } public static final int PROJECT_ID_FIELD_NUMBER = 3; private java.lang.String projectId_; /** - * string project_id = 3; + * optional string project_id = 3; + */ + public boolean hasProjectId() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string project_id = 3; */ public java.lang.String getProjectId() { return projectId_; } /** - * string project_id = 3; + * optional string project_id = 3; */ public com.google.protobuf.ByteString getProjectIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(projectId_); } /** - * string project_id = 3; + * optional string project_id = 3; */ private void setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; projectId_ = value; } /** - * string project_id = 3; + * optional string project_id = 3; */ private void clearProjectId() { - + bitField0_ = (bitField0_ & ~0x00000004); projectId_ = getDefaultInstance().getProjectId(); } /** - * string project_id = 3; + * optional string project_id = 3; */ private void setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - + bitField0_ |= 0x00000004; projectId_ = value.toStringUtf8(); } @@ -3739,11 +3877,11 @@ public final class CmdlineRemoteProto { } public static final int FILE_PATH_FIELD_NUMBER = 5; - private com.google.protobuf.Internal.ProtobufList filePath_; + private com.google.protobuf.Internal.ProtobufList filePath_; /** * repeated string file_path = 5; */ - public java.util.List getFilePathList() { + public java.util.List getFilePathList() { return filePath_; } /** @@ -3817,8 +3955,7 @@ public final class CmdlineRemoteProto { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureFilePathIsMutable(); + ensureFilePathIsMutable(); filePath_.add(value.toStringUtf8()); } @@ -3944,13 +4081,13 @@ public final class CmdlineRemoteProto { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (buildType_ != org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.Type.BUILD.getNumber()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, buildType_); } - if (globalSettings_ != null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getGlobalSettings()); } - if (!projectId_.isEmpty()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeString(3, getProjectId()); } for (int i = 0; i < scope_.size(); i++) { @@ -3970,15 +4107,15 @@ public final class CmdlineRemoteProto { if (size != -1) return size; size = 0; - if (buildType_ != org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.Type.BUILD.getNumber()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, buildType_); } - if (globalSettings_ != null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getGlobalSettings()); } - if (!projectId_.isEmpty()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeStringSize(3, getProjectId()); } @@ -4004,19 +4141,6 @@ public final class CmdlineRemoteProto { return size; } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4079,10 +4203,10 @@ public final class CmdlineRemoteProto { } public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** @@ -4100,27 +4224,19 @@ public final class CmdlineRemoteProto { /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.Type build_type = 1; + * required .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.Type build_type = 1; */ - public int getBuildTypeValue() { - return instance.getBuildTypeValue(); + public boolean hasBuildType() { + return instance.hasBuildType(); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.Type build_type = 1; - */ - public Builder setBuildTypeValue(int value) { - copyOnWrite(); - instance.setBuildTypeValue(value); - return this; - } - /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.Type build_type = 1; + * required .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.Type build_type = 1; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.Type getBuildType() { return instance.getBuildType(); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.Type build_type = 1; + * required .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.Type build_type = 1; */ public Builder setBuildType(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.Type value) { copyOnWrite(); @@ -4128,7 +4244,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.Type build_type = 1; + * required .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage.Type build_type = 1; */ public Builder clearBuildType() { copyOnWrite(); @@ -4137,19 +4253,19 @@ public final class CmdlineRemoteProto { } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; */ public boolean hasGlobalSettings() { return instance.hasGlobalSettings(); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.GlobalSettings getGlobalSettings() { return instance.getGlobalSettings(); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; */ public Builder setGlobalSettings(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.GlobalSettings value) { copyOnWrite(); @@ -4157,7 +4273,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; */ public Builder setGlobalSettings( org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.GlobalSettings.Builder builderForValue) { @@ -4166,7 +4282,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; */ public Builder mergeGlobalSettings(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.GlobalSettings value) { copyOnWrite(); @@ -4174,7 +4290,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.GlobalSettings global_settings = 2; */ public Builder clearGlobalSettings() { copyOnWrite(); instance.clearGlobalSettings(); @@ -4182,20 +4298,26 @@ public final class CmdlineRemoteProto { } /** - * string project_id = 3; + * optional string project_id = 3; + */ + public boolean hasProjectId() { + return instance.hasProjectId(); + } + /** + * optional string project_id = 3; */ public java.lang.String getProjectId() { return instance.getProjectId(); } /** - * string project_id = 3; + * optional string project_id = 3; */ public com.google.protobuf.ByteString getProjectIdBytes() { return instance.getProjectIdBytes(); } /** - * string project_id = 3; + * optional string project_id = 3; */ public Builder setProjectId( java.lang.String value) { @@ -4204,7 +4326,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string project_id = 3; + * optional string project_id = 3; */ public Builder clearProjectId() { copyOnWrite(); @@ -4212,7 +4334,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string project_id = 3; + * optional string project_id = 3; */ public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { @@ -4321,7 +4443,7 @@ public final class CmdlineRemoteProto { /** * repeated string file_path = 5; */ - public java.util.List + public java.util.List getFilePathList() { return java.util.Collections.unmodifiableList( instance.getFilePathList()); @@ -4489,16 +4611,53 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(builder_scope:org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage) } - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( + private byte memoizedIsInitialized = -1; + protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { + Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage(); } case IS_INITIALIZED: { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return DEFAULT_INSTANCE; + if (isInitialized == 0) return null; + + boolean shouldMemoize = ((Boolean) arg0).booleanValue(); + if (!hasBuildType()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (hasGlobalSettings()) { + if (!getGlobalSettings().isInitialized()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + } + for (int i = 0; i < getScopeCount(); i++) { + if (!getScope(i).isInitialized()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + } + for (int i = 0; i < getBuilderParameterCount(); i++) { + if (!getBuilderParameter(i).isInitialized()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + } + if (shouldMemoize) memoizedIsInitialized = 1; return DEFAULT_INSTANCE; + } case MAKE_IMMUTABLE: { scope_.makeImmutable(); @@ -4512,10 +4671,12 @@ public final class CmdlineRemoteProto { case VISIT: { Visitor visitor = (Visitor) arg0; org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage other = (org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage) arg1; - buildType_ = visitor.visitInt(buildType_ != 0, buildType_, other.buildType_ != 0, other.buildType_); + buildType_ = visitor.visitInt(hasBuildType(), buildType_, + other.hasBuildType(), other.buildType_); globalSettings_ = visitor.visitMessage(globalSettings_, other.globalSettings_); - projectId_ = visitor.visitString(!projectId_.isEmpty(), projectId_, - !other.projectId_.isEmpty(), other.projectId_); + projectId_ = visitor.visitString( + hasProjectId(), projectId_, + other.hasProjectId(), other.projectId_); scope_= visitor.visitList(scope_, other.scope_); filePath_= visitor.visitList(filePath_, other.filePath_); builderParameter_= visitor.visitList(builderParameter_, other.builderParameter_); @@ -4530,9 +4691,6 @@ public final class CmdlineRemoteProto { (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } try { boolean done = false; while (!done) { @@ -4549,13 +4707,18 @@ public final class CmdlineRemoteProto { } case 8: { int rawValue = input.readEnum(); - - buildType_ = rawValue; + org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.Type value = org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.Type.forNumber(rawValue); + if (value == null) { + super.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + buildType_ = rawValue; + } break; } case 18: { org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.GlobalSettings.Builder subBuilder = null; - if (globalSettings_ != null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = globalSettings_.toBuilder(); } globalSettings_ = input.readMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.GlobalSettings.parser(), extensionRegistry); @@ -4563,12 +4726,12 @@ public final class CmdlineRemoteProto { subBuilder.mergeFrom(globalSettings_); globalSettings_ = subBuilder.buildPartial(); } - + bitField0_ |= 0x00000002; break; } case 26: { - java.lang.String s = input.readStringRequireUtf8(); - + String s = input.readString(); + bitField0_ |= 0x00000004; projectId_ = s; break; } @@ -4582,7 +4745,7 @@ public final class CmdlineRemoteProto { break; } case 42: { - java.lang.String s = input.readStringRequireUtf8(); + String s = input.readString(); if (!filePath_.isModifiable()) { filePath_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(filePath_); @@ -4610,7 +4773,6 @@ public final class CmdlineRemoteProto { } finally { } } - // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } @@ -4622,13 +4784,7 @@ public final class CmdlineRemoteProto { } } return PARSER; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } + } } throw new UnsupportedOperationException(); } @@ -4657,34 +4813,46 @@ public final class CmdlineRemoteProto { com.google.protobuf.MessageLiteOrBuilder { /** - * string owner_class_name = 1; + * required string owner_class_name = 1; + */ + boolean hasOwnerClassName(); + /** + * required string owner_class_name = 1; */ java.lang.String getOwnerClassName(); /** - * string owner_class_name = 1; + * required string owner_class_name = 1; */ com.google.protobuf.ByteString getOwnerClassNameBytes(); /** - * string field_name = 2; + * required string field_name = 2; + */ + boolean hasFieldName(); + /** + * required string field_name = 2; */ java.lang.String getFieldName(); /** - * string field_name = 2; + * required string field_name = 2; */ com.google.protobuf.ByteString getFieldNameBytes(); /** - * bool is_success = 3; + * required bool is_success = 3; + */ + boolean hasIsSuccess(); + /** + * required bool is_success = 3; */ boolean getIsSuccess(); /** * repeated string path = 4; */ - java.util.List + java.util.List getPathList(); /** * repeated string path = 4; @@ -4717,124 +4885,140 @@ public final class CmdlineRemoteProto { public static final int OWNER_CLASS_NAME_FIELD_NUMBER = 1; private java.lang.String ownerClassName_; /** - * string owner_class_name = 1; + * required string owner_class_name = 1; + */ + public boolean hasOwnerClassName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string owner_class_name = 1; */ public java.lang.String getOwnerClassName() { return ownerClassName_; } /** - * string owner_class_name = 1; + * required string owner_class_name = 1; */ public com.google.protobuf.ByteString getOwnerClassNameBytes() { return com.google.protobuf.ByteString.copyFromUtf8(ownerClassName_); } /** - * string owner_class_name = 1; + * required string owner_class_name = 1; */ private void setOwnerClassName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; ownerClassName_ = value; } /** - * string owner_class_name = 1; + * required string owner_class_name = 1; */ private void clearOwnerClassName() { - + bitField0_ = (bitField0_ & ~0x00000001); ownerClassName_ = getDefaultInstance().getOwnerClassName(); } /** - * string owner_class_name = 1; + * required string owner_class_name = 1; */ private void setOwnerClassNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - + bitField0_ |= 0x00000001; ownerClassName_ = value.toStringUtf8(); } public static final int FIELD_NAME_FIELD_NUMBER = 2; private java.lang.String fieldName_; /** - * string field_name = 2; + * required string field_name = 2; + */ + public boolean hasFieldName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required string field_name = 2; */ public java.lang.String getFieldName() { return fieldName_; } /** - * string field_name = 2; + * required string field_name = 2; */ public com.google.protobuf.ByteString getFieldNameBytes() { return com.google.protobuf.ByteString.copyFromUtf8(fieldName_); } /** - * string field_name = 2; + * required string field_name = 2; */ private void setFieldName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; fieldName_ = value; } /** - * string field_name = 2; + * required string field_name = 2; */ private void clearFieldName() { - + bitField0_ = (bitField0_ & ~0x00000002); fieldName_ = getDefaultInstance().getFieldName(); } /** - * string field_name = 2; + * required string field_name = 2; */ private void setFieldNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - + bitField0_ |= 0x00000002; fieldName_ = value.toStringUtf8(); } public static final int IS_SUCCESS_FIELD_NUMBER = 3; private boolean isSuccess_; /** - * bool is_success = 3; + * required bool is_success = 3; + */ + public boolean hasIsSuccess() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * required bool is_success = 3; */ public boolean getIsSuccess() { return isSuccess_; } /** - * bool is_success = 3; + * required bool is_success = 3; */ private void setIsSuccess(boolean value) { - + bitField0_ |= 0x00000004; isSuccess_ = value; } /** - * bool is_success = 3; + * required bool is_success = 3; */ private void clearIsSuccess() { - + bitField0_ = (bitField0_ & ~0x00000004); isSuccess_ = false; } public static final int PATH_FIELD_NUMBER = 4; - private com.google.protobuf.Internal.ProtobufList path_; + private com.google.protobuf.Internal.ProtobufList path_; /** * repeated string path = 4; */ - public java.util.List getPathList() { + public java.util.List getPathList() { return path_; } /** @@ -4908,20 +5092,19 @@ public final class CmdlineRemoteProto { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensurePathIsMutable(); + ensurePathIsMutable(); path_.add(value.toStringUtf8()); } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!ownerClassName_.isEmpty()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeString(1, getOwnerClassName()); } - if (!fieldName_.isEmpty()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeString(2, getFieldName()); } - if (isSuccess_ != false) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, isSuccess_); } for (int i = 0; i < path_.size(); i++) { @@ -4935,15 +5118,15 @@ public final class CmdlineRemoteProto { if (size != -1) return size; size = 0; - if (!ownerClassName_.isEmpty()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeStringSize(1, getOwnerClassName()); } - if (!fieldName_.isEmpty()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeStringSize(2, getFieldName()); } - if (isSuccess_ != false) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isSuccess_); } @@ -4961,19 +5144,6 @@ public final class CmdlineRemoteProto { return size; } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ConstantSearchResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ConstantSearchResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ConstantSearchResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5036,10 +5206,10 @@ public final class CmdlineRemoteProto { } public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ConstantSearchResult prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** @@ -5057,20 +5227,26 @@ public final class CmdlineRemoteProto { /** - * string owner_class_name = 1; + * required string owner_class_name = 1; + */ + public boolean hasOwnerClassName() { + return instance.hasOwnerClassName(); + } + /** + * required string owner_class_name = 1; */ public java.lang.String getOwnerClassName() { return instance.getOwnerClassName(); } /** - * string owner_class_name = 1; + * required string owner_class_name = 1; */ public com.google.protobuf.ByteString getOwnerClassNameBytes() { return instance.getOwnerClassNameBytes(); } /** - * string owner_class_name = 1; + * required string owner_class_name = 1; */ public Builder setOwnerClassName( java.lang.String value) { @@ -5079,7 +5255,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string owner_class_name = 1; + * required string owner_class_name = 1; */ public Builder clearOwnerClassName() { copyOnWrite(); @@ -5087,7 +5263,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string owner_class_name = 1; + * required string owner_class_name = 1; */ public Builder setOwnerClassNameBytes( com.google.protobuf.ByteString value) { @@ -5097,20 +5273,26 @@ public final class CmdlineRemoteProto { } /** - * string field_name = 2; + * required string field_name = 2; + */ + public boolean hasFieldName() { + return instance.hasFieldName(); + } + /** + * required string field_name = 2; */ public java.lang.String getFieldName() { return instance.getFieldName(); } /** - * string field_name = 2; + * required string field_name = 2; */ public com.google.protobuf.ByteString getFieldNameBytes() { return instance.getFieldNameBytes(); } /** - * string field_name = 2; + * required string field_name = 2; */ public Builder setFieldName( java.lang.String value) { @@ -5119,7 +5301,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string field_name = 2; + * required string field_name = 2; */ public Builder clearFieldName() { copyOnWrite(); @@ -5127,7 +5309,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string field_name = 2; + * required string field_name = 2; */ public Builder setFieldNameBytes( com.google.protobuf.ByteString value) { @@ -5137,13 +5319,19 @@ public final class CmdlineRemoteProto { } /** - * bool is_success = 3; + * required bool is_success = 3; + */ + public boolean hasIsSuccess() { + return instance.hasIsSuccess(); + } + /** + * required bool is_success = 3; */ public boolean getIsSuccess() { return instance.getIsSuccess(); } /** - * bool is_success = 3; + * required bool is_success = 3; */ public Builder setIsSuccess(boolean value) { copyOnWrite(); @@ -5151,7 +5339,7 @@ public final class CmdlineRemoteProto { return this; } /** - * bool is_success = 3; + * required bool is_success = 3; */ public Builder clearIsSuccess() { copyOnWrite(); @@ -5162,7 +5350,7 @@ public final class CmdlineRemoteProto { /** * repeated string path = 4; */ - public java.util.List + public java.util.List getPathList() { return java.util.Collections.unmodifiableList( instance.getPathList()); @@ -5233,16 +5421,41 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(builder_scope:org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult) } - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( + private byte memoizedIsInitialized = -1; + protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { + Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ConstantSearchResult(); } case IS_INITIALIZED: { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return DEFAULT_INSTANCE; + if (isInitialized == 0) return null; + + boolean shouldMemoize = ((Boolean) arg0).booleanValue(); + if (!hasOwnerClassName()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (!hasFieldName()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (!hasIsSuccess()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (shouldMemoize) memoizedIsInitialized = 1; return DEFAULT_INSTANCE; + } case MAKE_IMMUTABLE: { path_.makeImmutable(); @@ -5254,12 +5467,15 @@ public final class CmdlineRemoteProto { case VISIT: { Visitor visitor = (Visitor) arg0; org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ConstantSearchResult other = (org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ConstantSearchResult) arg1; - ownerClassName_ = visitor.visitString(!ownerClassName_.isEmpty(), ownerClassName_, - !other.ownerClassName_.isEmpty(), other.ownerClassName_); - fieldName_ = visitor.visitString(!fieldName_.isEmpty(), fieldName_, - !other.fieldName_.isEmpty(), other.fieldName_); - isSuccess_ = visitor.visitBoolean(isSuccess_ != false, isSuccess_, - other.isSuccess_ != false, other.isSuccess_); + ownerClassName_ = visitor.visitString( + hasOwnerClassName(), ownerClassName_, + other.hasOwnerClassName(), other.ownerClassName_); + fieldName_ = visitor.visitString( + hasFieldName(), fieldName_, + other.hasFieldName(), other.fieldName_); + isSuccess_ = visitor.visitBoolean( + hasIsSuccess(), isSuccess_, + other.hasIsSuccess(), other.isSuccess_); path_= visitor.visitList(path_, other.path_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { @@ -5272,9 +5488,6 @@ public final class CmdlineRemoteProto { (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } try { boolean done = false; while (!done) { @@ -5290,24 +5503,24 @@ public final class CmdlineRemoteProto { break; } case 10: { - java.lang.String s = input.readStringRequireUtf8(); - + String s = input.readString(); + bitField0_ |= 0x00000001; ownerClassName_ = s; break; } case 18: { - java.lang.String s = input.readStringRequireUtf8(); - + String s = input.readString(); + bitField0_ |= 0x00000002; fieldName_ = s; break; } case 24: { - + bitField0_ |= 0x00000004; isSuccess_ = input.readBool(); break; } case 34: { - java.lang.String s = input.readStringRequireUtf8(); + String s = input.readString(); if (!path_.isModifiable()) { path_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(path_); @@ -5326,7 +5539,6 @@ public final class CmdlineRemoteProto { } finally { } } - // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } @@ -5338,13 +5550,7 @@ public final class CmdlineRemoteProto { } } return PARSER; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } + } } throw new UnsupportedOperationException(); } @@ -5368,79 +5574,74 @@ public final class CmdlineRemoteProto { } } + private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.Type type = 1; + * required .org.jetbrains.jpsservice.Message.ControllerMessage.Type type = 1; */ - public int getTypeValue() { - return type_; + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.Type type = 1; + * required .org.jetbrains.jpsservice.Message.ControllerMessage.Type type = 1; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.Type getType() { org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.Type result = org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.Type.forNumber(type_); - return result == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.Type.UNRECOGNIZED : result; + return result == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.Type.BUILD_PARAMETERS : result; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.Type type = 1; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.Type type = 1; + * required .org.jetbrains.jpsservice.Message.ControllerMessage.Type type = 1; */ private void setType(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.Type value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; type_ = value.getNumber(); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.Type type = 1; + * required .org.jetbrains.jpsservice.Message.ControllerMessage.Type type = 1; */ private void clearType() { - - type_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 1; } public static final int PARAMS_MESSAGE_FIELD_NUMBER = 2; private org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage paramsMessage_; /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; */ public boolean hasParamsMessage() { - return paramsMessage_ != null; + return ((bitField0_ & 0x00000002) == 0x00000002); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage getParamsMessage() { return paramsMessage_ == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.getDefaultInstance() : paramsMessage_; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; */ private void setParamsMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage value) { if (value == null) { throw new NullPointerException(); } paramsMessage_ = value; - + bitField0_ |= 0x00000002; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; */ private void setParamsMessage( org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.Builder builderForValue) { paramsMessage_ = builderForValue.build(); - + bitField0_ |= 0x00000002; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; */ private void mergeParamsMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage value) { if (paramsMessage_ != null && @@ -5450,49 +5651,49 @@ public final class CmdlineRemoteProto { } else { paramsMessage_ = value; } - + bitField0_ |= 0x00000002; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; */ private void clearParamsMessage() { paramsMessage_ = null; - + bitField0_ = (bitField0_ & ~0x00000002); } public static final int FS_EVENT_FIELD_NUMBER = 3; private org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.FSEvent fsEvent_; /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; */ public boolean hasFsEvent() { - return fsEvent_ != null; + return ((bitField0_ & 0x00000004) == 0x00000004); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.FSEvent getFsEvent() { return fsEvent_ == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.FSEvent.getDefaultInstance() : fsEvent_; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; */ private void setFsEvent(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.FSEvent value) { if (value == null) { throw new NullPointerException(); } fsEvent_ = value; - + bitField0_ |= 0x00000004; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; */ private void setFsEvent( org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.FSEvent.Builder builderForValue) { fsEvent_ = builderForValue.build(); - + bitField0_ |= 0x00000004; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; */ private void mergeFsEvent(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.FSEvent value) { if (fsEvent_ != null && @@ -5502,49 +5703,49 @@ public final class CmdlineRemoteProto { } else { fsEvent_ = value; } - + bitField0_ |= 0x00000004; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; */ private void clearFsEvent() { fsEvent_ = null; - + bitField0_ = (bitField0_ & ~0x00000004); } public static final int CONSTANT_SEARCH_RESULT_FIELD_NUMBER = 4; private org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ConstantSearchResult constantSearchResult_; /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; */ public boolean hasConstantSearchResult() { - return constantSearchResult_ != null; + return ((bitField0_ & 0x00000008) == 0x00000008); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ConstantSearchResult getConstantSearchResult() { return constantSearchResult_ == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ConstantSearchResult.getDefaultInstance() : constantSearchResult_; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; */ private void setConstantSearchResult(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ConstantSearchResult value) { if (value == null) { throw new NullPointerException(); } constantSearchResult_ = value; - + bitField0_ |= 0x00000008; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; */ private void setConstantSearchResult( org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ConstantSearchResult.Builder builderForValue) { constantSearchResult_ = builderForValue.build(); - + bitField0_ |= 0x00000008; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; */ private void mergeConstantSearchResult(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ConstantSearchResult value) { if (constantSearchResult_ != null && @@ -5554,27 +5755,27 @@ public final class CmdlineRemoteProto { } else { constantSearchResult_ = value; } - + bitField0_ |= 0x00000008; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; */ private void clearConstantSearchResult() { constantSearchResult_ = null; - + bitField0_ = (bitField0_ & ~0x00000008); } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ != org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.Type.BUILD_PARAMETERS.getNumber()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_); } - if (paramsMessage_ != null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getParamsMessage()); } - if (fsEvent_ != null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getFsEvent()); } - if (constantSearchResult_ != null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getConstantSearchResult()); } unknownFields.writeTo(output); @@ -5585,19 +5786,19 @@ public final class CmdlineRemoteProto { if (size != -1) return size; size = 0; - if (type_ != org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.Type.BUILD_PARAMETERS.getNumber()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } - if (paramsMessage_ != null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getParamsMessage()); } - if (fsEvent_ != null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getFsEvent()); } - if (constantSearchResult_ != null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getConstantSearchResult()); } @@ -5606,19 +5807,6 @@ public final class CmdlineRemoteProto { return size; } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5681,10 +5869,10 @@ public final class CmdlineRemoteProto { } public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** @@ -5702,27 +5890,19 @@ public final class CmdlineRemoteProto { /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.Type type = 1; + * required .org.jetbrains.jpsservice.Message.ControllerMessage.Type type = 1; */ - public int getTypeValue() { - return instance.getTypeValue(); + public boolean hasType() { + return instance.hasType(); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.Type type = 1; - */ - public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); - return this; - } - /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.Type type = 1; + * required .org.jetbrains.jpsservice.Message.ControllerMessage.Type type = 1; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.Type getType() { return instance.getType(); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.Type type = 1; + * required .org.jetbrains.jpsservice.Message.ControllerMessage.Type type = 1; */ public Builder setType(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.Type value) { copyOnWrite(); @@ -5730,7 +5910,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.Type type = 1; + * required .org.jetbrains.jpsservice.Message.ControllerMessage.Type type = 1; */ public Builder clearType() { copyOnWrite(); @@ -5739,19 +5919,19 @@ public final class CmdlineRemoteProto { } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; */ public boolean hasParamsMessage() { return instance.hasParamsMessage(); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage getParamsMessage() { return instance.getParamsMessage(); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; */ public Builder setParamsMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage value) { copyOnWrite(); @@ -5759,7 +5939,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; */ public Builder setParamsMessage( org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.Builder builderForValue) { @@ -5768,7 +5948,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; */ public Builder mergeParamsMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage value) { copyOnWrite(); @@ -5776,7 +5956,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ParametersMessage params_message = 2; */ public Builder clearParamsMessage() { copyOnWrite(); instance.clearParamsMessage(); @@ -5784,19 +5964,19 @@ public final class CmdlineRemoteProto { } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; */ public boolean hasFsEvent() { return instance.hasFsEvent(); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.FSEvent getFsEvent() { return instance.getFsEvent(); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; */ public Builder setFsEvent(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.FSEvent value) { copyOnWrite(); @@ -5804,7 +5984,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; */ public Builder setFsEvent( org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.FSEvent.Builder builderForValue) { @@ -5813,7 +5993,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; */ public Builder mergeFsEvent(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.FSEvent value) { copyOnWrite(); @@ -5821,7 +6001,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.FSEvent fs_event = 3; */ public Builder clearFsEvent() { copyOnWrite(); instance.clearFsEvent(); @@ -5829,19 +6009,19 @@ public final class CmdlineRemoteProto { } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; */ public boolean hasConstantSearchResult() { return instance.hasConstantSearchResult(); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ConstantSearchResult getConstantSearchResult() { return instance.getConstantSearchResult(); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; */ public Builder setConstantSearchResult(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ConstantSearchResult value) { copyOnWrite(); @@ -5849,7 +6029,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; */ public Builder setConstantSearchResult( org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ConstantSearchResult.Builder builderForValue) { @@ -5858,7 +6038,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; */ public Builder mergeConstantSearchResult(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ConstantSearchResult value) { copyOnWrite(); @@ -5866,7 +6046,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage.ConstantSearchResult constant_search_result = 4; */ public Builder clearConstantSearchResult() { copyOnWrite(); instance.clearConstantSearchResult(); @@ -5875,16 +6055,53 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(builder_scope:org.jetbrains.jpsservice.Message.ControllerMessage) } - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( + private byte memoizedIsInitialized = -1; + protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { + Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage(); } case IS_INITIALIZED: { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return DEFAULT_INSTANCE; + if (isInitialized == 0) return null; + + boolean shouldMemoize = ((Boolean) arg0).booleanValue(); + if (!hasType()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (hasParamsMessage()) { + if (!getParamsMessage().isInitialized()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + } + if (hasFsEvent()) { + if (!getFsEvent().isInitialized()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + } + if (hasConstantSearchResult()) { + if (!getConstantSearchResult().isInitialized()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + } + if (shouldMemoize) memoizedIsInitialized = 1; return DEFAULT_INSTANCE; + } case MAKE_IMMUTABLE: { return null; @@ -5895,12 +6112,14 @@ public final class CmdlineRemoteProto { case VISIT: { Visitor visitor = (Visitor) arg0; org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage other = (org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage) arg1; - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); + type_ = visitor.visitInt(hasType(), type_, + other.hasType(), other.type_); paramsMessage_ = visitor.visitMessage(paramsMessage_, other.paramsMessage_); fsEvent_ = visitor.visitMessage(fsEvent_, other.fsEvent_); constantSearchResult_ = visitor.visitMessage(constantSearchResult_, other.constantSearchResult_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { + bitField0_ |= other.bitField0_; } return this; } @@ -5909,9 +6128,6 @@ public final class CmdlineRemoteProto { (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } try { boolean done = false; while (!done) { @@ -5928,13 +6144,18 @@ public final class CmdlineRemoteProto { } case 8: { int rawValue = input.readEnum(); - - type_ = rawValue; + org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.Type value = org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.Type.forNumber(rawValue); + if (value == null) { + super.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + type_ = rawValue; + } break; } case 18: { org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.Builder subBuilder = null; - if (paramsMessage_ != null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = paramsMessage_.toBuilder(); } paramsMessage_ = input.readMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ParametersMessage.parser(), extensionRegistry); @@ -5942,12 +6163,12 @@ public final class CmdlineRemoteProto { subBuilder.mergeFrom(paramsMessage_); paramsMessage_ = subBuilder.buildPartial(); } - + bitField0_ |= 0x00000002; break; } case 26: { org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.FSEvent.Builder subBuilder = null; - if (fsEvent_ != null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = fsEvent_.toBuilder(); } fsEvent_ = input.readMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.FSEvent.parser(), extensionRegistry); @@ -5955,12 +6176,12 @@ public final class CmdlineRemoteProto { subBuilder.mergeFrom(fsEvent_); fsEvent_ = subBuilder.buildPartial(); } - + bitField0_ |= 0x00000004; break; } case 34: { org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ConstantSearchResult.Builder subBuilder = null; - if (constantSearchResult_ != null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = constantSearchResult_.toBuilder(); } constantSearchResult_ = input.readMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.ConstantSearchResult.parser(), extensionRegistry); @@ -5968,7 +6189,7 @@ public final class CmdlineRemoteProto { subBuilder.mergeFrom(constantSearchResult_); constantSearchResult_ = subBuilder.buildPartial(); } - + bitField0_ |= 0x00000008; break; } } @@ -5982,7 +6203,6 @@ public final class CmdlineRemoteProto { } finally { } } - // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } @@ -5994,13 +6214,7 @@ public final class CmdlineRemoteProto { } } return PARSER; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } + } } throw new UnsupportedOperationException(); } @@ -6029,38 +6243,38 @@ public final class CmdlineRemoteProto { com.google.protobuf.MessageLiteOrBuilder { /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.Type type = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.Type type = 1; */ - int getTypeValue(); + boolean hasType(); /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.Type type = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.Type type = 1; */ org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.Type getType(); /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; */ boolean hasBuildEvent(); /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; */ org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent getBuildEvent(); /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; */ boolean hasCompileMessage(); /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; */ org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage getCompileMessage(); /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; */ boolean hasConstantSearchTask(); /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; */ org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask getConstantSearchTask(); } @@ -6073,6 +6287,7 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(message_implements:org.jetbrains.jpsservice.Message.BuilderMessage) BuilderMessageOrBuilder { private BuilderMessage() { + type_ = 1; } /** * Protobuf enum {@code org.jetbrains.jpsservice.Message.BuilderMessage.Type} @@ -6080,47 +6295,42 @@ public final class CmdlineRemoteProto { public enum Type implements com.google.protobuf.Internal.EnumLite { /** - * PARAM_REQUEST = 0; + * PARAM_REQUEST = 1; */ - PARAM_REQUEST(0), + PARAM_REQUEST(1), /** - * BUILD_EVENT = 1; + * BUILD_EVENT = 2; */ - BUILD_EVENT(1), + BUILD_EVENT(2), /** - * COMPILE_MESSAGE = 2; + * COMPILE_MESSAGE = 3; */ - COMPILE_MESSAGE(2), + COMPILE_MESSAGE(3), /** - * CONSTANT_SEARCH_TASK = 3; + * CONSTANT_SEARCH_TASK = 4; */ - CONSTANT_SEARCH_TASK(3), - UNRECOGNIZED(-1), + CONSTANT_SEARCH_TASK(4), ; /** - * PARAM_REQUEST = 0; + * PARAM_REQUEST = 1; */ - public static final int PARAM_REQUEST_VALUE = 0; + public static final int PARAM_REQUEST_VALUE = 1; /** - * BUILD_EVENT = 1; + * BUILD_EVENT = 2; */ - public static final int BUILD_EVENT_VALUE = 1; + public static final int BUILD_EVENT_VALUE = 2; /** - * COMPILE_MESSAGE = 2; + * COMPILE_MESSAGE = 3; */ - public static final int COMPILE_MESSAGE_VALUE = 2; + public static final int COMPILE_MESSAGE_VALUE = 3; /** - * CONSTANT_SEARCH_TASK = 3; + * CONSTANT_SEARCH_TASK = 4; */ - public static final int CONSTANT_SEARCH_TASK_VALUE = 3; + public static final int CONSTANT_SEARCH_TASK_VALUE = 4; public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } return value; } @@ -6134,10 +6344,10 @@ public final class CmdlineRemoteProto { public static Type forNumber(int value) { switch (value) { - case 0: return PARAM_REQUEST; - case 1: return BUILD_EVENT; - case 2: return COMPILE_MESSAGE; - case 3: return CONSTANT_SEARCH_TASK; + case 1: return PARAM_REQUEST; + case 2: return BUILD_EVENT; + case 3: return COMPILE_MESSAGE; + case 4: return CONSTANT_SEARCH_TASK; default: return null; } } @@ -6168,30 +6378,34 @@ public final class CmdlineRemoteProto { com.google.protobuf.MessageLiteOrBuilder { /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Type event_type = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Type event_type = 1; */ - int getEventTypeValue(); + boolean hasEventType(); /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Type event_type = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Type event_type = 1; */ org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Type getEventType(); /** - * string description = 2; + * optional string description = 2; + */ + boolean hasDescription(); + /** + * optional string description = 2; */ java.lang.String getDescription(); /** - * string description = 2; + * optional string description = 2; */ com.google.protobuf.ByteString getDescriptionBytes(); /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Status completion_status = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Status completion_status = 3; */ - int getCompletionStatusValue(); + boolean hasCompletionStatus(); /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Status completion_status = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Status completion_status = 3; */ org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Status getCompletionStatus(); @@ -6210,11 +6424,11 @@ public final class CmdlineRemoteProto { int getGeneratedFilesCount(); /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; */ boolean hasCustomBuilderMessage(); /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; */ org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.CustomBuilderMessage getCustomBuilderMessage(); } @@ -6227,7 +6441,9 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(message_implements:org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent) BuildEventOrBuilder { private BuildEvent() { + eventType_ = 1; description_ = ""; + completionStatus_ = 1; generatedFiles_ = emptyProtobufList(); } /** @@ -6236,39 +6452,34 @@ public final class CmdlineRemoteProto { public enum Type implements com.google.protobuf.Internal.EnumLite { /** - * BUILD_COMPLETED = 0; + * BUILD_COMPLETED = 1; */ - BUILD_COMPLETED(0), + BUILD_COMPLETED(1), /** - * FILES_GENERATED = 1; + * FILES_GENERATED = 2; */ - FILES_GENERATED(1), + FILES_GENERATED(2), /** - * CUSTOM_BUILDER_MESSAGE = 2; + * CUSTOM_BUILDER_MESSAGE = 3; */ - CUSTOM_BUILDER_MESSAGE(2), - UNRECOGNIZED(-1), + CUSTOM_BUILDER_MESSAGE(3), ; /** - * BUILD_COMPLETED = 0; + * BUILD_COMPLETED = 1; */ - public static final int BUILD_COMPLETED_VALUE = 0; + public static final int BUILD_COMPLETED_VALUE = 1; /** - * FILES_GENERATED = 1; + * FILES_GENERATED = 2; */ - public static final int FILES_GENERATED_VALUE = 1; + public static final int FILES_GENERATED_VALUE = 2; /** - * CUSTOM_BUILDER_MESSAGE = 2; + * CUSTOM_BUILDER_MESSAGE = 3; */ - public static final int CUSTOM_BUILDER_MESSAGE_VALUE = 2; + public static final int CUSTOM_BUILDER_MESSAGE_VALUE = 3; public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } return value; } @@ -6282,9 +6493,9 @@ public final class CmdlineRemoteProto { public static Type forNumber(int value) { switch (value) { - case 0: return BUILD_COMPLETED; - case 1: return FILES_GENERATED; - case 2: return CUSTOM_BUILDER_MESSAGE; + case 1: return BUILD_COMPLETED; + case 2: return FILES_GENERATED; + case 3: return CUSTOM_BUILDER_MESSAGE; default: return null; } } @@ -6316,47 +6527,42 @@ public final class CmdlineRemoteProto { public enum Status implements com.google.protobuf.Internal.EnumLite { /** - * CANCELED = 0; + * CANCELED = 1; */ - CANCELED(0), + CANCELED(1), /** - * ERRORS = 1; + * ERRORS = 2; */ - ERRORS(1), + ERRORS(2), /** - * SUCCESS = 2; + * SUCCESS = 3; */ - SUCCESS(2), + SUCCESS(3), /** - * UP_TO_DATE = 3; + * UP_TO_DATE = 4; */ - UP_TO_DATE(3), - UNRECOGNIZED(-1), + UP_TO_DATE(4), ; /** - * CANCELED = 0; + * CANCELED = 1; */ - public static final int CANCELED_VALUE = 0; + public static final int CANCELED_VALUE = 1; /** - * ERRORS = 1; + * ERRORS = 2; */ - public static final int ERRORS_VALUE = 1; + public static final int ERRORS_VALUE = 2; /** - * SUCCESS = 2; + * SUCCESS = 3; */ - public static final int SUCCESS_VALUE = 2; + public static final int SUCCESS_VALUE = 3; /** - * UP_TO_DATE = 3; + * UP_TO_DATE = 4; */ - public static final int UP_TO_DATE_VALUE = 3; + public static final int UP_TO_DATE_VALUE = 4; public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } return value; } @@ -6370,10 +6576,10 @@ public final class CmdlineRemoteProto { public static Status forNumber(int value) { switch (value) { - case 0: return CANCELED; - case 1: return ERRORS; - case 2: return SUCCESS; - case 3: return UP_TO_DATE; + case 1: return CANCELED; + case 2: return ERRORS; + case 3: return SUCCESS; + case 4: return UP_TO_DATE; default: return null; } } @@ -6404,21 +6610,29 @@ public final class CmdlineRemoteProto { com.google.protobuf.MessageLiteOrBuilder { /** - * string output_root = 1; + * required string output_root = 1; + */ + boolean hasOutputRoot(); + /** + * required string output_root = 1; */ java.lang.String getOutputRoot(); /** - * string output_root = 1; + * required string output_root = 1; */ com.google.protobuf.ByteString getOutputRootBytes(); /** - * string relative_path = 2; + * required string relative_path = 2; + */ + boolean hasRelativePath(); + /** + * required string relative_path = 2; */ java.lang.String getRelativePath(); /** - * string relative_path = 2; + * required string relative_path = 2; */ com.google.protobuf.ByteString getRelativePathBytes(); @@ -6435,104 +6649,115 @@ public final class CmdlineRemoteProto { outputRoot_ = ""; relativePath_ = ""; } + private int bitField0_; public static final int OUTPUT_ROOT_FIELD_NUMBER = 1; private java.lang.String outputRoot_; /** - * string output_root = 1; + * required string output_root = 1; + */ + public boolean hasOutputRoot() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string output_root = 1; */ public java.lang.String getOutputRoot() { return outputRoot_; } /** - * string output_root = 1; + * required string output_root = 1; */ public com.google.protobuf.ByteString getOutputRootBytes() { return com.google.protobuf.ByteString.copyFromUtf8(outputRoot_); } /** - * string output_root = 1; + * required string output_root = 1; */ private void setOutputRoot( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; outputRoot_ = value; } /** - * string output_root = 1; + * required string output_root = 1; */ private void clearOutputRoot() { - + bitField0_ = (bitField0_ & ~0x00000001); outputRoot_ = getDefaultInstance().getOutputRoot(); } /** - * string output_root = 1; + * required string output_root = 1; */ private void setOutputRootBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - + bitField0_ |= 0x00000001; outputRoot_ = value.toStringUtf8(); } public static final int RELATIVE_PATH_FIELD_NUMBER = 2; private java.lang.String relativePath_; /** - * string relative_path = 2; + * required string relative_path = 2; + */ + public boolean hasRelativePath() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required string relative_path = 2; */ public java.lang.String getRelativePath() { return relativePath_; } /** - * string relative_path = 2; + * required string relative_path = 2; */ public com.google.protobuf.ByteString getRelativePathBytes() { return com.google.protobuf.ByteString.copyFromUtf8(relativePath_); } /** - * string relative_path = 2; + * required string relative_path = 2; */ private void setRelativePath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; relativePath_ = value; } /** - * string relative_path = 2; + * required string relative_path = 2; */ private void clearRelativePath() { - + bitField0_ = (bitField0_ & ~0x00000002); relativePath_ = getDefaultInstance().getRelativePath(); } /** - * string relative_path = 2; + * required string relative_path = 2; */ private void setRelativePathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - + bitField0_ |= 0x00000002; relativePath_ = value.toStringUtf8(); } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!outputRoot_.isEmpty()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeString(1, getOutputRoot()); } - if (!relativePath_.isEmpty()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeString(2, getRelativePath()); } unknownFields.writeTo(output); @@ -6543,11 +6768,11 @@ public final class CmdlineRemoteProto { if (size != -1) return size; size = 0; - if (!outputRoot_.isEmpty()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeStringSize(1, getOutputRoot()); } - if (!relativePath_.isEmpty()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeStringSize(2, getRelativePath()); } @@ -6556,19 +6781,6 @@ public final class CmdlineRemoteProto { return size; } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.GeneratedFile parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.GeneratedFile parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.GeneratedFile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -6631,10 +6843,10 @@ public final class CmdlineRemoteProto { } public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.GeneratedFile prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** @@ -6652,20 +6864,26 @@ public final class CmdlineRemoteProto { /** - * string output_root = 1; + * required string output_root = 1; + */ + public boolean hasOutputRoot() { + return instance.hasOutputRoot(); + } + /** + * required string output_root = 1; */ public java.lang.String getOutputRoot() { return instance.getOutputRoot(); } /** - * string output_root = 1; + * required string output_root = 1; */ public com.google.protobuf.ByteString getOutputRootBytes() { return instance.getOutputRootBytes(); } /** - * string output_root = 1; + * required string output_root = 1; */ public Builder setOutputRoot( java.lang.String value) { @@ -6674,7 +6892,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string output_root = 1; + * required string output_root = 1; */ public Builder clearOutputRoot() { copyOnWrite(); @@ -6682,7 +6900,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string output_root = 1; + * required string output_root = 1; */ public Builder setOutputRootBytes( com.google.protobuf.ByteString value) { @@ -6692,20 +6910,26 @@ public final class CmdlineRemoteProto { } /** - * string relative_path = 2; + * required string relative_path = 2; + */ + public boolean hasRelativePath() { + return instance.hasRelativePath(); + } + /** + * required string relative_path = 2; */ public java.lang.String getRelativePath() { return instance.getRelativePath(); } /** - * string relative_path = 2; + * required string relative_path = 2; */ public com.google.protobuf.ByteString getRelativePathBytes() { return instance.getRelativePathBytes(); } /** - * string relative_path = 2; + * required string relative_path = 2; */ public Builder setRelativePath( java.lang.String value) { @@ -6714,7 +6938,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string relative_path = 2; + * required string relative_path = 2; */ public Builder clearRelativePath() { copyOnWrite(); @@ -6722,7 +6946,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string relative_path = 2; + * required string relative_path = 2; */ public Builder setRelativePathBytes( com.google.protobuf.ByteString value) { @@ -6733,16 +6957,35 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(builder_scope:org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.GeneratedFile) } - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( + private byte memoizedIsInitialized = -1; + protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { + Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.GeneratedFile(); } case IS_INITIALIZED: { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return DEFAULT_INSTANCE; + if (isInitialized == 0) return null; + + boolean shouldMemoize = ((Boolean) arg0).booleanValue(); + if (!hasOutputRoot()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (!hasRelativePath()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (shouldMemoize) memoizedIsInitialized = 1; return DEFAULT_INSTANCE; + } case MAKE_IMMUTABLE: { return null; @@ -6753,12 +6996,15 @@ public final class CmdlineRemoteProto { case VISIT: { Visitor visitor = (Visitor) arg0; org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.GeneratedFile other = (org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.GeneratedFile) arg1; - outputRoot_ = visitor.visitString(!outputRoot_.isEmpty(), outputRoot_, - !other.outputRoot_.isEmpty(), other.outputRoot_); - relativePath_ = visitor.visitString(!relativePath_.isEmpty(), relativePath_, - !other.relativePath_.isEmpty(), other.relativePath_); + outputRoot_ = visitor.visitString( + hasOutputRoot(), outputRoot_, + other.hasOutputRoot(), other.outputRoot_); + relativePath_ = visitor.visitString( + hasRelativePath(), relativePath_, + other.hasRelativePath(), other.relativePath_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { + bitField0_ |= other.bitField0_; } return this; } @@ -6767,9 +7013,6 @@ public final class CmdlineRemoteProto { (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } try { boolean done = false; while (!done) { @@ -6785,14 +7028,14 @@ public final class CmdlineRemoteProto { break; } case 10: { - java.lang.String s = input.readStringRequireUtf8(); - + String s = input.readString(); + bitField0_ |= 0x00000001; outputRoot_ = s; break; } case 18: { - java.lang.String s = input.readStringRequireUtf8(); - + String s = input.readString(); + bitField0_ |= 0x00000002; relativePath_ = s; break; } @@ -6807,7 +7050,6 @@ public final class CmdlineRemoteProto { } finally { } } - // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } @@ -6819,13 +7061,7 @@ public final class CmdlineRemoteProto { } } return PARSER; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } + } } throw new UnsupportedOperationException(); } @@ -6854,31 +7090,43 @@ public final class CmdlineRemoteProto { com.google.protobuf.MessageLiteOrBuilder { /** - * string builder_id = 1; + * required string builder_id = 1; + */ + boolean hasBuilderId(); + /** + * required string builder_id = 1; */ java.lang.String getBuilderId(); /** - * string builder_id = 1; + * required string builder_id = 1; */ com.google.protobuf.ByteString getBuilderIdBytes(); /** - * string message_type = 2; + * required string message_type = 2; + */ + boolean hasMessageType(); + /** + * required string message_type = 2; */ java.lang.String getMessageType(); /** - * string message_type = 2; + * required string message_type = 2; */ com.google.protobuf.ByteString getMessageTypeBytes(); /** - * string message_text = 3; + * required string message_text = 3; + */ + boolean hasMessageText(); + /** + * required string message_text = 3; */ java.lang.String getMessageText(); /** - * string message_text = 3; + * required string message_text = 3; */ com.google.protobuf.ByteString getMessageTextBytes(); @@ -6896,153 +7144,169 @@ public final class CmdlineRemoteProto { messageType_ = ""; messageText_ = ""; } + private int bitField0_; public static final int BUILDER_ID_FIELD_NUMBER = 1; private java.lang.String builderId_; /** - * string builder_id = 1; + * required string builder_id = 1; + */ + public boolean hasBuilderId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string builder_id = 1; */ public java.lang.String getBuilderId() { return builderId_; } /** - * string builder_id = 1; + * required string builder_id = 1; */ public com.google.protobuf.ByteString getBuilderIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(builderId_); } /** - * string builder_id = 1; + * required string builder_id = 1; */ private void setBuilderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; builderId_ = value; } /** - * string builder_id = 1; + * required string builder_id = 1; */ private void clearBuilderId() { - + bitField0_ = (bitField0_ & ~0x00000001); builderId_ = getDefaultInstance().getBuilderId(); } /** - * string builder_id = 1; + * required string builder_id = 1; */ private void setBuilderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - + bitField0_ |= 0x00000001; builderId_ = value.toStringUtf8(); } public static final int MESSAGE_TYPE_FIELD_NUMBER = 2; private java.lang.String messageType_; /** - * string message_type = 2; + * required string message_type = 2; + */ + public boolean hasMessageType() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required string message_type = 2; */ public java.lang.String getMessageType() { return messageType_; } /** - * string message_type = 2; + * required string message_type = 2; */ public com.google.protobuf.ByteString getMessageTypeBytes() { return com.google.protobuf.ByteString.copyFromUtf8(messageType_); } /** - * string message_type = 2; + * required string message_type = 2; */ private void setMessageType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; messageType_ = value; } /** - * string message_type = 2; + * required string message_type = 2; */ private void clearMessageType() { - + bitField0_ = (bitField0_ & ~0x00000002); messageType_ = getDefaultInstance().getMessageType(); } /** - * string message_type = 2; + * required string message_type = 2; */ private void setMessageTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - + bitField0_ |= 0x00000002; messageType_ = value.toStringUtf8(); } public static final int MESSAGE_TEXT_FIELD_NUMBER = 3; private java.lang.String messageText_; /** - * string message_text = 3; + * required string message_text = 3; + */ + public boolean hasMessageText() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * required string message_text = 3; */ public java.lang.String getMessageText() { return messageText_; } /** - * string message_text = 3; + * required string message_text = 3; */ public com.google.protobuf.ByteString getMessageTextBytes() { return com.google.protobuf.ByteString.copyFromUtf8(messageText_); } /** - * string message_text = 3; + * required string message_text = 3; */ private void setMessageText( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; messageText_ = value; } /** - * string message_text = 3; + * required string message_text = 3; */ private void clearMessageText() { - + bitField0_ = (bitField0_ & ~0x00000004); messageText_ = getDefaultInstance().getMessageText(); } /** - * string message_text = 3; + * required string message_text = 3; */ private void setMessageTextBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - + bitField0_ |= 0x00000004; messageText_ = value.toStringUtf8(); } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!builderId_.isEmpty()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeString(1, getBuilderId()); } - if (!messageType_.isEmpty()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeString(2, getMessageType()); } - if (!messageText_.isEmpty()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeString(3, getMessageText()); } unknownFields.writeTo(output); @@ -7053,15 +7317,15 @@ public final class CmdlineRemoteProto { if (size != -1) return size; size = 0; - if (!builderId_.isEmpty()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeStringSize(1, getBuilderId()); } - if (!messageType_.isEmpty()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeStringSize(2, getMessageType()); } - if (!messageText_.isEmpty()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeStringSize(3, getMessageText()); } @@ -7070,19 +7334,6 @@ public final class CmdlineRemoteProto { return size; } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.CustomBuilderMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.CustomBuilderMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.CustomBuilderMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -7145,10 +7396,10 @@ public final class CmdlineRemoteProto { } public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.CustomBuilderMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** @@ -7166,20 +7417,26 @@ public final class CmdlineRemoteProto { /** - * string builder_id = 1; + * required string builder_id = 1; + */ + public boolean hasBuilderId() { + return instance.hasBuilderId(); + } + /** + * required string builder_id = 1; */ public java.lang.String getBuilderId() { return instance.getBuilderId(); } /** - * string builder_id = 1; + * required string builder_id = 1; */ public com.google.protobuf.ByteString getBuilderIdBytes() { return instance.getBuilderIdBytes(); } /** - * string builder_id = 1; + * required string builder_id = 1; */ public Builder setBuilderId( java.lang.String value) { @@ -7188,7 +7445,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string builder_id = 1; + * required string builder_id = 1; */ public Builder clearBuilderId() { copyOnWrite(); @@ -7196,7 +7453,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string builder_id = 1; + * required string builder_id = 1; */ public Builder setBuilderIdBytes( com.google.protobuf.ByteString value) { @@ -7206,20 +7463,26 @@ public final class CmdlineRemoteProto { } /** - * string message_type = 2; + * required string message_type = 2; + */ + public boolean hasMessageType() { + return instance.hasMessageType(); + } + /** + * required string message_type = 2; */ public java.lang.String getMessageType() { return instance.getMessageType(); } /** - * string message_type = 2; + * required string message_type = 2; */ public com.google.protobuf.ByteString getMessageTypeBytes() { return instance.getMessageTypeBytes(); } /** - * string message_type = 2; + * required string message_type = 2; */ public Builder setMessageType( java.lang.String value) { @@ -7228,7 +7491,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string message_type = 2; + * required string message_type = 2; */ public Builder clearMessageType() { copyOnWrite(); @@ -7236,7 +7499,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string message_type = 2; + * required string message_type = 2; */ public Builder setMessageTypeBytes( com.google.protobuf.ByteString value) { @@ -7246,20 +7509,26 @@ public final class CmdlineRemoteProto { } /** - * string message_text = 3; + * required string message_text = 3; + */ + public boolean hasMessageText() { + return instance.hasMessageText(); + } + /** + * required string message_text = 3; */ public java.lang.String getMessageText() { return instance.getMessageText(); } /** - * string message_text = 3; + * required string message_text = 3; */ public com.google.protobuf.ByteString getMessageTextBytes() { return instance.getMessageTextBytes(); } /** - * string message_text = 3; + * required string message_text = 3; */ public Builder setMessageText( java.lang.String value) { @@ -7268,7 +7537,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string message_text = 3; + * required string message_text = 3; */ public Builder clearMessageText() { copyOnWrite(); @@ -7276,7 +7545,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string message_text = 3; + * required string message_text = 3; */ public Builder setMessageTextBytes( com.google.protobuf.ByteString value) { @@ -7287,16 +7556,41 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(builder_scope:org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage) } - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( + private byte memoizedIsInitialized = -1; + protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { + Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.CustomBuilderMessage(); } case IS_INITIALIZED: { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return DEFAULT_INSTANCE; + if (isInitialized == 0) return null; + + boolean shouldMemoize = ((Boolean) arg0).booleanValue(); + if (!hasBuilderId()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (!hasMessageType()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (!hasMessageText()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (shouldMemoize) memoizedIsInitialized = 1; return DEFAULT_INSTANCE; + } case MAKE_IMMUTABLE: { return null; @@ -7307,14 +7601,18 @@ public final class CmdlineRemoteProto { case VISIT: { Visitor visitor = (Visitor) arg0; org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.CustomBuilderMessage other = (org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.CustomBuilderMessage) arg1; - builderId_ = visitor.visitString(!builderId_.isEmpty(), builderId_, - !other.builderId_.isEmpty(), other.builderId_); - messageType_ = visitor.visitString(!messageType_.isEmpty(), messageType_, - !other.messageType_.isEmpty(), other.messageType_); - messageText_ = visitor.visitString(!messageText_.isEmpty(), messageText_, - !other.messageText_.isEmpty(), other.messageText_); + builderId_ = visitor.visitString( + hasBuilderId(), builderId_, + other.hasBuilderId(), other.builderId_); + messageType_ = visitor.visitString( + hasMessageType(), messageType_, + other.hasMessageType(), other.messageType_); + messageText_ = visitor.visitString( + hasMessageText(), messageText_, + other.hasMessageText(), other.messageText_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { + bitField0_ |= other.bitField0_; } return this; } @@ -7323,9 +7621,6 @@ public final class CmdlineRemoteProto { (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } try { boolean done = false; while (!done) { @@ -7341,20 +7636,20 @@ public final class CmdlineRemoteProto { break; } case 10: { - java.lang.String s = input.readStringRequireUtf8(); - + String s = input.readString(); + bitField0_ |= 0x00000001; builderId_ = s; break; } case 18: { - java.lang.String s = input.readStringRequireUtf8(); - + String s = input.readString(); + bitField0_ |= 0x00000002; messageType_ = s; break; } case 26: { - java.lang.String s = input.readStringRequireUtf8(); - + String s = input.readString(); + bitField0_ |= 0x00000004; messageText_ = s; break; } @@ -7369,7 +7664,6 @@ public final class CmdlineRemoteProto { } finally { } } - // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } @@ -7381,13 +7675,7 @@ public final class CmdlineRemoteProto { } } return PARSER; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } + } } throw new UnsupportedOperationException(); } @@ -7415,125 +7703,118 @@ public final class CmdlineRemoteProto { public static final int EVENT_TYPE_FIELD_NUMBER = 1; private int eventType_; /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Type event_type = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Type event_type = 1; */ - public int getEventTypeValue() { - return eventType_; + public boolean hasEventType() { + return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Type event_type = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Type event_type = 1; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Type getEventType() { org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Type result = org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Type.forNumber(eventType_); - return result == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Type.UNRECOGNIZED : result; + return result == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Type.BUILD_COMPLETED : result; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Type event_type = 1; - */ - private void setEventTypeValue(int value) { - eventType_ = value; - } - /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Type event_type = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Type event_type = 1; */ private void setEventType(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Type value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; eventType_ = value.getNumber(); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Type event_type = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Type event_type = 1; */ private void clearEventType() { - - eventType_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + eventType_ = 1; } public static final int DESCRIPTION_FIELD_NUMBER = 2; private java.lang.String description_; /** - * string description = 2; + * optional string description = 2; + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string description = 2; */ public java.lang.String getDescription() { return description_; } /** - * string description = 2; + * optional string description = 2; */ public com.google.protobuf.ByteString getDescriptionBytes() { return com.google.protobuf.ByteString.copyFromUtf8(description_); } /** - * string description = 2; + * optional string description = 2; */ private void setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; description_ = value; } /** - * string description = 2; + * optional string description = 2; */ private void clearDescription() { - + bitField0_ = (bitField0_ & ~0x00000002); description_ = getDefaultInstance().getDescription(); } /** - * string description = 2; + * optional string description = 2; */ private void setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - + bitField0_ |= 0x00000002; description_ = value.toStringUtf8(); } public static final int COMPLETION_STATUS_FIELD_NUMBER = 3; private int completionStatus_; /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Status completion_status = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Status completion_status = 3; */ - public int getCompletionStatusValue() { - return completionStatus_; + public boolean hasCompletionStatus() { + return ((bitField0_ & 0x00000004) == 0x00000004); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Status completion_status = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Status completion_status = 3; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Status getCompletionStatus() { org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Status result = org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Status.forNumber(completionStatus_); - return result == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Status.UNRECOGNIZED : result; + return result == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Status.CANCELED : result; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Status completion_status = 3; - */ - private void setCompletionStatusValue(int value) { - completionStatus_ = value; - } - /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Status completion_status = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Status completion_status = 3; */ private void setCompletionStatus(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Status value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; completionStatus_ = value.getNumber(); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Status completion_status = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Status completion_status = 3; */ private void clearCompletionStatus() { - - completionStatus_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + completionStatus_ = 1; } public static final int GENERATED_FILES_FIELD_NUMBER = 4; @@ -7659,37 +7940,37 @@ public final class CmdlineRemoteProto { public static final int CUSTOM_BUILDER_MESSAGE_FIELD_NUMBER = 5; private org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.CustomBuilderMessage customBuilderMessage_; /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; */ public boolean hasCustomBuilderMessage() { - return customBuilderMessage_ != null; + return ((bitField0_ & 0x00000008) == 0x00000008); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.CustomBuilderMessage getCustomBuilderMessage() { return customBuilderMessage_ == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.CustomBuilderMessage.getDefaultInstance() : customBuilderMessage_; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; */ private void setCustomBuilderMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.CustomBuilderMessage value) { if (value == null) { throw new NullPointerException(); } customBuilderMessage_ = value; - + bitField0_ |= 0x00000008; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; */ private void setCustomBuilderMessage( org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.CustomBuilderMessage.Builder builderForValue) { customBuilderMessage_ = builderForValue.build(); - + bitField0_ |= 0x00000008; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; */ private void mergeCustomBuilderMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.CustomBuilderMessage value) { if (customBuilderMessage_ != null && @@ -7699,30 +7980,30 @@ public final class CmdlineRemoteProto { } else { customBuilderMessage_ = value; } - + bitField0_ |= 0x00000008; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; */ private void clearCustomBuilderMessage() { customBuilderMessage_ = null; - + bitField0_ = (bitField0_ & ~0x00000008); } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (eventType_ != org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Type.BUILD_COMPLETED.getNumber()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, eventType_); } - if (!description_.isEmpty()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeString(2, getDescription()); } - if (completionStatus_ != org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Status.CANCELED.getNumber()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(3, completionStatus_); } for (int i = 0; i < generatedFiles_.size(); i++) { output.writeMessage(4, generatedFiles_.get(i)); } - if (customBuilderMessage_ != null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(5, getCustomBuilderMessage()); } unknownFields.writeTo(output); @@ -7733,15 +8014,15 @@ public final class CmdlineRemoteProto { if (size != -1) return size; size = 0; - if (eventType_ != org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Type.BUILD_COMPLETED.getNumber()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, eventType_); } - if (!description_.isEmpty()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeStringSize(2, getDescription()); } - if (completionStatus_ != org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Status.CANCELED.getNumber()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, completionStatus_); } @@ -7749,7 +8030,7 @@ public final class CmdlineRemoteProto { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, generatedFiles_.get(i)); } - if (customBuilderMessage_ != null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getCustomBuilderMessage()); } @@ -7758,19 +8039,6 @@ public final class CmdlineRemoteProto { return size; } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -7833,10 +8101,10 @@ public final class CmdlineRemoteProto { } public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** @@ -7854,27 +8122,19 @@ public final class CmdlineRemoteProto { /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Type event_type = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Type event_type = 1; */ - public int getEventTypeValue() { - return instance.getEventTypeValue(); + public boolean hasEventType() { + return instance.hasEventType(); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Type event_type = 1; - */ - public Builder setEventTypeValue(int value) { - copyOnWrite(); - instance.setEventTypeValue(value); - return this; - } - /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Type event_type = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Type event_type = 1; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Type getEventType() { return instance.getEventType(); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Type event_type = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Type event_type = 1; */ public Builder setEventType(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Type value) { copyOnWrite(); @@ -7882,7 +8142,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Type event_type = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Type event_type = 1; */ public Builder clearEventType() { copyOnWrite(); @@ -7891,20 +8151,26 @@ public final class CmdlineRemoteProto { } /** - * string description = 2; + * optional string description = 2; + */ + public boolean hasDescription() { + return instance.hasDescription(); + } + /** + * optional string description = 2; */ public java.lang.String getDescription() { return instance.getDescription(); } /** - * string description = 2; + * optional string description = 2; */ public com.google.protobuf.ByteString getDescriptionBytes() { return instance.getDescriptionBytes(); } /** - * string description = 2; + * optional string description = 2; */ public Builder setDescription( java.lang.String value) { @@ -7913,7 +8179,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string description = 2; + * optional string description = 2; */ public Builder clearDescription() { copyOnWrite(); @@ -7921,7 +8187,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string description = 2; + * optional string description = 2; */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { @@ -7931,27 +8197,19 @@ public final class CmdlineRemoteProto { } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Status completion_status = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Status completion_status = 3; */ - public int getCompletionStatusValue() { - return instance.getCompletionStatusValue(); + public boolean hasCompletionStatus() { + return instance.hasCompletionStatus(); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Status completion_status = 3; - */ - public Builder setCompletionStatusValue(int value) { - copyOnWrite(); - instance.setCompletionStatusValue(value); - return this; - } - /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Status completion_status = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Status completion_status = 3; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Status getCompletionStatus() { return instance.getCompletionStatus(); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Status completion_status = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Status completion_status = 3; */ public Builder setCompletionStatus(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Status value) { copyOnWrite(); @@ -7959,7 +8217,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Status completion_status = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.Status completion_status = 3; */ public Builder clearCompletionStatus() { copyOnWrite(); @@ -8065,19 +8323,19 @@ public final class CmdlineRemoteProto { } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; */ public boolean hasCustomBuilderMessage() { return instance.hasCustomBuilderMessage(); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.CustomBuilderMessage getCustomBuilderMessage() { return instance.getCustomBuilderMessage(); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; */ public Builder setCustomBuilderMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.CustomBuilderMessage value) { copyOnWrite(); @@ -8085,7 +8343,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; */ public Builder setCustomBuilderMessage( org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.CustomBuilderMessage.Builder builderForValue) { @@ -8094,7 +8352,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; */ public Builder mergeCustomBuilderMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.CustomBuilderMessage value) { copyOnWrite(); @@ -8102,7 +8360,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent.CustomBuilderMessage custom_builder_message = 5; */ public Builder clearCustomBuilderMessage() { copyOnWrite(); instance.clearCustomBuilderMessage(); @@ -8111,16 +8369,45 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(builder_scope:org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent) } - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( + private byte memoizedIsInitialized = -1; + protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { + Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent(); } case IS_INITIALIZED: { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return DEFAULT_INSTANCE; + if (isInitialized == 0) return null; + + boolean shouldMemoize = ((Boolean) arg0).booleanValue(); + if (!hasEventType()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + for (int i = 0; i < getGeneratedFilesCount(); i++) { + if (!getGeneratedFiles(i).isInitialized()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + } + if (hasCustomBuilderMessage()) { + if (!getCustomBuilderMessage().isInitialized()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + } + if (shouldMemoize) memoizedIsInitialized = 1; return DEFAULT_INSTANCE; + } case MAKE_IMMUTABLE: { generatedFiles_.makeImmutable(); @@ -8132,10 +8419,13 @@ public final class CmdlineRemoteProto { case VISIT: { Visitor visitor = (Visitor) arg0; org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent other = (org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent) arg1; - eventType_ = visitor.visitInt(eventType_ != 0, eventType_, other.eventType_ != 0, other.eventType_); - description_ = visitor.visitString(!description_.isEmpty(), description_, - !other.description_.isEmpty(), other.description_); - completionStatus_ = visitor.visitInt(completionStatus_ != 0, completionStatus_, other.completionStatus_ != 0, other.completionStatus_); + eventType_ = visitor.visitInt(hasEventType(), eventType_, + other.hasEventType(), other.eventType_); + description_ = visitor.visitString( + hasDescription(), description_, + other.hasDescription(), other.description_); + completionStatus_ = visitor.visitInt(hasCompletionStatus(), completionStatus_, + other.hasCompletionStatus(), other.completionStatus_); generatedFiles_= visitor.visitList(generatedFiles_, other.generatedFiles_); customBuilderMessage_ = visitor.visitMessage(customBuilderMessage_, other.customBuilderMessage_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor @@ -8149,9 +8439,6 @@ public final class CmdlineRemoteProto { (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } try { boolean done = false; while (!done) { @@ -8168,20 +8455,30 @@ public final class CmdlineRemoteProto { } case 8: { int rawValue = input.readEnum(); - - eventType_ = rawValue; + org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Type value = org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Type.forNumber(rawValue); + if (value == null) { + super.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + eventType_ = rawValue; + } break; } case 18: { - java.lang.String s = input.readStringRequireUtf8(); - + String s = input.readString(); + bitField0_ |= 0x00000002; description_ = s; break; } case 24: { int rawValue = input.readEnum(); - - completionStatus_ = rawValue; + org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Status value = org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Status.forNumber(rawValue); + if (value == null) { + super.mergeVarintField(3, rawValue); + } else { + bitField0_ |= 0x00000004; + completionStatus_ = rawValue; + } break; } case 34: { @@ -8195,7 +8492,7 @@ public final class CmdlineRemoteProto { } case 42: { org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.CustomBuilderMessage.Builder subBuilder = null; - if (customBuilderMessage_ != null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = customBuilderMessage_.toBuilder(); } customBuilderMessage_ = input.readMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.CustomBuilderMessage.parser(), extensionRegistry); @@ -8203,7 +8500,7 @@ public final class CmdlineRemoteProto { subBuilder.mergeFrom(customBuilderMessage_); customBuilderMessage_ = subBuilder.buildPartial(); } - + bitField0_ |= 0x00000008; break; } } @@ -8217,7 +8514,6 @@ public final class CmdlineRemoteProto { } finally { } } - // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } @@ -8229,13 +8525,7 @@ public final class CmdlineRemoteProto { } } return PARSER; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } + } } throw new UnsupportedOperationException(); } @@ -8264,61 +8554,93 @@ public final class CmdlineRemoteProto { com.google.protobuf.MessageLiteOrBuilder { /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind kind = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind kind = 1; */ - int getKindValue(); + boolean hasKind(); /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind kind = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind kind = 1; */ org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Kind getKind(); /** - * string text = 2; + * optional string text = 2; + */ + boolean hasText(); + /** + * optional string text = 2; */ java.lang.String getText(); /** - * string text = 2; + * optional string text = 2; */ com.google.protobuf.ByteString getTextBytes(); /** - * string source_file_path = 3; + * optional string source_file_path = 3; + */ + boolean hasSourceFilePath(); + /** + * optional string source_file_path = 3; */ java.lang.String getSourceFilePath(); /** - * string source_file_path = 3; + * optional string source_file_path = 3; */ com.google.protobuf.ByteString getSourceFilePathBytes(); /** - * uint64 problem_begin_offset = 4; + * optional uint64 problem_begin_offset = 4; + */ + boolean hasProblemBeginOffset(); + /** + * optional uint64 problem_begin_offset = 4; */ long getProblemBeginOffset(); /** - * uint64 problem_end_offset = 5; + * optional uint64 problem_end_offset = 5; + */ + boolean hasProblemEndOffset(); + /** + * optional uint64 problem_end_offset = 5; */ long getProblemEndOffset(); /** - * uint64 problem_location_offset = 6; + * optional uint64 problem_location_offset = 6; + */ + boolean hasProblemLocationOffset(); + /** + * optional uint64 problem_location_offset = 6; */ long getProblemLocationOffset(); /** - * uint64 line = 7; + * optional uint64 line = 7; + */ + boolean hasLine(); + /** + * optional uint64 line = 7; */ long getLine(); /** - * uint64 column = 8; + * optional uint64 column = 8; + */ + boolean hasColumn(); + /** + * optional uint64 column = 8; */ long getColumn(); /** - * float done = 9; + * optional float done = 9; + */ + boolean hasDone(); + /** + * optional float done = 9; */ float getDone(); } @@ -8331,6 +8653,7 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(message_implements:org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage) CompileMessageOrBuilder { private CompileMessage() { + kind_ = 1; text_ = ""; sourceFilePath_ = ""; } @@ -8340,63 +8663,58 @@ public final class CmdlineRemoteProto { public enum Kind implements com.google.protobuf.Internal.EnumLite { /** - * ERROR = 0; + * ERROR = 1; */ - ERROR(0), + ERROR(1), /** - * WARNING = 1; + * WARNING = 2; */ - WARNING(1), + WARNING(2), /** - * INFO = 2; + * INFO = 3; */ - INFO(2), + INFO(3), /** - * PROGRESS = 3; + * PROGRESS = 4; */ - PROGRESS(3), + PROGRESS(4), /** - * JPS_INFO = 4; + * JPS_INFO = 5; */ - JPS_INFO(4), + JPS_INFO(5), /** - * OTHER = 5; + * OTHER = 6; */ - OTHER(5), - UNRECOGNIZED(-1), + OTHER(6), ; /** - * ERROR = 0; + * ERROR = 1; */ - public static final int ERROR_VALUE = 0; + public static final int ERROR_VALUE = 1; /** - * WARNING = 1; + * WARNING = 2; */ - public static final int WARNING_VALUE = 1; + public static final int WARNING_VALUE = 2; /** - * INFO = 2; + * INFO = 3; */ - public static final int INFO_VALUE = 2; + public static final int INFO_VALUE = 3; /** - * PROGRESS = 3; + * PROGRESS = 4; */ - public static final int PROGRESS_VALUE = 3; + public static final int PROGRESS_VALUE = 4; /** - * JPS_INFO = 4; + * JPS_INFO = 5; */ - public static final int JPS_INFO_VALUE = 4; + public static final int JPS_INFO_VALUE = 5; /** - * OTHER = 5; + * OTHER = 6; */ - public static final int OTHER_VALUE = 5; + public static final int OTHER_VALUE = 6; public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } return value; } @@ -8410,12 +8728,12 @@ public final class CmdlineRemoteProto { public static Kind forNumber(int value) { switch (value) { - case 0: return ERROR; - case 1: return WARNING; - case 2: return INFO; - case 3: return PROGRESS; - case 4: return JPS_INFO; - case 5: return OTHER; + case 1: return ERROR; + case 2: return WARNING; + case 3: return INFO; + case 4: return PROGRESS; + case 5: return JPS_INFO; + case 6: return OTHER; default: return null; } } @@ -8441,302 +8759,343 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(enum_scope:org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind) } + private int bitField0_; public static final int KIND_FIELD_NUMBER = 1; private int kind_; /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind kind = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind kind = 1; */ - public int getKindValue() { - return kind_; + public boolean hasKind() { + return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind kind = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind kind = 1; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Kind getKind() { org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Kind result = org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Kind.forNumber(kind_); - return result == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Kind.UNRECOGNIZED : result; + return result == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Kind.ERROR : result; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind kind = 1; - */ - private void setKindValue(int value) { - kind_ = value; - } - /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind kind = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind kind = 1; */ private void setKind(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Kind value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; kind_ = value.getNumber(); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind kind = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind kind = 1; */ private void clearKind() { - - kind_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + kind_ = 1; } public static final int TEXT_FIELD_NUMBER = 2; private java.lang.String text_; /** - * string text = 2; + * optional string text = 2; + */ + public boolean hasText() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string text = 2; */ public java.lang.String getText() { return text_; } /** - * string text = 2; + * optional string text = 2; */ public com.google.protobuf.ByteString getTextBytes() { return com.google.protobuf.ByteString.copyFromUtf8(text_); } /** - * string text = 2; + * optional string text = 2; */ private void setText( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; text_ = value; } /** - * string text = 2; + * optional string text = 2; */ private void clearText() { - + bitField0_ = (bitField0_ & ~0x00000002); text_ = getDefaultInstance().getText(); } /** - * string text = 2; + * optional string text = 2; */ private void setTextBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - + bitField0_ |= 0x00000002; text_ = value.toStringUtf8(); } public static final int SOURCE_FILE_PATH_FIELD_NUMBER = 3; private java.lang.String sourceFilePath_; /** - * string source_file_path = 3; + * optional string source_file_path = 3; + */ + public boolean hasSourceFilePath() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string source_file_path = 3; */ public java.lang.String getSourceFilePath() { return sourceFilePath_; } /** - * string source_file_path = 3; + * optional string source_file_path = 3; */ public com.google.protobuf.ByteString getSourceFilePathBytes() { return com.google.protobuf.ByteString.copyFromUtf8(sourceFilePath_); } /** - * string source_file_path = 3; + * optional string source_file_path = 3; */ private void setSourceFilePath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; sourceFilePath_ = value; } /** - * string source_file_path = 3; + * optional string source_file_path = 3; */ private void clearSourceFilePath() { - + bitField0_ = (bitField0_ & ~0x00000004); sourceFilePath_ = getDefaultInstance().getSourceFilePath(); } /** - * string source_file_path = 3; + * optional string source_file_path = 3; */ private void setSourceFilePathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - + bitField0_ |= 0x00000004; sourceFilePath_ = value.toStringUtf8(); } public static final int PROBLEM_BEGIN_OFFSET_FIELD_NUMBER = 4; private long problemBeginOffset_; /** - * uint64 problem_begin_offset = 4; + * optional uint64 problem_begin_offset = 4; + */ + public boolean hasProblemBeginOffset() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional uint64 problem_begin_offset = 4; */ public long getProblemBeginOffset() { return problemBeginOffset_; } /** - * uint64 problem_begin_offset = 4; + * optional uint64 problem_begin_offset = 4; */ private void setProblemBeginOffset(long value) { - + bitField0_ |= 0x00000008; problemBeginOffset_ = value; } /** - * uint64 problem_begin_offset = 4; + * optional uint64 problem_begin_offset = 4; */ private void clearProblemBeginOffset() { - + bitField0_ = (bitField0_ & ~0x00000008); problemBeginOffset_ = 0L; } public static final int PROBLEM_END_OFFSET_FIELD_NUMBER = 5; private long problemEndOffset_; /** - * uint64 problem_end_offset = 5; + * optional uint64 problem_end_offset = 5; + */ + public boolean hasProblemEndOffset() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional uint64 problem_end_offset = 5; */ public long getProblemEndOffset() { return problemEndOffset_; } /** - * uint64 problem_end_offset = 5; + * optional uint64 problem_end_offset = 5; */ private void setProblemEndOffset(long value) { - + bitField0_ |= 0x00000010; problemEndOffset_ = value; } /** - * uint64 problem_end_offset = 5; + * optional uint64 problem_end_offset = 5; */ private void clearProblemEndOffset() { - + bitField0_ = (bitField0_ & ~0x00000010); problemEndOffset_ = 0L; } public static final int PROBLEM_LOCATION_OFFSET_FIELD_NUMBER = 6; private long problemLocationOffset_; /** - * uint64 problem_location_offset = 6; + * optional uint64 problem_location_offset = 6; + */ + public boolean hasProblemLocationOffset() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional uint64 problem_location_offset = 6; */ public long getProblemLocationOffset() { return problemLocationOffset_; } /** - * uint64 problem_location_offset = 6; + * optional uint64 problem_location_offset = 6; */ private void setProblemLocationOffset(long value) { - + bitField0_ |= 0x00000020; problemLocationOffset_ = value; } /** - * uint64 problem_location_offset = 6; + * optional uint64 problem_location_offset = 6; */ private void clearProblemLocationOffset() { - + bitField0_ = (bitField0_ & ~0x00000020); problemLocationOffset_ = 0L; } public static final int LINE_FIELD_NUMBER = 7; private long line_; /** - * uint64 line = 7; + * optional uint64 line = 7; + */ + public boolean hasLine() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional uint64 line = 7; */ public long getLine() { return line_; } /** - * uint64 line = 7; + * optional uint64 line = 7; */ private void setLine(long value) { - + bitField0_ |= 0x00000040; line_ = value; } /** - * uint64 line = 7; + * optional uint64 line = 7; */ private void clearLine() { - + bitField0_ = (bitField0_ & ~0x00000040); line_ = 0L; } public static final int COLUMN_FIELD_NUMBER = 8; private long column_; /** - * uint64 column = 8; + * optional uint64 column = 8; + */ + public boolean hasColumn() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional uint64 column = 8; */ public long getColumn() { return column_; } /** - * uint64 column = 8; + * optional uint64 column = 8; */ private void setColumn(long value) { - + bitField0_ |= 0x00000080; column_ = value; } /** - * uint64 column = 8; + * optional uint64 column = 8; */ private void clearColumn() { - + bitField0_ = (bitField0_ & ~0x00000080); column_ = 0L; } public static final int DONE_FIELD_NUMBER = 9; private float done_; /** - * float done = 9; + * optional float done = 9; + */ + public boolean hasDone() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * optional float done = 9; */ public float getDone() { return done_; } /** - * float done = 9; + * optional float done = 9; */ private void setDone(float value) { - + bitField0_ |= 0x00000100; done_ = value; } /** - * float done = 9; + * optional float done = 9; */ private void clearDone() { - + bitField0_ = (bitField0_ & ~0x00000100); done_ = 0F; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (kind_ != org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Kind.ERROR.getNumber()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, kind_); } - if (!text_.isEmpty()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeString(2, getText()); } - if (!sourceFilePath_.isEmpty()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeString(3, getSourceFilePath()); } - if (problemBeginOffset_ != 0L) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt64(4, problemBeginOffset_); } - if (problemEndOffset_ != 0L) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt64(5, problemEndOffset_); } - if (problemLocationOffset_ != 0L) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeUInt64(6, problemLocationOffset_); } - if (line_ != 0L) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeUInt64(7, line_); } - if (column_ != 0L) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeUInt64(8, column_); } - if (done_ != 0F) { + if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeFloat(9, done_); } unknownFields.writeTo(output); @@ -8747,39 +9106,39 @@ public final class CmdlineRemoteProto { if (size != -1) return size; size = 0; - if (kind_ != org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Kind.ERROR.getNumber()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, kind_); } - if (!text_.isEmpty()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeStringSize(2, getText()); } - if (!sourceFilePath_.isEmpty()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeStringSize(3, getSourceFilePath()); } - if (problemBeginOffset_ != 0L) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, problemBeginOffset_); } - if (problemEndOffset_ != 0L) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, problemEndOffset_); } - if (problemLocationOffset_ != 0L) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, problemLocationOffset_); } - if (line_ != 0L) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, line_); } - if (column_ != 0L) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(8, column_); } - if (done_ != 0F) { + if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(9, done_); } @@ -8788,19 +9147,6 @@ public final class CmdlineRemoteProto { return size; } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -8863,10 +9209,10 @@ public final class CmdlineRemoteProto { } public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** @@ -8884,27 +9230,19 @@ public final class CmdlineRemoteProto { /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind kind = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind kind = 1; */ - public int getKindValue() { - return instance.getKindValue(); + public boolean hasKind() { + return instance.hasKind(); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind kind = 1; - */ - public Builder setKindValue(int value) { - copyOnWrite(); - instance.setKindValue(value); - return this; - } - /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind kind = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind kind = 1; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Kind getKind() { return instance.getKind(); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind kind = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind kind = 1; */ public Builder setKind(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Kind value) { copyOnWrite(); @@ -8912,7 +9250,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind kind = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage.Kind kind = 1; */ public Builder clearKind() { copyOnWrite(); @@ -8921,20 +9259,26 @@ public final class CmdlineRemoteProto { } /** - * string text = 2; + * optional string text = 2; + */ + public boolean hasText() { + return instance.hasText(); + } + /** + * optional string text = 2; */ public java.lang.String getText() { return instance.getText(); } /** - * string text = 2; + * optional string text = 2; */ public com.google.protobuf.ByteString getTextBytes() { return instance.getTextBytes(); } /** - * string text = 2; + * optional string text = 2; */ public Builder setText( java.lang.String value) { @@ -8943,7 +9287,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string text = 2; + * optional string text = 2; */ public Builder clearText() { copyOnWrite(); @@ -8951,7 +9295,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string text = 2; + * optional string text = 2; */ public Builder setTextBytes( com.google.protobuf.ByteString value) { @@ -8961,20 +9305,26 @@ public final class CmdlineRemoteProto { } /** - * string source_file_path = 3; + * optional string source_file_path = 3; + */ + public boolean hasSourceFilePath() { + return instance.hasSourceFilePath(); + } + /** + * optional string source_file_path = 3; */ public java.lang.String getSourceFilePath() { return instance.getSourceFilePath(); } /** - * string source_file_path = 3; + * optional string source_file_path = 3; */ public com.google.protobuf.ByteString getSourceFilePathBytes() { return instance.getSourceFilePathBytes(); } /** - * string source_file_path = 3; + * optional string source_file_path = 3; */ public Builder setSourceFilePath( java.lang.String value) { @@ -8983,7 +9333,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string source_file_path = 3; + * optional string source_file_path = 3; */ public Builder clearSourceFilePath() { copyOnWrite(); @@ -8991,7 +9341,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string source_file_path = 3; + * optional string source_file_path = 3; */ public Builder setSourceFilePathBytes( com.google.protobuf.ByteString value) { @@ -9001,13 +9351,19 @@ public final class CmdlineRemoteProto { } /** - * uint64 problem_begin_offset = 4; + * optional uint64 problem_begin_offset = 4; + */ + public boolean hasProblemBeginOffset() { + return instance.hasProblemBeginOffset(); + } + /** + * optional uint64 problem_begin_offset = 4; */ public long getProblemBeginOffset() { return instance.getProblemBeginOffset(); } /** - * uint64 problem_begin_offset = 4; + * optional uint64 problem_begin_offset = 4; */ public Builder setProblemBeginOffset(long value) { copyOnWrite(); @@ -9015,7 +9371,7 @@ public final class CmdlineRemoteProto { return this; } /** - * uint64 problem_begin_offset = 4; + * optional uint64 problem_begin_offset = 4; */ public Builder clearProblemBeginOffset() { copyOnWrite(); @@ -9024,13 +9380,19 @@ public final class CmdlineRemoteProto { } /** - * uint64 problem_end_offset = 5; + * optional uint64 problem_end_offset = 5; + */ + public boolean hasProblemEndOffset() { + return instance.hasProblemEndOffset(); + } + /** + * optional uint64 problem_end_offset = 5; */ public long getProblemEndOffset() { return instance.getProblemEndOffset(); } /** - * uint64 problem_end_offset = 5; + * optional uint64 problem_end_offset = 5; */ public Builder setProblemEndOffset(long value) { copyOnWrite(); @@ -9038,7 +9400,7 @@ public final class CmdlineRemoteProto { return this; } /** - * uint64 problem_end_offset = 5; + * optional uint64 problem_end_offset = 5; */ public Builder clearProblemEndOffset() { copyOnWrite(); @@ -9047,13 +9409,19 @@ public final class CmdlineRemoteProto { } /** - * uint64 problem_location_offset = 6; + * optional uint64 problem_location_offset = 6; + */ + public boolean hasProblemLocationOffset() { + return instance.hasProblemLocationOffset(); + } + /** + * optional uint64 problem_location_offset = 6; */ public long getProblemLocationOffset() { return instance.getProblemLocationOffset(); } /** - * uint64 problem_location_offset = 6; + * optional uint64 problem_location_offset = 6; */ public Builder setProblemLocationOffset(long value) { copyOnWrite(); @@ -9061,7 +9429,7 @@ public final class CmdlineRemoteProto { return this; } /** - * uint64 problem_location_offset = 6; + * optional uint64 problem_location_offset = 6; */ public Builder clearProblemLocationOffset() { copyOnWrite(); @@ -9070,13 +9438,19 @@ public final class CmdlineRemoteProto { } /** - * uint64 line = 7; + * optional uint64 line = 7; + */ + public boolean hasLine() { + return instance.hasLine(); + } + /** + * optional uint64 line = 7; */ public long getLine() { return instance.getLine(); } /** - * uint64 line = 7; + * optional uint64 line = 7; */ public Builder setLine(long value) { copyOnWrite(); @@ -9084,7 +9458,7 @@ public final class CmdlineRemoteProto { return this; } /** - * uint64 line = 7; + * optional uint64 line = 7; */ public Builder clearLine() { copyOnWrite(); @@ -9093,13 +9467,19 @@ public final class CmdlineRemoteProto { } /** - * uint64 column = 8; + * optional uint64 column = 8; + */ + public boolean hasColumn() { + return instance.hasColumn(); + } + /** + * optional uint64 column = 8; */ public long getColumn() { return instance.getColumn(); } /** - * uint64 column = 8; + * optional uint64 column = 8; */ public Builder setColumn(long value) { copyOnWrite(); @@ -9107,7 +9487,7 @@ public final class CmdlineRemoteProto { return this; } /** - * uint64 column = 8; + * optional uint64 column = 8; */ public Builder clearColumn() { copyOnWrite(); @@ -9116,13 +9496,19 @@ public final class CmdlineRemoteProto { } /** - * float done = 9; + * optional float done = 9; + */ + public boolean hasDone() { + return instance.hasDone(); + } + /** + * optional float done = 9; */ public float getDone() { return instance.getDone(); } /** - * float done = 9; + * optional float done = 9; */ public Builder setDone(float value) { copyOnWrite(); @@ -9130,7 +9516,7 @@ public final class CmdlineRemoteProto { return this; } /** - * float done = 9; + * optional float done = 9; */ public Builder clearDone() { copyOnWrite(); @@ -9140,16 +9526,29 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(builder_scope:org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage) } - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( + private byte memoizedIsInitialized = -1; + protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { + Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage(); } case IS_INITIALIZED: { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return DEFAULT_INSTANCE; + if (isInitialized == 0) return null; + + boolean shouldMemoize = ((Boolean) arg0).booleanValue(); + if (!hasKind()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (shouldMemoize) memoizedIsInitialized = 1; return DEFAULT_INSTANCE; + } case MAKE_IMMUTABLE: { return null; @@ -9160,25 +9559,35 @@ public final class CmdlineRemoteProto { case VISIT: { Visitor visitor = (Visitor) arg0; org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage other = (org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage) arg1; - kind_ = visitor.visitInt(kind_ != 0, kind_, other.kind_ != 0, other.kind_); - text_ = visitor.visitString(!text_.isEmpty(), text_, - !other.text_.isEmpty(), other.text_); - sourceFilePath_ = visitor.visitString(!sourceFilePath_.isEmpty(), sourceFilePath_, - !other.sourceFilePath_.isEmpty(), other.sourceFilePath_); - problemBeginOffset_ = visitor.visitLong(problemBeginOffset_ != 0L, problemBeginOffset_, - other.problemBeginOffset_ != 0L, other.problemBeginOffset_); - problemEndOffset_ = visitor.visitLong(problemEndOffset_ != 0L, problemEndOffset_, - other.problemEndOffset_ != 0L, other.problemEndOffset_); - problemLocationOffset_ = visitor.visitLong(problemLocationOffset_ != 0L, problemLocationOffset_, - other.problemLocationOffset_ != 0L, other.problemLocationOffset_); - line_ = visitor.visitLong(line_ != 0L, line_, - other.line_ != 0L, other.line_); - column_ = visitor.visitLong(column_ != 0L, column_, - other.column_ != 0L, other.column_); - done_ = visitor.visitFloat(done_ != 0F, done_, - other.done_ != 0F, other.done_); + kind_ = visitor.visitInt(hasKind(), kind_, + other.hasKind(), other.kind_); + text_ = visitor.visitString( + hasText(), text_, + other.hasText(), other.text_); + sourceFilePath_ = visitor.visitString( + hasSourceFilePath(), sourceFilePath_, + other.hasSourceFilePath(), other.sourceFilePath_); + problemBeginOffset_ = visitor.visitLong( + hasProblemBeginOffset(), problemBeginOffset_, + other.hasProblemBeginOffset(), other.problemBeginOffset_); + problemEndOffset_ = visitor.visitLong( + hasProblemEndOffset(), problemEndOffset_, + other.hasProblemEndOffset(), other.problemEndOffset_); + problemLocationOffset_ = visitor.visitLong( + hasProblemLocationOffset(), problemLocationOffset_, + other.hasProblemLocationOffset(), other.problemLocationOffset_); + line_ = visitor.visitLong( + hasLine(), line_, + other.hasLine(), other.line_); + column_ = visitor.visitLong( + hasColumn(), column_, + other.hasColumn(), other.column_); + done_ = visitor.visitFloat( + hasDone(), done_, + other.hasDone(), other.done_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { + bitField0_ |= other.bitField0_; } return this; } @@ -9187,9 +9596,6 @@ public final class CmdlineRemoteProto { (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } try { boolean done = false; while (!done) { @@ -9206,49 +9612,54 @@ public final class CmdlineRemoteProto { } case 8: { int rawValue = input.readEnum(); - - kind_ = rawValue; + org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Kind value = org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Kind.forNumber(rawValue); + if (value == null) { + super.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + kind_ = rawValue; + } break; } case 18: { - java.lang.String s = input.readStringRequireUtf8(); - + String s = input.readString(); + bitField0_ |= 0x00000002; text_ = s; break; } case 26: { - java.lang.String s = input.readStringRequireUtf8(); - + String s = input.readString(); + bitField0_ |= 0x00000004; sourceFilePath_ = s; break; } case 32: { - + bitField0_ |= 0x00000008; problemBeginOffset_ = input.readUInt64(); break; } case 40: { - + bitField0_ |= 0x00000010; problemEndOffset_ = input.readUInt64(); break; } case 48: { - + bitField0_ |= 0x00000020; problemLocationOffset_ = input.readUInt64(); break; } case 56: { - + bitField0_ |= 0x00000040; line_ = input.readUInt64(); break; } case 64: { - + bitField0_ |= 0x00000080; column_ = input.readUInt64(); break; } case 77: { - + bitField0_ |= 0x00000100; done_ = input.readFloat(); break; } @@ -9263,7 +9674,6 @@ public final class CmdlineRemoteProto { } finally { } } - // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } @@ -9275,13 +9685,7 @@ public final class CmdlineRemoteProto { } } return PARSER; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } + } } throw new UnsupportedOperationException(); } @@ -9310,37 +9714,57 @@ public final class CmdlineRemoteProto { com.google.protobuf.MessageLiteOrBuilder { /** - * string owner_class_name = 1; + * required string owner_class_name = 1; + */ + boolean hasOwnerClassName(); + /** + * required string owner_class_name = 1; */ java.lang.String getOwnerClassName(); /** - * string owner_class_name = 1; + * required string owner_class_name = 1; */ com.google.protobuf.ByteString getOwnerClassNameBytes(); /** - * string field_name = 2; + * required string field_name = 2; + */ + boolean hasFieldName(); + /** + * required string field_name = 2; */ java.lang.String getFieldName(); /** - * string field_name = 2; + * required string field_name = 2; */ com.google.protobuf.ByteString getFieldNameBytes(); /** - * int32 access_flags = 3; + * required int32 access_flags = 3; + */ + boolean hasAccessFlags(); + /** + * required int32 access_flags = 3; */ int getAccessFlags(); /** - * bool is_access_changed = 4; + * optional bool is_access_changed = 4 [default = false]; + */ + boolean hasIsAccessChanged(); + /** + * optional bool is_access_changed = 4 [default = false]; */ boolean getIsAccessChanged(); /** - * bool is_field_removed = 5; + * optional bool is_field_removed = 5 [default = false]; + */ + boolean hasIsFieldRemoved(); + /** + * optional bool is_field_removed = 5 [default = false]; */ boolean getIsFieldRemoved(); } @@ -9356,182 +9780,211 @@ public final class CmdlineRemoteProto { ownerClassName_ = ""; fieldName_ = ""; } + private int bitField0_; public static final int OWNER_CLASS_NAME_FIELD_NUMBER = 1; private java.lang.String ownerClassName_; /** - * string owner_class_name = 1; + * required string owner_class_name = 1; + */ + public boolean hasOwnerClassName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string owner_class_name = 1; */ public java.lang.String getOwnerClassName() { return ownerClassName_; } /** - * string owner_class_name = 1; + * required string owner_class_name = 1; */ public com.google.protobuf.ByteString getOwnerClassNameBytes() { return com.google.protobuf.ByteString.copyFromUtf8(ownerClassName_); } /** - * string owner_class_name = 1; + * required string owner_class_name = 1; */ private void setOwnerClassName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; ownerClassName_ = value; } /** - * string owner_class_name = 1; + * required string owner_class_name = 1; */ private void clearOwnerClassName() { - + bitField0_ = (bitField0_ & ~0x00000001); ownerClassName_ = getDefaultInstance().getOwnerClassName(); } /** - * string owner_class_name = 1; + * required string owner_class_name = 1; */ private void setOwnerClassNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - + bitField0_ |= 0x00000001; ownerClassName_ = value.toStringUtf8(); } public static final int FIELD_NAME_FIELD_NUMBER = 2; private java.lang.String fieldName_; /** - * string field_name = 2; + * required string field_name = 2; + */ + public boolean hasFieldName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required string field_name = 2; */ public java.lang.String getFieldName() { return fieldName_; } /** - * string field_name = 2; + * required string field_name = 2; */ public com.google.protobuf.ByteString getFieldNameBytes() { return com.google.protobuf.ByteString.copyFromUtf8(fieldName_); } /** - * string field_name = 2; + * required string field_name = 2; */ private void setFieldName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; fieldName_ = value; } /** - * string field_name = 2; + * required string field_name = 2; */ private void clearFieldName() { - + bitField0_ = (bitField0_ & ~0x00000002); fieldName_ = getDefaultInstance().getFieldName(); } /** - * string field_name = 2; + * required string field_name = 2; */ private void setFieldNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - + bitField0_ |= 0x00000002; fieldName_ = value.toStringUtf8(); } public static final int ACCESS_FLAGS_FIELD_NUMBER = 3; private int accessFlags_; /** - * int32 access_flags = 3; + * required int32 access_flags = 3; + */ + public boolean hasAccessFlags() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * required int32 access_flags = 3; */ public int getAccessFlags() { return accessFlags_; } /** - * int32 access_flags = 3; + * required int32 access_flags = 3; */ private void setAccessFlags(int value) { - + bitField0_ |= 0x00000004; accessFlags_ = value; } /** - * int32 access_flags = 3; + * required int32 access_flags = 3; */ private void clearAccessFlags() { - + bitField0_ = (bitField0_ & ~0x00000004); accessFlags_ = 0; } public static final int IS_ACCESS_CHANGED_FIELD_NUMBER = 4; private boolean isAccessChanged_; /** - * bool is_access_changed = 4; + * optional bool is_access_changed = 4 [default = false]; + */ + public boolean hasIsAccessChanged() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional bool is_access_changed = 4 [default = false]; */ public boolean getIsAccessChanged() { return isAccessChanged_; } /** - * bool is_access_changed = 4; + * optional bool is_access_changed = 4 [default = false]; */ private void setIsAccessChanged(boolean value) { - + bitField0_ |= 0x00000008; isAccessChanged_ = value; } /** - * bool is_access_changed = 4; + * optional bool is_access_changed = 4 [default = false]; */ private void clearIsAccessChanged() { - + bitField0_ = (bitField0_ & ~0x00000008); isAccessChanged_ = false; } public static final int IS_FIELD_REMOVED_FIELD_NUMBER = 5; private boolean isFieldRemoved_; /** - * bool is_field_removed = 5; + * optional bool is_field_removed = 5 [default = false]; + */ + public boolean hasIsFieldRemoved() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional bool is_field_removed = 5 [default = false]; */ public boolean getIsFieldRemoved() { return isFieldRemoved_; } /** - * bool is_field_removed = 5; + * optional bool is_field_removed = 5 [default = false]; */ private void setIsFieldRemoved(boolean value) { - + bitField0_ |= 0x00000010; isFieldRemoved_ = value; } /** - * bool is_field_removed = 5; + * optional bool is_field_removed = 5 [default = false]; */ private void clearIsFieldRemoved() { - + bitField0_ = (bitField0_ & ~0x00000010); isFieldRemoved_ = false; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!ownerClassName_.isEmpty()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeString(1, getOwnerClassName()); } - if (!fieldName_.isEmpty()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeString(2, getFieldName()); } - if (accessFlags_ != 0) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, accessFlags_); } - if (isAccessChanged_ != false) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, isAccessChanged_); } - if (isFieldRemoved_ != false) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(5, isFieldRemoved_); } unknownFields.writeTo(output); @@ -9542,23 +9995,23 @@ public final class CmdlineRemoteProto { if (size != -1) return size; size = 0; - if (!ownerClassName_.isEmpty()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeStringSize(1, getOwnerClassName()); } - if (!fieldName_.isEmpty()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeStringSize(2, getFieldName()); } - if (accessFlags_ != 0) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, accessFlags_); } - if (isAccessChanged_ != false) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, isAccessChanged_); } - if (isFieldRemoved_ != false) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, isFieldRemoved_); } @@ -9567,19 +10020,6 @@ public final class CmdlineRemoteProto { return size; } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -9642,10 +10082,10 @@ public final class CmdlineRemoteProto { } public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** @@ -9663,20 +10103,26 @@ public final class CmdlineRemoteProto { /** - * string owner_class_name = 1; + * required string owner_class_name = 1; + */ + public boolean hasOwnerClassName() { + return instance.hasOwnerClassName(); + } + /** + * required string owner_class_name = 1; */ public java.lang.String getOwnerClassName() { return instance.getOwnerClassName(); } /** - * string owner_class_name = 1; + * required string owner_class_name = 1; */ public com.google.protobuf.ByteString getOwnerClassNameBytes() { return instance.getOwnerClassNameBytes(); } /** - * string owner_class_name = 1; + * required string owner_class_name = 1; */ public Builder setOwnerClassName( java.lang.String value) { @@ -9685,7 +10131,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string owner_class_name = 1; + * required string owner_class_name = 1; */ public Builder clearOwnerClassName() { copyOnWrite(); @@ -9693,7 +10139,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string owner_class_name = 1; + * required string owner_class_name = 1; */ public Builder setOwnerClassNameBytes( com.google.protobuf.ByteString value) { @@ -9703,20 +10149,26 @@ public final class CmdlineRemoteProto { } /** - * string field_name = 2; + * required string field_name = 2; + */ + public boolean hasFieldName() { + return instance.hasFieldName(); + } + /** + * required string field_name = 2; */ public java.lang.String getFieldName() { return instance.getFieldName(); } /** - * string field_name = 2; + * required string field_name = 2; */ public com.google.protobuf.ByteString getFieldNameBytes() { return instance.getFieldNameBytes(); } /** - * string field_name = 2; + * required string field_name = 2; */ public Builder setFieldName( java.lang.String value) { @@ -9725,7 +10177,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string field_name = 2; + * required string field_name = 2; */ public Builder clearFieldName() { copyOnWrite(); @@ -9733,7 +10185,7 @@ public final class CmdlineRemoteProto { return this; } /** - * string field_name = 2; + * required string field_name = 2; */ public Builder setFieldNameBytes( com.google.protobuf.ByteString value) { @@ -9743,13 +10195,19 @@ public final class CmdlineRemoteProto { } /** - * int32 access_flags = 3; + * required int32 access_flags = 3; + */ + public boolean hasAccessFlags() { + return instance.hasAccessFlags(); + } + /** + * required int32 access_flags = 3; */ public int getAccessFlags() { return instance.getAccessFlags(); } /** - * int32 access_flags = 3; + * required int32 access_flags = 3; */ public Builder setAccessFlags(int value) { copyOnWrite(); @@ -9757,7 +10215,7 @@ public final class CmdlineRemoteProto { return this; } /** - * int32 access_flags = 3; + * required int32 access_flags = 3; */ public Builder clearAccessFlags() { copyOnWrite(); @@ -9766,13 +10224,19 @@ public final class CmdlineRemoteProto { } /** - * bool is_access_changed = 4; + * optional bool is_access_changed = 4 [default = false]; + */ + public boolean hasIsAccessChanged() { + return instance.hasIsAccessChanged(); + } + /** + * optional bool is_access_changed = 4 [default = false]; */ public boolean getIsAccessChanged() { return instance.getIsAccessChanged(); } /** - * bool is_access_changed = 4; + * optional bool is_access_changed = 4 [default = false]; */ public Builder setIsAccessChanged(boolean value) { copyOnWrite(); @@ -9780,7 +10244,7 @@ public final class CmdlineRemoteProto { return this; } /** - * bool is_access_changed = 4; + * optional bool is_access_changed = 4 [default = false]; */ public Builder clearIsAccessChanged() { copyOnWrite(); @@ -9789,13 +10253,19 @@ public final class CmdlineRemoteProto { } /** - * bool is_field_removed = 5; + * optional bool is_field_removed = 5 [default = false]; + */ + public boolean hasIsFieldRemoved() { + return instance.hasIsFieldRemoved(); + } + /** + * optional bool is_field_removed = 5 [default = false]; */ public boolean getIsFieldRemoved() { return instance.getIsFieldRemoved(); } /** - * bool is_field_removed = 5; + * optional bool is_field_removed = 5 [default = false]; */ public Builder setIsFieldRemoved(boolean value) { copyOnWrite(); @@ -9803,7 +10273,7 @@ public final class CmdlineRemoteProto { return this; } /** - * bool is_field_removed = 5; + * optional bool is_field_removed = 5 [default = false]; */ public Builder clearIsFieldRemoved() { copyOnWrite(); @@ -9813,16 +10283,41 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(builder_scope:org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask) } - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( + private byte memoizedIsInitialized = -1; + protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { + Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask(); } case IS_INITIALIZED: { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return DEFAULT_INSTANCE; + if (isInitialized == 0) return null; + + boolean shouldMemoize = ((Boolean) arg0).booleanValue(); + if (!hasOwnerClassName()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (!hasFieldName()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (!hasAccessFlags()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (shouldMemoize) memoizedIsInitialized = 1; return DEFAULT_INSTANCE; + } case MAKE_IMMUTABLE: { return null; @@ -9833,18 +10328,24 @@ public final class CmdlineRemoteProto { case VISIT: { Visitor visitor = (Visitor) arg0; org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask other = (org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask) arg1; - ownerClassName_ = visitor.visitString(!ownerClassName_.isEmpty(), ownerClassName_, - !other.ownerClassName_.isEmpty(), other.ownerClassName_); - fieldName_ = visitor.visitString(!fieldName_.isEmpty(), fieldName_, - !other.fieldName_.isEmpty(), other.fieldName_); - accessFlags_ = visitor.visitInt(accessFlags_ != 0, accessFlags_, - other.accessFlags_ != 0, other.accessFlags_); - isAccessChanged_ = visitor.visitBoolean(isAccessChanged_ != false, isAccessChanged_, - other.isAccessChanged_ != false, other.isAccessChanged_); - isFieldRemoved_ = visitor.visitBoolean(isFieldRemoved_ != false, isFieldRemoved_, - other.isFieldRemoved_ != false, other.isFieldRemoved_); + ownerClassName_ = visitor.visitString( + hasOwnerClassName(), ownerClassName_, + other.hasOwnerClassName(), other.ownerClassName_); + fieldName_ = visitor.visitString( + hasFieldName(), fieldName_, + other.hasFieldName(), other.fieldName_); + accessFlags_ = visitor.visitInt( + hasAccessFlags(), accessFlags_, + other.hasAccessFlags(), other.accessFlags_); + isAccessChanged_ = visitor.visitBoolean( + hasIsAccessChanged(), isAccessChanged_, + other.hasIsAccessChanged(), other.isAccessChanged_); + isFieldRemoved_ = visitor.visitBoolean( + hasIsFieldRemoved(), isFieldRemoved_, + other.hasIsFieldRemoved(), other.isFieldRemoved_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { + bitField0_ |= other.bitField0_; } return this; } @@ -9853,9 +10354,6 @@ public final class CmdlineRemoteProto { (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } try { boolean done = false; while (!done) { @@ -9871,29 +10369,29 @@ public final class CmdlineRemoteProto { break; } case 10: { - java.lang.String s = input.readStringRequireUtf8(); - + String s = input.readString(); + bitField0_ |= 0x00000001; ownerClassName_ = s; break; } case 18: { - java.lang.String s = input.readStringRequireUtf8(); - + String s = input.readString(); + bitField0_ |= 0x00000002; fieldName_ = s; break; } case 24: { - + bitField0_ |= 0x00000004; accessFlags_ = input.readInt32(); break; } case 32: { - + bitField0_ |= 0x00000008; isAccessChanged_ = input.readBool(); break; } case 40: { - + bitField0_ |= 0x00000010; isFieldRemoved_ = input.readBool(); break; } @@ -9908,7 +10406,6 @@ public final class CmdlineRemoteProto { } finally { } } - // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } @@ -9920,13 +10417,7 @@ public final class CmdlineRemoteProto { } } return PARSER; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } + } } throw new UnsupportedOperationException(); } @@ -9950,79 +10441,74 @@ public final class CmdlineRemoteProto { } } + private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.Type type = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.Type type = 1; */ - public int getTypeValue() { - return type_; + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.Type type = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.Type type = 1; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.Type getType() { org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.Type result = org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.Type.forNumber(type_); - return result == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.Type.UNRECOGNIZED : result; + return result == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.Type.PARAM_REQUEST : result; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.Type type = 1; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.Type type = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.Type type = 1; */ private void setType(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.Type value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; type_ = value.getNumber(); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.Type type = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.Type type = 1; */ private void clearType() { - - type_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 1; } public static final int BUILD_EVENT_FIELD_NUMBER = 2; private org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent buildEvent_; /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; */ public boolean hasBuildEvent() { - return buildEvent_ != null; + return ((bitField0_ & 0x00000002) == 0x00000002); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent getBuildEvent() { return buildEvent_ == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.getDefaultInstance() : buildEvent_; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; */ private void setBuildEvent(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent value) { if (value == null) { throw new NullPointerException(); } buildEvent_ = value; - + bitField0_ |= 0x00000002; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; */ private void setBuildEvent( org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Builder builderForValue) { buildEvent_ = builderForValue.build(); - + bitField0_ |= 0x00000002; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; */ private void mergeBuildEvent(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent value) { if (buildEvent_ != null && @@ -10032,49 +10518,49 @@ public final class CmdlineRemoteProto { } else { buildEvent_ = value; } - + bitField0_ |= 0x00000002; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; */ private void clearBuildEvent() { buildEvent_ = null; - + bitField0_ = (bitField0_ & ~0x00000002); } public static final int COMPILE_MESSAGE_FIELD_NUMBER = 3; private org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage compileMessage_; /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; */ public boolean hasCompileMessage() { - return compileMessage_ != null; + return ((bitField0_ & 0x00000004) == 0x00000004); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage getCompileMessage() { return compileMessage_ == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.getDefaultInstance() : compileMessage_; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; */ private void setCompileMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage value) { if (value == null) { throw new NullPointerException(); } compileMessage_ = value; - + bitField0_ |= 0x00000004; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; */ private void setCompileMessage( org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Builder builderForValue) { compileMessage_ = builderForValue.build(); - + bitField0_ |= 0x00000004; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; */ private void mergeCompileMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage value) { if (compileMessage_ != null && @@ -10084,49 +10570,49 @@ public final class CmdlineRemoteProto { } else { compileMessage_ = value; } - + bitField0_ |= 0x00000004; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; */ private void clearCompileMessage() { compileMessage_ = null; - + bitField0_ = (bitField0_ & ~0x00000004); } public static final int CONSTANT_SEARCH_TASK_FIELD_NUMBER = 4; private org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask constantSearchTask_; /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; */ public boolean hasConstantSearchTask() { - return constantSearchTask_ != null; + return ((bitField0_ & 0x00000008) == 0x00000008); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask getConstantSearchTask() { return constantSearchTask_ == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask.getDefaultInstance() : constantSearchTask_; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; */ private void setConstantSearchTask(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask value) { if (value == null) { throw new NullPointerException(); } constantSearchTask_ = value; - + bitField0_ |= 0x00000008; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; */ private void setConstantSearchTask( org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask.Builder builderForValue) { constantSearchTask_ = builderForValue.build(); - + bitField0_ |= 0x00000008; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; */ private void mergeConstantSearchTask(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask value) { if (constantSearchTask_ != null && @@ -10136,27 +10622,27 @@ public final class CmdlineRemoteProto { } else { constantSearchTask_ = value; } - + bitField0_ |= 0x00000008; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; */ private void clearConstantSearchTask() { constantSearchTask_ = null; - + bitField0_ = (bitField0_ & ~0x00000008); } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ != org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.Type.PARAM_REQUEST.getNumber()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_); } - if (buildEvent_ != null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getBuildEvent()); } - if (compileMessage_ != null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getCompileMessage()); } - if (constantSearchTask_ != null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getConstantSearchTask()); } unknownFields.writeTo(output); @@ -10167,19 +10653,19 @@ public final class CmdlineRemoteProto { if (size != -1) return size; size = 0; - if (type_ != org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.Type.PARAM_REQUEST.getNumber()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } - if (buildEvent_ != null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBuildEvent()); } - if (compileMessage_ != null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCompileMessage()); } - if (constantSearchTask_ != null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getConstantSearchTask()); } @@ -10188,19 +10674,6 @@ public final class CmdlineRemoteProto { return size; } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } public static org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -10263,10 +10736,10 @@ public final class CmdlineRemoteProto { } public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** @@ -10284,27 +10757,19 @@ public final class CmdlineRemoteProto { /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.Type type = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.Type type = 1; */ - public int getTypeValue() { - return instance.getTypeValue(); + public boolean hasType() { + return instance.hasType(); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.Type type = 1; - */ - public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); - return this; - } - /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.Type type = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.Type type = 1; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.Type getType() { return instance.getType(); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.Type type = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.Type type = 1; */ public Builder setType(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.Type value) { copyOnWrite(); @@ -10312,7 +10777,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.Type type = 1; + * required .org.jetbrains.jpsservice.Message.BuilderMessage.Type type = 1; */ public Builder clearType() { copyOnWrite(); @@ -10321,19 +10786,19 @@ public final class CmdlineRemoteProto { } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; */ public boolean hasBuildEvent() { return instance.hasBuildEvent(); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent getBuildEvent() { return instance.getBuildEvent(); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; */ public Builder setBuildEvent(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent value) { copyOnWrite(); @@ -10341,7 +10806,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; */ public Builder setBuildEvent( org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Builder builderForValue) { @@ -10350,7 +10815,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; */ public Builder mergeBuildEvent(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent value) { copyOnWrite(); @@ -10358,7 +10823,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.BuildEvent build_event = 2; */ public Builder clearBuildEvent() { copyOnWrite(); instance.clearBuildEvent(); @@ -10366,19 +10831,19 @@ public final class CmdlineRemoteProto { } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; */ public boolean hasCompileMessage() { return instance.hasCompileMessage(); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage getCompileMessage() { return instance.getCompileMessage(); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; */ public Builder setCompileMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage value) { copyOnWrite(); @@ -10386,7 +10851,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; */ public Builder setCompileMessage( org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Builder builderForValue) { @@ -10395,7 +10860,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; */ public Builder mergeCompileMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage value) { copyOnWrite(); @@ -10403,7 +10868,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.CompileMessage compile_message = 3; */ public Builder clearCompileMessage() { copyOnWrite(); instance.clearCompileMessage(); @@ -10411,19 +10876,19 @@ public final class CmdlineRemoteProto { } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; */ public boolean hasConstantSearchTask() { return instance.hasConstantSearchTask(); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask getConstantSearchTask() { return instance.getConstantSearchTask(); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; */ public Builder setConstantSearchTask(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask value) { copyOnWrite(); @@ -10431,7 +10896,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; */ public Builder setConstantSearchTask( org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask.Builder builderForValue) { @@ -10440,7 +10905,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; */ public Builder mergeConstantSearchTask(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask value) { copyOnWrite(); @@ -10448,7 +10913,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage.ConstantSearchTask constant_search_task = 4; */ public Builder clearConstantSearchTask() { copyOnWrite(); instance.clearConstantSearchTask(); @@ -10457,16 +10922,53 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(builder_scope:org.jetbrains.jpsservice.Message.BuilderMessage) } - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( + private byte memoizedIsInitialized = -1; + protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { + Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage(); } case IS_INITIALIZED: { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return DEFAULT_INSTANCE; + if (isInitialized == 0) return null; + + boolean shouldMemoize = ((Boolean) arg0).booleanValue(); + if (!hasType()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (hasBuildEvent()) { + if (!getBuildEvent().isInitialized()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + } + if (hasCompileMessage()) { + if (!getCompileMessage().isInitialized()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + } + if (hasConstantSearchTask()) { + if (!getConstantSearchTask().isInitialized()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + } + if (shouldMemoize) memoizedIsInitialized = 1; return DEFAULT_INSTANCE; + } case MAKE_IMMUTABLE: { return null; @@ -10477,12 +10979,14 @@ public final class CmdlineRemoteProto { case VISIT: { Visitor visitor = (Visitor) arg0; org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage other = (org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage) arg1; - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); + type_ = visitor.visitInt(hasType(), type_, + other.hasType(), other.type_); buildEvent_ = visitor.visitMessage(buildEvent_, other.buildEvent_); compileMessage_ = visitor.visitMessage(compileMessage_, other.compileMessage_); constantSearchTask_ = visitor.visitMessage(constantSearchTask_, other.constantSearchTask_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { + bitField0_ |= other.bitField0_; } return this; } @@ -10491,9 +10995,6 @@ public final class CmdlineRemoteProto { (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } try { boolean done = false; while (!done) { @@ -10510,13 +11011,18 @@ public final class CmdlineRemoteProto { } case 8: { int rawValue = input.readEnum(); - - type_ = rawValue; + org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.Type value = org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.Type.forNumber(rawValue); + if (value == null) { + super.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + type_ = rawValue; + } break; } case 18: { org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.Builder subBuilder = null; - if (buildEvent_ != null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = buildEvent_.toBuilder(); } buildEvent_ = input.readMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.BuildEvent.parser(), extensionRegistry); @@ -10524,12 +11030,12 @@ public final class CmdlineRemoteProto { subBuilder.mergeFrom(buildEvent_); buildEvent_ = subBuilder.buildPartial(); } - + bitField0_ |= 0x00000002; break; } case 26: { org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.Builder subBuilder = null; - if (compileMessage_ != null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = compileMessage_.toBuilder(); } compileMessage_ = input.readMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CompileMessage.parser(), extensionRegistry); @@ -10537,12 +11043,12 @@ public final class CmdlineRemoteProto { subBuilder.mergeFrom(compileMessage_); compileMessage_ = subBuilder.buildPartial(); } - + bitField0_ |= 0x00000004; break; } case 34: { org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask.Builder subBuilder = null; - if (constantSearchTask_ != null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = constantSearchTask_.toBuilder(); } constantSearchTask_ = input.readMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask.parser(), extensionRegistry); @@ -10550,7 +11056,7 @@ public final class CmdlineRemoteProto { subBuilder.mergeFrom(constantSearchTask_); constantSearchTask_ = subBuilder.buildPartial(); } - + bitField0_ |= 0x00000008; break; } } @@ -10564,7 +11070,6 @@ public final class CmdlineRemoteProto { } finally { } } - // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } @@ -10576,13 +11081,7 @@ public final class CmdlineRemoteProto { } } return PARSER; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } + } } throw new UnsupportedOperationException(); } @@ -10606,40 +11105,41 @@ public final class CmdlineRemoteProto { } } + private int bitField0_; public static final int SESSION_ID_FIELD_NUMBER = 1; private org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID sessionId_; /** - * .org.jetbrains.jpsservice.Message.UUID session_id = 1; + * required .org.jetbrains.jpsservice.Message.UUID session_id = 1; */ public boolean hasSessionId() { - return sessionId_ != null; + return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * .org.jetbrains.jpsservice.Message.UUID session_id = 1; + * required .org.jetbrains.jpsservice.Message.UUID session_id = 1; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID getSessionId() { return sessionId_ == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID.getDefaultInstance() : sessionId_; } /** - * .org.jetbrains.jpsservice.Message.UUID session_id = 1; + * required .org.jetbrains.jpsservice.Message.UUID session_id = 1; */ private void setSessionId(org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID value) { if (value == null) { throw new NullPointerException(); } sessionId_ = value; - + bitField0_ |= 0x00000001; } /** - * .org.jetbrains.jpsservice.Message.UUID session_id = 1; + * required .org.jetbrains.jpsservice.Message.UUID session_id = 1; */ private void setSessionId( org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID.Builder builderForValue) { sessionId_ = builderForValue.build(); - + bitField0_ |= 0x00000001; } /** - * .org.jetbrains.jpsservice.Message.UUID session_id = 1; + * required .org.jetbrains.jpsservice.Message.UUID session_id = 1; */ private void mergeSessionId(org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID value) { if (sessionId_ != null && @@ -10649,88 +11149,82 @@ public final class CmdlineRemoteProto { } else { sessionId_ = value; } - + bitField0_ |= 0x00000001; } /** - * .org.jetbrains.jpsservice.Message.UUID session_id = 1; + * required .org.jetbrains.jpsservice.Message.UUID session_id = 1; */ private void clearSessionId() { sessionId_ = null; - + bitField0_ = (bitField0_ & ~0x00000001); } public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** - * .org.jetbrains.jpsservice.Message.Type type = 2; + * required .org.jetbrains.jpsservice.Message.Type type = 2; */ - public int getTypeValue() { - return type_; + public boolean hasType() { + return ((bitField0_ & 0x00000002) == 0x00000002); } /** - * .org.jetbrains.jpsservice.Message.Type type = 2; + * required .org.jetbrains.jpsservice.Message.Type type = 2; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.Type getType() { org.jetbrains.jps.api.CmdlineRemoteProto.Message.Type result = org.jetbrains.jps.api.CmdlineRemoteProto.Message.Type.forNumber(type_); - return result == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.Type.UNRECOGNIZED : result; + return result == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.Type.CONTROLLER_MESSAGE : result; } /** - * .org.jetbrains.jpsservice.Message.Type type = 2; - */ - private void setTypeValue(int value) { - type_ = value; - } - /** - * .org.jetbrains.jpsservice.Message.Type type = 2; + * required .org.jetbrains.jpsservice.Message.Type type = 2; */ private void setType(org.jetbrains.jps.api.CmdlineRemoteProto.Message.Type value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; type_ = value.getNumber(); } /** - * .org.jetbrains.jpsservice.Message.Type type = 2; + * required .org.jetbrains.jpsservice.Message.Type type = 2; */ private void clearType() { - - type_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + type_ = 1; } public static final int CONTROLLER_MESSAGE_FIELD_NUMBER = 3; private org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage controllerMessage_; /** - * .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; */ public boolean hasControllerMessage() { - return controllerMessage_ != null; + return ((bitField0_ & 0x00000004) == 0x00000004); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage getControllerMessage() { return controllerMessage_ == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.getDefaultInstance() : controllerMessage_; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; */ private void setControllerMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage value) { if (value == null) { throw new NullPointerException(); } controllerMessage_ = value; - + bitField0_ |= 0x00000004; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; */ private void setControllerMessage( org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.Builder builderForValue) { controllerMessage_ = builderForValue.build(); - + bitField0_ |= 0x00000004; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; */ private void mergeControllerMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage value) { if (controllerMessage_ != null && @@ -10740,49 +11234,49 @@ public final class CmdlineRemoteProto { } else { controllerMessage_ = value; } - + bitField0_ |= 0x00000004; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; */ private void clearControllerMessage() { controllerMessage_ = null; - + bitField0_ = (bitField0_ & ~0x00000004); } public static final int BUILDER_MESSAGE_FIELD_NUMBER = 4; private org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage builderMessage_; /** - * .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; */ public boolean hasBuilderMessage() { - return builderMessage_ != null; + return ((bitField0_ & 0x00000008) == 0x00000008); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage getBuilderMessage() { return builderMessage_ == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.getDefaultInstance() : builderMessage_; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; */ private void setBuilderMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage value) { if (value == null) { throw new NullPointerException(); } builderMessage_ = value; - + bitField0_ |= 0x00000008; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; */ private void setBuilderMessage( org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.Builder builderForValue) { builderMessage_ = builderForValue.build(); - + bitField0_ |= 0x00000008; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; */ private void mergeBuilderMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage value) { if (builderMessage_ != null && @@ -10792,49 +11286,49 @@ public final class CmdlineRemoteProto { } else { builderMessage_ = value; } - + bitField0_ |= 0x00000008; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; */ private void clearBuilderMessage() { builderMessage_ = null; - + bitField0_ = (bitField0_ & ~0x00000008); } public static final int FAILURE_FIELD_NUMBER = 5; private org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure failure_; /** - * .org.jetbrains.jpsservice.Message.Failure failure = 5; + * optional .org.jetbrains.jpsservice.Message.Failure failure = 5; */ public boolean hasFailure() { - return failure_ != null; + return ((bitField0_ & 0x00000010) == 0x00000010); } /** - * .org.jetbrains.jpsservice.Message.Failure failure = 5; + * optional .org.jetbrains.jpsservice.Message.Failure failure = 5; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure getFailure() { return failure_ == null ? org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure.getDefaultInstance() : failure_; } /** - * .org.jetbrains.jpsservice.Message.Failure failure = 5; + * optional .org.jetbrains.jpsservice.Message.Failure failure = 5; */ private void setFailure(org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure value) { if (value == null) { throw new NullPointerException(); } failure_ = value; - + bitField0_ |= 0x00000010; } /** - * .org.jetbrains.jpsservice.Message.Failure failure = 5; + * optional .org.jetbrains.jpsservice.Message.Failure failure = 5; */ private void setFailure( org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure.Builder builderForValue) { failure_ = builderForValue.build(); - + bitField0_ |= 0x00000010; } /** - * .org.jetbrains.jpsservice.Message.Failure failure = 5; + * optional .org.jetbrains.jpsservice.Message.Failure failure = 5; */ private void mergeFailure(org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure value) { if (failure_ != null && @@ -10844,30 +11338,30 @@ public final class CmdlineRemoteProto { } else { failure_ = value; } - + bitField0_ |= 0x00000010; } /** - * .org.jetbrains.jpsservice.Message.Failure failure = 5; + * optional .org.jetbrains.jpsservice.Message.Failure failure = 5; */ private void clearFailure() { failure_ = null; - + bitField0_ = (bitField0_ & ~0x00000010); } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (sessionId_ != null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getSessionId()); } - if (type_ != org.jetbrains.jps.api.CmdlineRemoteProto.Message.Type.CONTROLLER_MESSAGE.getNumber()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, type_); } - if (controllerMessage_ != null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getControllerMessage()); } - if (builderMessage_ != null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getBuilderMessage()); } - if (failure_ != null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, getFailure()); } unknownFields.writeTo(output); @@ -10878,23 +11372,23 @@ public final class CmdlineRemoteProto { if (size != -1) return size; size = 0; - if (sessionId_ != null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSessionId()); } - if (type_ != org.jetbrains.jps.api.CmdlineRemoteProto.Message.Type.CONTROLLER_MESSAGE.getNumber()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } - if (controllerMessage_ != null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getControllerMessage()); } - if (builderMessage_ != null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getBuilderMessage()); } - if (failure_ != null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getFailure()); } @@ -10903,19 +11397,6 @@ public final class CmdlineRemoteProto { return size; } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static org.jetbrains.jps.api.CmdlineRemoteProto.Message parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } public static org.jetbrains.jps.api.CmdlineRemoteProto.Message parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -10978,10 +11459,10 @@ public final class CmdlineRemoteProto { } public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.jetbrains.jps.api.CmdlineRemoteProto.Message prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** @@ -10999,19 +11480,19 @@ public final class CmdlineRemoteProto { /** - * .org.jetbrains.jpsservice.Message.UUID session_id = 1; + * required .org.jetbrains.jpsservice.Message.UUID session_id = 1; */ public boolean hasSessionId() { return instance.hasSessionId(); } /** - * .org.jetbrains.jpsservice.Message.UUID session_id = 1; + * required .org.jetbrains.jpsservice.Message.UUID session_id = 1; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID getSessionId() { return instance.getSessionId(); } /** - * .org.jetbrains.jpsservice.Message.UUID session_id = 1; + * required .org.jetbrains.jpsservice.Message.UUID session_id = 1; */ public Builder setSessionId(org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID value) { copyOnWrite(); @@ -11019,7 +11500,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.UUID session_id = 1; + * required .org.jetbrains.jpsservice.Message.UUID session_id = 1; */ public Builder setSessionId( org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID.Builder builderForValue) { @@ -11028,7 +11509,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.UUID session_id = 1; + * required .org.jetbrains.jpsservice.Message.UUID session_id = 1; */ public Builder mergeSessionId(org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID value) { copyOnWrite(); @@ -11036,7 +11517,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.UUID session_id = 1; + * required .org.jetbrains.jpsservice.Message.UUID session_id = 1; */ public Builder clearSessionId() { copyOnWrite(); instance.clearSessionId(); @@ -11044,27 +11525,19 @@ public final class CmdlineRemoteProto { } /** - * .org.jetbrains.jpsservice.Message.Type type = 2; + * required .org.jetbrains.jpsservice.Message.Type type = 2; */ - public int getTypeValue() { - return instance.getTypeValue(); + public boolean hasType() { + return instance.hasType(); } /** - * .org.jetbrains.jpsservice.Message.Type type = 2; - */ - public Builder setTypeValue(int value) { - copyOnWrite(); - instance.setTypeValue(value); - return this; - } - /** - * .org.jetbrains.jpsservice.Message.Type type = 2; + * required .org.jetbrains.jpsservice.Message.Type type = 2; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.Type getType() { return instance.getType(); } /** - * .org.jetbrains.jpsservice.Message.Type type = 2; + * required .org.jetbrains.jpsservice.Message.Type type = 2; */ public Builder setType(org.jetbrains.jps.api.CmdlineRemoteProto.Message.Type value) { copyOnWrite(); @@ -11072,7 +11545,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.Type type = 2; + * required .org.jetbrains.jpsservice.Message.Type type = 2; */ public Builder clearType() { copyOnWrite(); @@ -11081,19 +11554,19 @@ public final class CmdlineRemoteProto { } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; */ public boolean hasControllerMessage() { return instance.hasControllerMessage(); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage getControllerMessage() { return instance.getControllerMessage(); } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; */ public Builder setControllerMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage value) { copyOnWrite(); @@ -11101,7 +11574,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; */ public Builder setControllerMessage( org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.Builder builderForValue) { @@ -11110,7 +11583,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; */ public Builder mergeControllerMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage value) { copyOnWrite(); @@ -11118,7 +11591,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; + * optional .org.jetbrains.jpsservice.Message.ControllerMessage controller_message = 3; */ public Builder clearControllerMessage() { copyOnWrite(); instance.clearControllerMessage(); @@ -11126,19 +11599,19 @@ public final class CmdlineRemoteProto { } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; */ public boolean hasBuilderMessage() { return instance.hasBuilderMessage(); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage getBuilderMessage() { return instance.getBuilderMessage(); } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; */ public Builder setBuilderMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage value) { copyOnWrite(); @@ -11146,7 +11619,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; */ public Builder setBuilderMessage( org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.Builder builderForValue) { @@ -11155,7 +11628,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; */ public Builder mergeBuilderMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage value) { copyOnWrite(); @@ -11163,7 +11636,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; + * optional .org.jetbrains.jpsservice.Message.BuilderMessage builder_message = 4; */ public Builder clearBuilderMessage() { copyOnWrite(); instance.clearBuilderMessage(); @@ -11171,19 +11644,19 @@ public final class CmdlineRemoteProto { } /** - * .org.jetbrains.jpsservice.Message.Failure failure = 5; + * optional .org.jetbrains.jpsservice.Message.Failure failure = 5; */ public boolean hasFailure() { return instance.hasFailure(); } /** - * .org.jetbrains.jpsservice.Message.Failure failure = 5; + * optional .org.jetbrains.jpsservice.Message.Failure failure = 5; */ public org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure getFailure() { return instance.getFailure(); } /** - * .org.jetbrains.jpsservice.Message.Failure failure = 5; + * optional .org.jetbrains.jpsservice.Message.Failure failure = 5; */ public Builder setFailure(org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure value) { copyOnWrite(); @@ -11191,7 +11664,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.Failure failure = 5; + * optional .org.jetbrains.jpsservice.Message.Failure failure = 5; */ public Builder setFailure( org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure.Builder builderForValue) { @@ -11200,7 +11673,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.Failure failure = 5; + * optional .org.jetbrains.jpsservice.Message.Failure failure = 5; */ public Builder mergeFailure(org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure value) { copyOnWrite(); @@ -11208,7 +11681,7 @@ public final class CmdlineRemoteProto { return this; } /** - * .org.jetbrains.jpsservice.Message.Failure failure = 5; + * optional .org.jetbrains.jpsservice.Message.Failure failure = 5; */ public Builder clearFailure() { copyOnWrite(); instance.clearFailure(); @@ -11217,16 +11690,57 @@ public final class CmdlineRemoteProto { // @@protoc_insertion_point(builder_scope:org.jetbrains.jpsservice.Message) } - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( + private byte memoizedIsInitialized = -1; + protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { + Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new org.jetbrains.jps.api.CmdlineRemoteProto.Message(); } case IS_INITIALIZED: { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return DEFAULT_INSTANCE; + if (isInitialized == 0) return null; + + boolean shouldMemoize = ((Boolean) arg0).booleanValue(); + if (!hasSessionId()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (!hasType()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (!getSessionId().isInitialized()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + if (hasControllerMessage()) { + if (!getControllerMessage().isInitialized()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + } + if (hasBuilderMessage()) { + if (!getBuilderMessage().isInitialized()) { + if (shouldMemoize) { + memoizedIsInitialized = 0; + } + return null; + } + } + if (shouldMemoize) memoizedIsInitialized = 1; return DEFAULT_INSTANCE; + } case MAKE_IMMUTABLE: { return null; @@ -11238,12 +11752,14 @@ public final class CmdlineRemoteProto { Visitor visitor = (Visitor) arg0; org.jetbrains.jps.api.CmdlineRemoteProto.Message other = (org.jetbrains.jps.api.CmdlineRemoteProto.Message) arg1; sessionId_ = visitor.visitMessage(sessionId_, other.sessionId_); - type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); + type_ = visitor.visitInt(hasType(), type_, + other.hasType(), other.type_); controllerMessage_ = visitor.visitMessage(controllerMessage_, other.controllerMessage_); builderMessage_ = visitor.visitMessage(builderMessage_, other.builderMessage_); failure_ = visitor.visitMessage(failure_, other.failure_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { + bitField0_ |= other.bitField0_; } return this; } @@ -11252,9 +11768,6 @@ public final class CmdlineRemoteProto { (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } try { boolean done = false; while (!done) { @@ -11271,7 +11784,7 @@ public final class CmdlineRemoteProto { } case 10: { org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID.Builder subBuilder = null; - if (sessionId_ != null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = sessionId_.toBuilder(); } sessionId_ = input.readMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID.parser(), extensionRegistry); @@ -11279,18 +11792,23 @@ public final class CmdlineRemoteProto { subBuilder.mergeFrom(sessionId_); sessionId_ = subBuilder.buildPartial(); } - + bitField0_ |= 0x00000001; break; } case 16: { int rawValue = input.readEnum(); - - type_ = rawValue; + org.jetbrains.jps.api.CmdlineRemoteProto.Message.Type value = org.jetbrains.jps.api.CmdlineRemoteProto.Message.Type.forNumber(rawValue); + if (value == null) { + super.mergeVarintField(2, rawValue); + } else { + bitField0_ |= 0x00000002; + type_ = rawValue; + } break; } case 26: { org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.Builder subBuilder = null; - if (controllerMessage_ != null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = controllerMessage_.toBuilder(); } controllerMessage_ = input.readMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.parser(), extensionRegistry); @@ -11298,12 +11816,12 @@ public final class CmdlineRemoteProto { subBuilder.mergeFrom(controllerMessage_); controllerMessage_ = subBuilder.buildPartial(); } - + bitField0_ |= 0x00000004; break; } case 34: { org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.Builder subBuilder = null; - if (builderMessage_ != null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = builderMessage_.toBuilder(); } builderMessage_ = input.readMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.parser(), extensionRegistry); @@ -11311,12 +11829,12 @@ public final class CmdlineRemoteProto { subBuilder.mergeFrom(builderMessage_); builderMessage_ = subBuilder.buildPartial(); } - + bitField0_ |= 0x00000008; break; } case 42: { org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure.Builder subBuilder = null; - if (failure_ != null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = failure_.toBuilder(); } failure_ = input.readMessage(org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure.parser(), extensionRegistry); @@ -11324,7 +11842,7 @@ public final class CmdlineRemoteProto { subBuilder.mergeFrom(failure_); failure_ = subBuilder.buildPartial(); } - + bitField0_ |= 0x00000010; break; } } @@ -11338,7 +11856,6 @@ public final class CmdlineRemoteProto { } finally { } } - // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } @@ -11350,13 +11867,7 @@ public final class CmdlineRemoteProto { } } return PARSER; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } + } } throw new UnsupportedOperationException(); }