Class ConditionContext.Builder (1.50.0)

public static final class ConditionContext.Builder extends GeneratedMessageV3.Builder<ConditionContext.Builder> implements ConditionContextOrBuilder

Additional context for troubleshooting conditional role bindings and deny rules.

Protobuf type google.cloud.policytroubleshooter.iam.v3.ConditionContext

Static Methods

getDescriptor()

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

Methods

addAllEffectiveTags(Iterable<? extends ConditionContext.EffectiveTag> values)

public ConditionContext.Builder addAllEffectiveTags(Iterable<? extends ConditionContext.EffectiveTag> values)

Output only. The effective tags on the resource. The effective tags are fetched during troubleshooting.

repeated .google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag effective_tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag>
Returns
Type Description
ConditionContext.Builder

addEffectiveTags(ConditionContext.EffectiveTag value)

public ConditionContext.Builder addEffectiveTags(ConditionContext.EffectiveTag value)

Output only. The effective tags on the resource. The effective tags are fetched during troubleshooting.

repeated .google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag effective_tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ConditionContext.EffectiveTag
Returns
Type Description
ConditionContext.Builder

addEffectiveTags(ConditionContext.EffectiveTag.Builder builderForValue)

public ConditionContext.Builder addEffectiveTags(ConditionContext.EffectiveTag.Builder builderForValue)

Output only. The effective tags on the resource. The effective tags are fetched during troubleshooting.

repeated .google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag effective_tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue ConditionContext.EffectiveTag.Builder
Returns
Type Description
ConditionContext.Builder

addEffectiveTags(int index, ConditionContext.EffectiveTag value)

public ConditionContext.Builder addEffectiveTags(int index, ConditionContext.EffectiveTag value)

Output only. The effective tags on the resource. The effective tags are fetched during troubleshooting.

repeated .google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag effective_tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value ConditionContext.EffectiveTag
Returns
Type Description
ConditionContext.Builder

addEffectiveTags(int index, ConditionContext.EffectiveTag.Builder builderForValue)

public ConditionContext.Builder addEffectiveTags(int index, ConditionContext.EffectiveTag.Builder builderForValue)

Output only. The effective tags on the resource. The effective tags are fetched during troubleshooting.

repeated .google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag effective_tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue ConditionContext.EffectiveTag.Builder
Returns
Type Description
ConditionContext.Builder

addEffectiveTagsBuilder()

public ConditionContext.EffectiveTag.Builder addEffectiveTagsBuilder()

Output only. The effective tags on the resource. The effective tags are fetched during troubleshooting.

repeated .google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag effective_tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ConditionContext.EffectiveTag.Builder

addEffectiveTagsBuilder(int index)

public ConditionContext.EffectiveTag.Builder addEffectiveTagsBuilder(int index)

Output only. The effective tags on the resource. The effective tags are fetched during troubleshooting.

repeated .google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag effective_tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ConditionContext.EffectiveTag.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConditionContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConditionContext.Builder
Overrides

build()

public ConditionContext build()
Returns
Type Description
ConditionContext

buildPartial()

public ConditionContext buildPartial()
Returns
Type Description
ConditionContext

clear()

public ConditionContext.Builder clear()
Returns
Type Description
ConditionContext.Builder
Overrides

clearDestination()

public ConditionContext.Builder clearDestination()

The destination of a network activity, such as accepting a TCP connection. In a multi-hop network activity, the destination represents the receiver of the last hop.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Peer destination = 2;

Returns
Type Description
ConditionContext.Builder

clearEffectiveTags()

public ConditionContext.Builder clearEffectiveTags()

Output only. The effective tags on the resource. The effective tags are fetched during troubleshooting.

repeated .google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag effective_tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ConditionContext.Builder

clearField(Descriptors.FieldDescriptor field)

public ConditionContext.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ConditionContext.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ConditionContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ConditionContext.Builder
Overrides

clearRequest()

public ConditionContext.Builder clearRequest()

Represents a network request, such as an HTTP request.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request request = 3;

Returns
Type Description
ConditionContext.Builder

clearResource()

public ConditionContext.Builder clearResource()

Represents a target resource that is involved with a network activity. If multiple resources are involved with an activity, this must be the primary one.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Resource resource = 1;

Returns
Type Description
ConditionContext.Builder

clone()

public ConditionContext.Builder clone()
Returns
Type Description
ConditionContext.Builder
Overrides

getDefaultInstanceForType()

public ConditionContext getDefaultInstanceForType()
Returns
Type Description
ConditionContext

getDescriptorForType()

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

getDestination()

public ConditionContext.Peer getDestination()

The destination of a network activity, such as accepting a TCP connection. In a multi-hop network activity, the destination represents the receiver of the last hop.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Peer destination = 2;

Returns
Type Description
ConditionContext.Peer

The destination.

getDestinationBuilder()

public ConditionContext.Peer.Builder getDestinationBuilder()

The destination of a network activity, such as accepting a TCP connection. In a multi-hop network activity, the destination represents the receiver of the last hop.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Peer destination = 2;

Returns
Type Description
ConditionContext.Peer.Builder

getDestinationOrBuilder()

public ConditionContext.PeerOrBuilder getDestinationOrBuilder()

The destination of a network activity, such as accepting a TCP connection. In a multi-hop network activity, the destination represents the receiver of the last hop.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Peer destination = 2;

Returns
Type Description
ConditionContext.PeerOrBuilder

getEffectiveTags(int index)

public ConditionContext.EffectiveTag getEffectiveTags(int index)

Output only. The effective tags on the resource. The effective tags are fetched during troubleshooting.

repeated .google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag effective_tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ConditionContext.EffectiveTag

getEffectiveTagsBuilder(int index)

public ConditionContext.EffectiveTag.Builder getEffectiveTagsBuilder(int index)

Output only. The effective tags on the resource. The effective tags are fetched during troubleshooting.

repeated .google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag effective_tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ConditionContext.EffectiveTag.Builder

getEffectiveTagsBuilderList()

public List<ConditionContext.EffectiveTag.Builder> getEffectiveTagsBuilderList()

Output only. The effective tags on the resource. The effective tags are fetched during troubleshooting.

repeated .google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag effective_tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getEffectiveTagsCount()

public int getEffectiveTagsCount()

Output only. The effective tags on the resource. The effective tags are fetched during troubleshooting.

repeated .google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag effective_tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getEffectiveTagsList()

public List<ConditionContext.EffectiveTag> getEffectiveTagsList()

Output only. The effective tags on the resource. The effective tags are fetched during troubleshooting.

repeated .google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag effective_tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<EffectiveTag>

getEffectiveTagsOrBuilder(int index)

public ConditionContext.EffectiveTagOrBuilder getEffectiveTagsOrBuilder(int index)

Output only. The effective tags on the resource. The effective tags are fetched during troubleshooting.

repeated .google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag effective_tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ConditionContext.EffectiveTagOrBuilder

getEffectiveTagsOrBuilderList()

public List<? extends ConditionContext.EffectiveTagOrBuilder> getEffectiveTagsOrBuilderList()

Output only. The effective tags on the resource. The effective tags are fetched during troubleshooting.

repeated .google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag effective_tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTagOrBuilder>

getRequest()

public ConditionContext.Request getRequest()

Represents a network request, such as an HTTP request.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request request = 3;

Returns
Type Description
ConditionContext.Request

The request.

getRequestBuilder()

public ConditionContext.Request.Builder getRequestBuilder()

Represents a network request, such as an HTTP request.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request request = 3;

Returns
Type Description
ConditionContext.Request.Builder

getRequestOrBuilder()

public ConditionContext.RequestOrBuilder getRequestOrBuilder()

Represents a network request, such as an HTTP request.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request request = 3;

Returns
Type Description
ConditionContext.RequestOrBuilder

getResource()

public ConditionContext.Resource getResource()

Represents a target resource that is involved with a network activity. If multiple resources are involved with an activity, this must be the primary one.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Resource resource = 1;

Returns
Type Description
ConditionContext.Resource

The resource.

getResourceBuilder()

public ConditionContext.Resource.Builder getResourceBuilder()

Represents a target resource that is involved with a network activity. If multiple resources are involved with an activity, this must be the primary one.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Resource resource = 1;

Returns
Type Description
ConditionContext.Resource.Builder

getResourceOrBuilder()

public ConditionContext.ResourceOrBuilder getResourceOrBuilder()

Represents a target resource that is involved with a network activity. If multiple resources are involved with an activity, this must be the primary one.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Resource resource = 1;

Returns
Type Description
ConditionContext.ResourceOrBuilder

hasDestination()

public boolean hasDestination()

The destination of a network activity, such as accepting a TCP connection. In a multi-hop network activity, the destination represents the receiver of the last hop.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Peer destination = 2;

Returns
Type Description
boolean

Whether the destination field is set.

hasRequest()

public boolean hasRequest()

Represents a network request, such as an HTTP request.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request request = 3;

Returns
Type Description
boolean

Whether the request field is set.

hasResource()

public boolean hasResource()

Represents a target resource that is involved with a network activity. If multiple resources are involved with an activity, this must be the primary one.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Resource resource = 1;

Returns
Type Description
boolean

Whether the resource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDestination(ConditionContext.Peer value)

public ConditionContext.Builder mergeDestination(ConditionContext.Peer value)

The destination of a network activity, such as accepting a TCP connection. In a multi-hop network activity, the destination represents the receiver of the last hop.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Peer destination = 2;

Parameter
Name Description
value ConditionContext.Peer
Returns
Type Description
ConditionContext.Builder

mergeFrom(ConditionContext other)

public ConditionContext.Builder mergeFrom(ConditionContext other)
Parameter
Name Description
other ConditionContext
Returns
Type Description
ConditionContext.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ConditionContext.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ConditionContext.Builder
Overrides

mergeRequest(ConditionContext.Request value)

public ConditionContext.Builder mergeRequest(ConditionContext.Request value)

Represents a network request, such as an HTTP request.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request request = 3;

Parameter
Name Description
value ConditionContext.Request
Returns
Type Description
ConditionContext.Builder

mergeResource(ConditionContext.Resource value)

public ConditionContext.Builder mergeResource(ConditionContext.Resource value)

Represents a target resource that is involved with a network activity. If multiple resources are involved with an activity, this must be the primary one.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Resource resource = 1;

Parameter
Name Description
value ConditionContext.Resource
Returns
Type Description
ConditionContext.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConditionContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConditionContext.Builder
Overrides

removeEffectiveTags(int index)

public ConditionContext.Builder removeEffectiveTags(int index)

Output only. The effective tags on the resource. The effective tags are fetched during troubleshooting.

repeated .google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag effective_tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ConditionContext.Builder

setDestination(ConditionContext.Peer value)

public ConditionContext.Builder setDestination(ConditionContext.Peer value)

The destination of a network activity, such as accepting a TCP connection. In a multi-hop network activity, the destination represents the receiver of the last hop.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Peer destination = 2;

Parameter
Name Description
value ConditionContext.Peer
Returns
Type Description
ConditionContext.Builder

setDestination(ConditionContext.Peer.Builder builderForValue)

public ConditionContext.Builder setDestination(ConditionContext.Peer.Builder builderForValue)

The destination of a network activity, such as accepting a TCP connection. In a multi-hop network activity, the destination represents the receiver of the last hop.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Peer destination = 2;

Parameter
Name Description
builderForValue ConditionContext.Peer.Builder
Returns
Type Description
ConditionContext.Builder

setEffectiveTags(int index, ConditionContext.EffectiveTag value)

public ConditionContext.Builder setEffectiveTags(int index, ConditionContext.EffectiveTag value)

Output only. The effective tags on the resource. The effective tags are fetched during troubleshooting.

repeated .google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag effective_tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value ConditionContext.EffectiveTag
Returns
Type Description
ConditionContext.Builder

setEffectiveTags(int index, ConditionContext.EffectiveTag.Builder builderForValue)

public ConditionContext.Builder setEffectiveTags(int index, ConditionContext.EffectiveTag.Builder builderForValue)

Output only. The effective tags on the resource. The effective tags are fetched during troubleshooting.

repeated .google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag effective_tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue ConditionContext.EffectiveTag.Builder
Returns
Type Description
ConditionContext.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ConditionContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConditionContext.Builder
Overrides

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

public ConditionContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ConditionContext.Builder
Overrides

setRequest(ConditionContext.Request value)

public ConditionContext.Builder setRequest(ConditionContext.Request value)

Represents a network request, such as an HTTP request.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request request = 3;

Parameter
Name Description
value ConditionContext.Request
Returns
Type Description
ConditionContext.Builder

setRequest(ConditionContext.Request.Builder builderForValue)

public ConditionContext.Builder setRequest(ConditionContext.Request.Builder builderForValue)

Represents a network request, such as an HTTP request.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request request = 3;

Parameter
Name Description
builderForValue ConditionContext.Request.Builder
Returns
Type Description
ConditionContext.Builder

setResource(ConditionContext.Resource value)

public ConditionContext.Builder setResource(ConditionContext.Resource value)

Represents a target resource that is involved with a network activity. If multiple resources are involved with an activity, this must be the primary one.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Resource resource = 1;

Parameter
Name Description
value ConditionContext.Resource
Returns
Type Description
ConditionContext.Builder

setResource(ConditionContext.Resource.Builder builderForValue)

public ConditionContext.Builder setResource(ConditionContext.Resource.Builder builderForValue)

Represents a target resource that is involved with a network activity. If multiple resources are involved with an activity, this must be the primary one.

.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Resource resource = 1;

Parameter
Name Description
builderForValue ConditionContext.Resource.Builder
Returns
Type Description
ConditionContext.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ConditionContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConditionContext.Builder
Overrides