set constant

Spec<SetRequest, SetResponse> const set

Set creates or updates a setting value. Creates a new setting if it doesn't exist, updates if it does.

Implementation

static const set = connect.Spec(
  '/$name/Set',
  connect.StreamType.unary,
  settingsv1settings.SetRequest.new,
  settingsv1settings.SetResponse.new,
);