|
| 1 | +// @generated by protoc-gen-es v1.10.0 with parameter "target=ts" |
| 2 | +// @generated from file depot/build/v1/registry.proto (package depot.build.v1, syntax proto3) |
| 3 | +/* eslint-disable */ |
| 4 | +// @ts-nocheck |
| 5 | + |
| 6 | +import type { |
| 7 | + BinaryReadOptions, |
| 8 | + FieldList, |
| 9 | + JsonReadOptions, |
| 10 | + JsonValue, |
| 11 | + PartialMessage, |
| 12 | + PlainMessage, |
| 13 | +} from '@bufbuild/protobuf' |
| 14 | +import {Message, proto3, protoInt64, Timestamp} from '@bufbuild/protobuf' |
| 15 | + |
| 16 | +/** |
| 17 | + * @generated from message depot.build.v1.ListImagesRequest |
| 18 | + */ |
| 19 | +export class ListImagesRequest extends Message<ListImagesRequest> { |
| 20 | + /** |
| 21 | + * @generated from field: string project_id = 1; |
| 22 | + */ |
| 23 | + projectId = '' |
| 24 | + |
| 25 | + /** |
| 26 | + * The maximum number of results to return per page |
| 27 | + * |
| 28 | + * @generated from field: optional int32 page_size = 2; |
| 29 | + */ |
| 30 | + pageSize?: number |
| 31 | + |
| 32 | + /** |
| 33 | + * The page token indicating which page of results to return |
| 34 | + * |
| 35 | + * @generated from field: optional string page_token = 3; |
| 36 | + */ |
| 37 | + pageToken?: string |
| 38 | + |
| 39 | + constructor(data?: PartialMessage<ListImagesRequest>) { |
| 40 | + super() |
| 41 | + proto3.util.initPartial(data, this) |
| 42 | + } |
| 43 | + |
| 44 | + static readonly runtime: typeof proto3 = proto3 |
| 45 | + static readonly typeName = 'depot.build.v1.ListImagesRequest' |
| 46 | + static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 47 | + {no: 1, name: 'project_id', kind: 'scalar', T: 9 /* ScalarType.STRING */}, |
| 48 | + {no: 2, name: 'page_size', kind: 'scalar', T: 5 /* ScalarType.INT32 */, opt: true}, |
| 49 | + {no: 3, name: 'page_token', kind: 'scalar', T: 9 /* ScalarType.STRING */, opt: true}, |
| 50 | + ]) |
| 51 | + |
| 52 | + static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListImagesRequest { |
| 53 | + return new ListImagesRequest().fromBinary(bytes, options) |
| 54 | + } |
| 55 | + |
| 56 | + static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListImagesRequest { |
| 57 | + return new ListImagesRequest().fromJson(jsonValue, options) |
| 58 | + } |
| 59 | + |
| 60 | + static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListImagesRequest { |
| 61 | + return new ListImagesRequest().fromJsonString(jsonString, options) |
| 62 | + } |
| 63 | + |
| 64 | + static equals( |
| 65 | + a: ListImagesRequest | PlainMessage<ListImagesRequest> | undefined, |
| 66 | + b: ListImagesRequest | PlainMessage<ListImagesRequest> | undefined, |
| 67 | + ): boolean { |
| 68 | + return proto3.util.equals(ListImagesRequest, a, b) |
| 69 | + } |
| 70 | +} |
| 71 | + |
| 72 | +/** |
| 73 | + * @generated from message depot.build.v1.Image |
| 74 | + */ |
| 75 | +export class Image extends Message<Image> { |
| 76 | + /** |
| 77 | + * @generated from field: string tag = 1; |
| 78 | + */ |
| 79 | + tag = '' |
| 80 | + |
| 81 | + /** |
| 82 | + * @generated from field: string digest = 2; |
| 83 | + */ |
| 84 | + digest = '' |
| 85 | + |
| 86 | + /** |
| 87 | + * @generated from field: google.protobuf.Timestamp pushed_at = 3; |
| 88 | + */ |
| 89 | + pushedAt?: Timestamp |
| 90 | + |
| 91 | + /** |
| 92 | + * @generated from field: uint64 size_bytes = 4; |
| 93 | + */ |
| 94 | + sizeBytes = protoInt64.zero |
| 95 | + |
| 96 | + constructor(data?: PartialMessage<Image>) { |
| 97 | + super() |
| 98 | + proto3.util.initPartial(data, this) |
| 99 | + } |
| 100 | + |
| 101 | + static readonly runtime: typeof proto3 = proto3 |
| 102 | + static readonly typeName = 'depot.build.v1.Image' |
| 103 | + static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 104 | + {no: 1, name: 'tag', kind: 'scalar', T: 9 /* ScalarType.STRING */}, |
| 105 | + {no: 2, name: 'digest', kind: 'scalar', T: 9 /* ScalarType.STRING */}, |
| 106 | + {no: 3, name: 'pushed_at', kind: 'message', T: Timestamp}, |
| 107 | + {no: 4, name: 'size_bytes', kind: 'scalar', T: 4 /* ScalarType.UINT64 */}, |
| 108 | + ]) |
| 109 | + |
| 110 | + static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Image { |
| 111 | + return new Image().fromBinary(bytes, options) |
| 112 | + } |
| 113 | + |
| 114 | + static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Image { |
| 115 | + return new Image().fromJson(jsonValue, options) |
| 116 | + } |
| 117 | + |
| 118 | + static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Image { |
| 119 | + return new Image().fromJsonString(jsonString, options) |
| 120 | + } |
| 121 | + |
| 122 | + static equals(a: Image | PlainMessage<Image> | undefined, b: Image | PlainMessage<Image> | undefined): boolean { |
| 123 | + return proto3.util.equals(Image, a, b) |
| 124 | + } |
| 125 | +} |
| 126 | + |
| 127 | +/** |
| 128 | + * @generated from message depot.build.v1.ListImagesResponse |
| 129 | + */ |
| 130 | +export class ListImagesResponse extends Message<ListImagesResponse> { |
| 131 | + /** |
| 132 | + * @generated from field: repeated depot.build.v1.Image images = 1; |
| 133 | + */ |
| 134 | + images: Image[] = [] |
| 135 | + |
| 136 | + /** |
| 137 | + * The next page token, if there are more results |
| 138 | + * |
| 139 | + * @generated from field: optional string next_page_token = 2; |
| 140 | + */ |
| 141 | + nextPageToken?: string |
| 142 | + |
| 143 | + constructor(data?: PartialMessage<ListImagesResponse>) { |
| 144 | + super() |
| 145 | + proto3.util.initPartial(data, this) |
| 146 | + } |
| 147 | + |
| 148 | + static readonly runtime: typeof proto3 = proto3 |
| 149 | + static readonly typeName = 'depot.build.v1.ListImagesResponse' |
| 150 | + static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 151 | + {no: 1, name: 'images', kind: 'message', T: Image, repeated: true}, |
| 152 | + {no: 2, name: 'next_page_token', kind: 'scalar', T: 9 /* ScalarType.STRING */, opt: true}, |
| 153 | + ]) |
| 154 | + |
| 155 | + static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListImagesResponse { |
| 156 | + return new ListImagesResponse().fromBinary(bytes, options) |
| 157 | + } |
| 158 | + |
| 159 | + static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListImagesResponse { |
| 160 | + return new ListImagesResponse().fromJson(jsonValue, options) |
| 161 | + } |
| 162 | + |
| 163 | + static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListImagesResponse { |
| 164 | + return new ListImagesResponse().fromJsonString(jsonString, options) |
| 165 | + } |
| 166 | + |
| 167 | + static equals( |
| 168 | + a: ListImagesResponse | PlainMessage<ListImagesResponse> | undefined, |
| 169 | + b: ListImagesResponse | PlainMessage<ListImagesResponse> | undefined, |
| 170 | + ): boolean { |
| 171 | + return proto3.util.equals(ListImagesResponse, a, b) |
| 172 | + } |
| 173 | +} |
| 174 | + |
| 175 | +/** |
| 176 | + * @generated from message depot.build.v1.DeleteImageRequest |
| 177 | + */ |
| 178 | +export class DeleteImageRequest extends Message<DeleteImageRequest> { |
| 179 | + /** |
| 180 | + * @generated from field: string project_id = 1; |
| 181 | + */ |
| 182 | + projectId = '' |
| 183 | + |
| 184 | + /** |
| 185 | + * @generated from field: repeated string image_tags = 2; |
| 186 | + */ |
| 187 | + imageTags: string[] = [] |
| 188 | + |
| 189 | + constructor(data?: PartialMessage<DeleteImageRequest>) { |
| 190 | + super() |
| 191 | + proto3.util.initPartial(data, this) |
| 192 | + } |
| 193 | + |
| 194 | + static readonly runtime: typeof proto3 = proto3 |
| 195 | + static readonly typeName = 'depot.build.v1.DeleteImageRequest' |
| 196 | + static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 197 | + {no: 1, name: 'project_id', kind: 'scalar', T: 9 /* ScalarType.STRING */}, |
| 198 | + {no: 2, name: 'image_tags', kind: 'scalar', T: 9 /* ScalarType.STRING */, repeated: true}, |
| 199 | + ]) |
| 200 | + |
| 201 | + static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteImageRequest { |
| 202 | + return new DeleteImageRequest().fromBinary(bytes, options) |
| 203 | + } |
| 204 | + |
| 205 | + static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteImageRequest { |
| 206 | + return new DeleteImageRequest().fromJson(jsonValue, options) |
| 207 | + } |
| 208 | + |
| 209 | + static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteImageRequest { |
| 210 | + return new DeleteImageRequest().fromJsonString(jsonString, options) |
| 211 | + } |
| 212 | + |
| 213 | + static equals( |
| 214 | + a: DeleteImageRequest | PlainMessage<DeleteImageRequest> | undefined, |
| 215 | + b: DeleteImageRequest | PlainMessage<DeleteImageRequest> | undefined, |
| 216 | + ): boolean { |
| 217 | + return proto3.util.equals(DeleteImageRequest, a, b) |
| 218 | + } |
| 219 | +} |
| 220 | + |
| 221 | +/** |
| 222 | + * @generated from message depot.build.v1.DeleteImageResponse |
| 223 | + */ |
| 224 | +export class DeleteImageResponse extends Message<DeleteImageResponse> { |
| 225 | + constructor(data?: PartialMessage<DeleteImageResponse>) { |
| 226 | + super() |
| 227 | + proto3.util.initPartial(data, this) |
| 228 | + } |
| 229 | + |
| 230 | + static readonly runtime: typeof proto3 = proto3 |
| 231 | + static readonly typeName = 'depot.build.v1.DeleteImageResponse' |
| 232 | + static readonly fields: FieldList = proto3.util.newFieldList(() => []) |
| 233 | + |
| 234 | + static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteImageResponse { |
| 235 | + return new DeleteImageResponse().fromBinary(bytes, options) |
| 236 | + } |
| 237 | + |
| 238 | + static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteImageResponse { |
| 239 | + return new DeleteImageResponse().fromJson(jsonValue, options) |
| 240 | + } |
| 241 | + |
| 242 | + static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteImageResponse { |
| 243 | + return new DeleteImageResponse().fromJsonString(jsonString, options) |
| 244 | + } |
| 245 | + |
| 246 | + static equals( |
| 247 | + a: DeleteImageResponse | PlainMessage<DeleteImageResponse> | undefined, |
| 248 | + b: DeleteImageResponse | PlainMessage<DeleteImageResponse> | undefined, |
| 249 | + ): boolean { |
| 250 | + return proto3.util.equals(DeleteImageResponse, a, b) |
| 251 | + } |
| 252 | +} |
0 commit comments