Class SearchAllIamPoliciesResponse.Builder

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

public static final class SearchAllIamPoliciesResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<SearchAllIamPoliciesResponse.Builder> implements SearchAllIamPoliciesResponseOrBuilder
 Search all IAM policies response.
 
Protobuf type google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse
  • 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<SearchAllIamPoliciesResponse.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<SearchAllIamPoliciesResponse.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<SearchAllIamPoliciesResponse.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public SearchAllIamPoliciesResponse.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<SearchAllIamPoliciesResponse.Builder>
      Throws:
      IOException
    • getResultsList

      public List<IamPolicySearchResult> getResultsList()
       A list of IAM policies that match the search query. Related information
       such as the associated resource is returned along with the policy.
       
      repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
      Specified by:
      getResultsList in interface SearchAllIamPoliciesResponseOrBuilder
    • getResultsCount

      public int getResultsCount()
       A list of IAM policies that match the search query. Related information
       such as the associated resource is returned along with the policy.
       
      repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
      Specified by:
      getResultsCount in interface SearchAllIamPoliciesResponseOrBuilder
    • getResults

      public IamPolicySearchResult getResults(int index)
       A list of IAM policies that match the search query. Related information
       such as the associated resource is returned along with the policy.
       
      repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
      Specified by:
      getResults in interface SearchAllIamPoliciesResponseOrBuilder
    • setResults

      public SearchAllIamPoliciesResponse.Builder setResults(int index, IamPolicySearchResult value)
       A list of IAM policies that match the search query. Related information
       such as the associated resource is returned along with the policy.
       
      repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
    • setResults

      public SearchAllIamPoliciesResponse.Builder setResults(int index, IamPolicySearchResult.Builder builderForValue)
       A list of IAM policies that match the search query. Related information
       such as the associated resource is returned along with the policy.
       
      repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
    • addResults

       A list of IAM policies that match the search query. Related information
       such as the associated resource is returned along with the policy.
       
      repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
    • addResults

      public SearchAllIamPoliciesResponse.Builder addResults(int index, IamPolicySearchResult value)
       A list of IAM policies that match the search query. Related information
       such as the associated resource is returned along with the policy.
       
      repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
    • addResults

       A list of IAM policies that match the search query. Related information
       such as the associated resource is returned along with the policy.
       
      repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
    • addResults

      public SearchAllIamPoliciesResponse.Builder addResults(int index, IamPolicySearchResult.Builder builderForValue)
       A list of IAM policies that match the search query. Related information
       such as the associated resource is returned along with the policy.
       
      repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
    • addAllResults

      public SearchAllIamPoliciesResponse.Builder addAllResults(Iterable<? extends IamPolicySearchResult> values)
       A list of IAM policies that match the search query. Related information
       such as the associated resource is returned along with the policy.
       
      repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
    • clearResults

      public SearchAllIamPoliciesResponse.Builder clearResults()
       A list of IAM policies that match the search query. Related information
       such as the associated resource is returned along with the policy.
       
      repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
    • removeResults

      public SearchAllIamPoliciesResponse.Builder removeResults(int index)
       A list of IAM policies that match the search query. Related information
       such as the associated resource is returned along with the policy.
       
      repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
    • getResultsBuilder

      public IamPolicySearchResult.Builder getResultsBuilder(int index)
       A list of IAM policies that match the search query. Related information
       such as the associated resource is returned along with the policy.
       
      repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
    • getResultsOrBuilder

      public IamPolicySearchResultOrBuilder getResultsOrBuilder(int index)
       A list of IAM policies that match the search query. Related information
       such as the associated resource is returned along with the policy.
       
      repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
      Specified by:
      getResultsOrBuilder in interface SearchAllIamPoliciesResponseOrBuilder
    • getResultsOrBuilderList

      public List<? extends IamPolicySearchResultOrBuilder> getResultsOrBuilderList()
       A list of IAM policies that match the search query. Related information
       such as the associated resource is returned along with the policy.
       
      repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
      Specified by:
      getResultsOrBuilderList in interface SearchAllIamPoliciesResponseOrBuilder
    • addResultsBuilder

      public IamPolicySearchResult.Builder addResultsBuilder()
       A list of IAM policies that match the search query. Related information
       such as the associated resource is returned along with the policy.
       
      repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
    • addResultsBuilder

      public IamPolicySearchResult.Builder addResultsBuilder(int index)
       A list of IAM policies that match the search query. Related information
       such as the associated resource is returned along with the policy.
       
      repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
    • getResultsBuilderList

      public List<IamPolicySearchResult.Builder> getResultsBuilderList()
       A list of IAM policies that match the search query. Related information
       such as the associated resource is returned along with the policy.
       
      repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
    • getNextPageToken

      public String getNextPageToken()
       Set if there are more results than those appearing in this response; to get
       the next set of results, call this method again, using this value as the
       `page_token`.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface SearchAllIamPoliciesResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       Set if there are more results than those appearing in this response; to get
       the next set of results, call this method again, using this value as the
       `page_token`.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface SearchAllIamPoliciesResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public SearchAllIamPoliciesResponse.Builder setNextPageToken(String value)
       Set if there are more results than those appearing in this response; to get
       the next set of results, call this method again, using this value as the
       `page_token`.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public SearchAllIamPoliciesResponse.Builder clearNextPageToken()
       Set if there are more results than those appearing in this response; to get
       the next set of results, call this method again, using this value as the
       `page_token`.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public SearchAllIamPoliciesResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       Set if there are more results than those appearing in this response; to get
       the next set of results, call this method again, using this value as the
       `page_token`.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.