Interface CountTokensRequestOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    CountTokensRequest, CountTokensRequest.Builder

    public interface CountTokensRequestOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getEndpoint()
      Required.
      com.google.protobuf.ByteString getEndpointBytes()
      Required.
      com.google.protobuf.Value getInstances​(int index)
      Required.
      int getInstancesCount()
      Required.
      List<com.google.protobuf.Value> getInstancesList()
      Required.
      com.google.protobuf.ValueOrBuilder getInstancesOrBuilder​(int index)
      Required.
      List<? extends com.google.protobuf.ValueOrBuilder> getInstancesOrBuilderList()
      Required.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getEndpoint

        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) = { ... }
        Returns:
        The endpoint.
      • getEndpointBytes

        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) = { ... }
        Returns:
        The bytes for endpoint.
      • getInstancesList

        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];
      • getInstances

        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];
      • getInstancesCount

        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];
      • getInstancesOrBuilderList

        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];
      • getInstancesOrBuilder

        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];