Class CreateRapidCacheRequest.Builder (2.71.0)

public static final class CreateRapidCacheRequest.Builder extends GeneratedMessage.Builder<CreateRapidCacheRequest.Builder> implements CreateRapidCacheRequestOrBuilder

Request message for CreateRapidCache.

Protobuf type google.storage.control.v2.CreateRapidCacheRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateRapidCacheRequest build()
Returns
Type Description
CreateRapidCacheRequest

buildPartial()

public CreateRapidCacheRequest buildPartial()
Returns
Type Description
CreateRapidCacheRequest

clear()

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

clearParent()

public CreateRapidCacheRequest.Builder clearParent()

Required. The bucket to which this cache belongs. Format: projects/{project}/buckets/{bucket}

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

Returns
Type Description
CreateRapidCacheRequest.Builder

This builder for chaining.

clearRapidCache()

public CreateRapidCacheRequest.Builder clearRapidCache()

Required. The RapidCache to create. Default values for ingest_on_write, ttl and admission_policy will be applied if not specified in the request.

.google.storage.control.v2.RapidCache rapid_cache = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateRapidCacheRequest.Builder

clearRequestId()

public CreateRapidCacheRequest.Builder clearRequestId()

Optional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted. This request is only idempotent if a request_id is provided.

string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
CreateRapidCacheRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateRapidCacheRequest getDefaultInstanceForType()
Returns
Type Description
CreateRapidCacheRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The bucket to which this cache belongs. Format: projects/{project}/buckets/{bucket}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The bucket to which this cache belongs. Format: projects/{project}/buckets/{bucket}

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

Returns
Type Description
ByteString

The bytes for parent.

getRapidCache()

public RapidCache getRapidCache()

Required. The RapidCache to create. Default values for ingest_on_write, ttl and admission_policy will be applied if not specified in the request.

.google.storage.control.v2.RapidCache rapid_cache = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RapidCache

The rapidCache.

getRapidCacheBuilder()

public RapidCache.Builder getRapidCacheBuilder()

Required. The RapidCache to create. Default values for ingest_on_write, ttl and admission_policy will be applied if not specified in the request.

.google.storage.control.v2.RapidCache rapid_cache = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RapidCache.Builder

getRapidCacheOrBuilder()

public RapidCacheOrBuilder getRapidCacheOrBuilder()

Required. The RapidCache to create. Default values for ingest_on_write, ttl and admission_policy will be applied if not specified in the request.

.google.storage.control.v2.RapidCache rapid_cache = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RapidCacheOrBuilder

getRequestId()

public String getRequestId()

Optional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted. This request is only idempotent if a request_id is provided.

string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted. This request is only idempotent if a request_id is provided.

string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for requestId.

hasRapidCache()

public boolean hasRapidCache()

Required. The RapidCache to create. Default values for ingest_on_write, ttl and admission_policy will be applied if not specified in the request.

.google.storage.control.v2.RapidCache rapid_cache = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the rapidCache field is set.

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

mergeFrom(Message other)

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

mergeFrom(CreateRapidCacheRequest other)

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

mergeRapidCache(RapidCache value)

public CreateRapidCacheRequest.Builder mergeRapidCache(RapidCache value)

Required. The RapidCache to create. Default values for ingest_on_write, ttl and admission_policy will be applied if not specified in the request.

.google.storage.control.v2.RapidCache rapid_cache = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RapidCache
Returns
Type Description
CreateRapidCacheRequest.Builder

setParent(String value)

public CreateRapidCacheRequest.Builder setParent(String value)

Required. The bucket to which this cache belongs. Format: projects/{project}/buckets/{bucket}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateRapidCacheRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateRapidCacheRequest.Builder setParentBytes(ByteString value)

Required. The bucket to which this cache belongs. Format: projects/{project}/buckets/{bucket}

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateRapidCacheRequest.Builder

This builder for chaining.

setRapidCache(RapidCache value)

public CreateRapidCacheRequest.Builder setRapidCache(RapidCache value)

Required. The RapidCache to create. Default values for ingest_on_write, ttl and admission_policy will be applied if not specified in the request.

.google.storage.control.v2.RapidCache rapid_cache = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RapidCache
Returns
Type Description
CreateRapidCacheRequest.Builder

setRapidCache(RapidCache.Builder builderForValue)

public CreateRapidCacheRequest.Builder setRapidCache(RapidCache.Builder builderForValue)

Required. The RapidCache to create. Default values for ingest_on_write, ttl and admission_policy will be applied if not specified in the request.

.google.storage.control.v2.RapidCache rapid_cache = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue RapidCache.Builder
Returns
Type Description
CreateRapidCacheRequest.Builder

setRequestId(String value)

public CreateRapidCacheRequest.Builder setRequestId(String value)

Optional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted. This request is only idempotent if a request_id is provided.

string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
CreateRapidCacheRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateRapidCacheRequest.Builder setRequestIdBytes(ByteString value)

Optional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted. This request is only idempotent if a request_id is provided.

string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
CreateRapidCacheRequest.Builder

This builder for chaining.