Class SearchProtectedResourcesRequest.Builder (0.21.0)

public static final class SearchProtectedResourcesRequest.Builder extends GeneratedMessageV3.Builder<SearchProtectedResourcesRequest.Builder> implements SearchProtectedResourcesRequestOrBuilder

Request message for KeyTrackingService.SearchProtectedResources.

Protobuf type google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllResourceTypes(Iterable<String> values)

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.

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 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];

Parameter
NameDescription
valuesIterable<String>

The resourceTypes to add.

Returns
TypeDescription
SearchProtectedResourcesRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchProtectedResourcesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SearchProtectedResourcesRequest.Builder
Overrides

addResourceTypes(String value)

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.

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 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];

Parameter
NameDescription
valueString

The resourceTypes to add.

Returns
TypeDescription
SearchProtectedResourcesRequest.Builder

This builder for chaining.

addResourceTypesBytes(ByteString value)

public SearchProtectedResourcesRequest.Builder addResourceTypesBytes(ByteString value)

Optional. A list of resource types that this request searches for. If empty, it will search all the trackable 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 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];

Parameter
NameDescription
valueByteString

The bytes of the resourceTypes to add.

Returns
TypeDescription
SearchProtectedResourcesRequest.Builder

This builder for chaining.

build()

public SearchProtectedResourcesRequest build()
Returns
TypeDescription
SearchProtectedResourcesRequest

buildPartial()

public SearchProtectedResourcesRequest buildPartial()
Returns
TypeDescription
SearchProtectedResourcesRequest

clear()

public SearchProtectedResourcesRequest.Builder clear()
Returns
TypeDescription
SearchProtectedResourcesRequest.Builder
Overrides

clearCryptoKey()

public SearchProtectedResourcesRequest.Builder clearCryptoKey()

Required. The resource name of the CryptoKey.

string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
SearchProtectedResourcesRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SearchProtectedResourcesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SearchProtectedResourcesRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchProtectedResourcesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SearchProtectedResourcesRequest.Builder
Overrides

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
TypeDescription
SearchProtectedResourcesRequest.Builder

This builder for chaining.

clearPageToken()

public SearchProtectedResourcesRequest.Builder clearPageToken()

A page token, received from a previous KeyTrackingService.SearchProtectedResources call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to KeyTrackingService.SearchProtectedResources must match the call that provided the page token.

string page_token = 4;

Returns
TypeDescription
SearchProtectedResourcesRequest.Builder

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.

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 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
TypeDescription
SearchProtectedResourcesRequest.Builder

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
TypeDescription
SearchProtectedResourcesRequest.Builder

This builder for chaining.

clone()

public SearchProtectedResourcesRequest.Builder clone()
Returns
TypeDescription
SearchProtectedResourcesRequest.Builder
Overrides

getCryptoKey()

public String getCryptoKey()

Required. The resource name of the CryptoKey.

string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The cryptoKey.

getCryptoKeyBytes()

public ByteString getCryptoKeyBytes()

Required. The resource name of the CryptoKey.

string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for cryptoKey.

getDefaultInstanceForType()

public SearchProtectedResourcesRequest getDefaultInstanceForType()
Returns
TypeDescription
SearchProtectedResourcesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
int

The pageSize.

getPageToken()

public String getPageToken()

A page token, received from a previous KeyTrackingService.SearchProtectedResources call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to KeyTrackingService.SearchProtectedResources must match the call that provided the page token.

string page_token = 4;

Returns
TypeDescription
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

A page token, received from a previous KeyTrackingService.SearchProtectedResources call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to KeyTrackingService.SearchProtectedResources must match the call that provided the page token.

string page_token = 4;

Returns
TypeDescription
ByteString

The bytes for pageToken.

getResourceTypes(int index)

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.

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 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];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The resourceTypes at the given index.

getResourceTypesBytes(int index)

public 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.

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 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];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the resourceTypes at the given index.

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.

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 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
TypeDescription
int

The count of resourceTypes.

getResourceTypesList()

public ProtocolStringList getResourceTypesList()

Optional. A list of resource types that this request searches for. If empty, it will search all the trackable 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 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
TypeDescription
ProtocolStringList

A list containing the resourceTypes.

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) = { ... }

Returns
TypeDescription
String

The scope.

getScopeBytes()

public ByteString getScopeBytes()

Required. Resource name of the organization. Example: organizations/123

string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for scope.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SearchProtectedResourcesRequest other)

public SearchProtectedResourcesRequest.Builder mergeFrom(SearchProtectedResourcesRequest other)
Parameter
NameDescription
otherSearchProtectedResourcesRequest
Returns
TypeDescription
SearchProtectedResourcesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchProtectedResourcesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchProtectedResourcesRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SearchProtectedResourcesRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SearchProtectedResourcesRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchProtectedResourcesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SearchProtectedResourcesRequest.Builder
Overrides

setCryptoKey(String value)

public SearchProtectedResourcesRequest.Builder setCryptoKey(String value)

Required. The resource name of the CryptoKey.

string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The cryptoKey to set.

Returns
TypeDescription
SearchProtectedResourcesRequest.Builder

This builder for chaining.

setCryptoKeyBytes(ByteString value)

public SearchProtectedResourcesRequest.Builder setCryptoKeyBytes(ByteString value)

Required. The resource name of the CryptoKey.

string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for cryptoKey to set.

Returns
TypeDescription
SearchProtectedResourcesRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SearchProtectedResourcesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SearchProtectedResourcesRequest.Builder
Overrides

setPageSize(int value)

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;

Parameter
NameDescription
valueint

The pageSize to set.

Returns
TypeDescription
SearchProtectedResourcesRequest.Builder

This builder for chaining.

setPageToken(String value)

public SearchProtectedResourcesRequest.Builder setPageToken(String value)

A page token, received from a previous KeyTrackingService.SearchProtectedResources call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to KeyTrackingService.SearchProtectedResources must match the call that provided the page token.

string page_token = 4;

Parameter
NameDescription
valueString

The pageToken to set.

Returns
TypeDescription
SearchProtectedResourcesRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public SearchProtectedResourcesRequest.Builder setPageTokenBytes(ByteString value)

A page token, received from a previous KeyTrackingService.SearchProtectedResources call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to KeyTrackingService.SearchProtectedResources must match the call that provided the page token.

string page_token = 4;

Parameter
NameDescription
valueByteString

The bytes for pageToken to set.

Returns
TypeDescription
SearchProtectedResourcesRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SearchProtectedResourcesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SearchProtectedResourcesRequest.Builder
Overrides

setResourceTypes(int index, String value)

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.

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 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
NameDescription
indexint

The index to set the value at.

valueString

The resourceTypes to set.

Returns
TypeDescription
SearchProtectedResourcesRequest.Builder

This builder for chaining.

setScope(String value)

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) = { ... }

Parameter
NameDescription
valueString

The scope to set.

Returns
TypeDescription
SearchProtectedResourcesRequest.Builder

This builder for chaining.

setScopeBytes(ByteString value)

public SearchProtectedResourcesRequest.Builder setScopeBytes(ByteString value)

Required. Resource name of the organization. Example: organizations/123

string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for scope to set.

Returns
TypeDescription
SearchProtectedResourcesRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchProtectedResourcesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SearchProtectedResourcesRequest.Builder
Overrides