Skip to content

Commit

Permalink
APP-7407 Add getFragmentUsage endpoint (#616)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
ehhong and github-actions[bot] authored Feb 3, 2025
1 parent ac186c9 commit 92e2383
Show file tree
Hide file tree
Showing 9 changed files with 2,822 additions and 2,090 deletions.
4,290 changes: 2,200 additions & 2,090 deletions app/v1/app.pb.go

Large diffs are not rendered by default.

77 changes: 77 additions & 0 deletions app/v1/app.pb.gw.go

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

38 changes: 38 additions & 0 deletions app/v1/app_grpc.pb.go

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

61 changes: 61 additions & 0 deletions gen/js/app/v1/app_grpc_web_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -4170,6 +4170,67 @@ proto.viam.app.v1.AppServicePromiseClient.prototype.getFragmentHistory =
};


/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.viam.app.v1.GetFragmentUsageRequest,
* !proto.viam.app.v1.GetFragmentUsageResponse>}
*/
const methodDescriptor_AppService_GetFragmentUsage = new grpc.web.MethodDescriptor(
'/viam.app.v1.AppService/GetFragmentUsage',
grpc.web.MethodType.UNARY,
proto.viam.app.v1.GetFragmentUsageRequest,
proto.viam.app.v1.GetFragmentUsageResponse,
/**
* @param {!proto.viam.app.v1.GetFragmentUsageRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.viam.app.v1.GetFragmentUsageResponse.deserializeBinary
);


/**
* @param {!proto.viam.app.v1.GetFragmentUsageRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.viam.app.v1.GetFragmentUsageResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.viam.app.v1.GetFragmentUsageResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.viam.app.v1.AppServiceClient.prototype.getFragmentUsage =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/viam.app.v1.AppService/GetFragmentUsage',
request,
metadata || {},
methodDescriptor_AppService_GetFragmentUsage,
callback);
};


/**
* @param {!proto.viam.app.v1.GetFragmentUsageRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.viam.app.v1.GetFragmentUsageResponse>}
* Promise that resolves to the response
*/
proto.viam.app.v1.AppServicePromiseClient.prototype.getFragmentUsage =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/viam.app.v1.AppService/GetFragmentUsage',
request,
metadata || {},
methodDescriptor_AppService_GetFragmentUsage);
};


/**
* @const
* @type {!grpc.web.MethodDescriptor<
Expand Down
42 changes: 42 additions & 0 deletions gen/js/app/v1/app_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3065,6 +3065,48 @@ export namespace GetFragmentHistoryResponse {
}
}

export class GetFragmentUsageRequest extends jspb.Message {
getFragmentId(): string;
setFragmentId(value: string): void;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetFragmentUsageRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetFragmentUsageRequest): GetFragmentUsageRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: GetFragmentUsageRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetFragmentUsageRequest;
static deserializeBinaryFromReader(message: GetFragmentUsageRequest, reader: jspb.BinaryReader): GetFragmentUsageRequest;
}

export namespace GetFragmentUsageRequest {
export type AsObject = {
fragmentId: string,
}
}

export class GetFragmentUsageResponse extends jspb.Message {
clearVersionUsagesList(): void;
getVersionUsagesList(): Array<FragmentUsage>;
setVersionUsagesList(value: Array<FragmentUsage>): void;
addVersionUsages(value?: FragmentUsage, index?: number): FragmentUsage;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetFragmentUsageResponse.AsObject;
static toObject(includeInstance: boolean, msg: GetFragmentUsageResponse): GetFragmentUsageResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: GetFragmentUsageResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetFragmentUsageResponse;
static deserializeBinaryFromReader(message: GetFragmentUsageResponse, reader: jspb.BinaryReader): GetFragmentUsageResponse;
}

export namespace GetFragmentUsageResponse {
export type AsObject = {
versionUsagesList: Array<FragmentUsage.AsObject>,
}
}

export class ListRobotsRequest extends jspb.Message {
getLocationId(): string;
setLocationId(value: string): void;
Expand Down
Loading

0 comments on commit 92e2383

Please sign in to comment.