public sealed class Empty : IMessage<Empty>, IEquatable<Empty>, IDeepCloneable<Empty>, IBufferMessage, IMessage
A generic empty message that you can re-use to avoid defining duplicated
empty messages in your APIs. A typical example is to use it as the request
or the response type of an API method. For instance:
service Foo {
rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
}
[[["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-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eEmpty\u003c/code\u003e class is a reusable, generic empty message provided by Google.Protobuf, commonly used as a request or response type in APIs to avoid redundant empty message definitions.\u003c/p\u003e\n"],["\u003cp\u003eThis class 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, enabling various operations like deep cloning, equality checks, and buffer message handling.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEmpty\u003c/code\u003e class offers methods for calculating its size (\u003ccode\u003eCalculateSize\u003c/code\u003e), creating a deep clone (\u003ccode\u003eClone\u003c/code\u003e), checking equality (\u003ccode\u003eEquals\u003c/code\u003e), computing hash codes (\u003ccode\u003eGetHashCode\u003c/code\u003e), and merging data from input streams (\u003ccode\u003eMergeFrom\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEmpty\u003c/code\u003e class also offers the ability to write to an output stream (\u003ccode\u003eWriteTo\u003c/code\u003e) or can be utilized with extension methods to interact with many of these operations, such as merging from different types of data, or writing to them.\u003c/p\u003e\n"],["\u003cp\u003eThis class is contained within the \u003ccode\u003eGoogle.Protobuf.WellKnownTypes\u003c/code\u003e namespace and is part of the \u003ccode\u003eGoogle.Protobuf.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]