public sealed class CloudRepoSourceContext : IMessage<CloudRepoSourceContext>, IEquatable<CloudRepoSourceContext>, IDeepCloneable<CloudRepoSourceContext>, IBufferMessage, IMessage
Reference documentation and code samples for the Grafeas v1 API class CloudRepoSourceContext.
A CloudRepoSourceContext denotes a particular revision in a Google Cloud
Source Repo.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCloudRepoSourceContext\u003c/code\u003e class in the Grafeas v1 API represents a specific revision within a Google Cloud Source Repo.\u003c/p\u003e\n"],["\u003cp\u003eThis class is part of the \u003ccode\u003eGrafeas.V1\u003c/code\u003e namespace, contained within the \u003ccode\u003eGrafeas.V1.dll\u003c/code\u003e assembly, and can be referenced in multiple versions from 2.2.0 to the latest 3.7.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCloudRepoSourceContext\u003c/code\u003e implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e for enhanced functionality and handling.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like \u003ccode\u003eAliasContext\u003c/code\u003e, \u003ccode\u003eRepoId\u003c/code\u003e, and \u003ccode\u003eRevisionId\u003c/code\u003e to specify the details of the repository revision.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains two constructors: a default parameterless one and another one that accepts an existing \u003ccode\u003eCloudRepoSourceContext\u003c/code\u003e for cloning purposes.\u003c/p\u003e\n"]]],[],null,["# Grafeas v1 API - Class CloudRepoSourceContext (3.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.10.0 (latest)](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.CloudRepoSourceContext)\n- [3.8.0](/dotnet/docs/reference/Grafeas.V1/3.8.0/Grafeas.V1.CloudRepoSourceContext)\n- [3.7.0](/dotnet/docs/reference/Grafeas.V1/3.7.0/Grafeas.V1.CloudRepoSourceContext)\n- [3.6.0](/dotnet/docs/reference/Grafeas.V1/3.6.0/Grafeas.V1.CloudRepoSourceContext)\n- [3.5.0](/dotnet/docs/reference/Grafeas.V1/3.5.0/Grafeas.V1.CloudRepoSourceContext)\n- [3.4.0](/dotnet/docs/reference/Grafeas.V1/3.4.0/Grafeas.V1.CloudRepoSourceContext)\n- [3.3.0](/dotnet/docs/reference/Grafeas.V1/3.3.0/Grafeas.V1.CloudRepoSourceContext)\n- [3.2.0](/dotnet/docs/reference/Grafeas.V1/3.2.0/Grafeas.V1.CloudRepoSourceContext)\n- [3.1.0](/dotnet/docs/reference/Grafeas.V1/3.1.0/Grafeas.V1.CloudRepoSourceContext)\n- [3.0.0](/dotnet/docs/reference/Grafeas.V1/3.0.0/Grafeas.V1.CloudRepoSourceContext)\n- [2.4.0](/dotnet/docs/reference/Grafeas.V1/2.4.0/Grafeas.V1.CloudRepoSourceContext)\n- [2.3.0](/dotnet/docs/reference/Grafeas.V1/2.3.0/Grafeas.V1.CloudRepoSourceContext)\n- [2.2.0](/dotnet/docs/reference/Grafeas.V1/2.2.0/Grafeas.V1.CloudRepoSourceContext) \n\n public sealed class CloudRepoSourceContext : IMessage\u003cCloudRepoSourceContext\u003e, IEquatable\u003cCloudRepoSourceContext\u003e, IDeepCloneable\u003cCloudRepoSourceContext\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Grafeas v1 API class CloudRepoSourceContext.\n\nA CloudRepoSourceContext denotes a particular revision in a Google Cloud\nSource Repo. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CloudRepoSourceContext \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CloudRepoSourceContext](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.CloudRepoSourceContext), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CloudRepoSourceContext](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.CloudRepoSourceContext), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CloudRepoSourceContext](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.CloudRepoSourceContext), [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[Grafeas.V1](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1)\n\nAssembly\n--------\n\nGrafeas.V1.dll\n\nConstructors\n------------\n\n### CloudRepoSourceContext()\n\n public CloudRepoSourceContext()\n\n### CloudRepoSourceContext(CloudRepoSourceContext)\n\n public CloudRepoSourceContext(CloudRepoSourceContext other)\n\nProperties\n----------\n\n### AliasContext\n\n public AliasContext AliasContext { get; set; }\n\nAn alias, which may be a branch or tag.\n\n### HasRevisionId\n\n public bool HasRevisionId { get; }\n\nGets whether the \"revision_id\" field is set\n\n### RepoId\n\n public RepoId RepoId { get; set; }\n\nThe ID of the repo.\n\n### RevisionCase\n\n public CloudRepoSourceContext.RevisionOneofCase RevisionCase { get; }\n\n### RevisionId\n\n public string RevisionId { get; set; }\n\nA revision ID."]]