Class EmptyMessage (2.7.1)

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

Methods

equals(Object other)

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

getApiMessageRequestBody()

public ApiMessage getApiMessageRequestBody()
Returns
TypeDescription
ApiMessage

getDefaultInstance()

public static EmptyMessage getDefaultInstance()
Returns
TypeDescription
EmptyMessage

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

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

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides