Class ConditionContext

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.policytroubleshooter.iam.v3.ConditionContext
All Implemented Interfaces:
ConditionContextOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ConditionContext extends com.google.protobuf.GeneratedMessage implements ConditionContextOrBuilder
 Additional context for troubleshooting conditional role bindings and deny
 rules.
 
Protobuf type google.cloud.policytroubleshooter.iam.v3.ConditionContext
See Also:
  • Field Details

    • RESOURCE_FIELD_NUMBER

      public static final int RESOURCE_FIELD_NUMBER
      See Also:
    • DESTINATION_FIELD_NUMBER

      public static final int DESTINATION_FIELD_NUMBER
      See Also:
    • REQUEST_FIELD_NUMBER

      public static final int REQUEST_FIELD_NUMBER
      See Also:
    • EFFECTIVE_TAGS_FIELD_NUMBER

      public static final int EFFECTIVE_TAGS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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;
      Specified by:
      hasResource in interface ConditionContextOrBuilder
      Returns:
      Whether the resource field is set.
    • 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;
      Specified by:
      getResource in interface ConditionContextOrBuilder
      Returns:
      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;
      Specified by:
      getResourceOrBuilder in interface ConditionContextOrBuilder
    • 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;
      Specified by:
      hasDestination in interface ConditionContextOrBuilder
      Returns:
      Whether the destination field is set.
    • 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;
      Specified by:
      getDestination in interface ConditionContextOrBuilder
      Returns:
      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;
      Specified by:
      getDestinationOrBuilder in interface ConditionContextOrBuilder
    • hasRequest

      public boolean hasRequest()
       Represents a network request, such as an HTTP request.
       
      .google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request request = 3;
      Specified by:
      hasRequest in interface ConditionContextOrBuilder
      Returns:
      Whether the request field is set.
    • getRequest

      public ConditionContext.Request getRequest()
       Represents a network request, such as an HTTP request.
       
      .google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request request = 3;
      Specified by:
      getRequest in interface ConditionContextOrBuilder
      Returns:
      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;
      Specified by:
      getRequestOrBuilder in interface ConditionContextOrBuilder
    • 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];
      Specified by:
      getEffectiveTagsList in interface ConditionContextOrBuilder
    • 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];
      Specified by:
      getEffectiveTagsOrBuilderList in interface ConditionContextOrBuilder
    • 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];
      Specified by:
      getEffectiveTagsCount in interface ConditionContextOrBuilder
    • getEffectiveTags

      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];
      Specified by:
      getEffectiveTags in interface ConditionContextOrBuilder
    • getEffectiveTagsOrBuilder

      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];
      Specified by:
      getEffectiveTagsOrBuilder in interface ConditionContextOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ConditionContext parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConditionContext parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConditionContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConditionContext parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConditionContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConditionContext parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConditionContext parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConditionContext parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ConditionContext parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ConditionContext parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConditionContext parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConditionContext parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ConditionContext.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ConditionContext.Builder newBuilder()
    • newBuilder

      public static ConditionContext.Builder newBuilder(ConditionContext prototype)
    • toBuilder

      public ConditionContext.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ConditionContext.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ConditionContext getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ConditionContext> parser()
    • getParserForType

      public com.google.protobuf.Parser<ConditionContext> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ConditionContext getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder