Class Explanations.BindingExplanation.AnnotatedMembership.Builder (1.87.0)

public static final class Explanations.BindingExplanation.AnnotatedMembership.Builder extends GeneratedMessage.Builder<Explanations.BindingExplanation.AnnotatedMembership.Builder> implements Explanations.BindingExplanation.AnnotatedMembershipOrBuilder

Details about whether the binding includes the principal.

Protobuf type google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public Explanations.BindingExplanation.AnnotatedMembership build()
Returns
Type Description
Explanations.BindingExplanation.AnnotatedMembership

buildPartial()

public Explanations.BindingExplanation.AnnotatedMembership buildPartial()
Returns
Type Description
Explanations.BindingExplanation.AnnotatedMembership

clear()

public Explanations.BindingExplanation.AnnotatedMembership.Builder clear()
Returns
Type Description
Explanations.BindingExplanation.AnnotatedMembership.Builder
Overrides

clearMembership()

public Explanations.BindingExplanation.AnnotatedMembership.Builder clearMembership()

Indicates whether the binding includes the principal.

.google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1;

Returns
Type Description
Explanations.BindingExplanation.AnnotatedMembership.Builder

This builder for chaining.

clearRelevance()

public Explanations.BindingExplanation.AnnotatedMembership.Builder clearRelevance()

The relevance of the principal's status to the overall determination for the binding.

.google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2;

Returns
Type Description
Explanations.BindingExplanation.AnnotatedMembership.Builder

This builder for chaining.

getDefaultInstanceForType()

public Explanations.BindingExplanation.AnnotatedMembership getDefaultInstanceForType()
Returns
Type Description
Explanations.BindingExplanation.AnnotatedMembership

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMembership()

public Explanations.BindingExplanation.Membership getMembership()

Indicates whether the binding includes the principal.

.google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1;

Returns
Type Description
Explanations.BindingExplanation.Membership

The membership.

getMembershipValue()

public int getMembershipValue()

Indicates whether the binding includes the principal.

.google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1;

Returns
Type Description
int

The enum numeric value on the wire for membership.

getRelevance()

public Explanations.HeuristicRelevance getRelevance()

The relevance of the principal's status to the overall determination for the binding.

.google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2;

Returns
Type Description
Explanations.HeuristicRelevance

The relevance.

getRelevanceValue()

public int getRelevanceValue()

The relevance of the principal's status to the overall determination for the binding.

.google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2;

Returns
Type Description
int

The enum numeric value on the wire for relevance.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Explanations.BindingExplanation.AnnotatedMembership.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Explanations.BindingExplanation.AnnotatedMembership.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Explanations.BindingExplanation.AnnotatedMembership.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Explanations.BindingExplanation.AnnotatedMembership.Builder
Overrides

mergeFrom(Explanations.BindingExplanation.AnnotatedMembership other)

public Explanations.BindingExplanation.AnnotatedMembership.Builder mergeFrom(Explanations.BindingExplanation.AnnotatedMembership other)
Parameter
Name Description
other Explanations.BindingExplanation.AnnotatedMembership
Returns
Type Description
Explanations.BindingExplanation.AnnotatedMembership.Builder

setMembership(Explanations.BindingExplanation.Membership value)

public Explanations.BindingExplanation.AnnotatedMembership.Builder setMembership(Explanations.BindingExplanation.Membership value)

Indicates whether the binding includes the principal.

.google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1;

Parameter
Name Description
value Explanations.BindingExplanation.Membership

The membership to set.

Returns
Type Description
Explanations.BindingExplanation.AnnotatedMembership.Builder

This builder for chaining.

setMembershipValue(int value)

public Explanations.BindingExplanation.AnnotatedMembership.Builder setMembershipValue(int value)

Indicates whether the binding includes the principal.

.google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for membership to set.

Returns
Type Description
Explanations.BindingExplanation.AnnotatedMembership.Builder

This builder for chaining.

setRelevance(Explanations.HeuristicRelevance value)

public Explanations.BindingExplanation.AnnotatedMembership.Builder setRelevance(Explanations.HeuristicRelevance value)

The relevance of the principal's status to the overall determination for the binding.

.google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2;

Parameter
Name Description
value Explanations.HeuristicRelevance

The relevance to set.

Returns
Type Description
Explanations.BindingExplanation.AnnotatedMembership.Builder

This builder for chaining.

setRelevanceValue(int value)

public Explanations.BindingExplanation.AnnotatedMembership.Builder setRelevanceValue(int value)

The relevance of the principal's status to the overall determination for the binding.

.google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for relevance to set.

Returns
Type Description
Explanations.BindingExplanation.AnnotatedMembership.Builder

This builder for chaining.