| 1 |
// Copyright 2022 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 |
// http://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 aliasgen. DO NOT EDIT. |
| 16 |
|
| 17 |
// Package eventarc aliases all exported identifiers in package |
| 18 |
// "cloud.google.com/go/eventarc/apiv1/eventarcpb". |
| 19 |
// |
| 20 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb. |
| 21 |
// Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md |
| 22 |
// for more details. |
| 23 |
package eventarc |
| 24 |
|
| 25 |
import ( |
| 26 |
src "cloud.google.com/go/eventarc/apiv1/eventarcpb" |
| 27 |
grpc "google.golang.org/grpc" |
| 28 |
) |
| 29 |
|
| 30 |
// Deprecated: Please use consts in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 31 |
const ( |
| 32 |
Channel_ACTIVE = src.Channel_ACTIVE |
| 33 |
Channel_INACTIVE = src.Channel_INACTIVE |
| 34 |
Channel_PENDING = src.Channel_PENDING |
| 35 |
Channel_STATE_UNSPECIFIED = src.Channel_STATE_UNSPECIFIED |
| 36 |
) |
| 37 |
|
| 38 |
// Deprecated: Please use vars in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 39 |
var ( |
| 40 |
Channel_State_name = src.Channel_State_name |
| 41 |
Channel_State_value = src.Channel_State_value |
| 42 |
File_google_cloud_eventarc_v1_channel_connection_proto = src.File_google_cloud_eventarc_v1_channel_connection_proto |
| 43 |
File_google_cloud_eventarc_v1_channel_proto = src.File_google_cloud_eventarc_v1_channel_proto |
| 44 |
File_google_cloud_eventarc_v1_discovery_proto = src.File_google_cloud_eventarc_v1_discovery_proto |
| 45 |
File_google_cloud_eventarc_v1_eventarc_proto = src.File_google_cloud_eventarc_v1_eventarc_proto |
| 46 |
File_google_cloud_eventarc_v1_trigger_proto = src.File_google_cloud_eventarc_v1_trigger_proto |
| 47 |
) |
| 48 |
|
| 49 |
// A representation of the Channel resource. A Channel is a resource on which |
| 50 |
// event providers publish their events. The published events are delivered |
| 51 |
// through the transport associated with the channel. Note that a channel is |
| 52 |
// associated with exactly one event provider. |
| 53 |
// |
| 54 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 55 |
type Channel = src.Channel |
| 56 |
|
| 57 |
// A representation of the ChannelConnection resource. A ChannelConnection is |
| 58 |
// a resource which event providers create during the activation process to |
| 59 |
// establish a connection between the provider and the subscriber channel. |
| 60 |
// |
| 61 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 62 |
type ChannelConnection = src.ChannelConnection |
| 63 |
type Channel_PubsubTopic = src.Channel_PubsubTopic |
| 64 |
|
| 65 |
// State lists all the possible states of a Channel |
| 66 |
// |
| 67 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 68 |
type Channel_State = src.Channel_State |
| 69 |
|
| 70 |
// Represents a Cloud Run destination. |
| 71 |
// |
| 72 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 73 |
type CloudRun = src.CloudRun |
| 74 |
|
| 75 |
// The request message for the CreateChannelConnection method. |
| 76 |
// |
| 77 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 78 |
type CreateChannelConnectionRequest = src.CreateChannelConnectionRequest |
| 79 |
|
| 80 |
// The request message for the CreateChannel method. |
| 81 |
// |
| 82 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 83 |
type CreateChannelRequest = src.CreateChannelRequest |
| 84 |
|
| 85 |
// The request message for the CreateTrigger method. |
| 86 |
// |
| 87 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 88 |
type CreateTriggerRequest = src.CreateTriggerRequest |
| 89 |
|
| 90 |
// The request message for the DeleteChannelConnection method. |
| 91 |
// |
| 92 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 93 |
type DeleteChannelConnectionRequest = src.DeleteChannelConnectionRequest |
| 94 |
|
| 95 |
// The request message for the DeleteChannel method. |
| 96 |
// |
| 97 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 98 |
type DeleteChannelRequest = src.DeleteChannelRequest |
| 99 |
|
| 100 |
// The request message for the DeleteTrigger method. |
| 101 |
// |
| 102 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 103 |
type DeleteTriggerRequest = src.DeleteTriggerRequest |
| 104 |
|
| 105 |
// Represents a target of an invocation over HTTP. |
| 106 |
// |
| 107 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 108 |
type Destination = src.Destination |
| 109 |
type Destination_CloudFunction = src.Destination_CloudFunction |
| 110 |
type Destination_CloudRun = src.Destination_CloudRun |
| 111 |
type Destination_Gke = src.Destination_Gke |
| 112 |
|
| 113 |
// Filters events based on exact matches on the CloudEvents attributes. |
| 114 |
// |
| 115 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 116 |
type EventFilter = src.EventFilter |
| 117 |
|
| 118 |
// A representation of the event type resource. |
| 119 |
// |
| 120 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 121 |
type EventType = src.EventType |
| 122 |
|
| 123 |
// EventarcClient is the client API for Eventarc service. For semantics around |
| 124 |
// ctx use and closing/ending streaming RPCs, please refer to |
| 125 |
// https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 126 |
// |
| 127 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 128 |
type EventarcClient = src.EventarcClient |
| 129 |
|
| 130 |
// EventarcServer is the server API for Eventarc service. |
| 131 |
// |
| 132 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 133 |
type EventarcServer = src.EventarcServer |
| 134 |
|
| 135 |
// A representation of the FilteringAttribute resource. Filtering attributes |
| 136 |
// are per event type. |
| 137 |
// |
| 138 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 139 |
type FilteringAttribute = src.FilteringAttribute |
| 140 |
|
| 141 |
// Represents a GKE destination. |
| 142 |
// |
| 143 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 144 |
type GKE = src.GKE |
| 145 |
|
| 146 |
// The request message for the GetChannelConnection method. |
| 147 |
// |
| 148 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 149 |
type GetChannelConnectionRequest = src.GetChannelConnectionRequest |
| 150 |
|
| 151 |
// The request message for the GetChannel method. |
| 152 |
// |
| 153 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 154 |
type GetChannelRequest = src.GetChannelRequest |
| 155 |
|
| 156 |
// The request message for the GetProvider method. |
| 157 |
// |
| 158 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 159 |
type GetProviderRequest = src.GetProviderRequest |
| 160 |
|
| 161 |
// The request message for the GetTrigger method. |
| 162 |
// |
| 163 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 164 |
type GetTriggerRequest = src.GetTriggerRequest |
| 165 |
|
| 166 |
// The request message for the ListChannelConnections method. |
| 167 |
// |
| 168 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 169 |
type ListChannelConnectionsRequest = src.ListChannelConnectionsRequest |
| 170 |
|
| 171 |
// The response message for the `ListChannelConnections` method. |
| 172 |
// |
| 173 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 174 |
type ListChannelConnectionsResponse = src.ListChannelConnectionsResponse |
| 175 |
|
| 176 |
// The request message for the ListChannels method. |
| 177 |
// |
| 178 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 179 |
type ListChannelsRequest = src.ListChannelsRequest |
| 180 |
|
| 181 |
// The response message for the `ListChannels` method. |
| 182 |
// |
| 183 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 184 |
type ListChannelsResponse = src.ListChannelsResponse |
| 185 |
|
| 186 |
// The request message for the ListProviders method. |
| 187 |
// |
| 188 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 189 |
type ListProvidersRequest = src.ListProvidersRequest |
| 190 |
|
| 191 |
// The response message for the `ListProviders` method. |
| 192 |
// |
| 193 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 194 |
type ListProvidersResponse = src.ListProvidersResponse |
| 195 |
|
| 196 |
// The request message for the ListTriggers method. |
| 197 |
// |
| 198 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 199 |
type ListTriggersRequest = src.ListTriggersRequest |
| 200 |
|
| 201 |
// The response message for the `ListTriggers` method. |
| 202 |
// |
| 203 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 204 |
type ListTriggersResponse = src.ListTriggersResponse |
| 205 |
|
| 206 |
// Represents the metadata of the long-running operation. |
| 207 |
// |
| 208 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 209 |
type OperationMetadata = src.OperationMetadata |
| 210 |
|
| 211 |
// A representation of the Provider resource. |
| 212 |
// |
| 213 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 214 |
type Provider = src.Provider |
| 215 |
|
| 216 |
// Represents a Pub/Sub transport. |
| 217 |
// |
| 218 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 219 |
type Pubsub = src.Pubsub |
| 220 |
|
| 221 |
// Represents the transport intermediaries created for the trigger to deliver |
| 222 |
// events. |
| 223 |
// |
| 224 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 225 |
type Transport = src.Transport |
| 226 |
type Transport_Pubsub = src.Transport_Pubsub |
| 227 |
|
| 228 |
// A representation of the trigger resource. |
| 229 |
// |
| 230 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 231 |
type Trigger = src.Trigger |
| 232 |
|
| 233 |
// UnimplementedEventarcServer can be embedded to have forward compatible |
| 234 |
// implementations. |
| 235 |
// |
| 236 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 237 |
type UnimplementedEventarcServer = src.UnimplementedEventarcServer |
| 238 |
|
| 239 |
// The request message for the UpdateChannel method. |
| 240 |
// |
| 241 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 242 |
type UpdateChannelRequest = src.UpdateChannelRequest |
| 243 |
|
| 244 |
// The request message for the UpdateTrigger method. |
| 245 |
// |
| 246 |
// Deprecated: Please use types in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 247 |
type UpdateTriggerRequest = src.UpdateTriggerRequest |
| 248 |
|
| 249 |
// Deprecated: Please use funcs in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 250 |
func NewEventarcClient(cc grpc.ClientConnInterface) EventarcClient { return src.NewEventarcClient(cc) } |
| 251 |
|
| 252 |
// Deprecated: Please use funcs in: cloud.google.com/go/eventarc/apiv1/eventarcpb |
| 253 |
func RegisterEventarcServer(s *grpc.Server, srv EventarcServer) { src.RegisterEventarcServer(s, srv) } |