SwiftstructPrivateMLClient

Promptkit_Wireformat_PromptRequestV1PromptVariant

struct PrivateMLClient.Promptkit_Wireformat_PromptRequestV1PromptVariant

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 9

  1. varstatic var _protobuf_nameMap: InternalSwiftProtobuf._NameMap { get }
  2. varstatic var protoMessageName: String { get }
  3. fieldvar unknownFields: InternalSwiftProtobuf.UnknownStorage
  4. fieldvar variant: PrivateMLClient.Promptkit_Wireformat_PromptRequestV1PromptVariant.OneOf_Variant?
  5. funcdecodeMessage<A where A: InternalSwiftProtobuf.Decoder>(decoder: inout A) throws -> ()
  6. functraverse<A where A: InternalSwiftProtobuf.Visitor>(visitor: inout A) throws -> ()
  7. initinit() -> PrivateMLClient.Promptkit_Wireformat_PromptRequestV1PromptVariant
  8. varvar chat: PrivateMLClient.Promptkit_Wireformat_VersionedChatPrompt { get set }
  9. varvar completion: PrivateMLClient.Promptkit_Wireformat_VersionedCompletionPrompt { get set }
struct Promptkit_Wireformat_PromptRequestV1PromptVariant {
    enum OneOf_Variant {
        case completion(PrivateMLClient.Promptkit_Wireformat_VersionedCompletionPrompt)
        case chat(PrivateMLClient.Promptkit_Wireformat_VersionedChatPrompt)
    }
    var variant: PrivateMLClient.Promptkit_Wireformat_PromptRequestV1PromptVariant.OneOf_Variant?
    var unknownFields: InternalSwiftProtobuf.UnknownStorage

    init()

    var chat: PrivateMLClient.Promptkit_Wireformat_VersionedChatPrompt {
        get
        set
    }
    var completion: PrivateMLClient.Promptkit_Wireformat_VersionedCompletionPrompt {
        get
        set
    }

    func decodeMessage<A>(decoder: inout A) throws where A: InternalSwiftProtobuf.Decoder
    func traverse<A>(visitor: inout A) throws where A: InternalSwiftProtobuf.Visitor

    static var _protobuf_nameMap: InternalSwiftProtobuf._NameMap {
        get
    }
    static var protoMessageName: Swift.String {
        get
    }
}