-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
163 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// @generated by protoc-gen-es v1.6.0 with parameter "target=ts" | ||
// @generated from file api/v1/environment/environment.proto (package api.v1.environment, syntax proto3) | ||
/* eslint-disable */ | ||
// @ts-nocheck | ||
|
||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; | ||
import { Message, proto3 } from "@bufbuild/protobuf"; | ||
|
||
/** | ||
* @generated from message api.v1.environment.Environment | ||
*/ | ||
export class Environment extends Message<Environment> { | ||
/** | ||
* @generated from field: string environment_id = 1; | ||
*/ | ||
environmentId = ""; | ||
|
||
/** | ||
* @generated from field: bool default = 2; | ||
*/ | ||
default = false; | ||
|
||
constructor(data?: PartialMessage<Environment>) { | ||
super(); | ||
proto3.util.initPartial(data, this); | ||
} | ||
|
||
static readonly runtime: typeof proto3 = proto3; | ||
static readonly typeName = "api.v1.environment.Environment"; | ||
static readonly fields: FieldList = proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "environment_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
{ no: 2, name: "default", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, | ||
]); | ||
|
||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Environment { | ||
return new Environment().fromBinary(bytes, options); | ||
} | ||
|
||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Environment { | ||
return new Environment().fromJson(jsonValue, options); | ||
} | ||
|
||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Environment { | ||
return new Environment().fromJsonString(jsonString, options); | ||
} | ||
|
||
static equals(a: Environment | PlainMessage<Environment> | undefined, b: Environment | PlainMessage<Environment> | undefined): boolean { | ||
return proto3.util.equals(Environment, a, b); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// @generated by protoc-gen-connect-es v0.13.0 with parameter "target=ts" | ||
// @generated from file api/v1/environment/service.proto (package api.v1.environment, syntax proto3) | ||
/* eslint-disable */ | ||
// @ts-nocheck | ||
|
||
import { ListRequest, ListResponse } from "./service_pb.js"; | ||
import { MethodKind } from "@bufbuild/protobuf"; | ||
|
||
/** | ||
* @generated from service api.v1.environment.Service | ||
*/ | ||
export const Service = { | ||
typeName: "api.v1.environment.Service", | ||
methods: { | ||
/** | ||
* List available environments. | ||
* | ||
* @generated from rpc api.v1.environment.Service.List | ||
*/ | ||
list: { | ||
name: "List", | ||
I: ListRequest, | ||
O: ListResponse, | ||
kind: MethodKind.Unary, | ||
}, | ||
} | ||
} as const; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
// @generated by protoc-gen-es v1.6.0 with parameter "target=ts" | ||
// @generated from file api/v1/environment/service.proto (package api.v1.environment, syntax proto3) | ||
/* eslint-disable */ | ||
// @ts-nocheck | ||
|
||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; | ||
import { Message, proto3 } from "@bufbuild/protobuf"; | ||
import { Pagination } from "../../../model/common_pb.js"; | ||
import { Environment } from "./environment_pb.js"; | ||
|
||
/** | ||
* @generated from message api.v1.environment.ListRequest | ||
*/ | ||
export class ListRequest extends Message<ListRequest> { | ||
/** | ||
* @generated from field: model.Pagination pagination = 2; | ||
*/ | ||
pagination?: Pagination; | ||
|
||
constructor(data?: PartialMessage<ListRequest>) { | ||
super(); | ||
proto3.util.initPartial(data, this); | ||
} | ||
|
||
static readonly runtime: typeof proto3 = proto3; | ||
static readonly typeName = "api.v1.environment.ListRequest"; | ||
static readonly fields: FieldList = proto3.util.newFieldList(() => [ | ||
{ no: 2, name: "pagination", kind: "message", T: Pagination }, | ||
]); | ||
|
||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListRequest { | ||
return new ListRequest().fromBinary(bytes, options); | ||
} | ||
|
||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRequest { | ||
return new ListRequest().fromJson(jsonValue, options); | ||
} | ||
|
||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRequest { | ||
return new ListRequest().fromJsonString(jsonString, options); | ||
} | ||
|
||
static equals(a: ListRequest | PlainMessage<ListRequest> | undefined, b: ListRequest | PlainMessage<ListRequest> | undefined): boolean { | ||
return proto3.util.equals(ListRequest, a, b); | ||
} | ||
} | ||
|
||
/** | ||
* @generated from message api.v1.environment.ListResponse | ||
*/ | ||
export class ListResponse extends Message<ListResponse> { | ||
/** | ||
* @generated from field: repeated api.v1.environment.Environment environments = 1; | ||
*/ | ||
environments: Environment[] = []; | ||
|
||
constructor(data?: PartialMessage<ListResponse>) { | ||
super(); | ||
proto3.util.initPartial(data, this); | ||
} | ||
|
||
static readonly runtime: typeof proto3 = proto3; | ||
static readonly typeName = "api.v1.environment.ListResponse"; | ||
static readonly fields: FieldList = proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "environments", kind: "message", T: Environment, repeated: true }, | ||
]); | ||
|
||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListResponse { | ||
return new ListResponse().fromBinary(bytes, options); | ||
} | ||
|
||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListResponse { | ||
return new ListResponse().fromJson(jsonValue, options); | ||
} | ||
|
||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListResponse { | ||
return new ListResponse().fromJsonString(jsonString, options); | ||
} | ||
|
||
static equals(a: ListResponse | PlainMessage<ListResponse> | undefined, b: ListResponse | PlainMessage<ListResponse> | undefined): boolean { | ||
return proto3.util.equals(ListResponse, a, b); | ||
} | ||
} | ||
|