Interface VisibilityRuleOrBuilder (2.12.0)

public interface VisibilityRuleOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getRestriction()

public abstract String getRestriction()

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.

string restriction = 2;

Returns
TypeDescription
String

The restriction.

getRestrictionBytes()

public abstract ByteString getRestrictionBytes()

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.

string restriction = 2;

Returns
TypeDescription
ByteString

The bytes for restriction.

getSelector()

public abstract String getSelector()

Selects methods, messages, fields, enums, etc. to which this rule applies. Refer to selector for syntax details.

string selector = 1;

Returns
TypeDescription
String

The selector.

getSelectorBytes()

public abstract ByteString getSelectorBytes()

Selects methods, messages, fields, enums, etc. to which this rule applies. Refer to selector for syntax details.

string selector = 1;

Returns
TypeDescription
ByteString

The bytes for selector.