Package com.google.cloud.aiplatform.v1
Class ComputeTokensResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ComputeTokensResponse.Builder>
com.google.cloud.aiplatform.v1.ComputeTokensResponse.Builder
- All Implemented Interfaces:
ComputeTokensResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ComputeTokensResponse
public static final class ComputeTokensResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ComputeTokensResponse.Builder>
implements ComputeTokensResponseOrBuilder
Response message for ComputeTokens RPC call.Protobuf type
google.cloud.aiplatform.v1.ComputeTokensResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllTokensInfo(Iterable<? extends TokensInfo> values) Lists of tokens info from the input.addTokensInfo(int index, TokensInfo value) Lists of tokens info from the input.addTokensInfo(int index, TokensInfo.Builder builderForValue) Lists of tokens info from the input.addTokensInfo(TokensInfo value) Lists of tokens info from the input.addTokensInfo(TokensInfo.Builder builderForValue) Lists of tokens info from the input.Lists of tokens info from the input.addTokensInfoBuilder(int index) Lists of tokens info from the input.build()clear()Lists of tokens info from the input.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetTokensInfo(int index) Lists of tokens info from the input.getTokensInfoBuilder(int index) Lists of tokens info from the input.Lists of tokens info from the input.intLists of tokens info from the input.Lists of tokens info from the input.getTokensInfoOrBuilder(int index) Lists of tokens info from the input.List<? extends TokensInfoOrBuilder>Lists of tokens info from the input.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ComputeTokensResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeTokensInfo(int index) Lists of tokens info from the input.setTokensInfo(int index, TokensInfo value) Lists of tokens info from the input.setTokensInfo(int index, TokensInfo.Builder builderForValue) Lists of tokens info from the input.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ComputeTokensResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ComputeTokensResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ComputeTokensResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ComputeTokensResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ComputeTokensResponse.Builder>
-
mergeFrom
public ComputeTokensResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ComputeTokensResponse.Builder>- Throws:
IOException
-
getTokensInfoList
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;- Specified by:
getTokensInfoListin interfaceComputeTokensResponseOrBuilder
-
getTokensInfoCount
public int getTokensInfoCount()Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;- Specified by:
getTokensInfoCountin interfaceComputeTokensResponseOrBuilder
-
getTokensInfo
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;- Specified by:
getTokensInfoin interfaceComputeTokensResponseOrBuilder
-
setTokensInfo
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1; -
setTokensInfo
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1; -
addTokensInfo
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1; -
addTokensInfo
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1; -
addTokensInfo
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1; -
addTokensInfo
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1; -
addAllTokensInfo
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1; -
clearTokensInfo
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1; -
removeTokensInfo
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1; -
getTokensInfoBuilder
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1; -
getTokensInfoOrBuilder
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;- Specified by:
getTokensInfoOrBuilderin interfaceComputeTokensResponseOrBuilder
-
getTokensInfoOrBuilderList
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;- Specified by:
getTokensInfoOrBuilderListin interfaceComputeTokensResponseOrBuilder
-
addTokensInfoBuilder
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1; -
addTokensInfoBuilder
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1; -
getTokensInfoBuilderList
Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances.
repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1;
-