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); }
The JSON representation for Empty
is empty JSON object {}
.
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
|
pbr::MessageDescriptor Descriptor
pbr::MessageDescriptor pb::IMessage. Descriptor
pb::MessageParser< Empty > Parser
int CalculateSize()
Empty Clone()
Empty()
Empty( Empty other )
override bool Equals( object other )
bool Equals( Empty other )
override int GetHashCode()
void MergeFrom( Empty other )
void MergeFrom( pb::CodedInputStream input )
override string ToString()
void WriteTo( pb::CodedOutputStream output )