public abstract class Message extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Message.Builder |
| Constructor and Description |
|---|
Message() |
| Modifier and Type | Method and Description |
|---|---|
static Message.Builder |
builder() |
abstract com.google.common.collect.ImmutableMap<String,Integer> |
enumValues() |
abstract com.google.common.collect.ImmutableMap<String,Field> |
fieldMap() |
abstract com.google.common.collect.ImmutableList<Field> |
fields() |
Field |
findAndUnwrapPaginatedRepeatedField()
Returns the first list repeated field in a message, unwrapped from its list type.
|
abstract String |
fullProtoName() |
boolean |
hasResource() |
boolean |
isEnum() |
abstract String |
name() |
abstract Map<String,String> |
operationRequestFields() |
abstract OperationResponse |
operationResponse() |
abstract com.google.common.collect.BiMap<String,String> |
operationResponseFields() |
abstract com.google.common.collect.ImmutableList<String> |
outerNestedTypes() |
abstract ResourceName |
resource() |
abstract Message.Builder |
toBuilder() |
abstract TypeNode |
type() |
void |
validateField(String fieldName,
Map<String,Message> messageTypes,
TypeNode type)
Validates if the field or fields exist in the message and the type of the leaf level field.
|
public abstract String name()
public abstract String fullProtoName()
public abstract com.google.common.collect.ImmutableList<Field> fields()
public abstract TypeNode type()
@Nullable public abstract OperationResponse operationResponse()
public abstract com.google.common.collect.BiMap<String,String> operationResponseFields()
@Nullable public abstract ResourceName resource()
public abstract com.google.common.collect.ImmutableList<String> outerNestedTypes()
public abstract Message.Builder toBuilder()
public boolean isEnum()
public boolean hasResource()
public void validateField(String fieldName, Map<String,Message> messageTypes, TypeNode type)
fieldName - The field name. For nested field, concatenate each field name with dot. For
example: abc.def.ghimessageTypes - All messages configured in a rpc service.type - TypeNode The expected type for the leaf level field@Nullable public Field findAndUnwrapPaginatedRepeatedField()
public static Message.Builder builder()
Copyright © 2022 Google LLC. All rights reserved.