Package com.google.cloud.asset.v1p1beta1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Explanation about the IAM policy search result.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}`.The [full resource name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the resource associated with this IAM policy.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorExplanation about the IAM policy search result.Explanation about the IAM policy search result.Explanation about the IAM policy search result.The IAM policy attached to the specified resource.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.ByteStringThe 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.ByteStringThe [full resource name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the resource associated with this IAM policy.booleanExplanation about the IAM policy search result.booleanThe IAM policy attached to the specified resource.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanExplanation about the IAM policy search result.mergeFrom(IamPolicySearchResult other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePolicy(Policy value) The IAM policy attached to the specified resource.Explanation about the IAM policy search result.setExplanation(IamPolicySearchResult.Explanation.Builder builderForValue) Explanation about the IAM policy search result.The IAM policy attached to the specified resource.setPolicy(Policy.Builder builderForValue) The IAM policy attached to the specified resource.setProject(String value) The project that the associated Google Cloud resource belongs to, in the form of `projects/{project_number}`.setProjectBytes(com.google.protobuf.ByteString value) The project that the associated Google Cloud resource belongs to, in the form of `projects/{project_number}`.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.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.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<IamPolicySearchResult.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<IamPolicySearchResult.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<IamPolicySearchResult.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IamPolicySearchResult.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IamPolicySearchResult.Builder>- Throws:
IOException
-
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:
getResourcein 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:
getResourceBytesin interfaceIamPolicySearchResultOrBuilder- Returns:
- The bytes for resource.
-
setResource
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
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
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
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:
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 -- 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:
getProjectBytesin interfaceIamPolicySearchResultOrBuilder- Returns:
- The bytes for project.
-
setProject
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
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
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:
hasPolicyin interfaceIamPolicySearchResultOrBuilder- Returns:
- Whether the policy field is set.
-
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:
getPolicyin interfaceIamPolicySearchResultOrBuilder- Returns:
- The policy.
-
setPolicy
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
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
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
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
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
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:
getPolicyOrBuilderin 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:
hasExplanationin interfaceIamPolicySearchResultOrBuilder- Returns:
- Whether the explanation field is set.
-
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:
getExplanationin interfaceIamPolicySearchResultOrBuilder- 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
public IamPolicySearchResult.Builder setExplanation(IamPolicySearchResult.Explanation.Builder builderForValue) 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
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
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
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:
getExplanationOrBuilderin interfaceIamPolicySearchResultOrBuilder
-