Class ConditionContext (1.26.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
TypeDescription
int

EFFECTIVE_TAGS_FIELD_NUMBER

public static final int EFFECTIVE_TAGS_FIELD_NUMBER
Field Value
TypeDescription
int

REQUEST_FIELD_NUMBER

public static final int REQUEST_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_FIELD_NUMBER

public static final int RESOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ConditionContext getDefaultInstance()
Returns
TypeDescription
ConditionContext

getDescriptor()

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

newBuilder()

public static ConditionContext.Builder newBuilder()
Returns
TypeDescription
ConditionContext.Builder

newBuilder(ConditionContext prototype)

public static ConditionContext.Builder newBuilder(ConditionContext prototype)
Parameter
NameDescription
prototypeConditionContext
Returns
TypeDescription
ConditionContext.Builder

parseDelimitedFrom(InputStream input)

public static ConditionContext parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConditionContext
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConditionContext parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConditionContext
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ConditionContext parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ConditionContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ConditionContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConditionContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ConditionContext parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ConditionContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ConditionContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConditionContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ConditionContext parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ConditionContext
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ConditionContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConditionContext
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ConditionContext parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConditionContext
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConditionContext parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConditionContext
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ConditionContext parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ConditionContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ConditionContext parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConditionContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ConditionContext> parser()
Returns
TypeDescription
Parser<ConditionContext>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ConditionContext getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
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

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>

getParserForType()

public Parser<ConditionContext> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
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.

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ConditionContext.Builder newBuilderForType()
Returns
TypeDescription
ConditionContext.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ConditionContext.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ConditionContext.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ConditionContext.Builder toBuilder()
Returns
TypeDescription
ConditionContext.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException