| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340 |
- // DO NOT EDIT.
- // swift-format-ignore-file
- //
- // Generated by the Swift generator plugin for the protocol buffer compiler.
- // Source: connector_service.proto
- //
- // For information on using the generated types, please see the documentation:
- // https://github.com/apple/swift-protobuf/
- ///adopted from third_party/firebase/dataconnect/emulator/server/api/connector_service.proto
- import Foundation
- import SwiftProtobuf
- // If the compiler emits an error on this type, it is because this file
- // was generated by a version of the `protoc` Swift plug-in that is
- // incompatible with the version of SwiftProtobuf to which you are linking.
- // Please ensure that you are building against the same version of the API
- // that was used to generate this file.
- fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
- struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
- typealias Version = _2
- }
- /// The ExecuteQuery request to Firebase Data Connect.
- public struct Google_Firebase_Dataconnect_V1alpha_ExecuteQueryRequest {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- /// The resource name of the connector to find the predefined query, in
- /// the format:
- /// ```
- /// projects/{project}/locations/{location}/services/{service}/connectors/{connector}
- /// ```
- public var name: String = String()
- /// The name of the GraphQL operation name.
- /// Required because all Connector operations must be named.
- /// See https://graphql.org/learn/queries/#operation-name.
- /// (-- api-linter: core::0122::name-suffix=disabled
- /// aip.dev/not-precedent: Must conform to GraphQL HTTP spec standard. --)
- public var operationName: String = String()
- /// Values for GraphQL variables provided in this request.
- public var variables: SwiftProtobuf.Google_Protobuf_Struct {
- get {return _variables ?? SwiftProtobuf.Google_Protobuf_Struct()}
- set {_variables = newValue}
- }
- /// Returns true if `variables` has been explicitly set.
- public var hasVariables: Bool {return self._variables != nil}
- /// Clears the value of `variables`. Subsequent reads from it will return its default value.
- public mutating func clearVariables() {self._variables = nil}
- public var unknownFields = SwiftProtobuf.UnknownStorage()
- public init() {}
- fileprivate var _variables: SwiftProtobuf.Google_Protobuf_Struct? = nil
- }
- /// The ExecuteMutation request to Firebase Data Connect.
- public struct Google_Firebase_Dataconnect_V1alpha_ExecuteMutationRequest {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- /// The resource name of the connector to find the predefined mutation, in
- /// the format:
- /// ```
- /// projects/{project}/locations/{location}/services/{service}/connectors/{connector}
- /// ```
- public var name: String = String()
- /// The name of the GraphQL operation name.
- /// Required because all Connector operations must be named.
- /// See https://graphql.org/learn/queries/#operation-name.
- /// (-- api-linter: core::0122::name-suffix=disabled
- /// aip.dev/not-precedent: Must conform to GraphQL HTTP spec standard. --)
- public var operationName: String = String()
- /// Values for GraphQL variables provided in this request.
- public var variables: SwiftProtobuf.Google_Protobuf_Struct {
- get {return _variables ?? SwiftProtobuf.Google_Protobuf_Struct()}
- set {_variables = newValue}
- }
- /// Returns true if `variables` has been explicitly set.
- public var hasVariables: Bool {return self._variables != nil}
- /// Clears the value of `variables`. Subsequent reads from it will return its default value.
- public mutating func clearVariables() {self._variables = nil}
- public var unknownFields = SwiftProtobuf.UnknownStorage()
- public init() {}
- fileprivate var _variables: SwiftProtobuf.Google_Protobuf_Struct? = nil
- }
- /// The ExecuteQuery response from Firebase Data Connect.
- public struct Google_Firebase_Dataconnect_V1alpha_ExecuteQueryResponse {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- /// The result of executing the requested operation.
- public var data: SwiftProtobuf.Google_Protobuf_Struct {
- get {return _data ?? SwiftProtobuf.Google_Protobuf_Struct()}
- set {_data = newValue}
- }
- /// Returns true if `data` has been explicitly set.
- public var hasData: Bool {return self._data != nil}
- /// Clears the value of `data`. Subsequent reads from it will return its default value.
- public mutating func clearData() {self._data = nil}
- /// Errors of this response.
- public var errors: [Google_Firebase_Dataconnect_V1alpha_GraphqlError] = []
- public var unknownFields = SwiftProtobuf.UnknownStorage()
- public init() {}
- fileprivate var _data: SwiftProtobuf.Google_Protobuf_Struct? = nil
- }
- /// The ExecuteMutation response from Firebase Data Connect.
- public struct Google_Firebase_Dataconnect_V1alpha_ExecuteMutationResponse {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- /// The result of executing the requested operation.
- public var data: SwiftProtobuf.Google_Protobuf_Struct {
- get {return _data ?? SwiftProtobuf.Google_Protobuf_Struct()}
- set {_data = newValue}
- }
- /// Returns true if `data` has been explicitly set.
- public var hasData: Bool {return self._data != nil}
- /// Clears the value of `data`. Subsequent reads from it will return its default value.
- public mutating func clearData() {self._data = nil}
- /// Errors of this response.
- public var errors: [Google_Firebase_Dataconnect_V1alpha_GraphqlError] = []
- public var unknownFields = SwiftProtobuf.UnknownStorage()
- public init() {}
- fileprivate var _data: SwiftProtobuf.Google_Protobuf_Struct? = nil
- }
- #if swift(>=5.5) && canImport(_Concurrency)
- extension Google_Firebase_Dataconnect_V1alpha_ExecuteQueryRequest: @unchecked Sendable {}
- extension Google_Firebase_Dataconnect_V1alpha_ExecuteMutationRequest: @unchecked Sendable {}
- extension Google_Firebase_Dataconnect_V1alpha_ExecuteQueryResponse: @unchecked Sendable {}
- extension Google_Firebase_Dataconnect_V1alpha_ExecuteMutationResponse: @unchecked Sendable {}
- #endif // swift(>=5.5) && canImport(_Concurrency)
- // MARK: - Code below here is support for the SwiftProtobuf runtime.
- fileprivate let _protobuf_package = "google.firebase.dataconnect.v1alpha"
- extension Google_Firebase_Dataconnect_V1alpha_ExecuteQueryRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- public static let protoMessageName: String = _protobuf_package + ".ExecuteQueryRequest"
- public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "name"),
- 2: .standard(proto: "operation_name"),
- 3: .same(proto: "variables"),
- ]
- public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self.name) }()
- case 2: try { try decoder.decodeSingularStringField(value: &self.operationName) }()
- case 3: try { try decoder.decodeSingularMessageField(value: &self._variables) }()
- default: break
- }
- }
- }
- public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- if !self.name.isEmpty {
- try visitor.visitSingularStringField(value: self.name, fieldNumber: 1)
- }
- if !self.operationName.isEmpty {
- try visitor.visitSingularStringField(value: self.operationName, fieldNumber: 2)
- }
- try { if let v = self._variables {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- public static func ==(lhs: Google_Firebase_Dataconnect_V1alpha_ExecuteQueryRequest, rhs: Google_Firebase_Dataconnect_V1alpha_ExecuteQueryRequest) -> Bool {
- if lhs.name != rhs.name {return false}
- if lhs.operationName != rhs.operationName {return false}
- if lhs._variables != rhs._variables {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Google_Firebase_Dataconnect_V1alpha_ExecuteMutationRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- public static let protoMessageName: String = _protobuf_package + ".ExecuteMutationRequest"
- public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "name"),
- 2: .standard(proto: "operation_name"),
- 3: .same(proto: "variables"),
- ]
- public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self.name) }()
- case 2: try { try decoder.decodeSingularStringField(value: &self.operationName) }()
- case 3: try { try decoder.decodeSingularMessageField(value: &self._variables) }()
- default: break
- }
- }
- }
- public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- if !self.name.isEmpty {
- try visitor.visitSingularStringField(value: self.name, fieldNumber: 1)
- }
- if !self.operationName.isEmpty {
- try visitor.visitSingularStringField(value: self.operationName, fieldNumber: 2)
- }
- try { if let v = self._variables {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
- } }()
- try unknownFields.traverse(visitor: &visitor)
- }
- public static func ==(lhs: Google_Firebase_Dataconnect_V1alpha_ExecuteMutationRequest, rhs: Google_Firebase_Dataconnect_V1alpha_ExecuteMutationRequest) -> Bool {
- if lhs.name != rhs.name {return false}
- if lhs.operationName != rhs.operationName {return false}
- if lhs._variables != rhs._variables {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Google_Firebase_Dataconnect_V1alpha_ExecuteQueryResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- public static let protoMessageName: String = _protobuf_package + ".ExecuteQueryResponse"
- public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "data"),
- 2: .same(proto: "errors"),
- ]
- public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._data) }()
- case 2: try { try decoder.decodeRepeatedMessageField(value: &self.errors) }()
- default: break
- }
- }
- }
- public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._data {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- } }()
- if !self.errors.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.errors, fieldNumber: 2)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- public static func ==(lhs: Google_Firebase_Dataconnect_V1alpha_ExecuteQueryResponse, rhs: Google_Firebase_Dataconnect_V1alpha_ExecuteQueryResponse) -> Bool {
- if lhs._data != rhs._data {return false}
- if lhs.errors != rhs.errors {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Google_Firebase_Dataconnect_V1alpha_ExecuteMutationResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- public static let protoMessageName: String = _protobuf_package + ".ExecuteMutationResponse"
- public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "data"),
- 2: .same(proto: "errors"),
- ]
- public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._data) }()
- case 2: try { try decoder.decodeRepeatedMessageField(value: &self.errors) }()
- default: break
- }
- }
- }
- public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every if/case branch local when no optimizations
- // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
- // https://github.com/apple/swift-protobuf/issues/1182
- try { if let v = self._data {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- } }()
- if !self.errors.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.errors, fieldNumber: 2)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- public static func ==(lhs: Google_Firebase_Dataconnect_V1alpha_ExecuteMutationResponse, rhs: Google_Firebase_Dataconnect_V1alpha_ExecuteMutationResponse) -> Bool {
- if lhs._data != rhs._data {return false}
- if lhs.errors != rhs.errors {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
|