Class IamPolicySearchResult

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.asset.v1p1beta1.IamPolicySearchResult
All Implemented Interfaces:
IamPolicySearchResultOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class IamPolicySearchResult extends com.google.protobuf.GeneratedMessage implements IamPolicySearchResultOrBuilder
 The result for an IAM policy search.
 
Protobuf type google.cloud.asset.v1p1beta1.IamPolicySearchResult
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    The result for an IAM policy search.
    static final class 
    Explanation about the IAM policy search result.
    static interface 
     

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    Explanation about the IAM policy search result.
    Explanation about the IAM policy search result.
    com.google.protobuf.Parser<IamPolicySearchResult>
     
    The IAM policy attached to the specified resource.
    The IAM policy attached to the specified resource.
    The project that the associated Google Cloud resource belongs to, in the form of `projects/{project_number}`.
    com.google.protobuf.ByteString
    The project that the associated Google Cloud resource belongs to, in the form of `projects/{project_number}`.
    The [full resource name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the resource associated with this IAM policy.
    com.google.protobuf.ByteString
    The [full resource name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the resource associated with this IAM policy.
    int
     
    boolean
    Explanation about the IAM policy search result.
    int
     
    boolean
    The IAM policy attached to the specified resource.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<IamPolicySearchResult>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static IamPolicySearchResult parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IamPolicySearchResult parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IamPolicySearchResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IamPolicySearchResult parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IamPolicySearchResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IamPolicySearchResult parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IamPolicySearchResult parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static IamPolicySearchResult parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static IamPolicySearchResult parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static IamPolicySearchResult parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static IamPolicySearchResult parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static IamPolicySearchResult parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static IamPolicySearchResult.Builder newBuilder()
    • newBuilder

      public static IamPolicySearchResult.Builder newBuilder(IamPolicySearchResult prototype)
    • toBuilder

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

      protected IamPolicySearchResult.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static IamPolicySearchResult getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<IamPolicySearchResult> parser()
    • getParserForType

      public com.google.protobuf.Parser<IamPolicySearchResult> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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