| 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 scheduler aliases all exported identifiers in package |
| 18 |
// "cloud.google.com/go/scheduler/apiv1/schedulerpb". |
| 19 |
// |
| 20 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb. |
| 21 |
// Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md |
| 22 |
// for more details. |
| 23 |
package scheduler |
| 24 |
|
| 25 |
import ( |
| 26 |
src "cloud.google.com/go/scheduler/apiv1/schedulerpb" |
| 27 |
grpc "google.golang.org/grpc" |
| 28 |
) |
| 29 |
|
| 30 |
// Deprecated: Please use consts in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 31 |
const ( |
| 32 |
HttpMethod_DELETE = src.HttpMethod_DELETE |
| 33 |
HttpMethod_GET = src.HttpMethod_GET |
| 34 |
HttpMethod_HEAD = src.HttpMethod_HEAD |
| 35 |
HttpMethod_HTTP_METHOD_UNSPECIFIED = src.HttpMethod_HTTP_METHOD_UNSPECIFIED |
| 36 |
HttpMethod_OPTIONS = src.HttpMethod_OPTIONS |
| 37 |
HttpMethod_PATCH = src.HttpMethod_PATCH |
| 38 |
HttpMethod_POST = src.HttpMethod_POST |
| 39 |
HttpMethod_PUT = src.HttpMethod_PUT |
| 40 |
Job_DISABLED = src.Job_DISABLED |
| 41 |
Job_ENABLED = src.Job_ENABLED |
| 42 |
Job_PAUSED = src.Job_PAUSED |
| 43 |
Job_STATE_UNSPECIFIED = src.Job_STATE_UNSPECIFIED |
| 44 |
Job_UPDATE_FAILED = src.Job_UPDATE_FAILED |
| 45 |
) |
| 46 |
|
| 47 |
// Deprecated: Please use vars in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 48 |
var ( |
| 49 |
File_google_cloud_scheduler_v1_cloudscheduler_proto = src.File_google_cloud_scheduler_v1_cloudscheduler_proto |
| 50 |
File_google_cloud_scheduler_v1_job_proto = src.File_google_cloud_scheduler_v1_job_proto |
| 51 |
File_google_cloud_scheduler_v1_target_proto = src.File_google_cloud_scheduler_v1_target_proto |
| 52 |
HttpMethod_name = src.HttpMethod_name |
| 53 |
HttpMethod_value = src.HttpMethod_value |
| 54 |
Job_State_name = src.Job_State_name |
| 55 |
Job_State_value = src.Job_State_value |
| 56 |
) |
| 57 |
|
| 58 |
// App Engine target. The job will be pushed to a job handler by means of an |
| 59 |
// HTTP request via an |
| 60 |
// [http_method][google.cloud.scheduler.v1.AppEngineHttpTarget.http_method] |
| 61 |
// such as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an |
| 62 |
// HTTP response code in the range [200 - 299]. Error 503 is considered an App |
| 63 |
// Engine system error instead of an application error. Requests returning |
| 64 |
// error 503 will be retried regardless of retry configuration and not counted |
| 65 |
// against retry counts. Any other response code, or a failure to receive a |
| 66 |
// response before the deadline, constitutes a failed attempt. |
| 67 |
// |
| 68 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 69 |
type AppEngineHttpTarget = src.AppEngineHttpTarget |
| 70 |
|
| 71 |
// App Engine Routing. For more information about services, versions, and |
| 72 |
// instances see [An Overview of App |
| 73 |
// Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine), |
| 74 |
// [Microservices Architecture on Google App |
| 75 |
// Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine), |
| 76 |
// [App Engine Standard request |
| 77 |
// routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed), |
| 78 |
// and [App Engine Flex request |
| 79 |
// routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). |
| 80 |
// |
| 81 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 82 |
type AppEngineRouting = src.AppEngineRouting |
| 83 |
|
| 84 |
// CloudSchedulerClient is the client API for CloudScheduler service. For |
| 85 |
// semantics around ctx use and closing/ending streaming RPCs, please refer to |
| 86 |
// https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 87 |
// |
| 88 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 89 |
type CloudSchedulerClient = src.CloudSchedulerClient |
| 90 |
|
| 91 |
// CloudSchedulerServer is the server API for CloudScheduler service. |
| 92 |
// |
| 93 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 94 |
type CloudSchedulerServer = src.CloudSchedulerServer |
| 95 |
|
| 96 |
// Request message for |
| 97 |
// [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob]. |
| 98 |
// |
| 99 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 100 |
type CreateJobRequest = src.CreateJobRequest |
| 101 |
|
| 102 |
// Request message for deleting a job using |
| 103 |
// [DeleteJob][google.cloud.scheduler.v1.CloudScheduler.DeleteJob]. |
| 104 |
// |
| 105 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 106 |
type DeleteJobRequest = src.DeleteJobRequest |
| 107 |
|
| 108 |
// Request message for |
| 109 |
// [GetJob][google.cloud.scheduler.v1.CloudScheduler.GetJob]. |
| 110 |
// |
| 111 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 112 |
type GetJobRequest = src.GetJobRequest |
| 113 |
|
| 114 |
// The HTTP method used to execute the job. |
| 115 |
// |
| 116 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 117 |
type HttpMethod = src.HttpMethod |
| 118 |
|
| 119 |
// Http target. The job will be pushed to the job handler by means of an HTTP |
| 120 |
// request via an |
| 121 |
// [http_method][google.cloud.scheduler.v1.HttpTarget.http_method] such as HTTP |
| 122 |
// POST, HTTP GET, etc. The job is acknowledged by means of an HTTP response |
| 123 |
// code in the range [200 - 299]. A failure to receive a response constitutes a |
| 124 |
// failed execution. For a redirected request, the response returned by the |
| 125 |
// redirected request is considered. |
| 126 |
// |
| 127 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 128 |
type HttpTarget = src.HttpTarget |
| 129 |
type HttpTarget_OauthToken = src.HttpTarget_OauthToken |
| 130 |
type HttpTarget_OidcToken = src.HttpTarget_OidcToken |
| 131 |
|
| 132 |
// Configuration for a job. The maximum allowed size for a job is 100KB. |
| 133 |
// |
| 134 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 135 |
type Job = src.Job |
| 136 |
type Job_AppEngineHttpTarget = src.Job_AppEngineHttpTarget |
| 137 |
type Job_HttpTarget = src.Job_HttpTarget |
| 138 |
type Job_PubsubTarget = src.Job_PubsubTarget |
| 139 |
|
| 140 |
// State of the job. |
| 141 |
// |
| 142 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 143 |
type Job_State = src.Job_State |
| 144 |
|
| 145 |
// Request message for listing jobs using |
| 146 |
// [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. |
| 147 |
// |
| 148 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 149 |
type ListJobsRequest = src.ListJobsRequest |
| 150 |
|
| 151 |
// Response message for listing jobs using |
| 152 |
// [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. |
| 153 |
// |
| 154 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 155 |
type ListJobsResponse = src.ListJobsResponse |
| 156 |
|
| 157 |
// Contains information needed for generating an [OAuth |
| 158 |
// token](https://developers.google.com/identity/protocols/OAuth2). This type |
| 159 |
// of authorization should generally only be used when calling Google APIs |
| 160 |
// hosted on *.googleapis.com. |
| 161 |
// |
| 162 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 163 |
type OAuthToken = src.OAuthToken |
| 164 |
|
| 165 |
// Contains information needed for generating an [OpenID Connect |
| 166 |
// token](https://developers.google.com/identity/protocols/OpenIDConnect). This |
| 167 |
// type of authorization can be used for many scenarios, including calling |
| 168 |
// Cloud Run, or endpoints where you intend to validate the token yourself. |
| 169 |
// |
| 170 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 171 |
type OidcToken = src.OidcToken |
| 172 |
|
| 173 |
// Request message for |
| 174 |
// [PauseJob][google.cloud.scheduler.v1.CloudScheduler.PauseJob]. |
| 175 |
// |
| 176 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 177 |
type PauseJobRequest = src.PauseJobRequest |
| 178 |
|
| 179 |
// Pub/Sub target. The job will be delivered by publishing a message to the |
| 180 |
// given Pub/Sub topic. |
| 181 |
// |
| 182 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 183 |
type PubsubTarget = src.PubsubTarget |
| 184 |
|
| 185 |
// Request message for |
| 186 |
// [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. |
| 187 |
// |
| 188 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 189 |
type ResumeJobRequest = src.ResumeJobRequest |
| 190 |
|
| 191 |
// Settings that determine the retry behavior. By default, if a job does not |
| 192 |
// complete successfully (meaning that an acknowledgement is not received from |
| 193 |
// the handler, then it will be retried with exponential backoff according to |
| 194 |
// the settings in [RetryConfig][google.cloud.scheduler.v1.RetryConfig]. |
| 195 |
// |
| 196 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 197 |
type RetryConfig = src.RetryConfig |
| 198 |
|
| 199 |
// Request message for forcing a job to run now using |
| 200 |
// [RunJob][google.cloud.scheduler.v1.CloudScheduler.RunJob]. |
| 201 |
// |
| 202 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 203 |
type RunJobRequest = src.RunJobRequest |
| 204 |
|
| 205 |
// UnimplementedCloudSchedulerServer can be embedded to have forward |
| 206 |
// compatible implementations. |
| 207 |
// |
| 208 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 209 |
type UnimplementedCloudSchedulerServer = src.UnimplementedCloudSchedulerServer |
| 210 |
|
| 211 |
// Request message for |
| 212 |
// [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. |
| 213 |
// |
| 214 |
// Deprecated: Please use types in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 215 |
type UpdateJobRequest = src.UpdateJobRequest |
| 216 |
|
| 217 |
// Deprecated: Please use funcs in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 218 |
func NewCloudSchedulerClient(cc grpc.ClientConnInterface) CloudSchedulerClient { |
| 219 |
return src.NewCloudSchedulerClient(cc) |
| 220 |
} |
| 221 |
|
| 222 |
// Deprecated: Please use funcs in: cloud.google.com/go/scheduler/apiv1/schedulerpb |
| 223 |
func RegisterCloudSchedulerServer(s *grpc.Server, srv CloudSchedulerServer) { |
| 224 |
src.RegisterCloudSchedulerServer(s, srv) |
| 225 |
} |