Class Message
java.lang.Object
com.google.api.generator.gapic.model.Message
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Message.Builderbuilder()This Message POJO is used to represent both proto-messages and proto-enums.fieldMap()abstract com.google.common.collect.ImmutableList<Field>fields()Returns the first list repeated field in a message, unwrapped from its list type.abstract StringbooleanbooleanisEnum()This Message POJO is used to represent both proto-messages and proto-enums.abstract Stringname()abstract com.google.common.collect.ImmutableList<String>This Message POJO is used to represent both proto-messages and proto-enums.abstract OperationResponseabstract com.google.common.collect.ImmutableList<String>abstract ResourceNameresource()abstract Message.Builderabstract TypeNodetype()voidValidates if the field or fields exist in the message and the type of the leaf level field.
-
Constructor Details
-
Message
public Message()
-
-
Method Details
-
name
-
fullProtoName
-
fields
-
enumValues
This Message POJO is used to represent both proto-messages and proto-enums.- Returns:
- an empty map if this instance represents a proto-message, otherwise the proto-enum's String-number value map.
-
type
-
fieldMap
-
operationResponse
-
operationRequestFields
-
operationResponseFields
-
resource
-
outerNestedTypes
-
nestedEnums
This Message POJO is used to represent both proto-messages and proto-enums.If this instance represents a proto-enum (
this.isEnum() == true), this method will always return an empty list, since enums cannot contain nested enums.If this instance represents a proto-message (
this.isEnum() == false), this method returns a list of any nested proto-enums defined in this proto-message. -
toBuilder
-
isEnum
public boolean isEnum()This Message POJO is used to represent both proto-messages and proto-enums.- Returns:
- true, when this instance represents a proto-enum.
-
hasResource
public boolean hasResource() -
validateField
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
Returns the first list repeated field in a message, unwrapped from its list type. -
builder
-