genproto: google.golang.org/genproto/googleapis/cloud/scheduler/v1 Index | Files

package scheduler

import "google.golang.org/genproto/googleapis/cloud/scheduler/v1"

Index

Package Files

cloudscheduler.pb.go job.pb.go target.pb.go

Variables

var (
    Job_State_name = map[int32]string{
        0:  "STATE_UNSPECIFIED",
        1:  "ENABLED",
        2:  "PAUSED",
        3:  "DISABLED",
        4:  "UPDATE_FAILED",
    }
    Job_State_value = map[string]int32{
        "STATE_UNSPECIFIED": 0,
        "ENABLED":           1,
        "PAUSED":            2,
        "DISABLED":          3,
        "UPDATE_FAILED":     4,
    }
)

Enum value maps for Job_State.

var (
    HttpMethod_name = map[int32]string{
        0:  "HTTP_METHOD_UNSPECIFIED",
        1:  "POST",
        2:  "GET",
        3:  "HEAD",
        4:  "PUT",
        5:  "DELETE",
        6:  "PATCH",
        7:  "OPTIONS",
    }
    HttpMethod_value = map[string]int32{
        "HTTP_METHOD_UNSPECIFIED": 0,
        "POST":                    1,
        "GET":                     2,
        "HEAD":                    3,
        "PUT":                     4,
        "DELETE":                  5,
        "PATCH":                   6,
        "OPTIONS":                 7,
    }
)

Enum value maps for HttpMethod.

var File_google_cloud_scheduler_v1_cloudscheduler_proto protoreflect.FileDescriptor
var File_google_cloud_scheduler_v1_job_proto protoreflect.FileDescriptor
var File_google_cloud_scheduler_v1_target_proto protoreflect.FileDescriptor

func RegisterCloudSchedulerServer Uses

func RegisterCloudSchedulerServer(s *grpc.Server, srv CloudSchedulerServer)

type AppEngineHttpTarget Uses

type AppEngineHttpTarget struct {

    // The HTTP method to use for the request. PATCH and OPTIONS are not
    // permitted.
    HttpMethod HttpMethod `protobuf:"varint,1,opt,name=http_method,json=httpMethod,proto3,enum=google.cloud.scheduler.v1.HttpMethod" json:"http_method,omitempty"`
    // App Engine Routing setting for the job.
    AppEngineRouting *AppEngineRouting `protobuf:"bytes,2,opt,name=app_engine_routing,json=appEngineRouting,proto3" json:"app_engine_routing,omitempty"`
    // The relative URI.
    //
    // The relative URL must begin with "/" and must be a valid HTTP relative URL.
    // It can contain a path, query string arguments, and `#` fragments.
    // If the relative URL is empty, then the root path "/" will be used.
    // No spaces are allowed, and the maximum length allowed is 2083 characters.
    RelativeUri string `protobuf:"bytes,3,opt,name=relative_uri,json=relativeUri,proto3" json:"relative_uri,omitempty"`
    // HTTP request headers.
    //
    // This map contains the header field names and values. Headers can be set
    // when the job is created.
    //
    // Cloud Scheduler sets some headers to default values:
    //
    // * `User-Agent`: By default, this header is
    //   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
    //   This header can be modified, but Cloud Scheduler will append
    //   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
    //   modified `User-Agent`.
    // * `X-CloudScheduler`: This header will be set to true.
    //
    // If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets
    // the following headers:
    //
    // * `Content-Type`: By default, the `Content-Type` header is set to
    //   `"application/octet-stream"`. The default can be overridden by explictly
    //   setting `Content-Type` to a particular media type when the job is
    //   created.
    //   For example, `Content-Type` can be set to `"application/json"`.
    // * `Content-Length`: This is computed by Cloud Scheduler. This value is
    //   output only. It cannot be changed.
    //
    // The headers below are output only. They cannot be set or overridden:
    //
    // * `X-Google-*`: For Google internal use only.
    // * `X-AppEngine-*`: For Google internal use only.
    //
    // In addition, some App Engine headers, which contain
    // job-specific information, are also be sent to the job handler.
    Headers map[string]string `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // Body.
    //
    // HTTP request body. A request body is allowed only if the HTTP method is
    // POST or PUT. It will result in invalid argument error to set a body on a
    // job with an incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod].
    Body []byte `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
    // contains filtered or unexported fields
}

App Engine target. The job will be pushed to a job handler by means of an HTTP request via an [http_method][google.cloud.scheduler.v1.AppEngineHttpTarget.http_method] such as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an HTTP response code in the range [200 - 299]. Error 503 is considered an App Engine system error instead of an application error. Requests returning error 503 will be retried regardless of retry configuration and not counted against retry counts. Any other response code, or a failure to receive a response before the deadline, constitutes a failed attempt.

func (*AppEngineHttpTarget) Descriptor Uses

func (*AppEngineHttpTarget) Descriptor() ([]byte, []int)

Deprecated: Use AppEngineHttpTarget.ProtoReflect.Descriptor instead.

func (*AppEngineHttpTarget) GetAppEngineRouting Uses

func (x *AppEngineHttpTarget) GetAppEngineRouting() *AppEngineRouting

func (*AppEngineHttpTarget) GetBody Uses

func (x *AppEngineHttpTarget) GetBody() []byte

func (*AppEngineHttpTarget) GetHeaders Uses

func (x *AppEngineHttpTarget) GetHeaders() map[string]string

func (*AppEngineHttpTarget) GetHttpMethod Uses

func (x *AppEngineHttpTarget) GetHttpMethod() HttpMethod

func (*AppEngineHttpTarget) GetRelativeUri Uses

func (x *AppEngineHttpTarget) GetRelativeUri() string

func (*AppEngineHttpTarget) ProtoMessage Uses

func (*AppEngineHttpTarget) ProtoMessage()

func (*AppEngineHttpTarget) ProtoReflect Uses

func (x *AppEngineHttpTarget) ProtoReflect() protoreflect.Message

func (*AppEngineHttpTarget) Reset Uses

func (x *AppEngineHttpTarget) Reset()

func (*AppEngineHttpTarget) String Uses

func (x *AppEngineHttpTarget) String() string

type AppEngineRouting Uses

type AppEngineRouting struct {

    // App service.
    //
    // By default, the job is sent to the service which is the default
    // service when the job is attempted.
    Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
    // App version.
    //
    // By default, the job is sent to the version which is the default
    // version when the job is attempted.
    Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
    // App instance.
    //
    // By default, the job is sent to an instance which is available when
    // the job is attempted.
    //
    // Requests can only be sent to a specific instance if
    // [manual scaling is used in App Engine
    // Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
    // App Engine Flex does not support instances. For more information, see
    // [App Engine Standard request
    // routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
    // and [App Engine Flex request
    // routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
    Instance string `protobuf:"bytes,3,opt,name=instance,proto3" json:"instance,omitempty"`
    // Output only. The host that the job is sent to.
    //
    // For more information about how App Engine requests are routed, see
    // [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
    //
    // The host is constructed as:
    //
    //
    // * `host = [application_domain_name]`</br>
    //   `| [service] + '.' + [application_domain_name]`</br>
    //   `| [version] + '.' + [application_domain_name]`</br>
    //   `| [version_dot_service]+ '.' + [application_domain_name]`</br>
    //   `| [instance] + '.' + [application_domain_name]`</br>
    //   `| [instance_dot_service] + '.' + [application_domain_name]`</br>
    //   `| [instance_dot_version] + '.' + [application_domain_name]`</br>
    //   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
    //
    // * `application_domain_name` = The domain name of the app, for
    //   example <app-id>.appspot.com, which is associated with the
    //   job's project ID.
    //
    // * `service =` [service][google.cloud.scheduler.v1.AppEngineRouting.service]
    //
    // * `version =` [version][google.cloud.scheduler.v1.AppEngineRouting.version]
    //
    // * `version_dot_service =`
    //   [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +`
    //   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
    //
    // * `instance =` [instance][google.cloud.scheduler.v1.AppEngineRouting.instance]
    //
    // * `instance_dot_service =`
    //   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
    //   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
    //
    // * `instance_dot_version =`
    //   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
    //   [version][google.cloud.scheduler.v1.AppEngineRouting.version]
    //
    // * `instance_dot_version_dot_service =`
    //   [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
    //   [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +`
    //   [service][google.cloud.scheduler.v1.AppEngineRouting.service]
    //
    //
    // If [service][google.cloud.scheduler.v1.AppEngineRouting.service] is empty, then the job will be sent
    // to the service which is the default service when the job is attempted.
    //
    // If [version][google.cloud.scheduler.v1.AppEngineRouting.version] is empty, then the job will be sent
    // to the version which is the default version when the job is attempted.
    //
    // If [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is empty, then the job will be
    // sent to an instance which is available when the job is attempted.
    //
    // If [service][google.cloud.scheduler.v1.AppEngineRouting.service],
    // [version][google.cloud.scheduler.v1.AppEngineRouting.version], or
    // [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is invalid, then the job will be sent
    // to the default version of the default service when the job is attempted.
    Host string `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"`
    // contains filtered or unexported fields
}

App Engine Routing.

For more information about services, versions, and instances see [An Overview of App Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine), [Microservices Architecture on Google App Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine), [App Engine Standard request routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed), and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).

func (*AppEngineRouting) Descriptor Uses

func (*AppEngineRouting) Descriptor() ([]byte, []int)

Deprecated: Use AppEngineRouting.ProtoReflect.Descriptor instead.

func (*AppEngineRouting) GetHost Uses

func (x *AppEngineRouting) GetHost() string

func (*AppEngineRouting) GetInstance Uses

func (x *AppEngineRouting) GetInstance() string

func (*AppEngineRouting) GetService Uses

func (x *AppEngineRouting) GetService() string

func (*AppEngineRouting) GetVersion Uses

func (x *AppEngineRouting) GetVersion() string

func (*AppEngineRouting) ProtoMessage Uses

func (*AppEngineRouting) ProtoMessage()

func (*AppEngineRouting) ProtoReflect Uses

func (x *AppEngineRouting) ProtoReflect() protoreflect.Message

func (*AppEngineRouting) Reset Uses

func (x *AppEngineRouting) Reset()

func (*AppEngineRouting) String Uses

func (x *AppEngineRouting) String() string

type CloudSchedulerClient Uses

type CloudSchedulerClient interface {
    // Lists jobs.
    ListJobs(ctx context.Context, in *ListJobsRequest, opts ...grpc.CallOption) (*ListJobsResponse, error)
    // Gets a job.
    GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*Job, error)
    // Creates a job.
    CreateJob(ctx context.Context, in *CreateJobRequest, opts ...grpc.CallOption) (*Job, error)
    // Updates a job.
    //
    // If successful, the updated [Job][google.cloud.scheduler.v1.Job] is returned. If the job does
    // not exist, `NOT_FOUND` is returned.
    //
    // If UpdateJob does not successfully return, it is possible for the
    // job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED] state. A job in this state may
    // not be executed. If this happens, retry the UpdateJob request
    // until a successful response is received.
    UpdateJob(ctx context.Context, in *UpdateJobRequest, opts ...grpc.CallOption) (*Job, error)
    // Deletes a job.
    DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*empty.Empty, error)
    // Pauses a job.
    //
    // If a job is paused then the system will stop executing the job
    // until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The
    // state of the job is stored in [state][google.cloud.scheduler.v1.Job.state]; if paused it
    // will be set to [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]
    // to be paused.
    PauseJob(ctx context.Context, in *PauseJobRequest, opts ...grpc.CallOption) (*Job, error)
    // Resume a job.
    //
    // This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The
    // state of a job is stored in [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it
    // will be set to [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in
    // [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed.
    ResumeJob(ctx context.Context, in *ResumeJobRequest, opts ...grpc.CallOption) (*Job, error)
    // Forces a job to run now.
    //
    // When this method is called, Cloud Scheduler will dispatch the job, even
    // if the job is already running.
    RunJob(ctx context.Context, in *RunJobRequest, opts ...grpc.CallOption) (*Job, error)
}

CloudSchedulerClient is the client API for CloudScheduler service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCloudSchedulerClient Uses

func NewCloudSchedulerClient(cc grpc.ClientConnInterface) CloudSchedulerClient

type CloudSchedulerServer Uses

type CloudSchedulerServer interface {
    // Lists jobs.
    ListJobs(context.Context, *ListJobsRequest) (*ListJobsResponse, error)
    // Gets a job.
    GetJob(context.Context, *GetJobRequest) (*Job, error)
    // Creates a job.
    CreateJob(context.Context, *CreateJobRequest) (*Job, error)
    // Updates a job.
    //
    // If successful, the updated [Job][google.cloud.scheduler.v1.Job] is returned. If the job does
    // not exist, `NOT_FOUND` is returned.
    //
    // If UpdateJob does not successfully return, it is possible for the
    // job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED] state. A job in this state may
    // not be executed. If this happens, retry the UpdateJob request
    // until a successful response is received.
    UpdateJob(context.Context, *UpdateJobRequest) (*Job, error)
    // Deletes a job.
    DeleteJob(context.Context, *DeleteJobRequest) (*empty.Empty, error)
    // Pauses a job.
    //
    // If a job is paused then the system will stop executing the job
    // until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The
    // state of the job is stored in [state][google.cloud.scheduler.v1.Job.state]; if paused it
    // will be set to [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]
    // to be paused.
    PauseJob(context.Context, *PauseJobRequest) (*Job, error)
    // Resume a job.
    //
    // This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The
    // state of a job is stored in [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it
    // will be set to [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in
    // [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed.
    ResumeJob(context.Context, *ResumeJobRequest) (*Job, error)
    // Forces a job to run now.
    //
    // When this method is called, Cloud Scheduler will dispatch the job, even
    // if the job is already running.
    RunJob(context.Context, *RunJobRequest) (*Job, error)
}

CloudSchedulerServer is the server API for CloudScheduler service.

type CreateJobRequest Uses

type CreateJobRequest struct {

    // Required. The location name. For example:
    // `projects/PROJECT_ID/locations/LOCATION_ID`.
    Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
    // Required. The job to add. The user can optionally specify a name for the
    // job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
    // existing job. If a name is not specified then the system will
    // generate a random unique name that will be returned
    // ([name][google.cloud.scheduler.v1.Job.name]) in the response.
    Job *Job `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"`
    // contains filtered or unexported fields
}

Request message for [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob].

func (*CreateJobRequest) Descriptor Uses

func (*CreateJobRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateJobRequest.ProtoReflect.Descriptor instead.

func (*CreateJobRequest) GetJob Uses

func (x *CreateJobRequest) GetJob() *Job

func (*CreateJobRequest) GetParent Uses

func (x *CreateJobRequest) GetParent() string

func (*CreateJobRequest) ProtoMessage Uses

func (*CreateJobRequest) ProtoMessage()

func (*CreateJobRequest) ProtoReflect Uses

func (x *CreateJobRequest) ProtoReflect() protoreflect.Message

func (*CreateJobRequest) Reset Uses

func (x *CreateJobRequest) Reset()

func (*CreateJobRequest) String Uses

func (x *CreateJobRequest) String() string

type DeleteJobRequest Uses

type DeleteJobRequest struct {

    // Required. The job name. For example:
    // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // contains filtered or unexported fields
}

Request message for deleting a job using [DeleteJob][google.cloud.scheduler.v1.CloudScheduler.DeleteJob].

func (*DeleteJobRequest) Descriptor Uses

func (*DeleteJobRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteJobRequest.ProtoReflect.Descriptor instead.

func (*DeleteJobRequest) GetName Uses

func (x *DeleteJobRequest) GetName() string

func (*DeleteJobRequest) ProtoMessage Uses

func (*DeleteJobRequest) ProtoMessage()

func (*DeleteJobRequest) ProtoReflect Uses

func (x *DeleteJobRequest) ProtoReflect() protoreflect.Message

func (*DeleteJobRequest) Reset Uses

func (x *DeleteJobRequest) Reset()

func (*DeleteJobRequest) String Uses

func (x *DeleteJobRequest) String() string

type GetJobRequest Uses

type GetJobRequest struct {

    // Required. The job name. For example:
    // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // contains filtered or unexported fields
}

Request message for [GetJob][google.cloud.scheduler.v1.CloudScheduler.GetJob].

func (*GetJobRequest) Descriptor Uses

func (*GetJobRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetJobRequest.ProtoReflect.Descriptor instead.

func (*GetJobRequest) GetName Uses

func (x *GetJobRequest) GetName() string

func (*GetJobRequest) ProtoMessage Uses

func (*GetJobRequest) ProtoMessage()

func (*GetJobRequest) ProtoReflect Uses

func (x *GetJobRequest) ProtoReflect() protoreflect.Message

func (*GetJobRequest) Reset Uses

func (x *GetJobRequest) Reset()

func (*GetJobRequest) String Uses

func (x *GetJobRequest) String() string

type HttpMethod Uses

type HttpMethod int32

The HTTP method used to execute the job.

const (
    // HTTP method unspecified. Defaults to POST.
    HttpMethod_HTTP_METHOD_UNSPECIFIED HttpMethod = 0
    // HTTP POST
    HttpMethod_POST HttpMethod = 1
    // HTTP GET
    HttpMethod_GET HttpMethod = 2
    // HTTP HEAD
    HttpMethod_HEAD HttpMethod = 3
    // HTTP PUT
    HttpMethod_PUT HttpMethod = 4
    // HTTP DELETE
    HttpMethod_DELETE HttpMethod = 5
    // HTTP PATCH
    HttpMethod_PATCH HttpMethod = 6
    // HTTP OPTIONS
    HttpMethod_OPTIONS HttpMethod = 7
)

func (HttpMethod) Descriptor Uses

func (HttpMethod) Descriptor() protoreflect.EnumDescriptor

func (HttpMethod) Enum Uses

func (x HttpMethod) Enum() *HttpMethod

func (HttpMethod) EnumDescriptor Uses

func (HttpMethod) EnumDescriptor() ([]byte, []int)

Deprecated: Use HttpMethod.Descriptor instead.

func (HttpMethod) Number Uses

func (x HttpMethod) Number() protoreflect.EnumNumber

func (HttpMethod) String Uses

func (x HttpMethod) String() string

func (HttpMethod) Type Uses

func (HttpMethod) Type() protoreflect.EnumType

type HttpTarget Uses

type HttpTarget struct {

    // Required. The full URI path that the request will be sent to. This string
    // must begin with either "http://" or "https://". Some examples of
    // valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are:
    // `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
    // encode some characters for safety and compatibility. The maximum allowed
    // URL length is 2083 characters after encoding.
    Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
    // Which HTTP method to use for the request.
    HttpMethod HttpMethod `protobuf:"varint,2,opt,name=http_method,json=httpMethod,proto3,enum=google.cloud.scheduler.v1.HttpMethod" json:"http_method,omitempty"`
    // The user can specify HTTP request headers to send with the job's
    // HTTP request. This map contains the header field names and
    // values. Repeated headers are not supported, but a header value can
    // contain commas. These headers represent a subset of the headers
    // that will accompany the job's HTTP request. Some HTTP request
    // headers will be ignored or replaced. A partial list of headers that
    // will be ignored or replaced is below:
    // - Host: This will be computed by Cloud Scheduler and derived from
    // [uri][google.cloud.scheduler.v1.HttpTarget.uri].
    // * `Content-Length`: This will be computed by Cloud Scheduler.
    // * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
    // * `X-Google-*`: Google internal use only.
    // * `X-AppEngine-*`: Google internal use only.
    //
    // The total size of headers must be less than 80KB.
    Headers map[string]string `protobuf:"bytes,3,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // HTTP request body. A request body is allowed only if the HTTP
    // method is POST, PUT, or PATCH. It is an error to set body on a job with an
    // incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod].
    Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
    // The mode for generating an `Authorization` header for HTTP requests.
    //
    // If specified, all `Authorization` headers in the [HttpTarget.headers][google.cloud.scheduler.v1.HttpTarget.headers]
    // field will be overridden.
    //
    // Types that are assignable to AuthorizationHeader:
    //	*HttpTarget_OauthToken
    //	*HttpTarget_OidcToken
    AuthorizationHeader isHttpTarget_AuthorizationHeader `protobuf_oneof:"authorization_header"`
    // contains filtered or unexported fields
}

Http target. The job will be pushed to the job handler by means of an HTTP request via an [http_method][google.cloud.scheduler.v1.HttpTarget.http_method] such as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an HTTP response code in the range [200 - 299]. A failure to receive a response constitutes a failed execution. For a redirected request, the response returned by the redirected request is considered.

func (*HttpTarget) Descriptor Uses

func (*HttpTarget) Descriptor() ([]byte, []int)

Deprecated: Use HttpTarget.ProtoReflect.Descriptor instead.

func (*HttpTarget) GetAuthorizationHeader Uses

func (m *HttpTarget) GetAuthorizationHeader() isHttpTarget_AuthorizationHeader

func (*HttpTarget) GetBody Uses

func (x *HttpTarget) GetBody() []byte

func (*HttpTarget) GetHeaders Uses

func (x *HttpTarget) GetHeaders() map[string]string

func (*HttpTarget) GetHttpMethod Uses

func (x *HttpTarget) GetHttpMethod() HttpMethod

func (*HttpTarget) GetOauthToken Uses

func (x *HttpTarget) GetOauthToken() *OAuthToken

func (*HttpTarget) GetOidcToken Uses

func (x *HttpTarget) GetOidcToken() *OidcToken

func (*HttpTarget) GetUri Uses

func (x *HttpTarget) GetUri() string

func (*HttpTarget) ProtoMessage Uses

func (*HttpTarget) ProtoMessage()

func (*HttpTarget) ProtoReflect Uses

func (x *HttpTarget) ProtoReflect() protoreflect.Message

func (*HttpTarget) Reset Uses

func (x *HttpTarget) Reset()

func (*HttpTarget) String Uses

func (x *HttpTarget) String() string

type HttpTarget_OauthToken Uses

type HttpTarget_OauthToken struct {
    // If specified, an
    // [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
    // will be generated and attached as an `Authorization` header in the HTTP
    // request.
    //
    // This type of authorization should generally only be used when calling
    // Google APIs hosted on *.googleapis.com.
    OauthToken *OAuthToken `protobuf:"bytes,5,opt,name=oauth_token,json=oauthToken,proto3,oneof"`
}

type HttpTarget_OidcToken Uses

type HttpTarget_OidcToken struct {
    // If specified, an
    // [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
    // token will be generated and attached as an `Authorization` header in the
    // HTTP request.
    //
    // This type of authorization can be used for many scenarios, including
    // calling Cloud Run, or endpoints where you intend to validate the token
    // yourself.
    OidcToken *OidcToken `protobuf:"bytes,6,opt,name=oidc_token,json=oidcToken,proto3,oneof"`
}

type Job Uses

type Job struct {

    // Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after
    // which it becomes output only.
    //
    // The job name. For example:
    // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    //
    // * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
    //    hyphens (-), colons (:), or periods (.).
    //    For more information, see
    //    [Identifying
    //    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
    // * `LOCATION_ID` is the canonical ID for the job's location.
    //    The list of available locations can be obtained by calling
    //    [ListLocations][google.cloud.location.Locations.ListLocations].
    //    For more information, see https://cloud.google.com/about/locations/.
    // * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
    //    hyphens (-), or underscores (_). The maximum length is 500 characters.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or
    // [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
    //
    // A human-readable description for the job. This string must not contain
    // more than 500 characters.
    Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
    // Required.
    //
    // Delivery settings containing destination and parameters.
    //
    // Types that are assignable to Target:
    //	*Job_PubsubTarget
    //	*Job_AppEngineHttpTarget
    //	*Job_HttpTarget
    Target isJob_Target `protobuf_oneof:"target"`
    // Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].
    //
    // Describes the schedule on which the job will be executed.
    //
    // The schedule can be either of the following types:
    //
    // * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
    // * English-like
    // [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
    //
    // As a general rule, execution `n + 1` of a job will not begin
    // until execution `n` has finished. Cloud Scheduler will never
    // allow two simultaneously outstanding executions. For example,
    // this implies that if the `n+1`th execution is scheduled to run at
    // 16:00 but the `n`th execution takes until 16:15, the `n+1`th
    // execution will not start until `16:15`.
    // A scheduled start time will be delayed if the previous
    // execution has not ended when its scheduled time occurs.
    //
    // If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails,
    // the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count]
    // times, with exponential backoff, until the next scheduled start
    // time.
    Schedule string `protobuf:"bytes,20,opt,name=schedule,proto3" json:"schedule,omitempty"`
    // Specifies the time zone to be used in interpreting
    // [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time
    // zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
    //
    // Note that some time zones include a provision for
    // daylight savings time. The rules for daylight saving time are
    // determined by the chosen tz. For UTC use the string "utc". If a
    // time zone is not specified, the default will be in UTC (also known
    // as GMT).
    TimeZone string `protobuf:"bytes,21,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
    // Output only. The creation time of the job.
    UserUpdateTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=user_update_time,json=userUpdateTime,proto3" json:"user_update_time,omitempty"`
    // Output only. State of the job.
    State Job_State `protobuf:"varint,10,opt,name=state,proto3,enum=google.cloud.scheduler.v1.Job_State" json:"state,omitempty"`
    // Output only. The response from the target for the last attempted execution.
    Status *status.Status `protobuf:"bytes,11,opt,name=status,proto3" json:"status,omitempty"`
    // Output only. The next time the job is scheduled. Note that this may be a
    // retry of a previously failed attempt or the next execution time
    // according to the schedule.
    ScheduleTime *timestamp.Timestamp `protobuf:"bytes,17,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"`
    // Output only. The time the last job attempt started.
    LastAttemptTime *timestamp.Timestamp `protobuf:"bytes,18,opt,name=last_attempt_time,json=lastAttemptTime,proto3" json:"last_attempt_time,omitempty"`
    // Settings that determine the retry behavior.
    RetryConfig *RetryConfig `protobuf:"bytes,19,opt,name=retry_config,json=retryConfig,proto3" json:"retry_config,omitempty"`
    // The deadline for job attempts. If the request handler does not respond by
    // this deadline then the request is cancelled and the attempt is marked as a
    // `DEADLINE_EXCEEDED` failure. The failed attempt can be viewed in
    // execution logs. Cloud Scheduler will retry the job according
    // to the [RetryConfig][google.cloud.scheduler.v1.RetryConfig].
    //
    // The allowed duration for this deadline is:
    // * For [HTTP targets][google.cloud.scheduler.v1.Job.http_target], between 15 seconds and 30 minutes.
    // * For [App Engine HTTP targets][google.cloud.scheduler.v1.Job.app_engine_http_target], between 15
    //   seconds and 24 hours.
    AttemptDeadline *duration.Duration `protobuf:"bytes,22,opt,name=attempt_deadline,json=attemptDeadline,proto3" json:"attempt_deadline,omitempty"`
    // contains filtered or unexported fields
}

Configuration for a job. The maximum allowed size for a job is 100KB.

func (*Job) Descriptor Uses

func (*Job) Descriptor() ([]byte, []int)

Deprecated: Use Job.ProtoReflect.Descriptor instead.

func (*Job) GetAppEngineHttpTarget Uses

func (x *Job) GetAppEngineHttpTarget() *AppEngineHttpTarget

func (*Job) GetAttemptDeadline Uses

func (x *Job) GetAttemptDeadline() *duration.Duration

func (*Job) GetDescription Uses

func (x *Job) GetDescription() string

func (*Job) GetHttpTarget Uses

func (x *Job) GetHttpTarget() *HttpTarget

func (*Job) GetLastAttemptTime Uses

func (x *Job) GetLastAttemptTime() *timestamp.Timestamp

func (*Job) GetName Uses

func (x *Job) GetName() string

func (*Job) GetPubsubTarget Uses

func (x *Job) GetPubsubTarget() *PubsubTarget

func (*Job) GetRetryConfig Uses

func (x *Job) GetRetryConfig() *RetryConfig

func (*Job) GetSchedule Uses

func (x *Job) GetSchedule() string

func (*Job) GetScheduleTime Uses

func (x *Job) GetScheduleTime() *timestamp.Timestamp

func (*Job) GetState Uses

func (x *Job) GetState() Job_State

func (*Job) GetStatus Uses

func (x *Job) GetStatus() *status.Status

func (*Job) GetTarget Uses

func (m *Job) GetTarget() isJob_Target

func (*Job) GetTimeZone Uses

func (x *Job) GetTimeZone() string

func (*Job) GetUserUpdateTime Uses

func (x *Job) GetUserUpdateTime() *timestamp.Timestamp

func (*Job) ProtoMessage Uses

func (*Job) ProtoMessage()

func (*Job) ProtoReflect Uses

func (x *Job) ProtoReflect() protoreflect.Message

func (*Job) Reset Uses

func (x *Job) Reset()

func (*Job) String Uses

func (x *Job) String() string

type Job_AppEngineHttpTarget Uses

type Job_AppEngineHttpTarget struct {
    // App Engine HTTP target.
    AppEngineHttpTarget *AppEngineHttpTarget `protobuf:"bytes,5,opt,name=app_engine_http_target,json=appEngineHttpTarget,proto3,oneof"`
}

type Job_HttpTarget Uses

type Job_HttpTarget struct {
    // HTTP target.
    HttpTarget *HttpTarget `protobuf:"bytes,6,opt,name=http_target,json=httpTarget,proto3,oneof"`
}

type Job_PubsubTarget Uses

type Job_PubsubTarget struct {
    // Pub/Sub target.
    PubsubTarget *PubsubTarget `protobuf:"bytes,4,opt,name=pubsub_target,json=pubsubTarget,proto3,oneof"`
}

type Job_State Uses

type Job_State int32

State of the job.

const (
    // Unspecified state.
    Job_STATE_UNSPECIFIED Job_State = 0
    // The job is executing normally.
    Job_ENABLED Job_State = 1
    // The job is paused by the user. It will not execute. A user can
    // intentionally pause the job using
    // [PauseJobRequest][google.cloud.scheduler.v1.PauseJobRequest].
    Job_PAUSED Job_State = 2
    // The job is disabled by the system due to error. The user
    // cannot directly set a job to be disabled.
    Job_DISABLED Job_State = 3
    // The job state resulting from a failed [CloudScheduler.UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]
    // operation. To recover a job from this state, retry
    // [CloudScheduler.UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob] until a successful response is received.
    Job_UPDATE_FAILED Job_State = 4
)

func (Job_State) Descriptor Uses

func (Job_State) Descriptor() protoreflect.EnumDescriptor

func (Job_State) Enum Uses

func (x Job_State) Enum() *Job_State

func (Job_State) EnumDescriptor Uses

func (Job_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use Job_State.Descriptor instead.

func (Job_State) Number Uses

func (x Job_State) Number() protoreflect.EnumNumber

func (Job_State) String Uses

func (x Job_State) String() string

func (Job_State) Type Uses

func (Job_State) Type() protoreflect.EnumType

type ListJobsRequest Uses

type ListJobsRequest struct {

    // Required. The location name. For example:
    // `projects/PROJECT_ID/locations/LOCATION_ID`.
    Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
    // Requested page size.
    //
    // The maximum page size is 500. If unspecified, the page size will
    // be the maximum. Fewer jobs than requested might be returned,
    // even if more jobs exist; use next_page_token to determine if more
    // jobs exist.
    PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
    // A token identifying a page of results the server will return. To
    // request the first page results, page_token must be empty. To
    // request the next page of results, page_token must be the value of
    // [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] returned from
    // the previous call to [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an error to
    // switch the value of [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or
    // [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while iterating through pages.
    PageToken string `protobuf:"bytes,6,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
    // contains filtered or unexported fields
}

Request message for listing jobs using [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs].

func (*ListJobsRequest) Descriptor Uses

func (*ListJobsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListJobsRequest.ProtoReflect.Descriptor instead.

func (*ListJobsRequest) GetPageSize Uses

func (x *ListJobsRequest) GetPageSize() int32

func (*ListJobsRequest) GetPageToken Uses

func (x *ListJobsRequest) GetPageToken() string

func (*ListJobsRequest) GetParent Uses

func (x *ListJobsRequest) GetParent() string

func (*ListJobsRequest) ProtoMessage Uses

func (*ListJobsRequest) ProtoMessage()

func (*ListJobsRequest) ProtoReflect Uses

func (x *ListJobsRequest) ProtoReflect() protoreflect.Message

func (*ListJobsRequest) Reset Uses

func (x *ListJobsRequest) Reset()

func (*ListJobsRequest) String Uses

func (x *ListJobsRequest) String() string

type ListJobsResponse Uses

type ListJobsResponse struct {

    // The list of jobs.
    Jobs []*Job `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty"`
    // A token to retrieve next page of results. Pass this value in the
    // [page_token][google.cloud.scheduler.v1.ListJobsRequest.page_token] field in the subsequent call to
    // [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs] to retrieve the next page of results.
    // If this is empty it indicates that there are no more results
    // through which to paginate.
    //
    // The page token is valid for only 2 hours.
    NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
    // contains filtered or unexported fields
}

Response message for listing jobs using [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs].

func (*ListJobsResponse) Descriptor Uses

func (*ListJobsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListJobsResponse.ProtoReflect.Descriptor instead.

func (*ListJobsResponse) GetJobs Uses

func (x *ListJobsResponse) GetJobs() []*Job

func (*ListJobsResponse) GetNextPageToken Uses

func (x *ListJobsResponse) GetNextPageToken() string

func (*ListJobsResponse) ProtoMessage Uses

func (*ListJobsResponse) ProtoMessage()

func (*ListJobsResponse) ProtoReflect Uses

func (x *ListJobsResponse) ProtoReflect() protoreflect.Message

func (*ListJobsResponse) Reset Uses

func (x *ListJobsResponse) Reset()

func (*ListJobsResponse) String Uses

func (x *ListJobsResponse) String() string

type OAuthToken Uses

type OAuthToken struct {

    // [Service account email](https://cloud.google.com/iam/docs/service-accounts)
    // to be used for generating OAuth token.
    // The service account must be within the same project as the job. The caller
    // must have iam.serviceAccounts.actAs permission for the service account.
    ServiceAccountEmail string `protobuf:"bytes,1,opt,name=service_account_email,json=serviceAccountEmail,proto3" json:"service_account_email,omitempty"`
    // OAuth scope to be used for generating OAuth access token.
    // If not specified, "https://www.googleapis.com/auth/cloud-platform"
    // will be used.
    Scope string `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"`
    // contains filtered or unexported fields
}

Contains information needed for generating an [OAuth token](https://developers.google.com/identity/protocols/OAuth2). This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.

func (*OAuthToken) Descriptor Uses

func (*OAuthToken) Descriptor() ([]byte, []int)

Deprecated: Use OAuthToken.ProtoReflect.Descriptor instead.

func (*OAuthToken) GetScope Uses

func (x *OAuthToken) GetScope() string

func (*OAuthToken) GetServiceAccountEmail Uses

func (x *OAuthToken) GetServiceAccountEmail() string

func (*OAuthToken) ProtoMessage Uses

func (*OAuthToken) ProtoMessage()

func (*OAuthToken) ProtoReflect Uses

func (x *OAuthToken) ProtoReflect() protoreflect.Message

func (*OAuthToken) Reset Uses

func (x *OAuthToken) Reset()

func (*OAuthToken) String Uses

func (x *OAuthToken) String() string

type OidcToken Uses

type OidcToken struct {

    // [Service account email](https://cloud.google.com/iam/docs/service-accounts)
    // to be used for generating OIDC token.
    // The service account must be within the same project as the job. The caller
    // must have iam.serviceAccounts.actAs permission for the service account.
    ServiceAccountEmail string `protobuf:"bytes,1,opt,name=service_account_email,json=serviceAccountEmail,proto3" json:"service_account_email,omitempty"`
    // Audience to be used when generating OIDC token. If not specified, the URI
    // specified in target will be used.
    Audience string `protobuf:"bytes,2,opt,name=audience,proto3" json:"audience,omitempty"`
    // contains filtered or unexported fields
}

Contains information needed for generating an [OpenID Connect token](https://developers.google.com/identity/protocols/OpenIDConnect). This type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself.

func (*OidcToken) Descriptor Uses

func (*OidcToken) Descriptor() ([]byte, []int)

Deprecated: Use OidcToken.ProtoReflect.Descriptor instead.

func (*OidcToken) GetAudience Uses

func (x *OidcToken) GetAudience() string

func (*OidcToken) GetServiceAccountEmail Uses

func (x *OidcToken) GetServiceAccountEmail() string

func (*OidcToken) ProtoMessage Uses

func (*OidcToken) ProtoMessage()

func (*OidcToken) ProtoReflect Uses

func (x *OidcToken) ProtoReflect() protoreflect.Message

func (*OidcToken) Reset Uses

func (x *OidcToken) Reset()

func (*OidcToken) String Uses

func (x *OidcToken) String() string

type PauseJobRequest Uses

type PauseJobRequest struct {

    // Required. The job name. For example:
    // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // contains filtered or unexported fields
}

Request message for [PauseJob][google.cloud.scheduler.v1.CloudScheduler.PauseJob].

func (*PauseJobRequest) Descriptor Uses

func (*PauseJobRequest) Descriptor() ([]byte, []int)

Deprecated: Use PauseJobRequest.ProtoReflect.Descriptor instead.

func (*PauseJobRequest) GetName Uses

func (x *PauseJobRequest) GetName() string

func (*PauseJobRequest) ProtoMessage Uses

func (*PauseJobRequest) ProtoMessage()

func (*PauseJobRequest) ProtoReflect Uses

func (x *PauseJobRequest) ProtoReflect() protoreflect.Message

func (*PauseJobRequest) Reset Uses

func (x *PauseJobRequest) Reset()

func (*PauseJobRequest) String Uses

func (x *PauseJobRequest) String() string

type PubsubTarget Uses

type PubsubTarget struct {

    // Required. The name of the Cloud Pub/Sub topic to which messages will
    // be published when a job is delivered. The topic name must be in the
    // same format as required by PubSub's
    // [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),
    // for example `projects/PROJECT_ID/topics/TOPIC_ID`.
    //
    // The topic must be in the same project as the Cloud Scheduler job.
    TopicName string `protobuf:"bytes,1,opt,name=topic_name,json=topicName,proto3" json:"topic_name,omitempty"`
    // The message payload for PubsubMessage.
    //
    // Pubsub message must contain either non-empty data, or at least one
    // attribute.
    Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
    // Attributes for PubsubMessage.
    //
    // Pubsub message must contain either non-empty data, or at least one
    // attribute.
    Attributes map[string]string `protobuf:"bytes,4,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // contains filtered or unexported fields
}

Pub/Sub target. The job will be delivered by publishing a message to the given Pub/Sub topic.

func (*PubsubTarget) Descriptor Uses

func (*PubsubTarget) Descriptor() ([]byte, []int)

Deprecated: Use PubsubTarget.ProtoReflect.Descriptor instead.

func (*PubsubTarget) GetAttributes Uses

func (x *PubsubTarget) GetAttributes() map[string]string

func (*PubsubTarget) GetData Uses

func (x *PubsubTarget) GetData() []byte

func (*PubsubTarget) GetTopicName Uses

func (x *PubsubTarget) GetTopicName() string

func (*PubsubTarget) ProtoMessage Uses

func (*PubsubTarget) ProtoMessage()

func (*PubsubTarget) ProtoReflect Uses

func (x *PubsubTarget) ProtoReflect() protoreflect.Message

func (*PubsubTarget) Reset Uses

func (x *PubsubTarget) Reset()

func (*PubsubTarget) String Uses

func (x *PubsubTarget) String() string

type ResumeJobRequest Uses

type ResumeJobRequest struct {

    // Required. The job name. For example:
    // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // contains filtered or unexported fields
}

Request message for [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob].

func (*ResumeJobRequest) Descriptor Uses

func (*ResumeJobRequest) Descriptor() ([]byte, []int)

Deprecated: Use ResumeJobRequest.ProtoReflect.Descriptor instead.

func (*ResumeJobRequest) GetName Uses

func (x *ResumeJobRequest) GetName() string

func (*ResumeJobRequest) ProtoMessage Uses

func (*ResumeJobRequest) ProtoMessage()

func (*ResumeJobRequest) ProtoReflect Uses

func (x *ResumeJobRequest) ProtoReflect() protoreflect.Message

func (*ResumeJobRequest) Reset Uses

func (x *ResumeJobRequest) Reset()

func (*ResumeJobRequest) String Uses

func (x *ResumeJobRequest) String() string

type RetryConfig Uses

type RetryConfig struct {

    // The number of attempts that the system will make to run a job using the
    // exponential backoff procedure described by
    // [max_doublings][google.cloud.scheduler.v1.RetryConfig.max_doublings].
    //
    // The default value of retry_count is zero.
    //
    // If retry_count is zero, a job attempt will *not* be retried if
    // it fails. Instead the Cloud Scheduler system will wait for the
    // next scheduled execution time.
    //
    // If retry_count is set to a non-zero number then Cloud Scheduler
    // will retry failed attempts, using exponential backoff,
    // retry_count times, or until the next scheduled execution time,
    // whichever comes first.
    //
    // Values greater than 5 and negative values are not allowed.
    RetryCount int32 `protobuf:"varint,1,opt,name=retry_count,json=retryCount,proto3" json:"retry_count,omitempty"`
    // The time limit for retrying a failed job, measured from time when an
    // execution was first attempted. If specified with
    // [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job will be retried until both
    // limits are reached.
    //
    // The default value for max_retry_duration is zero, which means retry
    // duration is unlimited.
    MaxRetryDuration *duration.Duration `protobuf:"bytes,2,opt,name=max_retry_duration,json=maxRetryDuration,proto3" json:"max_retry_duration,omitempty"`
    // The minimum amount of time to wait before retrying a job after
    // it fails.
    //
    // The default value of this field is 5 seconds.
    MinBackoffDuration *duration.Duration `protobuf:"bytes,3,opt,name=min_backoff_duration,json=minBackoffDuration,proto3" json:"min_backoff_duration,omitempty"`
    // The maximum amount of time to wait before retrying a job after
    // it fails.
    //
    // The default value of this field is 1 hour.
    MaxBackoffDuration *duration.Duration `protobuf:"bytes,4,opt,name=max_backoff_duration,json=maxBackoffDuration,proto3" json:"max_backoff_duration,omitempty"`
    // The time between retries will double `max_doublings` times.
    //
    // A job's retry interval starts at
    // [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration], then doubles
    // `max_doublings` times, then increases linearly, and finally
    // retries retries at intervals of
    // [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] up to
    // [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times.
    //
    // For example, if [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration] is
    // 10s, [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] is 300s, and
    // `max_doublings` is 3, then the a job will first be retried in 10s. The
    // retry interval will double three times, and then increase linearly by
    // 2^3 * 10s.  Finally, the job will retry at intervals of
    // [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] until the job has
    // been attempted [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times. Thus, the
    // requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, ....
    //
    // The default value of this field is 5.
    MaxDoublings int32 `protobuf:"varint,5,opt,name=max_doublings,json=maxDoublings,proto3" json:"max_doublings,omitempty"`
    // contains filtered or unexported fields
}

Settings that determine the retry behavior.

By default, if a job does not complete successfully (meaning that an acknowledgement is not received from the handler, then it will be retried with exponential backoff according to the settings in [RetryConfig][google.cloud.scheduler.v1.RetryConfig].

func (*RetryConfig) Descriptor Uses

func (*RetryConfig) Descriptor() ([]byte, []int)

Deprecated: Use RetryConfig.ProtoReflect.Descriptor instead.

func (*RetryConfig) GetMaxBackoffDuration Uses

func (x *RetryConfig) GetMaxBackoffDuration() *duration.Duration

func (*RetryConfig) GetMaxDoublings Uses

func (x *RetryConfig) GetMaxDoublings() int32

func (*RetryConfig) GetMaxRetryDuration Uses

func (x *RetryConfig) GetMaxRetryDuration() *duration.Duration

func (*RetryConfig) GetMinBackoffDuration Uses

func (x *RetryConfig) GetMinBackoffDuration() *duration.Duration

func (*RetryConfig) GetRetryCount Uses

func (x *RetryConfig) GetRetryCount() int32

func (*RetryConfig) ProtoMessage Uses

func (*RetryConfig) ProtoMessage()

func (*RetryConfig) ProtoReflect Uses

func (x *RetryConfig) ProtoReflect() protoreflect.Message

func (*RetryConfig) Reset Uses

func (x *RetryConfig) Reset()

func (*RetryConfig) String Uses

func (x *RetryConfig) String() string

type RunJobRequest Uses

type RunJobRequest struct {

    // Required. The job name. For example:
    // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // contains filtered or unexported fields
}

Request message for forcing a job to run now using [RunJob][google.cloud.scheduler.v1.CloudScheduler.RunJob].

func (*RunJobRequest) Descriptor Uses

func (*RunJobRequest) Descriptor() ([]byte, []int)

Deprecated: Use RunJobRequest.ProtoReflect.Descriptor instead.

func (*RunJobRequest) GetName Uses

func (x *RunJobRequest) GetName() string

func (*RunJobRequest) ProtoMessage Uses

func (*RunJobRequest) ProtoMessage()

func (*RunJobRequest) ProtoReflect Uses

func (x *RunJobRequest) ProtoReflect() protoreflect.Message

func (*RunJobRequest) Reset Uses

func (x *RunJobRequest) Reset()

func (*RunJobRequest) String Uses

func (x *RunJobRequest) String() string

type UnimplementedCloudSchedulerServer Uses

type UnimplementedCloudSchedulerServer struct {
}

UnimplementedCloudSchedulerServer can be embedded to have forward compatible implementations.

func (*UnimplementedCloudSchedulerServer) CreateJob Uses

func (*UnimplementedCloudSchedulerServer) CreateJob(context.Context, *CreateJobRequest) (*Job, error)

func (*UnimplementedCloudSchedulerServer) DeleteJob Uses

func (*UnimplementedCloudSchedulerServer) DeleteJob(context.Context, *DeleteJobRequest) (*empty.Empty, error)

func (*UnimplementedCloudSchedulerServer) GetJob Uses

func (*UnimplementedCloudSchedulerServer) GetJob(context.Context, *GetJobRequest) (*Job, error)

func (*UnimplementedCloudSchedulerServer) ListJobs Uses

func (*UnimplementedCloudSchedulerServer) ListJobs(context.Context, *ListJobsRequest) (*ListJobsResponse, error)

func (*UnimplementedCloudSchedulerServer) PauseJob Uses

func (*UnimplementedCloudSchedulerServer) PauseJob(context.Context, *PauseJobRequest) (*Job, error)

func (*UnimplementedCloudSchedulerServer) ResumeJob Uses

func (*UnimplementedCloudSchedulerServer) ResumeJob(context.Context, *ResumeJobRequest) (*Job, error)

func (*UnimplementedCloudSchedulerServer) RunJob Uses

func (*UnimplementedCloudSchedulerServer) RunJob(context.Context, *RunJobRequest) (*Job, error)

func (*UnimplementedCloudSchedulerServer) UpdateJob Uses

func (*UnimplementedCloudSchedulerServer) UpdateJob(context.Context, *UpdateJobRequest) (*Job, error)

type UpdateJobRequest Uses

type UpdateJobRequest struct {

    // Required. The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
    //
    // Output only fields cannot be modified using UpdateJob.
    // Any value specified for an output only field will be ignored.
    Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"`
    // A  mask used to specify which fields of the job are being updated.
    UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
    // contains filtered or unexported fields
}

Request message for [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].

func (*UpdateJobRequest) Descriptor Uses

func (*UpdateJobRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateJobRequest.ProtoReflect.Descriptor instead.

func (*UpdateJobRequest) GetJob Uses

func (x *UpdateJobRequest) GetJob() *Job

func (*UpdateJobRequest) GetUpdateMask Uses

func (x *UpdateJobRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateJobRequest) ProtoMessage Uses

func (*UpdateJobRequest) ProtoMessage()

func (*UpdateJobRequest) ProtoReflect Uses

func (x *UpdateJobRequest) ProtoReflect() protoreflect.Message

func (*UpdateJobRequest) Reset Uses

func (x *UpdateJobRequest) Reset()

func (*UpdateJobRequest) String Uses

func (x *UpdateJobRequest) String() string

Package scheduler imports 15 packages (graph) and is imported by 7 packages. Updated 2020-08-13. Refresh now. Tools for package owners.