MethodOptions constructor

MethodOptions({
  1. bool? deprecated,
  2. MethodOptions_IdempotencyLevel? idempotencyLevel,
  3. FeatureSet? features,
  4. Iterable<UninterpretedOption>? uninterpretedOption,
})

Implementation

factory MethodOptions({
  $core.bool? deprecated,
  MethodOptions_IdempotencyLevel? idempotencyLevel,
  FeatureSet? features,
  $core.Iterable<UninterpretedOption>? uninterpretedOption,
}) {
  final $result = create();
  if (deprecated != null) {
    $result.deprecated = deprecated;
  }
  if (idempotencyLevel != null) {
    $result.idempotencyLevel = idempotencyLevel;
  }
  if (features != null) {
    $result.features = features;
  }
  if (uninterpretedOption != null) {
    $result.uninterpretedOption.addAll(uninterpretedOption);
  }
  return $result;
}