Bumping k8s dependencies to 1.13
This commit is contained in:
918
vendor/google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1/cloudscheduler.pb.go
generated
vendored
Normal file
918
vendor/google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1/cloudscheduler.pb.go
generated
vendored
Normal file
@@ -0,0 +1,918 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/scheduler/v1beta1/cloudscheduler.proto
|
||||
|
||||
package scheduler
|
||||
|
||||
import (
|
||||
context "context"
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
empty "github.com/golang/protobuf/ptypes/empty"
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
field_mask "google.golang.org/genproto/protobuf/field_mask"
|
||||
grpc "google.golang.org/grpc"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Request message for listing jobs using [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs].
|
||||
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.v1beta1.ListJobsResponse.next_page_token] returned from
|
||||
// the previous call to [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs]. It is an error to
|
||||
// switch the value of [filter][google.cloud.scheduler.v1beta1.ListJobsRequest.filter] or
|
||||
// [order_by][google.cloud.scheduler.v1beta1.ListJobsRequest.order_by] while iterating through pages.
|
||||
PageToken string `protobuf:"bytes,6,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListJobsRequest) Reset() { *m = ListJobsRequest{} }
|
||||
func (m *ListJobsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListJobsRequest) ProtoMessage() {}
|
||||
func (*ListJobsRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ab8778b9dae54836, []int{0}
|
||||
}
|
||||
|
||||
func (m *ListJobsRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListJobsRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListJobsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListJobsRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ListJobsRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListJobsRequest.Merge(m, src)
|
||||
}
|
||||
func (m *ListJobsRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_ListJobsRequest.Size(m)
|
||||
}
|
||||
func (m *ListJobsRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListJobsRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListJobsRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *ListJobsRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ListJobsRequest) GetPageSize() int32 {
|
||||
if m != nil {
|
||||
return m.PageSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ListJobsRequest) GetPageToken() string {
|
||||
if m != nil {
|
||||
return m.PageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Response message for listing jobs using [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs].
|
||||
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.v1beta1.ListJobsRequest.page_token] field in the subsequent call to
|
||||
// [ListJobs][google.cloud.scheduler.v1beta1.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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListJobsResponse) Reset() { *m = ListJobsResponse{} }
|
||||
func (m *ListJobsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListJobsResponse) ProtoMessage() {}
|
||||
func (*ListJobsResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ab8778b9dae54836, []int{1}
|
||||
}
|
||||
|
||||
func (m *ListJobsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListJobsResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListJobsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListJobsResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ListJobsResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListJobsResponse.Merge(m, src)
|
||||
}
|
||||
func (m *ListJobsResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_ListJobsResponse.Size(m)
|
||||
}
|
||||
func (m *ListJobsResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListJobsResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListJobsResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *ListJobsResponse) GetJobs() []*Job {
|
||||
if m != nil {
|
||||
return m.Jobs
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ListJobsResponse) GetNextPageToken() string {
|
||||
if m != nil {
|
||||
return m.NextPageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Request message for [GetJob][google.cloud.scheduler.v1beta1.CloudScheduler.GetJob].
|
||||
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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetJobRequest) Reset() { *m = GetJobRequest{} }
|
||||
func (m *GetJobRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetJobRequest) ProtoMessage() {}
|
||||
func (*GetJobRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ab8778b9dae54836, []int{2}
|
||||
}
|
||||
|
||||
func (m *GetJobRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetJobRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetJobRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetJobRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetJobRequest.Merge(m, src)
|
||||
}
|
||||
func (m *GetJobRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetJobRequest.Size(m)
|
||||
}
|
||||
func (m *GetJobRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetJobRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetJobRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetJobRequest) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Request message for [CreateJob][google.cloud.scheduler.v1beta1.CloudScheduler.CreateJob].
|
||||
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.v1beta1.Job.name]. [name][google.cloud.scheduler.v1beta1.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.v1beta1.Job.name]) in the response.
|
||||
Job *Job `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CreateJobRequest) Reset() { *m = CreateJobRequest{} }
|
||||
func (m *CreateJobRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*CreateJobRequest) ProtoMessage() {}
|
||||
func (*CreateJobRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ab8778b9dae54836, []int{3}
|
||||
}
|
||||
|
||||
func (m *CreateJobRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CreateJobRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CreateJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CreateJobRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *CreateJobRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CreateJobRequest.Merge(m, src)
|
||||
}
|
||||
func (m *CreateJobRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_CreateJobRequest.Size(m)
|
||||
}
|
||||
func (m *CreateJobRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CreateJobRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CreateJobRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *CreateJobRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CreateJobRequest) GetJob() *Job {
|
||||
if m != nil {
|
||||
return m.Job
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Request message for [UpdateJob][google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob].
|
||||
type UpdateJobRequest struct {
|
||||
// Required.
|
||||
//
|
||||
// The new job properties. [name][google.cloud.scheduler.v1beta1.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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *UpdateJobRequest) Reset() { *m = UpdateJobRequest{} }
|
||||
func (m *UpdateJobRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*UpdateJobRequest) ProtoMessage() {}
|
||||
func (*UpdateJobRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ab8778b9dae54836, []int{4}
|
||||
}
|
||||
|
||||
func (m *UpdateJobRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_UpdateJobRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *UpdateJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_UpdateJobRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *UpdateJobRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_UpdateJobRequest.Merge(m, src)
|
||||
}
|
||||
func (m *UpdateJobRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_UpdateJobRequest.Size(m)
|
||||
}
|
||||
func (m *UpdateJobRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_UpdateJobRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_UpdateJobRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *UpdateJobRequest) GetJob() *Job {
|
||||
if m != nil {
|
||||
return m.Job
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *UpdateJobRequest) GetUpdateMask() *field_mask.FieldMask {
|
||||
if m != nil {
|
||||
return m.UpdateMask
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Request message for deleting a job using
|
||||
// [DeleteJob][google.cloud.scheduler.v1beta1.CloudScheduler.DeleteJob].
|
||||
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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *DeleteJobRequest) Reset() { *m = DeleteJobRequest{} }
|
||||
func (m *DeleteJobRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*DeleteJobRequest) ProtoMessage() {}
|
||||
func (*DeleteJobRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ab8778b9dae54836, []int{5}
|
||||
}
|
||||
|
||||
func (m *DeleteJobRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_DeleteJobRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *DeleteJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_DeleteJobRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *DeleteJobRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DeleteJobRequest.Merge(m, src)
|
||||
}
|
||||
func (m *DeleteJobRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_DeleteJobRequest.Size(m)
|
||||
}
|
||||
func (m *DeleteJobRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_DeleteJobRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_DeleteJobRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *DeleteJobRequest) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Request message for [PauseJob][google.cloud.scheduler.v1beta1.CloudScheduler.PauseJob].
|
||||
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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PauseJobRequest) Reset() { *m = PauseJobRequest{} }
|
||||
func (m *PauseJobRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*PauseJobRequest) ProtoMessage() {}
|
||||
func (*PauseJobRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ab8778b9dae54836, []int{6}
|
||||
}
|
||||
|
||||
func (m *PauseJobRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PauseJobRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PauseJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PauseJobRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *PauseJobRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PauseJobRequest.Merge(m, src)
|
||||
}
|
||||
func (m *PauseJobRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_PauseJobRequest.Size(m)
|
||||
}
|
||||
func (m *PauseJobRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PauseJobRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PauseJobRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *PauseJobRequest) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Request message for [ResumeJob][google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob].
|
||||
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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ResumeJobRequest) Reset() { *m = ResumeJobRequest{} }
|
||||
func (m *ResumeJobRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ResumeJobRequest) ProtoMessage() {}
|
||||
func (*ResumeJobRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ab8778b9dae54836, []int{7}
|
||||
}
|
||||
|
||||
func (m *ResumeJobRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ResumeJobRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ResumeJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ResumeJobRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ResumeJobRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ResumeJobRequest.Merge(m, src)
|
||||
}
|
||||
func (m *ResumeJobRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_ResumeJobRequest.Size(m)
|
||||
}
|
||||
func (m *ResumeJobRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ResumeJobRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ResumeJobRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *ResumeJobRequest) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Request message for forcing a job to run now using
|
||||
// [RunJob][google.cloud.scheduler.v1beta1.CloudScheduler.RunJob].
|
||||
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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *RunJobRequest) Reset() { *m = RunJobRequest{} }
|
||||
func (m *RunJobRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*RunJobRequest) ProtoMessage() {}
|
||||
func (*RunJobRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ab8778b9dae54836, []int{8}
|
||||
}
|
||||
|
||||
func (m *RunJobRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_RunJobRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *RunJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_RunJobRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *RunJobRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_RunJobRequest.Merge(m, src)
|
||||
}
|
||||
func (m *RunJobRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_RunJobRequest.Size(m)
|
||||
}
|
||||
func (m *RunJobRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_RunJobRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_RunJobRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *RunJobRequest) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*ListJobsRequest)(nil), "google.cloud.scheduler.v1beta1.ListJobsRequest")
|
||||
proto.RegisterType((*ListJobsResponse)(nil), "google.cloud.scheduler.v1beta1.ListJobsResponse")
|
||||
proto.RegisterType((*GetJobRequest)(nil), "google.cloud.scheduler.v1beta1.GetJobRequest")
|
||||
proto.RegisterType((*CreateJobRequest)(nil), "google.cloud.scheduler.v1beta1.CreateJobRequest")
|
||||
proto.RegisterType((*UpdateJobRequest)(nil), "google.cloud.scheduler.v1beta1.UpdateJobRequest")
|
||||
proto.RegisterType((*DeleteJobRequest)(nil), "google.cloud.scheduler.v1beta1.DeleteJobRequest")
|
||||
proto.RegisterType((*PauseJobRequest)(nil), "google.cloud.scheduler.v1beta1.PauseJobRequest")
|
||||
proto.RegisterType((*ResumeJobRequest)(nil), "google.cloud.scheduler.v1beta1.ResumeJobRequest")
|
||||
proto.RegisterType((*RunJobRequest)(nil), "google.cloud.scheduler.v1beta1.RunJobRequest")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/scheduler/v1beta1/cloudscheduler.proto", fileDescriptor_ab8778b9dae54836)
|
||||
}
|
||||
|
||||
var fileDescriptor_ab8778b9dae54836 = []byte{
|
||||
// 703 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0x5b, 0x6b, 0xd4, 0x40,
|
||||
0x14, 0x66, 0x7a, 0x59, 0xba, 0xa7, 0xb4, 0x5d, 0xe6, 0xa1, 0x2c, 0x5b, 0x95, 0x25, 0xc5, 0xb2,
|
||||
0x2c, 0x34, 0xe3, 0xf6, 0xe2, 0x65, 0xeb, 0x05, 0x5a, 0xb5, 0x50, 0x14, 0x96, 0x54, 0x5f, 0x7c,
|
||||
0x29, 0x93, 0xdd, 0x69, 0xcc, 0x36, 0x9b, 0x89, 0x99, 0x44, 0xb4, 0x52, 0x04, 0x1f, 0xc4, 0x07,
|
||||
0xdf, 0xfa, 0xe6, 0x83, 0x88, 0xfa, 0x8f, 0xfc, 0x0b, 0xfe, 0x10, 0x99, 0xc9, 0xa5, 0xdd, 0xd8,
|
||||
0x36, 0xc9, 0x5b, 0xe6, 0x5c, 0xe6, 0xfb, 0xe6, 0x9c, 0xf3, 0x1d, 0x02, 0xeb, 0x16, 0xe7, 0x96,
|
||||
0xc3, 0x48, 0xdf, 0xe1, 0xe1, 0x80, 0x88, 0xfe, 0x6b, 0x36, 0x08, 0x1d, 0xe6, 0x93, 0xb7, 0x1d,
|
||||
0x93, 0x05, 0xb4, 0x13, 0xd9, 0x53, 0xb3, 0xee, 0xf9, 0x3c, 0xe0, 0xf8, 0x46, 0x94, 0xa4, 0x2b,
|
||||
0xa7, 0x7e, 0xe6, 0x8d, 0x93, 0x1a, 0xd7, 0xe2, 0x4b, 0xa9, 0x67, 0x13, 0xea, 0xba, 0x3c, 0xa0,
|
||||
0x81, 0xcd, 0x5d, 0x11, 0x65, 0x37, 0x5a, 0x39, 0x90, 0x43, 0x6e, 0xc6, 0x91, 0x4b, 0x71, 0xa4,
|
||||
0x3a, 0x99, 0xe1, 0x21, 0x61, 0x23, 0x2f, 0x78, 0x1f, 0x3b, 0x9b, 0x59, 0xe7, 0xa1, 0xcd, 0x9c,
|
||||
0xc1, 0xc1, 0x88, 0x8a, 0xa3, 0x28, 0x42, 0x63, 0xb0, 0xf0, 0xcc, 0x16, 0xc1, 0x1e, 0x37, 0x85,
|
||||
0xc1, 0xde, 0x84, 0x4c, 0x04, 0x78, 0x11, 0x2a, 0x1e, 0xf5, 0x99, 0x1b, 0xd4, 0x51, 0x13, 0xb5,
|
||||
0xaa, 0x46, 0x7c, 0xc2, 0x4b, 0x50, 0xf5, 0xa8, 0xc5, 0x0e, 0x84, 0x7d, 0xcc, 0xea, 0xd3, 0x4d,
|
||||
0xd4, 0x9a, 0x36, 0x66, 0xa4, 0x61, 0xdf, 0x3e, 0x66, 0xf8, 0x3a, 0x80, 0x72, 0x06, 0xfc, 0x88,
|
||||
0xb9, 0xf5, 0x8a, 0x4a, 0x54, 0xe1, 0x2f, 0xa4, 0x41, 0x13, 0x50, 0x3b, 0x83, 0x11, 0x1e, 0x77,
|
||||
0x05, 0xc3, 0x77, 0x60, 0x6a, 0xc8, 0x4d, 0x51, 0x47, 0xcd, 0xc9, 0xd6, 0xec, 0xda, 0xb2, 0x7e,
|
||||
0x75, 0xc1, 0xf4, 0x3d, 0x6e, 0x1a, 0x2a, 0x01, 0xaf, 0xc0, 0x82, 0xcb, 0xde, 0x05, 0x07, 0xe7,
|
||||
0x00, 0x27, 0x14, 0xe0, 0x9c, 0x34, 0xf7, 0x52, 0xd0, 0x65, 0x98, 0xdb, 0x65, 0x12, 0x33, 0x79,
|
||||
0x19, 0x86, 0x29, 0x97, 0x8e, 0x58, 0xfc, 0x2e, 0xf5, 0xad, 0x51, 0xa8, 0xed, 0xf8, 0x8c, 0x06,
|
||||
0xec, 0x5c, 0xdc, 0x65, 0x15, 0xd8, 0x84, 0xc9, 0x21, 0x37, 0x15, 0x58, 0x41, 0xc2, 0x32, 0x5e,
|
||||
0xfb, 0x8c, 0xa0, 0xf6, 0xd2, 0x1b, 0x8c, 0x63, 0xc4, 0x77, 0xa1, 0x72, 0x77, 0xe1, 0x2d, 0x98,
|
||||
0x0d, 0xd5, 0x55, 0xaa, 0x89, 0x31, 0x95, 0x46, 0x92, 0x9e, 0xf4, 0x59, 0x7f, 0x2a, 0xfb, 0xfc,
|
||||
0x9c, 0x8a, 0x23, 0x03, 0xa2, 0x70, 0xf9, 0xad, 0xad, 0x40, 0xed, 0x31, 0x73, 0xd8, 0x18, 0x8f,
|
||||
0x8b, 0x6a, 0x72, 0x13, 0x16, 0x7a, 0x34, 0x14, 0x79, 0x61, 0x2b, 0x50, 0x33, 0x98, 0x08, 0x47,
|
||||
0x79, 0x71, 0xcb, 0x30, 0x67, 0x84, 0xee, 0xd5, 0x41, 0x6b, 0x5f, 0x00, 0xe6, 0x77, 0xe4, 0xeb,
|
||||
0xf7, 0x93, 0xc7, 0xe3, 0xdf, 0x08, 0x66, 0x92, 0xa9, 0xc1, 0x24, 0xaf, 0x44, 0x99, 0x31, 0x6e,
|
||||
0xdc, 0x2a, 0x9e, 0x10, 0x0d, 0xa4, 0xb6, 0xf9, 0xe9, 0xcf, 0xdf, 0xd3, 0x09, 0x82, 0x57, 0x53,
|
||||
0x99, 0x7d, 0x88, 0x1a, 0xff, 0xc0, 0xf3, 0xf9, 0x90, 0xf5, 0x03, 0x41, 0xda, 0xc4, 0xe1, 0xfd,
|
||||
0x48, 0xa9, 0xa4, 0x7d, 0x42, 0xd4, 0x38, 0x9e, 0x22, 0xa8, 0x44, 0x73, 0x86, 0x57, 0xf3, 0x30,
|
||||
0xc7, 0xe6, 0xb1, 0x51, 0xa4, 0xed, 0x17, 0xb1, 0x92, 0x05, 0xbb, 0x84, 0x93, 0xa2, 0x44, 0xda,
|
||||
0x27, 0xf8, 0x3b, 0x82, 0x6a, 0x3a, 0xd8, 0x38, 0xb7, 0x18, 0x59, 0x0d, 0x14, 0xe3, 0xd6, 0x55,
|
||||
0xdc, 0x36, 0xb4, 0x72, 0x15, 0xeb, 0xaa, 0x49, 0xfe, 0x89, 0xa0, 0x9a, 0xaa, 0x22, 0x9f, 0x60,
|
||||
0x56, 0x40, 0xc5, 0x08, 0x3e, 0x54, 0x04, 0xef, 0xae, 0x75, 0xce, 0x08, 0xca, 0xd5, 0x59, 0xa0,
|
||||
0x80, 0x11, 0xc9, 0xaf, 0x08, 0xaa, 0xa9, 0x64, 0xf2, 0x49, 0x66, 0xd5, 0xd5, 0x58, 0xfc, 0x4f,
|
||||
0x99, 0x4f, 0xe4, 0x7a, 0x4e, 0x9a, 0xda, 0x2e, 0xd9, 0xd4, 0x1f, 0x08, 0x66, 0x12, 0x65, 0xe6,
|
||||
0x2b, 0x22, 0xa3, 0xe1, 0x52, 0x15, 0xd3, 0xd6, 0x4b, 0x31, 0xeb, 0x7a, 0x12, 0xab, 0x8b, 0xda,
|
||||
0xf8, 0x17, 0x82, 0x6a, 0xba, 0x15, 0xf2, 0x2b, 0x96, 0x5d, 0x20, 0xc5, 0x48, 0x3e, 0x52, 0x24,
|
||||
0xef, 0x69, 0x1b, 0xe5, 0x48, 0xfa, 0x0a, 0x4c, 0xb2, 0xfc, 0x86, 0xa0, 0x12, 0xed, 0xa4, 0x7c,
|
||||
0xcd, 0x8e, 0xed, 0xae, 0x62, 0xfc, 0xee, 0x2b, 0x7e, 0xb7, 0xb5, 0x4e, 0x49, 0x7e, 0xa1, 0xdb,
|
||||
0x45, 0xed, 0xed, 0x8f, 0xa0, 0xf5, 0xf9, 0x28, 0x07, 0x67, 0x7b, 0x3e, 0x5d, 0x94, 0x3d, 0x39,
|
||||
0x5b, 0x3d, 0xf4, 0x6a, 0x37, 0xce, 0xb0, 0xb8, 0x43, 0x5d, 0x4b, 0xe7, 0xbe, 0x45, 0x2c, 0xe6,
|
||||
0xaa, 0xc9, 0x23, 0x91, 0x8b, 0x7a, 0xb6, 0xb8, 0xec, 0x9f, 0x62, 0x2b, 0xb5, 0x98, 0x15, 0x95,
|
||||
0xb3, 0xfe, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xf6, 0xcb, 0x14, 0x68, 0xf9, 0x08, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc.ClientConn
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion4
|
||||
|
||||
// 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.
|
||||
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.v1beta1.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.v1beta1.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.v1beta1.CloudScheduler.ResumeJob]. The
|
||||
// state of the job is stored in [state][google.cloud.scheduler.v1beta1.Job.state]; if paused it
|
||||
// will be set to [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1beta1.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.v1beta1.Job.State.PAUSED]. The
|
||||
// state of a job is stored in [Job.state][google.cloud.scheduler.v1beta1.Job.state]; after calling this method it
|
||||
// will be set to [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED]. A job must be in
|
||||
// [Job.State.PAUSED][google.cloud.scheduler.v1beta1.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)
|
||||
}
|
||||
|
||||
type cloudSchedulerClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewCloudSchedulerClient(cc *grpc.ClientConn) CloudSchedulerClient {
|
||||
return &cloudSchedulerClient{cc}
|
||||
}
|
||||
|
||||
func (c *cloudSchedulerClient) ListJobs(ctx context.Context, in *ListJobsRequest, opts ...grpc.CallOption) (*ListJobsResponse, error) {
|
||||
out := new(ListJobsResponse)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.scheduler.v1beta1.CloudScheduler/ListJobs", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *cloudSchedulerClient) GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*Job, error) {
|
||||
out := new(Job)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.scheduler.v1beta1.CloudScheduler/GetJob", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *cloudSchedulerClient) CreateJob(ctx context.Context, in *CreateJobRequest, opts ...grpc.CallOption) (*Job, error) {
|
||||
out := new(Job)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.scheduler.v1beta1.CloudScheduler/CreateJob", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *cloudSchedulerClient) UpdateJob(ctx context.Context, in *UpdateJobRequest, opts ...grpc.CallOption) (*Job, error) {
|
||||
out := new(Job)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.scheduler.v1beta1.CloudScheduler/UpdateJob", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *cloudSchedulerClient) DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
|
||||
out := new(empty.Empty)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.scheduler.v1beta1.CloudScheduler/DeleteJob", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *cloudSchedulerClient) PauseJob(ctx context.Context, in *PauseJobRequest, opts ...grpc.CallOption) (*Job, error) {
|
||||
out := new(Job)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.scheduler.v1beta1.CloudScheduler/PauseJob", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *cloudSchedulerClient) ResumeJob(ctx context.Context, in *ResumeJobRequest, opts ...grpc.CallOption) (*Job, error) {
|
||||
out := new(Job)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.scheduler.v1beta1.CloudScheduler/ResumeJob", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *cloudSchedulerClient) RunJob(ctx context.Context, in *RunJobRequest, opts ...grpc.CallOption) (*Job, error) {
|
||||
out := new(Job)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.scheduler.v1beta1.CloudScheduler/RunJob", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// CloudSchedulerServer is the server API for CloudScheduler service.
|
||||
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.v1beta1.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.v1beta1.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.v1beta1.CloudScheduler.ResumeJob]. The
|
||||
// state of the job is stored in [state][google.cloud.scheduler.v1beta1.Job.state]; if paused it
|
||||
// will be set to [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1beta1.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.v1beta1.Job.State.PAUSED]. The
|
||||
// state of a job is stored in [Job.state][google.cloud.scheduler.v1beta1.Job.state]; after calling this method it
|
||||
// will be set to [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED]. A job must be in
|
||||
// [Job.State.PAUSED][google.cloud.scheduler.v1beta1.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)
|
||||
}
|
||||
|
||||
func RegisterCloudSchedulerServer(s *grpc.Server, srv CloudSchedulerServer) {
|
||||
s.RegisterService(&_CloudScheduler_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _CloudScheduler_ListJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListJobsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(CloudSchedulerServer).ListJobs(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.scheduler.v1beta1.CloudScheduler/ListJobs",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(CloudSchedulerServer).ListJobs(ctx, req.(*ListJobsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _CloudScheduler_GetJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetJobRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(CloudSchedulerServer).GetJob(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.scheduler.v1beta1.CloudScheduler/GetJob",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(CloudSchedulerServer).GetJob(ctx, req.(*GetJobRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _CloudScheduler_CreateJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateJobRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(CloudSchedulerServer).CreateJob(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.scheduler.v1beta1.CloudScheduler/CreateJob",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(CloudSchedulerServer).CreateJob(ctx, req.(*CreateJobRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _CloudScheduler_UpdateJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateJobRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(CloudSchedulerServer).UpdateJob(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.scheduler.v1beta1.CloudScheduler/UpdateJob",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(CloudSchedulerServer).UpdateJob(ctx, req.(*UpdateJobRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _CloudScheduler_DeleteJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteJobRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(CloudSchedulerServer).DeleteJob(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.scheduler.v1beta1.CloudScheduler/DeleteJob",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(CloudSchedulerServer).DeleteJob(ctx, req.(*DeleteJobRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _CloudScheduler_PauseJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(PauseJobRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(CloudSchedulerServer).PauseJob(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.scheduler.v1beta1.CloudScheduler/PauseJob",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(CloudSchedulerServer).PauseJob(ctx, req.(*PauseJobRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _CloudScheduler_ResumeJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ResumeJobRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(CloudSchedulerServer).ResumeJob(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.scheduler.v1beta1.CloudScheduler/ResumeJob",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(CloudSchedulerServer).ResumeJob(ctx, req.(*ResumeJobRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _CloudScheduler_RunJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(RunJobRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(CloudSchedulerServer).RunJob(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.scheduler.v1beta1.CloudScheduler/RunJob",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(CloudSchedulerServer).RunJob(ctx, req.(*RunJobRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _CloudScheduler_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.cloud.scheduler.v1beta1.CloudScheduler",
|
||||
HandlerType: (*CloudSchedulerServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "ListJobs",
|
||||
Handler: _CloudScheduler_ListJobs_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetJob",
|
||||
Handler: _CloudScheduler_GetJob_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "CreateJob",
|
||||
Handler: _CloudScheduler_CreateJob_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateJob",
|
||||
Handler: _CloudScheduler_UpdateJob_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeleteJob",
|
||||
Handler: _CloudScheduler_DeleteJob_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "PauseJob",
|
||||
Handler: _CloudScheduler_PauseJob_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ResumeJob",
|
||||
Handler: _CloudScheduler_ResumeJob_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "RunJob",
|
||||
Handler: _CloudScheduler_RunJob_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/cloud/scheduler/v1beta1/cloudscheduler.proto",
|
||||
}
|
||||
573
vendor/google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1/job.pb.go
generated
vendored
Normal file
573
vendor/google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1/job.pb.go
generated
vendored
Normal file
@@ -0,0 +1,573 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/scheduler/v1beta1/job.proto
|
||||
|
||||
package scheduler
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
duration "github.com/golang/protobuf/ptypes/duration"
|
||||
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
status "google.golang.org/genproto/googleapis/rpc/status"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// State of the job.
|
||||
type Job_State int32
|
||||
|
||||
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.v1beta1.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.v1beta1.CloudScheduler.UpdateJob]
|
||||
// operation. To recover a job from this state, retry
|
||||
// [CloudScheduler.UpdateJob][google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob] until a successful response is received.
|
||||
Job_UPDATE_FAILED Job_State = 4
|
||||
)
|
||||
|
||||
var Job_State_name = map[int32]string{
|
||||
0: "STATE_UNSPECIFIED",
|
||||
1: "ENABLED",
|
||||
2: "PAUSED",
|
||||
3: "DISABLED",
|
||||
4: "UPDATE_FAILED",
|
||||
}
|
||||
|
||||
var Job_State_value = map[string]int32{
|
||||
"STATE_UNSPECIFIED": 0,
|
||||
"ENABLED": 1,
|
||||
"PAUSED": 2,
|
||||
"DISABLED": 3,
|
||||
"UPDATE_FAILED": 4,
|
||||
}
|
||||
|
||||
func (x Job_State) String() string {
|
||||
return proto.EnumName(Job_State_name, int32(x))
|
||||
}
|
||||
|
||||
func (Job_State) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_0cfee8289e3d589c, []int{0, 0}
|
||||
}
|
||||
|
||||
// Configuration for a job.
|
||||
// The maximum allowed size for a job is 100KB.
|
||||
type Job struct {
|
||||
// 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"`
|
||||
// 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 valid to be assigned to Target:
|
||||
// *Job_PubsubTarget
|
||||
// *Job_AppEngineHttpTarget
|
||||
// *Job_HttpTarget
|
||||
Target isJob_Target `protobuf_oneof:"target"`
|
||||
// Required.
|
||||
//
|
||||
// Describes the schedule on which the job will be executed.
|
||||
//
|
||||
// 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.v1beta1.RetryConfig.retry_count] > 0 and a job attempt fails,
|
||||
// the job will be tried a total of [retry_count][google.cloud.scheduler.v1beta1.RetryConfig.retry_count]
|
||||
// times, with exponential backoff, until the next scheduled start
|
||||
// time.
|
||||
//
|
||||
// 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)
|
||||
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.v1beta1.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.v1beta1.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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Job) Reset() { *m = Job{} }
|
||||
func (m *Job) String() string { return proto.CompactTextString(m) }
|
||||
func (*Job) ProtoMessage() {}
|
||||
func (*Job) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_0cfee8289e3d589c, []int{0}
|
||||
}
|
||||
|
||||
func (m *Job) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Job.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Job) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Job.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Job) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Job.Merge(m, src)
|
||||
}
|
||||
func (m *Job) XXX_Size() int {
|
||||
return xxx_messageInfo_Job.Size(m)
|
||||
}
|
||||
func (m *Job) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Job.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Job proto.InternalMessageInfo
|
||||
|
||||
func (m *Job) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Job) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type isJob_Target interface {
|
||||
isJob_Target()
|
||||
}
|
||||
|
||||
type Job_PubsubTarget struct {
|
||||
PubsubTarget *PubsubTarget `protobuf:"bytes,4,opt,name=pubsub_target,json=pubsubTarget,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Job_AppEngineHttpTarget struct {
|
||||
AppEngineHttpTarget *AppEngineHttpTarget `protobuf:"bytes,5,opt,name=app_engine_http_target,json=appEngineHttpTarget,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Job_HttpTarget struct {
|
||||
HttpTarget *HttpTarget `protobuf:"bytes,6,opt,name=http_target,json=httpTarget,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*Job_PubsubTarget) isJob_Target() {}
|
||||
|
||||
func (*Job_AppEngineHttpTarget) isJob_Target() {}
|
||||
|
||||
func (*Job_HttpTarget) isJob_Target() {}
|
||||
|
||||
func (m *Job) GetTarget() isJob_Target {
|
||||
if m != nil {
|
||||
return m.Target
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Job) GetPubsubTarget() *PubsubTarget {
|
||||
if x, ok := m.GetTarget().(*Job_PubsubTarget); ok {
|
||||
return x.PubsubTarget
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Job) GetAppEngineHttpTarget() *AppEngineHttpTarget {
|
||||
if x, ok := m.GetTarget().(*Job_AppEngineHttpTarget); ok {
|
||||
return x.AppEngineHttpTarget
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Job) GetHttpTarget() *HttpTarget {
|
||||
if x, ok := m.GetTarget().(*Job_HttpTarget); ok {
|
||||
return x.HttpTarget
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Job) GetSchedule() string {
|
||||
if m != nil {
|
||||
return m.Schedule
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Job) GetTimeZone() string {
|
||||
if m != nil {
|
||||
return m.TimeZone
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Job) GetUserUpdateTime() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.UserUpdateTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Job) GetState() Job_State {
|
||||
if m != nil {
|
||||
return m.State
|
||||
}
|
||||
return Job_STATE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *Job) GetStatus() *status.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Job) GetScheduleTime() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.ScheduleTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Job) GetLastAttemptTime() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.LastAttemptTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Job) GetRetryConfig() *RetryConfig {
|
||||
if m != nil {
|
||||
return m.RetryConfig
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*Job) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _Job_OneofMarshaler, _Job_OneofUnmarshaler, _Job_OneofSizer, []interface{}{
|
||||
(*Job_PubsubTarget)(nil),
|
||||
(*Job_AppEngineHttpTarget)(nil),
|
||||
(*Job_HttpTarget)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _Job_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*Job)
|
||||
// target
|
||||
switch x := m.Target.(type) {
|
||||
case *Job_PubsubTarget:
|
||||
b.EncodeVarint(4<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.PubsubTarget); err != nil {
|
||||
return err
|
||||
}
|
||||
case *Job_AppEngineHttpTarget:
|
||||
b.EncodeVarint(5<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.AppEngineHttpTarget); err != nil {
|
||||
return err
|
||||
}
|
||||
case *Job_HttpTarget:
|
||||
b.EncodeVarint(6<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.HttpTarget); err != nil {
|
||||
return err
|
||||
}
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("Job.Target has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _Job_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*Job)
|
||||
switch tag {
|
||||
case 4: // target.pubsub_target
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(PubsubTarget)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Target = &Job_PubsubTarget{msg}
|
||||
return true, err
|
||||
case 5: // target.app_engine_http_target
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(AppEngineHttpTarget)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Target = &Job_AppEngineHttpTarget{msg}
|
||||
return true, err
|
||||
case 6: // target.http_target
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(HttpTarget)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Target = &Job_HttpTarget{msg}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _Job_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*Job)
|
||||
// target
|
||||
switch x := m.Target.(type) {
|
||||
case *Job_PubsubTarget:
|
||||
s := proto.Size(x.PubsubTarget)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Job_AppEngineHttpTarget:
|
||||
s := proto.Size(x.AppEngineHttpTarget)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Job_HttpTarget:
|
||||
s := proto.Size(x.HttpTarget)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// 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.v1beta1.RetryConfig].
|
||||
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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.RetryConfig.max_backoff_duration] up to
|
||||
// [retry_count][google.cloud.scheduler.v1beta1.RetryConfig.retry_count] times.
|
||||
//
|
||||
// For example, if [min_backoff_duration][google.cloud.scheduler.v1beta1.RetryConfig.min_backoff_duration] is
|
||||
// 10s, [max_backoff_duration][google.cloud.scheduler.v1beta1.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.v1beta1.RetryConfig.max_backoff_duration] until the job has
|
||||
// been attempted [retry_count][google.cloud.scheduler.v1beta1.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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *RetryConfig) Reset() { *m = RetryConfig{} }
|
||||
func (m *RetryConfig) String() string { return proto.CompactTextString(m) }
|
||||
func (*RetryConfig) ProtoMessage() {}
|
||||
func (*RetryConfig) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_0cfee8289e3d589c, []int{1}
|
||||
}
|
||||
|
||||
func (m *RetryConfig) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_RetryConfig.Unmarshal(m, b)
|
||||
}
|
||||
func (m *RetryConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_RetryConfig.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *RetryConfig) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_RetryConfig.Merge(m, src)
|
||||
}
|
||||
func (m *RetryConfig) XXX_Size() int {
|
||||
return xxx_messageInfo_RetryConfig.Size(m)
|
||||
}
|
||||
func (m *RetryConfig) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_RetryConfig.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_RetryConfig proto.InternalMessageInfo
|
||||
|
||||
func (m *RetryConfig) GetRetryCount() int32 {
|
||||
if m != nil {
|
||||
return m.RetryCount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *RetryConfig) GetMaxRetryDuration() *duration.Duration {
|
||||
if m != nil {
|
||||
return m.MaxRetryDuration
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *RetryConfig) GetMinBackoffDuration() *duration.Duration {
|
||||
if m != nil {
|
||||
return m.MinBackoffDuration
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *RetryConfig) GetMaxBackoffDuration() *duration.Duration {
|
||||
if m != nil {
|
||||
return m.MaxBackoffDuration
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *RetryConfig) GetMaxDoublings() int32 {
|
||||
if m != nil {
|
||||
return m.MaxDoublings
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("google.cloud.scheduler.v1beta1.Job_State", Job_State_name, Job_State_value)
|
||||
proto.RegisterType((*Job)(nil), "google.cloud.scheduler.v1beta1.Job")
|
||||
proto.RegisterType((*RetryConfig)(nil), "google.cloud.scheduler.v1beta1.RetryConfig")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/scheduler/v1beta1/job.proto", fileDescriptor_0cfee8289e3d589c)
|
||||
}
|
||||
|
||||
var fileDescriptor_0cfee8289e3d589c = []byte{
|
||||
// 696 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0x51, 0x53, 0xda, 0x4a,
|
||||
0x14, 0xc7, 0x45, 0x81, 0x8b, 0x27, 0xe0, 0x85, 0x55, 0xef, 0x4d, 0x69, 0xa7, 0x32, 0xf4, 0x85,
|
||||
0x6a, 0x27, 0x19, 0xf5, 0xb1, 0x0f, 0x0e, 0x98, 0xa8, 0xd8, 0xd6, 0x61, 0x02, 0xcc, 0x74, 0x7c,
|
||||
0xc9, 0x6c, 0xc2, 0x12, 0x63, 0xc9, 0xee, 0x4e, 0xb2, 0xe9, 0x60, 0x3f, 0x58, 0x3f, 0x59, 0x3f,
|
||||
0x40, 0x27, 0x9b, 0x04, 0x51, 0xa7, 0xcd, 0x1b, 0x7b, 0xce, 0xff, 0xff, 0x3b, 0xff, 0xdd, 0xcd,
|
||||
0x02, 0x3d, 0x8f, 0x31, 0x6f, 0x41, 0x74, 0x77, 0xc1, 0xe2, 0x99, 0x1e, 0xb9, 0x77, 0x64, 0x16,
|
||||
0x2f, 0x48, 0xa8, 0x7f, 0x3f, 0x76, 0x88, 0xc0, 0xc7, 0xfa, 0x3d, 0x73, 0x34, 0x1e, 0x32, 0xc1,
|
||||
0xd0, 0xdb, 0x54, 0xa9, 0x49, 0xa5, 0xb6, 0x52, 0x6a, 0x99, 0xb2, 0xfd, 0x26, 0x23, 0x61, 0xee,
|
||||
0xeb, 0x98, 0x52, 0x26, 0xb0, 0xf0, 0x19, 0x8d, 0x52, 0x77, 0xfb, 0xa8, 0x60, 0x8e, 0xc0, 0xa1,
|
||||
0x47, 0x44, 0x26, 0xce, 0x46, 0xe9, 0x72, 0xe5, 0xc4, 0x73, 0x7d, 0x16, 0x87, 0x92, 0x96, 0xf5,
|
||||
0x0f, 0x9e, 0xf7, 0x85, 0x1f, 0x90, 0x48, 0xe0, 0x80, 0x67, 0x82, 0xff, 0x33, 0x41, 0xc8, 0x5d,
|
||||
0x3d, 0x12, 0x58, 0xc4, 0x59, 0x8c, 0xee, 0xaf, 0x2a, 0x6c, 0x5d, 0x33, 0x07, 0x21, 0x28, 0x53,
|
||||
0x1c, 0x10, 0xb5, 0xd4, 0x29, 0xf5, 0xb6, 0x2d, 0xf9, 0x1b, 0x75, 0x40, 0x99, 0x91, 0xc8, 0x0d,
|
||||
0x7d, 0x9e, 0x8c, 0x52, 0x37, 0x65, 0x6b, 0xbd, 0x84, 0xc6, 0xd0, 0xe0, 0xb1, 0x13, 0xc5, 0x8e,
|
||||
0x9d, 0xc6, 0x55, 0xcb, 0x9d, 0x52, 0x4f, 0x39, 0xf9, 0xa0, 0xfd, 0xfd, 0x68, 0xb4, 0x91, 0x34,
|
||||
0x4d, 0xa4, 0xe7, 0x6a, 0xc3, 0xaa, 0xf3, 0xb5, 0x35, 0xba, 0x87, 0xff, 0x30, 0xe7, 0x36, 0xa1,
|
||||
0x9e, 0x4f, 0x89, 0x7d, 0x27, 0x04, 0xcf, 0xe9, 0x15, 0x49, 0x3f, 0x2d, 0xa2, 0xf7, 0x39, 0x37,
|
||||
0xa5, 0xf9, 0x4a, 0x08, 0xbe, 0x1a, 0xb2, 0x8b, 0x5f, 0x96, 0xd1, 0x17, 0x50, 0xd6, 0x07, 0x54,
|
||||
0xe5, 0x80, 0xc3, 0xa2, 0x01, 0x4f, 0xb8, 0x70, 0xf7, 0x88, 0x6b, 0x43, 0x2d, 0x57, 0xab, 0x7b,
|
||||
0xf2, 0xb8, 0x56, 0x6b, 0xf4, 0x1a, 0xb6, 0x93, 0x5b, 0xb1, 0x7f, 0x30, 0x4a, 0xd4, 0xfd, 0xb4,
|
||||
0x99, 0x14, 0x6e, 0x19, 0x25, 0xc8, 0x80, 0x66, 0x1c, 0x91, 0xd0, 0x8e, 0xf9, 0x0c, 0x0b, 0x62,
|
||||
0x27, 0x75, 0x75, 0x5b, 0x86, 0x69, 0xe7, 0x61, 0xf2, 0xbb, 0xd5, 0x26, 0xf9, 0xdd, 0x5a, 0x3b,
|
||||
0x89, 0x67, 0x2a, 0x2d, 0x49, 0x11, 0x9d, 0x41, 0x25, 0xb9, 0x5c, 0xa2, 0x42, 0xa7, 0xd4, 0xdb,
|
||||
0x39, 0x79, 0x5f, 0xb4, 0x8f, 0x6b, 0xe6, 0x68, 0xe3, 0xc4, 0x60, 0xa5, 0x3e, 0x74, 0x08, 0xd5,
|
||||
0xf4, 0xeb, 0x50, 0x15, 0x39, 0x1c, 0xe5, 0x84, 0x90, 0xbb, 0x52, 0x19, 0x47, 0x56, 0xa6, 0x40,
|
||||
0x67, 0xd0, 0xc8, 0x89, 0x69, 0xde, 0x56, 0x61, 0xde, 0x7a, 0x6e, 0x90, 0x69, 0x2f, 0xa0, 0xb5,
|
||||
0xc0, 0x91, 0xb0, 0xb1, 0x10, 0x24, 0xe0, 0x22, 0x85, 0xa0, 0x42, 0xc8, 0xbf, 0x89, 0xa9, 0x9f,
|
||||
0x7a, 0x24, 0xe7, 0x06, 0xea, 0x21, 0x11, 0xe1, 0x83, 0xed, 0x32, 0x3a, 0xf7, 0x3d, 0x75, 0x57,
|
||||
0x22, 0x8e, 0x8a, 0x36, 0x6f, 0x25, 0x9e, 0x73, 0x69, 0xb1, 0x94, 0xf0, 0x71, 0xd1, 0xfd, 0x0a,
|
||||
0x15, 0x79, 0x28, 0x68, 0x1f, 0x5a, 0xe3, 0x49, 0x7f, 0x62, 0xda, 0xd3, 0x9b, 0xf1, 0xc8, 0x3c,
|
||||
0x1f, 0x5e, 0x0c, 0x4d, 0xa3, 0xb9, 0x81, 0x14, 0xf8, 0xc7, 0xbc, 0xe9, 0x0f, 0x3e, 0x9b, 0x46,
|
||||
0xb3, 0x84, 0x00, 0xaa, 0xa3, 0xfe, 0x74, 0x6c, 0x1a, 0xcd, 0x4d, 0x54, 0x87, 0x9a, 0x31, 0x1c,
|
||||
0xa7, 0x9d, 0x2d, 0xd4, 0x82, 0xc6, 0x74, 0x64, 0x24, 0xf6, 0x8b, 0xfe, 0x30, 0x29, 0x95, 0x07,
|
||||
0x35, 0xa8, 0xa6, 0x1f, 0x5a, 0xf7, 0xe7, 0x26, 0x28, 0x6b, 0x01, 0xd0, 0x01, 0x28, 0xf9, 0x1e,
|
||||
0x62, 0x2a, 0xe4, 0x2b, 0xac, 0x58, 0x90, 0xa5, 0x8a, 0xa9, 0x40, 0x97, 0x80, 0x02, 0xbc, 0xb4,
|
||||
0x53, 0x51, 0xfe, 0xfa, 0xe5, 0x93, 0x54, 0x4e, 0x5e, 0xbd, 0x38, 0x2d, 0x23, 0x13, 0x58, 0xcd,
|
||||
0x00, 0x2f, 0xe5, 0x9c, 0xbc, 0x82, 0x3e, 0xc1, 0x5e, 0xe0, 0x53, 0xdb, 0xc1, 0xee, 0x37, 0x36,
|
||||
0x9f, 0x3f, 0xa2, 0xb6, 0x8a, 0x50, 0x28, 0xf0, 0xe9, 0x20, 0x75, 0x3d, 0x81, 0xe1, 0xe5, 0x4b,
|
||||
0x58, 0xb9, 0x18, 0x86, 0x97, 0xcf, 0x61, 0xef, 0xa0, 0x91, 0xc0, 0x66, 0x2c, 0x76, 0x16, 0x3e,
|
||||
0xf5, 0x22, 0xf9, 0xdc, 0x2b, 0x56, 0x3d, 0xc0, 0x4b, 0x23, 0xaf, 0x0d, 0x1e, 0xa0, 0xeb, 0xb2,
|
||||
0xa0, 0xe0, 0x6e, 0x07, 0xb5, 0x6b, 0xe6, 0x8c, 0x92, 0xa1, 0xa3, 0xd2, 0xed, 0x65, 0xa6, 0xf5,
|
||||
0xd8, 0x02, 0x53, 0x4f, 0x63, 0xa1, 0xa7, 0x7b, 0x84, 0xca, 0x48, 0x7a, 0xda, 0xc2, 0xdc, 0x8f,
|
||||
0xfe, 0xf4, 0x3f, 0xfc, 0x71, 0x55, 0x71, 0xaa, 0xd2, 0x73, 0xfa, 0x3b, 0x00, 0x00, 0xff, 0xff,
|
||||
0x5a, 0x2d, 0x77, 0x5a, 0x22, 0x06, 0x00, 0x00,
|
||||
}
|
||||
576
vendor/google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1/target.pb.go
generated
vendored
Normal file
576
vendor/google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1/target.pb.go
generated
vendored
Normal file
@@ -0,0 +1,576 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/scheduler/v1beta1/target.proto
|
||||
|
||||
package scheduler
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
_ "github.com/golang/protobuf/ptypes/any"
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// The HTTP method used to execute the job.
|
||||
type HttpMethod int32
|
||||
|
||||
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
|
||||
)
|
||||
|
||||
var HttpMethod_name = map[int32]string{
|
||||
0: "HTTP_METHOD_UNSPECIFIED",
|
||||
1: "POST",
|
||||
2: "GET",
|
||||
3: "HEAD",
|
||||
4: "PUT",
|
||||
5: "DELETE",
|
||||
6: "PATCH",
|
||||
7: "OPTIONS",
|
||||
}
|
||||
|
||||
var HttpMethod_value = map[string]int32{
|
||||
"HTTP_METHOD_UNSPECIFIED": 0,
|
||||
"POST": 1,
|
||||
"GET": 2,
|
||||
"HEAD": 3,
|
||||
"PUT": 4,
|
||||
"DELETE": 5,
|
||||
"PATCH": 6,
|
||||
"OPTIONS": 7,
|
||||
}
|
||||
|
||||
func (x HttpMethod) String() string {
|
||||
return proto.EnumName(HttpMethod_name, int32(x))
|
||||
}
|
||||
|
||||
func (HttpMethod) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_30cd09e73d799915, []int{0}
|
||||
}
|
||||
|
||||
// Http target. The job will be pushed to the job handler by means of
|
||||
// an HTTP request via an [http_method][google.cloud.scheduler.v1beta1.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.
|
||||
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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.HttpMethod].
|
||||
Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *HttpTarget) Reset() { *m = HttpTarget{} }
|
||||
func (m *HttpTarget) String() string { return proto.CompactTextString(m) }
|
||||
func (*HttpTarget) ProtoMessage() {}
|
||||
func (*HttpTarget) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_30cd09e73d799915, []int{0}
|
||||
}
|
||||
|
||||
func (m *HttpTarget) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_HttpTarget.Unmarshal(m, b)
|
||||
}
|
||||
func (m *HttpTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_HttpTarget.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *HttpTarget) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_HttpTarget.Merge(m, src)
|
||||
}
|
||||
func (m *HttpTarget) XXX_Size() int {
|
||||
return xxx_messageInfo_HttpTarget.Size(m)
|
||||
}
|
||||
func (m *HttpTarget) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_HttpTarget.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_HttpTarget proto.InternalMessageInfo
|
||||
|
||||
func (m *HttpTarget) GetUri() string {
|
||||
if m != nil {
|
||||
return m.Uri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *HttpTarget) GetHttpMethod() HttpMethod {
|
||||
if m != nil {
|
||||
return m.HttpMethod
|
||||
}
|
||||
return HttpMethod_HTTP_METHOD_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *HttpTarget) GetHeaders() map[string]string {
|
||||
if m != nil {
|
||||
return m.Headers
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *HttpTarget) GetBody() []byte {
|
||||
if m != nil {
|
||||
return m.Body
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 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.v1beta1.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.
|
||||
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.v1beta1.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`.
|
||||
//
|
||||
// If the job has an [body][google.cloud.scheduler.v1beta1.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. See
|
||||
// [Reading request headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
|
||||
//
|
||||
// In addition, some App Engine headers, which contain
|
||||
// job-specific information, are also be sent to the job handler; see
|
||||
// [request headers](https://cloud.google.comappengine/docs/standard/python/config/cron#securing_urls_for_cron).
|
||||
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.v1beta1.HttpMethod].
|
||||
Body []byte `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *AppEngineHttpTarget) Reset() { *m = AppEngineHttpTarget{} }
|
||||
func (m *AppEngineHttpTarget) String() string { return proto.CompactTextString(m) }
|
||||
func (*AppEngineHttpTarget) ProtoMessage() {}
|
||||
func (*AppEngineHttpTarget) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_30cd09e73d799915, []int{1}
|
||||
}
|
||||
|
||||
func (m *AppEngineHttpTarget) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_AppEngineHttpTarget.Unmarshal(m, b)
|
||||
}
|
||||
func (m *AppEngineHttpTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_AppEngineHttpTarget.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *AppEngineHttpTarget) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_AppEngineHttpTarget.Merge(m, src)
|
||||
}
|
||||
func (m *AppEngineHttpTarget) XXX_Size() int {
|
||||
return xxx_messageInfo_AppEngineHttpTarget.Size(m)
|
||||
}
|
||||
func (m *AppEngineHttpTarget) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_AppEngineHttpTarget.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_AppEngineHttpTarget proto.InternalMessageInfo
|
||||
|
||||
func (m *AppEngineHttpTarget) GetHttpMethod() HttpMethod {
|
||||
if m != nil {
|
||||
return m.HttpMethod
|
||||
}
|
||||
return HttpMethod_HTTP_METHOD_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *AppEngineHttpTarget) GetAppEngineRouting() *AppEngineRouting {
|
||||
if m != nil {
|
||||
return m.AppEngineRouting
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AppEngineHttpTarget) GetRelativeUri() string {
|
||||
if m != nil {
|
||||
return m.RelativeUri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AppEngineHttpTarget) GetHeaders() map[string]string {
|
||||
if m != nil {
|
||||
return m.Headers
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AppEngineHttpTarget) GetBody() []byte {
|
||||
if m != nil {
|
||||
return m.Body
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Pub/Sub target. The job will be delivered by publishing a message to
|
||||
// the given Pub/Sub topic.
|
||||
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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PubsubTarget) Reset() { *m = PubsubTarget{} }
|
||||
func (m *PubsubTarget) String() string { return proto.CompactTextString(m) }
|
||||
func (*PubsubTarget) ProtoMessage() {}
|
||||
func (*PubsubTarget) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_30cd09e73d799915, []int{2}
|
||||
}
|
||||
|
||||
func (m *PubsubTarget) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PubsubTarget.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PubsubTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PubsubTarget.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *PubsubTarget) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PubsubTarget.Merge(m, src)
|
||||
}
|
||||
func (m *PubsubTarget) XXX_Size() int {
|
||||
return xxx_messageInfo_PubsubTarget.Size(m)
|
||||
}
|
||||
func (m *PubsubTarget) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PubsubTarget.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PubsubTarget proto.InternalMessageInfo
|
||||
|
||||
func (m *PubsubTarget) GetTopicName() string {
|
||||
if m != nil {
|
||||
return m.TopicName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PubsubTarget) GetData() []byte {
|
||||
if m != nil {
|
||||
return m.Data
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PubsubTarget) GetAttributes() map[string]string {
|
||||
if m != nil {
|
||||
return m.Attributes
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 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).
|
||||
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.v1beta1.AppEngineRouting.service]
|
||||
//
|
||||
// * `version =` [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version]
|
||||
//
|
||||
// * `version_dot_service =`
|
||||
// [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +`
|
||||
// [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service]
|
||||
//
|
||||
// * `instance =` [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance]
|
||||
//
|
||||
// * `instance_dot_service =`
|
||||
// [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +`
|
||||
// [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service]
|
||||
//
|
||||
// * `instance_dot_version =`
|
||||
// [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +`
|
||||
// [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version]
|
||||
//
|
||||
// * `instance_dot_version_dot_service =`
|
||||
// [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +`
|
||||
// [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +`
|
||||
// [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service]
|
||||
//
|
||||
//
|
||||
// If [service][google.cloud.scheduler.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AppEngineRouting.service],
|
||||
// [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version], or
|
||||
// [instance][google.cloud.scheduler.v1beta1.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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *AppEngineRouting) Reset() { *m = AppEngineRouting{} }
|
||||
func (m *AppEngineRouting) String() string { return proto.CompactTextString(m) }
|
||||
func (*AppEngineRouting) ProtoMessage() {}
|
||||
func (*AppEngineRouting) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_30cd09e73d799915, []int{3}
|
||||
}
|
||||
|
||||
func (m *AppEngineRouting) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_AppEngineRouting.Unmarshal(m, b)
|
||||
}
|
||||
func (m *AppEngineRouting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_AppEngineRouting.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *AppEngineRouting) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_AppEngineRouting.Merge(m, src)
|
||||
}
|
||||
func (m *AppEngineRouting) XXX_Size() int {
|
||||
return xxx_messageInfo_AppEngineRouting.Size(m)
|
||||
}
|
||||
func (m *AppEngineRouting) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_AppEngineRouting.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_AppEngineRouting proto.InternalMessageInfo
|
||||
|
||||
func (m *AppEngineRouting) GetService() string {
|
||||
if m != nil {
|
||||
return m.Service
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AppEngineRouting) GetVersion() string {
|
||||
if m != nil {
|
||||
return m.Version
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AppEngineRouting) GetInstance() string {
|
||||
if m != nil {
|
||||
return m.Instance
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AppEngineRouting) GetHost() string {
|
||||
if m != nil {
|
||||
return m.Host
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("google.cloud.scheduler.v1beta1.HttpMethod", HttpMethod_name, HttpMethod_value)
|
||||
proto.RegisterType((*HttpTarget)(nil), "google.cloud.scheduler.v1beta1.HttpTarget")
|
||||
proto.RegisterMapType((map[string]string)(nil), "google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry")
|
||||
proto.RegisterType((*AppEngineHttpTarget)(nil), "google.cloud.scheduler.v1beta1.AppEngineHttpTarget")
|
||||
proto.RegisterMapType((map[string]string)(nil), "google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry")
|
||||
proto.RegisterType((*PubsubTarget)(nil), "google.cloud.scheduler.v1beta1.PubsubTarget")
|
||||
proto.RegisterMapType((map[string]string)(nil), "google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry")
|
||||
proto.RegisterType((*AppEngineRouting)(nil), "google.cloud.scheduler.v1beta1.AppEngineRouting")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/scheduler/v1beta1/target.proto", fileDescriptor_30cd09e73d799915)
|
||||
}
|
||||
|
||||
var fileDescriptor_30cd09e73d799915 = []byte{
|
||||
// 623 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xdb, 0x6e, 0xd3, 0x4c,
|
||||
0x10, 0xfe, 0x1d, 0x27, 0x4d, 0x33, 0x89, 0x7e, 0xac, 0x05, 0x89, 0x10, 0x0e, 0x0a, 0xbd, 0x8a,
|
||||
0x8a, 0x64, 0xd3, 0x72, 0x01, 0x2a, 0x20, 0x91, 0x36, 0xa6, 0xa9, 0xa0, 0x8d, 0x71, 0xdd, 0x9b,
|
||||
0x0a, 0x61, 0xad, 0x93, 0xc5, 0x59, 0x35, 0xd9, 0xb5, 0xd6, 0x6b, 0x4b, 0x91, 0x78, 0x06, 0x24,
|
||||
0x5e, 0x90, 0x67, 0x41, 0x5e, 0x1f, 0x88, 0x22, 0x41, 0x8b, 0xe0, 0x6e, 0x8e, 0xdf, 0xcc, 0x37,
|
||||
0x9f, 0xbd, 0xf0, 0x24, 0xe4, 0x3c, 0x5c, 0x10, 0x6b, 0xba, 0xe0, 0xc9, 0xcc, 0x8a, 0xa7, 0x73,
|
||||
0x32, 0x4b, 0x16, 0x44, 0x58, 0xe9, 0x5e, 0x40, 0x24, 0xde, 0xb3, 0x24, 0x16, 0x21, 0x91, 0x66,
|
||||
0x24, 0xb8, 0xe4, 0xe8, 0x51, 0x5e, 0x6c, 0xaa, 0x62, 0xb3, 0x2a, 0x36, 0x8b, 0xe2, 0xde, 0x83,
|
||||
0x02, 0x0c, 0x47, 0xd4, 0xc2, 0x8c, 0x71, 0x89, 0x25, 0xe5, 0x2c, 0xce, 0xbb, 0x7b, 0xf7, 0x8a,
|
||||
0xac, 0xf2, 0x82, 0xe4, 0xb3, 0x85, 0xd9, 0x2a, 0x4f, 0xed, 0x7c, 0xad, 0x01, 0x8c, 0xa5, 0x8c,
|
||||
0x3c, 0x35, 0x0d, 0x19, 0xa0, 0x27, 0x82, 0x76, 0xb5, 0xbe, 0x36, 0x68, 0xb9, 0x99, 0x89, 0xde,
|
||||
0x41, 0x7b, 0x2e, 0x65, 0xe4, 0x2f, 0x89, 0x9c, 0xf3, 0x59, 0xb7, 0xd6, 0xd7, 0x06, 0xff, 0xef,
|
||||
0xef, 0x9a, 0xbf, 0xdf, 0xc7, 0xcc, 0x20, 0x4f, 0x55, 0x87, 0x0b, 0xf3, 0xca, 0x46, 0x1f, 0xa0,
|
||||
0x39, 0x27, 0x78, 0x46, 0x44, 0xdc, 0xd5, 0xfb, 0xfa, 0xa0, 0xbd, 0xff, 0xfc, 0x26, 0x40, 0xf9,
|
||||
0x6e, 0xe6, 0x38, 0xef, 0xb4, 0x99, 0x14, 0x2b, 0xb7, 0xc4, 0x41, 0x08, 0xea, 0x01, 0x9f, 0xad,
|
||||
0xba, 0xf5, 0xbe, 0x36, 0xe8, 0xb8, 0xca, 0xee, 0x1d, 0x40, 0x67, 0xbd, 0x38, 0x63, 0x75, 0x45,
|
||||
0x56, 0x25, 0xab, 0x2b, 0xb2, 0x42, 0x77, 0xa0, 0x91, 0xe2, 0x45, 0x42, 0x14, 0x9f, 0x96, 0x9b,
|
||||
0x3b, 0x07, 0xb5, 0x17, 0xda, 0xce, 0x37, 0x1d, 0x6e, 0x0f, 0xa3, 0xc8, 0x66, 0x21, 0x65, 0x64,
|
||||
0xed, 0x32, 0x1b, 0x77, 0xd0, 0xfe, 0xea, 0x0e, 0x9f, 0x00, 0xe1, 0x28, 0xf2, 0x89, 0x1a, 0xe2,
|
||||
0x0b, 0x9e, 0x48, 0xca, 0x42, 0xb5, 0x4b, 0x7b, 0xff, 0xe9, 0x75, 0x98, 0xd5, 0x76, 0x6e, 0xde,
|
||||
0xe7, 0x1a, 0x78, 0x23, 0x82, 0x1e, 0x43, 0x47, 0x90, 0x05, 0x96, 0x34, 0x25, 0x7e, 0xa6, 0xa7,
|
||||
0xae, 0x58, 0xb6, 0xcb, 0xd8, 0x85, 0xa0, 0xe8, 0xf2, 0xa7, 0x14, 0x75, 0x25, 0xc5, 0x9b, 0x1b,
|
||||
0xcf, 0xbd, 0xb1, 0x26, 0x8d, 0x7f, 0xa4, 0xc9, 0x77, 0x0d, 0x3a, 0x4e, 0x12, 0xc4, 0x49, 0x50,
|
||||
0x88, 0xf1, 0x10, 0x40, 0xf2, 0x88, 0x4e, 0x7d, 0x86, 0x97, 0xa4, 0xc0, 0x68, 0xa9, 0xc8, 0x19,
|
||||
0x5e, 0x92, 0x6c, 0xfe, 0x0c, 0x4b, 0xac, 0x68, 0x77, 0x5c, 0x65, 0xa3, 0x8f, 0x00, 0x58, 0x4a,
|
||||
0x41, 0x83, 0x44, 0x92, 0x92, 0xf2, 0xab, 0xeb, 0x28, 0xaf, 0x0f, 0x35, 0x87, 0x55, 0x7b, 0x4e,
|
||||
0x77, 0x0d, 0xaf, 0xf7, 0x1a, 0x6e, 0x6d, 0xa4, 0xff, 0x88, 0x60, 0x0a, 0xc6, 0xa6, 0xaa, 0xa8,
|
||||
0x0b, 0xcd, 0x98, 0x88, 0x94, 0x4e, 0x4b, 0x82, 0xa5, 0x9b, 0x65, 0x52, 0x22, 0x62, 0xca, 0x59,
|
||||
0x81, 0x54, 0xba, 0xa8, 0x07, 0xdb, 0x94, 0xc5, 0x12, 0xb3, 0x29, 0x29, 0x34, 0xaf, 0xfc, 0xec,
|
||||
0x28, 0x73, 0x1e, 0x4b, 0xf5, 0xa3, 0xb4, 0x5c, 0x65, 0xef, 0xc6, 0xf9, 0xcf, 0x5f, 0x7c, 0x95,
|
||||
0xf7, 0xe1, 0xee, 0xd8, 0xf3, 0x1c, 0xff, 0xd4, 0xf6, 0xc6, 0x93, 0x91, 0x7f, 0x71, 0x76, 0xee,
|
||||
0xd8, 0x47, 0x27, 0x6f, 0x4f, 0xec, 0x91, 0xf1, 0x1f, 0xda, 0x86, 0xba, 0x33, 0x39, 0xf7, 0x0c,
|
||||
0x0d, 0x35, 0x41, 0x3f, 0xb6, 0x3d, 0xa3, 0x96, 0x85, 0xc6, 0xf6, 0x70, 0x64, 0xe8, 0x59, 0xc8,
|
||||
0xb9, 0xf0, 0x8c, 0x3a, 0x02, 0xd8, 0x1a, 0xd9, 0xef, 0x6d, 0xcf, 0x36, 0x1a, 0xa8, 0x05, 0x0d,
|
||||
0x67, 0xe8, 0x1d, 0x8d, 0x8d, 0x2d, 0xd4, 0x86, 0xe6, 0xc4, 0xf1, 0x4e, 0x26, 0x67, 0xe7, 0x46,
|
||||
0xf3, 0xf0, 0x0b, 0xec, 0x4c, 0xf9, 0xf2, 0x9a, 0xd3, 0x1f, 0xb6, 0xf3, 0xab, 0x3b, 0xd9, 0x2b,
|
||||
0xe5, 0x68, 0x97, 0xc7, 0x45, 0x79, 0xc8, 0x17, 0x98, 0x85, 0x26, 0x17, 0xa1, 0x15, 0x12, 0xa6,
|
||||
0xde, 0x30, 0x2b, 0x4f, 0xe1, 0x88, 0xc6, 0xbf, 0x7a, 0x4c, 0x5f, 0x56, 0x91, 0x60, 0x4b, 0xf5,
|
||||
0x3c, 0xfb, 0x11, 0x00, 0x00, 0xff, 0xff, 0x2b, 0xc4, 0x67, 0x05, 0x7f, 0x05, 0x00, 0x00,
|
||||
}
|
||||
Reference in New Issue
Block a user