| 1 |
// Copyright 2025 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// https://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go_gapic. DO NOT EDIT. |
| 16 |
|
| 17 |
//go:build go1.23 |
| 18 |
|
| 19 |
package visionai |
| 20 |
|
| 21 |
import ( |
| 22 |
"iter" |
| 23 |
|
| 24 |
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" |
| 25 |
visionaipb "cloud.google.com/go/visionai/apiv1/visionaipb" |
| 26 |
"github.com/googleapis/gax-go/v2/iterator" |
| 27 |
) |
| 28 |
|
| 29 |
// All returns an iterator. If an error is returned by the iterator, the |
| 30 |
// iterator will stop after that iteration. |
| 31 |
func (it *AnalysisIterator) All() iter.Seq2[*visionaipb.Analysis, error] { |
| 32 |
return iterator.RangeAdapter(it.Next) |
| 33 |
} |
| 34 |
|
| 35 |
// All returns an iterator. If an error is returned by the iterator, the |
| 36 |
// iterator will stop after that iteration. |
| 37 |
func (it *AnnotationIterator) All() iter.Seq2[*visionaipb.Annotation, error] { |
| 38 |
return iterator.RangeAdapter(it.Next) |
| 39 |
} |
| 40 |
|
| 41 |
// All returns an iterator. If an error is returned by the iterator, the |
| 42 |
// iterator will stop after that iteration. |
| 43 |
func (it *ApplicationIterator) All() iter.Seq2[*visionaipb.Application, error] { |
| 44 |
return iterator.RangeAdapter(it.Next) |
| 45 |
} |
| 46 |
|
| 47 |
// All returns an iterator. If an error is returned by the iterator, the |
| 48 |
// iterator will stop after that iteration. |
| 49 |
func (it *AssetIterator) All() iter.Seq2[*visionaipb.Asset, error] { |
| 50 |
return iterator.RangeAdapter(it.Next) |
| 51 |
} |
| 52 |
|
| 53 |
// All returns an iterator. If an error is returned by the iterator, the |
| 54 |
// iterator will stop after that iteration. |
| 55 |
func (it *ClusterIterator) All() iter.Seq2[*visionaipb.Cluster, error] { |
| 56 |
return iterator.RangeAdapter(it.Next) |
| 57 |
} |
| 58 |
|
| 59 |
// All returns an iterator. If an error is returned by the iterator, the |
| 60 |
// iterator will stop after that iteration. |
| 61 |
func (it *CollectionItemIterator) All() iter.Seq2[*visionaipb.CollectionItem, error] { |
| 62 |
return iterator.RangeAdapter(it.Next) |
| 63 |
} |
| 64 |
|
| 65 |
// All returns an iterator. If an error is returned by the iterator, the |
| 66 |
// iterator will stop after that iteration. |
| 67 |
func (it *CollectionIterator) All() iter.Seq2[*visionaipb.Collection, error] { |
| 68 |
return iterator.RangeAdapter(it.Next) |
| 69 |
} |
| 70 |
|
| 71 |
// All returns an iterator. If an error is returned by the iterator, the |
| 72 |
// iterator will stop after that iteration. |
| 73 |
func (it *CorpusIterator) All() iter.Seq2[*visionaipb.Corpus, error] { |
| 74 |
return iterator.RangeAdapter(it.Next) |
| 75 |
} |
| 76 |
|
| 77 |
// All returns an iterator. If an error is returned by the iterator, the |
| 78 |
// iterator will stop after that iteration. |
| 79 |
func (it *DataSchemaIterator) All() iter.Seq2[*visionaipb.DataSchema, error] { |
| 80 |
return iterator.RangeAdapter(it.Next) |
| 81 |
} |
| 82 |
|
| 83 |
// All returns an iterator. If an error is returned by the iterator, the |
| 84 |
// iterator will stop after that iteration. |
| 85 |
func (it *DraftIterator) All() iter.Seq2[*visionaipb.Draft, error] { |
| 86 |
return iterator.RangeAdapter(it.Next) |
| 87 |
} |
| 88 |
|
| 89 |
// All returns an iterator. If an error is returned by the iterator, the |
| 90 |
// iterator will stop after that iteration. |
| 91 |
func (it *EventIterator) All() iter.Seq2[*visionaipb.Event, error] { |
| 92 |
return iterator.RangeAdapter(it.Next) |
| 93 |
} |
| 94 |
|
| 95 |
// All returns an iterator. If an error is returned by the iterator, the |
| 96 |
// iterator will stop after that iteration. |
| 97 |
func (it *IndexEndpointIterator) All() iter.Seq2[*visionaipb.IndexEndpoint, error] { |
| 98 |
return iterator.RangeAdapter(it.Next) |
| 99 |
} |
| 100 |
|
| 101 |
// All returns an iterator. If an error is returned by the iterator, the |
| 102 |
// iterator will stop after that iteration. |
| 103 |
func (it *IndexIterator) All() iter.Seq2[*visionaipb.Index, error] { |
| 104 |
return iterator.RangeAdapter(it.Next) |
| 105 |
} |
| 106 |
|
| 107 |
// All returns an iterator. If an error is returned by the iterator, the |
| 108 |
// iterator will stop after that iteration. |
| 109 |
func (it *IndexedAssetIterator) All() iter.Seq2[*visionaipb.IndexedAsset, error] { |
| 110 |
return iterator.RangeAdapter(it.Next) |
| 111 |
} |
| 112 |
|
| 113 |
// All returns an iterator. If an error is returned by the iterator, the |
| 114 |
// iterator will stop after that iteration. |
| 115 |
func (it *InstanceIterator) All() iter.Seq2[*visionaipb.Instance, error] { |
| 116 |
return iterator.RangeAdapter(it.Next) |
| 117 |
} |
| 118 |
|
| 119 |
// All returns an iterator. If an error is returned by the iterator, the |
| 120 |
// iterator will stop after that iteration. |
| 121 |
func (it *OperationIterator) All() iter.Seq2[*longrunningpb.Operation, error] { |
| 122 |
return iterator.RangeAdapter(it.Next) |
| 123 |
} |
| 124 |
|
| 125 |
// All returns an iterator. If an error is returned by the iterator, the |
| 126 |
// iterator will stop after that iteration. |
| 127 |
func (it *OperatorIterator) All() iter.Seq2[*visionaipb.Operator, error] { |
| 128 |
return iterator.RangeAdapter(it.Next) |
| 129 |
} |
| 130 |
|
| 131 |
// All returns an iterator. If an error is returned by the iterator, the |
| 132 |
// iterator will stop after that iteration. |
| 133 |
func (it *ProcessIterator) All() iter.Seq2[*visionaipb.Process, error] { |
| 134 |
return iterator.RangeAdapter(it.Next) |
| 135 |
} |
| 136 |
|
| 137 |
// All returns an iterator. If an error is returned by the iterator, the |
| 138 |
// iterator will stop after that iteration. |
| 139 |
func (it *ProcessorIterator) All() iter.Seq2[*visionaipb.Processor, error] { |
| 140 |
return iterator.RangeAdapter(it.Next) |
| 141 |
} |
| 142 |
|
| 143 |
// All returns an iterator. If an error is returned by the iterator, the |
| 144 |
// iterator will stop after that iteration. |
| 145 |
func (it *SearchConfigIterator) All() iter.Seq2[*visionaipb.SearchConfig, error] { |
| 146 |
return iterator.RangeAdapter(it.Next) |
| 147 |
} |
| 148 |
|
| 149 |
// All returns an iterator. If an error is returned by the iterator, the |
| 150 |
// iterator will stop after that iteration. |
| 151 |
func (it *SearchHypernymIterator) All() iter.Seq2[*visionaipb.SearchHypernym, error] { |
| 152 |
return iterator.RangeAdapter(it.Next) |
| 153 |
} |
| 154 |
|
| 155 |
// All returns an iterator. If an error is returned by the iterator, the |
| 156 |
// iterator will stop after that iteration. |
| 157 |
func (it *SearchResultItemIterator) All() iter.Seq2[*visionaipb.SearchResultItem, error] { |
| 158 |
return iterator.RangeAdapter(it.Next) |
| 159 |
} |
| 160 |
|
| 161 |
// All returns an iterator. If an error is returned by the iterator, the |
| 162 |
// iterator will stop after that iteration. |
| 163 |
func (it *SeriesIterator) All() iter.Seq2[*visionaipb.Series, error] { |
| 164 |
return iterator.RangeAdapter(it.Next) |
| 165 |
} |
| 166 |
|
| 167 |
// All returns an iterator. If an error is returned by the iterator, the |
| 168 |
// iterator will stop after that iteration. |
| 169 |
func (it *StreamIterator) All() iter.Seq2[*visionaipb.Stream, error] { |
| 170 |
return iterator.RangeAdapter(it.Next) |
| 171 |
} |