public sealed class Visibility : IMessage<Visibility>, IEquatable<Visibility>, IDeepCloneable<Visibility>, IBufferMessage, IMessage
Visibility restricts service consumer's access to service elements,
such as whether an application can call a visibility-restricted method.
The restriction is expressed by applying visibility labels on service
elements. The visibility labels are elsewhere linked to service consumers.
A service can define multiple visibility labels, but a service consumer
should be granted at most one visibility label. Multiple visibility
labels for a single service consumer are not supported.
If an element and all its parents have no visibility label, its visibility
is unconditionally granted.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-03 UTC."],[[["The `Visibility` class in the Google.Api.CommonProtos library is used to restrict service consumer access to specific service elements, based on visibility labels."],["A service can define multiple visibility labels, however only one visibility label is supported per service consumer."],["If a service element and its parents have no assigned visibility labels, the service element is considered to be publicly accessible."],["The `Visibility` class implements interfaces like `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and includes methods for cloning, merging, and calculating the size of visibility rules."],["Visibility rules are configured using a list of `VisibilityRule` objects, and the `Rules` property is used to manage these rules, following a \"last one wins\" order for configuration."]]],[]]