Class UpdateCachedContentRequest.Builder (3.55.0)

public static final class UpdateCachedContentRequest.Builder extends GeneratedMessageV3.Builder<UpdateCachedContentRequest.Builder> implements UpdateCachedContentRequestOrBuilder

Request message for GenAiCacheService.UpdateCachedContent. Only expire_time or ttl can be updated.

Protobuf type google.cloud.aiplatform.v1beta1.UpdateCachedContentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateCachedContentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateCachedContentRequest.Builder
Overrides

build()

public UpdateCachedContentRequest build()
Returns
Type Description
UpdateCachedContentRequest

buildPartial()

public UpdateCachedContentRequest buildPartial()
Returns
Type Description
UpdateCachedContentRequest

clear()

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

clearCachedContent()

public UpdateCachedContentRequest.Builder clearCachedContent()

Required. The cached content to update

.google.cloud.aiplatform.v1beta1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateCachedContentRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public UpdateCachedContentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateCachedContentRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateCachedContentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateCachedContentRequest.Builder
Overrides

clearUpdateMask()

public UpdateCachedContentRequest.Builder clearUpdateMask()

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateCachedContentRequest.Builder

clone()

public UpdateCachedContentRequest.Builder clone()
Returns
Type Description
UpdateCachedContentRequest.Builder
Overrides

getCachedContent()

public CachedContent getCachedContent()

Required. The cached content to update

.google.cloud.aiplatform.v1beta1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CachedContent

The cachedContent.

getCachedContentBuilder()

public CachedContent.Builder getCachedContentBuilder()

Required. The cached content to update

.google.cloud.aiplatform.v1beta1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CachedContent.Builder

getCachedContentOrBuilder()

public CachedContentOrBuilder getCachedContentOrBuilder()

Required. The cached content to update

.google.cloud.aiplatform.v1beta1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CachedContentOrBuilder

getDefaultInstanceForType()

public UpdateCachedContentRequest getDefaultInstanceForType()
Returns
Type Description
UpdateCachedContentRequest

getDescriptorForType()

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

getUpdateMask()

public FieldMask getUpdateMask()

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMaskOrBuilder

hasCachedContent()

public boolean hasCachedContent()

Required. The cached content to update

.google.cloud.aiplatform.v1beta1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the cachedContent field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCachedContent(CachedContent value)

public UpdateCachedContentRequest.Builder mergeCachedContent(CachedContent value)

Required. The cached content to update

.google.cloud.aiplatform.v1beta1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CachedContent
Returns
Type Description
UpdateCachedContentRequest.Builder

mergeFrom(UpdateCachedContentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateCachedContentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateCachedContentRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateCachedContentRequest.Builder mergeUpdateMask(FieldMask value)

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateCachedContentRequest.Builder

setCachedContent(CachedContent value)

public UpdateCachedContentRequest.Builder setCachedContent(CachedContent value)

Required. The cached content to update

.google.cloud.aiplatform.v1beta1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CachedContent
Returns
Type Description
UpdateCachedContentRequest.Builder

setCachedContent(CachedContent.Builder builderForValue)

public UpdateCachedContentRequest.Builder setCachedContent(CachedContent.Builder builderForValue)

Required. The cached content to update

.google.cloud.aiplatform.v1beta1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue CachedContent.Builder
Returns
Type Description
UpdateCachedContentRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateCachedContentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateCachedContentRequest.Builder
Overrides

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

public UpdateCachedContentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateCachedContentRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateCachedContentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateCachedContentRequest.Builder
Overrides

setUpdateMask(FieldMask value)

public UpdateCachedContentRequest.Builder setUpdateMask(FieldMask value)

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateCachedContentRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateCachedContentRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateCachedContentRequest.Builder