Initializerswift-protobuf 1.28.1SwiftProtobuf
init(nilLiteral:)
Creates a new Google_Protobuf_Value
from the nil literal.
init(nilLiteral: ())
Other members in extension
Types
enum OneOf_Kind
The kind of value.
Typealiases
typealias BooleanLiteralType
typealias ExtendedGraphemeClusterLiteralType
typealias FloatLiteralType
typealias IntegerLiteralType
typealias StringLiteralType
typealias UnicodeScalarLiteralType
Type members
init(
) init(boolValue: Bool
) Creates a new
Google_Protobuf_Value
whosekind
isboolValue
with the given boolean value.init(booleanLiteral: Bool
) Creates a new
Google_Protobuf_Value
from a boolean literal.init(extendedGraphemeClusterLiteral: String
) Creates a new
Google_Protobuf_Value
from a character literal.init(floatLiteral: Double
) Creates a new
Google_Protobuf_Value
from a floating point literal.init(integerLiteral: Int64
) Creates a new
Google_Protobuf_Value
from an integer literal.init(listValue: Google_Protobuf_ListValue
) Creates a new
Google_Protobuf_Value
whosekind
islistValue
with the givenGoogle_Struct_ListValue
value.init(numberValue: Double
) Creates a new
Google_Protobuf_Value
whosekind
isnumberValue
with the given floating-point value.init(stringLiteral: String
) Creates a new
Google_Protobuf_Value
from a string literal.init(stringValue: String
) Creates a new
Google_Protobuf_Value
whosekind
isstringValue
with the given string value.init(structValue: Google_Protobuf_Struct
) Creates a new
Google_Protobuf_Value
whosekind
isstructValue
with the givenGoogle_Protobuf_Struct
value.init(unicodeScalarLiteral: String
) Creates a new
Google_Protobuf_Value
from a Unicode scalar literal.static let protoMessageName: String
static func == (lhs: Google_Protobuf_Value, rhs: Google_Protobuf_Value
) -> Bool
Show implementation details (1)
Hide implementation details
Instance members
var boolValue: Bool
Represents a boolean value.
var kind: Google_Protobuf_Value.OneOf_Kind?
The kind of value.
var listValue: Google_Protobuf_ListValue
Represents a repeated
Value
.var nullValue: Google_Protobuf_NullValue
Represents a null value.
var numberValue: Double
Represents a double value.
var stringValue: String
Represents a string value.
var structValue: Google_Protobuf_Struct
Represents a structured value.
var unknownFields: UnknownStorage
func decodeMessage<D>(decoder: inout D
) throws func traverse<V>(visitor: inout V
) throws