Class FetchCacheUpdateRequest.Builder (6.118.0)

public static final class FetchCacheUpdateRequest.Builder extends GeneratedMessage.Builder<FetchCacheUpdateRequest.Builder> implements FetchCacheUpdateRequestOrBuilder

The request for FetchCacheUpdate.

Protobuf type google.spanner.v1.FetchCacheUpdateRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public FetchCacheUpdateRequest build()
Returns
Type Description
FetchCacheUpdateRequest

buildPartial()

public FetchCacheUpdateRequest buildPartial()
Returns
Type Description
FetchCacheUpdateRequest

clear()

public FetchCacheUpdateRequest.Builder clear()
Returns
Type Description
FetchCacheUpdateRequest.Builder
Overrides

clearDatabase()

public FetchCacheUpdateRequest.Builder clearDatabase()

Required. The database for which to retrieve the cache update.

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

Returns
Type Description
FetchCacheUpdateRequest.Builder

This builder for chaining.

clearMaxRangeCount()

public FetchCacheUpdateRequest.Builder clearMaxRangeCount()

Optional. The maximum number of ranges to return in the response. If not set, a default limit of 10000 will be used.

int32 max_range_count = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FetchCacheUpdateRequest.Builder

This builder for chaining.

clearMaxRecipeCount()

public FetchCacheUpdateRequest.Builder clearMaxRecipeCount()

Optional. The maximum number of key recipes to return in the response. If not set, a default limit of 100 will be used.

int32 max_recipe_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FetchCacheUpdateRequest.Builder

This builder for chaining.

getDatabase()

public String getDatabase()

Required. The database for which to retrieve the cache update.

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

Returns
Type Description
String

The database.

getDatabaseBytes()

public ByteString getDatabaseBytes()

Required. The database for which to retrieve the cache update.

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

Returns
Type Description
ByteString

The bytes for database.

getDefaultInstanceForType()

public FetchCacheUpdateRequest getDefaultInstanceForType()
Returns
Type Description
FetchCacheUpdateRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMaxRangeCount()

public int getMaxRangeCount()

Optional. The maximum number of ranges to return in the response. If not set, a default limit of 10000 will be used.

int32 max_range_count = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The maxRangeCount.

getMaxRecipeCount()

public int getMaxRecipeCount()

Optional. The maximum number of key recipes to return in the response. If not set, a default limit of 100 will be used.

int32 max_recipe_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The maxRecipeCount.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FetchCacheUpdateRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FetchCacheUpdateRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FetchCacheUpdateRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FetchCacheUpdateRequest.Builder
Overrides

mergeFrom(FetchCacheUpdateRequest other)

public FetchCacheUpdateRequest.Builder mergeFrom(FetchCacheUpdateRequest other)
Parameter
Name Description
other FetchCacheUpdateRequest
Returns
Type Description
FetchCacheUpdateRequest.Builder

setDatabase(String value)

public FetchCacheUpdateRequest.Builder setDatabase(String value)

Required. The database for which to retrieve the cache update.

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

Parameter
Name Description
value String

The database to set.

Returns
Type Description
FetchCacheUpdateRequest.Builder

This builder for chaining.

setDatabaseBytes(ByteString value)

public FetchCacheUpdateRequest.Builder setDatabaseBytes(ByteString value)

Required. The database for which to retrieve the cache update.

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

Parameter
Name Description
value ByteString

The bytes for database to set.

Returns
Type Description
FetchCacheUpdateRequest.Builder

This builder for chaining.

setMaxRangeCount(int value)

public FetchCacheUpdateRequest.Builder setMaxRangeCount(int value)

Optional. The maximum number of ranges to return in the response. If not set, a default limit of 10000 will be used.

int32 max_range_count = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The maxRangeCount to set.

Returns
Type Description
FetchCacheUpdateRequest.Builder

This builder for chaining.

setMaxRecipeCount(int value)

public FetchCacheUpdateRequest.Builder setMaxRecipeCount(int value)

Optional. The maximum number of key recipes to return in the response. If not set, a default limit of 100 will be used.

int32 max_recipe_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The maxRecipeCount to set.

Returns
Type Description
FetchCacheUpdateRequest.Builder

This builder for chaining.