Home

google.api.expr.v1alpha1.Constant

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.api.expr.v1alpha1.Constant
.withBoolValue(false)
.withBytesValue('c3RyaW5n')
.withDoubleValue(1)
.withDurationValue(types.google.protobuf.Duration)
.withInt64Value(1)
.withNullValue(types.google.protobuf.NullValue.NULL_VALUE)
.withStringValue('string')
.withTimestampValue(types.google.protobuf.Timestamp)
.withUint64Value(1)
._validate()

Fields

Name Type One-of group Required Constraints
bool_value bool constant_kind  
bytes_value bytes constant_kind  
double_value double constant_kind  
duration_value google.protobuf.Duration constant_kind  
int64_value int64 constant_kind  
null_value google.protobuf.NullValue constant_kind  
string_value string constant_kind  
timestamp_value google.protobuf.Timestamp constant_kind  
uint64_value uint64 constant_kind