repo stringclasses 1k
values | file_url stringlengths 96 373 | file_path stringlengths 11 294 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 6
values | commit_sha stringclasses 1k
values | retrieved_at stringdate 2026-01-04 14:45:56 2026-01-04 18:30:23 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/EndUploadSession.java | shared/src/main/java/com/google/collide/dto/EndUploadSession.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Signals the end of an upload session.
*
*/
@RoutingType(type = RoutingTypes.ENDUPLOADSESSION)
public interface EndUploadSession extends ClientToServerDto {
/**
* Returns the unique global ID for this upload session.
*/
String getSessionId();
String getWorkspaceId();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GetTemplates.java | shared/src/main/java/com/google/collide/dto/GetTemplates.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Asks the server about template types that might be used to populate a new
* project at creation time.
*/
@RoutingType(type = RoutingTypes.GETTEMPLATES)
public interface GetTemplates extends ClientToServerDto {
/**
* Locale for template names returned. If unset, the server will look for
* answers in locale "default", which we happen to initialize with English
* names.
*/
public String getLocale();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/ProjectInfo.java | shared/src/main/java/com/google/collide/dto/ProjectInfo.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
/**
* Information about a project. Not a top level message, but a type that is
* contained in some other messages.
*/
public interface ProjectInfo {
/**
* The user-specific state of the workspace.
*/
public enum UserProjectState {
ACTIVE, ARCHIVED
}
String getLogoUrl();
String getId();
String getName();
String getSummary();
/*
* TODO: Make this a list of roots when we support them.
*/
String getRootWsId();
/**
* Returns the current user's {@link Role} for this project. If the
* user is not a member of the project, the return value will be
* {@value Role#NONE}.
*/
Role getCurrentUserRole();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GwtKill.java | shared/src/main/java/com/google/collide/dto/GwtKill.java | package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
@RoutingType(type = RoutingTypes.GWTKILL)
public interface GwtKill extends ClientToServerDto {
public String getModule();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/SetProjectHidden.java | shared/src/main/java/com/google/collide/dto/SetProjectHidden.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Request used to hide or unhide a project from the user's project navigation
* list.
*/
@RoutingType(type = RoutingTypes.SETPROJECTHIDDEN)
public interface SetProjectHidden extends ClientToServerDto {
String getProjectId();
/**
* Returns true if the project should be hidden, false if not.
*/
boolean isHidden();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/LogMetrics.java | shared/src/main/java/com/google/collide/dto/LogMetrics.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.json.shared.JsonArray;
/**
* Encapsulates a list of LogMetric objects.
*
*
*/
@RoutingType(type = RoutingTypes.LOGMETRICS)
public interface LogMetrics extends ClientToServerDto {
JsonArray<LogMetric> getMetrics();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/CreateWorkspaceResponse.java | shared/src/main/java/com/google/collide/dto/CreateWorkspaceResponse.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
/**
*/
@RoutingType(type = RoutingTypes.CREATEWORKSPACERESPONSE)
public interface CreateWorkspaceResponse extends ServerToClientDto {
WorkspaceInfo getWorkspace();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/ResolveTreeConflict.java | shared/src/main/java/com/google/collide/dto/ResolveTreeConflict.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dto.NodeConflictDto.ConflictHandle;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* DTO to resolve a single tree conflict.
*
*
*/
@RoutingType(type = RoutingTypes.RESOLVETREECONFLICT)
public interface ResolveTreeConflict extends ClientToServerDto {
public enum ConflictResolutionChoice {
CHOOSE_PARENT, CHOOSE_CHILD, CHILD_AND_RENAME, PARENT_AND_RENAME;
}
ConflictResolutionChoice getResolutionChoice();
ConflictHandle getConflictHandle();
String getWorkspaceId();
// If the resolution choice is RENAME_REMOTE or RENAME_LOCAL, the new path is
// set here.
String getNewPath();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/LeaveWorkspace.java | shared/src/main/java/com/google/collide/dto/LeaveWorkspace.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Request to leave the current workspace.
*
*/
@RoutingType(type = RoutingTypes.LEAVEWORKSPACE)
public interface LeaveWorkspace extends ClientToServerDto {
String getWorkspaceId();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/UpdateUserWorkspaceMetadata.java | shared/src/main/java/com/google/collide/dto/UpdateUserWorkspaceMetadata.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* DTO for updating user-specific workspace metadata.
*
*/
@RoutingType(type = RoutingTypes.UPDATEUSERWORKSPACEMETADATA)
public interface UpdateUserWorkspaceMetadata extends ClientToServerDto {
String getWorkspaceId();
/**
* Returns a {@link GetWorkspaceMetaDataResponse} object populated only with fields
* that should be updated. Excluded fields will not be updated.
*/
GetWorkspaceMetaDataResponse getUserWorkspaceMetadata();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/RecoverFromDroppedTangoInvalidationResponse.java | shared/src/main/java/com/google/collide/dto/RecoverFromDroppedTangoInvalidationResponse.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
import com.google.collide.json.shared.JsonArray;
/**
* Response to {@link RecoverFromDroppedTangoInvalidation} that contains the
* payloads requested by the client.
*
*/
@RoutingType(type = RoutingTypes.RECOVERFROMDROPPEDTANGOINVALIDATIONRESPONSE)
public interface RecoverFromDroppedTangoInvalidationResponse extends ServerToClientDto {
/**
* Small DTO representing a recovered payload
*/
public interface RecoveredPayload {
public int getPayloadVersion();
public String getPayload();
}
/**
* List of payloads recovered from the server. Is always monotonically
* increasing but may have holes if there was no payload for a given version.
*/
JsonArray<RecoveredPayload> getPayloads();
/** The current version of the object */
int getCurrentObjectVersion();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/RequestProjectMembership.java | shared/src/main/java/com/google/collide/dto/RequestProjectMembership.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Requests by the current user to become a project member.
*
*/
// TODO: Let the user specify a requested membership level?
@RoutingType(type = RoutingTypes.REQUESTPROJECTMEMBERSHIP)
public interface RequestProjectMembership extends ClientToServerDto {
String projectId();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GetFileDiff.java | shared/src/main/java/com/google/collide/dto/GetFileDiff.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Client-visible file diff.
*
*/
@RoutingType(type = RoutingTypes.GETFILEDIFF)
public interface GetFileDiff extends ClientToServerDto {
String getWorkspaceId();
String getClientId();
NodeMutationDto.MutationType getChangedType();
String getPath();
/**
* Returns an optional node ID of the before node. If this method returns
* null, the oldest version of the node in he workspace is used.
*/
String getBeforeNodeId();
/**
* Returns an optional node ID of the after node. If this method returns null,
* the most recent version of the node in he workspace is used.
*/
String getAfterNodeId();
/**
* Returns true if only the stats should be included.
*/
boolean isStatsOnly();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GetProjectByIdResponse.java | shared/src/main/java/com/google/collide/dto/GetProjectByIdResponse.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
import com.google.collide.json.shared.JsonArray;
/**
* Response with a project.
*/
@RoutingType(type = RoutingTypes.GETPROJECTBYIDRESPONSE)
public interface GetProjectByIdResponse extends ServerToClientDto {
ProjectInfo getProject();
/**
* The members of the project.
*/
ProjectMembersInfo getProjectMembersInfo();
/**
* Returns the workspaces matching the workspace type given in
* {@link GetProjectById#getWorkspaceType()}.
*/
JsonArray<WorkspaceInfo> getWorkspaces();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/DirInfo.java | shared/src/main/java/com/google/collide/dto/DirInfo.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.json.shared.JsonArray;
/**
* DTO for client-visible directory information in a directory listing.
*
* This defines a recursive structure.
*/
public interface DirInfo extends TreeNodeInfo {
JsonArray<FileInfo> getFiles();
JsonArray<DirInfo> getSubDirectories();
/**
* @return whether or not this node has been populated. We support lazy
* querying of the file tree structure. If this is false, then it
* means we need to run another query for file/directory information
* starting at this node.
*/
boolean isComplete();
boolean isPackage();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/ThrowableDto.java | shared/src/main/java/com/google/collide/dto/ThrowableDto.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
import com.google.collide.json.shared.JsonArray;
/**
* A serialized version of a {@link java.lang.Throwable}
*
*/
@RoutingType(type = RoutingTypes.THROWABLEDTO)
public interface ThrowableDto extends ClientToServerDto, ServerToClientDto {
String getMessage();
String className();
ThrowableDto getCause();
JsonArray<StackTraceElementDto> getStackTrace();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/DeployWorkspaceStatus.java | shared/src/main/java/com/google/collide/dto/DeployWorkspaceStatus.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
/**
* Status update for an App Engine deployment.
*
*/
@RoutingType(type = RoutingTypes.DEPLOYWORKSPACESTATUS)
public interface DeployWorkspaceStatus extends ServerToClientDto {
public static final int STATUS_IN_PROGRESS = 0;
public static final int STATUS_SUCCESS = 1;
public static final int STATUS_FAILED = 2;
int getStatus();
String getMessage();
/**
* Available only when status is STATUS_SUCCESS
*/
String getAppUrl();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/ImportAssociation.java | shared/src/main/java/com/google/collide/dto/ImportAssociation.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Import association between two code blocks.The semantics is
* "source code block imports target code block if getIsRootAssociation()
* equals {@code true}, and imports all children defined in the target
* code block, otherwise".
*/
@RoutingType(type = RoutingTypes.IMPORTASSOCIATION)
public interface ImportAssociation extends CodeBlockAssociation {
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/ConflictChunk.java | shared/src/main/java/com/google/collide/dto/ConflictChunk.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
/**
* Conflict chunk in a text file, resulting from a 3-way merge.
*/
public interface ConflictChunk {
int getStartLineNumber();
/** Inclusive (i.e. this is the last line inside the chunk). */
int getEndLineNumber();
String getBaseText();
String getRemoteText();
String getLocalText();
boolean isResolved();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/AddProjectMembers.java | shared/src/main/java/com/google/collide/dto/AddProjectMembers.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Message used to add members to a project.
*
*/
@RoutingType(type = RoutingTypes.ADDPROJECTMEMBERS)
public interface AddProjectMembers extends ClientToServerDto {
String getProjectId();
/**
* Returns a comma or newline delimited string of user email addresses.
*/
String getUserEmails();
ChangeRoleInfo getChangeRoleInfo();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GetProjectsResponse.java | shared/src/main/java/com/google/collide/dto/GetProjectsResponse.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
import com.google.collide.json.shared.JsonArray;
/**
* Response with a set of projects.
*/
@RoutingType(type = RoutingTypes.GETPROJECTSRESPONSE)
public interface GetProjectsResponse extends ServerToClientDto {
JsonArray<ProjectInfo> getProjects();
/**
* Returns the IDs of hidden projects.
*/
JsonArray<String> getHiddenProjectIds();
/**
* Returns the ID of the last project that the user viewed.
*/
String getActiveProjectId();
/**
* Returns the next version of the tango object representing this user's
* membership change events.
*/
String getUserMembershipChangeNextVersion();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/Submit.java | shared/src/main/java/com/google/collide/dto/Submit.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Request to submit the specified workspace to the parent workspace.
*
*/
@RoutingType(type = RoutingTypes.SUBMIT)
public interface Submit extends ClientToServerDto {
String getProjectId();
String getWorkspaceId();
String getClientId();
String getWorkspaceName();
String getWorkspaceDescription();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/SubmittedWorkspace.java | shared/src/main/java/com/google/collide/dto/SubmittedWorkspace.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
/**
* DTO to tell the client that a workspace was submitted.
*
*/
@RoutingType(type = RoutingTypes.SUBMITTEDWORKSPACE)
public interface SubmittedWorkspace extends ServerToClientDto {
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GetMavenConfig.java | shared/src/main/java/com/google/collide/dto/GetMavenConfig.java | package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
@RoutingType(type = RoutingTypes.GETMAVENCONFIG)
public interface GetMavenConfig extends ClientToServerDto{
public String getProjectId();
public String getPomPath();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/ClientToServerDocOp.java | shared/src/main/java/com/google/collide/dto/ClientToServerDocOp.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.json.shared.JsonArray;
/**
* Serialized doc op (and related data) sent from the client to the server.
*
* <p>
* Note that this message is sent/received on our BrowserChannel, NOT on the
* REST API for our frontend.
*/
@RoutingType(type = RoutingTypes.CLIENTTOSERVERDOCOP)
public interface ClientToServerDocOp extends ClientToServerDto {
String getWorkspaceId();
String getFileEditSessionKey();
/**
* @return the (concurrency control) revision of the document that the
* client's doc op applies to
*/
int getCcRevision();
/**
* @return the author of this doc op
*/
String getClientId();
/**
* Serialized DTOs. This needs to be a String since we have a custom deserializer on the server.
*
* {@link DocOp} DTOs.
*/
JsonArray<String> getDocOps2();
/**
* If the user has explicitly changed the selection since the last time this
* DTO was sent, this will return the selection of the user. The "explicit"
* distinction is important: In most cases while the user is typing, the
* cursor will be moved implicitly, and passing those incremental cursor
* position changes via this field is not required.
*
* <p>
* The positions inside the selection already account for the positional
* changes that may occur due to the document operations within this DTO.
*
* <p>
* For example imagine the document is empty prior to this DTO. The user types
* 'a', and then explicitly positions his cursor at column 0 again. The user
* then types 'b'. The position of the selection (both cursor and base
* positions) will be column 1.
*
* <p> *
* {@link DocumentSelection} DTO.
*/
DocumentSelection getSelection();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GetSyncState.java | shared/src/main/java/com/google/collide/dto/GetSyncState.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Request the current sync state of a workspace.
*
*/
@RoutingType(type = RoutingTypes.GETSYNCSTATE)
public interface GetSyncState extends ClientToServerDto {
String getWorkspaceId();
} | java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/SyncConflicts.java | shared/src/main/java/com/google/collide/dto/SyncConflicts.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.json.shared.JsonArray;
/**
* A set of conflicts generated by a sync operation.
*/
public interface SyncConflicts {
JsonArray<NodeConflictDto> getConflicts();
String getNextTangoVersion();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/LogMessage.java | shared/src/main/java/com/google/collide/dto/LogMessage.java | package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
import com.google.gwt.core.ext.TreeLogger;
@RoutingType(type = RoutingTypes.LOGMESSAGE)
public interface LogMessage extends ServerToClientDto{
public String getModule();
public String getMessage();
public String getHelpInfo();
public String getError();
public int getCode();
public TreeLogger.Type getLogLevel();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/DocumentSelection.java | shared/src/main/java/com/google/collide/dto/DocumentSelection.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
/**
* A DTO that models a selection within a document.
*/
public interface DocumentSelection {
/** Returns the position of the anchor of the selection */
FilePosition getBasePosition();
/** Returns the position of the cursor */
FilePosition getCursorPosition();
/** Returns the user's ID */
String getUserId();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/RoutingTypes.java | shared/src/main/java/com/google/collide/dto/RoutingTypes.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
/**
* Stable routing types for all DTOs.
*
* NOTE: If you add a new DTO, ONLY add to the bottom of the list.
*
*
*/
public class RoutingTypes {
private RoutingTypes() {
}
public static final int ADDMEMBERSRESPONSE = 1;
public static final int ADDPROJECTMEMBERS = 2;
public static final int ADDWORKSPACEMEMBERS = 3;
public static final int BEGINUPLOADSESSION = 4;
public static final int CHANGEROLEINFO = 5;
public static final int CLIENTTOSERVERDOCOP = 6;
public static final int CODEBLOCK = 7;
public static final int CODEBLOCKASSOCIATION = 8;
public static final int CODEERRORS = 9;
public static final int CODEERRORSREQUEST = 10;
public static final int CODEGRAPHREQUEST = 11;
public static final int CODEGRAPHRESPONSE = 12;
public static final int CODEREFERENCE = 13;
public static final int CONFLICTCHUNKRESOLVED = 14;
public static final int CREATEAPPENGINEAPPSTATUS = 15;
public static final int CREATEPROJECT = 16;
public static final int CREATEPROJECTRESPONSE = 17;
public static final int CREATEWORKSPACE = 18;
public static final int CREATEWORKSPACERESPONSE = 19;
public static final int CUBEPING = 20;
public static final int DEPLOYWORKSPACE = 21;
public static final int DEPLOYWORKSPACESTATUS = 22;
public static final int DIFFSTATSDTO = 23;
public static final int EMPTYMESSAGE = 24;
public static final int INVALIDATIONMESSAGE = 25;
public static final int ENDUPLOADSESSION = 26;
public static final int ENTERWORKSPACE = 27;
public static final int ENTERWORKSPACERESPONSE = 28;
public static final int FILEPOSITION = 29;
public static final int GETAPPENGINECLUSTERTYPE = 30;
public static final int GETDEPLOYINFORMATION = 31;
public static final int GETDEPLOYINFORMATIONRESPONSE = 32;
public static final int GETDIRECTORY = 33;
public static final int GETDIRECTORYRESPONSE = 34;
public static final int GETFILECONTENTS = 35;
public static final int GETFILECONTENTSRESPONSE = 36;
public static final int GETFILEDIFF = 37;
public static final int GETFILEDIFFRESPONSE = 38;
public static final int GETFILEREVISIONS = 39;
public static final int GETFILEREVISIONSRESPONSE = 40;
// public static final int GETFILETREE = 41;
// public static final int GETFILETREERESPONSE = 42;
public static final int GETOWNINGPROJECT = 43;
public static final int GETOWNINGPROJECTRESPONSE = 44;
public static final int GETPROJECTBYID = 45;
public static final int GETPROJECTBYIDRESPONSE = 46;
public static final int GETPROJECTMEMBERS = 47;
public static final int GETPROJECTMEMBERSRESPONSE = 48;
public static final int GETPROJECTSRESPONSE = 49;
public static final int GETSTAGINGSERVERINFORESPONSE = 50;
public static final int GETSYNCSTATE = 51;
public static final int GETSYNCSTATERESPONSE = 52;
public static final int GETTEMPLATES = 53;
public static final int GETTEMPLATESRESPONSE = 54;
public static final int GETUSERAPPENGINEAPPIDS = 55;
public static final int GETUSERAPPENGINEAPPIDSRESPONSE = 56;
public static final int GETWORKSPACECHANGESUMMARY = 57;
public static final int GETWORKSPACECHANGESUMMARYRESPONSE = 58;
public static final int GETWORKSPACEMEMBERS = 59;
public static final int GETWORKSPACEMEMBERSRESPONSE = 60;
public static final int GETWORKSPACEPARTICIPANTS = 61;
public static final int GETWORKSPACEPARTICIPANTSRESPONSE = 62;
public static final int GETWORKSPACE = 63;
public static final int GETWORKSPACERESPONSE = 64;
public static final int IMPORTASSOCIATION = 65;
public static final int INHERITANCEASSOCIATION = 66;
public static final int KEEPALIVE = 67;
public static final int KEEPALIVERESPONSE = 68;
public static final int LEAVEWORKSPACE = 69;
public static final int LOADTEMPLATE = 70;
public static final int LOADTEMPLATERESPONSE = 71;
public static final int LOGFATALRECORD = 72;
public static final int LOGFATALRECORDRESPONSE = 73;
public static final int LOGMETRIC = 74;
public static final int LOGMETRICS = 75;
public static final int MEMBERSHIPCHANGEDPAYLOAD = 76;
public static final int NODECONFLICTDTO = 77;
public static final int NODEMUTATIONDTO = 78;
public static final int PARTICIPANTSINFO = 79;
public static final int RECOVERFROMDROPPEDTANGOINVALIDATION = 80;
public static final int RECOVERFROMDROPPEDTANGOINVALIDATIONRESPONSE = 81;
public static final int RECOVERFROMMISSEDDOCOPS = 82;
public static final int RECOVERFROMMISSEDDOCOPSRESPONSE = 83;
public static final int REFRESHWORKSPACE = 84;
public static final int REQUESTPROJECTMEMBERSHIP = 85;
public static final int RESOLVECONFLICTCHUNK = 86;
public static final int RESOLVETREECONFLICT = 87;
public static final int RESOLVETREECONFLICTRESPONSE = 88;
public static final int SEARCH = 89;
public static final int SEARCHRESPONSE = 90;
public static final int SERVERERROR = 91;
public static final int SERVERTOCLIENTDOCOP = 92;
public static final int SERVERTOCLIENTDOCOPS = 93;
public static final int SETACTIVEPROJECT = 94;
public static final int SETPROJECTHIDDEN = 95;
public static final int SETPROJECTROLE = 96;
public static final int SETROLERESPONSE = 97;
public static final int SETSTAGINGSERVERAPPID = 98;
public static final int SETWORKSPACEARCHIVESTATE = 99;
public static final int SETWORKSPACEARCHIVESTATERESPONSE = 100;
public static final int SETWORKSPACEROLE = 101;
public static final int SETUPMIMIC = 102;
public static final int STACKTRACEELEMENTDTO = 103;
public static final int SUBMIT = 104;
public static final int SUBMITRESPONSE = 105;
public static final int SUBMITTEDWORKSPACE = 106;
public static final int SYNC = 107;
public static final int THROWABLEDTO = 108;
public static final int TYPEASSOCIATION = 109;
public static final int UNDOLASTSYNC = 110;
public static final int UPDATEPROJECT = 111;
public static final int UPDATEUSERWORKSPACEMETADATA = 112;
public static final int UPDATEWORKSPACE = 113;
public static final int UPDATEWORKSPACERUNTARGETS = 114;
public static final int GETWORKSPACEMETADATARESPONSE = 115;
public static final int WORKSPACEINFO = 116;
public static final int WORKSPACETREEUPDATE = 117;
public static final int WORKSPACETREEUPDATEBROADCAST = 118;
public static final int INVALIDXSRFTOKENSERVERERROR = 119;
public static final int ENDUPLOADSESSIONFINISHED = 120;
public static final int RETRYALREADYTRANSFERREDUPLOAD = 121;
public static final int GETWORKSPACEMETADATA = 122;
public static final int REQUESTRUNCONFIG = 123;
public static final int RECEIVERUNCONFIG = 124;
public static final int SETRUNCONFIG = 125;
public static final int COMPILERESPONSE = 126;
public static final int GWTRECOMPILE = 127;
public static final int GWTCOMPILE = 128;
public static final int GWTKILL = 129;
public static final int GWTDIRECTORY = 130;
public static final int GWTSETTINGS = 131;
public static final int CODEMODULE = 132;
public static final int GWTPERMUTATION = 133;
public static final int LOGMESSAGE = 134;
public static final int GETMAVENCONFIG = 135;
public static final int SETMAVENCONFIG = 136;
public static final int MAVENCONFIG = 137;
public static final int HASMODULE = 138;
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/LoadTemplate.java | shared/src/main/java/com/google/collide/dto/LoadTemplate.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Load a template into a workspace.
*
*/
@RoutingType(type = RoutingTypes.LOADTEMPLATE)
public interface LoadTemplate extends ClientToServerDto {
public String getProjectId();
public String getWorkspaceId();
public String getTemplateTag();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GetWorkspaceChangeSummaryResponse.java | shared/src/main/java/com/google/collide/dto/GetWorkspaceChangeSummaryResponse.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
import com.google.collide.json.shared.JsonArray;
/**
* DTO for list of modified, added, removed, or renamed files.
*/
@RoutingType(type = RoutingTypes.GETWORKSPACECHANGESUMMARYRESPONSE)
public interface GetWorkspaceChangeSummaryResponse extends ServerToClientDto {
JsonArray<NodeMutationDto> getNodeMutations();
String getBaseRootId();
String getFinalRootId();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/ResolveTreeConflictResponse.java | shared/src/main/java/com/google/collide/dto/ResolveTreeConflictResponse.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
/**
* DTO in response to resolving a tree conflict.
*
*/
@RoutingType(type = RoutingTypes.RESOLVETREECONFLICTRESPONSE)
public interface ResolveTreeConflictResponse extends ServerToClientDto {
String getRefreshPath();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/NodeHistoryInfo.java | shared/src/main/java/com/google/collide/dto/NodeHistoryInfo.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
/**
* DTO for basic information for displaying a node in a history listing.
*/
public interface NodeHistoryInfo extends TreeNodeInfo {
// This is a long serialized to a decimal string. We do this because Longs
// wont fit in JS numeric types.
String getCreationTime();
String getPredecessorId();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/SetWorkspaceArchiveState.java | shared/src/main/java/com/google/collide/dto/SetWorkspaceArchiveState.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Message sent to indicate that a workspace should be archived.
*
*/
@RoutingType(type = RoutingTypes.SETWORKSPACEARCHIVESTATE)
public interface SetWorkspaceArchiveState extends ClientToServerDto {
String getProjectId();
String getWorkspaceId();
boolean archive();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/SetRoleResponse.java | shared/src/main/java/com/google/collide/dto/SetRoleResponse.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
/**
* Response when setting a project or workspace roles.
*
*/
@RoutingType(type = RoutingTypes.SETROLERESPONSE)
public interface SetRoleResponse extends ServerToClientDto {
/**
* Returns the updated user details.
*/
UserDetailsWithRole getUpdatedUserDetails();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/CodeBlockAssociation.java | shared/src/main/java/com/google/collide/dto/CodeBlockAssociation.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.CompactJsonDto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.SerializationIndex;
import com.google.collide.dtogen.shared.ServerToClientDto;
/**
*/
@RoutingType(type = RoutingTypes.CODEBLOCKASSOCIATION)
public interface CodeBlockAssociation extends ServerToClientDto, CompactJsonDto {
/**
* @return file id part of the source code block
* @see CodeBlock#getId()
*/
@SerializationIndex(1)
String getSourceFileId();
/**
* @return local ID part of the source code block
* @see CodeBlock#getId()
*/
@SerializationIndex(2)
String getSourceLocalId();
/**
* @return file ID part of the target code block
* @see CodeBlock#getId()
*/
@SerializationIndex(3)
String getTargetFileId();
/**
* @return local ID part of the target code block
* @see CodeBlock#getId()
*/
@SerializationIndex(4)
String getTargetLocalId();
/**
* @return if {@code true}, indicate that this association should be
* considered with target code block, otherwise only children of
* target code block should be considered.
*/
@SerializationIndex(5)
boolean getIsRootAssociation();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/Revision.java | shared/src/main/java/com/google/collide/dto/Revision.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
/**
* Wrapper class for a revision for a certain file resource. Holds information that the Timeline
* class needs to draw timeline nodes and information, as well as the nodeId from version control to
* fetch the file contents at that revision.
*/
public interface Revision {
public enum RevisionType {
BRANCH,
/**
* SYNC_SOURCE contains the content from parent.
*/
SYNC_SOURCE,
/**
* SYNC_MERGED contains the merged content from parent and local. It may
* have conflicts.
*/
SYNC_MERGED, AUTO_SAVE, DELETE, MOVE, COPY;
}
String getTimestamp();
String getNodeId();
String getRootId();
RevisionType getRevisionType();
boolean getHasUnresolvedConflicts();
boolean getIsFinalResolution();
/**
* Get the number of nodes skipped between previous node and this node.-1
* means UNKNOWN number of skipped nodes.
*/
int getPreviousNodesSkipped();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GetUserAppEngineAppIds.java | shared/src/main/java/com/google/collide/dto/GetUserAppEngineAppIds.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* DTO for requesting the user's app IDs.
*
*/
@RoutingType(type = RoutingTypes.GETUSERAPPENGINEAPPIDS)
public interface GetUserAppEngineAppIds extends GetAppEngineClusterType {
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/WorkspaceTreeUpdateBroadcast.java | shared/src/main/java/com/google/collide/dto/WorkspaceTreeUpdateBroadcast.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
import com.google.collide.json.shared.JsonArray;
/**
* A list of mutations to the file tree that have been recorded on the sever.
*/
@RoutingType(type = RoutingTypes.WORKSPACETREEUPDATEBROADCAST)
public interface WorkspaceTreeUpdateBroadcast extends ServerToClientDto {
/**
* The mutations that were performed.
*/
JsonArray<Mutation> getMutations();
/**
* The tree version after these mutations were applied.
*/
String getNewTreeVersion();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/DiffStatsDto.java | shared/src/main/java/com/google/collide/dto/DiffStatsDto.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
/**
* This DTO encapsulates the diff statistics for a single file in a diff
* response.
*/
@RoutingType(type = RoutingTypes.DIFFSTATSDTO)
public interface DiffStatsDto extends ServerToClientDto {
int getAdded();
int getChanged();
int getDeleted();
int getUnchanged();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/SetWorkspaceArchiveStateResponse.java | shared/src/main/java/com/google/collide/dto/SetWorkspaceArchiveStateResponse.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
/**
* Response from the server when a Workspace is archived.
*
*/
@RoutingType(type = RoutingTypes.SETWORKSPACEARCHIVESTATERESPONSE)
public interface SetWorkspaceArchiveStateResponse extends ServerToClientDto {
String getWorkspaceId();
/**
* The time of archival (or unarchival, though that would generally be
* ignored).
*/
String getArchivedTime();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/AddMembersResponse.java | shared/src/main/java/com/google/collide/dto/AddMembersResponse.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
import com.google.collide.json.shared.JsonArray;
/**
* Response to adding project or workspace members.
*/
@RoutingType(type = RoutingTypes.ADDMEMBERSRESPONSE)
public interface AddMembersResponse extends ServerToClientDto {
/**
* Returns an array of users who's membership was modified.
*/
JsonArray<UserDetailsWithRole> getNewMembers();
/**
* Returns an array of emails that could not be found.
*/
JsonArray<String> getInvalidEmails();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/DeployWorkspace.java | shared/src/main/java/com/google/collide/dto/DeployWorkspace.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Request to deploy a workspace to App Engine.
*
*/
@RoutingType(type = RoutingTypes.DEPLOYWORKSPACE)
public interface DeployWorkspace extends GetAppEngineClusterType {
String getWorkspaceId();
// Optional. The basepath in the workspace to deploy from.
String basePath();
// Optional. The app id to deploy to.
String appId();
// Optional. The app version to deploy to.
String appVersion();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/SetActiveProject.java | shared/src/main/java/com/google/collide/dto/SetActiveProject.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* DTO for setting the user's active project on the ProjectLanding page.
*
*/
@RoutingType(type = RoutingTypes.SETACTIVEPROJECT)
public interface SetActiveProject extends ClientToServerDto {
/**
* Returns the project ID of the most recently activated project for the
* current user, or null if viewing the welcome page.
*/
String getProjectId();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GwtSettings.java | shared/src/main/java/com/google/collide/dto/GwtSettings.java | package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
import com.google.collide.json.shared.JsonArray;
@RoutingType(type = RoutingTypes.GWTSETTINGS)
public interface GwtSettings extends ClientToServerDto, ServerToClientDto{
JsonArray<GwtRecompile> getModules();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/CodeErrors.java | shared/src/main/java/com/google/collide/dto/CodeErrors.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
import com.google.collide.json.shared.JsonArray;
/**
* Information about coding errors for a single file.
*
* @see CodeError
*
*/
@RoutingType(type = RoutingTypes.CODEERRORS)
public interface CodeErrors extends ServerToClientDto {
/**
* @return key of the file edit session of the file containing errors
*/
String getFileEditSessionKey();
/**
* @return array of all errors found in a file
*/
JsonArray<CodeError> getCodeErrors();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/NodeMutationDto.java | shared/src/main/java/com/google/collide/dto/NodeMutationDto.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
/**
* A DTO for the roll up of a single changed to a file or directory. The file or
* directory can be modified (files only), added, removed, moved, or copied.
*
* This change may NOT be a conflicting mutation. Conflicts are captured in a
* separate NodeConflictDto.
*
*/
@RoutingType(type = RoutingTypes.NODEMUTATIONDTO)
public interface NodeMutationDto extends ServerToClientDto {
/**
* The type of mutation. Note the MOVED and COPIED types may also carry
* modifications. They are represented as MOVED_AND_EDITED, COPIED_AND_EDITED
* and should have different before and after string keys (unless they are
* null edits).
*/
public static enum MutationType {
ADDED, DELETED, EDITED, MOVED, COPIED, MOVED_AND_EDITED, COPIED_AND_EDITED;
}
MutationType getMutationType();
String getFileEditSessionKey();
String getNewPath();
String getOldPath();
/**
* @return true if this node represents a FILE, or false if this node
* represents a DIRECTORY
*/
boolean isFile();
String getWorkspaceId();
DiffStatsDto getDiffStats();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/CodeGraphRequest.java | shared/src/main/java/com/google/collide/dto/CodeGraphRequest.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Code graph request from client to frontend.
*
*/
@RoutingType(type = RoutingTypes.CODEGRAPHREQUEST)
public interface CodeGraphRequest extends ClientToServerDto {
/**
* @return freshness values currently available on the client
*/
CodeGraphFreshness getFreshness();
/**
* @return workspace ID
*/
String getWorkspaceId();
/**
* @return context file path
*/
String getFilePath();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/MembershipChangedPayload.java | shared/src/main/java/com/google/collide/dto/MembershipChangedPayload.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
/**
* A Tango payload indicating that the user was added/removed from a
* project/workspace.
*/
@RoutingType(type = RoutingTypes.MEMBERSHIPCHANGEDPAYLOAD)
public interface MembershipChangedPayload extends ServerToClientDto {
/**
* An object which identifies the type of membership change which occurred.
*/
public enum MembershipChange {
ADDED_TO_WORKSPACE, REMOVED_FROM_WORKSPACE, ADDED_TO_PROJECT, REMOVED_FROM_PROJECT
}
/** The type of membership change */
MembershipChange getMembershipChange();
/**
* The id of the project or workspace the user was added to or removed from
*/
String getId();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/SubmitResponse.java | shared/src/main/java/com/google/collide/dto/SubmitResponse.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
/**
* Response to submitting a workspace. Information that is not available in the
* cached version of the workspace is provided.
*
*/
@RoutingType(type = RoutingTypes.SUBMITRESPONSE)
public interface SubmitResponse extends ServerToClientDto {
/**
* @return the user details of the user who submitted the workspace
*/
UserDetails getSubmitter();
String getSubmissionTime();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/Role.java | shared/src/main/java/com/google/collide/dto/Role.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
/**
* A user's membership role in a project or workspace.
*/
public enum Role {
/**
* Owners have all privileges of contributors, plus they can edit settings and
* add members.
*/
OWNER,
/**
* Contributors can edit code. Project contributors can submit to the root
* workspace of a project.
*/
CONTRIBUTOR,
/**
* Readers can view code and projects, but cannot modify anything.
*/
READER,
/**
* The user's membership status should be revoked, or the request should be
* ignored.
*/
NONE,
/**
* The user requested membership, but has not been granted membership.
*/
PENDING,
/**
* The user is blocked from requesting membership.
*/
BLOCKED
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/Search.java | shared/src/main/java/com/google/collide/dto/Search.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Request for search results within a given Workspace ID.
*
*/
@RoutingType(type = RoutingTypes.SEARCH)
public interface Search extends ClientToServerDto {
int getPage();
String getQuery();
String getWorkspaceId();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/SetMavenConfig.java | shared/src/main/java/com/google/collide/dto/SetMavenConfig.java | package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
@RoutingType(type = RoutingTypes.SETMAVENCONFIG)
public interface SetMavenConfig extends ClientToServerDto{
public String getProjectId();
public String getPomPath();
public MavenConfig getConfig();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/InheritanceAssociation.java | shared/src/main/java/com/google/collide/dto/InheritanceAssociation.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Inheritance association between two code blocks. From the language
* perspective, source type extends target type. From code completion
* perspective the semantics is "source code block contains all children
* defined in the target code block"
*
*/
@RoutingType(type = RoutingTypes.INHERITANCEASSOCIATION)
public interface InheritanceAssociation extends CodeBlockAssociation {
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/TypeAssociation.java | shared/src/main/java/com/google/collide/dto/TypeAssociation.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Associates an identifier with its type. Code block which contains an
* instance of TypeAssociation is the association source. Association
* target is a code block identified by a workspace-unique file ID and
* file-unique local id.
*
* The semantics of the type association is "a source object has all
* fields and methods defined in a target code block".
*/
@RoutingType(type = RoutingTypes.TYPEASSOCIATION)
public interface TypeAssociation extends CodeBlockAssociation {
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/CodeGraphResponse.java | shared/src/main/java/com/google/collide/dto/CodeGraphResponse.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
/**
* Code graph response object. May have
*
*/
@RoutingType(type = RoutingTypes.CODEGRAPHRESPONSE)
public interface CodeGraphResponse extends ServerToClientDto {
/**
* @return freshness of the different response segments
*/
CodeGraphFreshness getFreshness();
/**
* @return json-serialized {@link CodeGraph} object which includes
* code blocks and associations from immutable workspace libs
* (unused as of Jun 14)
*/
String getLibsSubgraphJson();
/**
* @return json-serialized {@link CodeGraph} object which includes
* code blocks from the context file (unused as of Jun 14)
*/
String getFileTreeJson();
/**
* @return json-serialized {@link CodeGraph} object which includes
* code blocks from all mutable workspace files
* (unused as of Jun 14)
*/
String getWorkspaceTreeJson();
/**
* @return json-serialized {@link CodeGraph} object which includes
* links (associations and cross-references) between
* mutable workspace files (unused as of Jun 14)
*/
String getWorkspaceLinksJson();
/**
* @return json-serialized {@link CodeGraph} object which includes
* code block trees of all workspace and library files and
* links (associations and cross-references) between
* workspace files and libs
*/
String getFullGraphJson();
/**
* @return json-serialized {@link CodeReferences} object which includes
* references for the context file
*/
String getFileReferencesJson();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GwtPermutation.java | shared/src/main/java/com/google/collide/dto/GwtPermutation.java | package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
import com.google.collide.json.shared.JsonArray;
@RoutingType(type = RoutingTypes.GWTPERMUTATION)
public interface GwtPermutation extends ClientToServerDto, ServerToClientDto{
String getPermutationName();
JsonArray<String> getPermutationOptions();
JsonArray<String> getPermutationsUsed();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/NodeConflictDto.java | shared/src/main/java/com/google/collide/dto/NodeConflictDto.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dto.ResolveTreeConflict.ConflictResolutionChoice;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
import com.google.collide.json.shared.JsonArray;
/**
* Information that the client needs to display UI for resolving a conflicted
* line of history.
*
*/
@RoutingType(type = RoutingTypes.NODECONFLICTDTO)
public interface NodeConflictDto extends ServerToClientDto, ClientToServerDto {
public enum SimplifiedConflictType {
FILE_LEVEL, TREE_LEVEL, RESOLVED;
}
/**
* Handle to the specific conflict. This should be mostly opaque to the
* client, except for equality checks on the underlying conflict ID to compare
* instances of this.
*/
public interface ConflictHandle {
/**
* The conflict id that the server uses to look up a conflicted line of
* history.
*/
String getConflictId();
/**
* The specific conflict in the line of history that we are presenting
* resolution strategies for.
*/
int getConflictIndex();
}
/** Simple descriptor to present a conflicted path in the UI. */
public interface ConflictedPath {
String getPath();
/** {#TreeNodeInfo.DIR_TYPE} or {@TreeNodeInfo.FILE_TYPE}. */
int getNodeType();
String getWorkspaceId();
String getStartId();
/**
* {@code true} if this is a UTF8 file.
*/
boolean isUtf8();
}
/**
* A handle to the specific conflict on the conflicted line of history that we
* are presenting resolution UI for.
*/
ConflictHandle getConflictHandle();
/**
* This is a server generated message that describes the conflict.
*/
String getConflictDescription();
/**
* This is a server generated message that describes the child state.
*/
String getChildDescription();
/**
* This is a server generated message that describes the parent state.
*/
String getParentDescription();
/** The resolution strategies that are presented to the user. */
JsonArray<ConflictResolutionChoice> getValidResolutions();
/**
* Simple categorization of the conflict so the client need not do any
* analysis.
*/
SimplifiedConflictType getSimplifiedConflictType();
/**
* The path in the child workspace that is in conflict. If we have more than
* one dependent conflicts, then they will be present in the
* {@link #getGroupedConflicts()} list.
*/
ConflictedPath getChildPath();
/**
* Other conflicted lines of history that should be resolved along with this
* resolution. This can happen in the case of recursive conflicts dropped on
* extant nodes in the child.
*/
JsonArray<NodeConflictDto> getGroupedConflicts();
/**
* Paths that exist only in the parent workspace, but not in the child (for
* example, recursive conflicts in the parent workspace) will get associated
* with this node as "Parent paths". Note that we ensure that the matching
* Parent path for the elected conflict indicated by the conflict index on
* this node is at the 0th index in the list.
*
* In other words:
*
* Each individual conflict (a conflicted node, and an index into the list of
* conflicts on that node) has a relevant child and parent path.
*
* This NodeConflictDto potentially encapsulates multiple grouped conflicted
* lines of history.
*
* The path that is the "path in parent for our child path" lives in the first
* spot in the list.
*/
JsonArray<ConflictedPath> getParentPaths();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/Visibility.java | shared/src/main/java/com/google/collide/dto/Visibility.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
/**
* Enum for the possible visibility states of a workspace or project.
*/
public enum Visibility {
/** Public to anyone with the link */
PUBLIC,
/** Public to anyone in the creator's domain */
DOMAIN,
/** Only accessible to members */
PRIVATE
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GetDeployInformation.java | shared/src/main/java/com/google/collide/dto/GetDeployInformation.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Request for getting deployment information about a
* workspace. This is done on the server side because
* the deploy button is on the project landing page,
* where we can't get files from workspaces easily.
*/
@RoutingType(type = RoutingTypes.GETDEPLOYINFORMATION)
public interface GetDeployInformation extends ClientToServerDto {
String getWorkspaceId();
String getClientId();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/BeginUploadSession.java | shared/src/main/java/com/google/collide/dto/BeginUploadSession.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.json.shared.JsonArray;
/**
* Signals the beginning of an upload session.
*
* We must signal this out-of-band because their upload session
* scope is per-file, and we need something with broader scope.
*/
@SuppressWarnings("javadoc")
@RoutingType(type = RoutingTypes.BEGINUPLOADSESSION)
public interface BeginUploadSession extends ClientToServerDto {
String getSessionId();
JsonArray<String> getWorkspacePathsToReplace();
JsonArray<String> getWorkspacePathsToUnzip();
JsonArray<String> getWorkspaceDirsToCreate();
String getWorkspaceId();
String getClientId();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GetRunConfig.java | shared/src/main/java/com/google/collide/dto/GetRunConfig.java | package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
@RoutingType(type = RoutingTypes.REQUESTRUNCONFIG)
public interface GetRunConfig
extends ClientToServerDto{
String getModule();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/InvalidationMessage.java | shared/src/main/java/com/google/collide/dto/InvalidationMessage.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
/**
* A message meant to emulate a Tango invalidation using the push channel as the transport.
*
*/
@RoutingType(type = RoutingTypes.INVALIDATIONMESSAGE)
public interface InvalidationMessage extends ServerToClientDto {
/**
* Returns the Tango object name.
*/
public String getObjectName();
/**
* Returns the version encoded in a string representation of the long value.
*/
public String getVersion();
/**
* Returns the payload, or null if it was too large.
*/
public String getPayload();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/CodeGraphFreshness.java | shared/src/main/java/com/google/collide/dto/CodeGraphFreshness.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
/**
* Fields of this object are string-encoded longs which represent freshness of different segments of
* a code graph.
*
*/
public interface CodeGraphFreshness {
/**
* @return libs subgraph freshness
*/
String getLibsSubgraph();
/**
* @return context file tree freshness
*/
String getFileTree();
/**
* @return context file hash for which we have file tree
*/
String getFileTreeHash();
/**
* @return the whole editable workspace tree freshness
*/
String getWorkspaceTree();
/**
* @return freshness of the editable workspace links
*/
String getWorkspaceLinks();
/**
* @return freshness of the whole code graph
*/
String getFullGraph();
/**
* @return freshness of the context file references
*/
String getFileReferences();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/LogFatalRecord.java | shared/src/main/java/com/google/collide/dto/LogFatalRecord.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.json.shared.JsonArray;
/**
* Fatal log messages are annotated with the window location, permutation, and a
* serialized throwable.
*/
@RoutingType(type = RoutingTypes.LOGFATALRECORD)
public interface LogFatalRecord extends ClientToServerDto {
String getMessage();
String getWindowLocation();
JsonArray<String> getRecentHistory();
String getPermutationStrongName();
ThrowableDto getThrowable();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/LogFatalRecordResponse.java | shared/src/main/java/com/google/collide/dto/LogFatalRecordResponse.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
/**
* Response for a fatal remote log message.
*
*/
@RoutingType(type = RoutingTypes.LOGFATALRECORDRESPONSE)
public interface LogFatalRecordResponse extends ServerToClientDto {
String getStackTrace();
String getServiceName();
String getThrowableProtoHex();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/UserDetailsWithRole.java | shared/src/main/java/com/google/collide/dto/UserDetailsWithRole.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
/**
* Information about a user, including the user's role for a specific project or
* workspace. Not a top level message, but a type that is contained in some
* other messages.
*/
public interface UserDetailsWithRole extends UserDetails {
/**
* Returns the {@link Role} of this user in the context of a project or
* workspace.
*/
Role getRole();
/**
* Returns true if the user created the workspace. Returns false for projects
* because we do not store project creator information.
*/
boolean isCreator();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/ServerToClientDocOps.java | shared/src/main/java/com/google/collide/dto/ServerToClientDocOps.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
import com.google.collide.json.shared.JsonArray;
/**
* Bundles a list of doc ops that have been applied on the server.
*/
@RoutingType(type = RoutingTypes.SERVERTOCLIENTDOCOPS)
public interface ServerToClientDocOps extends ServerToClientDto {
/**
* The applied doc ops, ordered by revision.
*/
JsonArray<ServerToClientDocOp> getDocOps();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GetUserAppEngineAppIdsResponse.java | shared/src/main/java/com/google/collide/dto/GetUserAppEngineAppIdsResponse.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
import com.google.collide.json.shared.JsonArray;
/**
* A DTO for sending the user's app engine app ids from the
* server to the client.
*
*/
@RoutingType(type = RoutingTypes.GETUSERAPPENGINEAPPIDSRESPONSE)
public interface GetUserAppEngineAppIdsResponse extends ServerToClientDto {
JsonArray<String> getAppIds();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GetWorkspaceMetaDataResponse.java | shared/src/main/java/com/google/collide/dto/GetWorkspaceMetaDataResponse.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
import com.google.collide.json.shared.JsonArray;
/**
* User metadata for a workspace. Not a top level message, but a type that is
* contained in some other messages.
*/
@RoutingType(type = RoutingTypes.GETWORKSPACEMETADATARESPONSE)
public interface GetWorkspaceMetaDataResponse extends ClientToServerDto, ServerToClientDto {
/**
* The name of this workspace.
*/
String getWorkspaceName();
/**
* Returns the list of open files for the current user.
*/
JsonArray<String> getLastOpenFiles();
/**
* Returns the user's set run configuration.
*/
RunTarget getRunTarget();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/LoadTemplateResponse.java | shared/src/main/java/com/google/collide/dto/LoadTemplateResponse.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
/**
* Response for loading a template into a workspace.
*
*/
@RoutingType(type = RoutingTypes.LOADTEMPLATERESPONSE)
public interface LoadTemplateResponse extends ServerToClientDto {
/**
* Retrieves the new runtargets of the workspace (if any) due to loading a
* template. These run targets are now the run targets of the workspace.
*/
RunTarget getRunTarget();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GetOwningProjectResponse.java | shared/src/main/java/com/google/collide/dto/GetOwningProjectResponse.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
/**
* Response for requesting the project that owns this workspace.
*
*/
@RoutingType(type = RoutingTypes.GETOWNINGPROJECTRESPONSE)
public interface GetOwningProjectResponse extends ServerToClientDto {
/**
* This should always be non-null.
*/
ProjectInfo getOwningProject();
/**
* The members of the project.
*/
ProjectMembersInfo getProjectMembersInfo();
/**
* This should always be non-null.
*/
WorkspaceInfo getWorkspace();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/Sync.java | shared/src/main/java/com/google/collide/dto/Sync.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* DTO used for attempt a workspace sync from parent.
*
*/
@RoutingType(type = RoutingTypes.SYNC)
public interface Sync extends ClientToServerDto {
String getWorkspaceId();
String getClientId();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GetRunConfigResponse.java | shared/src/main/java/com/google/collide/dto/GetRunConfigResponse.java | package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
import com.google.collide.json.shared.JsonArray;
import com.google.gwt.core.ext.TreeLogger;
@RoutingType(type = RoutingTypes.RECEIVERUNCONFIG)
public interface GetRunConfigResponse
extends ServerToClientDto{
String getModule();
JsonArray<String> getSrc();
JsonArray<String> getLib();
JsonArray<String> getDeps();
String getOutput();
TreeLogger.Type getLogLevel();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/CodeErrorsRequest.java | shared/src/main/java/com/google/collide/dto/CodeErrorsRequest.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Code Errors request from client to frontend.
*
*/
@RoutingType(type = RoutingTypes.CODEERRORSREQUEST)
public interface CodeErrorsRequest extends ClientToServerDto {
String getWorkspaceId();
/**
* @return file edit session key of file to return code errors for
*/
String getFileEditSessionKey();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GetDirectory.java | shared/src/main/java/com/google/collide/dto/GetDirectory.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Request for files and directories under a specified path.
*
*/
@RoutingType(type = RoutingTypes.GETDIRECTORY)
public interface GetDirectory extends ClientToServerDto {
String getPath();
String rootId();
/**
* Specifies how many levels deep the tree is fetched. A depth of < 0 indicates infinite depth.
* The depth only applies to the directory at the specified path, not to the directories between
* root path and path.
*/
int getDepth();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/LogMetric.java | shared/src/main/java/com/google/collide/dto/LogMetric.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Encapsulates the data used for logging metrics.
*
*/
@RoutingType(type = RoutingTypes.LOGMETRIC)
public interface LogMetric extends ClientToServerDto {
String getAction();
String getEvent();
double getTimestamp();
String getMessage();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/UpdateWorkspaceRunTargets.java | shared/src/main/java/com/google/collide/dto/UpdateWorkspaceRunTargets.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
*
* A DTO for telling the server that the workspace's run targets have changed.
*
*
*/
@RoutingType(type = RoutingTypes.UPDATEWORKSPACERUNTARGETS)
public interface UpdateWorkspaceRunTargets extends ClientToServerDto {
String getProjectId();
String getWorkspaceId();
RunTarget getRunTarget();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GetFileRevisions.java | shared/src/main/java/com/google/collide/dto/GetFileRevisions.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Request to get revision information for a file
*
*/
@RoutingType(type = RoutingTypes.GETFILEREVISIONS)
public interface GetFileRevisions extends ClientToServerDto {
String getClientId();
/**
* path is correct with respect to the PathRootId.
*/
String getPathRootId();
String getPath();
String getWorkspaceId();
/**
* The number of revisions to return. When filtering is true, server will
* apply filtering and skip unimportant nodes
*/
int getNumOfRevisions();
boolean filtering();
/**
* The root at which to start the search. If null, the search will use the
* current tip.
*/
String getRootId();
/**
* Bound the search by a minimum ID.
*/
String getMinId();
boolean getIncludeBranchRevision();
boolean getIncludeMostRecentRevision();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/InvalidXsrfTokenServerError.java | shared/src/main/java/com/google/collide/dto/InvalidXsrfTokenServerError.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Error sent when the token validation failed. If the user is validly logged
* in, this will carry a new XSRF token.
*
*/
@RoutingType(type = RoutingTypes.INVALIDXSRFTOKENSERVERERROR)
public interface InvalidXsrfTokenServerError extends ServerError {
String getNewXsrfToken();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GetStagingServerInfoResponse.java | shared/src/main/java/com/google/collide/dto/GetStagingServerInfoResponse.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
/**
*
* DTO for getting the user's mimic app id and related information.
*
*
*/
@RoutingType(type = RoutingTypes.GETSTAGINGSERVERINFORESPONSE)
public interface GetStagingServerInfoResponse extends ServerToClientDto {
String getStagingServerAppId();
// The latest / current mimic version ID.
int getLatestMimicVersionId();
// The version ID of the user's mimic, specifically the
// version id that was most recently deployed.
int getLastKnownMimicVersionId();
// If true, user's mimic should be auto-updated.
boolean getAutoUpdate();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/Snippet.java | shared/src/main/java/com/google/collide/dto/Snippet.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
/**
* Snippet of a search results
*
*/
public interface Snippet {
int getLineNumber();
String getSnippetText();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/CreateProject.java | shared/src/main/java/com/google/collide/dto/CreateProject.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Creates a project.
*
*/
@RoutingType(type = RoutingTypes.CREATEPROJECT)
public interface CreateProject extends ClientToServerDto {
String getName();
String getSummary();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GetWorkspace.java | shared/src/main/java/com/google/collide/dto/GetWorkspace.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Request for information about workspaces by ID.
*
*/
@RoutingType(type = RoutingTypes.GETWORKSPACE)
public interface GetWorkspace extends ClientToServerDto {
String getProjectId();
String getWorkspaceId();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/RetryAlreadyTransferredUpload.java | shared/src/main/java/com/google/collide/dto/RetryAlreadyTransferredUpload.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.json.shared.JsonArray;
/**
* A signal for the server to retry saving previously-transferred files to persistence.
*/
@RoutingType(type = RoutingTypes.RETRYALREADYTRANSFERREDUPLOAD)
public interface RetryAlreadyTransferredUpload extends ClientToServerDto {
String getSessionId();
String getWorkspaceId();
JsonArray<String> getUnzipWorkspacePaths();
JsonArray<String> getFileWorkspacePaths();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/RecoverFromMissedDocOps.java | shared/src/main/java/com/google/collide/dto/RecoverFromMissedDocOps.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.json.shared.JsonArray;
/**
* Lets a client re-synchronize with the server's version of a file after being
* momentarily offline or missing a doc op broadcast.
*
* <p>
* To catch up to the server, the client needs to first ensure that his unacked
* doc ops were applied. He can resend those via {@link #getClientId()} and
* {@link #getDocOps2()}. The server will ignore the doc ops if has already seen
* them.
*
* <p>
* The client also needs to catch up with recent changes made by others. The
* server will provide all doc ops applied from {@link #getCurrentCcRevision()}
* +1 onwards in the {@link RecoverFromMissedDocOpsResponse#getDocOps()}. That
* list will include the client's own re-sent doc ops (if any). Their position
* will depend on whether the original request made it through to the server: if
* yes, then they'll be near the beginning of the list of applied doc ops; if
* not they will be at the end.
*/
@RoutingType(type = RoutingTypes.RECOVERFROMMISSEDDOCOPS)
public interface RecoverFromMissedDocOps extends ClientToServerDto {
String getWorkspaceId();
String getFileEditSessionKey();
/**
* Revision of the client's document. This will be the intended revision for
* any doc ops being re-sent. Also, the list of applied doc ops in the
* {@link RecoverFromMissedDocOpsResponse} will start (exclusive) at this
* revision.
*/
int getCurrentCcRevision();
/**
* Optional. Set when the client needs to resend un-acked doc ops.
*/
String getClientId();
/**
* Optional. Unacked doc-ops that may need to be applied (depending on whether
* the server received them prior to the client disconnection).
*
* These are the serialized {@link DocOp}s.
*/
JsonArray<String> getDocOps2();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GetAppEngineClusterType.java | shared/src/main/java/com/google/collide/dto/GetAppEngineClusterType.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* An interface for other DTOs that specify an app engine cluster type.
*
*/
@RoutingType(type = RoutingTypes.GETAPPENGINECLUSTERTYPE)
public interface GetAppEngineClusterType extends ClientToServerDto {
/**
* The app engine clusters we support deploying to.
*/
public enum Type {
PROD, CORP, QA, QA_DART;
}
// The app engine cluster type to deploy to.
Type getClusterType();
} | java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/UserDetails.java | shared/src/main/java/com/google/collide/dto/UserDetails.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
/**
* Information about a user.
*/
public interface UserDetails {
/**
* Utilities to retrieve additional information from {@link UserDetails}.
*/
class Utils {
/**
* Returns the portrait URL with the specified size.
*
* The portrait URL is returned from the server without a size:
* /path/to/photo.jpg
*
* We insert the size just before the filename. For example, for a 24 pixel portrait:
* /path/to/s24/photo.jpg
*/
public static String getPortraitUrl(UserDetails userDetails, int size) {
String url = userDetails.getPortraitUrl();
return getSizeSpecificPortraitUrl(url, size);
}
public static String getSizeSpecificPortraitUrl(String url, int size) {
if (url == null) {
return url;
}
int lastSlash = url.lastIndexOf('/');
url = url.substring(0, lastSlash) + "/s" + size + url.substring(lastSlash);
return url;
}
}
/**
* Returns a unique ID for the user. This ID should be used in client-to-server
* requests that identify a specific user.
*/
String getUserId();
/**
* Returns the email address of a user. The email address may be obfuscated
* depending on the user's privacy settings, and may not be a valid email
* address.
*/
String getDisplayEmail();
/**
* Returns the display name of the user. If the display name is not available,
* returns the email.
*/
String getDisplayName();
/**
* Returns the given (first) name of the user. If the given name is not
* available, returns the display name. If the display name is not available
* either, returns the email.
*/
String getGivenName();
/**
* Returns the portrait URL with the default size of 24 pixels.
*
* Use {@link Utils#getPortraitUrl(UserDetails, int)} to get the URL of a
* portrait in any size.
*/
String getPortraitUrl();
/**
* Returns a boolean indicating that this {@link UserDetails} represents the
* current user.
*/
boolean isCurrentUser();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/ServerToClientDocOp.java | shared/src/main/java/com/google/collide/dto/ServerToClientDocOp.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
/**
* Serialized doc op (and related data) sent from the server to the client.
*
*/
@RoutingType(type = RoutingTypes.SERVERTOCLIENTDOCOP)
public interface ServerToClientDocOp extends ServerToClientDto {
String getWorkspaceId();
/**
* @return the (concurrency control) revision of the document after the doc op
* was applied
*/
int getAppliedCcRevision();
/**
* @return the author of this doc op
*/
String getClientId();
/**
* Applied DocOp ack.
*
* {@link DocOp} DTO.
*/
DocOp getDocOp2();
String getFileEditSessionKey();
/**
* @return the current path to the mutated file.
*/
String getFilePath();
/**
* If non-null, the positions contained by this field will be valid after
* {@link #getDocOp2()} has been applied to the document.
*
* Note that this string is actually the JSON-serialized form of a
* {@link DocumentSelection} DTO.
*
* @see ClientToServerDocOp#getSelection()
*/
DocumentSelection getSelection();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/ResolveConflictChunk.java | shared/src/main/java/com/google/collide/dto/ResolveConflictChunk.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dto.NodeConflictDto.ConflictHandle;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Message sent by the client to resolve (or un-resolve) a conflict chunk.
*/
@RoutingType(type = RoutingTypes.RESOLVECONFLICTCHUNK)
public interface ResolveConflictChunk extends ClientToServerDto {
String getWorkspaceId();
String getFileEditSessionKey();
/**
* Array index of the conflict chunk within the file.
*/
int getConflictChunkIndex();
/**
* Set to <code>true</code> to mark the conflict chunk as resolved. It can
* also be set to <code>false</code> to "un-resolve" a conflict chunk (e.g.,
* if the user clicks an undo link after resolving a conflict).
*/
boolean isResolved();
ConflictHandle getConflictHandle();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/CompileResponse.java | shared/src/main/java/com/google/collide/dto/CompileResponse.java | package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
@RoutingType(type = RoutingTypes.COMPILERESPONSE)
public interface CompileResponse extends ServerToClientDto, ClientToServerDto {
public static enum CompilerState{
UNLOADED, RUNNING, BLOCKING, FINISHED, SERVING, FAILED
}
public CompilerState getCompilerStatus();
public String getModule();
public String getStaticName();
public int getPort();
public boolean isAuthorized();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GetWorkspaceMetaData.java | shared/src/main/java/com/google/collide/dto/GetWorkspaceMetaData.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
/**
* Request for workspace meta data.
*/
@RoutingType(type = RoutingTypes.GETWORKSPACEMETADATA)
public interface GetWorkspaceMetaData extends ClientToServerDto {
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GwtCompile.java | shared/src/main/java/com/google/collide/dto/GwtCompile.java | package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
import com.google.collide.json.shared.JsonArray;
@RoutingType(type = RoutingTypes.GWTCOMPILE)
public interface GwtCompile extends GwtRecompile, ClientToServerDto, ServerToClientDto{
public String getDeployDir();
public String getExtrasDir();
public int getFragments();
public String getGenDir();
public String getGwtVersion();
public int getLocalWorkers();
public int getOptimizationLevel();
public JsonArray<String> getSystemProperties();
public String getUnitCacheDir();
public String getUrlToOpen();
public String getWarDir();
public String getWorkDir();
public boolean isClosureCompiler();
public boolean isDisableAggressiveOptimize();
public boolean isDisableCastCheck();
public boolean isDisableClassMetadata();
public boolean isDisableRunAsync();
public boolean isDisableThreadedWorkers();
public boolean isDisableUnitCache();
public boolean isDraftCompile();
public boolean isEnableAssertions();
public boolean isSoyc();
public boolean isSoycDetailed();
public boolean isStrict();
public boolean isValidateOnly();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/MavenConfig.java | shared/src/main/java/com/google/collide/dto/MavenConfig.java | package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
import com.google.collide.json.shared.JsonArray;
@RoutingType(type = RoutingTypes.MAVENCONFIG)
public interface MavenConfig extends ClientToServerDto, ServerToClientDto{
/**
* @return - The id of the project;
*/
public String getProjectId();
/**
* @return - The relative or root url of the target pom
*/
public String getPomPath();
/**
* @return - The source root directory from which all relative uris derive.
* Defaults to the collide work directory
*/
public String getSourceRoot();
/**
* @return - The clean war directory (no generated files)
*/
public String getWarSource();
/**
* @return - The target directory to which we copy a generated production war
*/
public String getWarTarget();
/**
* @return - All source folders used by maven (and gwt recompiler)
*/
public JsonArray<String> getSourceFolders();
/**
* @return - The relative of all poms from source root
*/
public JsonArray<String> getPoms();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GetTemplatesResponse.java | shared/src/main/java/com/google/collide/dto/GetTemplatesResponse.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
import com.google.collide.json.shared.JsonStringMap;
/**
* Tells the client about templates. The template map is indexed by human name,
* with the value being the tag used to request that template.
*
*/
@RoutingType(type = RoutingTypes.GETTEMPLATESRESPONSE)
public interface GetTemplatesResponse extends ServerToClientDto {
JsonStringMap<String> getTemplates();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/CodeReference.java | shared/src/main/java/com/google/collide/dto/CodeReference.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.CompactJsonDto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.SerializationIndex;
import com.google.collide.dtogen.shared.ServerToClientDto;
/**
* Representation of a reference from one code chunk to another.
*/
@RoutingType(type = RoutingTypes.CODEREFERENCE)
public interface CodeReference extends ServerToClientDto, CompactJsonDto {
/**
* Enumeration of currently supported reference types.
*/
public static enum Type {
/** Reference to var declaration or object property declaration. */
VAR,
/** Reference to function argument. */
ARG,
/** Reference to class declaration. */
CLASS,
/** Reference to called method declaration. */
CALL
}
/**
* @return type of this reference
*/
@SerializationIndex(1)
Type getReferenceType();
/**
* @return reference start position
*/
@SerializationIndex(2)
FilePosition getReferenceStart();
/**
* @return reference end position inclusive
*/
@SerializationIndex(3)
FilePosition getReferenceEnd();
/**
* @return project file path where this reference points
*/
@SerializationIndex(4)
String getTargetFilePath();
/**
* @return target start position in target file
*/
@SerializationIndex(5)
FilePosition getTargetStart();
/**
* @return target end position inclusive in target file
*/
@SerializationIndex(6)
FilePosition getTargetEnd();
/**
* @return target snippet if it is available, {@code null} otherwise
*/
@SerializationIndex(7)
String getTargetSnippet();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/FilePosition.java | shared/src/main/java/com/google/collide/dto/FilePosition.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.ClientToServerDto;
import com.google.collide.dtogen.shared.CompactJsonDto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.SerializationIndex;
import com.google.collide.dtogen.shared.ServerToClientDto;
/**
* Represents character position in a single file.
*
*/
@RoutingType(type = RoutingTypes.FILEPOSITION)
public interface FilePosition extends ClientToServerDto, ServerToClientDto, CompactJsonDto {
/**
* @return line number starting from 0
*/
@SerializationIndex(1)
int getLineNumber();
/**
* @return column number starting from 0
*/
@SerializationIndex(2)
int getColumn();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/GetDirectoryResponse.java | shared/src/main/java/com/google/collide/dto/GetDirectoryResponse.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.dtogen.shared.RoutingType;
import com.google.collide.dtogen.shared.ServerToClientDto;
/**
* Represents the set of files/directories under some base directory, arranged into a tree
* structure.
*/
@RoutingType(type = RoutingTypes.GETDIRECTORYRESPONSE)
public interface GetDirectoryResponse extends ServerToClientDto {
/**
* The path of the base directory. If it refers to the workspace root then it
* will be "/".
*/
String getPath();
/**
* The tree of files and directories.
*/
DirInfo getBaseDirectory();
/**
* The tree's version number.
*/
String getRootId();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
WeTheInternet/collide | https://github.com/WeTheInternet/collide/blob/2136cfc9705a96d88c69356868dda5b95c35bc6d/shared/src/main/java/com/google/collide/dto/SearchResult.java | shared/src/main/java/com/google/collide/dto/SearchResult.java | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.collide.dto;
import com.google.collide.json.shared.JsonArray;
/**
* A single search result.
*/
public interface SearchResult {
JsonArray<Snippet> getSnippets();
String getTitle();
String getUrl();
}
| java | Apache-2.0 | 2136cfc9705a96d88c69356868dda5b95c35bc6d | 2026-01-05T02:34:36.415338Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.