Class AccessTuple.Builder

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

public static final class AccessTuple.Builder extends com.google.protobuf.GeneratedMessage.Builder<AccessTuple.Builder> implements AccessTupleOrBuilder
 Information about the principal, resource, and permission to check.
 
Protobuf type google.cloud.policytroubleshooter.iam.v3.AccessTuple
  • 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<AccessTuple.Builder>
    • clear

      public AccessTuple.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<AccessTuple.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<AccessTuple.Builder>
    • getDefaultInstanceForType

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

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

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

      public AccessTuple.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<AccessTuple.Builder>
    • mergeFrom

      public AccessTuple.Builder mergeFrom(AccessTuple other)
    • isInitialized

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

      public AccessTuple.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<AccessTuple.Builder>
      Throws:
      IOException
    • getPrincipal

      public String getPrincipal()
       Required. The email address of the principal whose access you want to
       check. For example, `alice@example.com` or
       `my-service-account@my-project.iam.gserviceaccount.com`.
      
       The principal must be a Google Account or a service account. Other types of
       principals are not supported.
       
      string principal = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPrincipal in interface AccessTupleOrBuilder
      Returns:
      The principal.
    • getPrincipalBytes

      public com.google.protobuf.ByteString getPrincipalBytes()
       Required. The email address of the principal whose access you want to
       check. For example, `alice@example.com` or
       `my-service-account@my-project.iam.gserviceaccount.com`.
      
       The principal must be a Google Account or a service account. Other types of
       principals are not supported.
       
      string principal = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPrincipalBytes in interface AccessTupleOrBuilder
      Returns:
      The bytes for principal.
    • setPrincipal

      public AccessTuple.Builder setPrincipal(String value)
       Required. The email address of the principal whose access you want to
       check. For example, `alice@example.com` or
       `my-service-account@my-project.iam.gserviceaccount.com`.
      
       The principal must be a Google Account or a service account. Other types of
       principals are not supported.
       
      string principal = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The principal to set.
      Returns:
      This builder for chaining.
    • clearPrincipal

      public AccessTuple.Builder clearPrincipal()
       Required. The email address of the principal whose access you want to
       check. For example, `alice@example.com` or
       `my-service-account@my-project.iam.gserviceaccount.com`.
      
       The principal must be a Google Account or a service account. Other types of
       principals are not supported.
       
      string principal = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setPrincipalBytes

      public AccessTuple.Builder setPrincipalBytes(com.google.protobuf.ByteString value)
       Required. The email address of the principal whose access you want to
       check. For example, `alice@example.com` or
       `my-service-account@my-project.iam.gserviceaccount.com`.
      
       The principal must be a Google Account or a service account. Other types of
       principals are not supported.
       
      string principal = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for principal to set.
      Returns:
      This builder for chaining.
    • getFullResourceName

      public String getFullResourceName()
       Required. The full resource name that identifies the resource. For example,
       `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
      
       For examples of full resource names for Google Cloud services, see
       https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
       
      string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFullResourceName in interface AccessTupleOrBuilder
      Returns:
      The fullResourceName.
    • getFullResourceNameBytes

      public com.google.protobuf.ByteString getFullResourceNameBytes()
       Required. The full resource name that identifies the resource. For example,
       `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
      
       For examples of full resource names for Google Cloud services, see
       https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
       
      string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFullResourceNameBytes in interface AccessTupleOrBuilder
      Returns:
      The bytes for fullResourceName.
    • setFullResourceName

      public AccessTuple.Builder setFullResourceName(String value)
       Required. The full resource name that identifies the resource. For example,
       `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
      
       For examples of full resource names for Google Cloud services, see
       https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
       
      string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The fullResourceName to set.
      Returns:
      This builder for chaining.
    • clearFullResourceName

      public AccessTuple.Builder clearFullResourceName()
       Required. The full resource name that identifies the resource. For example,
       `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
      
       For examples of full resource names for Google Cloud services, see
       https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
       
      string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setFullResourceNameBytes

      public AccessTuple.Builder setFullResourceNameBytes(com.google.protobuf.ByteString value)
       Required. The full resource name that identifies the resource. For example,
       `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
      
       For examples of full resource names for Google Cloud services, see
       https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
       
      string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for fullResourceName to set.
      Returns:
      This builder for chaining.
    • getPermission

      public String getPermission()
       Required. The IAM permission to check for, either in the `v1` permission
       format or the `v2` permission format.
      
       For a complete list of IAM permissions in the `v1` format, see
       https://cloud.google.com/iam/help/permissions/reference.
      
       For a list of IAM permissions in the `v2` format, see
       https://cloud.google.com/iam/help/deny/supported-permissions.
      
       For a complete list of predefined IAM roles and the permissions in each
       role, see https://cloud.google.com/iam/help/roles/reference.
       
      string permission = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPermission in interface AccessTupleOrBuilder
      Returns:
      The permission.
    • getPermissionBytes

      public com.google.protobuf.ByteString getPermissionBytes()
       Required. The IAM permission to check for, either in the `v1` permission
       format or the `v2` permission format.
      
       For a complete list of IAM permissions in the `v1` format, see
       https://cloud.google.com/iam/help/permissions/reference.
      
       For a list of IAM permissions in the `v2` format, see
       https://cloud.google.com/iam/help/deny/supported-permissions.
      
       For a complete list of predefined IAM roles and the permissions in each
       role, see https://cloud.google.com/iam/help/roles/reference.
       
      string permission = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPermissionBytes in interface AccessTupleOrBuilder
      Returns:
      The bytes for permission.
    • setPermission

      public AccessTuple.Builder setPermission(String value)
       Required. The IAM permission to check for, either in the `v1` permission
       format or the `v2` permission format.
      
       For a complete list of IAM permissions in the `v1` format, see
       https://cloud.google.com/iam/help/permissions/reference.
      
       For a list of IAM permissions in the `v2` format, see
       https://cloud.google.com/iam/help/deny/supported-permissions.
      
       For a complete list of predefined IAM roles and the permissions in each
       role, see https://cloud.google.com/iam/help/roles/reference.
       
      string permission = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The permission to set.
      Returns:
      This builder for chaining.
    • clearPermission

      public AccessTuple.Builder clearPermission()
       Required. The IAM permission to check for, either in the `v1` permission
       format or the `v2` permission format.
      
       For a complete list of IAM permissions in the `v1` format, see
       https://cloud.google.com/iam/help/permissions/reference.
      
       For a list of IAM permissions in the `v2` format, see
       https://cloud.google.com/iam/help/deny/supported-permissions.
      
       For a complete list of predefined IAM roles and the permissions in each
       role, see https://cloud.google.com/iam/help/roles/reference.
       
      string permission = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setPermissionBytes

      public AccessTuple.Builder setPermissionBytes(com.google.protobuf.ByteString value)
       Required. The IAM permission to check for, either in the `v1` permission
       format or the `v2` permission format.
      
       For a complete list of IAM permissions in the `v1` format, see
       https://cloud.google.com/iam/help/permissions/reference.
      
       For a list of IAM permissions in the `v2` format, see
       https://cloud.google.com/iam/help/deny/supported-permissions.
      
       For a complete list of predefined IAM roles and the permissions in each
       role, see https://cloud.google.com/iam/help/roles/reference.
       
      string permission = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for permission to set.
      Returns:
      This builder for chaining.
    • getPermissionFqdn

      public String getPermissionFqdn()
       Output only. The permission that Policy Troubleshooter checked for, in
       the `v2` format.
       
      string permission_fqdn = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPermissionFqdn in interface AccessTupleOrBuilder
      Returns:
      The permissionFqdn.
    • getPermissionFqdnBytes

      public com.google.protobuf.ByteString getPermissionFqdnBytes()
       Output only. The permission that Policy Troubleshooter checked for, in
       the `v2` format.
       
      string permission_fqdn = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPermissionFqdnBytes in interface AccessTupleOrBuilder
      Returns:
      The bytes for permissionFqdn.
    • setPermissionFqdn

      public AccessTuple.Builder setPermissionFqdn(String value)
       Output only. The permission that Policy Troubleshooter checked for, in
       the `v2` format.
       
      string permission_fqdn = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The permissionFqdn to set.
      Returns:
      This builder for chaining.
    • clearPermissionFqdn

      public AccessTuple.Builder clearPermissionFqdn()
       Output only. The permission that Policy Troubleshooter checked for, in
       the `v2` format.
       
      string permission_fqdn = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setPermissionFqdnBytes

      public AccessTuple.Builder setPermissionFqdnBytes(com.google.protobuf.ByteString value)
       Output only. The permission that Policy Troubleshooter checked for, in
       the `v2` format.
       
      string permission_fqdn = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for permissionFqdn to set.
      Returns:
      This builder for chaining.
    • hasConditionContext

      public boolean hasConditionContext()
       Optional. Additional context for the request, such as the request time or
       IP address. This context allows Policy Troubleshooter to troubleshoot
       conditional role bindings and deny rules.
       
      .google.cloud.policytroubleshooter.iam.v3.ConditionContext condition_context = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasConditionContext in interface AccessTupleOrBuilder
      Returns:
      Whether the conditionContext field is set.
    • getConditionContext

      public ConditionContext getConditionContext()
       Optional. Additional context for the request, such as the request time or
       IP address. This context allows Policy Troubleshooter to troubleshoot
       conditional role bindings and deny rules.
       
      .google.cloud.policytroubleshooter.iam.v3.ConditionContext condition_context = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConditionContext in interface AccessTupleOrBuilder
      Returns:
      The conditionContext.
    • setConditionContext

      public AccessTuple.Builder setConditionContext(ConditionContext value)
       Optional. Additional context for the request, such as the request time or
       IP address. This context allows Policy Troubleshooter to troubleshoot
       conditional role bindings and deny rules.
       
      .google.cloud.policytroubleshooter.iam.v3.ConditionContext condition_context = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setConditionContext

      public AccessTuple.Builder setConditionContext(ConditionContext.Builder builderForValue)
       Optional. Additional context for the request, such as the request time or
       IP address. This context allows Policy Troubleshooter to troubleshoot
       conditional role bindings and deny rules.
       
      .google.cloud.policytroubleshooter.iam.v3.ConditionContext condition_context = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeConditionContext

      public AccessTuple.Builder mergeConditionContext(ConditionContext value)
       Optional. Additional context for the request, such as the request time or
       IP address. This context allows Policy Troubleshooter to troubleshoot
       conditional role bindings and deny rules.
       
      .google.cloud.policytroubleshooter.iam.v3.ConditionContext condition_context = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearConditionContext

      public AccessTuple.Builder clearConditionContext()
       Optional. Additional context for the request, such as the request time or
       IP address. This context allows Policy Troubleshooter to troubleshoot
       conditional role bindings and deny rules.
       
      .google.cloud.policytroubleshooter.iam.v3.ConditionContext condition_context = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getConditionContextBuilder

      public ConditionContext.Builder getConditionContextBuilder()
       Optional. Additional context for the request, such as the request time or
       IP address. This context allows Policy Troubleshooter to troubleshoot
       conditional role bindings and deny rules.
       
      .google.cloud.policytroubleshooter.iam.v3.ConditionContext condition_context = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getConditionContextOrBuilder

      public ConditionContextOrBuilder getConditionContextOrBuilder()
       Optional. Additional context for the request, such as the request time or
       IP address. This context allows Policy Troubleshooter to troubleshoot
       conditional role bindings and deny rules.
       
      .google.cloud.policytroubleshooter.iam.v3.ConditionContext condition_context = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConditionContextOrBuilder in interface AccessTupleOrBuilder