Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Method

import type { Method } from "https://googleapis.deno.dev/v1/serviceconsumermanagement:v1.ts";

Method represents a method of an API interface. New usages of this message as an alternative to MethodDescriptorProto are strongly discouraged. This message does not reliability preserve all information necessary to model the schema and preserve semantics. Instead make use of FileDescriptorSet which preserves the necessary information.

interface Method {
edition?: string;
name?: string;
options?: Option[];
requestStreaming?: boolean;
requestTypeUrl?: string;
responseStreaming?: boolean;
responseTypeUrl?: string;
syntax?: "SYNTAX_PROTO2" | "SYNTAX_PROTO3" | "SYNTAX_EDITIONS";
}

§Properties

§
edition?: string
[src]

The source edition string, only valid when syntax is SYNTAX_EDITIONS. This field should be ignored, instead the edition should be inherited from Api. This is similar to Field and EnumValue.

§
name?: string
[src]

The simple name of this method.

§
options?: Option[]
[src]

Any metadata attached to the method.

§
requestStreaming?: boolean
[src]

If true, the request is streamed.

§
requestTypeUrl?: string
[src]

A URL of the input message type.

§
responseStreaming?: boolean
[src]

If true, the response is streamed.

§
responseTypeUrl?: string
[src]

The URL of the output message type.

§
syntax?: "SYNTAX_PROTO2" | "SYNTAX_PROTO3" | "SYNTAX_EDITIONS"
[src]

The source syntax of this method. This field should be ignored, instead the syntax should be inherited from Api. This is similar to Field and EnumValue.