Class CreateCachedContentRequest.Builder (3.47.0)

public static final class CreateCachedContentRequest.Builder extends GeneratedMessageV3.Builder<CreateCachedContentRequest.Builder> implements CreateCachedContentRequestOrBuilder

Request message for GenAiCacheService.CreateCachedContent.

Protobuf type google.cloud.aiplatform.v1beta1.CreateCachedContentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateCachedContentRequest build()
Returns
Type Description
CreateCachedContentRequest

buildPartial()

public CreateCachedContentRequest buildPartial()
Returns
Type Description
CreateCachedContentRequest

clear()

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

clearCachedContent()

public CreateCachedContentRequest.Builder clearCachedContent()

Required. The cached content to create

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

Returns
Type Description
CreateCachedContentRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateCachedContentRequest.Builder clearParent()

Required. The parent resource where the cached content will be created

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

Returns
Type Description
CreateCachedContentRequest.Builder

This builder for chaining.

clone()

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

getCachedContent()

public CachedContent getCachedContent()

Required. The cached content to create

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

Returns
Type Description
CachedContent

The cachedContent.

getCachedContentBuilder()

public CachedContent.Builder getCachedContentBuilder()

Required. The cached content to create

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

Returns
Type Description
CachedContent.Builder

getCachedContentOrBuilder()

public CachedContentOrBuilder getCachedContentOrBuilder()

Required. The cached content to create

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

Returns
Type Description
CachedContentOrBuilder

getDefaultInstanceForType()

public CreateCachedContentRequest getDefaultInstanceForType()
Returns
Type Description
CreateCachedContentRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource where the cached content will be created

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource where the cached content will be created

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

Returns
Type Description
ByteString

The bytes for parent.

hasCachedContent()

public boolean hasCachedContent()

Required. The cached content to create

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

Returns
Type Description
boolean

Whether the cachedContent 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 CreateCachedContentRequest.Builder mergeCachedContent(CachedContent value)

Required. The cached content to create

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

Parameter
Name Description
value CachedContent
Returns
Type Description
CreateCachedContentRequest.Builder

mergeFrom(CreateCachedContentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCachedContent(CachedContent value)

public CreateCachedContentRequest.Builder setCachedContent(CachedContent value)

Required. The cached content to create

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

Parameter
Name Description
value CachedContent
Returns
Type Description
CreateCachedContentRequest.Builder

setCachedContent(CachedContent.Builder builderForValue)

public CreateCachedContentRequest.Builder setCachedContent(CachedContent.Builder builderForValue)

Required. The cached content to create

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateCachedContentRequest.Builder setParent(String value)

Required. The parent resource where the cached content will be created

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateCachedContentRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateCachedContentRequest.Builder setParentBytes(ByteString value)

Required. The parent resource where the cached content will be created

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
CreateCachedContentRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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