public static final class Api.ChatReq.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatReq.Builder> implements Api.ChatReqOrBuilder
api.ChatReq
限定符和类型 | 方法和说明 |
---|---|
Api.ChatReq.Builder |
addAllFunctions(Iterable<? extends Api.Function> values)
optional list of functions the model may generate json inputs for.
|
Api.ChatReq.Builder |
addAllMessages(Iterable<? extends Api.Message> values)
User input prompt
repeated .api.Message messages = 2; |
Api.ChatReq.Builder |
addAllPlugins(Iterable<String> values)
optional list of plugins the model may call.
|
Api.ChatReq.Builder |
addFunctions(Api.Function.Builder builderForValue)
optional list of functions the model may generate json inputs for.
|
Api.ChatReq.Builder |
addFunctions(Api.Function value)
optional list of functions the model may generate json inputs for.
|
Api.ChatReq.Builder |
addFunctions(int index,
Api.Function.Builder builderForValue)
optional list of functions the model may generate json inputs for.
|
Api.ChatReq.Builder |
addFunctions(int index,
Api.Function value)
optional list of functions the model may generate json inputs for.
|
Api.Function.Builder |
addFunctionsBuilder()
optional list of functions the model may generate json inputs for.
|
Api.Function.Builder |
addFunctionsBuilder(int index)
optional list of functions the model may generate json inputs for.
|
Api.ChatReq.Builder |
addMessages(Api.Message.Builder builderForValue)
User input prompt
repeated .api.Message messages = 2; |
Api.ChatReq.Builder |
addMessages(Api.Message value)
User input prompt
repeated .api.Message messages = 2; |
Api.ChatReq.Builder |
addMessages(int index,
Api.Message.Builder builderForValue)
User input prompt
repeated .api.Message messages = 2; |
Api.ChatReq.Builder |
addMessages(int index,
Api.Message value)
User input prompt
repeated .api.Message messages = 2; |
Api.Message.Builder |
addMessagesBuilder()
User input prompt
repeated .api.Message messages = 2; |
Api.Message.Builder |
addMessagesBuilder(int index)
User input prompt
repeated .api.Message messages = 2; |
Api.ChatReq.Builder |
addPlugins(String value)
optional list of plugins the model may call.
|
Api.ChatReq.Builder |
addPluginsBytes(com.google.protobuf.ByteString value)
optional list of plugins the model may call.
|
Api.ChatReq.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Api.ChatReq |
build() |
Api.ChatReq |
buildPartial() |
Api.ChatReq.Builder |
clear() |
Api.ChatReq.Builder |
clearCryptoToken()
optional symmetric key to encrypt messages, the key itself is encrypted
with model's public key.
|
Api.ChatReq.Builder |
clearExtra() |
Api.ChatReq.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Api.ChatReq.Builder |
clearFunctions()
optional list of functions the model may generate json inputs for.
|
Api.ChatReq.Builder |
clearMessages()
User input prompt
repeated .api.Message messages = 2; |
Api.ChatReq.Builder |
clearMethod()
Method supports chat/tokenize/classification
string method = 9; |
Api.ChatReq.Builder |
clearModel()
Used model for inference
.api.Model model = 1; |
Api.ChatReq.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Api.ChatReq.Builder |
clearParameters()
API specific parameters
.api.Parameters parameters = 3; |
Api.ChatReq.Builder |
clearPlugins()
optional list of plugins the model may call.
|
Api.ChatReq.Builder |
clearReqId()
Unified request id
string req_id = 5; |
Api.ChatReq.Builder |
clearStream()
Whether use stream mode, if set, partial message deltas will be sent as
data-only server-sent events as they become available
The stream will be terminated by a data: [DONE]
bool stream = 4; |
Api.ChatReq.Builder |
clone() |
boolean |
containsExtra(String key)
extra info
map<string, string> extra = 100; |
String |
getCryptoToken()
optional symmetric key to encrypt messages, the key itself is encrypted
with model's public key.
|
com.google.protobuf.ByteString |
getCryptoTokenBytes()
optional symmetric key to encrypt messages, the key itself is encrypted
with model's public key.
|
Api.ChatReq |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getExtra()
已过时。
|
int |
getExtraCount()
extra info
map<string, string> extra = 100; |
Map<String,String> |
getExtraMap()
extra info
map<string, string> extra = 100; |
String |
getExtraOrDefault(String key,
String defaultValue)
extra info
map<string, string> extra = 100; |
String |
getExtraOrThrow(String key)
extra info
map<string, string> extra = 100; |
Api.Function |
getFunctions(int index)
optional list of functions the model may generate json inputs for.
|
Api.Function.Builder |
getFunctionsBuilder(int index)
optional list of functions the model may generate json inputs for.
|
List<Api.Function.Builder> |
getFunctionsBuilderList()
optional list of functions the model may generate json inputs for.
|
int |
getFunctionsCount()
optional list of functions the model may generate json inputs for.
|
List<Api.Function> |
getFunctionsList()
optional list of functions the model may generate json inputs for.
|
Api.FunctionOrBuilder |
getFunctionsOrBuilder(int index)
optional list of functions the model may generate json inputs for.
|
List<? extends Api.FunctionOrBuilder> |
getFunctionsOrBuilderList()
optional list of functions the model may generate json inputs for.
|
Api.Message |
getMessages(int index)
User input prompt
repeated .api.Message messages = 2; |
Api.Message.Builder |
getMessagesBuilder(int index)
User input prompt
repeated .api.Message messages = 2; |
List<Api.Message.Builder> |
getMessagesBuilderList()
User input prompt
repeated .api.Message messages = 2; |
int |
getMessagesCount()
User input prompt
repeated .api.Message messages = 2; |
List<Api.Message> |
getMessagesList()
User input prompt
repeated .api.Message messages = 2; |
Api.MessageOrBuilder |
getMessagesOrBuilder(int index)
User input prompt
repeated .api.Message messages = 2; |
List<? extends Api.MessageOrBuilder> |
getMessagesOrBuilderList()
User input prompt
repeated .api.Message messages = 2; |
String |
getMethod()
Method supports chat/tokenize/classification
string method = 9; |
com.google.protobuf.ByteString |
getMethodBytes()
Method supports chat/tokenize/classification
string method = 9; |
Api.Model |
getModel()
Used model for inference
.api.Model model = 1; |
Api.Model.Builder |
getModelBuilder()
Used model for inference
.api.Model model = 1; |
Api.ModelOrBuilder |
getModelOrBuilder()
Used model for inference
.api.Model model = 1; |
Map<String,String> |
getMutableExtra()
已过时。
|
Api.Parameters |
getParameters()
API specific parameters
.api.Parameters parameters = 3; |
Api.Parameters.Builder |
getParametersBuilder()
API specific parameters
.api.Parameters parameters = 3; |
Api.ParametersOrBuilder |
getParametersOrBuilder()
API specific parameters
.api.Parameters parameters = 3; |
String |
getPlugins(int index)
optional list of plugins the model may call.
|
com.google.protobuf.ByteString |
getPluginsBytes(int index)
optional list of plugins the model may call.
|
int |
getPluginsCount()
optional list of plugins the model may call.
|
com.google.protobuf.ProtocolStringList |
getPluginsList()
optional list of plugins the model may call.
|
String |
getReqId()
Unified request id
string req_id = 5; |
com.google.protobuf.ByteString |
getReqIdBytes()
Unified request id
string req_id = 5; |
boolean |
getStream()
Whether use stream mode, if set, partial message deltas will be sent as
data-only server-sent events as they become available
The stream will be terminated by a data: [DONE]
bool stream = 4; |
boolean |
hasModel()
Used model for inference
.api.Model model = 1; |
boolean |
hasParameters()
API specific parameters
.api.Parameters parameters = 3; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Api.ChatReq.Builder |
mergeFrom(Api.ChatReq other) |
Api.ChatReq.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Api.ChatReq.Builder |
mergeFrom(com.google.protobuf.Message other) |
Api.ChatReq.Builder |
mergeModel(Api.Model value)
Used model for inference
.api.Model model = 1; |
Api.ChatReq.Builder |
mergeParameters(Api.Parameters value)
API specific parameters
.api.Parameters parameters = 3; |
Api.ChatReq.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Api.ChatReq.Builder |
putAllExtra(Map<String,String> values)
extra info
map<string, string> extra = 100; |
Api.ChatReq.Builder |
putExtra(String key,
String value)
extra info
map<string, string> extra = 100; |
Api.ChatReq.Builder |
removeExtra(String key)
extra info
map<string, string> extra = 100; |
Api.ChatReq.Builder |
removeFunctions(int index)
optional list of functions the model may generate json inputs for.
|
Api.ChatReq.Builder |
removeMessages(int index)
User input prompt
repeated .api.Message messages = 2; |
Api.ChatReq.Builder |
setCryptoToken(String value)
optional symmetric key to encrypt messages, the key itself is encrypted
with model's public key.
|
Api.ChatReq.Builder |
setCryptoTokenBytes(com.google.protobuf.ByteString value)
optional symmetric key to encrypt messages, the key itself is encrypted
with model's public key.
|
Api.ChatReq.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Api.ChatReq.Builder |
setFunctions(int index,
Api.Function.Builder builderForValue)
optional list of functions the model may generate json inputs for.
|
Api.ChatReq.Builder |
setFunctions(int index,
Api.Function value)
optional list of functions the model may generate json inputs for.
|
Api.ChatReq.Builder |
setMessages(int index,
Api.Message.Builder builderForValue)
User input prompt
repeated .api.Message messages = 2; |
Api.ChatReq.Builder |
setMessages(int index,
Api.Message value)
User input prompt
repeated .api.Message messages = 2; |
Api.ChatReq.Builder |
setMethod(String value)
Method supports chat/tokenize/classification
string method = 9; |
Api.ChatReq.Builder |
setMethodBytes(com.google.protobuf.ByteString value)
Method supports chat/tokenize/classification
string method = 9; |
Api.ChatReq.Builder |
setModel(Api.Model.Builder builderForValue)
Used model for inference
.api.Model model = 1; |
Api.ChatReq.Builder |
setModel(Api.Model value)
Used model for inference
.api.Model model = 1; |
Api.ChatReq.Builder |
setParameters(Api.Parameters.Builder builderForValue)
API specific parameters
.api.Parameters parameters = 3; |
Api.ChatReq.Builder |
setParameters(Api.Parameters value)
API specific parameters
.api.Parameters parameters = 3; |
Api.ChatReq.Builder |
setPlugins(int index,
String value)
optional list of plugins the model may call.
|
Api.ChatReq.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Api.ChatReq.Builder |
setReqId(String value)
Unified request id
string req_id = 5; |
Api.ChatReq.Builder |
setReqIdBytes(com.google.protobuf.ByteString value)
Unified request id
string req_id = 5; |
Api.ChatReq.Builder |
setStream(boolean value)
Whether use stream mode, if set, partial message deltas will be sent as
data-only server-sent events as they become available
The stream will be terminated by a data: [DONE]
bool stream = 4; |
Api.ChatReq.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, 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.MapField internalGetMapField(int number)
internalGetMapField
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatReq.Builder>
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatReq.Builder>
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatReq.Builder>
public Api.ChatReq.Builder clear()
clear
在接口中 com.google.protobuf.Message.Builder
clear
在接口中 com.google.protobuf.MessageLite.Builder
clear
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatReq.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.ChatReq.Builder>
public Api.ChatReq getDefaultInstanceForType()
getDefaultInstanceForType
在接口中 com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
在接口中 com.google.protobuf.MessageOrBuilder
public Api.ChatReq build()
build
在接口中 com.google.protobuf.Message.Builder
build
在接口中 com.google.protobuf.MessageLite.Builder
public Api.ChatReq buildPartial()
buildPartial
在接口中 com.google.protobuf.Message.Builder
buildPartial
在接口中 com.google.protobuf.MessageLite.Builder
public Api.ChatReq.Builder clone()
clone
在接口中 com.google.protobuf.Message.Builder
clone
在接口中 com.google.protobuf.MessageLite.Builder
clone
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatReq.Builder>
public Api.ChatReq.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
在接口中 com.google.protobuf.Message.Builder
setField
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatReq.Builder>
public Api.ChatReq.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
在接口中 com.google.protobuf.Message.Builder
clearField
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatReq.Builder>
public Api.ChatReq.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
在接口中 com.google.protobuf.Message.Builder
clearOneof
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatReq.Builder>
public Api.ChatReq.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.ChatReq.Builder>
public Api.ChatReq.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
在接口中 com.google.protobuf.Message.Builder
addRepeatedField
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatReq.Builder>
public Api.ChatReq.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
在接口中 com.google.protobuf.Message.Builder
mergeFrom
在类中 com.google.protobuf.AbstractMessage.Builder<Api.ChatReq.Builder>
public Api.ChatReq.Builder mergeFrom(Api.ChatReq other)
public final boolean isInitialized()
isInitialized
在接口中 com.google.protobuf.MessageLiteOrBuilder
isInitialized
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatReq.Builder>
public Api.ChatReq.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.ChatReq.Builder>
IOException
public boolean hasModel()
Used model for inference
.api.Model model = 1;
hasModel
在接口中 Api.ChatReqOrBuilder
public Api.Model getModel()
Used model for inference
.api.Model model = 1;
getModel
在接口中 Api.ChatReqOrBuilder
public Api.ChatReq.Builder setModel(Api.Model value)
Used model for inference
.api.Model model = 1;
public Api.ChatReq.Builder setModel(Api.Model.Builder builderForValue)
Used model for inference
.api.Model model = 1;
public Api.ChatReq.Builder mergeModel(Api.Model value)
Used model for inference
.api.Model model = 1;
public Api.ChatReq.Builder clearModel()
Used model for inference
.api.Model model = 1;
public Api.Model.Builder getModelBuilder()
Used model for inference
.api.Model model = 1;
public Api.ModelOrBuilder getModelOrBuilder()
Used model for inference
.api.Model model = 1;
getModelOrBuilder
在接口中 Api.ChatReqOrBuilder
public List<Api.Message> getMessagesList()
User input prompt
repeated .api.Message messages = 2;
getMessagesList
在接口中 Api.ChatReqOrBuilder
public int getMessagesCount()
User input prompt
repeated .api.Message messages = 2;
getMessagesCount
在接口中 Api.ChatReqOrBuilder
public Api.Message getMessages(int index)
User input prompt
repeated .api.Message messages = 2;
getMessages
在接口中 Api.ChatReqOrBuilder
public Api.ChatReq.Builder setMessages(int index, Api.Message value)
User input prompt
repeated .api.Message messages = 2;
public Api.ChatReq.Builder setMessages(int index, Api.Message.Builder builderForValue)
User input prompt
repeated .api.Message messages = 2;
public Api.ChatReq.Builder addMessages(Api.Message value)
User input prompt
repeated .api.Message messages = 2;
public Api.ChatReq.Builder addMessages(int index, Api.Message value)
User input prompt
repeated .api.Message messages = 2;
public Api.ChatReq.Builder addMessages(Api.Message.Builder builderForValue)
User input prompt
repeated .api.Message messages = 2;
public Api.ChatReq.Builder addMessages(int index, Api.Message.Builder builderForValue)
User input prompt
repeated .api.Message messages = 2;
public Api.ChatReq.Builder addAllMessages(Iterable<? extends Api.Message> values)
User input prompt
repeated .api.Message messages = 2;
public Api.ChatReq.Builder clearMessages()
User input prompt
repeated .api.Message messages = 2;
public Api.ChatReq.Builder removeMessages(int index)
User input prompt
repeated .api.Message messages = 2;
public Api.Message.Builder getMessagesBuilder(int index)
User input prompt
repeated .api.Message messages = 2;
public Api.MessageOrBuilder getMessagesOrBuilder(int index)
User input prompt
repeated .api.Message messages = 2;
getMessagesOrBuilder
在接口中 Api.ChatReqOrBuilder
public List<? extends Api.MessageOrBuilder> getMessagesOrBuilderList()
User input prompt
repeated .api.Message messages = 2;
getMessagesOrBuilderList
在接口中 Api.ChatReqOrBuilder
public Api.Message.Builder addMessagesBuilder()
User input prompt
repeated .api.Message messages = 2;
public Api.Message.Builder addMessagesBuilder(int index)
User input prompt
repeated .api.Message messages = 2;
public List<Api.Message.Builder> getMessagesBuilderList()
User input prompt
repeated .api.Message messages = 2;
public boolean hasParameters()
API specific parameters
.api.Parameters parameters = 3;
hasParameters
在接口中 Api.ChatReqOrBuilder
public Api.Parameters getParameters()
API specific parameters
.api.Parameters parameters = 3;
getParameters
在接口中 Api.ChatReqOrBuilder
public Api.ChatReq.Builder setParameters(Api.Parameters value)
API specific parameters
.api.Parameters parameters = 3;
public Api.ChatReq.Builder setParameters(Api.Parameters.Builder builderForValue)
API specific parameters
.api.Parameters parameters = 3;
public Api.ChatReq.Builder mergeParameters(Api.Parameters value)
API specific parameters
.api.Parameters parameters = 3;
public Api.ChatReq.Builder clearParameters()
API specific parameters
.api.Parameters parameters = 3;
public Api.Parameters.Builder getParametersBuilder()
API specific parameters
.api.Parameters parameters = 3;
public Api.ParametersOrBuilder getParametersOrBuilder()
API specific parameters
.api.Parameters parameters = 3;
getParametersOrBuilder
在接口中 Api.ChatReqOrBuilder
public boolean getStream()
Whether use stream mode, if set, partial message deltas will be sent as data-only server-sent events as they become available The stream will be terminated by a data: [DONE]
bool stream = 4;
getStream
在接口中 Api.ChatReqOrBuilder
public Api.ChatReq.Builder setStream(boolean value)
Whether use stream mode, if set, partial message deltas will be sent as data-only server-sent events as they become available The stream will be terminated by a data: [DONE]
bool stream = 4;
value
- The stream to set.public Api.ChatReq.Builder clearStream()
Whether use stream mode, if set, partial message deltas will be sent as data-only server-sent events as they become available The stream will be terminated by a data: [DONE]
bool stream = 4;
public String getReqId()
Unified request id
string req_id = 5;
getReqId
在接口中 Api.ChatReqOrBuilder
public com.google.protobuf.ByteString getReqIdBytes()
Unified request id
string req_id = 5;
getReqIdBytes
在接口中 Api.ChatReqOrBuilder
public Api.ChatReq.Builder setReqId(String value)
Unified request id
string req_id = 5;
value
- The reqId to set.public Api.ChatReq.Builder clearReqId()
Unified request id
string req_id = 5;
public Api.ChatReq.Builder setReqIdBytes(com.google.protobuf.ByteString value)
Unified request id
string req_id = 5;
value
- The bytes for reqId to set.public String getCryptoToken()
optional symmetric key to encrypt messages, the key itself is encrypted with model's public key.
string crypto_token = 6 [(.api.header) = "Ml-Maas-Crypto-Token"];
getCryptoToken
在接口中 Api.ChatReqOrBuilder
public com.google.protobuf.ByteString getCryptoTokenBytes()
optional symmetric key to encrypt messages, the key itself is encrypted with model's public key.
string crypto_token = 6 [(.api.header) = "Ml-Maas-Crypto-Token"];
getCryptoTokenBytes
在接口中 Api.ChatReqOrBuilder
public Api.ChatReq.Builder setCryptoToken(String value)
optional symmetric key to encrypt messages, the key itself is encrypted with model's public key.
string crypto_token = 6 [(.api.header) = "Ml-Maas-Crypto-Token"];
value
- The cryptoToken to set.public Api.ChatReq.Builder clearCryptoToken()
optional symmetric key to encrypt messages, the key itself is encrypted with model's public key.
string crypto_token = 6 [(.api.header) = "Ml-Maas-Crypto-Token"];
public Api.ChatReq.Builder setCryptoTokenBytes(com.google.protobuf.ByteString value)
optional symmetric key to encrypt messages, the key itself is encrypted with model's public key.
string crypto_token = 6 [(.api.header) = "Ml-Maas-Crypto-Token"];
value
- The bytes for cryptoToken to set.public List<Api.Function> getFunctionsList()
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
getFunctionsList
在接口中 Api.ChatReqOrBuilder
public int getFunctionsCount()
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
getFunctionsCount
在接口中 Api.ChatReqOrBuilder
public Api.Function getFunctions(int index)
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
getFunctions
在接口中 Api.ChatReqOrBuilder
public Api.ChatReq.Builder setFunctions(int index, Api.Function value)
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
public Api.ChatReq.Builder setFunctions(int index, Api.Function.Builder builderForValue)
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
public Api.ChatReq.Builder addFunctions(Api.Function value)
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
public Api.ChatReq.Builder addFunctions(int index, Api.Function value)
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
public Api.ChatReq.Builder addFunctions(Api.Function.Builder builderForValue)
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
public Api.ChatReq.Builder addFunctions(int index, Api.Function.Builder builderForValue)
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
public Api.ChatReq.Builder addAllFunctions(Iterable<? extends Api.Function> values)
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
public Api.ChatReq.Builder clearFunctions()
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
public Api.ChatReq.Builder removeFunctions(int index)
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
public Api.Function.Builder getFunctionsBuilder(int index)
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
public Api.FunctionOrBuilder getFunctionsOrBuilder(int index)
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
getFunctionsOrBuilder
在接口中 Api.ChatReqOrBuilder
public List<? extends Api.FunctionOrBuilder> getFunctionsOrBuilderList()
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
public Api.Function.Builder addFunctionsBuilder()
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
public Api.Function.Builder addFunctionsBuilder(int index)
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
public List<Api.Function.Builder> getFunctionsBuilderList()
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
public com.google.protobuf.ProtocolStringList getPluginsList()
optional list of plugins the model may call.
repeated string plugins = 8;
getPluginsList
在接口中 Api.ChatReqOrBuilder
public int getPluginsCount()
optional list of plugins the model may call.
repeated string plugins = 8;
getPluginsCount
在接口中 Api.ChatReqOrBuilder
public String getPlugins(int index)
optional list of plugins the model may call.
repeated string plugins = 8;
getPlugins
在接口中 Api.ChatReqOrBuilder
index
- The index of the element to return.public com.google.protobuf.ByteString getPluginsBytes(int index)
optional list of plugins the model may call.
repeated string plugins = 8;
getPluginsBytes
在接口中 Api.ChatReqOrBuilder
index
- The index of the value to return.public Api.ChatReq.Builder setPlugins(int index, String value)
optional list of plugins the model may call.
repeated string plugins = 8;
index
- The index to set the value at.value
- The plugins to set.public Api.ChatReq.Builder addPlugins(String value)
optional list of plugins the model may call.
repeated string plugins = 8;
value
- The plugins to add.public Api.ChatReq.Builder addAllPlugins(Iterable<String> values)
optional list of plugins the model may call.
repeated string plugins = 8;
values
- The plugins to add.public Api.ChatReq.Builder clearPlugins()
optional list of plugins the model may call.
repeated string plugins = 8;
public Api.ChatReq.Builder addPluginsBytes(com.google.protobuf.ByteString value)
optional list of plugins the model may call.
repeated string plugins = 8;
value
- The bytes of the plugins to add.public String getMethod()
Method supports chat/tokenize/classification
string method = 9;
getMethod
在接口中 Api.ChatReqOrBuilder
public com.google.protobuf.ByteString getMethodBytes()
Method supports chat/tokenize/classification
string method = 9;
getMethodBytes
在接口中 Api.ChatReqOrBuilder
public Api.ChatReq.Builder setMethod(String value)
Method supports chat/tokenize/classification
string method = 9;
value
- The method to set.public Api.ChatReq.Builder clearMethod()
Method supports chat/tokenize/classification
string method = 9;
public Api.ChatReq.Builder setMethodBytes(com.google.protobuf.ByteString value)
Method supports chat/tokenize/classification
string method = 9;
value
- The bytes for method to set.public int getExtraCount()
Api.ChatReqOrBuilder
extra info
map<string, string> extra = 100;
getExtraCount
在接口中 Api.ChatReqOrBuilder
public boolean containsExtra(String key)
extra info
map<string, string> extra = 100;
containsExtra
在接口中 Api.ChatReqOrBuilder
@Deprecated public Map<String,String> getExtra()
getExtraMap()
instead.getExtra
在接口中 Api.ChatReqOrBuilder
public Map<String,String> getExtraMap()
extra info
map<string, string> extra = 100;
getExtraMap
在接口中 Api.ChatReqOrBuilder
public String getExtraOrDefault(String key, String defaultValue)
extra info
map<string, string> extra = 100;
getExtraOrDefault
在接口中 Api.ChatReqOrBuilder
public String getExtraOrThrow(String key)
extra info
map<string, string> extra = 100;
getExtraOrThrow
在接口中 Api.ChatReqOrBuilder
public Api.ChatReq.Builder clearExtra()
public Api.ChatReq.Builder removeExtra(String key)
extra info
map<string, string> extra = 100;
@Deprecated public Map<String,String> getMutableExtra()
public Api.ChatReq.Builder putExtra(String key, String value)
extra info
map<string, string> extra = 100;
public Api.ChatReq.Builder putAllExtra(Map<String,String> values)
extra info
map<string, string> extra = 100;
public final Api.ChatReq.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
在接口中 com.google.protobuf.Message.Builder
setUnknownFields
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatReq.Builder>
public final Api.ChatReq.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
在接口中 com.google.protobuf.Message.Builder
mergeUnknownFields
在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatReq.Builder>
Copyright © 2024. All rights reserved.