MethodDescriptorProto constructor

MethodDescriptorProto({
  1. String? name,
  2. String? inputType,
  3. String? outputType,
  4. MethodOptions? options,
  5. bool? clientStreaming,
  6. bool? serverStreaming,
})

Implementation

factory MethodDescriptorProto({
  $core.String? name,
  $core.String? inputType,
  $core.String? outputType,
  MethodOptions? options,
  $core.bool? clientStreaming,
  $core.bool? serverStreaming,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (inputType != null) {
    _result.inputType = inputType;
  }
  if (outputType != null) {
    _result.outputType = outputType;
  }
  if (options != null) {
    _result.options = options;
  }
  if (clientStreaming != null) {
    _result.clientStreaming = clientStreaming;
  }
  if (serverStreaming != null) {
    _result.serverStreaming = serverStreaming;
  }
  return _result;
}