Class EmptyMessage (2.13.0)

public class EmptyMessage implements ApiMessage

A generic empty message that can be re-used to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the response type of an API method.

Inheritance

Object > EmptyMessage

Implements

ApiMessage

Static Methods

getDefaultInstance()

public static EmptyMessage getDefaultInstance()
Returns
TypeDescription
EmptyMessage

newBuilder()

public static EmptyMessage.Builder newBuilder()
Returns
TypeDescription
EmptyMessage.Builder

newBuilder(EmptyMessage prototype)

public static EmptyMessage.Builder newBuilder(EmptyMessage prototype)
Parameter
NameDescription
prototypeEmptyMessage
Returns
TypeDescription
EmptyMessage.Builder

Methods

equals(Object other)

public boolean equals(Object other)
Parameter
NameDescription
otherObject
Returns
TypeDescription
boolean
Overrides

getApiMessageRequestBody()

public ApiMessage getApiMessageRequestBody()
Returns
TypeDescription
ApiMessage

getFieldMask()

public List<String> getFieldMask()
Returns
TypeDescription
List<String>

getFieldValue(String fieldName)

public Object getFieldValue(String fieldName)
Parameter
NameDescription
fieldNameString
Returns
TypeDescription
Object

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

public EmptyMessage.Builder toBuilder()
Returns
TypeDescription
EmptyMessage.Builder

toString()

public String toString()
Returns
TypeDescription
String
Overrides