Class ConditionContext.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ConditionContext.Builder>
com.google.cloud.policytroubleshooter.iam.v3.ConditionContext.Builder
All Implemented Interfaces:
ConditionContextOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ConditionContext

public static final class ConditionContext.Builder extends com.google.protobuf.GeneratedMessage.Builder<ConditionContext.Builder> implements ConditionContextOrBuilder
 Additional context for troubleshooting conditional role bindings and deny
 rules.
 
Protobuf type google.cloud.policytroubleshooter.iam.v3.ConditionContext
  • 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.Builder<ConditionContext.Builder>
    • clear

      public ConditionContext.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ConditionContext.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ConditionContext.Builder>
    • getDefaultInstanceForType

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

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

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

      public ConditionContext.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConditionContext.Builder>
    • mergeFrom

      public ConditionContext.Builder mergeFrom(ConditionContext other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ConditionContext.Builder>
    • mergeFrom

      public ConditionContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConditionContext.Builder>
      Throws:
      IOException
    • 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.
    • setResource

       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;
    • setResource

      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;
    • mergeResource

       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;
    • 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;
    • 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;
    • 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.
    • setDestination

      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;
    • setDestination

      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;
    • mergeDestination

      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;
    • 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;
    • 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;
    • 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.
    • setRequest

       Represents a network request, such as an HTTP request.
       
      .google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request request = 3;
    • setRequest

      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;
    • mergeRequest

       Represents a network request, such as an HTTP request.
       
      .google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request request = 3;
    • clearRequest

      public ConditionContext.Builder clearRequest()
       Represents a network request, such as an HTTP request.
       
      .google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request request = 3;
    • getRequestBuilder

      public ConditionContext.Request.Builder getRequestBuilder()
       Represents a network request, such as an HTTP request.
       
      .google.cloud.policytroubleshooter.iam.v3.ConditionContext.Request request = 3;
    • 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
    • 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
    • setEffectiveTags

      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];
    • setEffectiveTags

      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];
    • addEffectiveTags

       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];
    • addEffectiveTags

      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];
    • addEffectiveTags

      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];
    • addEffectiveTags

      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];
    • addAllEffectiveTags

      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];
    • 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];
    • removeEffectiveTags

      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];
    • getEffectiveTagsBuilder

      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];
    • 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
    • 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
    • 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];
    • addEffectiveTagsBuilder

      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];
    • 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];