Class BindingExplanation.AnnotatedMembership.Builder (0.8.0)

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

Details about whether the binding includes the principal.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BindingExplanation.AnnotatedMembership.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BindingExplanation.AnnotatedMembership.Builder
Overrides

build()

public BindingExplanation.AnnotatedMembership build()
Returns
TypeDescription
BindingExplanation.AnnotatedMembership

buildPartial()

public BindingExplanation.AnnotatedMembership buildPartial()
Returns
TypeDescription
BindingExplanation.AnnotatedMembership

clear()

public BindingExplanation.AnnotatedMembership.Builder clear()
Returns
TypeDescription
BindingExplanation.AnnotatedMembership.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BindingExplanation.AnnotatedMembership.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BindingExplanation.AnnotatedMembership.Builder
Overrides

clearMembership()

public BindingExplanation.AnnotatedMembership.Builder clearMembership()

Indicates whether the binding includes the principal.

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

Returns
TypeDescription
BindingExplanation.AnnotatedMembership.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BindingExplanation.AnnotatedMembership.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BindingExplanation.AnnotatedMembership.Builder
Overrides

clearRelevance()

public BindingExplanation.AnnotatedMembership.Builder clearRelevance()

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

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

Returns
TypeDescription
BindingExplanation.AnnotatedMembership.Builder

This builder for chaining.

clone()

public BindingExplanation.AnnotatedMembership.Builder clone()
Returns
TypeDescription
BindingExplanation.AnnotatedMembership.Builder
Overrides

getDefaultInstanceForType()

public BindingExplanation.AnnotatedMembership getDefaultInstanceForType()
Returns
TypeDescription
BindingExplanation.AnnotatedMembership

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMembership()

public BindingExplanation.Membership getMembership()

Indicates whether the binding includes the principal.

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

Returns
TypeDescription
BindingExplanation.Membership

The membership.

getMembershipValue()

public int getMembershipValue()

Indicates whether the binding includes the principal.

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

Returns
TypeDescription
int

The enum numeric value on the wire for membership.

getRelevance()

public HeuristicRelevance getRelevance()

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

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

Returns
TypeDescription
HeuristicRelevance

The relevance.

getRelevanceValue()

public int getRelevanceValue()

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

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

Returns
TypeDescription
int

The enum numeric value on the wire for relevance.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BindingExplanation.AnnotatedMembership other)

public BindingExplanation.AnnotatedMembership.Builder mergeFrom(BindingExplanation.AnnotatedMembership other)
Parameter
NameDescription
otherBindingExplanation.AnnotatedMembership
Returns
TypeDescription
BindingExplanation.AnnotatedMembership.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BindingExplanation.AnnotatedMembership.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BindingExplanation.AnnotatedMembership.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BindingExplanation.AnnotatedMembership.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BindingExplanation.AnnotatedMembership.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BindingExplanation.AnnotatedMembership.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BindingExplanation.AnnotatedMembership.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public BindingExplanation.AnnotatedMembership.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BindingExplanation.AnnotatedMembership.Builder
Overrides

setMembership(BindingExplanation.Membership value)

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

Indicates whether the binding includes the principal.

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

Parameter
NameDescription
valueBindingExplanation.Membership

The membership to set.

Returns
TypeDescription
BindingExplanation.AnnotatedMembership.Builder

This builder for chaining.

setMembershipValue(int value)

public BindingExplanation.AnnotatedMembership.Builder setMembershipValue(int value)

Indicates whether the binding includes the principal.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
BindingExplanation.AnnotatedMembership.Builder

This builder for chaining.

setRelevance(HeuristicRelevance value)

public BindingExplanation.AnnotatedMembership.Builder setRelevance(HeuristicRelevance value)

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

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

Parameter
NameDescription
valueHeuristicRelevance

The relevance to set.

Returns
TypeDescription
BindingExplanation.AnnotatedMembership.Builder

This builder for chaining.

setRelevanceValue(int value)

public BindingExplanation.AnnotatedMembership.Builder setRelevanceValue(int value)

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

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
BindingExplanation.AnnotatedMembership.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BindingExplanation.AnnotatedMembership.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BindingExplanation.AnnotatedMembership.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BindingExplanation.AnnotatedMembership.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BindingExplanation.AnnotatedMembership.Builder
Overrides