UNPKG

@google-cloud/tpu

Version:
1,001 lines (824 loc) 1.31 MB
// Copyright 2025 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 type {protobuf as $protobuf} from "google-gax"; import Long = require("long"); /** Namespace google. */ export namespace google { /** Namespace cloud. */ namespace cloud { /** Namespace tpu. */ namespace tpu { /** Namespace v1. */ namespace v1 { /** Represents a Tpu */ class Tpu extends $protobuf.rpc.Service { /** * Constructs a new Tpu 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 Tpu 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): Tpu; /** * Calls ListNodes. * @param request ListNodesRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListNodesResponse */ public listNodes(request: google.cloud.tpu.v1.IListNodesRequest, callback: google.cloud.tpu.v1.Tpu.ListNodesCallback): void; /** * Calls ListNodes. * @param request ListNodesRequest message or plain object * @returns Promise */ public listNodes(request: google.cloud.tpu.v1.IListNodesRequest): Promise<google.cloud.tpu.v1.ListNodesResponse>; /** * Calls GetNode. * @param request GetNodeRequest message or plain object * @param callback Node-style callback called with the error, if any, and Node */ public getNode(request: google.cloud.tpu.v1.IGetNodeRequest, callback: google.cloud.tpu.v1.Tpu.GetNodeCallback): void; /** * Calls GetNode. * @param request GetNodeRequest message or plain object * @returns Promise */ public getNode(request: google.cloud.tpu.v1.IGetNodeRequest): Promise<google.cloud.tpu.v1.Node>; /** * Calls CreateNode. * @param request CreateNodeRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public createNode(request: google.cloud.tpu.v1.ICreateNodeRequest, callback: google.cloud.tpu.v1.Tpu.CreateNodeCallback): void; /** * Calls CreateNode. * @param request CreateNodeRequest message or plain object * @returns Promise */ public createNode(request: google.cloud.tpu.v1.ICreateNodeRequest): Promise<google.longrunning.Operation>; /** * Calls DeleteNode. * @param request DeleteNodeRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public deleteNode(request: google.cloud.tpu.v1.IDeleteNodeRequest, callback: google.cloud.tpu.v1.Tpu.DeleteNodeCallback): void; /** * Calls DeleteNode. * @param request DeleteNodeRequest message or plain object * @returns Promise */ public deleteNode(request: google.cloud.tpu.v1.IDeleteNodeRequest): Promise<google.longrunning.Operation>; /** * Calls ReimageNode. * @param request ReimageNodeRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public reimageNode(request: google.cloud.tpu.v1.IReimageNodeRequest, callback: google.cloud.tpu.v1.Tpu.ReimageNodeCallback): void; /** * Calls ReimageNode. * @param request ReimageNodeRequest message or plain object * @returns Promise */ public reimageNode(request: google.cloud.tpu.v1.IReimageNodeRequest): Promise<google.longrunning.Operation>; /** * Calls StopNode. * @param request StopNodeRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public stopNode(request: google.cloud.tpu.v1.IStopNodeRequest, callback: google.cloud.tpu.v1.Tpu.StopNodeCallback): void; /** * Calls StopNode. * @param request StopNodeRequest message or plain object * @returns Promise */ public stopNode(request: google.cloud.tpu.v1.IStopNodeRequest): Promise<google.longrunning.Operation>; /** * Calls StartNode. * @param request StartNodeRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public startNode(request: google.cloud.tpu.v1.IStartNodeRequest, callback: google.cloud.tpu.v1.Tpu.StartNodeCallback): void; /** * Calls StartNode. * @param request StartNodeRequest message or plain object * @returns Promise */ public startNode(request: google.cloud.tpu.v1.IStartNodeRequest): Promise<google.longrunning.Operation>; /** * Calls ListTensorFlowVersions. * @param request ListTensorFlowVersionsRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListTensorFlowVersionsResponse */ public listTensorFlowVersions(request: google.cloud.tpu.v1.IListTensorFlowVersionsRequest, callback: google.cloud.tpu.v1.Tpu.ListTensorFlowVersionsCallback): void; /** * Calls ListTensorFlowVersions. * @param request ListTensorFlowVersionsRequest message or plain object * @returns Promise */ public listTensorFlowVersions(request: google.cloud.tpu.v1.IListTensorFlowVersionsRequest): Promise<google.cloud.tpu.v1.ListTensorFlowVersionsResponse>; /** * Calls GetTensorFlowVersion. * @param request GetTensorFlowVersionRequest message or plain object * @param callback Node-style callback called with the error, if any, and TensorFlowVersion */ public getTensorFlowVersion(request: google.cloud.tpu.v1.IGetTensorFlowVersionRequest, callback: google.cloud.tpu.v1.Tpu.GetTensorFlowVersionCallback): void; /** * Calls GetTensorFlowVersion. * @param request GetTensorFlowVersionRequest message or plain object * @returns Promise */ public getTensorFlowVersion(request: google.cloud.tpu.v1.IGetTensorFlowVersionRequest): Promise<google.cloud.tpu.v1.TensorFlowVersion>; /** * Calls ListAcceleratorTypes. * @param request ListAcceleratorTypesRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListAcceleratorTypesResponse */ public listAcceleratorTypes(request: google.cloud.tpu.v1.IListAcceleratorTypesRequest, callback: google.cloud.tpu.v1.Tpu.ListAcceleratorTypesCallback): void; /** * Calls ListAcceleratorTypes. * @param request ListAcceleratorTypesRequest message or plain object * @returns Promise */ public listAcceleratorTypes(request: google.cloud.tpu.v1.IListAcceleratorTypesRequest): Promise<google.cloud.tpu.v1.ListAcceleratorTypesResponse>; /** * Calls GetAcceleratorType. * @param request GetAcceleratorTypeRequest message or plain object * @param callback Node-style callback called with the error, if any, and AcceleratorType */ public getAcceleratorType(request: google.cloud.tpu.v1.IGetAcceleratorTypeRequest, callback: google.cloud.tpu.v1.Tpu.GetAcceleratorTypeCallback): void; /** * Calls GetAcceleratorType. * @param request GetAcceleratorTypeRequest message or plain object * @returns Promise */ public getAcceleratorType(request: google.cloud.tpu.v1.IGetAcceleratorTypeRequest): Promise<google.cloud.tpu.v1.AcceleratorType>; } namespace Tpu { /** * Callback as used by {@link google.cloud.tpu.v1.Tpu|listNodes}. * @param error Error, if any * @param [response] ListNodesResponse */ type ListNodesCallback = (error: (Error|null), response?: google.cloud.tpu.v1.ListNodesResponse) => void; /** * Callback as used by {@link google.cloud.tpu.v1.Tpu|getNode}. * @param error Error, if any * @param [response] Node */ type GetNodeCallback = (error: (Error|null), response?: google.cloud.tpu.v1.Node) => void; /** * Callback as used by {@link google.cloud.tpu.v1.Tpu|createNode}. * @param error Error, if any * @param [response] Operation */ type CreateNodeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.cloud.tpu.v1.Tpu|deleteNode}. * @param error Error, if any * @param [response] Operation */ type DeleteNodeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.cloud.tpu.v1.Tpu|reimageNode}. * @param error Error, if any * @param [response] Operation */ type ReimageNodeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.cloud.tpu.v1.Tpu|stopNode}. * @param error Error, if any * @param [response] Operation */ type StopNodeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.cloud.tpu.v1.Tpu|startNode}. * @param error Error, if any * @param [response] Operation */ type StartNodeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.cloud.tpu.v1.Tpu|listTensorFlowVersions}. * @param error Error, if any * @param [response] ListTensorFlowVersionsResponse */ type ListTensorFlowVersionsCallback = (error: (Error|null), response?: google.cloud.tpu.v1.ListTensorFlowVersionsResponse) => void; /** * Callback as used by {@link google.cloud.tpu.v1.Tpu|getTensorFlowVersion}. * @param error Error, if any * @param [response] TensorFlowVersion */ type GetTensorFlowVersionCallback = (error: (Error|null), response?: google.cloud.tpu.v1.TensorFlowVersion) => void; /** * Callback as used by {@link google.cloud.tpu.v1.Tpu|listAcceleratorTypes}. * @param error Error, if any * @param [response] ListAcceleratorTypesResponse */ type ListAcceleratorTypesCallback = (error: (Error|null), response?: google.cloud.tpu.v1.ListAcceleratorTypesResponse) => void; /** * Callback as used by {@link google.cloud.tpu.v1.Tpu|getAcceleratorType}. * @param error Error, if any * @param [response] AcceleratorType */ type GetAcceleratorTypeCallback = (error: (Error|null), response?: google.cloud.tpu.v1.AcceleratorType) => void; } /** Properties of a SchedulingConfig. */ interface ISchedulingConfig { /** SchedulingConfig preemptible */ preemptible?: (boolean|null); /** SchedulingConfig reserved */ reserved?: (boolean|null); } /** Represents a SchedulingConfig. */ class SchedulingConfig implements ISchedulingConfig { /** * Constructs a new SchedulingConfig. * @param [properties] Properties to set */ constructor(properties?: google.cloud.tpu.v1.ISchedulingConfig); /** SchedulingConfig preemptible. */ public preemptible: boolean; /** SchedulingConfig reserved. */ public reserved: boolean; /** * Creates a new SchedulingConfig instance using the specified properties. * @param [properties] Properties to set * @returns SchedulingConfig instance */ public static create(properties?: google.cloud.tpu.v1.ISchedulingConfig): google.cloud.tpu.v1.SchedulingConfig; /** * Encodes the specified SchedulingConfig message. Does not implicitly {@link google.cloud.tpu.v1.SchedulingConfig.verify|verify} messages. * @param message SchedulingConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.tpu.v1.ISchedulingConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified SchedulingConfig message, length delimited. Does not implicitly {@link google.cloud.tpu.v1.SchedulingConfig.verify|verify} messages. * @param message SchedulingConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.tpu.v1.ISchedulingConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SchedulingConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns SchedulingConfig * @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.cloud.tpu.v1.SchedulingConfig; /** * Decodes a SchedulingConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns SchedulingConfig * @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.cloud.tpu.v1.SchedulingConfig; /** * Verifies a SchedulingConfig 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 SchedulingConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns SchedulingConfig */ public static fromObject(object: { [k: string]: any }): google.cloud.tpu.v1.SchedulingConfig; /** * Creates a plain object from a SchedulingConfig message. Also converts values to other types if specified. * @param message SchedulingConfig * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.tpu.v1.SchedulingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this SchedulingConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for SchedulingConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a NetworkEndpoint. */ interface INetworkEndpoint { /** NetworkEndpoint ipAddress */ ipAddress?: (string|null); /** NetworkEndpoint port */ port?: (number|null); } /** Represents a NetworkEndpoint. */ class NetworkEndpoint implements INetworkEndpoint { /** * Constructs a new NetworkEndpoint. * @param [properties] Properties to set */ constructor(properties?: google.cloud.tpu.v1.INetworkEndpoint); /** NetworkEndpoint ipAddress. */ public ipAddress: string; /** NetworkEndpoint port. */ public port: number; /** * Creates a new NetworkEndpoint instance using the specified properties. * @param [properties] Properties to set * @returns NetworkEndpoint instance */ public static create(properties?: google.cloud.tpu.v1.INetworkEndpoint): google.cloud.tpu.v1.NetworkEndpoint; /** * Encodes the specified NetworkEndpoint message. Does not implicitly {@link google.cloud.tpu.v1.NetworkEndpoint.verify|verify} messages. * @param message NetworkEndpoint message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.tpu.v1.INetworkEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified NetworkEndpoint message, length delimited. Does not implicitly {@link google.cloud.tpu.v1.NetworkEndpoint.verify|verify} messages. * @param message NetworkEndpoint message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.tpu.v1.INetworkEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a NetworkEndpoint message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns NetworkEndpoint * @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.cloud.tpu.v1.NetworkEndpoint; /** * Decodes a NetworkEndpoint message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns NetworkEndpoint * @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.cloud.tpu.v1.NetworkEndpoint; /** * Verifies a NetworkEndpoint 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 NetworkEndpoint message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns NetworkEndpoint */ public static fromObject(object: { [k: string]: any }): google.cloud.tpu.v1.NetworkEndpoint; /** * Creates a plain object from a NetworkEndpoint message. Also converts values to other types if specified. * @param message NetworkEndpoint * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.tpu.v1.NetworkEndpoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this NetworkEndpoint to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for NetworkEndpoint * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Node. */ interface INode { /** Node name */ name?: (string|null); /** Node description */ description?: (string|null); /** Node acceleratorType */ acceleratorType?: (string|null); /** Node ipAddress */ ipAddress?: (string|null); /** Node port */ port?: (string|null); /** Node state */ state?: (google.cloud.tpu.v1.Node.State|keyof typeof google.cloud.tpu.v1.Node.State|null); /** Node healthDescription */ healthDescription?: (string|null); /** Node tensorflowVersion */ tensorflowVersion?: (string|null); /** Node network */ network?: (string|null); /** Node cidrBlock */ cidrBlock?: (string|null); /** Node serviceAccount */ serviceAccount?: (string|null); /** Node createTime */ createTime?: (google.protobuf.ITimestamp|null); /** Node schedulingConfig */ schedulingConfig?: (google.cloud.tpu.v1.ISchedulingConfig|null); /** Node networkEndpoints */ networkEndpoints?: (google.cloud.tpu.v1.INetworkEndpoint[]|null); /** Node health */ health?: (google.cloud.tpu.v1.Node.Health|keyof typeof google.cloud.tpu.v1.Node.Health|null); /** Node labels */ labels?: ({ [k: string]: string }|null); /** Node useServiceNetworking */ useServiceNetworking?: (boolean|null); /** Node apiVersion */ apiVersion?: (google.cloud.tpu.v1.Node.ApiVersion|keyof typeof google.cloud.tpu.v1.Node.ApiVersion|null); /** Node symptoms */ symptoms?: (google.cloud.tpu.v1.ISymptom[]|null); } /** Represents a Node. */ class Node implements INode { /** * Constructs a new Node. * @param [properties] Properties to set */ constructor(properties?: google.cloud.tpu.v1.INode); /** Node name. */ public name: string; /** Node description. */ public description: string; /** Node acceleratorType. */ public acceleratorType: string; /** Node ipAddress. */ public ipAddress: string; /** Node port. */ public port: string; /** Node state. */ public state: (google.cloud.tpu.v1.Node.State|keyof typeof google.cloud.tpu.v1.Node.State); /** Node healthDescription. */ public healthDescription: string; /** Node tensorflowVersion. */ public tensorflowVersion: string; /** Node network. */ public network: string; /** Node cidrBlock. */ public cidrBlock: string; /** Node serviceAccount. */ public serviceAccount: string; /** Node createTime. */ public createTime?: (google.protobuf.ITimestamp|null); /** Node schedulingConfig. */ public schedulingConfig?: (google.cloud.tpu.v1.ISchedulingConfig|null); /** Node networkEndpoints. */ public networkEndpoints: google.cloud.tpu.v1.INetworkEndpoint[]; /** Node health. */ public health: (google.cloud.tpu.v1.Node.Health|keyof typeof google.cloud.tpu.v1.Node.Health); /** Node labels. */ public labels: { [k: string]: string }; /** Node useServiceNetworking. */ public useServiceNetworking: boolean; /** Node apiVersion. */ public apiVersion: (google.cloud.tpu.v1.Node.ApiVersion|keyof typeof google.cloud.tpu.v1.Node.ApiVersion); /** Node symptoms. */ public symptoms: google.cloud.tpu.v1.ISymptom[]; /** * Creates a new Node instance using the specified properties. * @param [properties] Properties to set * @returns Node instance */ public static create(properties?: google.cloud.tpu.v1.INode): google.cloud.tpu.v1.Node; /** * Encodes the specified Node message. Does not implicitly {@link google.cloud.tpu.v1.Node.verify|verify} messages. * @param message Node message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.tpu.v1.INode, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Node message, length delimited. Does not implicitly {@link google.cloud.tpu.v1.Node.verify|verify} messages. * @param message Node message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.tpu.v1.INode, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Node message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Node * @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.cloud.tpu.v1.Node; /** * Decodes a Node message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Node * @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.cloud.tpu.v1.Node; /** * Verifies a Node 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 Node message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Node */ public static fromObject(object: { [k: string]: any }): google.cloud.tpu.v1.Node; /** * Creates a plain object from a Node message. Also converts values to other types if specified. * @param message Node * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.tpu.v1.Node, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Node to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for Node * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } namespace Node { /** State enum. */ enum State { STATE_UNSPECIFIED = 0, CREATING = 1, READY = 2, RESTARTING = 3, REIMAGING = 4, DELETING = 5, REPAIRING = 6, STOPPED = 8, STOPPING = 9, STARTING = 10, PREEMPTED = 11, TERMINATED = 12, HIDING = 13, HIDDEN = 14, UNHIDING = 15, UNKNOWN = 16 } /** Health enum. */ enum Health { HEALTH_UNSPECIFIED = 0, HEALTHY = 1, DEPRECATED_UNHEALTHY = 2, TIMEOUT = 3, UNHEALTHY_TENSORFLOW = 4, UNHEALTHY_MAINTENANCE = 5 } /** ApiVersion enum. */ enum ApiVersion { API_VERSION_UNSPECIFIED = 0, V1_ALPHA1 = 1, V1 = 2, V2_ALPHA1 = 3 } } /** Properties of a ListNodesRequest. */ interface IListNodesRequest { /** ListNodesRequest parent */ parent?: (string|null); /** ListNodesRequest pageSize */ pageSize?: (number|null); /** ListNodesRequest pageToken */ pageToken?: (string|null); } /** Represents a ListNodesRequest. */ class ListNodesRequest implements IListNodesRequest { /** * Constructs a new ListNodesRequest. * @param [properties] Properties to set */ constructor(properties?: google.cloud.tpu.v1.IListNodesRequest); /** ListNodesRequest parent. */ public parent: string; /** ListNodesRequest pageSize. */ public pageSize: number; /** ListNodesRequest pageToken. */ public pageToken: string; /** * Creates a new ListNodesRequest instance using the specified properties. * @param [properties] Properties to set * @returns ListNodesRequest instance */ public static create(properties?: google.cloud.tpu.v1.IListNodesRequest): google.cloud.tpu.v1.ListNodesRequest; /** * Encodes the specified ListNodesRequest message. Does not implicitly {@link google.cloud.tpu.v1.ListNodesRequest.verify|verify} messages. * @param message ListNodesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.tpu.v1.IListNodesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ListNodesRequest message, length delimited. Does not implicitly {@link google.cloud.tpu.v1.ListNodesRequest.verify|verify} messages. * @param message ListNodesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.tpu.v1.IListNodesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListNodesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ListNodesRequest * @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.cloud.tpu.v1.ListNodesRequest; /** * Decodes a ListNodesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ListNodesRequest * @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.cloud.tpu.v1.ListNodesRequest; /** * Verifies a ListNodesRequest 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 ListNodesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ListNodesRequest */ public static fromObject(object: { [k: string]: any }): google.cloud.tpu.v1.ListNodesRequest; /** * Creates a plain object from a ListNodesRequest message. Also converts values to other types if specified. * @param message ListNodesRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.tpu.v1.ListNodesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListNodesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for ListNodesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListNodesResponse. */ interface IListNodesResponse { /** ListNodesResponse nodes */ nodes?: (google.cloud.tpu.v1.INode[]|null); /** ListNodesResponse nextPageToken */ nextPageToken?: (string|null); /** ListNodesResponse unreachable */ unreachable?: (string[]|null); } /** Represents a ListNodesResponse. */ class ListNodesResponse implements IListNodesResponse { /** * Constructs a new ListNodesResponse. * @param [properties] Properties to set */ constructor(properties?: google.cloud.tpu.v1.IListNodesResponse); /** ListNodesResponse nodes. */ public nodes: google.cloud.tpu.v1.INode[]; /** ListNodesResponse nextPageToken. */ public nextPageToken: string; /** ListNodesResponse unreachable. */ public unreachable: string[]; /** * Creates a new ListNodesResponse instance using the specified properties. * @param [properties] Properties to set * @returns ListNodesResponse instance */ public static create(properties?: google.cloud.tpu.v1.IListNodesResponse): google.cloud.tpu.v1.ListNodesResponse; /** * Encodes the specified ListNodesResponse message. Does not implicitly {@link google.cloud.tpu.v1.ListNodesResponse.verify|verify} messages. * @param message ListNodesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.tpu.v1.IListNodesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ListNodesResponse message, length delimited. Does not implicitly {@link google.cloud.tpu.v1.ListNodesResponse.verify|verify} messages. * @param message ListNodesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.tpu.v1.IListNodesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListNodesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ListNodesResponse * @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.cloud.tpu.v1.ListNodesResponse; /** * Decodes a ListNodesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ListNodesResponse * @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.cloud.tpu.v1.ListNodesResponse; /** * Verifies a ListNodesResponse 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 ListNodesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ListNodesResponse */ public static fromObject(object: { [k: string]: any }): google.cloud.tpu.v1.ListNodesResponse; /** * Creates a plain object from a ListNodesResponse message. Also converts values to other types if specified. * @param message ListNodesResponse * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.tpu.v1.ListNodesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListNodesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for ListNodesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetNodeRequest. */ interface IGetNodeRequest { /** GetNodeRequest name */ name?: (string|null); } /** Represents a GetNodeRequest. */ class GetNodeRequest implements IGetNodeRequest { /** * Constructs a new GetNodeRequest. * @param [properties] Properties to set */ constructor(properties?: google.cloud.tpu.v1.IGetNodeRequest); /** GetNodeRequest name. */ public name: string; /** * Creates a new GetNodeRequest instance using the specified properties. * @param [properties] Properties to set * @returns GetNodeRequest instance */ public static create(properties?: google.cloud.tpu.v1.IGetNodeRequest): google.cloud.tpu.v1.GetNodeRequest; /** * Encodes the specified GetNodeRequest message. Does not implicitly {@link google.cloud.tpu.v1.GetNodeRequest.verify|verify} messages. * @param message GetNodeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.tpu.v1.IGetNodeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified GetNodeRequest message, length delimited. Does not implicitly {@link google.cloud.tpu.v1.GetNodeRequest.verify|verify} messages. * @param message GetNodeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.tpu.v1.IGetNodeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GetNodeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns GetNodeRequest * @throws {Error} If the payloa