Learn R Programming

RProtoBuf (version 0.4.22)

isInitialized-methods: Indicates if a protocol buffer message is initialized

Description

Indicates if a Message is initialized. A message is initialized if all its required fields are set.

Arguments

Methods

signature(object = "Message")

is the message initialized

Examples

Run this code
message <- new( tutorial.Person, name = "" )
isInitialized( message ) # FALSE (id is not set)
message$isInitialized()  # FALSE

message <- new( tutorial.Person, name = "", id = 2 )
isInitialized( message ) # TRUE
message$isInitialized()  # TRUE

Run the code above in your browser using DataLab