Class CountTokensRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>
-
- com.google.cloud.aiplatform.v1beta1.CountTokensRequest.Builder
-
- All Implemented Interfaces:
CountTokensRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CountTokensRequest
public static final class CountTokensRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder> implements CountTokensRequestOrBuilder
Request message for [PredictionService.CountTokens][google.cloud.aiplatform.v1beta1.PredictionService.CountTokens].
Protobuf typegoogle.cloud.aiplatform.v1beta1.CountTokensRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CountTokensRequest.BuilderaddAllInstances(Iterable<? extends com.google.protobuf.Value> values)Required.CountTokensRequest.BuilderaddInstances(int index, com.google.protobuf.Value value)Required.CountTokensRequest.BuilderaddInstances(int index, com.google.protobuf.Value.Builder builderForValue)Required.CountTokensRequest.BuilderaddInstances(com.google.protobuf.Value value)Required.CountTokensRequest.BuilderaddInstances(com.google.protobuf.Value.Builder builderForValue)Required.com.google.protobuf.Value.BuilderaddInstancesBuilder()Required.com.google.protobuf.Value.BuilderaddInstancesBuilder(int index)Required.CountTokensRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CountTokensRequestbuild()CountTokensRequestbuildPartial()CountTokensRequest.Builderclear()CountTokensRequest.BuilderclearEndpoint()Required.CountTokensRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CountTokensRequest.BuilderclearInstances()Required.CountTokensRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CountTokensRequest.Builderclone()CountTokensRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetEndpoint()Required.com.google.protobuf.ByteStringgetEndpointBytes()Required.com.google.protobuf.ValuegetInstances(int index)Required.com.google.protobuf.Value.BuildergetInstancesBuilder(int index)Required.List<com.google.protobuf.Value.Builder>getInstancesBuilderList()Required.intgetInstancesCount()Required.List<com.google.protobuf.Value>getInstancesList()Required.com.google.protobuf.ValueOrBuildergetInstancesOrBuilder(int index)Required.List<? extends com.google.protobuf.ValueOrBuilder>getInstancesOrBuilderList()Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CountTokensRequest.BuildermergeFrom(CountTokensRequest other)CountTokensRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CountTokensRequest.BuildermergeFrom(com.google.protobuf.Message other)CountTokensRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CountTokensRequest.BuilderremoveInstances(int index)Required.CountTokensRequest.BuildersetEndpoint(String value)Required.CountTokensRequest.BuildersetEndpointBytes(com.google.protobuf.ByteString value)Required.CountTokensRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CountTokensRequest.BuildersetInstances(int index, com.google.protobuf.Value value)Required.CountTokensRequest.BuildersetInstances(int index, com.google.protobuf.Value.Builder builderForValue)Required.CountTokensRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)CountTokensRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>
-
clear
public CountTokensRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.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.GeneratedMessageV3.Builder<CountTokensRequest.Builder>
-
getDefaultInstanceForType
public CountTokensRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CountTokensRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CountTokensRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CountTokensRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>
-
setField
public CountTokensRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>
-
clearField
public CountTokensRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>
-
clearOneof
public CountTokensRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>
-
setRepeatedField
public CountTokensRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>
-
addRepeatedField
public CountTokensRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>
-
mergeFrom
public CountTokensRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CountTokensRequest.Builder>
-
mergeFrom
public CountTokensRequest.Builder mergeFrom(CountTokensRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>
-
mergeFrom
public CountTokensRequest.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<CountTokensRequest.Builder>- Throws:
IOException
-
getEndpoint
public String getEndpoint()
Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getEndpointin interfaceCountTokensRequestOrBuilder- Returns:
- The endpoint.
-
getEndpointBytes
public com.google.protobuf.ByteString getEndpointBytes()
Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getEndpointBytesin interfaceCountTokensRequestOrBuilder- Returns:
- The bytes for endpoint.
-
setEndpoint
public CountTokensRequest.Builder setEndpoint(String value)
Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The endpoint to set.- Returns:
- This builder for chaining.
-
clearEndpoint
public CountTokensRequest.Builder clearEndpoint()
Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setEndpointBytes
public CountTokensRequest.Builder setEndpointBytes(com.google.protobuf.ByteString value)
Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for endpoint to set.- Returns:
- This builder for chaining.
-
getInstancesList
public List<com.google.protobuf.Value> getInstancesList()
Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInstancesListin interfaceCountTokensRequestOrBuilder
-
getInstancesCount
public int getInstancesCount()
Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInstancesCountin interfaceCountTokensRequestOrBuilder
-
getInstances
public com.google.protobuf.Value getInstances(int index)
Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInstancesin interfaceCountTokensRequestOrBuilder
-
setInstances
public CountTokensRequest.Builder setInstances(int index, com.google.protobuf.Value value)
Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
-
setInstances
public CountTokensRequest.Builder setInstances(int index, com.google.protobuf.Value.Builder builderForValue)
Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
-
addInstances
public CountTokensRequest.Builder addInstances(com.google.protobuf.Value value)
Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
-
addInstances
public CountTokensRequest.Builder addInstances(int index, com.google.protobuf.Value value)
Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
-
addInstances
public CountTokensRequest.Builder addInstances(com.google.protobuf.Value.Builder builderForValue)
Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
-
addInstances
public CountTokensRequest.Builder addInstances(int index, com.google.protobuf.Value.Builder builderForValue)
Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
-
addAllInstances
public CountTokensRequest.Builder addAllInstances(Iterable<? extends com.google.protobuf.Value> values)
Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
-
clearInstances
public CountTokensRequest.Builder clearInstances()
Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
-
removeInstances
public CountTokensRequest.Builder removeInstances(int index)
Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
-
getInstancesBuilder
public com.google.protobuf.Value.Builder getInstancesBuilder(int index)
Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
-
getInstancesOrBuilder
public com.google.protobuf.ValueOrBuilder getInstancesOrBuilder(int index)
Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInstancesOrBuilderin interfaceCountTokensRequestOrBuilder
-
getInstancesOrBuilderList
public List<? extends com.google.protobuf.ValueOrBuilder> getInstancesOrBuilderList()
Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInstancesOrBuilderListin interfaceCountTokensRequestOrBuilder
-
addInstancesBuilder
public com.google.protobuf.Value.Builder addInstancesBuilder()
Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
-
addInstancesBuilder
public com.google.protobuf.Value.Builder addInstancesBuilder(int index)
Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
-
getInstancesBuilderList
public List<com.google.protobuf.Value.Builder> getInstancesBuilderList()
Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.
repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
-
setUnknownFields
public final CountTokensRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>
-
mergeUnknownFields
public final CountTokensRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CountTokensRequest.Builder>
-
-