@@ -0,0 +1,1700 @@
+// Copyright 2020 Google LLC%0A//%0A// Licensed under the Apache License, Version 2.0 (the %22License%22);%0A// you may not use this file except in compliance with the License.%0A// You may obtain a copy of the License at%0A//%0A//     https://www.apache.org/licenses/LICENSE-2.0%0A//%0A// Unless required by applicable law or agreed to in writing, software%0A// distributed under the License is distributed on an %22AS IS%22 BASIS,%0A// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A// See the License for the specific language governing permissions and%0A// limitations under the License.%0A%0Apackage com.google.sps.storage;%0A%0A/**%0A * An immutable container used for providing stripped-down git information%0A * to the StorageController. Provides functionality for checking whether the information%0A * is sufficient for creating an entry. Does not modify or validity check the individual%0A * contents of each field.%0A */%0Apublic class ParsedBuildbotData %7B%0A  private final String commitHash;%0A  private final String timestamp;%0A  private final String branch;%0A%0A  /**%0A   * Creates an instance with information for creating a database entry.%0A   */%0A  public ParsedBuildbotData(final String commitHash, final String timestamp, final String branch) %7B%0A    this.commitHash = commitHash;%0A    this.timestamp = timestamp;%0A    this.branch = branch;%0A  %7D%0A%0A  /**%0A   * Checks for the existance of the fields necessary for creating a database entry.%0A   * Does not check the validity of each field.%0A   */%0A  boolean validCreateData() %7B%0A    return commitHash != null;%0A  %7D%0A%0A  String getCommitHash() %7B%0A    return commitHash;%0A  %7D%0A%0A  String getTimestamp() %7B%0A    return timestamp;%0A  %7D%0A%0A  List%3CString%3E getBranch() %7B%0A    return branch;%0A  %7D%0A%7D%0A

add ParsedGitData class