Class SearchProtectedResourcesRequest.Builder (0.10.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

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.

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

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