restriction property

  1. @TagNumber.new(2)
String get restriction

A comma-separated list of visibility labels that apply to the selector. Any of the listed labels can be used to grant the visibility.

If a rule has multiple labels, removing one of the labels but not all of them can break clients.

Example:

visibility:
  rules:
  - selector: google.calendar.Calendar.EnhancedSearch
    restriction: INTERNAL, PREVIEW

Removing INTERNAL from this restriction will break clients that rely on this method and only had access to it through INTERNAL.

Implementation

@$pb.TagNumber(2)
$core.String get restriction => $_getSZ(1);
  1. @TagNumber.new(2)
set restriction (String value)

Implementation

@$pb.TagNumber(2)
set restriction($core.String value) => $_setString(1, value);