github.com/quickfeed/quickfeed@v0.0.0-20240507093252-ed8ca812a09c/public/proto/kit/score/score_pb.ts (about)

     1  // @generated by protoc-gen-es v1.8.0 with parameter "target=ts"
     2  // @generated from file kit/score/score.proto (package score, syntax proto3)
     3  /* eslint-disable */
     4  // @ts-nocheck
     5  
     6  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
     7  import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
     8  
     9  /**
    10   * Score give the score for a single test named TestName.
    11   *
    12   * @generated from message score.Score
    13   */
    14  export class Score extends Message<Score> {
    15    /**
    16     * @generated from field: uint64 ID = 1;
    17     */
    18    ID = protoInt64.zero;
    19  
    20    /**
    21     * @generated from field: uint64 SubmissionID = 2;
    22     */
    23    SubmissionID = protoInt64.zero;
    24  
    25    /**
    26     * the unique identifier for a scoring session
    27     *
    28     * @generated from field: string Secret = 3;
    29     */
    30    Secret = "";
    31  
    32    /**
    33     * name of the test
    34     *
    35     * @generated from field: string TestName = 4;
    36     */
    37    TestName = "";
    38  
    39    /**
    40     * name of task this score belongs to
    41     *
    42     * @generated from field: string TaskName = 5;
    43     */
    44    TaskName = "";
    45  
    46    /**
    47     * the score obtained
    48     *
    49     * @generated from field: int32 Score = 6;
    50     */
    51    Score = 0;
    52  
    53    /**
    54     * max score possible to get on this specific test
    55     *
    56     * @generated from field: int32 MaxScore = 7;
    57     */
    58    MaxScore = 0;
    59  
    60    /**
    61     * the weight of this test; used to compute final grade
    62     *
    63     * @generated from field: int32 Weight = 8;
    64     */
    65    Weight = 0;
    66  
    67    /**
    68     * if populated, the frontend may display these details
    69     *
    70     * @generated from field: string TestDetails = 9;
    71     */
    72    TestDetails = "";
    73  
    74    constructor(data?: PartialMessage<Score>) {
    75      super();
    76      proto3.util.initPartial(data, this);
    77    }
    78  
    79    static readonly runtime: typeof proto3 = proto3;
    80    static readonly typeName = "score.Score";
    81    static readonly fields: FieldList = proto3.util.newFieldList(() => [
    82      { no: 1, name: "ID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
    83      { no: 2, name: "SubmissionID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
    84      { no: 3, name: "Secret", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    85      { no: 4, name: "TestName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    86      { no: 5, name: "TaskName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    87      { no: 6, name: "Score", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
    88      { no: 7, name: "MaxScore", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
    89      { no: 8, name: "Weight", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
    90      { no: 9, name: "TestDetails", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    91    ]);
    92  
    93    static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Score {
    94      return new Score().fromBinary(bytes, options);
    95    }
    96  
    97    static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Score {
    98      return new Score().fromJson(jsonValue, options);
    99    }
   100  
   101    static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Score {
   102      return new Score().fromJsonString(jsonString, options);
   103    }
   104  
   105    static equals(a: Score | PlainMessage<Score> | undefined, b: Score | PlainMessage<Score> | undefined): boolean {
   106      return proto3.util.equals(Score, a, b);
   107    }
   108  }
   109  
   110  /**
   111   * BuildInfo holds build data for an assignment's test execution.
   112   *
   113   * @generated from message score.BuildInfo
   114   */
   115  export class BuildInfo extends Message<BuildInfo> {
   116    /**
   117     * @generated from field: uint64 ID = 1;
   118     */
   119    ID = protoInt64.zero;
   120  
   121    /**
   122     * @generated from field: uint64 SubmissionID = 2;
   123     */
   124    SubmissionID = protoInt64.zero;
   125  
   126    /**
   127     * @generated from field: string BuildLog = 3;
   128     */
   129    BuildLog = "";
   130  
   131    /**
   132     * @generated from field: int64 ExecTime = 4;
   133     */
   134    ExecTime = protoInt64.zero;
   135  
   136    /**
   137     * @generated from field: google.protobuf.Timestamp BuildDate = 5;
   138     */
   139    BuildDate?: Timestamp;
   140  
   141    /**
   142     * @generated from field: google.protobuf.Timestamp SubmissionDate = 6;
   143     */
   144    SubmissionDate?: Timestamp;
   145  
   146    constructor(data?: PartialMessage<BuildInfo>) {
   147      super();
   148      proto3.util.initPartial(data, this);
   149    }
   150  
   151    static readonly runtime: typeof proto3 = proto3;
   152    static readonly typeName = "score.BuildInfo";
   153    static readonly fields: FieldList = proto3.util.newFieldList(() => [
   154      { no: 1, name: "ID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
   155      { no: 2, name: "SubmissionID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
   156      { no: 3, name: "BuildLog", kind: "scalar", T: 9 /* ScalarType.STRING */ },
   157      { no: 4, name: "ExecTime", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
   158      { no: 5, name: "BuildDate", kind: "message", T: Timestamp },
   159      { no: 6, name: "SubmissionDate", kind: "message", T: Timestamp },
   160    ]);
   161  
   162    static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BuildInfo {
   163      return new BuildInfo().fromBinary(bytes, options);
   164    }
   165  
   166    static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BuildInfo {
   167      return new BuildInfo().fromJson(jsonValue, options);
   168    }
   169  
   170    static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BuildInfo {
   171      return new BuildInfo().fromJsonString(jsonString, options);
   172    }
   173  
   174    static equals(a: BuildInfo | PlainMessage<BuildInfo> | undefined, b: BuildInfo | PlainMessage<BuildInfo> | undefined): boolean {
   175      return proto3.util.equals(BuildInfo, a, b);
   176    }
   177  }
   178