Class IamPolicySearchResult.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<IamPolicySearchResult.Builder>
com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder
All Implemented Interfaces:
IamPolicySearchResultOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
IamPolicySearchResult

public static final class IamPolicySearchResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<IamPolicySearchResult.Builder> implements IamPolicySearchResultOrBuilder
 The result for an IAM policy search.
 
Protobuf type google.cloud.asset.v1p1beta1.IamPolicySearchResult
  • 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<IamPolicySearchResult.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<IamPolicySearchResult.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<IamPolicySearchResult.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public IamPolicySearchResult.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<IamPolicySearchResult.Builder>
      Throws:
      IOException
    • getResource

      public String getResource()
       The
       [full resource
       name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
       of the resource associated with this IAM policy.
       
      string resource = 1;
      Specified by:
      getResource in interface IamPolicySearchResultOrBuilder
      Returns:
      The resource.
    • getResourceBytes

      public com.google.protobuf.ByteString getResourceBytes()
       The
       [full resource
       name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
       of the resource associated with this IAM policy.
       
      string resource = 1;
      Specified by:
      getResourceBytes in interface IamPolicySearchResultOrBuilder
      Returns:
      The bytes for resource.
    • setResource

      public IamPolicySearchResult.Builder setResource(String value)
       The
       [full resource
       name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
       of the resource associated with this IAM policy.
       
      string resource = 1;
      Parameters:
      value - The resource to set.
      Returns:
      This builder for chaining.
    • clearResource

      public IamPolicySearchResult.Builder clearResource()
       The
       [full resource
       name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
       of the resource associated with this IAM policy.
       
      string resource = 1;
      Returns:
      This builder for chaining.
    • setResourceBytes

      public IamPolicySearchResult.Builder setResourceBytes(com.google.protobuf.ByteString value)
       The
       [full resource
       name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
       of the resource associated with this IAM policy.
       
      string resource = 1;
      Parameters:
      value - The bytes for resource to set.
      Returns:
      This builder for chaining.
    • getProject

      public String getProject()
       The project that the associated Google Cloud resource belongs to, in the
       form of `projects/{project_number}`. If an IAM policy is set on a resource
       -- such as a Compute Engine instance or a Cloud Storage bucket -- the
       project field will indicate the project that contains the resource. If an
       IAM policy is set on a folder or organization, the project field will be
       empty.
       
      string project = 3;
      Specified by:
      getProject in interface IamPolicySearchResultOrBuilder
      Returns:
      The project.
    • getProjectBytes

      public com.google.protobuf.ByteString getProjectBytes()
       The project that the associated Google Cloud resource belongs to, in the
       form of `projects/{project_number}`. If an IAM policy is set on a resource
       -- such as a Compute Engine instance or a Cloud Storage bucket -- the
       project field will indicate the project that contains the resource. If an
       IAM policy is set on a folder or organization, the project field will be
       empty.
       
      string project = 3;
      Specified by:
      getProjectBytes in interface IamPolicySearchResultOrBuilder
      Returns:
      The bytes for project.
    • setProject

      public IamPolicySearchResult.Builder setProject(String value)
       The project that the associated Google Cloud resource belongs to, in the
       form of `projects/{project_number}`. If an IAM policy is set on a resource
       -- such as a Compute Engine instance or a Cloud Storage bucket -- the
       project field will indicate the project that contains the resource. If an
       IAM policy is set on a folder or organization, the project field will be
       empty.
       
      string project = 3;
      Parameters:
      value - The project to set.
      Returns:
      This builder for chaining.
    • clearProject

      public IamPolicySearchResult.Builder clearProject()
       The project that the associated Google Cloud resource belongs to, in the
       form of `projects/{project_number}`. If an IAM policy is set on a resource
       -- such as a Compute Engine instance or a Cloud Storage bucket -- the
       project field will indicate the project that contains the resource. If an
       IAM policy is set on a folder or organization, the project field will be
       empty.
       
      string project = 3;
      Returns:
      This builder for chaining.
    • setProjectBytes

      public IamPolicySearchResult.Builder setProjectBytes(com.google.protobuf.ByteString value)
       The project that the associated Google Cloud resource belongs to, in the
       form of `projects/{project_number}`. If an IAM policy is set on a resource
       -- such as a Compute Engine instance or a Cloud Storage bucket -- the
       project field will indicate the project that contains the resource. If an
       IAM policy is set on a folder or organization, the project field will be
       empty.
       
      string project = 3;
      Parameters:
      value - The bytes for project to set.
      Returns:
      This builder for chaining.
    • hasPolicy

      public boolean hasPolicy()
       The IAM policy attached to the specified resource. Note that the original
       IAM policy can contain multiple bindings. This only contains the bindings
       that match the given query. For queries that don't contain a constraint on
       policies (e.g. an empty query), this contains all the bindings.
       
      .google.iam.v1.Policy policy = 4;
      Specified by:
      hasPolicy in interface IamPolicySearchResultOrBuilder
      Returns:
      Whether the policy field is set.
    • getPolicy

      public Policy getPolicy()
       The IAM policy attached to the specified resource. Note that the original
       IAM policy can contain multiple bindings. This only contains the bindings
       that match the given query. For queries that don't contain a constraint on
       policies (e.g. an empty query), this contains all the bindings.
       
      .google.iam.v1.Policy policy = 4;
      Specified by:
      getPolicy in interface IamPolicySearchResultOrBuilder
      Returns:
      The policy.
    • setPolicy

      public IamPolicySearchResult.Builder setPolicy(Policy value)
       The IAM policy attached to the specified resource. Note that the original
       IAM policy can contain multiple bindings. This only contains the bindings
       that match the given query. For queries that don't contain a constraint on
       policies (e.g. an empty query), this contains all the bindings.
       
      .google.iam.v1.Policy policy = 4;
    • setPolicy

      public IamPolicySearchResult.Builder setPolicy(Policy.Builder builderForValue)
       The IAM policy attached to the specified resource. Note that the original
       IAM policy can contain multiple bindings. This only contains the bindings
       that match the given query. For queries that don't contain a constraint on
       policies (e.g. an empty query), this contains all the bindings.
       
      .google.iam.v1.Policy policy = 4;
    • mergePolicy

      public IamPolicySearchResult.Builder mergePolicy(Policy value)
       The IAM policy attached to the specified resource. Note that the original
       IAM policy can contain multiple bindings. This only contains the bindings
       that match the given query. For queries that don't contain a constraint on
       policies (e.g. an empty query), this contains all the bindings.
       
      .google.iam.v1.Policy policy = 4;
    • clearPolicy

      public IamPolicySearchResult.Builder clearPolicy()
       The IAM policy attached to the specified resource. Note that the original
       IAM policy can contain multiple bindings. This only contains the bindings
       that match the given query. For queries that don't contain a constraint on
       policies (e.g. an empty query), this contains all the bindings.
       
      .google.iam.v1.Policy policy = 4;
    • getPolicyBuilder

      public Policy.Builder getPolicyBuilder()
       The IAM policy attached to the specified resource. Note that the original
       IAM policy can contain multiple bindings. This only contains the bindings
       that match the given query. For queries that don't contain a constraint on
       policies (e.g. an empty query), this contains all the bindings.
       
      .google.iam.v1.Policy policy = 4;
    • getPolicyOrBuilder

      public PolicyOrBuilder getPolicyOrBuilder()
       The IAM policy attached to the specified resource. Note that the original
       IAM policy can contain multiple bindings. This only contains the bindings
       that match the given query. For queries that don't contain a constraint on
       policies (e.g. an empty query), this contains all the bindings.
       
      .google.iam.v1.Policy policy = 4;
      Specified by:
      getPolicyOrBuilder in interface IamPolicySearchResultOrBuilder
    • hasExplanation

      public boolean hasExplanation()
       Explanation about the IAM policy search result. It contains additional
       information that explains why the search result matches the query.
       
      .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
      Specified by:
      hasExplanation in interface IamPolicySearchResultOrBuilder
      Returns:
      Whether the explanation field is set.
    • getExplanation

      public IamPolicySearchResult.Explanation getExplanation()
       Explanation about the IAM policy search result. It contains additional
       information that explains why the search result matches the query.
       
      .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
      Specified by:
      getExplanation in interface IamPolicySearchResultOrBuilder
      Returns:
      The explanation.
    • setExplanation

       Explanation about the IAM policy search result. It contains additional
       information that explains why the search result matches the query.
       
      .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
    • setExplanation

       Explanation about the IAM policy search result. It contains additional
       information that explains why the search result matches the query.
       
      .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
    • mergeExplanation

       Explanation about the IAM policy search result. It contains additional
       information that explains why the search result matches the query.
       
      .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
    • clearExplanation

      public IamPolicySearchResult.Builder clearExplanation()
       Explanation about the IAM policy search result. It contains additional
       information that explains why the search result matches the query.
       
      .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
    • getExplanationBuilder

      public IamPolicySearchResult.Explanation.Builder getExplanationBuilder()
       Explanation about the IAM policy search result. It contains additional
       information that explains why the search result matches the query.
       
      .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
    • getExplanationOrBuilder

      public IamPolicySearchResult.ExplanationOrBuilder getExplanationOrBuilder()
       Explanation about the IAM policy search result. It contains additional
       information that explains why the search result matches the query.
       
      .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
      Specified by:
      getExplanationOrBuilder in interface IamPolicySearchResultOrBuilder