Google. Protobuf. WellKnownTypes. Empty
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs.
Summary
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); }
The JSON representation for Empty
is empty JSON object {}
.
Inheritance
Inherits from: pb::IMessage< Empty >
Constructors and Destructors |
|
---|---|
Empty()
|
|
Empty(Empty other)
|
Properties |
|
---|---|
Descriptor
|
pbr::MessageDescriptor
|
Descriptor
|
pbr::MessageDescriptor pb::IMessage.
|
Parser
|
pb::MessageParser< Empty >
|
Public functions |
|
---|---|
CalculateSize()
|
int
|
Clone()
|
|
Equals(object other)
|
override bool
|
Equals(Empty other)
|
bool
|
GetHashCode()
|
override int
|
MergeFrom(Empty other)
|
void
|
MergeFrom(pb::CodedInputStream input)
|
void
|
ToString()
|
override string
|
WriteTo(pb::CodedOutputStream output)
|
void
|
Properties
Descriptor
pbr::MessageDescriptor Descriptor
Descriptor
pbr::MessageDescriptor pb::IMessage. Descriptor
Parser
pb::MessageParser< Empty > Parser
Public functions
CalculateSize
int CalculateSize()
Clone
Empty Clone()
Empty
Empty()
Empty
Empty( Empty other )
Equals
override bool Equals( object other )
Equals
bool Equals( Empty other )
GetHashCode
override int GetHashCode()
MergeFrom
void MergeFrom( Empty other )
MergeFrom
void MergeFrom( pb::CodedInputStream input )
ToString
override string ToString()
WriteTo
void WriteTo( pb::CodedOutputStream output )