public static final class SearchProjectsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SearchProjectsRequest.Builder> implements SearchProjectsRequestOrBuilder
The request sent to the [SearchProjects][google.cloud.resourcemanager.v3.Projects.SearchProjects] method.Protobuf type
google.cloud.resourcemanager.v3.SearchProjectsRequest| Modifier and Type | Method and Description |
|---|---|
SearchProjectsRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SearchProjectsRequest |
build() |
SearchProjectsRequest |
buildPartial() |
SearchProjectsRequest.Builder |
clear() |
SearchProjectsRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SearchProjectsRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SearchProjectsRequest.Builder |
clearPageSize()
Optional.
|
SearchProjectsRequest.Builder |
clearPageToken()
Optional.
|
SearchProjectsRequest.Builder |
clearQuery()
Optional.
|
SearchProjectsRequest.Builder |
clone() |
SearchProjectsRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getPageSize()
Optional.
|
String |
getPageToken()
Optional.
|
com.google.protobuf.ByteString |
getPageTokenBytes()
Optional.
|
String |
getQuery()
Optional.
|
com.google.protobuf.ByteString |
getQueryBytes()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SearchProjectsRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SearchProjectsRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
SearchProjectsRequest.Builder |
mergeFrom(SearchProjectsRequest other) |
SearchProjectsRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SearchProjectsRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SearchProjectsRequest.Builder |
setPageSize(int value)
Optional.
|
SearchProjectsRequest.Builder |
setPageToken(String value)
Optional.
|
SearchProjectsRequest.Builder |
setPageTokenBytes(com.google.protobuf.ByteString value)
Optional.
|
SearchProjectsRequest.Builder |
setQuery(String value)
Optional.
|
SearchProjectsRequest.Builder |
setQueryBytes(com.google.protobuf.ByteString value)
Optional.
|
SearchProjectsRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SearchProjectsRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SearchProjectsRequest.Builder>public SearchProjectsRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SearchProjectsRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SearchProjectsRequest.Builder>public SearchProjectsRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SearchProjectsRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SearchProjectsRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SearchProjectsRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SearchProjectsRequest.Builder>public SearchProjectsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchProjectsRequest.Builder>public SearchProjectsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchProjectsRequest.Builder>public SearchProjectsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SearchProjectsRequest.Builder>public SearchProjectsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchProjectsRequest.Builder>public SearchProjectsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchProjectsRequest.Builder>public SearchProjectsRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchProjectsRequest.Builder>public SearchProjectsRequest.Builder mergeFrom(SearchProjectsRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SearchProjectsRequest.Builder>public SearchProjectsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchProjectsRequest.Builder>IOExceptionpublic String getQuery()
Optional. A query string for searching for projects that the caller has `resourcemanager.projects.get` permission to. If multiple fields are included in the query, then it will return results that match any of the fields. Some eligible fields are: - **`displayName`, `name`**: Filters by displayName. - **`parent`**: Project's parent (for example: `folders/123`, `organizations/*`). Prefer `parent` field over `parent.type` and `parent.id`. - **`parent.type`**: Parent's type: `folder` or `organization`. - **`parent.id`**: Parent's id number (for example: `123`). - **`id`, `projectId`**: Filters by projectId. - **`state`, `lifecycleState`**: Filters by state. - **`labels`**: Filters by label name or value. - **`labels.<key>` (where `<key>` is the name of a label)**: Filters by label name. Search expressions are case insensitive. Some examples queries: - **`name:how*`**: The project's name starts with "how". - **`name:Howl`**: The project's name is `Howl` or `howl`. - **`name:HOWL`**: Equivalent to above. - **`NAME:howl`**: Equivalent to above. - **`labels.color:*`**: The project has the label `color`. - **`labels.color:red`**: The project's label `color` has the value `red`. - **`labels.color:red labels.size:big`**: The project's label `color` has the value `red` or its label `size` has the value `big`. If no query is specified, the call will return projects for which the user has the `resourcemanager.projects.get` permission.
string query = 1 [(.google.api.field_behavior) = OPTIONAL];getQuery in interface SearchProjectsRequestOrBuilderpublic com.google.protobuf.ByteString getQueryBytes()
Optional. A query string for searching for projects that the caller has `resourcemanager.projects.get` permission to. If multiple fields are included in the query, then it will return results that match any of the fields. Some eligible fields are: - **`displayName`, `name`**: Filters by displayName. - **`parent`**: Project's parent (for example: `folders/123`, `organizations/*`). Prefer `parent` field over `parent.type` and `parent.id`. - **`parent.type`**: Parent's type: `folder` or `organization`. - **`parent.id`**: Parent's id number (for example: `123`). - **`id`, `projectId`**: Filters by projectId. - **`state`, `lifecycleState`**: Filters by state. - **`labels`**: Filters by label name or value. - **`labels.<key>` (where `<key>` is the name of a label)**: Filters by label name. Search expressions are case insensitive. Some examples queries: - **`name:how*`**: The project's name starts with "how". - **`name:Howl`**: The project's name is `Howl` or `howl`. - **`name:HOWL`**: Equivalent to above. - **`NAME:howl`**: Equivalent to above. - **`labels.color:*`**: The project has the label `color`. - **`labels.color:red`**: The project's label `color` has the value `red`. - **`labels.color:red labels.size:big`**: The project's label `color` has the value `red` or its label `size` has the value `big`. If no query is specified, the call will return projects for which the user has the `resourcemanager.projects.get` permission.
string query = 1 [(.google.api.field_behavior) = OPTIONAL];getQueryBytes in interface SearchProjectsRequestOrBuilderpublic SearchProjectsRequest.Builder setQuery(String value)
Optional. A query string for searching for projects that the caller has `resourcemanager.projects.get` permission to. If multiple fields are included in the query, then it will return results that match any of the fields. Some eligible fields are: - **`displayName`, `name`**: Filters by displayName. - **`parent`**: Project's parent (for example: `folders/123`, `organizations/*`). Prefer `parent` field over `parent.type` and `parent.id`. - **`parent.type`**: Parent's type: `folder` or `organization`. - **`parent.id`**: Parent's id number (for example: `123`). - **`id`, `projectId`**: Filters by projectId. - **`state`, `lifecycleState`**: Filters by state. - **`labels`**: Filters by label name or value. - **`labels.<key>` (where `<key>` is the name of a label)**: Filters by label name. Search expressions are case insensitive. Some examples queries: - **`name:how*`**: The project's name starts with "how". - **`name:Howl`**: The project's name is `Howl` or `howl`. - **`name:HOWL`**: Equivalent to above. - **`NAME:howl`**: Equivalent to above. - **`labels.color:*`**: The project has the label `color`. - **`labels.color:red`**: The project's label `color` has the value `red`. - **`labels.color:red labels.size:big`**: The project's label `color` has the value `red` or its label `size` has the value `big`. If no query is specified, the call will return projects for which the user has the `resourcemanager.projects.get` permission.
string query = 1 [(.google.api.field_behavior) = OPTIONAL];value - The query to set.public SearchProjectsRequest.Builder clearQuery()
Optional. A query string for searching for projects that the caller has `resourcemanager.projects.get` permission to. If multiple fields are included in the query, then it will return results that match any of the fields. Some eligible fields are: - **`displayName`, `name`**: Filters by displayName. - **`parent`**: Project's parent (for example: `folders/123`, `organizations/*`). Prefer `parent` field over `parent.type` and `parent.id`. - **`parent.type`**: Parent's type: `folder` or `organization`. - **`parent.id`**: Parent's id number (for example: `123`). - **`id`, `projectId`**: Filters by projectId. - **`state`, `lifecycleState`**: Filters by state. - **`labels`**: Filters by label name or value. - **`labels.<key>` (where `<key>` is the name of a label)**: Filters by label name. Search expressions are case insensitive. Some examples queries: - **`name:how*`**: The project's name starts with "how". - **`name:Howl`**: The project's name is `Howl` or `howl`. - **`name:HOWL`**: Equivalent to above. - **`NAME:howl`**: Equivalent to above. - **`labels.color:*`**: The project has the label `color`. - **`labels.color:red`**: The project's label `color` has the value `red`. - **`labels.color:red labels.size:big`**: The project's label `color` has the value `red` or its label `size` has the value `big`. If no query is specified, the call will return projects for which the user has the `resourcemanager.projects.get` permission.
string query = 1 [(.google.api.field_behavior) = OPTIONAL];public SearchProjectsRequest.Builder setQueryBytes(com.google.protobuf.ByteString value)
Optional. A query string for searching for projects that the caller has `resourcemanager.projects.get` permission to. If multiple fields are included in the query, then it will return results that match any of the fields. Some eligible fields are: - **`displayName`, `name`**: Filters by displayName. - **`parent`**: Project's parent (for example: `folders/123`, `organizations/*`). Prefer `parent` field over `parent.type` and `parent.id`. - **`parent.type`**: Parent's type: `folder` or `organization`. - **`parent.id`**: Parent's id number (for example: `123`). - **`id`, `projectId`**: Filters by projectId. - **`state`, `lifecycleState`**: Filters by state. - **`labels`**: Filters by label name or value. - **`labels.<key>` (where `<key>` is the name of a label)**: Filters by label name. Search expressions are case insensitive. Some examples queries: - **`name:how*`**: The project's name starts with "how". - **`name:Howl`**: The project's name is `Howl` or `howl`. - **`name:HOWL`**: Equivalent to above. - **`NAME:howl`**: Equivalent to above. - **`labels.color:*`**: The project has the label `color`. - **`labels.color:red`**: The project's label `color` has the value `red`. - **`labels.color:red labels.size:big`**: The project's label `color` has the value `red` or its label `size` has the value `big`. If no query is specified, the call will return projects for which the user has the `resourcemanager.projects.get` permission.
string query = 1 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for query to set.public String getPageToken()
Optional. A pagination token returned from a previous call to [ListProjects] [google.cloud.resourcemanager.v3.Projects.ListProjects] that indicates from where listing should continue.
string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];getPageToken in interface SearchProjectsRequestOrBuilderpublic com.google.protobuf.ByteString getPageTokenBytes()
Optional. A pagination token returned from a previous call to [ListProjects] [google.cloud.resourcemanager.v3.Projects.ListProjects] that indicates from where listing should continue.
string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];getPageTokenBytes in interface SearchProjectsRequestOrBuilderpublic SearchProjectsRequest.Builder setPageToken(String value)
Optional. A pagination token returned from a previous call to [ListProjects] [google.cloud.resourcemanager.v3.Projects.ListProjects] that indicates from where listing should continue.
string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];value - The pageToken to set.public SearchProjectsRequest.Builder clearPageToken()
Optional. A pagination token returned from a previous call to [ListProjects] [google.cloud.resourcemanager.v3.Projects.ListProjects] that indicates from where listing should continue.
string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];public SearchProjectsRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
Optional. A pagination token returned from a previous call to [ListProjects] [google.cloud.resourcemanager.v3.Projects.ListProjects] that indicates from where listing should continue.
string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for pageToken to set.public int getPageSize()
Optional. The maximum number of projects to return in the response. The server can return fewer projects than requested. If unspecified, server picks an appropriate default.
int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL];getPageSize in interface SearchProjectsRequestOrBuilderpublic SearchProjectsRequest.Builder setPageSize(int value)
Optional. The maximum number of projects to return in the response. The server can return fewer projects than requested. If unspecified, server picks an appropriate default.
int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL];value - The pageSize to set.public SearchProjectsRequest.Builder clearPageSize()
Optional. The maximum number of projects to return in the response. The server can return fewer projects than requested. If unspecified, server picks an appropriate default.
int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL];public final SearchProjectsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SearchProjectsRequest.Builder>public final SearchProjectsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SearchProjectsRequest.Builder>Copyright © 2025 Google LLC. All rights reserved.