Class Explanations.AccessTuple.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Explanations.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.GeneratedMessageV3.Builder<Explanations.AccessTuple.Builder>
      • getDefaultInstanceForType

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

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

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

        public Explanations.AccessTuple.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Explanations.AccessTuple.Builder>
      • addRepeatedField

        public Explanations.AccessTuple.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Explanations.AccessTuple.Builder>
      • isInitialized

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

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

        public String getPrincipal()
         Required. The principal whose access you want to check, in the form of
         the email address that represents that principal. 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 Explanations.AccessTupleOrBuilder
        Returns:
        The principal.
      • getPrincipalBytes

        public com.google.protobuf.ByteString getPrincipalBytes()
         Required. The principal whose access you want to check, in the form of
         the email address that represents that principal. 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 Explanations.AccessTupleOrBuilder
        Returns:
        The bytes for principal.
      • setPrincipal

        public Explanations.AccessTuple.Builder setPrincipal​(String value)
         Required. The principal whose access you want to check, in the form of
         the email address that represents that principal. 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 Explanations.AccessTuple.Builder clearPrincipal()
         Required. The principal whose access you want to check, in the form of
         the email address that represents that principal. 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 Explanations.AccessTuple.Builder setPrincipalBytes​(com.google.protobuf.ByteString value)
         Required. The principal whose access you want to check, in the form of
         the email address that represents that principal. 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 Explanations.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 Explanations.AccessTupleOrBuilder
        Returns:
        The bytes for fullResourceName.
      • setFullResourceName

        public Explanations.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 Explanations.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 Explanations.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 the specified principal and
         resource.
        
         For a complete list of IAM permissions, see
         https://cloud.google.com/iam/help/permissions/reference.
        
         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 Explanations.AccessTupleOrBuilder
        Returns:
        The permission.
      • getPermissionBytes

        public com.google.protobuf.ByteString getPermissionBytes()
         Required. The IAM permission to check for the specified principal and
         resource.
        
         For a complete list of IAM permissions, see
         https://cloud.google.com/iam/help/permissions/reference.
        
         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 Explanations.AccessTupleOrBuilder
        Returns:
        The bytes for permission.
      • setPermission

        public Explanations.AccessTuple.Builder setPermission​(String value)
         Required. The IAM permission to check for the specified principal and
         resource.
        
         For a complete list of IAM permissions, see
         https://cloud.google.com/iam/help/permissions/reference.
        
         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 Explanations.AccessTuple.Builder clearPermission()
         Required. The IAM permission to check for the specified principal and
         resource.
        
         For a complete list of IAM permissions, see
         https://cloud.google.com/iam/help/permissions/reference.
        
         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 Explanations.AccessTuple.Builder setPermissionBytes​(com.google.protobuf.ByteString value)
         Required. The IAM permission to check for the specified principal and
         resource.
        
         For a complete list of IAM permissions, see
         https://cloud.google.com/iam/help/permissions/reference.
        
         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.
      • setUnknownFields

        public final Explanations.AccessTuple.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Explanations.AccessTuple.Builder>
      • mergeUnknownFields

        public final Explanations.AccessTuple.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Explanations.AccessTuple.Builder>