public class CountTokensRequest| CountTokensRequest | Initializes a new instance of the CountTokensRequest class |
| Contents | Optional. The input given to the model as a prompt. This field is ignored when GenerateContentRequest is set. |
| GenerateContentRequest | Optional. The overall input given to the Model. This includes the prompt as well as other model steering information like system instructions, and/or function declarations for function calling. Model/Contents and generateContentRequests are mutually exclusive. You can either send Model + Contents or a generateContentRequest, but never both. |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| ToString | Returns a string that represents the current object. (Inherited from Object) |