Package com.google.cloud.asset.v1
Class IamPolicySearchResult
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.asset.v1.IamPolicySearchResult
-
- All Implemented Interfaces:
IamPolicySearchResultOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class IamPolicySearchResult extends com.google.protobuf.GeneratedMessageV3 implements IamPolicySearchResultOrBuilder
A result of IAM Policy search, containing information of an IAM policy.
Protobuf typegoogle.cloud.asset.v1.IamPolicySearchResult- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIamPolicySearchResult.BuilderA result of IAM Policy search, containing information of an IAM policy.static classIamPolicySearchResult.ExplanationExplanation about the IAM policy search result.static interfaceIamPolicySearchResult.ExplanationOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intASSET_TYPE_FIELD_NUMBERstatic intEXPLANATION_FIELD_NUMBERstatic intFOLDERS_FIELD_NUMBERstatic intORGANIZATION_FIELD_NUMBERstatic intPOLICY_FIELD_NUMBERstatic intPROJECT_FIELD_NUMBERstatic intRESOURCE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAssetType()The type of the resource associated with this IAM policy.com.google.protobuf.ByteStringgetAssetTypeBytes()The type of the resource associated with this IAM policy.static IamPolicySearchResultgetDefaultInstance()IamPolicySearchResultgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()IamPolicySearchResult.ExplanationgetExplanation()Explanation about the IAM policy search result.IamPolicySearchResult.ExplanationOrBuildergetExplanationOrBuilder()Explanation about the IAM policy search result.StringgetFolders(int index)The folder(s) that the IAM policy belongs to, in the form of folders/{FOLDER_NUMBER}.com.google.protobuf.ByteStringgetFoldersBytes(int index)The folder(s) that the IAM policy belongs to, in the form of folders/{FOLDER_NUMBER}.intgetFoldersCount()The folder(s) that the IAM policy belongs to, in the form of folders/{FOLDER_NUMBER}.com.google.protobuf.ProtocolStringListgetFoldersList()The folder(s) that the IAM policy belongs to, in the form of folders/{FOLDER_NUMBER}.StringgetOrganization()The organization that the IAM policy belongs to, in the form of organizations/{ORGANIZATION_NUMBER}.com.google.protobuf.ByteStringgetOrganizationBytes()The organization that the IAM policy belongs to, in the form of organizations/{ORGANIZATION_NUMBER}.com.google.protobuf.Parser<IamPolicySearchResult>getParserForType()com.google.iam.v1.PolicygetPolicy()The IAM policy directly set on the given resource.com.google.iam.v1.PolicyOrBuildergetPolicyOrBuilder()The IAM policy directly set on the given resource.StringgetProject()The project that the associated Google Cloud resource belongs to, in the form of projects/{PROJECT_NUMBER}.com.google.protobuf.ByteStringgetProjectBytes()The project that the associated Google Cloud resource belongs to, in the form of projects/{PROJECT_NUMBER}.StringgetResource()The full resource name of the resource associated with this IAM policy.com.google.protobuf.ByteStringgetResourceBytes()The full resource name of the resource associated with this IAM policy.intgetSerializedSize()booleanhasExplanation()Explanation about the IAM policy search result.inthashCode()booleanhasPolicy()The IAM policy directly set on the given resource.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static IamPolicySearchResult.BuildernewBuilder()static IamPolicySearchResult.BuildernewBuilder(IamPolicySearchResult prototype)IamPolicySearchResult.BuildernewBuilderForType()protected IamPolicySearchResult.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static IamPolicySearchResultparseDelimitedFrom(InputStream input)static IamPolicySearchResultparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static IamPolicySearchResultparseFrom(byte[] data)static IamPolicySearchResultparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static IamPolicySearchResultparseFrom(com.google.protobuf.ByteString data)static IamPolicySearchResultparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static IamPolicySearchResultparseFrom(com.google.protobuf.CodedInputStream input)static IamPolicySearchResultparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static IamPolicySearchResultparseFrom(InputStream input)static IamPolicySearchResultparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static IamPolicySearchResultparseFrom(ByteBuffer data)static IamPolicySearchResultparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<IamPolicySearchResult>parser()IamPolicySearchResult.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
RESOURCE_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ASSET_TYPE_FIELD_NUMBER
public static final int ASSET_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROJECT_FIELD_NUMBER
public static final int PROJECT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FOLDERS_FIELD_NUMBER
public static final int FOLDERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ORGANIZATION_FIELD_NUMBER
public static final int ORGANIZATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
POLICY_FIELD_NUMBER
public static final int POLICY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXPLANATION_FIELD_NUMBER
public static final int EXPLANATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getResource
public String getResource()
The full resource name of the resource associated with this IAM policy. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See [Cloud Asset Inventory Resource Name Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) for more information. To search against the `resource`: * use a field query. Example: `resource:organizations/123`
string resource = 1;- Specified by:
getResourcein interfaceIamPolicySearchResultOrBuilder- Returns:
- The resource.
-
getResourceBytes
public com.google.protobuf.ByteString getResourceBytes()
The full resource name of the resource associated with this IAM policy. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See [Cloud Asset Inventory Resource Name Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) for more information. To search against the `resource`: * use a field query. Example: `resource:organizations/123`
string resource = 1;- Specified by:
getResourceBytesin interfaceIamPolicySearchResultOrBuilder- Returns:
- The bytes for resource.
-
getAssetType
public String getAssetType()
The type of the resource associated with this IAM policy. Example: `compute.googleapis.com/Disk`. To search against the `asset_type`: * specify the `asset_types` field in your search request.
string asset_type = 5;- Specified by:
getAssetTypein interfaceIamPolicySearchResultOrBuilder- Returns:
- The assetType.
-
getAssetTypeBytes
public com.google.protobuf.ByteString getAssetTypeBytes()
The type of the resource associated with this IAM policy. Example: `compute.googleapis.com/Disk`. To search against the `asset_type`: * specify the `asset_types` field in your search request.
string asset_type = 5;- Specified by:
getAssetTypeBytesin interfaceIamPolicySearchResultOrBuilder- Returns:
- The bytes for assetType.
-
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 (like VM instance, Cloud Storage bucket), the project field will indicate the project that contains the resource. If an IAM policy is set on a folder or orgnization, this field will be empty. To search against the `project`: * specify the `scope` field as this project in your search request.string project = 2;- Specified by:
getProjectin interfaceIamPolicySearchResultOrBuilder- 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 (like VM instance, Cloud Storage bucket), the project field will indicate the project that contains the resource. If an IAM policy is set on a folder or orgnization, this field will be empty. To search against the `project`: * specify the `scope` field as this project in your search request.string project = 2;- Specified by:
getProjectBytesin interfaceIamPolicySearchResultOrBuilder- Returns:
- The bytes for project.
-
getFoldersList
public com.google.protobuf.ProtocolStringList getFoldersList()
The folder(s) that the IAM policy belongs to, in the form of folders/{FOLDER_NUMBER}. This field is available when the IAM policy belongs to one or more folders. To search against `folders`: * use a field query. Example: `folders:(123 OR 456)` * use a free text query. Example: `123` * specify the `scope` field as this folder in your search request.repeated string folders = 6;- Specified by:
getFoldersListin interfaceIamPolicySearchResultOrBuilder- Returns:
- A list containing the folders.
-
getFoldersCount
public int getFoldersCount()
The folder(s) that the IAM policy belongs to, in the form of folders/{FOLDER_NUMBER}. This field is available when the IAM policy belongs to one or more folders. To search against `folders`: * use a field query. Example: `folders:(123 OR 456)` * use a free text query. Example: `123` * specify the `scope` field as this folder in your search request.repeated string folders = 6;- Specified by:
getFoldersCountin interfaceIamPolicySearchResultOrBuilder- Returns:
- The count of folders.
-
getFolders
public String getFolders(int index)
The folder(s) that the IAM policy belongs to, in the form of folders/{FOLDER_NUMBER}. This field is available when the IAM policy belongs to one or more folders. To search against `folders`: * use a field query. Example: `folders:(123 OR 456)` * use a free text query. Example: `123` * specify the `scope` field as this folder in your search request.repeated string folders = 6;- Specified by:
getFoldersin interfaceIamPolicySearchResultOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The folders at the given index.
-
getFoldersBytes
public com.google.protobuf.ByteString getFoldersBytes(int index)
The folder(s) that the IAM policy belongs to, in the form of folders/{FOLDER_NUMBER}. This field is available when the IAM policy belongs to one or more folders. To search against `folders`: * use a field query. Example: `folders:(123 OR 456)` * use a free text query. Example: `123` * specify the `scope` field as this folder in your search request.repeated string folders = 6;- Specified by:
getFoldersBytesin interfaceIamPolicySearchResultOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the folders at the given index.
-
getOrganization
public String getOrganization()
The organization that the IAM policy belongs to, in the form of organizations/{ORGANIZATION_NUMBER}. This field is available when the IAM policy belongs to an organization. To search against `organization`: * use a field query. Example: `organization:123` * use a free text query. Example: `123` * specify the `scope` field as this organization in your search request.string organization = 7;- Specified by:
getOrganizationin interfaceIamPolicySearchResultOrBuilder- Returns:
- The organization.
-
getOrganizationBytes
public com.google.protobuf.ByteString getOrganizationBytes()
The organization that the IAM policy belongs to, in the form of organizations/{ORGANIZATION_NUMBER}. This field is available when the IAM policy belongs to an organization. To search against `organization`: * use a field query. Example: `organization:123` * use a free text query. Example: `123` * specify the `scope` field as this organization in your search request.string organization = 7;- Specified by:
getOrganizationBytesin interfaceIamPolicySearchResultOrBuilder- Returns:
- The bytes for organization.
-
hasPolicy
public boolean hasPolicy()
The IAM policy directly set on the given 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 constrain on policies (e.g., an empty query), this contains all the bindings. To search against the `policy` bindings: * use a field query: - query by the policy contained members. Example: `policy:amy@gmail.com` - query by the policy contained roles. Example: `policy:roles/compute.admin` - query by the policy contained roles' included permissions. Example: `policy.role.permissions:compute.instances.create`.google.iam.v1.Policy policy = 3;- Specified by:
hasPolicyin interfaceIamPolicySearchResultOrBuilder- Returns:
- Whether the policy field is set.
-
getPolicy
public com.google.iam.v1.Policy getPolicy()
The IAM policy directly set on the given 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 constrain on policies (e.g., an empty query), this contains all the bindings. To search against the `policy` bindings: * use a field query: - query by the policy contained members. Example: `policy:amy@gmail.com` - query by the policy contained roles. Example: `policy:roles/compute.admin` - query by the policy contained roles' included permissions. Example: `policy.role.permissions:compute.instances.create`.google.iam.v1.Policy policy = 3;- Specified by:
getPolicyin interfaceIamPolicySearchResultOrBuilder- Returns:
- The policy.
-
getPolicyOrBuilder
public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder()
The IAM policy directly set on the given 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 constrain on policies (e.g., an empty query), this contains all the bindings. To search against the `policy` bindings: * use a field query: - query by the policy contained members. Example: `policy:amy@gmail.com` - query by the policy contained roles. Example: `policy:roles/compute.admin` - query by the policy contained roles' included permissions. Example: `policy.role.permissions:compute.instances.create`.google.iam.v1.Policy policy = 3;- Specified by:
getPolicyOrBuilderin interfaceIamPolicySearchResultOrBuilder
-
hasExplanation
public boolean hasExplanation()
Explanation about the IAM policy search result. It contains additional information to explain why the search result matches the query.
.google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4;- Specified by:
hasExplanationin interfaceIamPolicySearchResultOrBuilder- Returns:
- Whether the explanation field is set.
-
getExplanation
public IamPolicySearchResult.Explanation getExplanation()
Explanation about the IAM policy search result. It contains additional information to explain why the search result matches the query.
.google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4;- Specified by:
getExplanationin interfaceIamPolicySearchResultOrBuilder- Returns:
- The explanation.
-
getExplanationOrBuilder
public IamPolicySearchResult.ExplanationOrBuilder getExplanationOrBuilder()
Explanation about the IAM policy search result. It contains additional information to explain why the search result matches the query.
.google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4;- Specified by:
getExplanationOrBuilderin interfaceIamPolicySearchResultOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static IamPolicySearchResult.Builder newBuilder()
-
newBuilder
public static IamPolicySearchResult.Builder newBuilder(IamPolicySearchResult prototype)
-
toBuilder
public IamPolicySearchResult.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected IamPolicySearchResult.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static IamPolicySearchResult getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<IamPolicySearchResult> parser()
-
getParserForType
public com.google.protobuf.Parser<IamPolicySearchResult> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public IamPolicySearchResult getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-