public static final class Api.Message.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Api.Message.Builder> implements Api.MessageOrBuilder
proxy.Message
限定符和类型 | 方法和说明 |
---|---|
Api.Message.Builder |
addAllReferences(Iterable<? extends Api.Reference> values)
url reference for searching, optional
repeated .proxy.Reference references = 3; |
Api.Message.Builder |
addReferences(Api.Reference.Builder builderForValue)
url reference for searching, optional
repeated .proxy.Reference references = 3; |
Api.Message.Builder |
addReferences(Api.Reference value)
url reference for searching, optional
repeated .proxy.Reference references = 3; |
Api.Message.Builder |
addReferences(int index,
Api.Reference.Builder builderForValue)
url reference for searching, optional
repeated .proxy.Reference references = 3; |
Api.Message.Builder |
addReferences(int index,
Api.Reference value)
url reference for searching, optional
repeated .proxy.Reference references = 3; |
Api.Reference.Builder |
addReferencesBuilder()
url reference for searching, optional
repeated .proxy.Reference references = 3; |
Api.Reference.Builder |
addReferencesBuilder(int index)
url reference for searching, optional
repeated .proxy.Reference references = 3; |
Api.Message.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Api.Message |
build() |
Api.Message |
buildPartial() |
Api.Message.Builder |
clear() |
Api.Message.Builder |
clearContent()
The real content of the message, may be empty for assistant message with function call.
|
Api.Message.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Api.Message.Builder |
clearFunctionCall()
The name and arguments of a function call generated by model.
|
Api.Message.Builder |
clearName()
If the role is `function`, is the name of the function which generate the content.
|
Api.Message.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Api.Message.Builder |
clearReferences()
url reference for searching, optional
repeated .proxy.Reference references = 3; |
Api.Message.Builder |
clearRole()
The role of the author of this message.
|
Api.Message.Builder |
clone() |
String |
getContent()
The real content of the message, may be empty for assistant message with function call.
|
com.google.protobuf.ByteString |
getContentBytes()
The real content of the message, may be empty for assistant message with function call.
|
Api.Message |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Api.FunctionCall |
getFunctionCall()
The name and arguments of a function call generated by model.
|
Api.FunctionCall.Builder |
getFunctionCallBuilder()
The name and arguments of a function call generated by model.
|
Api.FunctionCallOrBuilder |
getFunctionCallOrBuilder()
The name and arguments of a function call generated by model.
|
String |
getName()
If the role is `function`, is the name of the function which generate the content.
|
com.google.protobuf.ByteString |
getNameBytes()
If the role is `function`, is the name of the function which generate the content.
|
Api.Reference |
getReferences(int index)
url reference for searching, optional
repeated .proxy.Reference references = 3; |
Api.Reference.Builder |
getReferencesBuilder(int index)
url reference for searching, optional
repeated .proxy.Reference references = 3; |
List<Api.Reference.Builder> |
getReferencesBuilderList()
url reference for searching, optional
repeated .proxy.Reference references = 3; |
int |
getReferencesCount()
url reference for searching, optional
repeated .proxy.Reference references = 3; |
List<Api.Reference> |
getReferencesList()
url reference for searching, optional
repeated .proxy.Reference references = 3; |
Api.ReferenceOrBuilder |
getReferencesOrBuilder(int index)
url reference for searching, optional
repeated .proxy.Reference references = 3; |
List<? extends Api.ReferenceOrBuilder> |
getReferencesOrBuilderList()
url reference for searching, optional
repeated .proxy.Reference references = 3; |
String |
getRole()
The role of the author of this message.
|
com.google.protobuf.ByteString |
getRoleBytes()
The role of the author of this message.
|
boolean |
hasFunctionCall()
The name and arguments of a function call generated by model.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Api.Message.Builder |
mergeFrom(Api.Message other) |
Api.Message.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Api.Message.Builder |
mergeFrom(com.google.protobuf.Message other) |
Api.Message.Builder |
mergeFunctionCall(Api.FunctionCall value)
The name and arguments of a function call generated by model.
|
Api.Message.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Api.Message.Builder |
removeReferences(int index)
url reference for searching, optional
repeated .proxy.Reference references = 3; |
Api.Message.Builder |
setContent(String value)
The real content of the message, may be empty for assistant message with function call.
|
Api.Message.Builder |
setContentBytes(com.google.protobuf.ByteString value)
The real content of the message, may be empty for assistant message with function call.
|
Api.Message.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Api.Message.Builder |
setFunctionCall(Api.FunctionCall.Builder builderForValue)
The name and arguments of a function call generated by model.
|
Api.Message.Builder |
setFunctionCall(Api.FunctionCall value)
The name and arguments of a function call generated by model.
|
Api.Message.Builder |
setName(String value)
If the role is `function`, is the name of the function which generate the content.
|
Api.Message.Builder |
setNameBytes(com.google.protobuf.ByteString value)
If the role is `function`, is the name of the function which generate the content.
|
Api.Message.Builder |
setReferences(int index,
Api.Reference.Builder builderForValue)
url reference for searching, optional
repeated .proxy.Reference references = 3; |
Api.Message.Builder |
setReferences(int index,
Api.Reference value)
url reference for searching, optional
repeated .proxy.Reference references = 3; |
Api.Message.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Api.Message.Builder |
setRole(String value)
The role of the author of this message.
|
Api.Message.Builder |
setRoleBytes(com.google.protobuf.ByteString value)
The role of the author of this message.
|
Api.Message.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.Message.Builder>
public Api.Message.Builder clear()
clear
在接口中 com.google.protobuf.Message.Builder
clear
在接口中 com.google.protobuf.MessageLite.Builder
clear
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.Message.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
在接口中 com.google.protobuf.Message.Builder
getDescriptorForType
在接口中 com.google.protobuf.MessageOrBuilder
getDescriptorForType
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.Message.Builder>
public Api.Message getDefaultInstanceForType()
getDefaultInstanceForType
在接口中 com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
在接口中 com.google.protobuf.MessageOrBuilder
public Api.Message build()
build
在接口中 com.google.protobuf.Message.Builder
build
在接口中 com.google.protobuf.MessageLite.Builder
public Api.Message buildPartial()
buildPartial
在接口中 com.google.protobuf.Message.Builder
buildPartial
在接口中 com.google.protobuf.MessageLite.Builder
public Api.Message.Builder clone()
clone
在接口中 com.google.protobuf.Message.Builder
clone
在接口中 com.google.protobuf.MessageLite.Builder
clone
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.Message.Builder>
public Api.Message.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
在接口中 com.google.protobuf.Message.Builder
setField
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.Message.Builder>
public Api.Message.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
在接口中 com.google.protobuf.Message.Builder
clearField
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.Message.Builder>
public Api.Message.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
在接口中 com.google.protobuf.Message.Builder
clearOneof
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.Message.Builder>
public Api.Message.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
在接口中 com.google.protobuf.Message.Builder
setRepeatedField
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.Message.Builder>
public Api.Message.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
在接口中 com.google.protobuf.Message.Builder
addRepeatedField
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.Message.Builder>
public Api.Message.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
在接口中 com.google.protobuf.Message.Builder
mergeFrom
在类中 com.google.protobuf.AbstractMessage.Builder<Api.Message.Builder>
public Api.Message.Builder mergeFrom(Api.Message other)
public final boolean isInitialized()
isInitialized
在接口中 com.google.protobuf.MessageLiteOrBuilder
isInitialized
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.Message.Builder>
public Api.Message.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
在接口中 com.google.protobuf.Message.Builder
mergeFrom
在接口中 com.google.protobuf.MessageLite.Builder
mergeFrom
在类中 com.google.protobuf.AbstractMessage.Builder<Api.Message.Builder>
IOException
public String getRole()
The role of the author of this message. One of system, user, assistant or function.
string role = 1;
getRole
在接口中 Api.MessageOrBuilder
public com.google.protobuf.ByteString getRoleBytes()
The role of the author of this message. One of system, user, assistant or function.
string role = 1;
getRoleBytes
在接口中 Api.MessageOrBuilder
public Api.Message.Builder setRole(String value)
The role of the author of this message. One of system, user, assistant or function.
string role = 1;
value
- The role to set.public Api.Message.Builder clearRole()
The role of the author of this message. One of system, user, assistant or function.
string role = 1;
public Api.Message.Builder setRoleBytes(com.google.protobuf.ByteString value)
The role of the author of this message. One of system, user, assistant or function.
string role = 1;
value
- The bytes for role to set.public String getContent()
The real content of the message, may be empty for assistant message with function call.
string content = 2;
getContent
在接口中 Api.MessageOrBuilder
public com.google.protobuf.ByteString getContentBytes()
The real content of the message, may be empty for assistant message with function call.
string content = 2;
getContentBytes
在接口中 Api.MessageOrBuilder
public Api.Message.Builder setContent(String value)
The real content of the message, may be empty for assistant message with function call.
string content = 2;
value
- The content to set.public Api.Message.Builder clearContent()
The real content of the message, may be empty for assistant message with function call.
string content = 2;
public Api.Message.Builder setContentBytes(com.google.protobuf.ByteString value)
The real content of the message, may be empty for assistant message with function call.
string content = 2;
value
- The bytes for content to set.public String getName()
If the role is `function`, is the name of the function which generate the content.
string name = 4;
getName
在接口中 Api.MessageOrBuilder
public com.google.protobuf.ByteString getNameBytes()
If the role is `function`, is the name of the function which generate the content.
string name = 4;
getNameBytes
在接口中 Api.MessageOrBuilder
public Api.Message.Builder setName(String value)
If the role is `function`, is the name of the function which generate the content.
string name = 4;
value
- The name to set.public Api.Message.Builder clearName()
If the role is `function`, is the name of the function which generate the content.
string name = 4;
public Api.Message.Builder setNameBytes(com.google.protobuf.ByteString value)
If the role is `function`, is the name of the function which generate the content.
string name = 4;
value
- The bytes for name to set.public boolean hasFunctionCall()
The name and arguments of a function call generated by model.
.proxy.FunctionCall function_call = 5;
hasFunctionCall
在接口中 Api.MessageOrBuilder
public Api.FunctionCall getFunctionCall()
The name and arguments of a function call generated by model.
.proxy.FunctionCall function_call = 5;
getFunctionCall
在接口中 Api.MessageOrBuilder
public Api.Message.Builder setFunctionCall(Api.FunctionCall value)
The name and arguments of a function call generated by model.
.proxy.FunctionCall function_call = 5;
public Api.Message.Builder setFunctionCall(Api.FunctionCall.Builder builderForValue)
The name and arguments of a function call generated by model.
.proxy.FunctionCall function_call = 5;
public Api.Message.Builder mergeFunctionCall(Api.FunctionCall value)
The name and arguments of a function call generated by model.
.proxy.FunctionCall function_call = 5;
public Api.Message.Builder clearFunctionCall()
The name and arguments of a function call generated by model.
.proxy.FunctionCall function_call = 5;
public Api.FunctionCall.Builder getFunctionCallBuilder()
The name and arguments of a function call generated by model.
.proxy.FunctionCall function_call = 5;
public Api.FunctionCallOrBuilder getFunctionCallOrBuilder()
The name and arguments of a function call generated by model.
.proxy.FunctionCall function_call = 5;
getFunctionCallOrBuilder
在接口中 Api.MessageOrBuilder
public List<Api.Reference> getReferencesList()
url reference for searching, optional
repeated .proxy.Reference references = 3;
getReferencesList
在接口中 Api.MessageOrBuilder
public int getReferencesCount()
url reference for searching, optional
repeated .proxy.Reference references = 3;
getReferencesCount
在接口中 Api.MessageOrBuilder
public Api.Reference getReferences(int index)
url reference for searching, optional
repeated .proxy.Reference references = 3;
getReferences
在接口中 Api.MessageOrBuilder
public Api.Message.Builder setReferences(int index, Api.Reference value)
url reference for searching, optional
repeated .proxy.Reference references = 3;
public Api.Message.Builder setReferences(int index, Api.Reference.Builder builderForValue)
url reference for searching, optional
repeated .proxy.Reference references = 3;
public Api.Message.Builder addReferences(Api.Reference value)
url reference for searching, optional
repeated .proxy.Reference references = 3;
public Api.Message.Builder addReferences(int index, Api.Reference value)
url reference for searching, optional
repeated .proxy.Reference references = 3;
public Api.Message.Builder addReferences(Api.Reference.Builder builderForValue)
url reference for searching, optional
repeated .proxy.Reference references = 3;
public Api.Message.Builder addReferences(int index, Api.Reference.Builder builderForValue)
url reference for searching, optional
repeated .proxy.Reference references = 3;
public Api.Message.Builder addAllReferences(Iterable<? extends Api.Reference> values)
url reference for searching, optional
repeated .proxy.Reference references = 3;
public Api.Message.Builder clearReferences()
url reference for searching, optional
repeated .proxy.Reference references = 3;
public Api.Message.Builder removeReferences(int index)
url reference for searching, optional
repeated .proxy.Reference references = 3;
public Api.Reference.Builder getReferencesBuilder(int index)
url reference for searching, optional
repeated .proxy.Reference references = 3;
public Api.ReferenceOrBuilder getReferencesOrBuilder(int index)
url reference for searching, optional
repeated .proxy.Reference references = 3;
getReferencesOrBuilder
在接口中 Api.MessageOrBuilder
public List<? extends Api.ReferenceOrBuilder> getReferencesOrBuilderList()
url reference for searching, optional
repeated .proxy.Reference references = 3;
public Api.Reference.Builder addReferencesBuilder()
url reference for searching, optional
repeated .proxy.Reference references = 3;
public Api.Reference.Builder addReferencesBuilder(int index)
url reference for searching, optional
repeated .proxy.Reference references = 3;
public List<Api.Reference.Builder> getReferencesBuilderList()
url reference for searching, optional
repeated .proxy.Reference references = 3;
public final Api.Message.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
在接口中 com.google.protobuf.Message.Builder
setUnknownFields
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.Message.Builder>
public final Api.Message.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
在接口中 com.google.protobuf.Message.Builder
mergeUnknownFields
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.Message.Builder>
Copyright © 2023. All rights reserved.