Package com.google.cloud.asset.v1p1beta1
Class IamPolicySearchResult
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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
public final class IamPolicySearchResult extends com.google.protobuf.GeneratedMessageV3 implements IamPolicySearchResultOrBuilder
The result for an IAM policy search.
Protobuf typegoogle.cloud.asset.v1p1beta1.IamPolicySearchResult
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IamPolicySearchResult.Builder
The result for an IAM policy search.static class
IamPolicySearchResult.Explanation
Explanation about the IAM policy search result.static interface
IamPolicySearchResult.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 int
EXPLANATION_FIELD_NUMBER
static int
POLICY_FIELD_NUMBER
static int
PROJECT_FIELD_NUMBER
static int
RESOURCE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static IamPolicySearchResult
getDefaultInstance()
IamPolicySearchResult
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
IamPolicySearchResult.Explanation
getExplanation()
Explanation about the IAM policy search result.IamPolicySearchResult.ExplanationOrBuilder
getExplanationOrBuilder()
Explanation about the IAM policy search result.com.google.protobuf.Parser<IamPolicySearchResult>
getParserForType()
com.google.iam.v1.Policy
getPolicy()
The IAM policy attached to the specified resource.com.google.iam.v1.PolicyOrBuilder
getPolicyOrBuilder()
The IAM policy attached to the specified resource.String
getProject()
The project that the associated Google Cloud resource belongs to, in the form of `projects/{project_number}`.com.google.protobuf.ByteString
getProjectBytes()
The project that the associated Google Cloud resource belongs to, in the form of `projects/{project_number}`.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.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.int
getSerializedSize()
boolean
hasExplanation()
Explanation about the IAM policy search result.int
hashCode()
boolean
hasPolicy()
The IAM policy attached to the specified resource.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static IamPolicySearchResult.Builder
newBuilder()
static IamPolicySearchResult.Builder
newBuilder(IamPolicySearchResult prototype)
IamPolicySearchResult.Builder
newBuilderForType()
protected IamPolicySearchResult.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static IamPolicySearchResult
parseDelimitedFrom(InputStream input)
static IamPolicySearchResult
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static IamPolicySearchResult
parseFrom(byte[] data)
static IamPolicySearchResult
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static IamPolicySearchResult
parseFrom(com.google.protobuf.ByteString data)
static IamPolicySearchResult
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static IamPolicySearchResult
parseFrom(com.google.protobuf.CodedInputStream input)
static IamPolicySearchResult
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static IamPolicySearchResult
parseFrom(InputStream input)
static IamPolicySearchResult
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static IamPolicySearchResult
parseFrom(ByteBuffer data)
static IamPolicySearchResult
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<IamPolicySearchResult>
parser()
IamPolicySearchResult.Builder
toBuilder()
void
writeTo(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
-
PROJECT_FIELD_NUMBER
public static final int PROJECT_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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
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 interfaceIamPolicySearchResultOrBuilder
- 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 interfaceIamPolicySearchResultOrBuilder
- 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 orgnization, the project field will be empty.
string project = 3;
- Specified by:
getProject
in 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 -- 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 orgnization, the project field will be empty.
string project = 3;
- Specified by:
getProjectBytes
in interfaceIamPolicySearchResultOrBuilder
- 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 interfaceIamPolicySearchResultOrBuilder
- Returns:
- Whether the policy field is set.
-
getPolicy
public com.google.iam.v1.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 interfaceIamPolicySearchResultOrBuilder
- Returns:
- The policy.
-
getPolicyOrBuilder
public com.google.iam.v1.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 interfaceIamPolicySearchResultOrBuilder
-
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 interfaceIamPolicySearchResultOrBuilder
- 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 interfaceIamPolicySearchResultOrBuilder
- 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 interfaceIamPolicySearchResultOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected IamPolicySearchResult.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public IamPolicySearchResult getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-