ContainerQuery constructor

ContainerQuery({
  1. ContinuationToken? continuation,
  2. AccountId? accountId,
  3. StringValue? name,
  4. Int32Value? minObjectCount,
  5. Container_ContainerType? type,
  6. DeliveryId? deliveryId,
  7. ContainerId? ancestor,
  8. Iterable<ContainerQuery_ContainerOrdering>? orderBy,
  9. Iterable<Container_ContainerType>? containerTypes,
})

Implementation

factory ContainerQuery({
  $0.ContinuationToken? continuation,
  $1.AccountId? accountId,
  $2.StringValue? name,
  $2.Int32Value? minObjectCount,
  Container_ContainerType? type,
  $1.DeliveryId? deliveryId,
  $1.ContainerId? ancestor,
  $core.Iterable<ContainerQuery_ContainerOrdering>? orderBy,
  $core.Iterable<Container_ContainerType>? containerTypes,
}) {
  final result = create();
  if (continuation != null) result.continuation = continuation;
  if (accountId != null) result.accountId = accountId;
  if (name != null) result.name = name;
  if (minObjectCount != null) result.minObjectCount = minObjectCount;
  if (type != null) result.type = type;
  if (deliveryId != null) result.deliveryId = deliveryId;
  if (ancestor != null) result.ancestor = ancestor;
  if (orderBy != null) result.orderBy.addAll(orderBy);
  if (containerTypes != null) result.containerTypes.addAll(containerTypes);
  return result;
}