RequestMetadata constructor

RequestMetadata({
  1. String? callerIp,
  2. String? callerSuppliedUserAgent,
  3. String? callerNetwork,
  4. AttributeContext_Request? requestAttributes,
  5. AttributeContext_Peer? destinationAttributes,
})

Implementation

factory RequestMetadata({
  $core.String? callerIp,
  $core.String? callerSuppliedUserAgent,
  $core.String? callerNetwork,
  $43.AttributeContext_Request? requestAttributes,
  $43.AttributeContext_Peer? destinationAttributes,
}) {
  final $result = create();
  if (callerIp != null) {
    $result.callerIp = callerIp;
  }
  if (callerSuppliedUserAgent != null) {
    $result.callerSuppliedUserAgent = callerSuppliedUserAgent;
  }
  if (callerNetwork != null) {
    $result.callerNetwork = callerNetwork;
  }
  if (requestAttributes != null) {
    $result.requestAttributes = requestAttributes;
  }
  if (destinationAttributes != null) {
    $result.destinationAttributes = destinationAttributes;
  }
  return $result;
}