public final class SearchProjectsRequest extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
SearchProjectsRequest.Builder
The request sent to the
[SearchProjects][google.cloud.resourcemanager.v3.Projects.SearchProjects]
method.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
PAGE_SIZE_FIELD_NUMBER |
static int |
PAGE_TOKEN_FIELD_NUMBER |
static int |
QUERY_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static SearchProjectsRequest |
getDefaultInstance() |
SearchProjectsRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getPageSize()
Optional.
|
String |
getPageToken()
Optional.
|
com.google.protobuf.ByteString |
getPageTokenBytes()
Optional.
|
com.google.protobuf.Parser<SearchProjectsRequest> |
getParserForType() |
String |
getQuery()
Optional.
|
com.google.protobuf.ByteString |
getQueryBytes()
Optional.
|
int |
getSerializedSize() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SearchProjectsRequest.Builder |
newBuilder() |
static SearchProjectsRequest.Builder |
newBuilder(SearchProjectsRequest prototype) |
SearchProjectsRequest.Builder |
newBuilderForType() |
protected SearchProjectsRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SearchProjectsRequest |
parseDelimitedFrom(InputStream input) |
static SearchProjectsRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchProjectsRequest |
parseFrom(byte[] data) |
static SearchProjectsRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchProjectsRequest |
parseFrom(ByteBuffer data) |
static SearchProjectsRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchProjectsRequest |
parseFrom(com.google.protobuf.ByteString data) |
static SearchProjectsRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchProjectsRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SearchProjectsRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchProjectsRequest |
parseFrom(InputStream input) |
static SearchProjectsRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SearchProjectsRequest> |
parser() |
SearchProjectsRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int QUERY_FIELD_NUMBER
public static final int PAGE_TOKEN_FIELD_NUMBER
public static final int PAGE_SIZE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SearchProjectsRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchProjectsRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchProjectsRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchProjectsRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchProjectsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchProjectsRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchProjectsRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static SearchProjectsRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchProjectsRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SearchProjectsRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchProjectsRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SearchProjectsRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SearchProjectsRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SearchProjectsRequest.Builder newBuilder()
public static SearchProjectsRequest.Builder newBuilder(SearchProjectsRequest prototype)
public SearchProjectsRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SearchProjectsRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SearchProjectsRequest getDefaultInstance()
public static com.google.protobuf.Parser<SearchProjectsRequest> parser()
public com.google.protobuf.Parser<SearchProjectsRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SearchProjectsRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.