Class SearchProtectedResourcesRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SearchProtectedResourcesRequest.Builder>
-
- com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.Builder
-
- All Implemented Interfaces:
SearchProtectedResourcesRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- SearchProtectedResourcesRequest
public static final class SearchProtectedResourcesRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SearchProtectedResourcesRequest.Builder> implements SearchProtectedResourcesRequestOrBuilder
Request message for [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources].
Protobuf typegoogle.cloud.kms.inventory.v1.SearchProtectedResourcesRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchProtectedResourcesRequest.Builder
addAllResourceTypes(Iterable<String> values)
Optional.SearchProtectedResourcesRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SearchProtectedResourcesRequest.Builder
addResourceTypes(String value)
Optional.SearchProtectedResourcesRequest.Builder
addResourceTypesBytes(com.google.protobuf.ByteString value)
Optional.SearchProtectedResourcesRequest
build()
SearchProtectedResourcesRequest
buildPartial()
SearchProtectedResourcesRequest.Builder
clear()
SearchProtectedResourcesRequest.Builder
clearCryptoKey()
Required.SearchProtectedResourcesRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SearchProtectedResourcesRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SearchProtectedResourcesRequest.Builder
clearPageSize()
The maximum number of resources to return.SearchProtectedResourcesRequest.Builder
clearPageToken()
A page token, received from a previous [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] call.SearchProtectedResourcesRequest.Builder
clearResourceTypes()
Optional.SearchProtectedResourcesRequest.Builder
clearScope()
Required.SearchProtectedResourcesRequest.Builder
clone()
String
getCryptoKey()
Required.com.google.protobuf.ByteString
getCryptoKeyBytes()
Required.SearchProtectedResourcesRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getPageSize()
The maximum number of resources to return.String
getPageToken()
A page token, received from a previous [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] call.com.google.protobuf.ByteString
getPageTokenBytes()
A page token, received from a previous [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] call.String
getResourceTypes(int index)
Optional.com.google.protobuf.ByteString
getResourceTypesBytes(int index)
Optional.int
getResourceTypesCount()
Optional.com.google.protobuf.ProtocolStringList
getResourceTypesList()
Optional.String
getScope()
Required.com.google.protobuf.ByteString
getScopeBytes()
Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SearchProtectedResourcesRequest.Builder
mergeFrom(SearchProtectedResourcesRequest other)
SearchProtectedResourcesRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SearchProtectedResourcesRequest.Builder
mergeFrom(com.google.protobuf.Message other)
SearchProtectedResourcesRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SearchProtectedResourcesRequest.Builder
setCryptoKey(String value)
Required.SearchProtectedResourcesRequest.Builder
setCryptoKeyBytes(com.google.protobuf.ByteString value)
Required.SearchProtectedResourcesRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SearchProtectedResourcesRequest.Builder
setPageSize(int value)
The maximum number of resources to return.SearchProtectedResourcesRequest.Builder
setPageToken(String value)
A page token, received from a previous [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] call.SearchProtectedResourcesRequest.Builder
setPageTokenBytes(com.google.protobuf.ByteString value)
A page token, received from a previous [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] call.SearchProtectedResourcesRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SearchProtectedResourcesRequest.Builder
setResourceTypes(int index, String value)
Optional.SearchProtectedResourcesRequest.Builder
setScope(String value)
Required.SearchProtectedResourcesRequest.Builder
setScopeBytes(com.google.protobuf.ByteString value)
Required.SearchProtectedResourcesRequest.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<SearchProtectedResourcesRequest.Builder>
-
clear
public SearchProtectedResourcesRequest.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<SearchProtectedResourcesRequest.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<SearchProtectedResourcesRequest.Builder>
-
getDefaultInstanceForType
public SearchProtectedResourcesRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SearchProtectedResourcesRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SearchProtectedResourcesRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SearchProtectedResourcesRequest.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<SearchProtectedResourcesRequest.Builder>
-
setField
public SearchProtectedResourcesRequest.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<SearchProtectedResourcesRequest.Builder>
-
clearField
public SearchProtectedResourcesRequest.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<SearchProtectedResourcesRequest.Builder>
-
clearOneof
public SearchProtectedResourcesRequest.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<SearchProtectedResourcesRequest.Builder>
-
setRepeatedField
public SearchProtectedResourcesRequest.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<SearchProtectedResourcesRequest.Builder>
-
addRepeatedField
public SearchProtectedResourcesRequest.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<SearchProtectedResourcesRequest.Builder>
-
mergeFrom
public SearchProtectedResourcesRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SearchProtectedResourcesRequest.Builder>
-
mergeFrom
public SearchProtectedResourcesRequest.Builder mergeFrom(SearchProtectedResourcesRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchProtectedResourcesRequest.Builder>
-
mergeFrom
public SearchProtectedResourcesRequest.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<SearchProtectedResourcesRequest.Builder>
- Throws:
IOException
-
getScope
public String getScope()
Required. Resource name of the organization. Example: organizations/123
string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getScope
in interfaceSearchProtectedResourcesRequestOrBuilder
- Returns:
- The scope.
-
getScopeBytes
public com.google.protobuf.ByteString getScopeBytes()
Required. Resource name of the organization. Example: organizations/123
string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getScopeBytes
in interfaceSearchProtectedResourcesRequestOrBuilder
- Returns:
- The bytes for scope.
-
setScope
public SearchProtectedResourcesRequest.Builder setScope(String value)
Required. Resource name of the organization. Example: organizations/123
string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The scope to set.- Returns:
- This builder for chaining.
-
clearScope
public SearchProtectedResourcesRequest.Builder clearScope()
Required. Resource name of the organization. Example: organizations/123
string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setScopeBytes
public SearchProtectedResourcesRequest.Builder setScopeBytes(com.google.protobuf.ByteString value)
Required. Resource name of the organization. Example: organizations/123
string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for scope to set.- Returns:
- This builder for chaining.
-
getCryptoKey
public String getCryptoKey()
Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey].
string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getCryptoKey
in interfaceSearchProtectedResourcesRequestOrBuilder
- Returns:
- The cryptoKey.
-
getCryptoKeyBytes
public com.google.protobuf.ByteString getCryptoKeyBytes()
Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey].
string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getCryptoKeyBytes
in interfaceSearchProtectedResourcesRequestOrBuilder
- Returns:
- The bytes for cryptoKey.
-
setCryptoKey
public SearchProtectedResourcesRequest.Builder setCryptoKey(String value)
Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey].
string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The cryptoKey to set.- Returns:
- This builder for chaining.
-
clearCryptoKey
public SearchProtectedResourcesRequest.Builder clearCryptoKey()
Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey].
string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setCryptoKeyBytes
public SearchProtectedResourcesRequest.Builder setCryptoKeyBytes(com.google.protobuf.ByteString value)
Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey].
string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for cryptoKey to set.- Returns:
- This builder for chaining.
-
getPageSize
public int getPageSize()
The maximum number of resources to return. The service may return fewer than this value. If unspecified, at most 500 resources will be returned. The maximum value is 500; values above 500 will be coerced to 500.
int32 page_size = 3;
- Specified by:
getPageSize
in interfaceSearchProtectedResourcesRequestOrBuilder
- Returns:
- The pageSize.
-
setPageSize
public SearchProtectedResourcesRequest.Builder setPageSize(int value)
The maximum number of resources to return. The service may return fewer than this value. If unspecified, at most 500 resources will be returned. The maximum value is 500; values above 500 will be coerced to 500.
int32 page_size = 3;
- Parameters:
value
- The pageSize to set.- Returns:
- This builder for chaining.
-
clearPageSize
public SearchProtectedResourcesRequest.Builder clearPageSize()
The maximum number of resources to return. The service may return fewer than this value. If unspecified, at most 500 resources will be returned. The maximum value is 500; values above 500 will be coerced to 500.
int32 page_size = 3;
- Returns:
- This builder for chaining.
-
getPageToken
public String getPageToken()
A page token, received from a previous [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] must match the call that provided the page token.
string page_token = 4;
- Specified by:
getPageToken
in interfaceSearchProtectedResourcesRequestOrBuilder
- Returns:
- The pageToken.
-
getPageTokenBytes
public com.google.protobuf.ByteString getPageTokenBytes()
A page token, received from a previous [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] must match the call that provided the page token.
string page_token = 4;
- Specified by:
getPageTokenBytes
in interfaceSearchProtectedResourcesRequestOrBuilder
- Returns:
- The bytes for pageToken.
-
setPageToken
public SearchProtectedResourcesRequest.Builder setPageToken(String value)
A page token, received from a previous [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] must match the call that provided the page token.
string page_token = 4;
- Parameters:
value
- The pageToken to set.- Returns:
- This builder for chaining.
-
clearPageToken
public SearchProtectedResourcesRequest.Builder clearPageToken()
A page token, received from a previous [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] must match the call that provided the page token.
string page_token = 4;
- Returns:
- This builder for chaining.
-
setPageTokenBytes
public SearchProtectedResourcesRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
A page token, received from a previous [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] must match the call that provided the page token.
string page_token = 4;
- Parameters:
value
- The bytes for pageToken to set.- Returns:
- This builder for chaining.
-
getResourceTypesList
public com.google.protobuf.ProtocolStringList getResourceTypesList()
Optional. A list of resource types that this request searches for. If empty, it will search all the [trackable resource types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). Regular expressions are also supported. For example: * `compute.googleapis.com.*` snapshots resources whose type starts with `compute.googleapis.com`. * `.*Image` snapshots resources whose type ends with `Image`. * `.*Image.*` snapshots resources whose type contains `Image`. See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported resource type, an INVALID_ARGUMENT error will be returned.
repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getResourceTypesList
in interfaceSearchProtectedResourcesRequestOrBuilder
- Returns:
- A list containing the resourceTypes.
-
getResourceTypesCount
public int getResourceTypesCount()
Optional. A list of resource types that this request searches for. If empty, it will search all the [trackable resource types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). Regular expressions are also supported. For example: * `compute.googleapis.com.*` snapshots resources whose type starts with `compute.googleapis.com`. * `.*Image` snapshots resources whose type ends with `Image`. * `.*Image.*` snapshots resources whose type contains `Image`. See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported resource type, an INVALID_ARGUMENT error will be returned.
repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getResourceTypesCount
in interfaceSearchProtectedResourcesRequestOrBuilder
- Returns:
- The count of resourceTypes.
-
getResourceTypes
public String getResourceTypes(int index)
Optional. A list of resource types that this request searches for. If empty, it will search all the [trackable resource types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). Regular expressions are also supported. For example: * `compute.googleapis.com.*` snapshots resources whose type starts with `compute.googleapis.com`. * `.*Image` snapshots resources whose type ends with `Image`. * `.*Image.*` snapshots resources whose type contains `Image`. See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported resource type, an INVALID_ARGUMENT error will be returned.
repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getResourceTypes
in interfaceSearchProtectedResourcesRequestOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The resourceTypes at the given index.
-
getResourceTypesBytes
public com.google.protobuf.ByteString getResourceTypesBytes(int index)
Optional. A list of resource types that this request searches for. If empty, it will search all the [trackable resource types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). Regular expressions are also supported. For example: * `compute.googleapis.com.*` snapshots resources whose type starts with `compute.googleapis.com`. * `.*Image` snapshots resources whose type ends with `Image`. * `.*Image.*` snapshots resources whose type contains `Image`. See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported resource type, an INVALID_ARGUMENT error will be returned.
repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getResourceTypesBytes
in interfaceSearchProtectedResourcesRequestOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the resourceTypes at the given index.
-
setResourceTypes
public SearchProtectedResourcesRequest.Builder setResourceTypes(int index, String value)
Optional. A list of resource types that this request searches for. If empty, it will search all the [trackable resource types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). Regular expressions are also supported. For example: * `compute.googleapis.com.*` snapshots resources whose type starts with `compute.googleapis.com`. * `.*Image` snapshots resources whose type ends with `Image`. * `.*Image.*` snapshots resources whose type contains `Image`. See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported resource type, an INVALID_ARGUMENT error will be returned.
repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
index
- The index to set the value at.value
- The resourceTypes to set.- Returns:
- This builder for chaining.
-
addResourceTypes
public SearchProtectedResourcesRequest.Builder addResourceTypes(String value)
Optional. A list of resource types that this request searches for. If empty, it will search all the [trackable resource types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). Regular expressions are also supported. For example: * `compute.googleapis.com.*` snapshots resources whose type starts with `compute.googleapis.com`. * `.*Image` snapshots resources whose type ends with `Image`. * `.*Image.*` snapshots resources whose type contains `Image`. See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported resource type, an INVALID_ARGUMENT error will be returned.
repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The resourceTypes to add.- Returns:
- This builder for chaining.
-
addAllResourceTypes
public SearchProtectedResourcesRequest.Builder addAllResourceTypes(Iterable<String> values)
Optional. A list of resource types that this request searches for. If empty, it will search all the [trackable resource types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). Regular expressions are also supported. For example: * `compute.googleapis.com.*` snapshots resources whose type starts with `compute.googleapis.com`. * `.*Image` snapshots resources whose type ends with `Image`. * `.*Image.*` snapshots resources whose type contains `Image`. See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported resource type, an INVALID_ARGUMENT error will be returned.
repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
values
- The resourceTypes to add.- Returns:
- This builder for chaining.
-
clearResourceTypes
public SearchProtectedResourcesRequest.Builder clearResourceTypes()
Optional. A list of resource types that this request searches for. If empty, it will search all the [trackable resource types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). Regular expressions are also supported. For example: * `compute.googleapis.com.*` snapshots resources whose type starts with `compute.googleapis.com`. * `.*Image` snapshots resources whose type ends with `Image`. * `.*Image.*` snapshots resources whose type contains `Image`. See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported resource type, an INVALID_ARGUMENT error will be returned.
repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
addResourceTypesBytes
public SearchProtectedResourcesRequest.Builder addResourceTypesBytes(com.google.protobuf.ByteString value)
Optional. A list of resource types that this request searches for. If empty, it will search all the [trackable resource types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). Regular expressions are also supported. For example: * `compute.googleapis.com.*` snapshots resources whose type starts with `compute.googleapis.com`. * `.*Image` snapshots resources whose type ends with `Image`. * `.*Image.*` snapshots resources whose type contains `Image`. See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported resource type, an INVALID_ARGUMENT error will be returned.
repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The bytes of the resourceTypes to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final SearchProtectedResourcesRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchProtectedResourcesRequest.Builder>
-
mergeUnknownFields
public final SearchProtectedResourcesRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchProtectedResourcesRequest.Builder>
-
-