public sealed class FetchGitRefsRequest : IMessage<FetchGitRefsRequest>, IEquatable<FetchGitRefsRequest>, IDeepCloneable<FetchGitRefsRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Build v2 API class FetchGitRefsRequest.
[[["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\u003eFetchGitRefsRequest\u003c/code\u003e class is part of the Cloud Build v2 API, designed for fetching git references.\u003c/p\u003e\n"],["\u003cp\u003eIt 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, providing functionalities for message handling, equality comparison, deep cloning, and buffer message management.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, a default constructor and one that creates a copy from another \u003ccode\u003eFetchGitRefsRequest\u003c/code\u003e instance, allowing for easy duplication.\u003c/p\u003e\n"],["\u003cp\u003eIt has properties such as \u003ccode\u003eRefType\u003c/code\u003e, \u003ccode\u003eRepository\u003c/code\u003e, and \u003ccode\u003eRepositoryAsRepositoryName\u003c/code\u003e, enabling specification of the type of refs to fetch and the target repository.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRepository\u003c/code\u003e property in the class specifies the target repository using a required resource name in the format: \u003ccode\u003eprojects/*/locations/*/connections/*/repositories/*\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v2 API - Class FetchGitRefsRequest (1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.FetchGitRefsRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.3.0/Google.Cloud.CloudBuild.V2.FetchGitRefsRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.2.0/Google.Cloud.CloudBuild.V2.FetchGitRefsRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.1.0/Google.Cloud.CloudBuild.V2.FetchGitRefsRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.0.0/Google.Cloud.CloudBuild.V2.FetchGitRefsRequest) \n\n public sealed class FetchGitRefsRequest : IMessage\u003cFetchGitRefsRequest\u003e, IEquatable\u003cFetchGitRefsRequest\u003e, IDeepCloneable\u003cFetchGitRefsRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v2 API class FetchGitRefsRequest.\n\nRequest for fetching git refs \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e FetchGitRefsRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[FetchGitRefsRequest](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.FetchGitRefsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[FetchGitRefsRequest](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.FetchGitRefsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[FetchGitRefsRequest](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.FetchGitRefsRequest), [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.CloudBuild.V2](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudBuild.V2.dll\n\nConstructors\n------------\n\n### FetchGitRefsRequest()\n\n public FetchGitRefsRequest()\n\n### FetchGitRefsRequest(FetchGitRefsRequest)\n\n public FetchGitRefsRequest(FetchGitRefsRequest other)\n\nProperties\n----------\n\n### RefType\n\n public FetchGitRefsRequest.Types.RefType RefType { get; set; }\n\nType of refs to fetch\n\n### Repository\n\n public string Repository { get; set; }\n\nRequired. The resource name of the repository in the format\n`projects/*/locations/*/connections/*/repositories/*`.\n\n### RepositoryAsRepositoryName\n\n public RepositoryName RepositoryAsRepositoryName { get; set; }\n\n[RepositoryName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.RepositoryName)-typed view over the [Repository](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.FetchGitRefsRequest#Google_Cloud_CloudBuild_V2_FetchGitRefsRequest_Repository) resource name property."]]