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;
}