Skip to content

Commit

Permalink
Fix: codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Hare committed May 5, 2024
1 parent 8444e51 commit 56dab15
Show file tree
Hide file tree
Showing 5 changed files with 1,021 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/proto/provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -778,8 +778,8 @@
| ----------- | ------------ | ------------- | ------------| ------- | -------- |
| `GetStatus` | [.google.protobuf.Empty](#google.protobuf.Empty) | [Status](#akash.provider.v1.Status) | GetStatus defines a method to query provider state buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE buf:lint:ignore RPC_RESPONSE_STANDARD_NAME | GET|/v1/status|
| `StreamStatus` | [.google.protobuf.Empty](#google.protobuf.Empty) | [Status](#akash.provider.v1.Status) stream | Status defines a method to stream provider state buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE buf:lint:ignore RPC_RESPONSE_STANDARD_NAME | |
| `GetVersion` | [.google.protobuf.Empty](#google.protobuf.Empty) | [GetVersionResponse](#akash.provider.v1.GetVersionResponse) | GetVersion returns version information about the provider | |
| `Validate` | [ValidateRequest](#akash.provider.v1.ValidateRequest) | [ValidateResponse](#akash.provider.v1.ValidateResponse) | Validate checks if provider will bid on given groupspec | |
| `GetVersion` | [.google.protobuf.Empty](#google.protobuf.Empty) | [GetVersionResponse](#akash.provider.v1.GetVersionResponse) | GetVersion returns version information about the provider buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE | |
| `Validate` | [ValidateRequest](#akash.provider.v1.ValidateRequest) | [ValidateResponse](#akash.provider.v1.ValidateResponse) | Validate checks if provider will bid on given groupspec buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE | |
| `WIBOY` | [ValidateRequest](#akash.provider.v1.ValidateRequest) | [ValidateResponse](#akash.provider.v1.ValidateResponse) | WIBOY (will I bid on you) is an alias for Validate buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE buf:lint:ignore RPC_RESPONSE_STANDARD_NAME | |

<!-- end services -->
Expand Down
4 changes: 4 additions & 0 deletions go/provider/v1/service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions ts/src/generated/akash/provider/lease/v1/service.grpc-js.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export interface ServiceLogsRequest {
$type: 'akash.provider.lease.v1.ServiceLogsRequest';
leaseId: LeaseID | undefined;
services: string[];
lines: number;
}

/** ServiceLogs */
Expand Down Expand Up @@ -863,6 +864,7 @@ function createBaseServiceLogsRequest(): ServiceLogsRequest {
$type: 'akash.provider.lease.v1.ServiceLogsRequest',
leaseId: undefined,
services: [],
lines: 0,
};
}

Expand All @@ -879,6 +881,9 @@ export const ServiceLogsRequest = {
for (const v of message.services) {
writer.uint32(18).string(v!);
}
if (message.lines !== 0) {
writer.uint32(24).uint32(message.lines);
}
return writer;
},

Expand All @@ -904,6 +909,13 @@ export const ServiceLogsRequest = {

message.services.push(reader.string());
continue;
case 3:
if (tag !== 24) {
break;
}

message.lines = reader.uint32();
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
Expand All @@ -922,6 +934,7 @@ export const ServiceLogsRequest = {
services: globalThis.Array.isArray(object?.services)
? object.services.map((e: any) => globalThis.String(e))
: [],
lines: isSet(object.lines) ? globalThis.Number(object.lines) : 0,
};
},

Expand All @@ -933,6 +946,9 @@ export const ServiceLogsRequest = {
if (message.services?.length) {
obj.services = message.services;
}
if (message.lines !== 0) {
obj.lines = Math.round(message.lines);
}
return obj;
},

Expand All @@ -946,6 +962,7 @@ export const ServiceLogsRequest = {
? LeaseID.fromPartial(object.leaseId)
: undefined;
message.services = object.services?.map((e) => e) || [];
message.lines = object.lines ?? 0;
return message;
},
};
Expand Down
Loading

0 comments on commit 56dab15

Please sign in to comment.