Home

google.protobuf.Value

Example

Disclaimer: The example is meant to show what methods are available on the object and does not necessarily constitute working code.
local types = import 'types.libsonnet';

types.google.protobuf.Value
.withBoolValue(false)
.withListValue(types.google.protobuf.ListValue)
.withNullValue(types.google.protobuf.NullValue.NULL_VALUE)
.withNumberValue(1)
.withStringValue('string')
.withStructValue(types.google.protobuf.Struct)
._validate()

Fields

Name Type One-of group Required Constraints
bool_value bool kind  
list_value google.protobuf.ListValue kind  
null_value google.protobuf.NullValue kind  
number_value double kind  
string_value string kind  
struct_value google.protobuf.Struct kind