[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eContainerSpec\u003c/code\u003e class within the Vertex AI v1beta1 API, which defines the specifications for a container.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eContainerSpec\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Cloud.AIPlatform.V1Beta1\u003c/code\u003e namespace and is implemented through various interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers properties to specify container settings like \u003ccode\u003eArgs\u003c/code\u003e for passing arguments, \u003ccode\u003eCommand\u003c/code\u003e to override the entrypoint, \u003ccode\u003eEnv\u003c/code\u003e for environment variables (up to 100), and \u003ccode\u003eImageUri\u003c/code\u003e for the container image location.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available, a basic constructor \u003ccode\u003eContainerSpec()\u003c/code\u003e and a copy constructor \u003ccode\u003eContainerSpec(ContainerSpec other)\u003c/code\u003e that takes a \u003ccode\u003eContainerSpec\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eContainerSpec\u003c/code\u003e class inherits from the \u003ccode\u003eobject\u003c/code\u003e class, giving it the standard methods like \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class ContainerSpec (1.0.0-beta47)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta47 (latest)](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ContainerSpec)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.ContainerSpec) \n\n public sealed class ContainerSpec : IMessage\u003cContainerSpec\u003e, IEquatable\u003cContainerSpec\u003e, IDeepCloneable\u003cContainerSpec\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class ContainerSpec.\n\nThe spec of a Container. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ContainerSpec \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ContainerSpec](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ContainerSpec), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ContainerSpec](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ContainerSpec), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ContainerSpec](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ContainerSpec), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.AIPlatform.V1Beta1](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.AIPlatform.V1Beta1.dll\n\nConstructors\n------------\n\n### ContainerSpec()\n\n public ContainerSpec()\n\n### ContainerSpec(ContainerSpec)\n\n public ContainerSpec(ContainerSpec other)\n\nProperties\n----------\n\n### Args\n\n public RepeatedField\u003cstring\u003e Args { get; }\n\nThe arguments to be passed when starting the container.\n\n### Command\n\n public RepeatedField\u003cstring\u003e Command { get; }\n\nThe command to be invoked when the container is started.\nIt overrides the entrypoint instruction in Dockerfile when provided.\n\n### Env\n\n public RepeatedField\u003cEnvVar\u003e Env { get; }\n\nEnvironment variables to be passed to the container.\nMaximum limit is 100.\n\n### ImageUri\n\n public string ImageUri { get; set; }\n\nRequired. The URI of a container image in the Container Registry that is to\nbe run on each worker replica."]]