Class ConditionContext (1.50.0)

public final class ConditionContext extends GeneratedMessageV3 implements ConditionContextOrBuilder

Additional context for troubleshooting conditional role bindings and deny rules.

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

Static Fields

DESTINATION_FIELD_NUMBER

public static final int DESTINATION_FIELD_NUMBER
Field Value
Type Description
int

EFFECTIVE_TAGS_FIELD_NUMBER

public static final int EFFECTIVE_TAGS_FIELD_NUMBER
Field Value
Type Description
int

REQUEST_FIELD_NUMBER

public static final int REQUEST_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_FIELD_NUMBER

public static final int RESOURCE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ConditionContext getDefaultInstance()
Returns
Type Description
ConditionContext

getDescriptor()

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

newBuilder()

public static ConditionContext.Builder newBuilder()
Returns
Type Description
ConditionContext.Builder

newBuilder(ConditionContext prototype)

public static ConditionContext.Builder newBuilder(ConditionContext prototype)
Parameter
Name Description
prototype ConditionContext
Returns
Type Description
ConditionContext.Builder

parseDelimitedFrom(InputStream input)

public static ConditionContext parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ConditionContext
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConditionContext parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConditionContext
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ConditionContext parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ConditionContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ConditionContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConditionContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ConditionContext parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ConditionContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ConditionContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConditionContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ConditionContext parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ConditionContext
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ConditionContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConditionContext
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ConditionContext parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ConditionContext
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConditionContext parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConditionContext
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ConditionContext parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ConditionContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ConditionContext parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConditionContext
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ConditionContext> parser()
Returns
Type Description
Parser<ConditionContext>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ConditionContext getDefaultInstanceForType()
Returns
Type Description
ConditionContext

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.

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

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>

getParserForType()

public Parser<ConditionContext> getParserForType()
Returns
Type Description
Parser<ConditionContext>
Overrides

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.

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ConditionContext.Builder newBuilderForType()
Returns
Type Description
ConditionContext.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ConditionContext.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ConditionContext.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ConditionContext.Builder toBuilder()
Returns
Type Description
ConditionContext.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException