public static final class SearchAllResourcesRequest.Builder extends GeneratedMessageV3.Builder<SearchAllResourcesRequest.Builder> implements SearchAllResourcesRequestOrBuilder
Search all resources request.Protobuf type
google.cloud.asset.v1p1beta1.SearchAllResourcesRequest
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<SearchAllResourcesRequest.Builder>
public SearchAllResourcesRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<SearchAllResourcesRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<SearchAllResourcesRequest.Builder>
public SearchAllResourcesRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public SearchAllResourcesRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public SearchAllResourcesRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public SearchAllResourcesRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<SearchAllResourcesRequest.Builder>
public SearchAllResourcesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<SearchAllResourcesRequest.Builder>
public SearchAllResourcesRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<SearchAllResourcesRequest.Builder>
public SearchAllResourcesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<SearchAllResourcesRequest.Builder>
public SearchAllResourcesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<SearchAllResourcesRequest.Builder>
public SearchAllResourcesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<SearchAllResourcesRequest.Builder>
public SearchAllResourcesRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<SearchAllResourcesRequest.Builder>
public SearchAllResourcesRequest.Builder mergeFrom(SearchAllResourcesRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<SearchAllResourcesRequest.Builder>
public SearchAllResourcesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<SearchAllResourcesRequest.Builder>
IOException
public String getScope()
Required. The relative name of an asset. The search is limited to the resources within the `scope`. The allowed value must be: * Organization number (such as "organizations/123") * Folder number(such as "folders/1234") * Project number (such as "projects/12345") * Project id (such as "projects/abc")
string scope = 1 [(.google.api.field_behavior) = REQUIRED];
getScope
in interface SearchAllResourcesRequestOrBuilder
public ByteString getScopeBytes()
Required. The relative name of an asset. The search is limited to the resources within the `scope`. The allowed value must be: * Organization number (such as "organizations/123") * Folder number(such as "folders/1234") * Project number (such as "projects/12345") * Project id (such as "projects/abc")
string scope = 1 [(.google.api.field_behavior) = REQUIRED];
getScopeBytes
in interface SearchAllResourcesRequestOrBuilder
public SearchAllResourcesRequest.Builder setScope(String value)
Required. The relative name of an asset. The search is limited to the resources within the `scope`. The allowed value must be: * Organization number (such as "organizations/123") * Folder number(such as "folders/1234") * Project number (such as "projects/12345") * Project id (such as "projects/abc")
string scope = 1 [(.google.api.field_behavior) = REQUIRED];
value
- The scope to set.public SearchAllResourcesRequest.Builder clearScope()
Required. The relative name of an asset. The search is limited to the resources within the `scope`. The allowed value must be: * Organization number (such as "organizations/123") * Folder number(such as "folders/1234") * Project number (such as "projects/12345") * Project id (such as "projects/abc")
string scope = 1 [(.google.api.field_behavior) = REQUIRED];
public SearchAllResourcesRequest.Builder setScopeBytes(ByteString value)
Required. The relative name of an asset. The search is limited to the resources within the `scope`. The allowed value must be: * Organization number (such as "organizations/123") * Folder number(such as "folders/1234") * Project number (such as "projects/12345") * Project id (such as "projects/abc")
string scope = 1 [(.google.api.field_behavior) = REQUIRED];
value
- The bytes for scope to set.public String getQuery()
Optional. The query statement.
string query = 2 [(.google.api.field_behavior) = OPTIONAL];
getQuery
in interface SearchAllResourcesRequestOrBuilder
public ByteString getQueryBytes()
Optional. The query statement.
string query = 2 [(.google.api.field_behavior) = OPTIONAL];
getQueryBytes
in interface SearchAllResourcesRequestOrBuilder
public SearchAllResourcesRequest.Builder setQuery(String value)
Optional. The query statement.
string query = 2 [(.google.api.field_behavior) = OPTIONAL];
value
- The query to set.public SearchAllResourcesRequest.Builder clearQuery()
Optional. The query statement.
string query = 2 [(.google.api.field_behavior) = OPTIONAL];
public SearchAllResourcesRequest.Builder setQueryBytes(ByteString value)
Optional. The query statement.
string query = 2 [(.google.api.field_behavior) = OPTIONAL];
value
- The bytes for query to set.public ProtocolStringList getAssetTypesList()
Optional. A list of asset types that this request searches for. If empty, it will search all the supported asset types.
repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL];
getAssetTypesList
in interface SearchAllResourcesRequestOrBuilder
public int getAssetTypesCount()
Optional. A list of asset types that this request searches for. If empty, it will search all the supported asset types.
repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL];
getAssetTypesCount
in interface SearchAllResourcesRequestOrBuilder
public String getAssetTypes(int index)
Optional. A list of asset types that this request searches for. If empty, it will search all the supported asset types.
repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL];
getAssetTypes
in interface SearchAllResourcesRequestOrBuilder
index
- The index of the element to return.public ByteString getAssetTypesBytes(int index)
Optional. A list of asset types that this request searches for. If empty, it will search all the supported asset types.
repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL];
getAssetTypesBytes
in interface SearchAllResourcesRequestOrBuilder
index
- The index of the value to return.public SearchAllResourcesRequest.Builder setAssetTypes(int index, String value)
Optional. A list of asset types that this request searches for. If empty, it will search all the supported asset types.
repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL];
index
- The index to set the value at.value
- The assetTypes to set.public SearchAllResourcesRequest.Builder addAssetTypes(String value)
Optional. A list of asset types that this request searches for. If empty, it will search all the supported asset types.
repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL];
value
- The assetTypes to add.public SearchAllResourcesRequest.Builder addAllAssetTypes(Iterable<String> values)
Optional. A list of asset types that this request searches for. If empty, it will search all the supported asset types.
repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL];
values
- The assetTypes to add.public SearchAllResourcesRequest.Builder clearAssetTypes()
Optional. A list of asset types that this request searches for. If empty, it will search all the supported asset types.
repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL];
public SearchAllResourcesRequest.Builder addAssetTypesBytes(ByteString value)
Optional. A list of asset types that this request searches for. If empty, it will search all the supported asset types.
repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL];
value
- The bytes of the assetTypes to add.public int getPageSize()
Optional. The page size for search result pagination. Page size is capped at 500 even if a larger value is given. If set to zero, server will pick an appropriate default. Returned results may be fewer than requested. When this happens, there could be more results as long as `next_page_token` is returned.
int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL];
getPageSize
in interface SearchAllResourcesRequestOrBuilder
public SearchAllResourcesRequest.Builder setPageSize(int value)
Optional. The page size for search result pagination. Page size is capped at 500 even if a larger value is given. If set to zero, server will pick an appropriate default. Returned results may be fewer than requested. When this happens, there could be more results as long as `next_page_token` is returned.
int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL];
value
- The pageSize to set.public SearchAllResourcesRequest.Builder clearPageSize()
Optional. The page size for search result pagination. Page size is capped at 500 even if a larger value is given. If set to zero, server will pick an appropriate default. Returned results may be fewer than requested. When this happens, there could be more results as long as `next_page_token` is returned.
int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL];
public String getPageToken()
Optional. If present, then retrieve the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of all other method parameters, must be identical to those in the previous call.
string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];
getPageToken
in interface SearchAllResourcesRequestOrBuilder
public ByteString getPageTokenBytes()
Optional. If present, then retrieve the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of all other method parameters, must be identical to those in the previous call.
string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];
getPageTokenBytes
in interface SearchAllResourcesRequestOrBuilder
public SearchAllResourcesRequest.Builder setPageToken(String value)
Optional. If present, then retrieve the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of all other method parameters, must be identical to those in the previous call.
string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];
value
- The pageToken to set.public SearchAllResourcesRequest.Builder clearPageToken()
Optional. If present, then retrieve the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of all other method parameters, must be identical to those in the previous call.
string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];
public SearchAllResourcesRequest.Builder setPageTokenBytes(ByteString value)
Optional. If present, then retrieve the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of all other method parameters, must be identical to those in the previous call.
string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];
value
- The bytes for pageToken to set.public String getOrderBy()
Optional. A comma separated list of fields specifying the sorting order of the results. The default order is ascending. Add " desc" after the field name to indicate descending order. Redundant space characters are ignored. For example, " foo , bar desc ".
string order_by = 10 [(.google.api.field_behavior) = OPTIONAL];
getOrderBy
in interface SearchAllResourcesRequestOrBuilder
public ByteString getOrderByBytes()
Optional. A comma separated list of fields specifying the sorting order of the results. The default order is ascending. Add " desc" after the field name to indicate descending order. Redundant space characters are ignored. For example, " foo , bar desc ".
string order_by = 10 [(.google.api.field_behavior) = OPTIONAL];
getOrderByBytes
in interface SearchAllResourcesRequestOrBuilder
public SearchAllResourcesRequest.Builder setOrderBy(String value)
Optional. A comma separated list of fields specifying the sorting order of the results. The default order is ascending. Add " desc" after the field name to indicate descending order. Redundant space characters are ignored. For example, " foo , bar desc ".
string order_by = 10 [(.google.api.field_behavior) = OPTIONAL];
value
- The orderBy to set.public SearchAllResourcesRequest.Builder clearOrderBy()
Optional. A comma separated list of fields specifying the sorting order of the results. The default order is ascending. Add " desc" after the field name to indicate descending order. Redundant space characters are ignored. For example, " foo , bar desc ".
string order_by = 10 [(.google.api.field_behavior) = OPTIONAL];
public SearchAllResourcesRequest.Builder setOrderByBytes(ByteString value)
Optional. A comma separated list of fields specifying the sorting order of the results. The default order is ascending. Add " desc" after the field name to indicate descending order. Redundant space characters are ignored. For example, " foo , bar desc ".
string order_by = 10 [(.google.api.field_behavior) = OPTIONAL];
value
- The bytes for orderBy to set.public final SearchAllResourcesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<SearchAllResourcesRequest.Builder>
public final SearchAllResourcesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<SearchAllResourcesRequest.Builder>
Copyright © 2022 Google LLC. All rights reserved.