-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ts): adds connect-es generated code (#184)
- Loading branch information
1 parent
b7813c9
commit 6c3667b
Showing
247 changed files
with
4,105 additions
and
54 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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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 @@ | ||
export * from '../generated/connect-es/akash/inventory/v1/resources_pb'; |
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,2 @@ | ||
export * from '../generated/connect-es/akash/provider/v1/service_connect'; | ||
export * from '../generated/connect-es/akash/provider/v1/status_pb'; |
73 changes: 73 additions & 0 deletions
73
ts/src/generated/connect-es/akash/inventory/v1/cluster_pb.ts
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,73 @@ | ||
// @generated by protoc-gen-es v1.9.0 with parameter "target=ts" | ||
// @generated from file akash/inventory/v1/cluster.proto (package akash.inventory.v1, syntax proto3) | ||
/* eslint-disable */ | ||
// @ts-nocheck | ||
|
||
import type { | ||
BinaryReadOptions, | ||
FieldList, | ||
JsonReadOptions, | ||
JsonValue, | ||
PartialMessage, | ||
PlainMessage, | ||
} from '@bufbuild/protobuf'; | ||
import { Message, proto3 } from '@bufbuild/protobuf'; | ||
import { Node } from './node_pb.js'; | ||
import { Storage } from './storage_pb.js'; | ||
|
||
/** | ||
* Cluster reports inventory across entire cluster | ||
* | ||
* @generated from message akash.inventory.v1.Cluster | ||
*/ | ||
export class Cluster extends Message<Cluster> { | ||
/** | ||
* @generated from field: repeated akash.inventory.v1.Node nodes = 1; | ||
*/ | ||
nodes: Node[] = []; | ||
|
||
/** | ||
* @generated from field: repeated akash.inventory.v1.Storage storage = 2; | ||
*/ | ||
storage: Storage[] = []; | ||
|
||
constructor(data?: PartialMessage<Cluster>) { | ||
super(); | ||
proto3.util.initPartial(data, this); | ||
} | ||
|
||
static readonly runtime: typeof proto3 = proto3; | ||
static readonly typeName = 'akash.inventory.v1.Cluster'; | ||
static readonly fields: FieldList = proto3.util.newFieldList(() => [ | ||
{ no: 1, name: 'nodes', kind: 'message', T: Node, repeated: true }, | ||
{ no: 2, name: 'storage', kind: 'message', T: Storage, repeated: true }, | ||
]); | ||
|
||
static fromBinary( | ||
bytes: Uint8Array, | ||
options?: Partial<BinaryReadOptions>, | ||
): Cluster { | ||
return new Cluster().fromBinary(bytes, options); | ||
} | ||
|
||
static fromJson( | ||
jsonValue: JsonValue, | ||
options?: Partial<JsonReadOptions>, | ||
): Cluster { | ||
return new Cluster().fromJson(jsonValue, options); | ||
} | ||
|
||
static fromJsonString( | ||
jsonString: string, | ||
options?: Partial<JsonReadOptions>, | ||
): Cluster { | ||
return new Cluster().fromJsonString(jsonString, options); | ||
} | ||
|
||
static equals( | ||
a: Cluster | PlainMessage<Cluster> | undefined, | ||
b: Cluster | PlainMessage<Cluster> | undefined, | ||
): boolean { | ||
return proto3.util.equals(Cluster, a, b); | ||
} | ||
} |
Oops, something went wrong.