Class Memory.StructuredContent.Builder (3.100.0)

public static final class Memory.StructuredContent.Builder extends GeneratedMessage.Builder<Memory.StructuredContent.Builder> implements Memory.StructuredContentOrBuilder

Represents the structured value of the memory.

Protobuf type google.cloud.aiplatform.v1beta1.Memory.StructuredContent

Static Methods

getDescriptor()

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

Methods

build()

public Memory.StructuredContent build()
Returns
Type Description
Memory.StructuredContent

buildPartial()

public Memory.StructuredContent buildPartial()
Returns
Type Description
Memory.StructuredContent

clear()

public Memory.StructuredContent.Builder clear()
Returns
Type Description
Memory.StructuredContent.Builder
Overrides

clearData()

public Memory.StructuredContent.Builder clearData()

Required. Represents the structured value of the memory.

.google.protobuf.Struct data = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Memory.StructuredContent.Builder

clearSchemaId()

public Memory.StructuredContent.Builder clearSchemaId()

Required. Represents the schema ID for which this structured memory belongs to.

string schema_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Memory.StructuredContent.Builder

This builder for chaining.

getData()

public Struct getData()

Required. Represents the structured value of the memory.

.google.protobuf.Struct data = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Struct

The data.

getDataBuilder()

public Struct.Builder getDataBuilder()

Required. Represents the structured value of the memory.

.google.protobuf.Struct data = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getDataOrBuilder()

public StructOrBuilder getDataOrBuilder()

Required. Represents the structured value of the memory.

.google.protobuf.Struct data = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StructOrBuilder

getDefaultInstanceForType()

public Memory.StructuredContent getDefaultInstanceForType()
Returns
Type Description
Memory.StructuredContent

getDescriptorForType()

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

getSchemaId()

public String getSchemaId()

Required. Represents the schema ID for which this structured memory belongs to.

string schema_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The schemaId.

getSchemaIdBytes()

public ByteString getSchemaIdBytes()

Required. Represents the schema ID for which this structured memory belongs to.

string schema_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for schemaId.

hasData()

public boolean hasData()

Required. Represents the structured value of the memory.

.google.protobuf.Struct data = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the data field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeData(Struct value)

public Memory.StructuredContent.Builder mergeData(Struct value)

Required. Represents the structured value of the memory.

.google.protobuf.Struct data = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Struct
Returns
Type Description
Memory.StructuredContent.Builder

mergeFrom(Memory.StructuredContent other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setData(Struct value)

public Memory.StructuredContent.Builder setData(Struct value)

Required. Represents the structured value of the memory.

.google.protobuf.Struct data = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Struct
Returns
Type Description
Memory.StructuredContent.Builder

setData(Struct.Builder builderForValue)

public Memory.StructuredContent.Builder setData(Struct.Builder builderForValue)

Required. Represents the structured value of the memory.

.google.protobuf.Struct data = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Memory.StructuredContent.Builder

setSchemaId(String value)

public Memory.StructuredContent.Builder setSchemaId(String value)

Required. Represents the schema ID for which this structured memory belongs to.

string schema_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The schemaId to set.

Returns
Type Description
Memory.StructuredContent.Builder

This builder for chaining.

setSchemaIdBytes(ByteString value)

public Memory.StructuredContent.Builder setSchemaIdBytes(ByteString value)

Required. Represents the schema ID for which this structured memory belongs to.

string schema_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for schemaId to set.

Returns
Type Description
Memory.StructuredContent.Builder

This builder for chaining.