@animeapis/webcache
Version:
Webcache client for Node.js
1,085 lines (889 loc) • 270 kB
TypeScript
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import * as Long from "long";
import {protobuf as $protobuf} from "google-gax";
/** Namespace animeshon. */
export namespace animeshon {
/** Namespace webcache. */
namespace webcache {
/** Namespace v1alpha1. */
namespace v1alpha1 {
/** Represents a WebCache */
class WebCache extends $protobuf.rpc.Service {
/**
* Constructs a new WebCache service.
* @param rpcImpl RPC implementation
* @param [requestDelimited=false] Whether requests are length-delimited
* @param [responseDelimited=false] Whether responses are length-delimited
*/
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
/**
* Creates new WebCache service using the specified rpc implementation.
* @param rpcImpl RPC implementation
* @param [requestDelimited=false] Whether requests are length-delimited
* @param [responseDelimited=false] Whether responses are length-delimited
* @returns RPC service. Useful where requests and/or responses are streamed.
*/
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): WebCache;
/**
* Calls CreateCache.
* @param request CreateCacheRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Cache
*/
public createCache(request: animeshon.webcache.v1alpha1.ICreateCacheRequest, callback: animeshon.webcache.v1alpha1.WebCache.CreateCacheCallback): void;
/**
* Calls CreateCache.
* @param request CreateCacheRequest message or plain object
* @returns Promise
*/
public createCache(request: animeshon.webcache.v1alpha1.ICreateCacheRequest): Promise<animeshon.webcache.v1alpha1.Cache>;
/**
* Calls ListCaches.
* @param request ListCachesRequest message or plain object
* @param callback Node-style callback called with the error, if any, and ListCachesResponse
*/
public listCaches(request: animeshon.webcache.v1alpha1.IListCachesRequest, callback: animeshon.webcache.v1alpha1.WebCache.ListCachesCallback): void;
/**
* Calls ListCaches.
* @param request ListCachesRequest message or plain object
* @returns Promise
*/
public listCaches(request: animeshon.webcache.v1alpha1.IListCachesRequest): Promise<animeshon.webcache.v1alpha1.ListCachesResponse>;
/**
* Calls GetCache.
* @param request GetCacheRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Cache
*/
public getCache(request: animeshon.webcache.v1alpha1.IGetCacheRequest, callback: animeshon.webcache.v1alpha1.WebCache.GetCacheCallback): void;
/**
* Calls GetCache.
* @param request GetCacheRequest message or plain object
* @returns Promise
*/
public getCache(request: animeshon.webcache.v1alpha1.IGetCacheRequest): Promise<animeshon.webcache.v1alpha1.Cache>;
/**
* Calls DeleteCache.
* @param request DeleteCacheRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Empty
*/
public deleteCache(request: animeshon.webcache.v1alpha1.IDeleteCacheRequest, callback: animeshon.webcache.v1alpha1.WebCache.DeleteCacheCallback): void;
/**
* Calls DeleteCache.
* @param request DeleteCacheRequest message or plain object
* @returns Promise
*/
public deleteCache(request: animeshon.webcache.v1alpha1.IDeleteCacheRequest): Promise<google.protobuf.Empty>;
}
namespace WebCache {
/**
* Callback as used by {@link animeshon.webcache.v1alpha1.WebCache#createCache}.
* @param error Error, if any
* @param [response] Cache
*/
type CreateCacheCallback = (error: (Error|null), response?: animeshon.webcache.v1alpha1.Cache) => void;
/**
* Callback as used by {@link animeshon.webcache.v1alpha1.WebCache#listCaches}.
* @param error Error, if any
* @param [response] ListCachesResponse
*/
type ListCachesCallback = (error: (Error|null), response?: animeshon.webcache.v1alpha1.ListCachesResponse) => void;
/**
* Callback as used by {@link animeshon.webcache.v1alpha1.WebCache#getCache}.
* @param error Error, if any
* @param [response] Cache
*/
type GetCacheCallback = (error: (Error|null), response?: animeshon.webcache.v1alpha1.Cache) => void;
/**
* Callback as used by {@link animeshon.webcache.v1alpha1.WebCache#deleteCache}.
* @param error Error, if any
* @param [response] Empty
*/
type DeleteCacheCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
}
/** Properties of a Cache. */
interface ICache {
/** Cache name */
name?: (string|null);
/** Cache scheme */
scheme?: (string|null);
/** Cache uri */
uri?: (string|null);
/** Cache mimeType */
mimeType?: (string|null);
/** Cache statusCode */
statusCode?: (number|null);
/** Cache redirectUri */
redirectUri?: (string|null);
/** Cache resource */
resource?: (string|null);
/** Cache revisionId */
revisionId?: (string|null);
/** Cache revisionCreateTime */
revisionCreateTime?: (google.protobuf.ITimestamp|null);
/** Cache revisionExpireTime */
revisionExpireTime?: (google.protobuf.ITimestamp|null);
}
/** Represents a Cache. */
class Cache implements ICache {
/**
* Constructs a new Cache.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.webcache.v1alpha1.ICache);
/** Cache name. */
public name: string;
/** Cache scheme. */
public scheme: string;
/** Cache uri. */
public uri: string;
/** Cache mimeType. */
public mimeType: string;
/** Cache statusCode. */
public statusCode: number;
/** Cache redirectUri. */
public redirectUri: string;
/** Cache resource. */
public resource: string;
/** Cache revisionId. */
public revisionId: string;
/** Cache revisionCreateTime. */
public revisionCreateTime?: (google.protobuf.ITimestamp|null);
/** Cache revisionExpireTime. */
public revisionExpireTime?: (google.protobuf.ITimestamp|null);
/**
* Creates a new Cache instance using the specified properties.
* @param [properties] Properties to set
* @returns Cache instance
*/
public static create(properties?: animeshon.webcache.v1alpha1.ICache): animeshon.webcache.v1alpha1.Cache;
/**
* Encodes the specified Cache message. Does not implicitly {@link animeshon.webcache.v1alpha1.Cache.verify|verify} messages.
* @param message Cache message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.webcache.v1alpha1.ICache, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Cache message, length delimited. Does not implicitly {@link animeshon.webcache.v1alpha1.Cache.verify|verify} messages.
* @param message Cache message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.webcache.v1alpha1.ICache, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Cache message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Cache
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): animeshon.webcache.v1alpha1.Cache;
/**
* Decodes a Cache message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Cache
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): animeshon.webcache.v1alpha1.Cache;
/**
* Verifies a Cache message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a Cache message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Cache
*/
public static fromObject(object: { [k: string]: any }): animeshon.webcache.v1alpha1.Cache;
/**
* Creates a plain object from a Cache message. Also converts values to other types if specified.
* @param message Cache
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.webcache.v1alpha1.Cache, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Cache to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a CreateCacheRequest. */
interface ICreateCacheRequest {
/** CreateCacheRequest cache */
cache?: (animeshon.webcache.v1alpha1.ICache|null);
/** CreateCacheRequest ttl */
ttl?: (google.protobuf.IDuration|null);
}
/** Represents a CreateCacheRequest. */
class CreateCacheRequest implements ICreateCacheRequest {
/**
* Constructs a new CreateCacheRequest.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.webcache.v1alpha1.ICreateCacheRequest);
/** CreateCacheRequest cache. */
public cache?: (animeshon.webcache.v1alpha1.ICache|null);
/** CreateCacheRequest ttl. */
public ttl?: (google.protobuf.IDuration|null);
/**
* Creates a new CreateCacheRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns CreateCacheRequest instance
*/
public static create(properties?: animeshon.webcache.v1alpha1.ICreateCacheRequest): animeshon.webcache.v1alpha1.CreateCacheRequest;
/**
* Encodes the specified CreateCacheRequest message. Does not implicitly {@link animeshon.webcache.v1alpha1.CreateCacheRequest.verify|verify} messages.
* @param message CreateCacheRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.webcache.v1alpha1.ICreateCacheRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CreateCacheRequest message, length delimited. Does not implicitly {@link animeshon.webcache.v1alpha1.CreateCacheRequest.verify|verify} messages.
* @param message CreateCacheRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.webcache.v1alpha1.ICreateCacheRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CreateCacheRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CreateCacheRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): animeshon.webcache.v1alpha1.CreateCacheRequest;
/**
* Decodes a CreateCacheRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CreateCacheRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): animeshon.webcache.v1alpha1.CreateCacheRequest;
/**
* Verifies a CreateCacheRequest message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a CreateCacheRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CreateCacheRequest
*/
public static fromObject(object: { [k: string]: any }): animeshon.webcache.v1alpha1.CreateCacheRequest;
/**
* Creates a plain object from a CreateCacheRequest message. Also converts values to other types if specified.
* @param message CreateCacheRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.webcache.v1alpha1.CreateCacheRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CreateCacheRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a ListCachesRequest. */
interface IListCachesRequest {
/** ListCachesRequest pageSize */
pageSize?: (number|null);
/** ListCachesRequest pageToken */
pageToken?: (string|null);
/** ListCachesRequest filter */
filter?: (string|null);
/** ListCachesRequest onlyLatestRevision */
onlyLatestRevision?: (boolean|null);
}
/** Represents a ListCachesRequest. */
class ListCachesRequest implements IListCachesRequest {
/**
* Constructs a new ListCachesRequest.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.webcache.v1alpha1.IListCachesRequest);
/** ListCachesRequest pageSize. */
public pageSize: number;
/** ListCachesRequest pageToken. */
public pageToken: string;
/** ListCachesRequest filter. */
public filter: string;
/** ListCachesRequest onlyLatestRevision. */
public onlyLatestRevision: boolean;
/**
* Creates a new ListCachesRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns ListCachesRequest instance
*/
public static create(properties?: animeshon.webcache.v1alpha1.IListCachesRequest): animeshon.webcache.v1alpha1.ListCachesRequest;
/**
* Encodes the specified ListCachesRequest message. Does not implicitly {@link animeshon.webcache.v1alpha1.ListCachesRequest.verify|verify} messages.
* @param message ListCachesRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.webcache.v1alpha1.IListCachesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ListCachesRequest message, length delimited. Does not implicitly {@link animeshon.webcache.v1alpha1.ListCachesRequest.verify|verify} messages.
* @param message ListCachesRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.webcache.v1alpha1.IListCachesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ListCachesRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ListCachesRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): animeshon.webcache.v1alpha1.ListCachesRequest;
/**
* Decodes a ListCachesRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ListCachesRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): animeshon.webcache.v1alpha1.ListCachesRequest;
/**
* Verifies a ListCachesRequest message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a ListCachesRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ListCachesRequest
*/
public static fromObject(object: { [k: string]: any }): animeshon.webcache.v1alpha1.ListCachesRequest;
/**
* Creates a plain object from a ListCachesRequest message. Also converts values to other types if specified.
* @param message ListCachesRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.webcache.v1alpha1.ListCachesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ListCachesRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a ListCachesResponse. */
interface IListCachesResponse {
/** ListCachesResponse caches */
caches?: (animeshon.webcache.v1alpha1.ICache[]|null);
/** ListCachesResponse nextPageToken */
nextPageToken?: (string|null);
}
/** Represents a ListCachesResponse. */
class ListCachesResponse implements IListCachesResponse {
/**
* Constructs a new ListCachesResponse.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.webcache.v1alpha1.IListCachesResponse);
/** ListCachesResponse caches. */
public caches: animeshon.webcache.v1alpha1.ICache[];
/** ListCachesResponse nextPageToken. */
public nextPageToken: string;
/**
* Creates a new ListCachesResponse instance using the specified properties.
* @param [properties] Properties to set
* @returns ListCachesResponse instance
*/
public static create(properties?: animeshon.webcache.v1alpha1.IListCachesResponse): animeshon.webcache.v1alpha1.ListCachesResponse;
/**
* Encodes the specified ListCachesResponse message. Does not implicitly {@link animeshon.webcache.v1alpha1.ListCachesResponse.verify|verify} messages.
* @param message ListCachesResponse message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.webcache.v1alpha1.IListCachesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ListCachesResponse message, length delimited. Does not implicitly {@link animeshon.webcache.v1alpha1.ListCachesResponse.verify|verify} messages.
* @param message ListCachesResponse message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.webcache.v1alpha1.IListCachesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ListCachesResponse message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ListCachesResponse
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): animeshon.webcache.v1alpha1.ListCachesResponse;
/**
* Decodes a ListCachesResponse message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ListCachesResponse
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): animeshon.webcache.v1alpha1.ListCachesResponse;
/**
* Verifies a ListCachesResponse message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a ListCachesResponse message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ListCachesResponse
*/
public static fromObject(object: { [k: string]: any }): animeshon.webcache.v1alpha1.ListCachesResponse;
/**
* Creates a plain object from a ListCachesResponse message. Also converts values to other types if specified.
* @param message ListCachesResponse
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.webcache.v1alpha1.ListCachesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ListCachesResponse to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a GetCacheRequest. */
interface IGetCacheRequest {
/** GetCacheRequest name */
name?: (string|null);
}
/** Represents a GetCacheRequest. */
class GetCacheRequest implements IGetCacheRequest {
/**
* Constructs a new GetCacheRequest.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.webcache.v1alpha1.IGetCacheRequest);
/** GetCacheRequest name. */
public name: string;
/**
* Creates a new GetCacheRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns GetCacheRequest instance
*/
public static create(properties?: animeshon.webcache.v1alpha1.IGetCacheRequest): animeshon.webcache.v1alpha1.GetCacheRequest;
/**
* Encodes the specified GetCacheRequest message. Does not implicitly {@link animeshon.webcache.v1alpha1.GetCacheRequest.verify|verify} messages.
* @param message GetCacheRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.webcache.v1alpha1.IGetCacheRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified GetCacheRequest message, length delimited. Does not implicitly {@link animeshon.webcache.v1alpha1.GetCacheRequest.verify|verify} messages.
* @param message GetCacheRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.webcache.v1alpha1.IGetCacheRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a GetCacheRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns GetCacheRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): animeshon.webcache.v1alpha1.GetCacheRequest;
/**
* Decodes a GetCacheRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns GetCacheRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): animeshon.webcache.v1alpha1.GetCacheRequest;
/**
* Verifies a GetCacheRequest message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a GetCacheRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns GetCacheRequest
*/
public static fromObject(object: { [k: string]: any }): animeshon.webcache.v1alpha1.GetCacheRequest;
/**
* Creates a plain object from a GetCacheRequest message. Also converts values to other types if specified.
* @param message GetCacheRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.webcache.v1alpha1.GetCacheRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this GetCacheRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a DeleteCacheRequest. */
interface IDeleteCacheRequest {
/** DeleteCacheRequest name */
name?: (string|null);
}
/** Represents a DeleteCacheRequest. */
class DeleteCacheRequest implements IDeleteCacheRequest {
/**
* Constructs a new DeleteCacheRequest.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.webcache.v1alpha1.IDeleteCacheRequest);
/** DeleteCacheRequest name. */
public name: string;
/**
* Creates a new DeleteCacheRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns DeleteCacheRequest instance
*/
public static create(properties?: animeshon.webcache.v1alpha1.IDeleteCacheRequest): animeshon.webcache.v1alpha1.DeleteCacheRequest;
/**
* Encodes the specified DeleteCacheRequest message. Does not implicitly {@link animeshon.webcache.v1alpha1.DeleteCacheRequest.verify|verify} messages.
* @param message DeleteCacheRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.webcache.v1alpha1.IDeleteCacheRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified DeleteCacheRequest message, length delimited. Does not implicitly {@link animeshon.webcache.v1alpha1.DeleteCacheRequest.verify|verify} messages.
* @param message DeleteCacheRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.webcache.v1alpha1.IDeleteCacheRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a DeleteCacheRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns DeleteCacheRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): animeshon.webcache.v1alpha1.DeleteCacheRequest;
/**
* Decodes a DeleteCacheRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns DeleteCacheRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): animeshon.webcache.v1alpha1.DeleteCacheRequest;
/**
* Verifies a DeleteCacheRequest message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a DeleteCacheRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns DeleteCacheRequest
*/
public static fromObject(object: { [k: string]: any }): animeshon.webcache.v1alpha1.DeleteCacheRequest;
/**
* Creates a plain object from a DeleteCacheRequest message. Also converts values to other types if specified.
* @param message DeleteCacheRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.webcache.v1alpha1.DeleteCacheRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this DeleteCacheRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
}
}
}
/** Namespace google. */
export namespace google {
/** Namespace api. */
namespace api {
/** Properties of a Http. */
interface IHttp {
/** Http rules */
rules?: (google.api.IHttpRule[]|null);
/** Http fullyDecodeReservedExpansion */
fullyDecodeReservedExpansion?: (boolean|null);
}
/** Represents a Http. */
class Http implements IHttp {
/**
* Constructs a new Http.
* @param [properties] Properties to set
*/
constructor(properties?: google.api.IHttp);
/** Http rules. */
public rules: google.api.IHttpRule[];
/** Http fullyDecodeReservedExpansion. */
public fullyDecodeReservedExpansion: boolean;
/**
* Creates a new Http instance using the specified properties.
* @param [properties] Properties to set
* @returns Http instance
*/
public static create(properties?: google.api.IHttp): google.api.Http;
/**
* Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
* @param message Http message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
* @param message Http message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Http message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Http
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
/**
* Decodes a Http message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Http
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
/**
* Verifies a Http message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a Http message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Http
*/
public static fromObject(object: { [k: string]: any }): google.api.Http;
/**
* Creates a plain object from a Http message. Also converts values to other types if specified.
* @param message Http
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Http to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a HttpRule. */
interface IHttpRule {
/** HttpRule selector */
selector?: (string|null);
/** HttpRule get */
get?: (string|null);
/** HttpRule put */
put?: (string|null);
/** HttpRule post */
post?: (string|null);
/** HttpRule delete */
"delete"?: (string|null);
/** HttpRule patch */
patch?: (string|null);
/** HttpRule custom */
custom?: (google.api.ICustomHttpPattern|null);
/** HttpRule body */
body?: (string|null);
/** HttpRule responseBody */
responseBody?: (string|null);
/** HttpRule additionalBindings */
additionalBindings?: (google.api.IHttpRule[]|null);
}
/** Represents a HttpRule. */
class HttpRule implements IHttpRule {
/**
* Constructs a new HttpRule.
* @param [properties] Properties to set
*/
constructor(properties?: google.api.IHttpRule);
/** HttpRule selector. */
public selector: string;
/** HttpRule get. */
public get?: (string|null);
/** HttpRule put. */
public put?: (string|null);
/** HttpRule post. */
public post?: (string|null);
/** HttpRule delete. */
public delete?: (string|null);
/** HttpRule patch. */
public patch?: (string|null);
/** HttpRule custom. */
public custom?: (google.api.ICustomHttpPattern|null);
/** HttpRule body. */
public body: string;
/** HttpRule responseBody. */
public responseBody: string;
/** HttpRule additionalBindings. */
public additionalBindings: google.api.IHttpRule[];
/** HttpRule pattern. */
public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
/**
* Creates a new HttpRule instance using the specified properties.
* @param [properties] Properties to set
* @returns HttpRule instance
*/
public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
/**
* Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
* @param message HttpRule message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
* @param message HttpRule message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a HttpRule message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns HttpRule
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
/**
* Decodes a HttpRule message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns HttpRule
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
/**
* Verifies a HttpRule message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns HttpRule
*/
public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
/**
* Creates a plain object from a HttpRule message. Also converts values to other types if specified.
* @param message HttpRule
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this HttpRule to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a CustomHttpPattern. */
interface ICustomHttpPattern {
/** CustomHttpPattern kind */
kind?: (string|null);
/** CustomHttpPattern path */
path?: (string|null);
}
/** Represents a CustomHttpPattern. */
class CustomHttpPattern implements ICustomHttpPattern {
/**
* Constructs a new CustomHttpPattern.
* @param [properties] Properties to set
*/
constructor(properties?: google.api.ICustomHttpPattern);
/** CustomHttpPattern kind. */
public kind: string;
/** CustomHttpPattern path. */
public path: string;
/**
* Creates a new CustomHttpPattern instance using the specified properties.
* @param [properties] Properties to set
* @returns CustomHttpPattern instance
*/
public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
/**
* Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
* @param message CustomHttpPattern message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
* @param message CustomHttpPattern message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CustomHttpPattern message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CustomHttpPattern
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
/**
* Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CustomHttpPattern
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
/**
* Verifies a CustomHttpPattern message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a CustomHttpPattern m