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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<IamPolicySearchResult.Builder> implements IamPolicySearchResultOrBuilder
The result for an IAM policy search.
Protobuf typegoogle.cloud.asset.v1p1beta1.IamPolicySearchResult
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IamPolicySearchResult.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)IamPolicySearchResultbuild()IamPolicySearchResultbuildPartial()IamPolicySearchResult.Builderclear()IamPolicySearchResult.BuilderclearExplanation()Explanation about the IAM policy search result.IamPolicySearchResult.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)IamPolicySearchResult.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)IamPolicySearchResult.BuilderclearPolicy()The IAM policy attached to the specified resource.IamPolicySearchResult.BuilderclearProject()The project that the associated Google Cloud resource belongs to, in the form of `projects/{project_number}`.IamPolicySearchResult.BuilderclearResource()The [full resource name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the resource associated with this IAM policy.IamPolicySearchResult.Builderclone()IamPolicySearchResultgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()IamPolicySearchResult.ExplanationgetExplanation()Explanation about the IAM policy search result.IamPolicySearchResult.Explanation.BuildergetExplanationBuilder()Explanation about the IAM policy search result.IamPolicySearchResult.ExplanationOrBuildergetExplanationOrBuilder()Explanation about the IAM policy search result.com.google.iam.v1.PolicygetPolicy()The IAM policy attached to the specified resource.com.google.iam.v1.Policy.BuildergetPolicyBuilder()The IAM policy attached to the specified resource.com.google.iam.v1.PolicyOrBuildergetPolicyOrBuilder()The IAM policy attached to the specified 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](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the resource associated with this IAM policy.com.google.protobuf.ByteStringgetResourceBytes()The [full resource name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the resource associated with this IAM policy.booleanhasExplanation()Explanation about the IAM policy search result.booleanhasPolicy()The IAM policy attached to the specified resource.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()IamPolicySearchResult.BuildermergeExplanation(IamPolicySearchResult.Explanation value)Explanation about the IAM policy search result.IamPolicySearchResult.BuildermergeFrom(IamPolicySearchResult other)IamPolicySearchResult.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)IamPolicySearchResult.BuildermergeFrom(com.google.protobuf.Message other)IamPolicySearchResult.BuildermergePolicy(com.google.iam.v1.Policy value)The IAM policy attached to the specified resource.IamPolicySearchResult.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)IamPolicySearchResult.BuildersetExplanation(IamPolicySearchResult.Explanation value)Explanation about the IAM policy search result.IamPolicySearchResult.BuildersetExplanation(IamPolicySearchResult.Explanation.Builder builderForValue)Explanation about the IAM policy search result.IamPolicySearchResult.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)IamPolicySearchResult.BuildersetPolicy(com.google.iam.v1.Policy value)The IAM policy attached to the specified resource.IamPolicySearchResult.BuildersetPolicy(com.google.iam.v1.Policy.Builder builderForValue)The IAM policy attached to the specified resource.IamPolicySearchResult.BuildersetProject(String value)The project that the associated Google Cloud resource belongs to, in the form of `projects/{project_number}`.IamPolicySearchResult.BuildersetProjectBytes(com.google.protobuf.ByteString value)The project that the associated Google Cloud resource belongs to, in the form of `projects/{project_number}`.IamPolicySearchResult.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)IamPolicySearchResult.BuildersetResource(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.IamPolicySearchResult.BuildersetResourceBytes(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.IamPolicySearchResult.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<IamPolicySearchResult.Builder>
-
clear
public IamPolicySearchResult.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<IamPolicySearchResult.Builder>
-
getDefaultInstanceForType
public IamPolicySearchResult getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public IamPolicySearchResult build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public IamPolicySearchResult buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public IamPolicySearchResult.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<IamPolicySearchResult.Builder>
-
setField
public IamPolicySearchResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IamPolicySearchResult.Builder>
-
clearField
public IamPolicySearchResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IamPolicySearchResult.Builder>
-
clearOneof
public IamPolicySearchResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<IamPolicySearchResult.Builder>
-
setRepeatedField
public IamPolicySearchResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IamPolicySearchResult.Builder>
-
addRepeatedField
public IamPolicySearchResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IamPolicySearchResult.Builder>
-
mergeFrom
public IamPolicySearchResult.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IamPolicySearchResult.Builder>
-
mergeFrom
public IamPolicySearchResult.Builder mergeFrom(IamPolicySearchResult other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
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:
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
public IamPolicySearchResult.Builder 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.
string resource = 1;- Parameters:
value- The resource to set.- Returns:
- This builder for chaining.
-
clearResource
public IamPolicySearchResult.Builder 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
public IamPolicySearchResult.Builder 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.
string resource = 1;- Parameters:
value- The bytes for resource to set.- Returns:
- This builder for chaining.
-
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:
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 orgnization, the project field will be empty.string project = 3;- Specified by:
getProjectBytesin interfaceIamPolicySearchResultOrBuilder- Returns:
- The bytes for project.
-
setProject
public IamPolicySearchResult.Builder setProject(String value)
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;- Parameters:
value- The project to set.- Returns:
- This builder for chaining.
-
clearProject
public IamPolicySearchResult.Builder 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 orgnization, the project field will be empty.string project = 3;- Returns:
- This builder for chaining.
-
setProjectBytes
public IamPolicySearchResult.Builder setProjectBytes(com.google.protobuf.ByteString value)
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;- 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
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:
getPolicyin interfaceIamPolicySearchResultOrBuilder- Returns:
- The policy.
-
setPolicy
public IamPolicySearchResult.Builder setPolicy(com.google.iam.v1.Policy value)
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
public IamPolicySearchResult.Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue)
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
public IamPolicySearchResult.Builder mergePolicy(com.google.iam.v1.Policy value)
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
public IamPolicySearchResult.Builder 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
public com.google.iam.v1.Policy.Builder 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
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:
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
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:
getExplanationin interfaceIamPolicySearchResultOrBuilder- Returns:
- The explanation.
-
setExplanation
public IamPolicySearchResult.Builder setExplanation(IamPolicySearchResult.Explanation value)
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
public IamPolicySearchResult.Builder mergeExplanation(IamPolicySearchResult.Explanation value)
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
public IamPolicySearchResult.Builder 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
public IamPolicySearchResult.Explanation.Builder 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
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:
getExplanationOrBuilderin interfaceIamPolicySearchResultOrBuilder
-
setUnknownFields
public final IamPolicySearchResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<IamPolicySearchResult.Builder>
-
mergeUnknownFields
public final IamPolicySearchResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<IamPolicySearchResult.Builder>
-
-