Class Message
- java.lang.Object
-
- com.google.api.generator.gapic.model.Message
-
public abstract class Message extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessage.Builder
-
Constructor Summary
Constructors Constructor Description Message()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Message.Builderbuilder()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()FieldfindAndUnwrapPaginatedRepeatedField()Returns the first list repeated field in a message, unwrapped from its list type.abstract StringfullProtoName()booleanhasResource()booleanisEnum()abstract Stringname()abstract Map<String,String>operationRequestFields()abstract OperationResponseoperationResponse()abstract com.google.common.collect.BiMap<String,String>operationResponseFields()abstract com.google.common.collect.ImmutableList<String>outerNestedTypes()abstract ResourceNameresource()abstract Message.BuildertoBuilder()abstract TypeNodetype()voidvalidateField(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.
-
-
-
Method Detail
-
name
public abstract String name()
-
fullProtoName
public abstract String fullProtoName()
-
fields
public abstract com.google.common.collect.ImmutableList<Field> fields()
-
type
public abstract TypeNode type()
-
operationResponse
@Nullable public abstract OperationResponse operationResponse()
-
operationResponseFields
public abstract com.google.common.collect.BiMap<String,String> operationResponseFields()
-
resource
@Nullable public abstract ResourceName resource()
-
outerNestedTypes
public abstract com.google.common.collect.ImmutableList<String> outerNestedTypes()
-
toBuilder
public abstract Message.Builder toBuilder()
-
isEnum
public boolean isEnum()
-
hasResource
public boolean hasResource()
-
validateField
public 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.- Parameters:
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-TypeNodeThe expected type for the leaf level field
-
findAndUnwrapPaginatedRepeatedField
@Nullable public Field findAndUnwrapPaginatedRepeatedField()
Returns the first list repeated field in a message, unwrapped from its list type.
-
builder
public static Message.Builder builder()
-
-