Class StorageLayout.RapidCacheInfo.Builder (2.75.0)

public static final class StorageLayout.RapidCacheInfo.Builder extends GeneratedMessage.Builder<StorageLayout.RapidCacheInfo.Builder> implements StorageLayout.RapidCacheInfoOrBuilder

The Rapid Cache configuration for the bucket.

Protobuf type google.storage.control.v2.StorageLayout.RapidCacheInfo

Static Methods

getDescriptor()

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

Methods

build()

public StorageLayout.RapidCacheInfo build()
Returns
Type Description
StorageLayout.RapidCacheInfo

buildPartial()

public StorageLayout.RapidCacheInfo buildPartial()
Returns
Type Description
StorageLayout.RapidCacheInfo

clear()

public StorageLayout.RapidCacheInfo.Builder clear()
Returns
Type Description
StorageLayout.RapidCacheInfo.Builder
Overrides

clearCacheType()

public StorageLayout.RapidCacheInfo.Builder clearCacheType()

Output only. The type of cache in the bucket. Set to rapid-cache or rapid-cache-ultra, only if there is a cache present.

string cache_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StorageLayout.RapidCacheInfo.Builder

This builder for chaining.

getCacheType()

public String getCacheType()

Output only. The type of cache in the bucket. Set to rapid-cache or rapid-cache-ultra, only if there is a cache present.

string cache_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The cacheType.

getCacheTypeBytes()

public ByteString getCacheTypeBytes()

Output only. The type of cache in the bucket. Set to rapid-cache or rapid-cache-ultra, only if there is a cache present.

string cache_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for cacheType.

getDefaultInstanceForType()

public StorageLayout.RapidCacheInfo getDefaultInstanceForType()
Returns
Type Description
StorageLayout.RapidCacheInfo

getDescriptorForType()

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

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 StorageLayout.RapidCacheInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StorageLayout.RapidCacheInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(StorageLayout.RapidCacheInfo other)

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

setCacheType(String value)

public StorageLayout.RapidCacheInfo.Builder setCacheType(String value)

Output only. The type of cache in the bucket. Set to rapid-cache or rapid-cache-ultra, only if there is a cache present.

string cache_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The cacheType to set.

Returns
Type Description
StorageLayout.RapidCacheInfo.Builder

This builder for chaining.

setCacheTypeBytes(ByteString value)

public StorageLayout.RapidCacheInfo.Builder setCacheTypeBytes(ByteString value)

Output only. The type of cache in the bucket. Set to rapid-cache or rapid-cache-ultra, only if there is a cache present.

string cache_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for cacheType to set.

Returns
Type Description
StorageLayout.RapidCacheInfo.Builder

This builder for chaining.