SwiftstructPrivateMLClient

struct PrivateMLClient.Tie_CloudGuardrailsInputPolicy

Structure

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

Members 14

  1. varstatic var _protobuf_nameMap: InternalSwiftProtobuf._NameMap { get }
  2. varstatic var protoMessageName: String { get }
  3. fieldvar _contentSafetyEnabled: Bool?
  4. fieldvar _promptInjectionUntrustedContent: PrivateMLClient.Tie_CloudGuardrailsInputPolicy.UntrustedContent?
  5. fieldvar unknownFields: InternalSwiftProtobuf.UnknownStorage
  6. funcclearContentSafetyEnabled() -> ()
  7. funcclearPromptInjectionUntrustedContent() -> ()
  8. funcdecodeMessage<A where A: InternalSwiftProtobuf.Decoder>(decoder: inout A) throws -> ()
  9. functraverse<A where A: InternalSwiftProtobuf.Visitor>(visitor: inout A) throws -> ()
  10. initinit() -> PrivateMLClient.Tie_CloudGuardrailsInputPolicy
  11. varvar contentSafetyEnabled: Bool { get set }
  12. varvar hasContentSafetyEnabled: Bool { get }
  13. varvar hasPromptInjectionUntrustedContent: Bool { get }
  14. varvar promptInjectionUntrustedContent: PrivateMLClient.Tie_CloudGuardrailsInputPolicy.UntrustedContent { get set }
struct Tie_CloudGuardrailsInputPolicy {
    struct UntrustedToolResultContent {
        enum OneOf_Scope {
            case fullOutput(PrivateMLClient.Tie_CloudGuardrailsInputPolicy.UntrustedToolResultContent.FullOutput)
            case specificKeys(PrivateMLClient.Tie_CloudGuardrailsInputPolicy.UntrustedToolResultContent.SpecificKeys)
        }
        struct FullOutput {
            var unknownFields: InternalSwiftProtobuf.UnknownStorage

            init()

            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
            }
        }
        struct SpecificKeys {
            var keys: [Swift.String]
            var unknownFields: InternalSwiftProtobuf.UnknownStorage

            init()

            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
            }
        }
        var scope: PrivateMLClient.Tie_CloudGuardrailsInputPolicy.UntrustedToolResultContent.OneOf_Scope?
        var unknownFields: InternalSwiftProtobuf.UnknownStorage

        init()

        var fullOutput: PrivateMLClient.Tie_CloudGuardrailsInputPolicy.UntrustedToolResultContent.FullOutput {
            get
            set
        }
        var specificKeys: PrivateMLClient.Tie_CloudGuardrailsInputPolicy.UntrustedToolResultContent.SpecificKeys {
            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
        }
    }
    struct UntrustedContent {
        enum OneOf_Content {
            case disabled(PrivateMLClient.Tie_CloudGuardrailsInputPolicy.UntrustedContent.Disabled)
            case toolResults(PrivateMLClient.Tie_CloudGuardrailsInputPolicy.UntrustedContent.ToolResults)
        }
        struct Disabled {
            var unknownFields: InternalSwiftProtobuf.UnknownStorage

            init()

            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
            }
        }
        struct ToolResults {
            var results: [Swift.String : PrivateMLClient.Tie_CloudGuardrailsInputPolicy.UntrustedToolResultContent]
            var unknownFields: InternalSwiftProtobuf.UnknownStorage

            init()

            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
            }
        }
        var content: PrivateMLClient.Tie_CloudGuardrailsInputPolicy.UntrustedContent.OneOf_Content?
        var unknownFields: InternalSwiftProtobuf.UnknownStorage

        init()

        var disabled: PrivateMLClient.Tie_CloudGuardrailsInputPolicy.UntrustedContent.Disabled {
            get
            set
        }
        var toolResults: PrivateMLClient.Tie_CloudGuardrailsInputPolicy.UntrustedContent.ToolResults {
            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
        }
    }
    var unknownFields: InternalSwiftProtobuf.UnknownStorage
    var _contentSafetyEnabled: Swift.Bool?
    var _promptInjectionUntrustedContent: PrivateMLClient.Tie_CloudGuardrailsInputPolicy.UntrustedContent?

    init()

    var contentSafetyEnabled: Swift.Bool {
        get
        set
    }
    var hasContentSafetyEnabled: Swift.Bool {
        get
    }
    var hasPromptInjectionUntrustedContent: Swift.Bool {
        get
    }
    var promptInjectionUntrustedContent: PrivateMLClient.Tie_CloudGuardrailsInputPolicy.UntrustedContent {
        get
        set
    }

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

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