public sealed class CreateContextRequest : IMessage<CreateContextRequest>, IEquatable<CreateContextRequest>, IDeepCloneable<CreateContextRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class CreateContextRequest.
Request message for
[MetadataService.CreateContext][google.cloud.aiplatform.v1beta1.MetadataService.CreateContext].
The {context} portion of the resource name with the format:
projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}.
If not provided, the Context's ID will be a UUID generated by the service.
Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
Must be unique across all Contexts in the parent MetadataStore. (Otherwise
the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the
caller can't view the preexisting Context.)
Required. The resource name of the MetadataStore where the Context should
be created. Format:
projects/{project}/locations/{location}/metadataStores/{metadatastore}
[[["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-14 UTC."],[[["\u003cp\u003eThis documentation details the \u003ccode\u003eCreateContextRequest\u003c/code\u003e class within the Vertex AI v1beta1 API, used to create a context via the \u003ccode\u003eMetadataService.CreateContext\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateContextRequest\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Cloud.AIPlatform.V1Beta1\u003c/code\u003e namespace and is available in the \u003ccode\u003eGoogle.Cloud.AIPlatform.V1Beta1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties such as \u003ccode\u003eContext\u003c/code\u003e (the Context to be created), \u003ccode\u003eContextId\u003c/code\u003e (a user-defined or system-generated identifier for the Context), and \u003ccode\u003eParent\u003c/code\u003e (the resource name of the MetadataStore where the Context will reside).\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from Object, and implements the \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes two constructors, a parameterless one, and another one that accepts a \u003ccode\u003eCreateContextRequest\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,[]]