google.protobuf.MethodDescriptorProto
Example
Disclaimer: The example is meant to show what methods are available on the object and does not necessarily constitute working
code.
local types = import 'types.libsonnet';
types.google.protobuf.MethodDescriptorProto
.withClientStreaming(false)
.withInputType('string')
.withName('string')
.withOptions(types.google.protobuf.MethodOptions)
.withOutputType('string')
.withServerStreaming(false)
._validate()
Fields
Name |
Type |
One-of group |
Required |
Constraints |
client_streaming |
bool
|
|
|
|
input_type |
string
|
|
|
|
name |
string
|
|
|
|
options |
google.protobuf.MethodOptions
|
|
|
|
output_type |
string
|
|
|
|
server_streaming |
bool
|
|
|
|