A visibility rule provides visibility configuration for an individual API element.
Generated from protobuf message google.api.VisibilityRule
| Methods |
| public __construct( $data = NULL) Constructor.
|
| public getRestriction() A comma-separated list of visibility labels that apply to the 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. Generated from protobuf field string restriction = 2;
|
| public getSelector() Selects methods, messages, fields, enums, etc. to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details. Generated from protobuf field string selector = 1;
|
| public setRestriction( $var) A comma-separated list of visibility labels that apply to the 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. Generated from protobuf field string restriction = 2;
|
| public setSelector( $var) Selects methods, messages, fields, enums, etc. to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details. Generated from protobuf field string selector = 1;
|
| Properties |
| protected $restriction = '' A comma-separated list of visibility labels that apply to the 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. Generated from protobuf field string restriction = 2; |
| protected $selector = '' Selects methods, messages, fields, enums, etc. to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details. Generated from protobuf field string selector = 1; |
| Methods |