public sealed class GetSpecContentsRequest : IMessage<GetSpecContentsRequest>, IEquatable<GetSpecContentsRequest>, IDeepCloneable<GetSpecContentsRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the API hub v1 API class GetSpecContentsRequest.
The [GetSpecContents][google.cloud.apihub.v1.ApiHub.GetSpecContents] method's
request.
Required. The name of the spec whose contents need to be retrieved.
Format:
projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}
[[["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-08-07 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eGetSpecContentsRequest\u003c/code\u003e class, which is part of the Google Cloud API Hub v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetSpecContentsRequest\u003c/code\u003e class is used to create requests for the \u003ccode\u003eGetSpecContents\u003c/code\u003e method, which retrieves the contents of a specified API spec.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for use with various Protobuf functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetSpecContentsRequest\u003c/code\u003e class includes properties for setting the \u003ccode\u003eName\u003c/code\u003e of the spec to retrieve, as well as a typed view of it with \u003ccode\u003eSpecName\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the class is 1.0.0, with a previous beta version available at 1.0.0-beta02.\u003c/p\u003e\n"]]],[],null,[]]