From 5dc9783b2450cc0defe765b1a64a8a07fa33de3e Mon Sep 17 00:00:00 2001 From: cherylEnkidu Date: Tue, 7 Jan 2025 16:54:56 -0500 Subject: [PATCH] change class to struct --- Firestore/Swift/Source/SwiftAPI/Pipeline.swift | 2 +- .../Swift/Source/SwiftAPI/PipelineResult.swift | 2 +- .../Swift/Source/SwiftAPI/PipelineSource.swift | 2 +- .../core/interfaceForSwift/api/collection_stage.cc | 14 ++++++++++++++ .../interfaceForSwift/api/firestore_pipeline.cc | 14 ++++++++++++++ Firestore/core/interfaceForSwift/api/pipeline.cc | 14 ++++++++++++++ .../core/interfaceForSwift/api/pipeline_result.cc | 13 +++++++++++++ .../core/interfaceForSwift/api/pipeline_source.cc | 14 ++++++++++++++ Firestore/core/interfaceForSwift/api/stage.cc | 14 ++++++++++++++ 9 files changed, 86 insertions(+), 3 deletions(-) diff --git a/Firestore/Swift/Source/SwiftAPI/Pipeline.swift b/Firestore/Swift/Source/SwiftAPI/Pipeline.swift index a7e474e6a0a..e2afb33eedf 100644 --- a/Firestore/Swift/Source/SwiftAPI/Pipeline.swift +++ b/Firestore/Swift/Source/SwiftAPI/Pipeline.swift @@ -21,7 +21,7 @@ #endif @available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *) -public class Pipeline { +public struct Pipeline { var cppObj: firebase.firestore.api.Pipeline public init(_ cppSource: firebase.firestore.api.Pipeline) { diff --git a/Firestore/Swift/Source/SwiftAPI/PipelineResult.swift b/Firestore/Swift/Source/SwiftAPI/PipelineResult.swift index a361344249b..c0cdb9eeccb 100644 --- a/Firestore/Swift/Source/SwiftAPI/PipelineResult.swift +++ b/Firestore/Swift/Source/SwiftAPI/PipelineResult.swift @@ -21,7 +21,7 @@ #endif @available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *) -public class PipelineResult { +public struct PipelineResult { let cppObj: firebase.firestore.api.PipelineResult public init(_ cppSource: firebase.firestore.api.PipelineResult) { diff --git a/Firestore/Swift/Source/SwiftAPI/PipelineSource.swift b/Firestore/Swift/Source/SwiftAPI/PipelineSource.swift index af6e7abcc40..0ea88303743 100644 --- a/Firestore/Swift/Source/SwiftAPI/PipelineSource.swift +++ b/Firestore/Swift/Source/SwiftAPI/PipelineSource.swift @@ -21,7 +21,7 @@ #endif @available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *) -public class PipelineSource { +public struct PipelineSource { let cppObj: firebase.firestore.api.PipelineSource public init(_ cppSource: firebase.firestore.api.PipelineSource) { diff --git a/Firestore/core/interfaceForSwift/api/collection_stage.cc b/Firestore/core/interfaceForSwift/api/collection_stage.cc index 041ee1077cf..aefb7a3bad7 100644 --- a/Firestore/core/interfaceForSwift/api/collection_stage.cc +++ b/Firestore/core/interfaceForSwift/api/collection_stage.cc @@ -1,3 +1,17 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "Firestore/core/interfaceForSwift/api/collection_stage.h" #include diff --git a/Firestore/core/interfaceForSwift/api/firestore_pipeline.cc b/Firestore/core/interfaceForSwift/api/firestore_pipeline.cc index d13790ba70b..d2eaebbbdb9 100644 --- a/Firestore/core/interfaceForSwift/api/firestore_pipeline.cc +++ b/Firestore/core/interfaceForSwift/api/firestore_pipeline.cc @@ -1,3 +1,17 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "Firestore/core/interfaceForSwift/api/firestore_pipeline.h" #include "Firestore/core/src/api/firestore.h" diff --git a/Firestore/core/interfaceForSwift/api/pipeline.cc b/Firestore/core/interfaceForSwift/api/pipeline.cc index fde34b8794d..c1da06de449 100644 --- a/Firestore/core/interfaceForSwift/api/pipeline.cc +++ b/Firestore/core/interfaceForSwift/api/pipeline.cc @@ -1,3 +1,17 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "Firestore/core/interfaceForSwift/api/pipeline.h" #include // NOLINT(build/c++11) diff --git a/Firestore/core/interfaceForSwift/api/pipeline_result.cc b/Firestore/core/interfaceForSwift/api/pipeline_result.cc index 54996146599..7851c9aeeb8 100644 --- a/Firestore/core/interfaceForSwift/api/pipeline_result.cc +++ b/Firestore/core/interfaceForSwift/api/pipeline_result.cc @@ -1,3 +1,16 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. #include "Firestore/core/interfaceForSwift/api/pipeline_result.h" #include "Firestore/core/include/firebase/firestore/timestamp.h" diff --git a/Firestore/core/interfaceForSwift/api/pipeline_source.cc b/Firestore/core/interfaceForSwift/api/pipeline_source.cc index f3db5a4b565..34704cbc64a 100644 --- a/Firestore/core/interfaceForSwift/api/pipeline_source.cc +++ b/Firestore/core/interfaceForSwift/api/pipeline_source.cc @@ -1,3 +1,17 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "Firestore/core/interfaceForSwift/api/pipeline_source.h" #include "Firestore/core/interfaceForSwift/api/collection_stage.h" #include "Firestore/core/src/api/document_reference.h" diff --git a/Firestore/core/interfaceForSwift/api/stage.cc b/Firestore/core/interfaceForSwift/api/stage.cc index c91d7710c60..056e2576741 100644 --- a/Firestore/core/interfaceForSwift/api/stage.cc +++ b/Firestore/core/interfaceForSwift/api/stage.cc @@ -1,3 +1,17 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "Firestore/core/interfaceForSwift/api/stage.h" namespace firebase {