Class ConditionContext.Builder (1.28.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag>
Returns
TypeDescription
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
NameDescription
valueConditionContext.EffectiveTag
Returns
TypeDescription
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
NameDescription
builderForValueConditionContext.EffectiveTag.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueConditionContext.EffectiveTag
Returns
TypeDescription
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
NameDescription
indexint
builderForValueConditionContext.EffectiveTag.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ConditionContext.EffectiveTag.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConditionContext build()
Returns
TypeDescription
ConditionContext

buildPartial()

public ConditionContext buildPartial()
Returns
TypeDescription
ConditionContext

clear()

public ConditionContext.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ConditionContext.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ConditionContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ConditionContext.Builder

clone()

public ConditionContext.Builder clone()
Returns
TypeDescription
ConditionContext.Builder
Overrides

getDefaultInstanceForType()

public ConditionContext getDefaultInstanceForType()
Returns
TypeDescription
ConditionContext

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the resource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueConditionContext.Peer
Returns
TypeDescription
ConditionContext.Builder

mergeFrom(ConditionContext other)

public ConditionContext.Builder mergeFrom(ConditionContext other)
Parameter
NameDescription
otherConditionContext
Returns
TypeDescription
ConditionContext.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ConditionContext.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueConditionContext.Request
Returns
TypeDescription
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
NameDescription
valueConditionContext.Resource
Returns
TypeDescription
ConditionContext.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConditionContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueConditionContext.Peer
Returns
TypeDescription
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
NameDescription
builderForValueConditionContext.Peer.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueConditionContext.EffectiveTag
Returns
TypeDescription
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
NameDescription
indexint
builderForValueConditionContext.EffectiveTag.Builder
Returns
TypeDescription
ConditionContext.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ConditionContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueConditionContext.Request
Returns
TypeDescription
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
NameDescription
builderForValueConditionContext.Request.Builder
Returns
TypeDescription
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
NameDescription
valueConditionContext.Resource
Returns
TypeDescription
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
NameDescription
builderForValueConditionContext.Resource.Builder
Returns
TypeDescription
ConditionContext.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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