Package com.google.cloud.asset.v1
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.v1.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
A result of IAM Policy search, containing information of an IAM policy.
Protobuf typegoogle.cloud.asset.v1.IamPolicySearchResult
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IamPolicySearchResult.Builder
addAllFolders(Iterable<String> values)
The folder(s) that the IAM policy belongs to, in the form of folders/{FOLDER_NUMBER}.IamPolicySearchResult.Builder
addFolders(String value)
The folder(s) that the IAM policy belongs to, in the form of folders/{FOLDER_NUMBER}.IamPolicySearchResult.Builder
addFoldersBytes(com.google.protobuf.ByteString value)
The folder(s) that the IAM policy belongs to, in the form of folders/{FOLDER_NUMBER}.IamPolicySearchResult.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
IamPolicySearchResult
build()
IamPolicySearchResult
buildPartial()
IamPolicySearchResult.Builder
clear()
IamPolicySearchResult.Builder
clearAssetType()
The type of the resource associated with this IAM policy.IamPolicySearchResult.Builder
clearExplanation()
Explanation about the IAM policy search result.IamPolicySearchResult.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
IamPolicySearchResult.Builder
clearFolders()
The folder(s) that the IAM policy belongs to, in the form of folders/{FOLDER_NUMBER}.IamPolicySearchResult.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
IamPolicySearchResult.Builder
clearOrganization()
The organization that the IAM policy belongs to, in the form of organizations/{ORGANIZATION_NUMBER}.IamPolicySearchResult.Builder
clearPolicy()
The IAM policy directly set on the given resource.IamPolicySearchResult.Builder
clearProject()
The project that the associated Google Cloud resource belongs to, in the form of projects/{PROJECT_NUMBER}.IamPolicySearchResult.Builder
clearResource()
The full resource name of the resource associated with this IAM policy.IamPolicySearchResult.Builder
clone()
String
getAssetType()
The type of the resource associated with this IAM policy.com.google.protobuf.ByteString
getAssetTypeBytes()
The type of the resource associated with this IAM policy.IamPolicySearchResult
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
IamPolicySearchResult.Explanation
getExplanation()
Explanation about the IAM policy search result.IamPolicySearchResult.Explanation.Builder
getExplanationBuilder()
Explanation about the IAM policy search result.IamPolicySearchResult.ExplanationOrBuilder
getExplanationOrBuilder()
Explanation about the IAM policy search result.String
getFolders(int index)
The folder(s) that the IAM policy belongs to, in the form of folders/{FOLDER_NUMBER}.com.google.protobuf.ByteString
getFoldersBytes(int index)
The folder(s) that the IAM policy belongs to, in the form of folders/{FOLDER_NUMBER}.int
getFoldersCount()
The folder(s) that the IAM policy belongs to, in the form of folders/{FOLDER_NUMBER}.com.google.protobuf.ProtocolStringList
getFoldersList()
The folder(s) that the IAM policy belongs to, in the form of folders/{FOLDER_NUMBER}.String
getOrganization()
The organization that the IAM policy belongs to, in the form of organizations/{ORGANIZATION_NUMBER}.com.google.protobuf.ByteString
getOrganizationBytes()
The organization that the IAM policy belongs to, in the form of organizations/{ORGANIZATION_NUMBER}.com.google.iam.v1.Policy
getPolicy()
The IAM policy directly set on the given resource.com.google.iam.v1.Policy.Builder
getPolicyBuilder()
The IAM policy directly set on the given resource.com.google.iam.v1.PolicyOrBuilder
getPolicyOrBuilder()
The IAM policy directly set on the given 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 of the resource associated with this IAM policy.com.google.protobuf.ByteString
getResourceBytes()
The full resource name of the resource associated with this IAM policy.boolean
hasExplanation()
Explanation about the IAM policy search result.boolean
hasPolicy()
The IAM policy directly set on the given resource.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
IamPolicySearchResult.Builder
mergeExplanation(IamPolicySearchResult.Explanation value)
Explanation about the IAM policy search result.IamPolicySearchResult.Builder
mergeFrom(IamPolicySearchResult other)
IamPolicySearchResult.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
IamPolicySearchResult.Builder
mergeFrom(com.google.protobuf.Message other)
IamPolicySearchResult.Builder
mergePolicy(com.google.iam.v1.Policy value)
The IAM policy directly set on the given resource.IamPolicySearchResult.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
IamPolicySearchResult.Builder
setAssetType(String value)
The type of the resource associated with this IAM policy.IamPolicySearchResult.Builder
setAssetTypeBytes(com.google.protobuf.ByteString value)
The type of the resource associated with this IAM policy.IamPolicySearchResult.Builder
setExplanation(IamPolicySearchResult.Explanation value)
Explanation about the IAM policy search result.IamPolicySearchResult.Builder
setExplanation(IamPolicySearchResult.Explanation.Builder builderForValue)
Explanation about the IAM policy search result.IamPolicySearchResult.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
IamPolicySearchResult.Builder
setFolders(int index, String value)
The folder(s) that the IAM policy belongs to, in the form of folders/{FOLDER_NUMBER}.IamPolicySearchResult.Builder
setOrganization(String value)
The organization that the IAM policy belongs to, in the form of organizations/{ORGANIZATION_NUMBER}.IamPolicySearchResult.Builder
setOrganizationBytes(com.google.protobuf.ByteString value)
The organization that the IAM policy belongs to, in the form of organizations/{ORGANIZATION_NUMBER}.IamPolicySearchResult.Builder
setPolicy(com.google.iam.v1.Policy value)
The IAM policy directly set on the given resource.IamPolicySearchResult.Builder
setPolicy(com.google.iam.v1.Policy.Builder builderForValue)
The IAM policy directly set on the given resource.IamPolicySearchResult.Builder
setProject(String value)
The project that the associated Google Cloud resource belongs to, in the form of projects/{PROJECT_NUMBER}.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}.IamPolicySearchResult.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
IamPolicySearchResult.Builder
setResource(String value)
The full resource name of the resource associated with this IAM policy.IamPolicySearchResult.Builder
setResourceBytes(com.google.protobuf.ByteString value)
The full resource name of the resource associated with this IAM policy.IamPolicySearchResult.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<IamPolicySearchResult.Builder>
-
clear
public IamPolicySearchResult.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<IamPolicySearchResult.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<IamPolicySearchResult.Builder>
-
getDefaultInstanceForType
public IamPolicySearchResult getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public IamPolicySearchResult build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public IamPolicySearchResult buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public IamPolicySearchResult.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<IamPolicySearchResult.Builder>
-
setField
public IamPolicySearchResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<IamPolicySearchResult.Builder>
-
clearField
public IamPolicySearchResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<IamPolicySearchResult.Builder>
-
clearOneof
public IamPolicySearchResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<IamPolicySearchResult.Builder>
-
setRepeatedField
public IamPolicySearchResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<IamPolicySearchResult.Builder>
-
addRepeatedField
public IamPolicySearchResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<IamPolicySearchResult.Builder>
-
mergeFrom
public IamPolicySearchResult.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<IamPolicySearchResult.Builder>
-
mergeFrom
public IamPolicySearchResult.Builder mergeFrom(IamPolicySearchResult other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<IamPolicySearchResult.Builder>
- Throws:
IOException
-
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:
getResource
in 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:
getResourceBytes
in interfaceIamPolicySearchResultOrBuilder
- Returns:
- The bytes for resource.
-
setResource
public IamPolicySearchResult.Builder setResource(String value)
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;
- Parameters:
value
- The resource to set.- Returns:
- This builder for chaining.
-
clearResource
public IamPolicySearchResult.Builder clearResource()
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;
- Returns:
- This builder for chaining.
-
setResourceBytes
public IamPolicySearchResult.Builder setResourceBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for resource to set.- Returns:
- This builder for chaining.
-
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:
getAssetType
in 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:
getAssetTypeBytes
in interfaceIamPolicySearchResultOrBuilder
- Returns:
- The bytes for assetType.
-
setAssetType
public IamPolicySearchResult.Builder setAssetType(String value)
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;
- Parameters:
value
- The assetType to set.- Returns:
- This builder for chaining.
-
clearAssetType
public IamPolicySearchResult.Builder clearAssetType()
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;
- Returns:
- This builder for chaining.
-
setAssetTypeBytes
public IamPolicySearchResult.Builder setAssetTypeBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for assetType 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 (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:
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 (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:
getProjectBytes
in 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 (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;
- 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 (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;
- 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 (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;
- Parameters:
value
- The bytes for project to set.- Returns:
- This builder for chaining.
-
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:
getFoldersList
in 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:
getFoldersCount
in 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:
getFolders
in 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:
getFoldersBytes
in interfaceIamPolicySearchResultOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the folders at the given index.
-
setFolders
public IamPolicySearchResult.Builder setFolders(int index, String value)
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;
- Parameters:
index
- The index to set the value at.value
- The folders to set.- Returns:
- This builder for chaining.
-
addFolders
public IamPolicySearchResult.Builder addFolders(String value)
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;
- Parameters:
value
- The folders to add.- Returns:
- This builder for chaining.
-
addAllFolders
public IamPolicySearchResult.Builder addAllFolders(Iterable<String> values)
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;
- Parameters:
values
- The folders to add.- Returns:
- This builder for chaining.
-
clearFolders
public IamPolicySearchResult.Builder clearFolders()
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;
- Returns:
- This builder for chaining.
-
addFoldersBytes
public IamPolicySearchResult.Builder addFoldersBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes of the folders to add.- Returns:
- This builder for chaining.
-
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:
getOrganization
in 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:
getOrganizationBytes
in interfaceIamPolicySearchResultOrBuilder
- Returns:
- The bytes for organization.
-
setOrganization
public IamPolicySearchResult.Builder setOrganization(String value)
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;
- Parameters:
value
- The organization to set.- Returns:
- This builder for chaining.
-
clearOrganization
public IamPolicySearchResult.Builder clearOrganization()
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;
- Returns:
- This builder for chaining.
-
setOrganizationBytes
public IamPolicySearchResult.Builder setOrganizationBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for organization to set.- Returns:
- This builder for chaining.
-
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:
hasPolicy
in 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:
getPolicy
in interfaceIamPolicySearchResultOrBuilder
- Returns:
- The policy.
-
setPolicy
public IamPolicySearchResult.Builder setPolicy(com.google.iam.v1.Policy value)
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;
-
setPolicy
public IamPolicySearchResult.Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue)
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;
-
mergePolicy
public IamPolicySearchResult.Builder mergePolicy(com.google.iam.v1.Policy value)
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;
-
clearPolicy
public IamPolicySearchResult.Builder clearPolicy()
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;
-
getPolicyBuilder
public com.google.iam.v1.Policy.Builder getPolicyBuilder()
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;
-
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:
getPolicyOrBuilder
in 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:
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 to explain why the search result matches the query.
.google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4;
- Specified by:
getExplanation
in interfaceIamPolicySearchResultOrBuilder
- Returns:
- The explanation.
-
setExplanation
public IamPolicySearchResult.Builder setExplanation(IamPolicySearchResult.Explanation value)
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;
-
setExplanation
public IamPolicySearchResult.Builder setExplanation(IamPolicySearchResult.Explanation.Builder builderForValue)
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;
-
mergeExplanation
public IamPolicySearchResult.Builder mergeExplanation(IamPolicySearchResult.Explanation value)
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;
-
clearExplanation
public IamPolicySearchResult.Builder clearExplanation()
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;
-
getExplanationBuilder
public IamPolicySearchResult.Explanation.Builder getExplanationBuilder()
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;
-
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:
getExplanationOrBuilder
in interfaceIamPolicySearchResultOrBuilder
-
setUnknownFields
public final IamPolicySearchResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<IamPolicySearchResult.Builder>
-
mergeUnknownFields
public final IamPolicySearchResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<IamPolicySearchResult.Builder>
-
-