diff --git a/googleapis/api/metric/metric.pb.go b/googleapis/api/metric/metric.pb.go index f906777a1340e2edfbbe49ac475125e9c6cf73e5..f2ed8884490c0f888550f45432350fc53edad419 100644 --- a/googleapis/api/metric/metric.pb.go +++ b/googleapis/api/metric/metric.pb.go @@ -90,12 +90,12 @@ var MetricDescriptor_ValueType_name = map[int32]string{ } var MetricDescriptor_ValueType_value = map[string]int32{ "VALUE_TYPE_UNSPECIFIED": 0, - "BOOL": 1, - "INT64": 2, - "DOUBLE": 3, - "STRING": 4, - "DISTRIBUTION": 5, - "MONEY": 6, + "BOOL": 1, + "INT64": 2, + "DOUBLE": 3, + "STRING": 4, + "DISTRIBUTION": 5, + "MONEY": 6, } func (x MetricDescriptor_ValueType) String() string { diff --git a/googleapis/assistant/embedded/v1alpha2/embedded_assistant.pb.go b/googleapis/assistant/embedded/v1alpha2/embedded_assistant.pb.go index a46dfa6665b797eba7356187e7e2e705e631fe6e..83044e5ecde3bb2fba645720c8c749e2eb626258 100644 --- a/googleapis/assistant/embedded/v1alpha2/embedded_assistant.pb.go +++ b/googleapis/assistant/embedded/v1alpha2/embedded_assistant.pb.go @@ -155,8 +155,8 @@ var ScreenOutConfig_ScreenMode_name = map[int32]string{ } var ScreenOutConfig_ScreenMode_value = map[string]int32{ "SCREEN_MODE_UNSPECIFIED": 0, - "OFF": 1, - "PLAYING": 3, + "OFF": 1, + "PLAYING": 3, } func (x ScreenOutConfig_ScreenMode) String() string { diff --git a/googleapis/bigtable/admin/cluster/v1/bigtable_cluster_data.pb.go b/googleapis/bigtable/admin/cluster/v1/bigtable_cluster_data.pb.go index 8f65f8ac15c913c8849656ac65344478d219f599..77c88bbc774aac3642a2a4e29b7997fa8bae0774 100644 --- a/googleapis/bigtable/admin/cluster/v1/bigtable_cluster_data.pb.go +++ b/googleapis/bigtable/admin/cluster/v1/bigtable_cluster_data.pb.go @@ -72,8 +72,8 @@ var Zone_Status_name = map[int32]string{ 3: "EMERGENCY_MAINENANCE", } var Zone_Status_value = map[string]int32{ - "UNKNOWN": 0, - "OK": 1, + "UNKNOWN": 0, + "OK": 1, "PLANNED_MAINTENANCE": 2, "EMERGENCY_MAINENANCE": 3, } diff --git a/googleapis/bigtable/admin/v2/common.pb.go b/googleapis/bigtable/admin/v2/common.pb.go index 4ed69e3490f4072eedcd68537bdc46f75ed27d23..31c87e50138be4b401be682f0b3873d7626d920a 100644 --- a/googleapis/bigtable/admin/v2/common.pb.go +++ b/googleapis/bigtable/admin/v2/common.pb.go @@ -39,8 +39,8 @@ var StorageType_name = map[int32]string{ } var StorageType_value = map[string]int32{ "STORAGE_TYPE_UNSPECIFIED": 0, - "SSD": 1, - "HDD": 2, + "SSD": 1, + "HDD": 2, } func (x StorageType) String() string { diff --git a/googleapis/bigtable/admin/v2/table.pb.go b/googleapis/bigtable/admin/v2/table.pb.go index 82005bfe848d8a0691fc954e1b51a1697f9183c7..0919fcc97a5cfc6364584f515b91d7649e8a4ca2 100644 --- a/googleapis/bigtable/admin/v2/table.pb.go +++ b/googleapis/bigtable/admin/v2/table.pb.go @@ -39,7 +39,7 @@ var Table_TimestampGranularity_name = map[int32]string{ } var Table_TimestampGranularity_value = map[string]int32{ "TIMESTAMP_GRANULARITY_UNSPECIFIED": 0, - "MILLIS": 1, + "MILLIS": 1, } func (x Table_TimestampGranularity) String() string { diff --git a/googleapis/cloud/bigquery/datatransfer/v1/transfer.pb.go b/googleapis/cloud/bigquery/datatransfer/v1/transfer.pb.go index a2b58459303750c545365300f34ce14df2e89449..062676ee8035eb388f560c4ff2b2e2005ff4aa1e 100644 --- a/googleapis/cloud/bigquery/datatransfer/v1/transfer.pb.go +++ b/googleapis/cloud/bigquery/datatransfer/v1/transfer.pb.go @@ -118,9 +118,9 @@ var TransferMessage_MessageSeverity_name = map[int32]string{ } var TransferMessage_MessageSeverity_value = map[string]int32{ "MESSAGE_SEVERITY_UNSPECIFIED": 0, - "INFO": 1, - "WARNING": 2, - "ERROR": 3, + "INFO": 1, + "WARNING": 2, + "ERROR": 3, } func (x TransferMessage_MessageSeverity) String() string { diff --git a/googleapis/cloud/dialogflow/v2beta1/document.pb.go b/googleapis/cloud/dialogflow/v2beta1/document.pb.go index ee26ae8c3c6d4ccf7d8f78d7a9a8e3336958dd12..8ff3b5a3bff1ca256f8a6641268b4259d755b7a6 100644 --- a/googleapis/cloud/dialogflow/v2beta1/document.pb.go +++ b/googleapis/cloud/dialogflow/v2beta1/document.pb.go @@ -53,8 +53,8 @@ var Document_KnowledgeType_name = map[int32]string{ } var Document_KnowledgeType_value = map[string]int32{ "KNOWLEDGE_TYPE_UNSPECIFIED": 0, - "FAQ": 1, - "EXTRACTIVE_QA": 2, + "FAQ": 1, + "EXTRACTIVE_QA": 2, } func (x Document_KnowledgeType) String() string { diff --git a/googleapis/cloud/dialogflow/v2beta1/session.pb.go b/googleapis/cloud/dialogflow/v2beta1/session.pb.go index 8346e323d31fa04d9ba0ce861911d88e4c780342..144bf34330f24c3bf90eaeda93097be3f39674ad 100644 --- a/googleapis/cloud/dialogflow/v2beta1/session.pb.go +++ b/googleapis/cloud/dialogflow/v2beta1/session.pb.go @@ -122,9 +122,9 @@ var KnowledgeAnswers_Answer_MatchConfidenceLevel_name = map[int32]string{ } var KnowledgeAnswers_Answer_MatchConfidenceLevel_value = map[string]int32{ "MATCH_CONFIDENCE_LEVEL_UNSPECIFIED": 0, - "LOW": 1, - "MEDIUM": 2, - "HIGH": 3, + "LOW": 1, + "MEDIUM": 2, + "HIGH": 3, } func (x KnowledgeAnswers_Answer_MatchConfidenceLevel) String() string { diff --git a/googleapis/cloud/kms/v1/resources.pb.go b/googleapis/cloud/kms/v1/resources.pb.go index 649b641de633f1c1fac26f35dd540709a3f454cc..ad195e2a812f07c4c9599e05700d616ae2737f30 100644 --- a/googleapis/cloud/kms/v1/resources.pb.go +++ b/googleapis/cloud/kms/v1/resources.pb.go @@ -82,10 +82,10 @@ var CryptoKeyVersion_CryptoKeyVersionState_name = map[int32]string{ } var CryptoKeyVersion_CryptoKeyVersionState_value = map[string]int32{ "CRYPTO_KEY_VERSION_STATE_UNSPECIFIED": 0, - "ENABLED": 1, - "DISABLED": 2, - "DESTROYED": 3, - "DESTROY_SCHEDULED": 4, + "ENABLED": 1, + "DISABLED": 2, + "DESTROYED": 3, + "DESTROY_SCHEDULED": 4, } func (x CryptoKeyVersion_CryptoKeyVersionState) String() string { diff --git a/googleapis/cloud/ml/v1/job_service.pb.go b/googleapis/cloud/ml/v1/job_service.pb.go index 6450025e3d0112f436c37c009232bb1f519f93cf..596af2ca75372d21ba6ad49cf7125bdee7856bba 100644 --- a/googleapis/cloud/ml/v1/job_service.pb.go +++ b/googleapis/cloud/ml/v1/job_service.pb.go @@ -231,9 +231,9 @@ var PredictionInput_DataFormat_name = map[int32]string{ } var PredictionInput_DataFormat_value = map[string]int32{ "DATA_FORMAT_UNSPECIFIED": 0, - "TEXT": 1, - "TF_RECORD": 2, - "TF_RECORD_GZIP": 3, + "TEXT": 1, + "TF_RECORD": 2, + "TF_RECORD_GZIP": 3, } func (x PredictionInput_DataFormat) String() string { diff --git a/googleapis/cloud/runtimeconfig/v1beta1/resources.pb.go b/googleapis/cloud/runtimeconfig/v1beta1/resources.pb.go index 04cf291f3b9a190df7be52ade908c82a32751d8b..9e6c8f14d516ed5755fd0fc168c27982535b90aa 100644 --- a/googleapis/cloud/runtimeconfig/v1beta1/resources.pb.go +++ b/googleapis/cloud/runtimeconfig/v1beta1/resources.pb.go @@ -51,7 +51,7 @@ func (x VariableState) String() string { return proto.EnumName(VariableState_name, int32(x)) } func (VariableState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_resources_9e12d793a1d0df41, []int{0} + return fileDescriptor_resources_a4c042e63b7976fe, []int{0} } // A RuntimeConfig resource is the primary resource in the Cloud RuntimeConfig @@ -81,7 +81,7 @@ func (m *RuntimeConfig) Reset() { *m = RuntimeConfig{} } func (m *RuntimeConfig) String() string { return proto.CompactTextString(m) } func (*RuntimeConfig) ProtoMessage() {} func (*RuntimeConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_resources_9e12d793a1d0df41, []int{0} + return fileDescriptor_resources_a4c042e63b7976fe, []int{0} } func (m *RuntimeConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RuntimeConfig.Unmarshal(m, b) @@ -138,7 +138,7 @@ type Variable struct { // // Once you create a variable, you cannot change the variable name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // The the value of the variable. It can be either a binary or a string + // The value of the variable. It can be either a binary or a string // value. You must specify one of either `value` or `text`. Specifying both // will cause the server to return an error. // @@ -161,7 +161,7 @@ func (m *Variable) Reset() { *m = Variable{} } func (m *Variable) String() string { return proto.CompactTextString(m) } func (*Variable) ProtoMessage() {} func (*Variable) Descriptor() ([]byte, []int) { - return fileDescriptor_resources_9e12d793a1d0df41, []int{1} + return fileDescriptor_resources_a4c042e63b7976fe, []int{1} } func (m *Variable) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Variable.Unmarshal(m, b) @@ -322,7 +322,7 @@ func (m *EndCondition) Reset() { *m = EndCondition{} } func (m *EndCondition) String() string { return proto.CompactTextString(m) } func (*EndCondition) ProtoMessage() {} func (*EndCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_resources_9e12d793a1d0df41, []int{2} + return fileDescriptor_resources_a4c042e63b7976fe, []int{2} } func (m *EndCondition) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_EndCondition.Unmarshal(m, b) @@ -450,7 +450,7 @@ func (m *EndCondition_Cardinality) Reset() { *m = EndCondition_Cardinali func (m *EndCondition_Cardinality) String() string { return proto.CompactTextString(m) } func (*EndCondition_Cardinality) ProtoMessage() {} func (*EndCondition_Cardinality) Descriptor() ([]byte, []int) { - return fileDescriptor_resources_9e12d793a1d0df41, []int{2, 0} + return fileDescriptor_resources_a4c042e63b7976fe, []int{2, 0} } func (m *EndCondition_Cardinality) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_EndCondition_Cardinality.Unmarshal(m, b) @@ -549,7 +549,7 @@ func (m *Waiter) Reset() { *m = Waiter{} } func (m *Waiter) String() string { return proto.CompactTextString(m) } func (*Waiter) ProtoMessage() {} func (*Waiter) Descriptor() ([]byte, []int) { - return fileDescriptor_resources_9e12d793a1d0df41, []int{3} + return fileDescriptor_resources_a4c042e63b7976fe, []int{3} } func (m *Waiter) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Waiter.Unmarshal(m, b) @@ -628,10 +628,10 @@ func init() { } func init() { - proto.RegisterFile("google/cloud/runtimeconfig/v1beta1/resources.proto", fileDescriptor_resources_9e12d793a1d0df41) + proto.RegisterFile("google/cloud/runtimeconfig/v1beta1/resources.proto", fileDescriptor_resources_a4c042e63b7976fe) } -var fileDescriptor_resources_9e12d793a1d0df41 = []byte{ +var fileDescriptor_resources_a4c042e63b7976fe = []byte{ // 628 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xdd, 0x6e, 0xd3, 0x30, 0x14, 0xc7, 0x9b, 0xd2, 0x8f, 0xed, 0x64, 0x43, 0x93, 0x85, 0x46, 0xa8, 0xd0, 0xa8, 0x7a, 0x81, diff --git a/googleapis/cloud/speech/v1p1beta1/cloud_speech.pb.go b/googleapis/cloud/speech/v1p1beta1/cloud_speech.pb.go index 8c4535609f0ed339fb5837ef9aacb9c76c22c6c8..886fb814e746fd6c3ca86c0b36c84b35eeb88eb6 100644 --- a/googleapis/cloud/speech/v1p1beta1/cloud_speech.pb.go +++ b/googleapis/cloud/speech/v1p1beta1/cloud_speech.pb.go @@ -234,8 +234,8 @@ var RecognitionMetadata_OriginalMediaType_name = map[int32]string{ } var RecognitionMetadata_OriginalMediaType_value = map[string]int32{ "ORIGINAL_MEDIA_TYPE_UNSPECIFIED": 0, - "AUDIO": 1, - "VIDEO": 2, + "AUDIO": 1, + "VIDEO": 2, } func (x RecognitionMetadata_OriginalMediaType) String() string { diff --git a/googleapis/cloud/support/common/common.pb.go b/googleapis/cloud/support/common/common.pb.go index 22e273bacaa9d84c48cc460b6e76fe4d1578fe99..1503a4e5d7e26b9405c6e53554e46f27a95c5390 100644 --- a/googleapis/cloud/support/common/common.pb.go +++ b/googleapis/cloud/support/common/common.pb.go @@ -116,11 +116,11 @@ var Case_Priority_name = map[int32]string{ } var Case_Priority_value = map[string]int32{ "PRIORITY_UNSPECIFIED": 0, - "P0": 1, - "P1": 2, - "P2": 3, - "P3": 4, - "P4": 5, + "P0": 1, + "P1": 2, + "P2": 3, + "P3": 4, + "P4": 5, } func (x Case_Priority) String() string { @@ -212,11 +212,11 @@ var CustomerIssue_IssueState_name = map[int32]string{ } var CustomerIssue_IssueState_value = map[string]int32{ "ISSUE_STATE_UNSPECIFIED": 0, - "OPEN": 1, - "IN_PROGRESS": 2, - "FIXED": 3, - "WONT_FIX": 4, - "VERIFIED": 5, + "OPEN": 1, + "IN_PROGRESS": 2, + "FIXED": 3, + "WONT_FIX": 4, + "VERIFIED": 5, } func (x CustomerIssue_IssueState) String() string { diff --git a/googleapis/cloud/tasks/v2beta2/target.pb.go b/googleapis/cloud/tasks/v2beta2/target.pb.go index 9725ed6da14f3ac7abfc57baf19ed5c6b7ec5344..ae61ba621d5586ee3a2fb61c37776e466c7f482a 100644 --- a/googleapis/cloud/tasks/v2beta2/target.pb.go +++ b/googleapis/cloud/tasks/v2beta2/target.pb.go @@ -48,11 +48,11 @@ var HttpMethod_name = map[int32]string{ } var HttpMethod_value = map[string]int32{ "HTTP_METHOD_UNSPECIFIED": 0, - "POST": 1, - "GET": 2, - "HEAD": 3, - "PUT": 4, - "DELETE": 5, + "POST": 1, + "GET": 2, + "HEAD": 3, + "PUT": 4, + "DELETE": 5, } func (x HttpMethod) String() string { diff --git a/googleapis/cloud/tasks/v2beta3/cloudtasks.pb.go b/googleapis/cloud/tasks/v2beta3/cloudtasks.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..13e39150430cdfba9c3d4e9bd93c78caf43451be --- /dev/null +++ b/googleapis/cloud/tasks/v2beta3/cloudtasks.pb.go @@ -0,0 +1,1879 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/cloud/tasks/v2beta3/cloudtasks.proto + +package tasks // import "google.golang.org/genproto/googleapis/cloud/tasks/v2beta3" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import empty "github.com/golang/protobuf/ptypes/empty" +import _ "google.golang.org/genproto/googleapis/api/annotations" +import v1 "google.golang.org/genproto/googleapis/iam/v1" +import _ "google.golang.org/genproto/googleapis/rpc/code" +import field_mask "google.golang.org/genproto/protobuf/field_mask" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// 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 [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues]. +type ListQueuesRequest 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"` + // `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2beta3.Queue] + // field can be used as a filter and several operators as supported. + // For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as + // described in + // [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters). + // + // Sample filter "state: PAUSED". + // + // Note that using filters might cause fewer queues than the + // requested page_size to be returned. + Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` + // Requested page size. + // + // The maximum page size is 9800. If unspecified, the page size will + // be the maximum. Fewer queues than requested might be returned, + // even if more queues exist; use the + // [next_page_token][google.cloud.tasks.v2beta3.ListQueuesResponse.next_page_token] in the + // response to determine if more queues exist. + PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // A token identifying the page of results to 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.tasks.v2beta3.ListQueuesResponse.next_page_token] returned + // from the previous call to [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues] + // method. It is an error to switch the value of the + // [filter][google.cloud.tasks.v2beta3.ListQueuesRequest.filter] while iterating through pages. + PageToken string `protobuf:"bytes,4,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 *ListQueuesRequest) Reset() { *m = ListQueuesRequest{} } +func (m *ListQueuesRequest) String() string { return proto.CompactTextString(m) } +func (*ListQueuesRequest) ProtoMessage() {} +func (*ListQueuesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cloudtasks_f9775ddf05248897, []int{0} +} +func (m *ListQueuesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListQueuesRequest.Unmarshal(m, b) +} +func (m *ListQueuesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListQueuesRequest.Marshal(b, m, deterministic) +} +func (dst *ListQueuesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListQueuesRequest.Merge(dst, src) +} +func (m *ListQueuesRequest) XXX_Size() int { + return xxx_messageInfo_ListQueuesRequest.Size(m) +} +func (m *ListQueuesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListQueuesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListQueuesRequest proto.InternalMessageInfo + +func (m *ListQueuesRequest) GetParent() string { + if m != nil { + return m.Parent + } + return "" +} + +func (m *ListQueuesRequest) GetFilter() string { + if m != nil { + return m.Filter + } + return "" +} + +func (m *ListQueuesRequest) GetPageSize() int32 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListQueuesRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +// Response message for [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues]. +type ListQueuesResponse struct { + // The list of queues. + Queues []*Queue `protobuf:"bytes,1,rep,name=queues,proto3" json:"queues,omitempty"` + // A token to retrieve next page of results. + // + // To return the next page of results, call + // [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues] with this value as the + // [page_token][google.cloud.tasks.v2beta3.ListQueuesRequest.page_token]. + // + // If the next_page_token is empty, there are no more results. + // + // 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 *ListQueuesResponse) Reset() { *m = ListQueuesResponse{} } +func (m *ListQueuesResponse) String() string { return proto.CompactTextString(m) } +func (*ListQueuesResponse) ProtoMessage() {} +func (*ListQueuesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cloudtasks_f9775ddf05248897, []int{1} +} +func (m *ListQueuesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListQueuesResponse.Unmarshal(m, b) +} +func (m *ListQueuesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListQueuesResponse.Marshal(b, m, deterministic) +} +func (dst *ListQueuesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListQueuesResponse.Merge(dst, src) +} +func (m *ListQueuesResponse) XXX_Size() int { + return xxx_messageInfo_ListQueuesResponse.Size(m) +} +func (m *ListQueuesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListQueuesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListQueuesResponse proto.InternalMessageInfo + +func (m *ListQueuesResponse) GetQueues() []*Queue { + if m != nil { + return m.Queues + } + return nil +} + +func (m *ListQueuesResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +// Request message for [GetQueue][google.cloud.tasks.v2beta3.CloudTasks.GetQueue]. +type GetQueueRequest struct { + // Required. + // + // The resource name of the queue. For example: + // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_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 *GetQueueRequest) Reset() { *m = GetQueueRequest{} } +func (m *GetQueueRequest) String() string { return proto.CompactTextString(m) } +func (*GetQueueRequest) ProtoMessage() {} +func (*GetQueueRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cloudtasks_f9775ddf05248897, []int{2} +} +func (m *GetQueueRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetQueueRequest.Unmarshal(m, b) +} +func (m *GetQueueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetQueueRequest.Marshal(b, m, deterministic) +} +func (dst *GetQueueRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetQueueRequest.Merge(dst, src) +} +func (m *GetQueueRequest) XXX_Size() int { + return xxx_messageInfo_GetQueueRequest.Size(m) +} +func (m *GetQueueRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetQueueRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetQueueRequest proto.InternalMessageInfo + +func (m *GetQueueRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +// Request message for [CreateQueue][google.cloud.tasks.v2beta3.CloudTasks.CreateQueue]. +type CreateQueueRequest struct { + // Required. + // + // The location name in which the queue will be created. + // For example: `projects/PROJECT_ID/locations/LOCATION_ID` + // + // The list of allowed locations can be obtained by calling Cloud + // Tasks' implementation of + // [ListLocations][google.cloud.location.Locations.ListLocations]. + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // Required. + // + // The queue to create. + // + // [Queue's name][google.cloud.tasks.v2beta3.Queue.name] cannot be the same as an existing queue. + Queue *Queue `protobuf:"bytes,2,opt,name=queue,proto3" json:"queue,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateQueueRequest) Reset() { *m = CreateQueueRequest{} } +func (m *CreateQueueRequest) String() string { return proto.CompactTextString(m) } +func (*CreateQueueRequest) ProtoMessage() {} +func (*CreateQueueRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cloudtasks_f9775ddf05248897, []int{3} +} +func (m *CreateQueueRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateQueueRequest.Unmarshal(m, b) +} +func (m *CreateQueueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateQueueRequest.Marshal(b, m, deterministic) +} +func (dst *CreateQueueRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateQueueRequest.Merge(dst, src) +} +func (m *CreateQueueRequest) XXX_Size() int { + return xxx_messageInfo_CreateQueueRequest.Size(m) +} +func (m *CreateQueueRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateQueueRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateQueueRequest proto.InternalMessageInfo + +func (m *CreateQueueRequest) GetParent() string { + if m != nil { + return m.Parent + } + return "" +} + +func (m *CreateQueueRequest) GetQueue() *Queue { + if m != nil { + return m.Queue + } + return nil +} + +// Request message for [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue]. +type UpdateQueueRequest struct { + // Required. + // + // The queue to create or update. + // + // The queue's [name][google.cloud.tasks.v2beta3.Queue.name] must be specified. + // + // Output only fields cannot be modified using UpdateQueue. + // Any value specified for an output only field will be ignored. + // The queue's [name][google.cloud.tasks.v2beta3.Queue.name] cannot be changed. + Queue *Queue `protobuf:"bytes,1,opt,name=queue,proto3" json:"queue,omitempty"` + // A mask used to specify which fields of the queue are being updated. + // + // If empty, then all fields will be 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 *UpdateQueueRequest) Reset() { *m = UpdateQueueRequest{} } +func (m *UpdateQueueRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateQueueRequest) ProtoMessage() {} +func (*UpdateQueueRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cloudtasks_f9775ddf05248897, []int{4} +} +func (m *UpdateQueueRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateQueueRequest.Unmarshal(m, b) +} +func (m *UpdateQueueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateQueueRequest.Marshal(b, m, deterministic) +} +func (dst *UpdateQueueRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateQueueRequest.Merge(dst, src) +} +func (m *UpdateQueueRequest) XXX_Size() int { + return xxx_messageInfo_UpdateQueueRequest.Size(m) +} +func (m *UpdateQueueRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateQueueRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateQueueRequest proto.InternalMessageInfo + +func (m *UpdateQueueRequest) GetQueue() *Queue { + if m != nil { + return m.Queue + } + return nil +} + +func (m *UpdateQueueRequest) GetUpdateMask() *field_mask.FieldMask { + if m != nil { + return m.UpdateMask + } + return nil +} + +// Request message for [DeleteQueue][google.cloud.tasks.v2beta3.CloudTasks.DeleteQueue]. +type DeleteQueueRequest struct { + // Required. + // + // The queue name. For example: + // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_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 *DeleteQueueRequest) Reset() { *m = DeleteQueueRequest{} } +func (m *DeleteQueueRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteQueueRequest) ProtoMessage() {} +func (*DeleteQueueRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cloudtasks_f9775ddf05248897, []int{5} +} +func (m *DeleteQueueRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteQueueRequest.Unmarshal(m, b) +} +func (m *DeleteQueueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteQueueRequest.Marshal(b, m, deterministic) +} +func (dst *DeleteQueueRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteQueueRequest.Merge(dst, src) +} +func (m *DeleteQueueRequest) XXX_Size() int { + return xxx_messageInfo_DeleteQueueRequest.Size(m) +} +func (m *DeleteQueueRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteQueueRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteQueueRequest proto.InternalMessageInfo + +func (m *DeleteQueueRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +// Request message for [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue]. +type PurgeQueueRequest struct { + // Required. + // + // The queue name. For example: + // `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_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 *PurgeQueueRequest) Reset() { *m = PurgeQueueRequest{} } +func (m *PurgeQueueRequest) String() string { return proto.CompactTextString(m) } +func (*PurgeQueueRequest) ProtoMessage() {} +func (*PurgeQueueRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cloudtasks_f9775ddf05248897, []int{6} +} +func (m *PurgeQueueRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PurgeQueueRequest.Unmarshal(m, b) +} +func (m *PurgeQueueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PurgeQueueRequest.Marshal(b, m, deterministic) +} +func (dst *PurgeQueueRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PurgeQueueRequest.Merge(dst, src) +} +func (m *PurgeQueueRequest) XXX_Size() int { + return xxx_messageInfo_PurgeQueueRequest.Size(m) +} +func (m *PurgeQueueRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PurgeQueueRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_PurgeQueueRequest proto.InternalMessageInfo + +func (m *PurgeQueueRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +// Request message for [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue]. +type PauseQueueRequest struct { + // Required. + // + // The queue name. For example: + // `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_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 *PauseQueueRequest) Reset() { *m = PauseQueueRequest{} } +func (m *PauseQueueRequest) String() string { return proto.CompactTextString(m) } +func (*PauseQueueRequest) ProtoMessage() {} +func (*PauseQueueRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cloudtasks_f9775ddf05248897, []int{7} +} +func (m *PauseQueueRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PauseQueueRequest.Unmarshal(m, b) +} +func (m *PauseQueueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PauseQueueRequest.Marshal(b, m, deterministic) +} +func (dst *PauseQueueRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PauseQueueRequest.Merge(dst, src) +} +func (m *PauseQueueRequest) XXX_Size() int { + return xxx_messageInfo_PauseQueueRequest.Size(m) +} +func (m *PauseQueueRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PauseQueueRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_PauseQueueRequest proto.InternalMessageInfo + +func (m *PauseQueueRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +// Request message for [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue]. +type ResumeQueueRequest struct { + // Required. + // + // The queue name. For example: + // `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_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 *ResumeQueueRequest) Reset() { *m = ResumeQueueRequest{} } +func (m *ResumeQueueRequest) String() string { return proto.CompactTextString(m) } +func (*ResumeQueueRequest) ProtoMessage() {} +func (*ResumeQueueRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cloudtasks_f9775ddf05248897, []int{8} +} +func (m *ResumeQueueRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResumeQueueRequest.Unmarshal(m, b) +} +func (m *ResumeQueueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResumeQueueRequest.Marshal(b, m, deterministic) +} +func (dst *ResumeQueueRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResumeQueueRequest.Merge(dst, src) +} +func (m *ResumeQueueRequest) XXX_Size() int { + return xxx_messageInfo_ResumeQueueRequest.Size(m) +} +func (m *ResumeQueueRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ResumeQueueRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ResumeQueueRequest proto.InternalMessageInfo + +func (m *ResumeQueueRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +// Request message for listing tasks using [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks]. +type ListTasksRequest struct { + // Required. + // + // The queue name. For example: + // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be + // returned. + // + // By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all + // information is retrieved by default because some data, such as + // payloads, might be desirable to return only when needed because + // of its large size or because of the sensitivity of data that it + // contains. + // + // Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires + // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + // permission on the [Task][google.cloud.tasks.v2beta3.Task] resource. + ResponseView Task_View `protobuf:"varint,2,opt,name=response_view,json=responseView,proto3,enum=google.cloud.tasks.v2beta3.Task_View" json:"response_view,omitempty"` + // Requested page size. Fewer tasks than requested might be returned. + // + // The maximum page size is 1000. If unspecified, the page size will + // be the maximum. Fewer tasks than requested might be returned, + // even if more tasks exist; use + // [next_page_token][google.cloud.tasks.v2beta3.ListTasksResponse.next_page_token] in the + // response to determine if more tasks exist. + PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // A token identifying the page of results to 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.tasks.v2beta3.ListTasksResponse.next_page_token] returned + // from the previous call to [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks] + // method. + // + // The page token is valid for only 2 hours. + PageToken string `protobuf:"bytes,4,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 *ListTasksRequest) Reset() { *m = ListTasksRequest{} } +func (m *ListTasksRequest) String() string { return proto.CompactTextString(m) } +func (*ListTasksRequest) ProtoMessage() {} +func (*ListTasksRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cloudtasks_f9775ddf05248897, []int{9} +} +func (m *ListTasksRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListTasksRequest.Unmarshal(m, b) +} +func (m *ListTasksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListTasksRequest.Marshal(b, m, deterministic) +} +func (dst *ListTasksRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListTasksRequest.Merge(dst, src) +} +func (m *ListTasksRequest) XXX_Size() int { + return xxx_messageInfo_ListTasksRequest.Size(m) +} +func (m *ListTasksRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListTasksRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListTasksRequest proto.InternalMessageInfo + +func (m *ListTasksRequest) GetParent() string { + if m != nil { + return m.Parent + } + return "" +} + +func (m *ListTasksRequest) GetResponseView() Task_View { + if m != nil { + return m.ResponseView + } + return Task_VIEW_UNSPECIFIED +} + +func (m *ListTasksRequest) GetPageSize() int32 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *ListTasksRequest) GetPageToken() string { + if m != nil { + return m.PageToken + } + return "" +} + +// Response message for listing tasks using [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks]. +type ListTasksResponse struct { + // The list of tasks. + Tasks []*Task `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"` + // A token to retrieve next page of results. + // + // To return the next page of results, call + // [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks] with this value as the + // [page_token][google.cloud.tasks.v2beta3.ListTasksRequest.page_token]. + // + // If the next_page_token is empty, there are no more results. + 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 *ListTasksResponse) Reset() { *m = ListTasksResponse{} } +func (m *ListTasksResponse) String() string { return proto.CompactTextString(m) } +func (*ListTasksResponse) ProtoMessage() {} +func (*ListTasksResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cloudtasks_f9775ddf05248897, []int{10} +} +func (m *ListTasksResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListTasksResponse.Unmarshal(m, b) +} +func (m *ListTasksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListTasksResponse.Marshal(b, m, deterministic) +} +func (dst *ListTasksResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListTasksResponse.Merge(dst, src) +} +func (m *ListTasksResponse) XXX_Size() int { + return xxx_messageInfo_ListTasksResponse.Size(m) +} +func (m *ListTasksResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListTasksResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListTasksResponse proto.InternalMessageInfo + +func (m *ListTasksResponse) GetTasks() []*Task { + if m != nil { + return m.Tasks + } + return nil +} + +func (m *ListTasksResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken + } + return "" +} + +// Request message for getting a task using [GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask]. +type GetTaskRequest struct { + // Required. + // + // The task name. For example: + // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be + // returned. + // + // By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all + // information is retrieved by default because some data, such as + // payloads, might be desirable to return only when needed because + // of its large size or because of the sensitivity of data that it + // contains. + // + // Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires + // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + // permission on the [Task][google.cloud.tasks.v2beta3.Task] resource. + ResponseView Task_View `protobuf:"varint,2,opt,name=response_view,json=responseView,proto3,enum=google.cloud.tasks.v2beta3.Task_View" json:"response_view,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetTaskRequest) Reset() { *m = GetTaskRequest{} } +func (m *GetTaskRequest) String() string { return proto.CompactTextString(m) } +func (*GetTaskRequest) ProtoMessage() {} +func (*GetTaskRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cloudtasks_f9775ddf05248897, []int{11} +} +func (m *GetTaskRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetTaskRequest.Unmarshal(m, b) +} +func (m *GetTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetTaskRequest.Marshal(b, m, deterministic) +} +func (dst *GetTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetTaskRequest.Merge(dst, src) +} +func (m *GetTaskRequest) XXX_Size() int { + return xxx_messageInfo_GetTaskRequest.Size(m) +} +func (m *GetTaskRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetTaskRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetTaskRequest proto.InternalMessageInfo + +func (m *GetTaskRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *GetTaskRequest) GetResponseView() Task_View { + if m != nil { + return m.ResponseView + } + return Task_VIEW_UNSPECIFIED +} + +// Request message for [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. +type CreateTaskRequest struct { + // Required. + // + // The queue name. For example: + // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + // + // The queue must already exist. + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // Required. + // + // The task to add. + // + // Task names have the following format: + // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. + // The user can optionally specify a task [name][google.cloud.tasks.v2beta3.Task.name]. If a + // name is not specified then the system will generate a random + // unique task id, which will be set in the task returned in the + // [response][google.cloud.tasks.v2beta3.Task.name]. + // + // If [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] is not set or is in the + // past then Cloud Tasks will set it to the current time. + // + // Task De-duplication: + // + // Explicitly specifying a task ID enables task de-duplication. If + // a task's ID is identical to that of an existing task or a task + // that was deleted or executed recently then the call will fail + // with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. + // If the task's queue was created using Cloud Tasks, then another task with + // the same name can't be created for ~1hour after the original task was + // deleted or executed. If the task's queue was created using queue.yaml or + // queue.xml, then another task with the same name can't be created + // for ~9days after the original task was deleted or executed. + // + // Because there is an extra lookup cost to identify duplicate task + // names, these [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] calls have significantly + // increased latency. Using hashed strings for the task id or for + // the prefix of the task id is recommended. Choosing task ids that + // are sequential or have sequential prefixes, for example using a + // timestamp, causes an increase in latency and error rates in all + // task commands. The infrastructure relies on an approximately + // uniform distribution of task ids to store and serve tasks + // efficiently. + Task *Task `protobuf:"bytes,2,opt,name=task,proto3" json:"task,omitempty"` + // The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be + // returned. + // + // By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all + // information is retrieved by default because some data, such as + // payloads, might be desirable to return only when needed because + // of its large size or because of the sensitivity of data that it + // contains. + // + // Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires + // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + // permission on the [Task][google.cloud.tasks.v2beta3.Task] resource. + ResponseView Task_View `protobuf:"varint,3,opt,name=response_view,json=responseView,proto3,enum=google.cloud.tasks.v2beta3.Task_View" json:"response_view,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateTaskRequest) Reset() { *m = CreateTaskRequest{} } +func (m *CreateTaskRequest) String() string { return proto.CompactTextString(m) } +func (*CreateTaskRequest) ProtoMessage() {} +func (*CreateTaskRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cloudtasks_f9775ddf05248897, []int{12} +} +func (m *CreateTaskRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateTaskRequest.Unmarshal(m, b) +} +func (m *CreateTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateTaskRequest.Marshal(b, m, deterministic) +} +func (dst *CreateTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateTaskRequest.Merge(dst, src) +} +func (m *CreateTaskRequest) XXX_Size() int { + return xxx_messageInfo_CreateTaskRequest.Size(m) +} +func (m *CreateTaskRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateTaskRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateTaskRequest proto.InternalMessageInfo + +func (m *CreateTaskRequest) GetParent() string { + if m != nil { + return m.Parent + } + return "" +} + +func (m *CreateTaskRequest) GetTask() *Task { + if m != nil { + return m.Task + } + return nil +} + +func (m *CreateTaskRequest) GetResponseView() Task_View { + if m != nil { + return m.ResponseView + } + return Task_VIEW_UNSPECIFIED +} + +// Request message for deleting a task using +// [DeleteTask][google.cloud.tasks.v2beta3.CloudTasks.DeleteTask]. +type DeleteTaskRequest struct { + // Required. + // + // The task name. For example: + // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_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 *DeleteTaskRequest) Reset() { *m = DeleteTaskRequest{} } +func (m *DeleteTaskRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteTaskRequest) ProtoMessage() {} +func (*DeleteTaskRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cloudtasks_f9775ddf05248897, []int{13} +} +func (m *DeleteTaskRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteTaskRequest.Unmarshal(m, b) +} +func (m *DeleteTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteTaskRequest.Marshal(b, m, deterministic) +} +func (dst *DeleteTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteTaskRequest.Merge(dst, src) +} +func (m *DeleteTaskRequest) XXX_Size() int { + return xxx_messageInfo_DeleteTaskRequest.Size(m) +} +func (m *DeleteTaskRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteTaskRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteTaskRequest proto.InternalMessageInfo + +func (m *DeleteTaskRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +// Request message for forcing a task to run now using +// [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask]. +type RunTaskRequest struct { + // Required. + // + // The task name. For example: + // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be + // returned. + // + // By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all + // information is retrieved by default because some data, such as + // payloads, might be desirable to return only when needed because + // of its large size or because of the sensitivity of data that it + // contains. + // + // Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires + // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + // permission on the [Task][google.cloud.tasks.v2beta3.Task] resource. + ResponseView Task_View `protobuf:"varint,2,opt,name=response_view,json=responseView,proto3,enum=google.cloud.tasks.v2beta3.Task_View" json:"response_view,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RunTaskRequest) Reset() { *m = RunTaskRequest{} } +func (m *RunTaskRequest) String() string { return proto.CompactTextString(m) } +func (*RunTaskRequest) ProtoMessage() {} +func (*RunTaskRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cloudtasks_f9775ddf05248897, []int{14} +} +func (m *RunTaskRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RunTaskRequest.Unmarshal(m, b) +} +func (m *RunTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RunTaskRequest.Marshal(b, m, deterministic) +} +func (dst *RunTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RunTaskRequest.Merge(dst, src) +} +func (m *RunTaskRequest) XXX_Size() int { + return xxx_messageInfo_RunTaskRequest.Size(m) +} +func (m *RunTaskRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RunTaskRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RunTaskRequest proto.InternalMessageInfo + +func (m *RunTaskRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *RunTaskRequest) GetResponseView() Task_View { + if m != nil { + return m.ResponseView + } + return Task_VIEW_UNSPECIFIED +} + +func init() { + proto.RegisterType((*ListQueuesRequest)(nil), "google.cloud.tasks.v2beta3.ListQueuesRequest") + proto.RegisterType((*ListQueuesResponse)(nil), "google.cloud.tasks.v2beta3.ListQueuesResponse") + proto.RegisterType((*GetQueueRequest)(nil), "google.cloud.tasks.v2beta3.GetQueueRequest") + proto.RegisterType((*CreateQueueRequest)(nil), "google.cloud.tasks.v2beta3.CreateQueueRequest") + proto.RegisterType((*UpdateQueueRequest)(nil), "google.cloud.tasks.v2beta3.UpdateQueueRequest") + proto.RegisterType((*DeleteQueueRequest)(nil), "google.cloud.tasks.v2beta3.DeleteQueueRequest") + proto.RegisterType((*PurgeQueueRequest)(nil), "google.cloud.tasks.v2beta3.PurgeQueueRequest") + proto.RegisterType((*PauseQueueRequest)(nil), "google.cloud.tasks.v2beta3.PauseQueueRequest") + proto.RegisterType((*ResumeQueueRequest)(nil), "google.cloud.tasks.v2beta3.ResumeQueueRequest") + proto.RegisterType((*ListTasksRequest)(nil), "google.cloud.tasks.v2beta3.ListTasksRequest") + proto.RegisterType((*ListTasksResponse)(nil), "google.cloud.tasks.v2beta3.ListTasksResponse") + proto.RegisterType((*GetTaskRequest)(nil), "google.cloud.tasks.v2beta3.GetTaskRequest") + proto.RegisterType((*CreateTaskRequest)(nil), "google.cloud.tasks.v2beta3.CreateTaskRequest") + proto.RegisterType((*DeleteTaskRequest)(nil), "google.cloud.tasks.v2beta3.DeleteTaskRequest") + proto.RegisterType((*RunTaskRequest)(nil), "google.cloud.tasks.v2beta3.RunTaskRequest") +} + +// 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 + +// CloudTasksClient is the client API for CloudTasks service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type CloudTasksClient interface { + // Lists queues. + // + // Queues are returned in lexicographical order. + ListQueues(ctx context.Context, in *ListQueuesRequest, opts ...grpc.CallOption) (*ListQueuesResponse, error) + // Gets a queue. + GetQueue(ctx context.Context, in *GetQueueRequest, opts ...grpc.CallOption) (*Queue, error) + // Creates a queue. + // + // Queues created with this method allow tasks to live for a maximum of 31 + // days. After a task is 31 days old, the task will be deleted regardless of whether + // it was dispatched or not. + // + // WARNING: Using this method may have unintended side effects if you are + // using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + // Read + // [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) + // before using this method. + CreateQueue(ctx context.Context, in *CreateQueueRequest, opts ...grpc.CallOption) (*Queue, error) + // Updates a queue. + // + // This method creates the queue if it does not exist and updates + // the queue if it does exist. + // + // Queues created with this method allow tasks to live for a maximum of 31 + // days. After a task is 31 days old, the task will be deleted regardless of whether + // it was dispatched or not. + // + // WARNING: Using this method may have unintended side effects if you are + // using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + // Read + // [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) + // before using this method. + UpdateQueue(ctx context.Context, in *UpdateQueueRequest, opts ...grpc.CallOption) (*Queue, error) + // Deletes a queue. + // + // This command will delete the queue even if it has tasks in it. + // + // Note: If you delete a queue, a queue with the same name can't be created + // for 7 days. + // + // WARNING: Using this method may have unintended side effects if you are + // using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + // Read + // [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) + // before using this method. + DeleteQueue(ctx context.Context, in *DeleteQueueRequest, opts ...grpc.CallOption) (*empty.Empty, error) + // Purges a queue by deleting all of its tasks. + // + // All tasks created before this method is called are permanently deleted. + // + // Purge operations can take up to one minute to take effect. Tasks + // might be dispatched before the purge takes effect. A purge is irreversible. + PurgeQueue(ctx context.Context, in *PurgeQueueRequest, opts ...grpc.CallOption) (*Queue, error) + // Pauses the queue. + // + // If a queue is paused then the system will stop dispatching tasks + // until the queue is resumed via + // [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue]. Tasks can still be added + // when the queue is paused. A queue is paused if its + // [state][google.cloud.tasks.v2beta3.Queue.state] is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED]. + PauseQueue(ctx context.Context, in *PauseQueueRequest, opts ...grpc.CallOption) (*Queue, error) + // Resume a queue. + // + // This method resumes a queue after it has been + // [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED] or + // [DISABLED][google.cloud.tasks.v2beta3.Queue.State.DISABLED]. The state of a queue is stored + // in the queue's [state][google.cloud.tasks.v2beta3.Queue.state]; after calling this method it + // will be set to [RUNNING][google.cloud.tasks.v2beta3.Queue.State.RUNNING]. + // + // WARNING: Resuming many high-QPS queues at the same time can + // lead to target overloading. If you are resuming high-QPS + // queues, follow the 500/50/5 pattern described in + // [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). + ResumeQueue(ctx context.Context, in *ResumeQueueRequest, opts ...grpc.CallOption) (*Queue, error) + // Gets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. + // Returns an empty policy if the resource exists and does not have a policy + // set. + // + // Authorization requires the following + // [Google IAM](https://cloud.google.com/iam) permission on the specified + // resource parent: + // + // * `cloudtasks.queues.getIamPolicy` + GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) + // Sets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Replaces any existing + // policy. + // + // Note: The Cloud Console does not check queue-level IAM permissions yet. + // Project-level permissions are required to use the Cloud Console. + // + // Authorization requires the following + // [Google IAM](https://cloud.google.com/iam) permission on the specified + // resource parent: + // + // * `cloudtasks.queues.setIamPolicy` + SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) + // Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta3.Queue]. + // If the resource does not exist, this will return an empty set of + // permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. + // + // Note: This operation is designed to be used for building permission-aware + // UIs and command-line tools, not for authorization checking. This operation + // may "fail open" without warning. + TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) + // Lists the tasks in a queue. + // + // By default, only the [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC] view is retrieved + // due to performance considerations; + // [response_view][google.cloud.tasks.v2beta3.ListTasksRequest.response_view] controls the + // subset of information which is returned. + // + // The tasks may be returned in any order. The ordering may change at any + // time. + ListTasks(ctx context.Context, in *ListTasksRequest, opts ...grpc.CallOption) (*ListTasksResponse, error) + // Gets a task. + GetTask(ctx context.Context, in *GetTaskRequest, opts ...grpc.CallOption) (*Task, error) + // Creates a task and adds it to a queue. + // + // Tasks cannot be updated after creation; there is no UpdateTask command. + // + // * For [App Engine queues][google.cloud.tasks.v2beta3.AppEngineHttpQueue], the maximum task size is + // 100KB. + CreateTask(ctx context.Context, in *CreateTaskRequest, opts ...grpc.CallOption) (*Task, error) + // Deletes a task. + // + // A task can be deleted if it is scheduled or dispatched. A task + // cannot be deleted if it has executed successfully or permanently + // failed. + DeleteTask(ctx context.Context, in *DeleteTaskRequest, opts ...grpc.CallOption) (*empty.Empty, error) + // Forces a task to run now. + // + // When this method is called, Cloud Tasks will dispatch the task, even if + // the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta3.RateLimits] or + // is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED]. + // + // This command is meant to be used for manual debugging. For + // example, [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] can be used to retry a failed + // task after a fix has been made or to manually force a task to be + // dispatched now. + // + // The dispatched task is returned. That is, the task that is returned + // contains the [status][Task.status] after the task is dispatched but + // before the task is received by its target. + // + // If Cloud Tasks receives a successful response from the task's + // target, then the task will be deleted; otherwise the task's + // [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] will be reset to the time that + // [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] was called plus the retry delay specified + // in the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig]. + // + // [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] returns + // [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a + // task that has already succeeded or permanently failed. + RunTask(ctx context.Context, in *RunTaskRequest, opts ...grpc.CallOption) (*Task, error) +} + +type cloudTasksClient struct { + cc *grpc.ClientConn +} + +func NewCloudTasksClient(cc *grpc.ClientConn) CloudTasksClient { + return &cloudTasksClient{cc} +} + +func (c *cloudTasksClient) ListQueues(ctx context.Context, in *ListQueuesRequest, opts ...grpc.CallOption) (*ListQueuesResponse, error) { + out := new(ListQueuesResponse) + err := c.cc.Invoke(ctx, "/google.cloud.tasks.v2beta3.CloudTasks/ListQueues", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudTasksClient) GetQueue(ctx context.Context, in *GetQueueRequest, opts ...grpc.CallOption) (*Queue, error) { + out := new(Queue) + err := c.cc.Invoke(ctx, "/google.cloud.tasks.v2beta3.CloudTasks/GetQueue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudTasksClient) CreateQueue(ctx context.Context, in *CreateQueueRequest, opts ...grpc.CallOption) (*Queue, error) { + out := new(Queue) + err := c.cc.Invoke(ctx, "/google.cloud.tasks.v2beta3.CloudTasks/CreateQueue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudTasksClient) UpdateQueue(ctx context.Context, in *UpdateQueueRequest, opts ...grpc.CallOption) (*Queue, error) { + out := new(Queue) + err := c.cc.Invoke(ctx, "/google.cloud.tasks.v2beta3.CloudTasks/UpdateQueue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudTasksClient) DeleteQueue(ctx context.Context, in *DeleteQueueRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/google.cloud.tasks.v2beta3.CloudTasks/DeleteQueue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudTasksClient) PurgeQueue(ctx context.Context, in *PurgeQueueRequest, opts ...grpc.CallOption) (*Queue, error) { + out := new(Queue) + err := c.cc.Invoke(ctx, "/google.cloud.tasks.v2beta3.CloudTasks/PurgeQueue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudTasksClient) PauseQueue(ctx context.Context, in *PauseQueueRequest, opts ...grpc.CallOption) (*Queue, error) { + out := new(Queue) + err := c.cc.Invoke(ctx, "/google.cloud.tasks.v2beta3.CloudTasks/PauseQueue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudTasksClient) ResumeQueue(ctx context.Context, in *ResumeQueueRequest, opts ...grpc.CallOption) (*Queue, error) { + out := new(Queue) + err := c.cc.Invoke(ctx, "/google.cloud.tasks.v2beta3.CloudTasks/ResumeQueue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudTasksClient) GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) { + out := new(v1.Policy) + err := c.cc.Invoke(ctx, "/google.cloud.tasks.v2beta3.CloudTasks/GetIamPolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudTasksClient) SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) { + out := new(v1.Policy) + err := c.cc.Invoke(ctx, "/google.cloud.tasks.v2beta3.CloudTasks/SetIamPolicy", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudTasksClient) TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) { + out := new(v1.TestIamPermissionsResponse) + err := c.cc.Invoke(ctx, "/google.cloud.tasks.v2beta3.CloudTasks/TestIamPermissions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudTasksClient) ListTasks(ctx context.Context, in *ListTasksRequest, opts ...grpc.CallOption) (*ListTasksResponse, error) { + out := new(ListTasksResponse) + err := c.cc.Invoke(ctx, "/google.cloud.tasks.v2beta3.CloudTasks/ListTasks", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudTasksClient) GetTask(ctx context.Context, in *GetTaskRequest, opts ...grpc.CallOption) (*Task, error) { + out := new(Task) + err := c.cc.Invoke(ctx, "/google.cloud.tasks.v2beta3.CloudTasks/GetTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudTasksClient) CreateTask(ctx context.Context, in *CreateTaskRequest, opts ...grpc.CallOption) (*Task, error) { + out := new(Task) + err := c.cc.Invoke(ctx, "/google.cloud.tasks.v2beta3.CloudTasks/CreateTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudTasksClient) DeleteTask(ctx context.Context, in *DeleteTaskRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/google.cloud.tasks.v2beta3.CloudTasks/DeleteTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudTasksClient) RunTask(ctx context.Context, in *RunTaskRequest, opts ...grpc.CallOption) (*Task, error) { + out := new(Task) + err := c.cc.Invoke(ctx, "/google.cloud.tasks.v2beta3.CloudTasks/RunTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// CloudTasksServer is the server API for CloudTasks service. +type CloudTasksServer interface { + // Lists queues. + // + // Queues are returned in lexicographical order. + ListQueues(context.Context, *ListQueuesRequest) (*ListQueuesResponse, error) + // Gets a queue. + GetQueue(context.Context, *GetQueueRequest) (*Queue, error) + // Creates a queue. + // + // Queues created with this method allow tasks to live for a maximum of 31 + // days. After a task is 31 days old, the task will be deleted regardless of whether + // it was dispatched or not. + // + // WARNING: Using this method may have unintended side effects if you are + // using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + // Read + // [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) + // before using this method. + CreateQueue(context.Context, *CreateQueueRequest) (*Queue, error) + // Updates a queue. + // + // This method creates the queue if it does not exist and updates + // the queue if it does exist. + // + // Queues created with this method allow tasks to live for a maximum of 31 + // days. After a task is 31 days old, the task will be deleted regardless of whether + // it was dispatched or not. + // + // WARNING: Using this method may have unintended side effects if you are + // using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + // Read + // [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) + // before using this method. + UpdateQueue(context.Context, *UpdateQueueRequest) (*Queue, error) + // Deletes a queue. + // + // This command will delete the queue even if it has tasks in it. + // + // Note: If you delete a queue, a queue with the same name can't be created + // for 7 days. + // + // WARNING: Using this method may have unintended side effects if you are + // using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + // Read + // [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) + // before using this method. + DeleteQueue(context.Context, *DeleteQueueRequest) (*empty.Empty, error) + // Purges a queue by deleting all of its tasks. + // + // All tasks created before this method is called are permanently deleted. + // + // Purge operations can take up to one minute to take effect. Tasks + // might be dispatched before the purge takes effect. A purge is irreversible. + PurgeQueue(context.Context, *PurgeQueueRequest) (*Queue, error) + // Pauses the queue. + // + // If a queue is paused then the system will stop dispatching tasks + // until the queue is resumed via + // [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue]. Tasks can still be added + // when the queue is paused. A queue is paused if its + // [state][google.cloud.tasks.v2beta3.Queue.state] is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED]. + PauseQueue(context.Context, *PauseQueueRequest) (*Queue, error) + // Resume a queue. + // + // This method resumes a queue after it has been + // [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED] or + // [DISABLED][google.cloud.tasks.v2beta3.Queue.State.DISABLED]. The state of a queue is stored + // in the queue's [state][google.cloud.tasks.v2beta3.Queue.state]; after calling this method it + // will be set to [RUNNING][google.cloud.tasks.v2beta3.Queue.State.RUNNING]. + // + // WARNING: Resuming many high-QPS queues at the same time can + // lead to target overloading. If you are resuming high-QPS + // queues, follow the 500/50/5 pattern described in + // [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). + ResumeQueue(context.Context, *ResumeQueueRequest) (*Queue, error) + // Gets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. + // Returns an empty policy if the resource exists and does not have a policy + // set. + // + // Authorization requires the following + // [Google IAM](https://cloud.google.com/iam) permission on the specified + // resource parent: + // + // * `cloudtasks.queues.getIamPolicy` + GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error) + // Sets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Replaces any existing + // policy. + // + // Note: The Cloud Console does not check queue-level IAM permissions yet. + // Project-level permissions are required to use the Cloud Console. + // + // Authorization requires the following + // [Google IAM](https://cloud.google.com/iam) permission on the specified + // resource parent: + // + // * `cloudtasks.queues.setIamPolicy` + SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error) + // Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta3.Queue]. + // If the resource does not exist, this will return an empty set of + // permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. + // + // Note: This operation is designed to be used for building permission-aware + // UIs and command-line tools, not for authorization checking. This operation + // may "fail open" without warning. + TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error) + // Lists the tasks in a queue. + // + // By default, only the [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC] view is retrieved + // due to performance considerations; + // [response_view][google.cloud.tasks.v2beta3.ListTasksRequest.response_view] controls the + // subset of information which is returned. + // + // The tasks may be returned in any order. The ordering may change at any + // time. + ListTasks(context.Context, *ListTasksRequest) (*ListTasksResponse, error) + // Gets a task. + GetTask(context.Context, *GetTaskRequest) (*Task, error) + // Creates a task and adds it to a queue. + // + // Tasks cannot be updated after creation; there is no UpdateTask command. + // + // * For [App Engine queues][google.cloud.tasks.v2beta3.AppEngineHttpQueue], the maximum task size is + // 100KB. + CreateTask(context.Context, *CreateTaskRequest) (*Task, error) + // Deletes a task. + // + // A task can be deleted if it is scheduled or dispatched. A task + // cannot be deleted if it has executed successfully or permanently + // failed. + DeleteTask(context.Context, *DeleteTaskRequest) (*empty.Empty, error) + // Forces a task to run now. + // + // When this method is called, Cloud Tasks will dispatch the task, even if + // the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta3.RateLimits] or + // is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED]. + // + // This command is meant to be used for manual debugging. For + // example, [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] can be used to retry a failed + // task after a fix has been made or to manually force a task to be + // dispatched now. + // + // The dispatched task is returned. That is, the task that is returned + // contains the [status][Task.status] after the task is dispatched but + // before the task is received by its target. + // + // If Cloud Tasks receives a successful response from the task's + // target, then the task will be deleted; otherwise the task's + // [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] will be reset to the time that + // [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] was called plus the retry delay specified + // in the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig]. + // + // [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] returns + // [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a + // task that has already succeeded or permanently failed. + RunTask(context.Context, *RunTaskRequest) (*Task, error) +} + +func RegisterCloudTasksServer(s *grpc.Server, srv CloudTasksServer) { + s.RegisterService(&_CloudTasks_serviceDesc, srv) +} + +func _CloudTasks_ListQueues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListQueuesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudTasksServer).ListQueues(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.cloud.tasks.v2beta3.CloudTasks/ListQueues", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudTasksServer).ListQueues(ctx, req.(*ListQueuesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudTasks_GetQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetQueueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudTasksServer).GetQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.cloud.tasks.v2beta3.CloudTasks/GetQueue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudTasksServer).GetQueue(ctx, req.(*GetQueueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudTasks_CreateQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateQueueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudTasksServer).CreateQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.cloud.tasks.v2beta3.CloudTasks/CreateQueue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudTasksServer).CreateQueue(ctx, req.(*CreateQueueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudTasks_UpdateQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateQueueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudTasksServer).UpdateQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.cloud.tasks.v2beta3.CloudTasks/UpdateQueue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudTasksServer).UpdateQueue(ctx, req.(*UpdateQueueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudTasks_DeleteQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteQueueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudTasksServer).DeleteQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.cloud.tasks.v2beta3.CloudTasks/DeleteQueue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudTasksServer).DeleteQueue(ctx, req.(*DeleteQueueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudTasks_PurgeQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PurgeQueueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudTasksServer).PurgeQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.cloud.tasks.v2beta3.CloudTasks/PurgeQueue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudTasksServer).PurgeQueue(ctx, req.(*PurgeQueueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudTasks_PauseQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PauseQueueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudTasksServer).PauseQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.cloud.tasks.v2beta3.CloudTasks/PauseQueue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudTasksServer).PauseQueue(ctx, req.(*PauseQueueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudTasks_ResumeQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ResumeQueueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudTasksServer).ResumeQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.cloud.tasks.v2beta3.CloudTasks/ResumeQueue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudTasksServer).ResumeQueue(ctx, req.(*ResumeQueueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudTasks_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1.GetIamPolicyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudTasksServer).GetIamPolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.cloud.tasks.v2beta3.CloudTasks/GetIamPolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudTasksServer).GetIamPolicy(ctx, req.(*v1.GetIamPolicyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudTasks_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1.SetIamPolicyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudTasksServer).SetIamPolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.cloud.tasks.v2beta3.CloudTasks/SetIamPolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudTasksServer).SetIamPolicy(ctx, req.(*v1.SetIamPolicyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudTasks_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1.TestIamPermissionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudTasksServer).TestIamPermissions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.cloud.tasks.v2beta3.CloudTasks/TestIamPermissions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudTasksServer).TestIamPermissions(ctx, req.(*v1.TestIamPermissionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudTasks_ListTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListTasksRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudTasksServer).ListTasks(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.cloud.tasks.v2beta3.CloudTasks/ListTasks", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudTasksServer).ListTasks(ctx, req.(*ListTasksRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudTasks_GetTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetTaskRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudTasksServer).GetTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.cloud.tasks.v2beta3.CloudTasks/GetTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudTasksServer).GetTask(ctx, req.(*GetTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudTasks_CreateTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateTaskRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudTasksServer).CreateTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.cloud.tasks.v2beta3.CloudTasks/CreateTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudTasksServer).CreateTask(ctx, req.(*CreateTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudTasks_DeleteTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteTaskRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudTasksServer).DeleteTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.cloud.tasks.v2beta3.CloudTasks/DeleteTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudTasksServer).DeleteTask(ctx, req.(*DeleteTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudTasks_RunTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RunTaskRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudTasksServer).RunTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.cloud.tasks.v2beta3.CloudTasks/RunTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudTasksServer).RunTask(ctx, req.(*RunTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _CloudTasks_serviceDesc = grpc.ServiceDesc{ + ServiceName: "google.cloud.tasks.v2beta3.CloudTasks", + HandlerType: (*CloudTasksServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ListQueues", + Handler: _CloudTasks_ListQueues_Handler, + }, + { + MethodName: "GetQueue", + Handler: _CloudTasks_GetQueue_Handler, + }, + { + MethodName: "CreateQueue", + Handler: _CloudTasks_CreateQueue_Handler, + }, + { + MethodName: "UpdateQueue", + Handler: _CloudTasks_UpdateQueue_Handler, + }, + { + MethodName: "DeleteQueue", + Handler: _CloudTasks_DeleteQueue_Handler, + }, + { + MethodName: "PurgeQueue", + Handler: _CloudTasks_PurgeQueue_Handler, + }, + { + MethodName: "PauseQueue", + Handler: _CloudTasks_PauseQueue_Handler, + }, + { + MethodName: "ResumeQueue", + Handler: _CloudTasks_ResumeQueue_Handler, + }, + { + MethodName: "GetIamPolicy", + Handler: _CloudTasks_GetIamPolicy_Handler, + }, + { + MethodName: "SetIamPolicy", + Handler: _CloudTasks_SetIamPolicy_Handler, + }, + { + MethodName: "TestIamPermissions", + Handler: _CloudTasks_TestIamPermissions_Handler, + }, + { + MethodName: "ListTasks", + Handler: _CloudTasks_ListTasks_Handler, + }, + { + MethodName: "GetTask", + Handler: _CloudTasks_GetTask_Handler, + }, + { + MethodName: "CreateTask", + Handler: _CloudTasks_CreateTask_Handler, + }, + { + MethodName: "DeleteTask", + Handler: _CloudTasks_DeleteTask_Handler, + }, + { + MethodName: "RunTask", + Handler: _CloudTasks_RunTask_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "google/cloud/tasks/v2beta3/cloudtasks.proto", +} + +func init() { + proto.RegisterFile("google/cloud/tasks/v2beta3/cloudtasks.proto", fileDescriptor_cloudtasks_f9775ddf05248897) +} + +var fileDescriptor_cloudtasks_f9775ddf05248897 = []byte{ + // 1102 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x98, 0x5b, 0x6f, 0xdc, 0x44, + 0x14, 0xc7, 0x35, 0xb9, 0xb5, 0x39, 0xdb, 0x36, 0x64, 0x44, 0xab, 0x95, 0x0b, 0xd5, 0x62, 0x29, + 0xed, 0xe2, 0x52, 0x5b, 0xd9, 0xd2, 0x86, 0x6e, 0xa0, 0x4d, 0xd3, 0x36, 0x11, 0x04, 0xa4, 0xad, + 0x37, 0xf0, 0xc0, 0xcb, 0xca, 0xd9, 0x4c, 0x2c, 0x93, 0xf5, 0xa5, 0x1e, 0x3b, 0x81, 0x42, 0x84, + 0xc4, 0x23, 0x0f, 0xbc, 0x14, 0x21, 0xde, 0xb8, 0x0a, 0xc4, 0x03, 0x2f, 0x3c, 0xf3, 0x2d, 0xf8, + 0x0a, 0x7c, 0x10, 0x34, 0x17, 0xaf, 0x9d, 0x75, 0xd6, 0x76, 0x16, 0xe8, 0x53, 0x76, 0xe6, 0xfc, + 0x67, 0xce, 0xcf, 0x67, 0x8e, 0xe7, 0x1c, 0x07, 0xae, 0xdb, 0xbe, 0x6f, 0x0f, 0x88, 0x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0xad, 0xa9, 0xab, 0x13, 0xa2, + 0xb5, 0xc3, 0xd8, 0x6b, 0x23, 0x6d, 0xfd, 0x33, 0xb8, 0xd2, 0xf7, 0xdd, 0x02, 0x77, 0xeb, 0x0b, + 0x69, 0x23, 0xd9, 0x61, 0xe1, 0xe9, 0xa0, 0x0f, 0xef, 0x49, 0xb9, 0xed, 0x0f, 0x2c, 0xcf, 0xd6, + 0xfd, 0xd0, 0x36, 0x6c, 0xe2, 0xf1, 0xe0, 0x19, 0xc2, 0x64, 0x05, 0x0e, 0x3d, 0xe9, 0x1f, 0x1b, + 0xab, 0x7c, 0xf4, 0xe3, 0xd4, 0xec, 0xf6, 0xfd, 0xee, 0x56, 0x77, 0x67, 0x8e, 0xaf, 0xb9, 0xf9, + 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x27, 0xc1, 0x2c, 0x59, 0x9a, 0x11, 0x00, 0x00, +} diff --git a/googleapis/cloud/tasks/v2beta3/queue.pb.go b/googleapis/cloud/tasks/v2beta3/queue.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..dbc1ae3615cb399ac0f3c450c72cbe0cf6502e5d --- /dev/null +++ b/googleapis/cloud/tasks/v2beta3/queue.pb.go @@ -0,0 +1,629 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/cloud/tasks/v2beta3/queue.proto + +package tasks // import "google.golang.org/genproto/googleapis/cloud/tasks/v2beta3" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import duration "github.com/golang/protobuf/ptypes/duration" +import timestamp "github.com/golang/protobuf/ptypes/timestamp" +import _ "google.golang.org/genproto/googleapis/api/annotations" + +// 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 queue. +type Queue_State int32 + +const ( + // Unspecified state. + Queue_STATE_UNSPECIFIED Queue_State = 0 + // The queue is running. Tasks can be dispatched. + // + // If the queue was created using Cloud Tasks and the queue has + // had no activity (method calls or task dispatches) for 30 days, + // the queue may take a few minutes to re-activate. Some method + // calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and + // tasks may not be dispatched for a few minutes until the queue + // has been re-activated. + Queue_RUNNING Queue_State = 1 + // Tasks are paused by the user. If the queue is paused then Cloud + // Tasks will stop delivering tasks from it, but more tasks can + // still be added to it by the user. + Queue_PAUSED Queue_State = 2 + // The queue is disabled. + // + // A queue becomes `DISABLED` when + // [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref) or + // [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref) is uploaded + // which does not contain the queue. You cannot directly disable a queue. + // + // When a queue is disabled, tasks can still be added to a queue + // but the tasks are not dispatched. + // + // To permanently delete this queue and all of its tasks, call + // [DeleteQueue][google.cloud.tasks.v2beta3.CloudTasks.DeleteQueue]. + Queue_DISABLED Queue_State = 3 +) + +var Queue_State_name = map[int32]string{ + 0: "STATE_UNSPECIFIED", + 1: "RUNNING", + 2: "PAUSED", + 3: "DISABLED", +} +var Queue_State_value = map[string]int32{ + "STATE_UNSPECIFIED": 0, + "RUNNING": 1, + "PAUSED": 2, + "DISABLED": 3, +} + +func (x Queue_State) String() string { + return proto.EnumName(Queue_State_name, int32(x)) +} +func (Queue_State) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_queue_8db6f37c41062a73, []int{0, 0} +} + +// A queue is a container of related tasks. Queues are configured to manage +// how those tasks are dispatched. Configurable properties include rate limits, +// retry options, queue types, and others. +type Queue struct { + // Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta3.CloudTasks.CreateQueue], + // after which it becomes output only. + // + // The queue name. + // + // The queue name must have the following format: + // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_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 queue'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/. + // * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or + // hyphens (-). The maximum length is 100 characters. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta3.CloudTasks.CreateQueue][], + // after which the queue config type becomes output only, though fields within + // the config are mutable. + // + // The queue's type. + // + // The type applies to all tasks in the queue. + // + // Types that are valid to be assigned to QueueType: + // *Queue_AppEngineHttpQueue + QueueType isQueue_QueueType `protobuf_oneof:"queue_type"` + // Rate limits for task dispatches. + // + // [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] and + // [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] are related because they both + // control task attempts however they control how tasks are + // attempted in different ways: + // + // * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] controls the total rate of + // dispatches from a queue (i.e. all traffic dispatched from the + // queue, regardless of whether the dispatch is from a first + // attempt or a retry). + // * [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls what happens to + // particular a task after its first attempt fails. That is, + // [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls task retries (the + // second attempt, third attempt, etc). + RateLimits *RateLimits `protobuf:"bytes,4,opt,name=rate_limits,json=rateLimits,proto3" json:"rate_limits,omitempty"` + // Settings that determine the retry behavior. + // + // * For tasks created using Cloud Tasks: the queue-level retry settings + // apply to all tasks in the queue that were created using Cloud Tasks. + // Retry settings cannot be set on individual tasks. + // * For tasks created using the App Engine SDK: the queue-level retry + // settings apply to all tasks in the queue which do not have retry settings + // explicitly set on the task and were created by the App Engine SDK. See + // [App Engine documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks). + RetryConfig *RetryConfig `protobuf:"bytes,5,opt,name=retry_config,json=retryConfig,proto3" json:"retry_config,omitempty"` + // Output only. The state of the queue. + // + // `state` can only be changed by called + // [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue], + // [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue], or uploading + // [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref). + // [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] cannot be used to change `state`. + State Queue_State `protobuf:"varint,6,opt,name=state,proto3,enum=google.cloud.tasks.v2beta3.Queue_State" json:"state,omitempty"` + // Output only. The last time this queue was purged. + // + // All tasks that were [created][google.cloud.tasks.v2beta3.Task.create_time] before this time + // were purged. + // + // A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue], the + // [App Engine Task Queue SDK, or the Cloud Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue). + // + // Purge time will be truncated to the nearest microsecond. Purge + // time will be unset if the queue has never been purged. + PurgeTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=purge_time,json=purgeTime,proto3" json:"purge_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Queue) Reset() { *m = Queue{} } +func (m *Queue) String() string { return proto.CompactTextString(m) } +func (*Queue) ProtoMessage() {} +func (*Queue) Descriptor() ([]byte, []int) { + return fileDescriptor_queue_8db6f37c41062a73, []int{0} +} +func (m *Queue) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Queue.Unmarshal(m, b) +} +func (m *Queue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Queue.Marshal(b, m, deterministic) +} +func (dst *Queue) XXX_Merge(src proto.Message) { + xxx_messageInfo_Queue.Merge(dst, src) +} +func (m *Queue) XXX_Size() int { + return xxx_messageInfo_Queue.Size(m) +} +func (m *Queue) XXX_DiscardUnknown() { + xxx_messageInfo_Queue.DiscardUnknown(m) +} + +var xxx_messageInfo_Queue proto.InternalMessageInfo + +func (m *Queue) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type isQueue_QueueType interface { + isQueue_QueueType() +} + +type Queue_AppEngineHttpQueue struct { + AppEngineHttpQueue *AppEngineHttpQueue `protobuf:"bytes,3,opt,name=app_engine_http_queue,json=appEngineHttpQueue,proto3,oneof"` +} + +func (*Queue_AppEngineHttpQueue) isQueue_QueueType() {} + +func (m *Queue) GetQueueType() isQueue_QueueType { + if m != nil { + return m.QueueType + } + return nil +} + +func (m *Queue) GetAppEngineHttpQueue() *AppEngineHttpQueue { + if x, ok := m.GetQueueType().(*Queue_AppEngineHttpQueue); ok { + return x.AppEngineHttpQueue + } + return nil +} + +func (m *Queue) GetRateLimits() *RateLimits { + if m != nil { + return m.RateLimits + } + return nil +} + +func (m *Queue) GetRetryConfig() *RetryConfig { + if m != nil { + return m.RetryConfig + } + return nil +} + +func (m *Queue) GetState() Queue_State { + if m != nil { + return m.State + } + return Queue_STATE_UNSPECIFIED +} + +func (m *Queue) GetPurgeTime() *timestamp.Timestamp { + if m != nil { + return m.PurgeTime + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Queue) 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 _Queue_OneofMarshaler, _Queue_OneofUnmarshaler, _Queue_OneofSizer, []interface{}{ + (*Queue_AppEngineHttpQueue)(nil), + } +} + +func _Queue_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Queue) + // queue_type + switch x := m.QueueType.(type) { + case *Queue_AppEngineHttpQueue: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.AppEngineHttpQueue); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("Queue.QueueType has unexpected type %T", x) + } + return nil +} + +func _Queue_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Queue) + switch tag { + case 3: // queue_type.app_engine_http_queue + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(AppEngineHttpQueue) + err := b.DecodeMessage(msg) + m.QueueType = &Queue_AppEngineHttpQueue{msg} + return true, err + default: + return false, nil + } +} + +func _Queue_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Queue) + // queue_type + switch x := m.QueueType.(type) { + case *Queue_AppEngineHttpQueue: + s := proto.Size(x.AppEngineHttpQueue) + 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 +} + +// Rate limits. +// +// This message determines the maximum rate that tasks can be dispatched by a +// queue, regardless of whether the dispatch is a first task attempt or a retry. +// +// Note: The debugging command, [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask], will run a task +// even if the queue has reached its [RateLimits][google.cloud.tasks.v2beta3.RateLimits]. +type RateLimits struct { + // The maximum rate at which tasks are dispatched from this queue. + // + // If unspecified when the queue is created, Cloud Tasks will pick the + // default. + // + // * For [App Engine queues][google.cloud.tasks.v2beta3.AppEngineHttpQueue], the maximum allowed value + // is 500. + // + // + // This field has the same meaning as + // [rate in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate). + MaxDispatchesPerSecond float64 `protobuf:"fixed64,1,opt,name=max_dispatches_per_second,json=maxDispatchesPerSecond,proto3" json:"max_dispatches_per_second,omitempty"` + // Output only. The max burst size. + // + // Max burst size limits how fast tasks in queue are processed when + // many tasks are in the queue and the rate is high. This field + // allows the queue to have a high rate so processing starts shortly + // after a task is enqueued, but still limits resource usage when + // many tasks are enqueued in a short period of time. + // + // The [token bucket](https://wikipedia.org/wiki/Token_Bucket) + // algorithm is used to control the rate of task dispatches. Each + // queue has a token bucket that holds tokens, up to the maximum + // specified by `max_burst_size`. Each time a task is dispatched, a + // token is removed from the bucket. Tasks will be dispatched until + // the queue's bucket runs out of tokens. The bucket will be + // continuously refilled with new tokens based on + // [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second]. + // + // Cloud Tasks will pick the value of `max_burst_size` based on the + // value of + // [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second]. + // + // For App Engine queues that were created or updated using + // `queue.yaml/xml`, `max_burst_size` is equal to + // [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size). + // Since `max_burst_size` is output only, if + // [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] is called on a queue + // created by `queue.yaml/xml`, `max_burst_size` will be reset based + // on the value of + // [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second], + // regardless of whether + // [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second] + // is updated. + // + MaxBurstSize int32 `protobuf:"varint,2,opt,name=max_burst_size,json=maxBurstSize,proto3" json:"max_burst_size,omitempty"` + // The maximum number of concurrent tasks that Cloud Tasks allows + // to be dispatched for this queue. After this threshold has been + // reached, Cloud Tasks stops dispatching tasks until the number of + // concurrent requests decreases. + // + // If unspecified when the queue is created, Cloud Tasks will pick the + // default. + // + // + // The maximum allowed value is 5,000. + // + // + // This field has the same meaning as + // [max_concurrent_requests in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests). + MaxConcurrentDispatches int32 `protobuf:"varint,3,opt,name=max_concurrent_dispatches,json=maxConcurrentDispatches,proto3" json:"max_concurrent_dispatches,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RateLimits) Reset() { *m = RateLimits{} } +func (m *RateLimits) String() string { return proto.CompactTextString(m) } +func (*RateLimits) ProtoMessage() {} +func (*RateLimits) Descriptor() ([]byte, []int) { + return fileDescriptor_queue_8db6f37c41062a73, []int{1} +} +func (m *RateLimits) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RateLimits.Unmarshal(m, b) +} +func (m *RateLimits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RateLimits.Marshal(b, m, deterministic) +} +func (dst *RateLimits) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateLimits.Merge(dst, src) +} +func (m *RateLimits) XXX_Size() int { + return xxx_messageInfo_RateLimits.Size(m) +} +func (m *RateLimits) XXX_DiscardUnknown() { + xxx_messageInfo_RateLimits.DiscardUnknown(m) +} + +var xxx_messageInfo_RateLimits proto.InternalMessageInfo + +func (m *RateLimits) GetMaxDispatchesPerSecond() float64 { + if m != nil { + return m.MaxDispatchesPerSecond + } + return 0 +} + +func (m *RateLimits) GetMaxBurstSize() int32 { + if m != nil { + return m.MaxBurstSize + } + return 0 +} + +func (m *RateLimits) GetMaxConcurrentDispatches() int32 { + if m != nil { + return m.MaxConcurrentDispatches + } + return 0 +} + +// Retry config. +// +// These settings determine when a failed task attempt is retried. +type RetryConfig struct { + // Number of attempts per task. + // + // Cloud Tasks will attempt the task `max_attempts` times (that is, if the + // first attempt fails, then there will be `max_attempts - 1` retries). Must + // be >= -1. + // + // If unspecified when the queue is created, Cloud Tasks will pick the + // default. + // + // -1 indicates unlimited attempts. + // + // This field has the same meaning as + // [task_retry_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). + MaxAttempts int32 `protobuf:"varint,1,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"` + // If positive, `max_retry_duration` specifies the time limit for + // retrying a failed task, measured from when the task was first + // attempted. Once `max_retry_duration` time has passed *and* the + // task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts] + // times, no further attempts will be made and the task will be + // deleted. + // + // If zero, then the task age is unlimited. + // + // If unspecified when the queue is created, Cloud Tasks will pick the + // default. + // + // + // `max_retry_duration` will be truncated to the nearest second. + // + // This field has the same meaning as + // [task_age_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). + MaxRetryDuration *duration.Duration `protobuf:"bytes,2,opt,name=max_retry_duration,json=maxRetryDuration,proto3" json:"max_retry_duration,omitempty"` + // A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between + // [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and + // [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails, + // if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be + // retried. + // + // If unspecified when the queue is created, Cloud Tasks will pick the + // default. + // + // + // `min_backoff` will be truncated to the nearest second. + // + // This field has the same meaning as + // [min_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). + MinBackoff *duration.Duration `protobuf:"bytes,3,opt,name=min_backoff,json=minBackoff,proto3" json:"min_backoff,omitempty"` + // A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between + // [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and + // [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails, + // if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be + // retried. + // + // If unspecified when the queue is created, Cloud Tasks will pick the + // default. + // + // + // `max_backoff` will be truncated to the nearest second. + // + // This field has the same meaning as + // [max_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). + MaxBackoff *duration.Duration `protobuf:"bytes,4,opt,name=max_backoff,json=maxBackoff,proto3" json:"max_backoff,omitempty"` + // The time between retries will double `max_doublings` times. + // + // A task's retry interval starts at + // [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff], then doubles + // `max_doublings` times, then increases linearly, and finally + // retries retries at intervals of + // [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] up to + // [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts] times. + // + // For example, if [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] is 10s, + // [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] is 300s, and + // `max_doublings` is 3, then the a task will first be retried in + // 10s. The retry interval will double three times, and then + // increase linearly by 2^3 * 10s. Finally, the task will retry at + // intervals of [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] until the + // task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts] + // times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s, + // 240s, 300s, 300s, .... + // + // If unspecified when the queue is created, Cloud Tasks will pick the + // default. + // + // + // This field has the same meaning as + // [max_doublings in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). + 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_queue_8db6f37c41062a73, []int{2} +} +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 (dst *RetryConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_RetryConfig.Merge(dst, 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) GetMaxAttempts() int32 { + if m != nil { + return m.MaxAttempts + } + return 0 +} + +func (m *RetryConfig) GetMaxRetryDuration() *duration.Duration { + if m != nil { + return m.MaxRetryDuration + } + return nil +} + +func (m *RetryConfig) GetMinBackoff() *duration.Duration { + if m != nil { + return m.MinBackoff + } + return nil +} + +func (m *RetryConfig) GetMaxBackoff() *duration.Duration { + if m != nil { + return m.MaxBackoff + } + return nil +} + +func (m *RetryConfig) GetMaxDoublings() int32 { + if m != nil { + return m.MaxDoublings + } + return 0 +} + +func init() { + proto.RegisterType((*Queue)(nil), "google.cloud.tasks.v2beta3.Queue") + proto.RegisterType((*RateLimits)(nil), "google.cloud.tasks.v2beta3.RateLimits") + proto.RegisterType((*RetryConfig)(nil), "google.cloud.tasks.v2beta3.RetryConfig") + proto.RegisterEnum("google.cloud.tasks.v2beta3.Queue_State", Queue_State_name, Queue_State_value) +} + +func init() { + proto.RegisterFile("google/cloud/tasks/v2beta3/queue.proto", fileDescriptor_queue_8db6f37c41062a73) +} + +var fileDescriptor_queue_8db6f37c41062a73 = []byte{ + // 646 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0xcf, 0x4e, 0xdb, 0x4e, + 0x10, 0xc7, 0x31, 0x10, 0xf8, 0x31, 0xce, 0x0f, 0xa5, 0x2b, 0xd1, 0x86, 0xa8, 0xa2, 0x69, 0x5a, + 0x41, 0x4e, 0xb6, 0x04, 0x27, 0xa8, 0xaa, 0x2a, 0x21, 0x29, 0xa4, 0x42, 0x51, 0xea, 0xc0, 0xa5, + 0x17, 0x6b, 0xe3, 0x6c, 0x8c, 0x45, 0xf6, 0x4f, 0x77, 0xd7, 0x55, 0xe0, 0x41, 0xfa, 0x0e, 0x7d, + 0xaf, 0x3e, 0x48, 0xe5, 0xb1, 0x0d, 0xa8, 0xb4, 0xe9, 0xcd, 0x33, 0xf3, 0x99, 0xef, 0xcc, 0xce, + 0x4c, 0x02, 0xfb, 0xb1, 0x94, 0xf1, 0x9c, 0xf9, 0xd1, 0x5c, 0xa6, 0x53, 0xdf, 0x52, 0x73, 0x63, + 0xfc, 0x6f, 0x87, 0x13, 0x66, 0xe9, 0x91, 0xff, 0x35, 0x65, 0x29, 0xf3, 0x94, 0x96, 0x56, 0x92, + 0x46, 0xce, 0x79, 0xc8, 0x79, 0xc8, 0x79, 0x05, 0xd7, 0x78, 0x59, 0x68, 0x50, 0x95, 0xf8, 0x54, + 0x08, 0x69, 0xa9, 0x4d, 0xa4, 0x30, 0x79, 0x66, 0xe3, 0x60, 0x49, 0x05, 0x4b, 0x75, 0xcc, 0x6c, + 0x01, 0xee, 0x15, 0x20, 0x5a, 0x93, 0x74, 0xe6, 0x4f, 0x53, 0x8d, 0x4a, 0x45, 0xfc, 0xd5, 0xef, + 0x71, 0x9b, 0x70, 0x66, 0x2c, 0xe5, 0x2a, 0x07, 0x5a, 0x3f, 0xd7, 0xa0, 0xf2, 0x39, 0xeb, 0x99, + 0x10, 0x58, 0x17, 0x94, 0xb3, 0xba, 0xd3, 0x74, 0xda, 0x5b, 0x01, 0x7e, 0x93, 0x08, 0x76, 0xa8, + 0x52, 0x21, 0x13, 0x71, 0x22, 0x58, 0x78, 0x6d, 0xad, 0x0a, 0xf1, 0x81, 0xf5, 0xb5, 0xa6, 0xd3, + 0x76, 0x0f, 0x3d, 0xef, 0xef, 0x2f, 0xf4, 0x3a, 0x4a, 0xf5, 0x31, 0xef, 0xdc, 0x5a, 0x85, 0x25, + 0xce, 0x57, 0x02, 0x42, 0x9f, 0x78, 0xc9, 0x19, 0xb8, 0x9a, 0x5a, 0x16, 0xce, 0x13, 0x9e, 0x58, + 0x53, 0x5f, 0x47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, 0x39, + 0xa7, 0x22, 0xf6, 0xa4, 0x8e, 0xfd, 0x98, 0x09, 0x6c, 0xc4, 0xcf, 0x43, 0x54, 0x25, 0xe6, 0x4f, + 0x7f, 0x32, 0xef, 0xd0, 0x9a, 0x6c, 0x20, 0x7b, 0xf4, 0x2b, 0x00, 0x00, 0xff, 0xff, 0xdd, 0x0d, + 0x1e, 0x57, 0xf1, 0x04, 0x00, 0x00, +} diff --git a/googleapis/cloud/tasks/v2beta3/target.pb.go b/googleapis/cloud/tasks/v2beta3/target.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..faee65ebf3c4af2805fdb57be4f6e03a459cff03 --- /dev/null +++ b/googleapis/cloud/tasks/v2beta3/target.pb.go @@ -0,0 +1,476 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/cloud/tasks/v2beta3/target.proto + +package tasks // import "google.golang.org/genproto/googleapis/cloud/tasks/v2beta3" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import _ "google.golang.org/genproto/googleapis/api/annotations" + +// 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 task. +type HttpMethod int32 + +const ( + // HTTP method unspecified + 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 +) + +var HttpMethod_name = map[int32]string{ + 0: "HTTP_METHOD_UNSPECIFIED", + 1: "POST", + 2: "GET", + 3: "HEAD", + 4: "PUT", + 5: "DELETE", +} +var HttpMethod_value = map[string]int32{ + "HTTP_METHOD_UNSPECIFIED": 0, + "POST": 1, + "GET": 2, + "HEAD": 3, + "PUT": 4, + "DELETE": 5, +} + +func (x HttpMethod) String() string { + return proto.EnumName(HttpMethod_name, int32(x)) +} +func (HttpMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_target_d181648443660751, []int{0} +} + +// App Engine HTTP queue. +// +// The task will be delivered to the App Engine application hostname +// specified by its [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] and [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest]. +// The documentation for [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] explains how the +// task's host URL is constructed. +// +// Using [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] requires +// [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control) +// Google IAM permission for the project +// and the following scope: +// +// `https://www.googleapis.com/auth/cloud-platform` +type AppEngineHttpQueue struct { + // Overrides for the + // [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing]. + // + // If set, `app_engine_routing_override` is used for all tasks in + // the queue, no matter what the setting is for the + // [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing]. + AppEngineRoutingOverride *AppEngineRouting `protobuf:"bytes,1,opt,name=app_engine_routing_override,json=appEngineRoutingOverride,proto3" json:"app_engine_routing_override,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AppEngineHttpQueue) Reset() { *m = AppEngineHttpQueue{} } +func (m *AppEngineHttpQueue) String() string { return proto.CompactTextString(m) } +func (*AppEngineHttpQueue) ProtoMessage() {} +func (*AppEngineHttpQueue) Descriptor() ([]byte, []int) { + return fileDescriptor_target_d181648443660751, []int{0} +} +func (m *AppEngineHttpQueue) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AppEngineHttpQueue.Unmarshal(m, b) +} +func (m *AppEngineHttpQueue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AppEngineHttpQueue.Marshal(b, m, deterministic) +} +func (dst *AppEngineHttpQueue) XXX_Merge(src proto.Message) { + xxx_messageInfo_AppEngineHttpQueue.Merge(dst, src) +} +func (m *AppEngineHttpQueue) XXX_Size() int { + return xxx_messageInfo_AppEngineHttpQueue.Size(m) +} +func (m *AppEngineHttpQueue) XXX_DiscardUnknown() { + xxx_messageInfo_AppEngineHttpQueue.DiscardUnknown(m) +} + +var xxx_messageInfo_AppEngineHttpQueue proto.InternalMessageInfo + +func (m *AppEngineHttpQueue) GetAppEngineRoutingOverride() *AppEngineRouting { + if m != nil { + return m.AppEngineRoutingOverride + } + return nil +} + +// App Engine HTTP request. +// +// The message defines the HTTP request that is sent to an App Engine app when +// the task is dispatched. +// +// This proto can only be used for tasks in a queue which has +// [app_engine_http_queue][google.cloud.tasks.v2beta3.Queue.app_engine_http_queue] set. +// +// Using [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] requires +// [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control) +// Google IAM permission for the project +// and the following scope: +// +// `https://www.googleapis.com/auth/cloud-platform` +// +// The task will be delivered to the App Engine app which belongs to the same +// project as the queue. For more information, see +// [How Requests are Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) +// and how routing is affected by +// [dispatch files](https://cloud.google.com/appengine/docs/python/config/dispatchref). +// +// The [AppEngineRouting][google.cloud.tasks.v2beta3.AppEngineRouting] used to construct the URL that the task is +// delivered to can be set at the queue-level or task-level: +// +// * If set, +// [app_engine_routing_override][google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override] +// is used for all tasks in the queue, no matter what the setting +// is for the +// [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing]. +// +// +// The `url` that the task will be sent to is: +// +// * `url =` [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] `+` +// [relative_uri][google.cloud.tasks.v2beta3.AppEngineHttpRequest.relative_uri] +// +// The task attempt has succeeded if the app's request handler returns +// an HTTP response code in the range [`200` - `299`]. `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 is a failed attempt. +type AppEngineHttpRequest struct { + // The HTTP method to use for the request. The default is POST. + // + // The app's request handler for the task's target URL must be able to handle + // HTTP requests with this http_method, otherwise the task attempt will fail + // with error code 405 (Method Not Allowed). See + // [Writing a push task request handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) + // and the documentation for the request handlers in the language your app is + // written in e.g. + // [Python Request Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass). + HttpMethod HttpMethod `protobuf:"varint,1,opt,name=http_method,json=httpMethod,proto3,enum=google.cloud.tasks.v2beta3.HttpMethod" json:"http_method,omitempty"` + // Task-level setting for App Engine routing. + // + // If set, + // [app_engine_routing_override][google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override] + // is used for all tasks in the queue, no matter what the setting is for the + // [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing]. + AppEngineRouting *AppEngineRouting `protobuf:"bytes,2,opt,name=app_engine_routing,json=appEngineRouting,proto3" json:"app_engine_routing,omitempty"` + // The relative URI. + // + // The relative URI must begin with "/" and must be a valid HTTP relative URI. + // It can contain a path and query string arguments. + // If the relative URI 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 + // [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. + // Repeated headers are not supported but a header value can contain commas. + // + // Cloud Tasks 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 Tasks will append + // `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + // modified `User-Agent`. + // + // If the task has a [body][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body], Cloud + // Tasks sets the following headers: + // + // * `Content-Type`: By default, the `Content-Type` header is set to + // `"application/octet-stream"`. The default can be overridden by explicitly + // setting `Content-Type` to a particular media type when the + // [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. + // For example, `Content-Type` can be set to `"application/json"`. + // * `Content-Length`: This is computed by Cloud Tasks. This value is + // output only. It cannot be changed. + // + // The headers below cannot be set or overridden: + // + // * `Host` + // * `X-Google-*` + // * `X-AppEngine-*` + // + // In addition, Cloud Tasks sets some headers when the task is dispatched, + // such as headers containing information about the task; see + // [request headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + // These headers are set only when the task is dispatched, so they are not + // visible when the task is returned in a Cloud Tasks response. + // + // Although there is no specific limit for the maximum number of headers or + // the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta3.Task]. For more + // information, see the [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] documentation. + 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"` + // HTTP request body. + // + // A request body is allowed only if the HTTP method is POST or PUT. It is + // an error to set a body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2beta3.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 *AppEngineHttpRequest) Reset() { *m = AppEngineHttpRequest{} } +func (m *AppEngineHttpRequest) String() string { return proto.CompactTextString(m) } +func (*AppEngineHttpRequest) ProtoMessage() {} +func (*AppEngineHttpRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_target_d181648443660751, []int{1} +} +func (m *AppEngineHttpRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AppEngineHttpRequest.Unmarshal(m, b) +} +func (m *AppEngineHttpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AppEngineHttpRequest.Marshal(b, m, deterministic) +} +func (dst *AppEngineHttpRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AppEngineHttpRequest.Merge(dst, src) +} +func (m *AppEngineHttpRequest) XXX_Size() int { + return xxx_messageInfo_AppEngineHttpRequest.Size(m) +} +func (m *AppEngineHttpRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AppEngineHttpRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AppEngineHttpRequest proto.InternalMessageInfo + +func (m *AppEngineHttpRequest) GetHttpMethod() HttpMethod { + if m != nil { + return m.HttpMethod + } + return HttpMethod_HTTP_METHOD_UNSPECIFIED +} + +func (m *AppEngineHttpRequest) GetAppEngineRouting() *AppEngineRouting { + if m != nil { + return m.AppEngineRouting + } + return nil +} + +func (m *AppEngineHttpRequest) GetRelativeUri() string { + if m != nil { + return m.RelativeUri + } + return "" +} + +func (m *AppEngineHttpRequest) GetHeaders() map[string]string { + if m != nil { + return m.Headers + } + return nil +} + +func (m *AppEngineHttpRequest) GetBody() []byte { + if m != nil { + return m.Body + } + return nil +} + +// App Engine Routing. +// +// Specifies the target URI. Since this target type dispatches tasks to secure +// app handlers, unsecure app handlers, and URIs restricted with +// [`login: admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref) +// the protocol (for example, HTTP or HTTPS) cannot be explictly specified. +// Task dispatches do not follow redirects and cannot target URI paths +// restricted with +// [`login: required`](https://cloud.google.com/appengine/docs/standard/python/config/appref) +// because tasks are not run as any user. +// +// 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 task is sent to the service which is the default + // service when the task is attempted. + // + // For some queues or tasks which were created using the App Engine + // Task Queue API, [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable + // into [service][google.cloud.tasks.v2beta3.AppEngineRouting.service], + // [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and + // [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. For example, some tasks + // which were created using the App Engine SDK use a custom domain + // name; custom domains are not parsed by Cloud Tasks. If + // [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable, then + // [service][google.cloud.tasks.v2beta3.AppEngineRouting.service], + // [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and + // [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the empty string. + Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` + // App version. + // + // By default, the task is sent to the version which is the default + // version when the task is attempted. + // + // For some queues or tasks which were created using the App Engine + // Task Queue API, [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable + // into [service][google.cloud.tasks.v2beta3.AppEngineRouting.service], + // [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and + // [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. For example, some tasks + // which were created using the App Engine SDK use a custom domain + // name; custom domains are not parsed by Cloud Tasks. If + // [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable, then + // [service][google.cloud.tasks.v2beta3.AppEngineRouting.service], + // [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and + // [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the empty string. + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + // App instance. + // + // By default, the task is sent to an instance which is available when + // the task 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 task is sent to. + // + // The host is constructed from the domain name of the app associated with + // the queue's project ID (for example <app-id>.appspot.com), and the + // [service][google.cloud.tasks.v2beta3.AppEngineRouting.service], [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], + // and [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. Tasks which were created using + // the App Engine SDK might have a custom domain name. + // + // For more information, see + // [How Requests are Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). + 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_target_d181648443660751, []int{2} +} +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 (dst *AppEngineRouting) XXX_Merge(src proto.Message) { + xxx_messageInfo_AppEngineRouting.Merge(dst, 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.RegisterType((*AppEngineHttpQueue)(nil), "google.cloud.tasks.v2beta3.AppEngineHttpQueue") + proto.RegisterType((*AppEngineHttpRequest)(nil), "google.cloud.tasks.v2beta3.AppEngineHttpRequest") + proto.RegisterMapType((map[string]string)(nil), "google.cloud.tasks.v2beta3.AppEngineHttpRequest.HeadersEntry") + proto.RegisterType((*AppEngineRouting)(nil), "google.cloud.tasks.v2beta3.AppEngineRouting") + proto.RegisterEnum("google.cloud.tasks.v2beta3.HttpMethod", HttpMethod_name, HttpMethod_value) +} + +func init() { + proto.RegisterFile("google/cloud/tasks/v2beta3/target.proto", fileDescriptor_target_d181648443660751) +} + +var fileDescriptor_target_d181648443660751 = []byte{ + // 511 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0x51, 0x6b, 0xd3, 0x50, + 0x14, 0x36, 0x4d, 0xbb, 0xae, 0xa7, 0x45, 0xc2, 0x65, 0x60, 0xe8, 0x44, 0x6a, 0x1f, 0xb4, 0x88, + 0x24, 0xd0, 0xbd, 0xc8, 0x44, 0x64, 0xb3, 0x71, 0x1d, 0x38, 0x1b, 0xb3, 0x14, 0x61, 0x3e, 0x84, + 0xdb, 0xf6, 0x90, 0x5e, 0xda, 0xdd, 0x1b, 0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, 0xb4, 0x0c, 0xd2, 0x04, 0xf3, 0xc2, 0x0b, 0xad, 0x5a, 0x41, 0x8d, 0xbd, 0xb3, + 0x91, 0x65, 0x16, 0x94, 0x3f, 0x0d, 0xad, 0x3a, 0x01, 0x38, 0x18, 0x79, 0x1f, 0xbc, 0xd0, 0xb3, + 0x1a, 0xe7, 0x09, 0x3c, 0x99, 0x8b, 0xdb, 0x7b, 0x12, 0x3f, 0x6f, 0x87, 0xfa, 0x98, 0xfc, 0xe2, + 0x22, 0x7c, 0xe3, 0xe6, 0x6d, 0x25, 0x8d, 0xc5, 0x9a, 0xf2, 0xd8, 0x11, 0x32, 0x76, 0x63, 0xe4, + 0xfa, 0x5e, 0xdc, 0xf2, 0x13, 0x4d, 0x58, 0xfa, 0xa7, 0xab, 0x7c, 0xad, 0xd1, 0xec, 0x40, 0x6b, + 0x4f, 0x7e, 0x04, 0x00, 0x00, 0xff, 0xff, 0x8e, 0x26, 0x4d, 0x45, 0xc0, 0x03, 0x00, 0x00, +} diff --git a/googleapis/cloud/tasks/v2beta3/task.pb.go b/googleapis/cloud/tasks/v2beta3/task.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..f89c19592706b7658cf070f3227b5d11571f5e78 --- /dev/null +++ b/googleapis/cloud/tasks/v2beta3/task.pb.go @@ -0,0 +1,414 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/cloud/tasks/v2beta3/task.proto + +package tasks // import "google.golang.org/genproto/googleapis/cloud/tasks/v2beta3" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import timestamp "github.com/golang/protobuf/ptypes/timestamp" +import _ "google.golang.org/genproto/googleapis/api/annotations" +import status "google.golang.org/genproto/googleapis/rpc/status" + +// 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 view specifies a subset of [Task][google.cloud.tasks.v2beta3.Task] data. +// +// When a task is returned in a response, not all +// information is retrieved by default because some data, such as +// payloads, might be desirable to return only when needed because +// of its large size or because of the sensitivity of data that it +// contains. +type Task_View int32 + +const ( + // Unspecified. Defaults to BASIC. + Task_VIEW_UNSPECIFIED Task_View = 0 + // The basic view omits fields which can be large or can contain + // sensitive data. + // + // This view does not include the + // [body in AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body]. + // Bodies are desirable to return only when needed, because they + // can be large and because of the sensitivity of the data that you + // choose to store in it. + Task_BASIC Task_View = 1 + // All information is returned. + // + // Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires + // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + // permission on the [Queue][google.cloud.tasks.v2beta3.Queue] resource. + Task_FULL Task_View = 2 +) + +var Task_View_name = map[int32]string{ + 0: "VIEW_UNSPECIFIED", + 1: "BASIC", + 2: "FULL", +} +var Task_View_value = map[string]int32{ + "VIEW_UNSPECIFIED": 0, + "BASIC": 1, + "FULL": 2, +} + +func (x Task_View) String() string { + return proto.EnumName(Task_View_name, int32(x)) +} +func (Task_View) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_task_949e38cc41c5c152, []int{0, 0} +} + +// A unit of scheduled work. +type Task struct { + // Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. + // + // The task name. + // + // The task name must have the following format: + // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_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 task'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/. + // * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or + // hyphens (-). The maximum length is 100 characters. + // * `TASK_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"` + // Required. + // + // The task's payload is used by the task's target to process the task. + // A payload is valid only if it is compatible with the queue's target. + // + // Types that are valid to be assigned to PayloadType: + // *Task_AppEngineHttpRequest + PayloadType isTask_PayloadType `protobuf_oneof:"payload_type"` + // The time when the task is scheduled to be attempted. + // + // For App Engine queues, this is when the task will be attempted or retried. + // + // `schedule_time` will be truncated to the nearest microsecond. + ScheduleTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"` + // Output only. The time that the task was created. + // + // `create_time` will be truncated to the nearest second. + CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + // Output only. The number of attempts dispatched. + // + // This count includes tasks which have been dispatched but haven't + // received a response. + DispatchCount int32 `protobuf:"varint,6,opt,name=dispatch_count,json=dispatchCount,proto3" json:"dispatch_count,omitempty"` + // Output only. The number of attempts which have received a response. + ResponseCount int32 `protobuf:"varint,7,opt,name=response_count,json=responseCount,proto3" json:"response_count,omitempty"` + // Output only. The status of the task's first attempt. + // + // Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will be set. + // The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information is not retained by Cloud Tasks. + FirstAttempt *Attempt `protobuf:"bytes,8,opt,name=first_attempt,json=firstAttempt,proto3" json:"first_attempt,omitempty"` + // Output only. The status of the task's last attempt. + LastAttempt *Attempt `protobuf:"bytes,9,opt,name=last_attempt,json=lastAttempt,proto3" json:"last_attempt,omitempty"` + // Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] has + // been returned. + View Task_View `protobuf:"varint,10,opt,name=view,proto3,enum=google.cloud.tasks.v2beta3.Task_View" json:"view,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Task) Reset() { *m = Task{} } +func (m *Task) String() string { return proto.CompactTextString(m) } +func (*Task) ProtoMessage() {} +func (*Task) Descriptor() ([]byte, []int) { + return fileDescriptor_task_949e38cc41c5c152, []int{0} +} +func (m *Task) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Task.Unmarshal(m, b) +} +func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Task.Marshal(b, m, deterministic) +} +func (dst *Task) XXX_Merge(src proto.Message) { + xxx_messageInfo_Task.Merge(dst, src) +} +func (m *Task) XXX_Size() int { + return xxx_messageInfo_Task.Size(m) +} +func (m *Task) XXX_DiscardUnknown() { + xxx_messageInfo_Task.DiscardUnknown(m) +} + +var xxx_messageInfo_Task proto.InternalMessageInfo + +func (m *Task) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type isTask_PayloadType interface { + isTask_PayloadType() +} + +type Task_AppEngineHttpRequest struct { + AppEngineHttpRequest *AppEngineHttpRequest `protobuf:"bytes,3,opt,name=app_engine_http_request,json=appEngineHttpRequest,proto3,oneof"` +} + +func (*Task_AppEngineHttpRequest) isTask_PayloadType() {} + +func (m *Task) GetPayloadType() isTask_PayloadType { + if m != nil { + return m.PayloadType + } + return nil +} + +func (m *Task) GetAppEngineHttpRequest() *AppEngineHttpRequest { + if x, ok := m.GetPayloadType().(*Task_AppEngineHttpRequest); ok { + return x.AppEngineHttpRequest + } + return nil +} + +func (m *Task) GetScheduleTime() *timestamp.Timestamp { + if m != nil { + return m.ScheduleTime + } + return nil +} + +func (m *Task) GetCreateTime() *timestamp.Timestamp { + if m != nil { + return m.CreateTime + } + return nil +} + +func (m *Task) GetDispatchCount() int32 { + if m != nil { + return m.DispatchCount + } + return 0 +} + +func (m *Task) GetResponseCount() int32 { + if m != nil { + return m.ResponseCount + } + return 0 +} + +func (m *Task) GetFirstAttempt() *Attempt { + if m != nil { + return m.FirstAttempt + } + return nil +} + +func (m *Task) GetLastAttempt() *Attempt { + if m != nil { + return m.LastAttempt + } + return nil +} + +func (m *Task) GetView() Task_View { + if m != nil { + return m.View + } + return Task_VIEW_UNSPECIFIED +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Task) 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 _Task_OneofMarshaler, _Task_OneofUnmarshaler, _Task_OneofSizer, []interface{}{ + (*Task_AppEngineHttpRequest)(nil), + } +} + +func _Task_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Task) + // payload_type + switch x := m.PayloadType.(type) { + case *Task_AppEngineHttpRequest: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.AppEngineHttpRequest); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("Task.PayloadType has unexpected type %T", x) + } + return nil +} + +func _Task_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Task) + switch tag { + case 3: // payload_type.app_engine_http_request + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(AppEngineHttpRequest) + err := b.DecodeMessage(msg) + m.PayloadType = &Task_AppEngineHttpRequest{msg} + return true, err + default: + return false, nil + } +} + +func _Task_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Task) + // payload_type + switch x := m.PayloadType.(type) { + case *Task_AppEngineHttpRequest: + s := proto.Size(x.AppEngineHttpRequest) + 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 +} + +// The status of a task attempt. +type Attempt struct { + // Output only. The time that this attempt was scheduled. + // + // `schedule_time` will be truncated to the nearest microsecond. + ScheduleTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"` + // Output only. The time that this attempt was dispatched. + // + // `dispatch_time` will be truncated to the nearest microsecond. + DispatchTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=dispatch_time,json=dispatchTime,proto3" json:"dispatch_time,omitempty"` + // Output only. The time that this attempt response was received. + // + // `response_time` will be truncated to the nearest microsecond. + ResponseTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=response_time,json=responseTime,proto3" json:"response_time,omitempty"` + // Output only. The response from the target for this attempt. + // + // If `response_time` is unset, then the task has not been attempted or is + // currently running and the `response_status` field is meaningless. + ResponseStatus *status.Status `protobuf:"bytes,4,opt,name=response_status,json=responseStatus,proto3" json:"response_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Attempt) Reset() { *m = Attempt{} } +func (m *Attempt) String() string { return proto.CompactTextString(m) } +func (*Attempt) ProtoMessage() {} +func (*Attempt) Descriptor() ([]byte, []int) { + return fileDescriptor_task_949e38cc41c5c152, []int{1} +} +func (m *Attempt) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Attempt.Unmarshal(m, b) +} +func (m *Attempt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Attempt.Marshal(b, m, deterministic) +} +func (dst *Attempt) XXX_Merge(src proto.Message) { + xxx_messageInfo_Attempt.Merge(dst, src) +} +func (m *Attempt) XXX_Size() int { + return xxx_messageInfo_Attempt.Size(m) +} +func (m *Attempt) XXX_DiscardUnknown() { + xxx_messageInfo_Attempt.DiscardUnknown(m) +} + +var xxx_messageInfo_Attempt proto.InternalMessageInfo + +func (m *Attempt) GetScheduleTime() *timestamp.Timestamp { + if m != nil { + return m.ScheduleTime + } + return nil +} + +func (m *Attempt) GetDispatchTime() *timestamp.Timestamp { + if m != nil { + return m.DispatchTime + } + return nil +} + +func (m *Attempt) GetResponseTime() *timestamp.Timestamp { + if m != nil { + return m.ResponseTime + } + return nil +} + +func (m *Attempt) GetResponseStatus() *status.Status { + if m != nil { + return m.ResponseStatus + } + return nil +} + +func init() { + proto.RegisterType((*Task)(nil), "google.cloud.tasks.v2beta3.Task") + proto.RegisterType((*Attempt)(nil), "google.cloud.tasks.v2beta3.Attempt") + proto.RegisterEnum("google.cloud.tasks.v2beta3.Task_View", Task_View_name, Task_View_value) +} + +func init() { + proto.RegisterFile("google/cloud/tasks/v2beta3/task.proto", fileDescriptor_task_949e38cc41c5c152) +} + +var fileDescriptor_task_949e38cc41c5c152 = []byte{ + // 538 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xcd, 0x6e, 0xda, 0x40, + 0x10, 0xc7, 0xe3, 0xc4, 0xf9, 0x60, 0x03, 0x14, 0xad, 0x22, 0xc5, 0x42, 0x55, 0x8b, 0xa8, 0x50, + 0x39, 0xd9, 0x2d, 0x39, 0x55, 0x39, 0xa0, 0x40, 0x41, 0x20, 0x45, 0x15, 0x32, 0x49, 0x2a, 0xf5, + 0x62, 0x2d, 0x66, 0x63, 0xac, 0x98, 0xdd, 0xad, 0x77, 0x9c, 0x28, 0x8f, 0xd0, 0xc7, 0xec, 0x9b, + 0x54, 0xde, 0x0f, 0x54, 0xa9, 0x29, 0xb4, 0x37, 0xcf, 0xec, 0xef, 0xff, 0x9f, 0x59, 0xcf, 0xd8, + 0xa8, 0x93, 0x70, 0x9e, 0x64, 0x34, 0x88, 0x33, 0x5e, 0x2c, 0x03, 0x20, 0xf2, 0x41, 0x06, 0x8f, + 0xbd, 0x05, 0x05, 0x72, 0xa1, 0x22, 0x5f, 0xe4, 0x1c, 0x38, 0x6e, 0x6a, 0xcc, 0x57, 0x98, 0xaf, + 0x30, 0xdf,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x43, + 0x6f, 0x62, 0xbe, 0xde, 0x32, 0x80, 0x41, 0xa5, 0x9c, 0xc0, 0xac, 0x6c, 0x62, 0xe6, 0x7c, 0xeb, + 0x1b, 0x30, 0xe1, 0x19, 0x61, 0x89, 0xcf, 0xf3, 0x24, 0x48, 0x28, 0x53, 0x2d, 0x06, 0xfa, 0x88, + 0x88, 0x54, 0xbe, 0xf4, 0x83, 0xb8, 0x54, 0xd1, 0xe2, 0x48, 0xb1, 0x17, 0xbf, 0x02, 0x00, 0x00, + 0xff, 0xff, 0xa7, 0x0f, 0xef, 0xad, 0xac, 0x04, 0x00, 0x00, +} diff --git a/googleapis/cloud/texttospeech/v1/cloud_tts.pb.go b/googleapis/cloud/texttospeech/v1/cloud_tts.pb.go index 86289bc2feef5cf0ea0ac15dcb457d6db09f8759..477afc6b2cc49b8c4bf0024aa29fe87855d8466a 100644 --- a/googleapis/cloud/texttospeech/v1/cloud_tts.pb.go +++ b/googleapis/cloud/texttospeech/v1/cloud_tts.pb.go @@ -51,9 +51,9 @@ var SsmlVoiceGender_name = map[int32]string{ } var SsmlVoiceGender_value = map[string]int32{ "SSML_VOICE_GENDER_UNSPECIFIED": 0, - "MALE": 1, - "FEMALE": 2, - "NEUTRAL": 3, + "MALE": 1, + "FEMALE": 2, + "NEUTRAL": 3, } func (x SsmlVoiceGender) String() string { diff --git a/googleapis/cloud/texttospeech/v1beta1/cloud_tts.pb.go b/googleapis/cloud/texttospeech/v1beta1/cloud_tts.pb.go index af33de0938d42eb368c2800e5e6858bfa3573970..9a11c036b8781563ba262e3f467219285bfcf2e6 100644 --- a/googleapis/cloud/texttospeech/v1beta1/cloud_tts.pb.go +++ b/googleapis/cloud/texttospeech/v1beta1/cloud_tts.pb.go @@ -51,9 +51,9 @@ var SsmlVoiceGender_name = map[int32]string{ } var SsmlVoiceGender_value = map[string]int32{ "SSML_VOICE_GENDER_UNSPECIFIED": 0, - "MALE": 1, - "FEMALE": 2, - "NEUTRAL": 3, + "MALE": 1, + "FEMALE": 2, + "NEUTRAL": 3, } func (x SsmlVoiceGender) String() string { diff --git a/googleapis/cloud/vision/v1/image_annotator.pb.go b/googleapis/cloud/vision/v1/image_annotator.pb.go index bdb1d6ca4f52c44a43fe834e61d66b9753bba791..4100ac52a51e0dd6a9ce8ee8ca323d3cab8a75c2 100644 --- a/googleapis/cloud/vision/v1/image_annotator.pb.go +++ b/googleapis/cloud/vision/v1/image_annotator.pb.go @@ -69,7 +69,7 @@ func (x Likelihood) String() string { return proto.EnumName(Likelihood_name, int32(x)) } func (Likelihood) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{0} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{0} } // Type of Google Cloud Vision API feature to be extracted. @@ -103,6 +103,8 @@ const ( Feature_CROP_HINTS Feature_Type = 9 // Run web detection. Feature_WEB_DETECTION Feature_Type = 10 + // Run localizer for object detection. + Feature_OBJECT_LOCALIZATION Feature_Type = 19 ) var Feature_Type_name = map[int32]string{ @@ -117,6 +119,7 @@ var Feature_Type_name = map[int32]string{ 7: "IMAGE_PROPERTIES", 9: "CROP_HINTS", 10: "WEB_DETECTION", + 19: "OBJECT_LOCALIZATION", } var Feature_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, @@ -130,13 +133,14 @@ var Feature_Type_value = map[string]int32{ "IMAGE_PROPERTIES": 7, "CROP_HINTS": 9, "WEB_DETECTION": 10, + "OBJECT_LOCALIZATION": 19, } func (x Feature_Type) String() string { return proto.EnumName(Feature_Type_name, int32(x)) } func (Feature_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{0, 0} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{0, 0} } // Face landmark (feature) type. @@ -297,7 +301,7 @@ func (x FaceAnnotation_Landmark_Type) String() string { return proto.EnumName(FaceAnnotation_Landmark_Type_name, int32(x)) } func (FaceAnnotation_Landmark_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{3, 0, 0} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{3, 0, 0} } // Batch operation states. @@ -335,7 +339,7 @@ func (x OperationMetadata_State) String() string { return proto.EnumName(OperationMetadata_State_name, int32(x)) } func (OperationMetadata_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{31, 0} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{32, 0} } // The type of Google Cloud Vision API detection to perform, and the maximum @@ -360,7 +364,7 @@ func (m *Feature) Reset() { *m = Feature{} } func (m *Feature) String() string { return proto.CompactTextString(m) } func (*Feature) ProtoMessage() {} func (*Feature) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{0} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{0} } func (m *Feature) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Feature.Unmarshal(m, b) @@ -437,7 +441,7 @@ func (m *ImageSource) Reset() { *m = ImageSource{} } func (m *ImageSource) String() string { return proto.CompactTextString(m) } func (*ImageSource) ProtoMessage() {} func (*ImageSource) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{1} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{1} } func (m *ImageSource) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ImageSource.Unmarshal(m, b) @@ -490,7 +494,7 @@ func (m *Image) Reset() { *m = Image{} } func (m *Image) String() string { return proto.CompactTextString(m) } func (*Image) ProtoMessage() {} func (*Image) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{2} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{2} } func (m *Image) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Image.Unmarshal(m, b) @@ -581,7 +585,7 @@ func (m *FaceAnnotation) Reset() { *m = FaceAnnotation{} } func (m *FaceAnnotation) String() string { return proto.CompactTextString(m) } func (*FaceAnnotation) ProtoMessage() {} func (*FaceAnnotation) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{3} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{3} } func (m *FaceAnnotation) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FaceAnnotation.Unmarshal(m, b) @@ -721,7 +725,7 @@ func (m *FaceAnnotation_Landmark) Reset() { *m = FaceAnnotation_Landmark func (m *FaceAnnotation_Landmark) String() string { return proto.CompactTextString(m) } func (*FaceAnnotation_Landmark) ProtoMessage() {} func (*FaceAnnotation_Landmark) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{3, 0} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{3, 0} } func (m *FaceAnnotation_Landmark) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FaceAnnotation_Landmark.Unmarshal(m, b) @@ -768,7 +772,7 @@ func (m *LocationInfo) Reset() { *m = LocationInfo{} } func (m *LocationInfo) String() string { return proto.CompactTextString(m) } func (*LocationInfo) ProtoMessage() {} func (*LocationInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{4} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{4} } func (m *LocationInfo) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LocationInfo.Unmarshal(m, b) @@ -812,7 +816,7 @@ func (m *Property) Reset() { *m = Property{} } func (m *Property) String() string { return proto.CompactTextString(m) } func (*Property) ProtoMessage() {} func (*Property) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{5} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{5} } func (m *Property) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Property.Unmarshal(m, b) @@ -899,7 +903,7 @@ func (m *EntityAnnotation) Reset() { *m = EntityAnnotation{} } func (m *EntityAnnotation) String() string { return proto.CompactTextString(m) } func (*EntityAnnotation) ProtoMessage() {} func (*EntityAnnotation) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{6} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{6} } func (m *EntityAnnotation) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_EntityAnnotation.Unmarshal(m, b) @@ -982,6 +986,84 @@ func (m *EntityAnnotation) GetProperties() []*Property { return nil } +// Set of detected objects with bounding boxes. +type LocalizedObjectAnnotation struct { + // Object ID that should align with EntityAnnotation mid. + Mid string `protobuf:"bytes,1,opt,name=mid,proto3" json:"mid,omitempty"` + // The BCP-47 language code, such as "en-US" or "sr-Latn". For more + // information, see + // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` + // Object name, expressed in its `language_code` language. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // Score of the result. Range [0, 1]. + Score float32 `protobuf:"fixed32,4,opt,name=score,proto3" json:"score,omitempty"` + // Image region to which this object belongs. This must be populated. + BoundingPoly *BoundingPoly `protobuf:"bytes,5,opt,name=bounding_poly,json=boundingPoly,proto3" json:"bounding_poly,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LocalizedObjectAnnotation) Reset() { *m = LocalizedObjectAnnotation{} } +func (m *LocalizedObjectAnnotation) String() string { return proto.CompactTextString(m) } +func (*LocalizedObjectAnnotation) ProtoMessage() {} +func (*LocalizedObjectAnnotation) Descriptor() ([]byte, []int) { + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{7} +} +func (m *LocalizedObjectAnnotation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LocalizedObjectAnnotation.Unmarshal(m, b) +} +func (m *LocalizedObjectAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LocalizedObjectAnnotation.Marshal(b, m, deterministic) +} +func (dst *LocalizedObjectAnnotation) XXX_Merge(src proto.Message) { + xxx_messageInfo_LocalizedObjectAnnotation.Merge(dst, src) +} +func (m *LocalizedObjectAnnotation) XXX_Size() int { + return xxx_messageInfo_LocalizedObjectAnnotation.Size(m) +} +func (m *LocalizedObjectAnnotation) XXX_DiscardUnknown() { + xxx_messageInfo_LocalizedObjectAnnotation.DiscardUnknown(m) +} + +var xxx_messageInfo_LocalizedObjectAnnotation proto.InternalMessageInfo + +func (m *LocalizedObjectAnnotation) GetMid() string { + if m != nil { + return m.Mid + } + return "" +} + +func (m *LocalizedObjectAnnotation) GetLanguageCode() string { + if m != nil { + return m.LanguageCode + } + return "" +} + +func (m *LocalizedObjectAnnotation) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *LocalizedObjectAnnotation) GetScore() float32 { + if m != nil { + return m.Score + } + return 0 +} + +func (m *LocalizedObjectAnnotation) GetBoundingPoly() *BoundingPoly { + if m != nil { + return m.BoundingPoly + } + return nil +} + // Set of features pertaining to the image, computed by computer vision // methods over safe-search verticals (for example, adult, spoof, medical, // violence). @@ -1012,7 +1094,7 @@ func (m *SafeSearchAnnotation) Reset() { *m = SafeSearchAnnotation{} } func (m *SafeSearchAnnotation) String() string { return proto.CompactTextString(m) } func (*SafeSearchAnnotation) ProtoMessage() {} func (*SafeSearchAnnotation) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{7} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{8} } func (m *SafeSearchAnnotation) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SafeSearchAnnotation.Unmarshal(m, b) @@ -1082,7 +1164,7 @@ func (m *LatLongRect) Reset() { *m = LatLongRect{} } func (m *LatLongRect) String() string { return proto.CompactTextString(m) } func (*LatLongRect) ProtoMessage() {} func (*LatLongRect) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{8} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{9} } func (m *LatLongRect) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LatLongRect.Unmarshal(m, b) @@ -1135,7 +1217,7 @@ func (m *ColorInfo) Reset() { *m = ColorInfo{} } func (m *ColorInfo) String() string { return proto.CompactTextString(m) } func (*ColorInfo) ProtoMessage() {} func (*ColorInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{9} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{10} } func (m *ColorInfo) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ColorInfo.Unmarshal(m, b) @@ -1189,7 +1271,7 @@ func (m *DominantColorsAnnotation) Reset() { *m = DominantColorsAnnotati func (m *DominantColorsAnnotation) String() string { return proto.CompactTextString(m) } func (*DominantColorsAnnotation) ProtoMessage() {} func (*DominantColorsAnnotation) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{10} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{11} } func (m *DominantColorsAnnotation) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DominantColorsAnnotation.Unmarshal(m, b) @@ -1229,7 +1311,7 @@ func (m *ImageProperties) Reset() { *m = ImageProperties{} } func (m *ImageProperties) String() string { return proto.CompactTextString(m) } func (*ImageProperties) ProtoMessage() {} func (*ImageProperties) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{11} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{12} } func (m *ImageProperties) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ImageProperties.Unmarshal(m, b) @@ -1275,7 +1357,7 @@ func (m *CropHint) Reset() { *m = CropHint{} } func (m *CropHint) String() string { return proto.CompactTextString(m) } func (*CropHint) ProtoMessage() {} func (*CropHint) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{12} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{13} } func (m *CropHint) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CropHint.Unmarshal(m, b) @@ -1329,7 +1411,7 @@ func (m *CropHintsAnnotation) Reset() { *m = CropHintsAnnotation{} } func (m *CropHintsAnnotation) String() string { return proto.CompactTextString(m) } func (*CropHintsAnnotation) ProtoMessage() {} func (*CropHintsAnnotation) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{13} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{14} } func (m *CropHintsAnnotation) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CropHintsAnnotation.Unmarshal(m, b) @@ -1374,7 +1456,7 @@ func (m *CropHintsParams) Reset() { *m = CropHintsParams{} } func (m *CropHintsParams) String() string { return proto.CompactTextString(m) } func (*CropHintsParams) ProtoMessage() {} func (*CropHintsParams) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{14} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{15} } func (m *CropHintsParams) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CropHintsParams.Unmarshal(m, b) @@ -1414,7 +1496,7 @@ func (m *WebDetectionParams) Reset() { *m = WebDetectionParams{} } func (m *WebDetectionParams) String() string { return proto.CompactTextString(m) } func (*WebDetectionParams) ProtoMessage() {} func (*WebDetectionParams) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{15} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{16} } func (m *WebDetectionParams) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_WebDetectionParams.Unmarshal(m, b) @@ -1467,7 +1549,7 @@ func (m *ImageContext) Reset() { *m = ImageContext{} } func (m *ImageContext) String() string { return proto.CompactTextString(m) } func (*ImageContext) ProtoMessage() {} func (*ImageContext) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{16} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{17} } func (m *ImageContext) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ImageContext.Unmarshal(m, b) @@ -1533,7 +1615,7 @@ func (m *AnnotateImageRequest) Reset() { *m = AnnotateImageRequest{} } func (m *AnnotateImageRequest) String() string { return proto.CompactTextString(m) } func (*AnnotateImageRequest) ProtoMessage() {} func (*AnnotateImageRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{17} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{18} } func (m *AnnotateImageRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AnnotateImageRequest.Unmarshal(m, b) @@ -1591,7 +1673,7 @@ func (m *ImageAnnotationContext) Reset() { *m = ImageAnnotationContext{} func (m *ImageAnnotationContext) String() string { return proto.CompactTextString(m) } func (*ImageAnnotationContext) ProtoMessage() {} func (*ImageAnnotationContext) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{18} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{19} } func (m *ImageAnnotationContext) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ImageAnnotationContext.Unmarshal(m, b) @@ -1635,6 +1717,9 @@ type AnnotateImageResponse struct { LogoAnnotations []*EntityAnnotation `protobuf:"bytes,3,rep,name=logo_annotations,json=logoAnnotations,proto3" json:"logo_annotations,omitempty"` // If present, label detection has completed successfully. LabelAnnotations []*EntityAnnotation `protobuf:"bytes,4,rep,name=label_annotations,json=labelAnnotations,proto3" json:"label_annotations,omitempty"` + // If present, localized object detection has completed successfully. + // This will be sorted descending by confidence score. + LocalizedObjectAnnotations []*LocalizedObjectAnnotation `protobuf:"bytes,22,rep,name=localized_object_annotations,json=localizedObjectAnnotations,proto3" json:"localized_object_annotations,omitempty"` // If present, text (OCR) detection has completed successfully. TextAnnotations []*EntityAnnotation `protobuf:"bytes,5,rep,name=text_annotations,json=textAnnotations,proto3" json:"text_annotations,omitempty"` // If present, text (OCR) detection or document (OCR) text detection has @@ -1666,7 +1751,7 @@ func (m *AnnotateImageResponse) Reset() { *m = AnnotateImageResponse{} } func (m *AnnotateImageResponse) String() string { return proto.CompactTextString(m) } func (*AnnotateImageResponse) ProtoMessage() {} func (*AnnotateImageResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{19} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{20} } func (m *AnnotateImageResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AnnotateImageResponse.Unmarshal(m, b) @@ -1714,6 +1799,13 @@ func (m *AnnotateImageResponse) GetLabelAnnotations() []*EntityAnnotation { return nil } +func (m *AnnotateImageResponse) GetLocalizedObjectAnnotations() []*LocalizedObjectAnnotation { + if m != nil { + return m.LocalizedObjectAnnotations + } + return nil +} + func (m *AnnotateImageResponse) GetTextAnnotations() []*EntityAnnotation { if m != nil { return m.TextAnnotations @@ -1786,7 +1878,7 @@ func (m *AnnotateFileResponse) Reset() { *m = AnnotateFileResponse{} } func (m *AnnotateFileResponse) String() string { return proto.CompactTextString(m) } func (*AnnotateFileResponse) ProtoMessage() {} func (*AnnotateFileResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{20} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{21} } func (m *AnnotateFileResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AnnotateFileResponse.Unmarshal(m, b) @@ -1833,7 +1925,7 @@ func (m *BatchAnnotateImagesRequest) Reset() { *m = BatchAnnotateImagesR func (m *BatchAnnotateImagesRequest) String() string { return proto.CompactTextString(m) } func (*BatchAnnotateImagesRequest) ProtoMessage() {} func (*BatchAnnotateImagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{21} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{22} } func (m *BatchAnnotateImagesRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BatchAnnotateImagesRequest.Unmarshal(m, b) @@ -1873,7 +1965,7 @@ func (m *BatchAnnotateImagesResponse) Reset() { *m = BatchAnnotateImages func (m *BatchAnnotateImagesResponse) String() string { return proto.CompactTextString(m) } func (*BatchAnnotateImagesResponse) ProtoMessage() {} func (*BatchAnnotateImagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{22} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{23} } func (m *BatchAnnotateImagesResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BatchAnnotateImagesResponse.Unmarshal(m, b) @@ -1919,7 +2011,7 @@ func (m *AsyncAnnotateFileRequest) Reset() { *m = AsyncAnnotateFileReque func (m *AsyncAnnotateFileRequest) String() string { return proto.CompactTextString(m) } func (*AsyncAnnotateFileRequest) ProtoMessage() {} func (*AsyncAnnotateFileRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{23} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{24} } func (m *AsyncAnnotateFileRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AsyncAnnotateFileRequest.Unmarshal(m, b) @@ -1980,7 +2072,7 @@ func (m *AsyncAnnotateFileResponse) Reset() { *m = AsyncAnnotateFileResp func (m *AsyncAnnotateFileResponse) String() string { return proto.CompactTextString(m) } func (*AsyncAnnotateFileResponse) ProtoMessage() {} func (*AsyncAnnotateFileResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{24} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{25} } func (m *AsyncAnnotateFileResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AsyncAnnotateFileResponse.Unmarshal(m, b) @@ -2021,7 +2113,7 @@ func (m *AsyncBatchAnnotateFilesRequest) Reset() { *m = AsyncBatchAnnota func (m *AsyncBatchAnnotateFilesRequest) String() string { return proto.CompactTextString(m) } func (*AsyncBatchAnnotateFilesRequest) ProtoMessage() {} func (*AsyncBatchAnnotateFilesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{25} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{26} } func (m *AsyncBatchAnnotateFilesRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AsyncBatchAnnotateFilesRequest.Unmarshal(m, b) @@ -2062,7 +2154,7 @@ func (m *AsyncBatchAnnotateFilesResponse) Reset() { *m = AsyncBatchAnnot func (m *AsyncBatchAnnotateFilesResponse) String() string { return proto.CompactTextString(m) } func (*AsyncBatchAnnotateFilesResponse) ProtoMessage() {} func (*AsyncBatchAnnotateFilesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{26} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{27} } func (m *AsyncBatchAnnotateFilesResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AsyncBatchAnnotateFilesResponse.Unmarshal(m, b) @@ -2105,7 +2197,7 @@ func (m *InputConfig) Reset() { *m = InputConfig{} } func (m *InputConfig) String() string { return proto.CompactTextString(m) } func (*InputConfig) ProtoMessage() {} func (*InputConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{27} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{28} } func (m *InputConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_InputConfig.Unmarshal(m, b) @@ -2164,7 +2256,7 @@ func (m *OutputConfig) Reset() { *m = OutputConfig{} } func (m *OutputConfig) String() string { return proto.CompactTextString(m) } func (*OutputConfig) ProtoMessage() {} func (*OutputConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{28} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{29} } func (m *OutputConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_OutputConfig.Unmarshal(m, b) @@ -2212,7 +2304,7 @@ func (m *GcsSource) Reset() { *m = GcsSource{} } func (m *GcsSource) String() string { return proto.CompactTextString(m) } func (*GcsSource) ProtoMessage() {} func (*GcsSource) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{29} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{30} } func (m *GcsSource) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GcsSource.Unmarshal(m, b) @@ -2266,7 +2358,7 @@ func (m *GcsDestination) Reset() { *m = GcsDestination{} } func (m *GcsDestination) String() string { return proto.CompactTextString(m) } func (*GcsDestination) ProtoMessage() {} func (*GcsDestination) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{30} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{31} } func (m *GcsDestination) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GcsDestination.Unmarshal(m, b) @@ -2310,7 +2402,7 @@ func (m *OperationMetadata) Reset() { *m = OperationMetadata{} } func (m *OperationMetadata) String() string { return proto.CompactTextString(m) } func (*OperationMetadata) ProtoMessage() {} func (*OperationMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_image_annotator_f9154282c1c30734, []int{31} + return fileDescriptor_image_annotator_a4395db7c2c31e60, []int{32} } func (m *OperationMetadata) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_OperationMetadata.Unmarshal(m, b) @@ -2360,6 +2452,7 @@ func init() { proto.RegisterType((*LocationInfo)(nil), "google.cloud.vision.v1.LocationInfo") proto.RegisterType((*Property)(nil), "google.cloud.vision.v1.Property") proto.RegisterType((*EntityAnnotation)(nil), "google.cloud.vision.v1.EntityAnnotation") + proto.RegisterType((*LocalizedObjectAnnotation)(nil), "google.cloud.vision.v1.LocalizedObjectAnnotation") proto.RegisterType((*SafeSearchAnnotation)(nil), "google.cloud.vision.v1.SafeSearchAnnotation") proto.RegisterType((*LatLongRect)(nil), "google.cloud.vision.v1.LatLongRect") proto.RegisterType((*ColorInfo)(nil), "google.cloud.vision.v1.ColorInfo") @@ -2511,190 +2604,196 @@ var _ImageAnnotator_serviceDesc = grpc.ServiceDesc{ } func init() { - proto.RegisterFile("google/cloud/vision/v1/image_annotator.proto", fileDescriptor_image_annotator_f9154282c1c30734) -} - -var fileDescriptor_image_annotator_f9154282c1c30734 = []byte{ - // 2892 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0xcd, 0x73, 0xe3, 0x48, - 0x15, 0x5f, 0x3b, 0x4e, 0x62, 0x3f, 0x3b, 0x89, 0xd2, 0xf9, 0x18, 0x4f, 0xe6, 0x2b, 0xa3, 0x65, - 0xd9, 0xd4, 0x30, 0x24, 0x4c, 0x76, 0x99, 0x5a, 0x66, 0xa6, 0x00, 0xc7, 0x51, 0x12, 0xd7, 0x38, - 0xb6, 0xb7, 0xed, 0xcc, 0x6c, 0x60, 0x0b, 0x95, 0x22, 0xb7, 0x35, 0xda, 0x95, 0x25, 0x21, 0xc9, - 0x33, 0xc9, 0x52, 0xc5, 0x81, 0x2a, 0xce, 0x1c, 0x38, 0x71, 0xe1, 0xc0, 0x01, 0x0e, 0x9c, 0xa8, - 0x82, 0x3b, 0x57, 0x0e, 0x1c, 0xa8, 0xfd, 0x17, 0xf8, 0x0f, 0xa8, 0xa2, 0x38, 0x52, 0xfd, 0x21, - 0xb9, 0xe5, 0x44, 0x99, 0x64, 0xd9, 0x03, 0xa7, 0xb8, 0xdf, 0x7b, 0xbf, 0xdf, 0xeb, 0x7e, 0xdd, - 0xaf, 0xfb, 0x75, 0x2b, 0xf0, 0xd0, 0xf2, 0x3c, 0xcb, 0x21, 0x5b, 0xa6, 0xe3, 0x8d, 0xfa, 0x5b, - 0xaf, 0xed, 0xd0, 0xf6, 0xdc, 0xad, 0xd7, 0x8f, 0xb6, 0xec, 0xa1, 0x61, 0x11, 0xdd, 0x70, 0x5d, - 0x2f, 0x32, 0x22, 0x2f, 0xd8, 0xf4, 0x03, 0x2f, 0xf2, 0xd0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0xce, 0x70, 0x2c, 0x95, 0x70, 0xf5, - 0x23, 0x58, 0x4e, 0xb6, 0x08, 0xdd, 0xf4, 0xdc, 0x81, 0xdd, 0x27, 0xae, 0x49, 0xaa, 0xb3, 0xcc, - 0x70, 0x29, 0xd1, 0xd5, 0x13, 0x15, 0xfa, 0x2e, 0xac, 0xc6, 0x5d, 0xa3, 0xc1, 0x92, 0x40, 0x45, - 0x06, 0x5a, 0x91, 0xb4, 0x12, 0xac, 0x01, 0xf3, 0x9f, 0x79, 0x67, 0xba, 0x63, 0x7f, 0x4e, 0x1c, - 0xfb, 0x95, 0xe7, 0xf5, 0xab, 0x25, 0x96, 0xe5, 0x6a, 0x56, 0x60, 0x9a, 0x89, 0x25, 0x9e, 0xfb, - 0xcc, 0x3b, 0x1b, 0x37, 0x51, 0x1b, 0x16, 0x43, 0x2f, 0x08, 0xbc, 0x37, 0x32, 0x1b, 0x5c, 0x99, - 0x4d, 0xe1, 0x60, 0x89, 0xf0, 0x10, 0x14, 0xc3, 0xb5, 0x48, 0x20, 0xf3, 0x95, 0xaf, 0xcc, 0xb7, - 0xc0, 0xb0, 0x12, 0x5d, 0x17, 0x96, 0xc2, 0x51, 0xe0, 0x07, 0x76, 0x48, 0x64, 0xc6, 0xca, 0x95, - 0x19, 0x51, 0x0c, 0x97, 0x48, 0x3f, 0x85, 0xea, 0xc8, 0xed, 0x93, 0x40, 0x27, 0xa7, 0xbe, 0x17, - 0x92, 0xbe, 0xcc, 0x3c, 0x77, 0x65, 0xe6, 0x55, 0xc6, 0xa1, 0x71, 0x0a, 0x89, 0xfd, 0x63, 0x40, - 0x27, 0xce, 0x28, 0x08, 0xd2, 0xbc, 0xf3, 0x57, 0xe6, 0x5d, 0x14, 0xe8, 0x74, 0x14, 0x5e, 0x11, - 0xa3, 0xff, 0x86, 0x18, 0xa9, 0xb8, 0x2e, 0x5c, 0x3d, 0x0a, 0x31, 0x7c, 0x2c, 0x5b, 0xfb, 0xdb, - 0x2c, 0x14, 0x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0x90, 0x4b, 0x92, 0xf3, 0xe5, 0xd0, 0xec, 0x57, 0x2e, 0x87, 0x76, 0xa0, 0xe4, 0x88, - 0x89, 0x09, 0xab, 0x45, 0x56, 0xbe, 0x64, 0xd2, 0xc8, 0x33, 0x88, 0xc7, 0x30, 0xf4, 0x43, 0x00, - 0x9f, 0x4f, 0x8f, 0x4d, 0xc2, 0x6a, 0x89, 0x91, 0x64, 0xef, 0xa9, 0x62, 0x22, 0xb1, 0x84, 0x51, - 0xff, 0x9a, 0x87, 0xe5, 0xae, 0x31, 0x20, 0x5d, 0x62, 0x04, 0xe6, 0x2b, 0x69, 0x2e, 0x3e, 0x82, - 0x69, 0xa3, 0x3f, 0x72, 0x22, 0x71, 0x4d, 0xb8, 0xca, 0x51, 0xc2, 0x01, 0x14, 0x19, 0xfa, 0x9e, - 0x37, 0x60, 0x53, 0x76, 0x45, 0x24, 0x03, 0xa0, 0x67, 0x30, 0x3b, 0x24, 0x7d, 0x1a, 0x6b, 0x71, - 0xda, 0x5c, 0x05, 0x1b, 0x43, 0xd0, 0xf7, 0xa1, 0xf8, 0xda, 0xf6, 0x1c, 0x36, 0xb3, 0x85, 0x2b, - 0xc3, 0x13, 0x0c, 0x7a, 0x0c, 0x85, 0xc0, 0x30, 0xcf, 0xae, 0x51, 0x31, 0x31, 0x7b, 0xf5, 0x0d, - 0x94, 0x69, 0xd6, 0x78, 0xae, 0x85, 0x89, 0x19, 0xa1, 0x0f, 0xa0, 0x3c, 0xb4, 0x5d, 0xfd, 0x0a, - 0x49, 0x56, 0x1a, 0xda, 0x2e, 0xff, 0xc9, 0x40, 0xc6, 0x69, 0x02, 0xca, 0x5f, 0x06, 0x32, 0x4e, - 0xf9, 0x4f, 0x35, 0x80, 0x52, 0x9d, 0xde, 0xfe, 0x58, 0x5e, 0x6f, 0xc0, 0x34, 0xbb, 0x0a, 0x0a, - 0x87, 0x28, 0x85, 0x65, 0x66, 0x98, 0x1b, 0x8c, 0x33, 0x23, 0x2f, 0x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a, 0xea, 0x20, 0x54, 0x0a, 0x21, 0x00, 0x00, + proto.RegisterFile("google/cloud/vision/v1/image_annotator.proto", fileDescriptor_image_annotator_a4395db7c2c31e60) +} + +var fileDescriptor_image_annotator_a4395db7c2c31e60 = []byte{ + // 2992 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0x4f, 0x73, 0xdb, 0xc8, + 0xb1, 0x5f, 0x52, 0x94, 0x44, 0x36, 0x29, 0x09, 0x1a, 0xfd, 0x31, 0x2d, 0xff, 0x93, 0xb1, 0x6f, + 0xdf, 0xaa, 0xfc, 0xfc, 0xa4, 0xd8, 0xbb, 0x71, 0x6d, 0x6c, 0x57, 0xb2, 0x14, 0x05, 0x49, 0x8c, + 0x29, 0x82, 0x3b, 0xa4, 0xec, 0xd5, 0x66, 0x2b, 0x28, 0x08, 0x1c, 0xd2, 0xf0, 0x82, 0x18, 0x04, + 0x00, 0x6d, 0x69, 0x53, 0x95, 0x43, 0x2a, 0xb9, 0xa5, 0x2a, 0x87, 0x9c, 0x72, 0xc9, 0x21, 0x87, + 0xe4, 0x90, 0x53, 0xaa, 0x92, 0x7b, 0x6e, 0xa9, 0x1c, 0x72, 0x48, 0xed, 0x57, 0xc8, 0x87, 0xc8, + 0x31, 0x35, 0x83, 0x01, 0x38, 0xa0, 0x04, 0x59, 0xda, 0xec, 0x21, 0x27, 0x71, 0xba, 0xfb, 0xf7, + 0xeb, 0x99, 0x9e, 0x99, 0x9e, 0x9e, 0x81, 0xe0, 0xfe, 0x80, 0xd2, 0x81, 0x43, 0xb6, 0x2c, 0x87, + 0x8e, 0x7a, 0x5b, 0xaf, 0xed, 0xc0, 0xa6, 0xee, 0xd6, 0xeb, 0x07, 0x5b, 0xf6, 0xd0, 0x1c, 0x10, + 0xc3, 0x74, 0x5d, 0x1a, 0x9a, 0x21, 0xf5, 0x37, 0x3d, 0x9f, 0x86, 0x14, 0xad, 0x46, 0xd6, 0x9b, + 0xdc, 0x7a, 0x33, 0xb2, 0xde, 0x7c, 0xfd, 0x60, 0xed, 0xa6, 0x60, 0x31, 0x3d, 0x7b, 0x4b, 0x60, + 0x6c, 0xea, 0x06, 0x11, 0x6a, 0xed, 0xbd, 0x0c, 0x1f, 0x03, 0x42, 0x87, 0x24, 0xf4, 0x4f, 0x85, + 0x59, 0x56, 0x57, 0x42, 0x72, 0x12, 0x1a, 0x63, 0x56, 0x61, 0x7d, 0x2f, 0xc3, 0xfa, 0x0d, 0x39, + 0x36, 0x7a, 0x24, 0x24, 0x96, 0x64, 0xfb, 0xae, 0xb0, 0x75, 0xa8, 0x3b, 0xf0, 0x47, 0xae, 0x6b, + 0xbb, 0x83, 0x2d, 0xea, 0x11, 0x3f, 0xd5, 0xcb, 0x3b, 0xc2, 0x88, 0xb7, 0x8e, 0x47, 0xfd, 0xad, + 0xd0, 0x1e, 0x92, 0x20, 0x34, 0x87, 0x9e, 0x30, 0xb8, 0x26, 0x0c, 0x7c, 0xcf, 0xda, 0x0a, 0x42, + 0x33, 0x1c, 0x05, 0x13, 0x8a, 0xf0, 0xd4, 0x23, 0x5b, 0x16, 0x75, 0xe2, 0x70, 0xad, 0x55, 0x65, + 0x85, 0x63, 0x86, 0x8e, 0x3b, 0x88, 0x34, 0xea, 0x2f, 0xa6, 0x60, 0x76, 0x97, 0x98, 0xe1, 0xc8, + 0x27, 0xe8, 0x23, 0x28, 0x30, 0x83, 0x6a, 0x6e, 0x3d, 0xb7, 0x31, 0xff, 0xf0, 0x7f, 0x36, 0xcf, + 0x8f, 0xf1, 0xa6, 0x30, 0xdf, 0xec, 0x9e, 0x7a, 0x04, 0x73, 0x04, 0xba, 0x03, 0xe5, 0xa1, 0x79, + 0x62, 0xf8, 0x24, 0x18, 0x39, 0x61, 0x50, 0xcd, 0xaf, 0xe7, 0x36, 0xa6, 0x31, 0x0c, 0xcd, 0x13, + 0x1c, 0x49, 0xd0, 0x32, 0x4c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, 0x25, 0x37, 0x2a, 0xe9, 0x1f, 0x16, 0xc6, + 0xeb, 0x4d, 0x7d, 0x9f, 0x77, 0xe9, 0xae, 0x7a, 0x93, 0x75, 0xa9, 0xcf, 0x80, 0x8f, 0xcd, 0x33, + 0x84, 0x8f, 0x73, 0xf7, 0xb6, 0x7f, 0x0c, 0x6b, 0x16, 0x1d, 0x66, 0x74, 0x62, 0x7b, 0x29, 0x1d, + 0xea, 0x36, 0x5b, 0x55, 0xed, 0xdc, 0x67, 0x4f, 0x85, 0xf9, 0x80, 0xb2, 0x1b, 0xec, 0x26, 0xf5, + 0x07, 0x5b, 0x03, 0xe2, 0xf2, 0x35, 0xb7, 0x15, 0xa9, 0x4c, 0xcf, 0x0e, 0x26, 0xff, 0xef, 0xe2, + 0x49, 0xf4, 0xeb, 0x5f, 0xb9, 0xdc, 0x6f, 0xf3, 0x85, 0xbd, 0xfa, 0xf3, 0xd6, 0xf1, 0x0c, 0x87, + 0x7c, 0xf0, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x9d, 0xe1, 0xa8, 0xd7, 0x62, 0x22, 0x00, 0x00, } diff --git a/googleapis/cloud/vision/v1p3beta1/product_search.pb.go b/googleapis/cloud/vision/v1p3beta1/product_search.pb.go index 30352277f9d564b6cbaf4db907b79d4184a5d2ba..663793a78223fb2ac13a2baf7184898e5d91b827 100644 --- a/googleapis/cloud/vision/v1p3beta1/product_search.pb.go +++ b/googleapis/cloud/vision/v1p3beta1/product_search.pb.go @@ -39,8 +39,8 @@ var ProductSearchCategory_name = map[int32]string{ } var ProductSearchCategory_value = map[string]int32{ "PRODUCT_SEARCH_CATEGORY_UNSPECIFIED": 0, - "SHOES": 1, - "BAGS": 2, + "SHOES": 1, + "BAGS": 2, } func (x ProductSearchCategory) String() string { diff --git a/googleapis/datastore/admin/v1/index.pb.go b/googleapis/datastore/admin/v1/index.pb.go index f1a4ba5ba5b8f12f32388398e62c40d1d5005459..ba8ededf0374b8f993eab1b1b5de011c9e424def 100644 --- a/googleapis/datastore/admin/v1/index.pb.go +++ b/googleapis/datastore/admin/v1/index.pb.go @@ -39,8 +39,8 @@ var Index_AncestorMode_name = map[int32]string{ } var Index_AncestorMode_value = map[string]int32{ "ANCESTOR_MODE_UNSPECIFIED": 0, - "NONE": 1, - "ALL_ANCESTORS": 2, + "NONE": 1, + "ALL_ANCESTORS": 2, } func (x Index_AncestorMode) String() string { diff --git a/googleapis/datastore/v1/query.pb.go b/googleapis/datastore/v1/query.pb.go index 55226d5614b17ea1b680185aab2f0ab69118f33d..6c92385777bcbd0a419effba39d5aee2f6d6d7bd 100644 --- a/googleapis/datastore/v1/query.pb.go +++ b/googleapis/datastore/v1/query.pb.go @@ -47,9 +47,9 @@ var EntityResult_ResultType_name = map[int32]string{ } var EntityResult_ResultType_value = map[string]int32{ "RESULT_TYPE_UNSPECIFIED": 0, - "FULL": 1, - "PROJECTION": 2, - "KEY_ONLY": 3, + "FULL": 1, + "PROJECTION": 2, + "KEY_ONLY": 3, } func (x EntityResult_ResultType) String() string { @@ -105,7 +105,7 @@ var CompositeFilter_Operator_name = map[int32]string{ } var CompositeFilter_Operator_value = map[string]int32{ "OPERATOR_UNSPECIFIED": 0, - "AND": 1, + "AND": 1, } func (x CompositeFilter_Operator) String() string { diff --git a/googleapis/datastore/v1beta3/query.pb.go b/googleapis/datastore/v1beta3/query.pb.go index 3ce1a4f48aa0f91f805973e599bf0e1addad6801..be29c418039ad450f26da33e5473d8ef0366d46f 100644 --- a/googleapis/datastore/v1beta3/query.pb.go +++ b/googleapis/datastore/v1beta3/query.pb.go @@ -47,9 +47,9 @@ var EntityResult_ResultType_name = map[int32]string{ } var EntityResult_ResultType_value = map[string]int32{ "RESULT_TYPE_UNSPECIFIED": 0, - "FULL": 1, - "PROJECTION": 2, - "KEY_ONLY": 3, + "FULL": 1, + "PROJECTION": 2, + "KEY_ONLY": 3, } func (x EntityResult_ResultType) String() string { @@ -105,7 +105,7 @@ var CompositeFilter_Operator_name = map[int32]string{ } var CompositeFilter_Operator_value = map[string]int32{ "OPERATOR_UNSPECIFIED": 0, - "AND": 1, + "AND": 1, } func (x CompositeFilter_Operator) String() string { diff --git a/googleapis/devtools/cloudprofiler/v2/profiler.pb.go b/googleapis/devtools/cloudprofiler/v2/profiler.pb.go index d46307013ab812bc826f4c2f571db31a35cd7053..c8fb7a34bf5d0780acc97088143d3c6f88c613e1 100644 --- a/googleapis/devtools/cloudprofiler/v2/profiler.pb.go +++ b/googleapis/devtools/cloudprofiler/v2/profiler.pb.go @@ -69,13 +69,13 @@ var ProfileType_name = map[int32]string{ } var ProfileType_value = map[string]int32{ "PROFILE_TYPE_UNSPECIFIED": 0, - "CPU": 1, - "WALL": 2, - "HEAP": 3, - "THREADS": 4, - "CONTENTION": 5, - "PEAK_HEAP": 6, - "HEAP_ALLOC": 7, + "CPU": 1, + "WALL": 2, + "HEAP": 3, + "THREADS": 4, + "CONTENTION": 5, + "PEAK_HEAP": 6, + "HEAP_ALLOC": 7, } func (x ProfileType) String() string { diff --git a/googleapis/devtools/containeranalysis/v1alpha1/bill_of_materials.pb.go b/googleapis/devtools/containeranalysis/v1alpha1/bill_of_materials.pb.go index 6371cda0d100ecc04fef76d92f91d37a12f0b7db..9055b47e2c70b17edcbd9cc8da44060071085243 100644 --- a/googleapis/devtools/containeranalysis/v1alpha1/bill_of_materials.pb.go +++ b/googleapis/devtools/containeranalysis/v1alpha1/bill_of_materials.pb.go @@ -38,8 +38,8 @@ var PackageManager_Architecture_name = map[int32]string{ } var PackageManager_Architecture_value = map[string]int32{ "ARCHITECTURE_UNSPECIFIED": 0, - "X86": 1, - "X64": 2, + "X86": 1, + "X64": 2, } func (x PackageManager_Architecture) String() string { diff --git a/googleapis/devtools/containeranalysis/v1alpha1/containeranalysis.pb.go b/googleapis/devtools/containeranalysis/v1alpha1/containeranalysis.pb.go index 2d77e9790860323d3e1a0fec540aad4c7d46dc10..5323e27b4795d1589fa37f22a9710fb1d39d19fc 100644 --- a/googleapis/devtools/containeranalysis/v1alpha1/containeranalysis.pb.go +++ b/googleapis/devtools/containeranalysis/v1alpha1/containeranalysis.pb.go @@ -104,9 +104,9 @@ var Deployable_Deployment_Platform_name = map[int32]string{ } var Deployable_Deployment_Platform_value = map[string]int32{ "PLATFORM_UNSPECIFIED": 0, - "GKE": 1, - "FLEX": 2, - "CUSTOM": 3, + "GKE": 1, + "FLEX": 2, + "CUSTOM": 3, } func (x Deployable_Deployment_Platform) String() string { diff --git a/googleapis/devtools/containeranalysis/v1beta1/deployment/deployment.pb.go b/googleapis/devtools/containeranalysis/v1beta1/deployment/deployment.pb.go index 28b8befb89b910cde04470cd9a29e316fe4d961f..c2c57e7860b1597a11fbe4990be07699fdeac814 100644 --- a/googleapis/devtools/containeranalysis/v1beta1/deployment/deployment.pb.go +++ b/googleapis/devtools/containeranalysis/v1beta1/deployment/deployment.pb.go @@ -41,9 +41,9 @@ var Deployment_Platform_name = map[int32]string{ } var Deployment_Platform_value = map[string]int32{ "PLATFORM_UNSPECIFIED": 0, - "GKE": 1, - "FLEX": 2, - "CUSTOM": 3, + "GKE": 1, + "FLEX": 2, + "CUSTOM": 3, } func (x Deployment_Platform) String() string { diff --git a/googleapis/devtools/containeranalysis/v1beta1/discovery/discovery.pb.go b/googleapis/devtools/containeranalysis/v1beta1/discovery/discovery.pb.go index d01b2a639078f1853cad8e06fe59770725598840..29cb6dfe27aff0a6229f5a02a7b3f9c05188d3f7 100644 --- a/googleapis/devtools/containeranalysis/v1beta1/discovery/discovery.pb.go +++ b/googleapis/devtools/containeranalysis/v1beta1/discovery/discovery.pb.go @@ -40,8 +40,8 @@ var Discovered_ContinuousAnalysis_name = map[int32]string{ } var Discovered_ContinuousAnalysis_value = map[string]int32{ "CONTINUOUS_ANALYSIS_UNSPECIFIED": 0, - "ACTIVE": 1, - "INACTIVE": 2, + "ACTIVE": 1, + "INACTIVE": 2, } func (x Discovered_ContinuousAnalysis) String() string { diff --git a/googleapis/devtools/containeranalysis/v1beta1/package/package.pb.go b/googleapis/devtools/containeranalysis/v1beta1/package/package.pb.go index c211bdd1fcb10a90d28d5686f63cfb9869a9ad01..5a5f331553a4805dfd531e023d654a4784a83bab 100644 --- a/googleapis/devtools/containeranalysis/v1beta1/package/package.pb.go +++ b/googleapis/devtools/containeranalysis/v1beta1/package/package.pb.go @@ -37,8 +37,8 @@ var Architecture_name = map[int32]string{ } var Architecture_value = map[string]int32{ "ARCHITECTURE_UNSPECIFIED": 0, - "X86": 1, - "X64": 2, + "X86": 1, + "X64": 2, } func (x Architecture) String() string { diff --git a/googleapis/devtools/remoteworkers/v1test2/bots.pb.go b/googleapis/devtools/remoteworkers/v1test2/bots.pb.go index 6cfdf49c953a850f234322670441e9a824c462d8..dc25a7632b51ed85941daa30b4d73a5aa97f88ec 100644 --- a/googleapis/devtools/remoteworkers/v1test2/bots.pb.go +++ b/googleapis/devtools/remoteworkers/v1test2/bots.pb.go @@ -65,10 +65,10 @@ var BotStatus_name = map[int32]string{ } var BotStatus_value = map[string]int32{ "BOT_STATUS_UNSPECIFIED": 0, - "OK": 1, - "UNHEALTHY": 2, - "HOST_REBOOTING": 3, - "BOT_TERMINATING": 4, + "OK": 1, + "UNHEALTHY": 2, + "HOST_REBOOTING": 3, + "BOT_TERMINATING": 4, } func (x BotStatus) String() string { diff --git a/googleapis/firestore/admin/v1beta2/operation.pb.go b/googleapis/firestore/admin/v1beta2/operation.pb.go index ec2664562f99fe6122f0e78bbc72e0ad1c0edffb..6078e43b0aad9bfc3f4be5244ae03e3e740776db 100644 --- a/googleapis/firestore/admin/v1beta2/operation.pb.go +++ b/googleapis/firestore/admin/v1beta2/operation.pb.go @@ -91,8 +91,8 @@ var FieldOperationMetadata_IndexConfigDelta_ChangeType_name = map[int32]string{ } var FieldOperationMetadata_IndexConfigDelta_ChangeType_value = map[string]int32{ "CHANGE_TYPE_UNSPECIFIED": 0, - "ADD": 1, - "REMOVE": 2, + "ADD": 1, + "REMOVE": 2, } func (x FieldOperationMetadata_IndexConfigDelta_ChangeType) String() string { diff --git a/googleapis/firestore/v1beta1/query.pb.go b/googleapis/firestore/v1beta1/query.pb.go index 6b26d2bd97c0bc5f7eeebbb4ba3506fc97ed6aee..8b6d255fa505c35db114386663307af5f9ae06b4 100644 --- a/googleapis/firestore/v1beta1/query.pb.go +++ b/googleapis/firestore/v1beta1/query.pb.go @@ -66,7 +66,7 @@ var StructuredQuery_CompositeFilter_Operator_name = map[int32]string{ } var StructuredQuery_CompositeFilter_Operator_value = map[string]int32{ "OPERATOR_UNSPECIFIED": 0, - "AND": 1, + "AND": 1, } func (x StructuredQuery_CompositeFilter_Operator) String() string { diff --git a/googleapis/iam/credentials/v1/common.pb.go b/googleapis/iam/credentials/v1/common.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..f42c9e1f90f713d67ad06428cc2ad85fd4e959f5 --- /dev/null +++ b/googleapis/iam/credentials/v1/common.pb.go @@ -0,0 +1,559 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/iam/credentials/v1/common.proto + +package credentials // import "google.golang.org/genproto/googleapis/iam/credentials/v1" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import duration "github.com/golang/protobuf/ptypes/duration" +import timestamp "github.com/golang/protobuf/ptypes/timestamp" + +// 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 + +type GenerateAccessTokenRequest struct { + // The resource name of the service account for which the credentials + // are requested, in the following format: + // `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. + // Using `-` as a wildcard for the project will infer the project from + // the account. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The sequence of service accounts in a delegation chain. Each service + // account must be granted the `roles/iam.serviceAccountTokenCreator` role + // on its next service account in the chain. The last service account in the + // chain must be granted the `roles/iam.serviceAccountTokenCreator` role + // on the service account that is specified in the `name` field of the + // request. + // + // The delegates must have the following format: + // `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}` + Delegates []string `protobuf:"bytes,2,rep,name=delegates,proto3" json:"delegates,omitempty"` + // Code to identify the scopes to be included in the OAuth 2.0 access token. + // See https://developers.google.com/identity/protocols/googlescopes for more + // information. + // At least one value required. + Scope []string `protobuf:"bytes,4,rep,name=scope,proto3" json:"scope,omitempty"` + // The desired lifetime duration of the access token in seconds. + // Must be set to a value less than or equal to 3600 (1 hour). If a value is + // not specified, the token's lifetime will be set to a default value of one + // hour. + Lifetime *duration.Duration `protobuf:"bytes,7,opt,name=lifetime,proto3" json:"lifetime,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GenerateAccessTokenRequest) Reset() { *m = GenerateAccessTokenRequest{} } +func (m *GenerateAccessTokenRequest) String() string { return proto.CompactTextString(m) } +func (*GenerateAccessTokenRequest) ProtoMessage() {} +func (*GenerateAccessTokenRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_common_282adaf687fb3260, []int{0} +} +func (m *GenerateAccessTokenRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GenerateAccessTokenRequest.Unmarshal(m, b) +} +func (m *GenerateAccessTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GenerateAccessTokenRequest.Marshal(b, m, deterministic) +} +func (dst *GenerateAccessTokenRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenerateAccessTokenRequest.Merge(dst, src) +} +func (m *GenerateAccessTokenRequest) XXX_Size() int { + return xxx_messageInfo_GenerateAccessTokenRequest.Size(m) +} +func (m *GenerateAccessTokenRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GenerateAccessTokenRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GenerateAccessTokenRequest proto.InternalMessageInfo + +func (m *GenerateAccessTokenRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *GenerateAccessTokenRequest) GetDelegates() []string { + if m != nil { + return m.Delegates + } + return nil +} + +func (m *GenerateAccessTokenRequest) GetScope() []string { + if m != nil { + return m.Scope + } + return nil +} + +func (m *GenerateAccessTokenRequest) GetLifetime() *duration.Duration { + if m != nil { + return m.Lifetime + } + return nil +} + +type GenerateAccessTokenResponse struct { + // The OAuth 2.0 access token. + AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` + // Token expiration time. + // The expiration time is always set. + ExpireTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GenerateAccessTokenResponse) Reset() { *m = GenerateAccessTokenResponse{} } +func (m *GenerateAccessTokenResponse) String() string { return proto.CompactTextString(m) } +func (*GenerateAccessTokenResponse) ProtoMessage() {} +func (*GenerateAccessTokenResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_common_282adaf687fb3260, []int{1} +} +func (m *GenerateAccessTokenResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GenerateAccessTokenResponse.Unmarshal(m, b) +} +func (m *GenerateAccessTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GenerateAccessTokenResponse.Marshal(b, m, deterministic) +} +func (dst *GenerateAccessTokenResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenerateAccessTokenResponse.Merge(dst, src) +} +func (m *GenerateAccessTokenResponse) XXX_Size() int { + return xxx_messageInfo_GenerateAccessTokenResponse.Size(m) +} +func (m *GenerateAccessTokenResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GenerateAccessTokenResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GenerateAccessTokenResponse proto.InternalMessageInfo + +func (m *GenerateAccessTokenResponse) GetAccessToken() string { + if m != nil { + return m.AccessToken + } + return "" +} + +func (m *GenerateAccessTokenResponse) GetExpireTime() *timestamp.Timestamp { + if m != nil { + return m.ExpireTime + } + return nil +} + +type SignBlobRequest struct { + // The resource name of the service account for which the credentials + // are requested, in the following format: + // `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. + // Using `-` as a wildcard for the project will infer the project from + // the account. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The sequence of service accounts in a delegation chain. Each service + // account must be granted the `roles/iam.serviceAccountTokenCreator` role + // on its next service account in the chain. The last service account in the + // chain must be granted the `roles/iam.serviceAccountTokenCreator` role + // on the service account that is specified in the `name` field of the + // request. + // + // The delegates must have the following format: + // `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}` + Delegates []string `protobuf:"bytes,3,rep,name=delegates,proto3" json:"delegates,omitempty"` + // The bytes to sign. + Payload []byte `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SignBlobRequest) Reset() { *m = SignBlobRequest{} } +func (m *SignBlobRequest) String() string { return proto.CompactTextString(m) } +func (*SignBlobRequest) ProtoMessage() {} +func (*SignBlobRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_common_282adaf687fb3260, []int{2} +} +func (m *SignBlobRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SignBlobRequest.Unmarshal(m, b) +} +func (m *SignBlobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SignBlobRequest.Marshal(b, m, deterministic) +} +func (dst *SignBlobRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignBlobRequest.Merge(dst, src) +} +func (m *SignBlobRequest) XXX_Size() int { + return xxx_messageInfo_SignBlobRequest.Size(m) +} +func (m *SignBlobRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SignBlobRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SignBlobRequest proto.InternalMessageInfo + +func (m *SignBlobRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *SignBlobRequest) GetDelegates() []string { + if m != nil { + return m.Delegates + } + return nil +} + +func (m *SignBlobRequest) GetPayload() []byte { + if m != nil { + return m.Payload + } + return nil +} + +type SignBlobResponse struct { + // The ID of the key used to sign the blob. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // The signed blob. + SignedBlob []byte `protobuf:"bytes,4,opt,name=signed_blob,json=signedBlob,proto3" json:"signed_blob,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SignBlobResponse) Reset() { *m = SignBlobResponse{} } +func (m *SignBlobResponse) String() string { return proto.CompactTextString(m) } +func (*SignBlobResponse) ProtoMessage() {} +func (*SignBlobResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_common_282adaf687fb3260, []int{3} +} +func (m *SignBlobResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SignBlobResponse.Unmarshal(m, b) +} +func (m *SignBlobResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SignBlobResponse.Marshal(b, m, deterministic) +} +func (dst *SignBlobResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignBlobResponse.Merge(dst, src) +} +func (m *SignBlobResponse) XXX_Size() int { + return xxx_messageInfo_SignBlobResponse.Size(m) +} +func (m *SignBlobResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SignBlobResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SignBlobResponse proto.InternalMessageInfo + +func (m *SignBlobResponse) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *SignBlobResponse) GetSignedBlob() []byte { + if m != nil { + return m.SignedBlob + } + return nil +} + +type SignJwtRequest struct { + // The resource name of the service account for which the credentials + // are requested, in the following format: + // `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. + // Using `-` as a wildcard for the project will infer the project from + // the account. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The sequence of service accounts in a delegation chain. Each service + // account must be granted the `roles/iam.serviceAccountTokenCreator` role + // on its next service account in the chain. The last service account in the + // chain must be granted the `roles/iam.serviceAccountTokenCreator` role + // on the service account that is specified in the `name` field of the + // request. + // + // The delegates must have the following format: + // `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}` + Delegates []string `protobuf:"bytes,3,rep,name=delegates,proto3" json:"delegates,omitempty"` + // The JWT payload to sign: a JSON object that contains a JWT Claims Set. + Payload string `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SignJwtRequest) Reset() { *m = SignJwtRequest{} } +func (m *SignJwtRequest) String() string { return proto.CompactTextString(m) } +func (*SignJwtRequest) ProtoMessage() {} +func (*SignJwtRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_common_282adaf687fb3260, []int{4} +} +func (m *SignJwtRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SignJwtRequest.Unmarshal(m, b) +} +func (m *SignJwtRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SignJwtRequest.Marshal(b, m, deterministic) +} +func (dst *SignJwtRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignJwtRequest.Merge(dst, src) +} +func (m *SignJwtRequest) XXX_Size() int { + return xxx_messageInfo_SignJwtRequest.Size(m) +} +func (m *SignJwtRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SignJwtRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SignJwtRequest proto.InternalMessageInfo + +func (m *SignJwtRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *SignJwtRequest) GetDelegates() []string { + if m != nil { + return m.Delegates + } + return nil +} + +func (m *SignJwtRequest) GetPayload() string { + if m != nil { + return m.Payload + } + return "" +} + +type SignJwtResponse struct { + // The ID of the key used to sign the JWT. + KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + // The signed JWT. + SignedJwt string `protobuf:"bytes,2,opt,name=signed_jwt,json=signedJwt,proto3" json:"signed_jwt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SignJwtResponse) Reset() { *m = SignJwtResponse{} } +func (m *SignJwtResponse) String() string { return proto.CompactTextString(m) } +func (*SignJwtResponse) ProtoMessage() {} +func (*SignJwtResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_common_282adaf687fb3260, []int{5} +} +func (m *SignJwtResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SignJwtResponse.Unmarshal(m, b) +} +func (m *SignJwtResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SignJwtResponse.Marshal(b, m, deterministic) +} +func (dst *SignJwtResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignJwtResponse.Merge(dst, src) +} +func (m *SignJwtResponse) XXX_Size() int { + return xxx_messageInfo_SignJwtResponse.Size(m) +} +func (m *SignJwtResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SignJwtResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SignJwtResponse proto.InternalMessageInfo + +func (m *SignJwtResponse) GetKeyId() string { + if m != nil { + return m.KeyId + } + return "" +} + +func (m *SignJwtResponse) GetSignedJwt() string { + if m != nil { + return m.SignedJwt + } + return "" +} + +type GenerateIdTokenRequest struct { + // The resource name of the service account for which the credentials + // are requested, in the following format: + // `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. + // Using `-` as a wildcard for the project will infer the project from + // the account. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The sequence of service accounts in a delegation chain. Each service + // account must be granted the `roles/iam.serviceAccountTokenCreator` role + // on its next service account in the chain. The last service account in the + // chain must be granted the `roles/iam.serviceAccountTokenCreator` role + // on the service account that is specified in the `name` field of the + // request. + // + // The delegates must have the following format: + // `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}` + Delegates []string `protobuf:"bytes,2,rep,name=delegates,proto3" json:"delegates,omitempty"` + // The audience for the token, such as the API or account that this token + // grants access to. + Audience string `protobuf:"bytes,3,opt,name=audience,proto3" json:"audience,omitempty"` + // Include the service account email in the token. If set to `true`, the + // token will contain `email` and `email_verified` claims. + IncludeEmail bool `protobuf:"varint,4,opt,name=include_email,json=includeEmail,proto3" json:"include_email,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GenerateIdTokenRequest) Reset() { *m = GenerateIdTokenRequest{} } +func (m *GenerateIdTokenRequest) String() string { return proto.CompactTextString(m) } +func (*GenerateIdTokenRequest) ProtoMessage() {} +func (*GenerateIdTokenRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_common_282adaf687fb3260, []int{6} +} +func (m *GenerateIdTokenRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GenerateIdTokenRequest.Unmarshal(m, b) +} +func (m *GenerateIdTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GenerateIdTokenRequest.Marshal(b, m, deterministic) +} +func (dst *GenerateIdTokenRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenerateIdTokenRequest.Merge(dst, src) +} +func (m *GenerateIdTokenRequest) XXX_Size() int { + return xxx_messageInfo_GenerateIdTokenRequest.Size(m) +} +func (m *GenerateIdTokenRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GenerateIdTokenRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GenerateIdTokenRequest proto.InternalMessageInfo + +func (m *GenerateIdTokenRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *GenerateIdTokenRequest) GetDelegates() []string { + if m != nil { + return m.Delegates + } + return nil +} + +func (m *GenerateIdTokenRequest) GetAudience() string { + if m != nil { + return m.Audience + } + return "" +} + +func (m *GenerateIdTokenRequest) GetIncludeEmail() bool { + if m != nil { + return m.IncludeEmail + } + return false +} + +type GenerateIdTokenResponse struct { + // The OpenId Connect ID token. + Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GenerateIdTokenResponse) Reset() { *m = GenerateIdTokenResponse{} } +func (m *GenerateIdTokenResponse) String() string { return proto.CompactTextString(m) } +func (*GenerateIdTokenResponse) ProtoMessage() {} +func (*GenerateIdTokenResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_common_282adaf687fb3260, []int{7} +} +func (m *GenerateIdTokenResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GenerateIdTokenResponse.Unmarshal(m, b) +} +func (m *GenerateIdTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GenerateIdTokenResponse.Marshal(b, m, deterministic) +} +func (dst *GenerateIdTokenResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenerateIdTokenResponse.Merge(dst, src) +} +func (m *GenerateIdTokenResponse) XXX_Size() int { + return xxx_messageInfo_GenerateIdTokenResponse.Size(m) +} +func (m *GenerateIdTokenResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GenerateIdTokenResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GenerateIdTokenResponse proto.InternalMessageInfo + +func (m *GenerateIdTokenResponse) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +func init() { + proto.RegisterType((*GenerateAccessTokenRequest)(nil), "google.iam.credentials.v1.GenerateAccessTokenRequest") + proto.RegisterType((*GenerateAccessTokenResponse)(nil), "google.iam.credentials.v1.GenerateAccessTokenResponse") + proto.RegisterType((*SignBlobRequest)(nil), "google.iam.credentials.v1.SignBlobRequest") + proto.RegisterType((*SignBlobResponse)(nil), "google.iam.credentials.v1.SignBlobResponse") + proto.RegisterType((*SignJwtRequest)(nil), "google.iam.credentials.v1.SignJwtRequest") + proto.RegisterType((*SignJwtResponse)(nil), "google.iam.credentials.v1.SignJwtResponse") + proto.RegisterType((*GenerateIdTokenRequest)(nil), "google.iam.credentials.v1.GenerateIdTokenRequest") + proto.RegisterType((*GenerateIdTokenResponse)(nil), "google.iam.credentials.v1.GenerateIdTokenResponse") +} + +func init() { + proto.RegisterFile("google/iam/credentials/v1/common.proto", fileDescriptor_common_282adaf687fb3260) +} + +var fileDescriptor_common_282adaf687fb3260 = []byte{ + // 514 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x4d, 0x6f, 0xd3, 0x40, + 0x10, 0x95, 0x9b, 0xa4, 0x8d, 0x27, 0xe1, 0x43, 0x56, 0x01, 0x27, 0x50, 0x1a, 0x8c, 0x84, 0x72, + 0xb2, 0x55, 0x10, 0xa7, 0x9e, 0x9a, 0x16, 0x55, 0x89, 0x84, 0x54, 0x99, 0x9e, 0x10, 0xc8, 0xda, + 0xd8, 0x53, 0x6b, 0xc9, 0x7a, 0xd7, 0x78, 0x37, 0x0d, 0x39, 0x70, 0xe4, 0xc4, 0x4f, 0xe0, 0x8f, + 0x72, 0x44, 0xde, 0xdd, 0x34, 0x51, 0x5b, 0x10, 0x12, 0xdc, 0x3c, 0x6f, 0xde, 0xcc, 0xbc, 0x7d, + 0x3b, 0x6b, 0x78, 0x91, 0x0b, 0x91, 0x33, 0x8c, 0x28, 0x29, 0xa2, 0xb4, 0xc2, 0x0c, 0xb9, 0xa2, + 0x84, 0xc9, 0xe8, 0xf2, 0x20, 0x4a, 0x45, 0x51, 0x08, 0x1e, 0x96, 0x95, 0x50, 0xc2, 0xeb, 0x19, + 0x5e, 0x48, 0x49, 0x11, 0x6e, 0xf0, 0xc2, 0xcb, 0x83, 0xfe, 0x53, 0xdb, 0x42, 0x13, 0xa7, 0xf3, + 0x8b, 0x28, 0x9b, 0x57, 0x44, 0xd1, 0x55, 0x69, 0x7f, 0xff, 0x7a, 0x5e, 0xd1, 0x02, 0xa5, 0x22, + 0x45, 0x69, 0x08, 0xc1, 0x0f, 0x07, 0xfa, 0xa7, 0xc8, 0xb1, 0x22, 0x0a, 0x8f, 0xd2, 0x14, 0xa5, + 0x3c, 0x17, 0x33, 0xe4, 0x31, 0x7e, 0x9e, 0xa3, 0x54, 0x9e, 0x07, 0x4d, 0x4e, 0x0a, 0xf4, 0x9d, + 0x81, 0x33, 0x74, 0x63, 0xfd, 0xed, 0x3d, 0x01, 0x37, 0x43, 0x86, 0x39, 0x51, 0x28, 0xfd, 0xad, + 0x41, 0x63, 0xe8, 0xc6, 0x6b, 0xc0, 0xdb, 0x85, 0x96, 0x4c, 0x45, 0x89, 0x7e, 0x53, 0x67, 0x4c, + 0xe0, 0xbd, 0x86, 0x36, 0xa3, 0x17, 0x58, 0x4f, 0xf7, 0x77, 0x06, 0xce, 0xb0, 0xf3, 0xb2, 0x17, + 0xda, 0x53, 0xad, 0xa4, 0x85, 0x27, 0x56, 0x7a, 0x7c, 0x45, 0x0d, 0xbe, 0xc2, 0xe3, 0x5b, 0xc5, + 0xc9, 0x52, 0x70, 0x89, 0xde, 0x33, 0xe8, 0x12, 0x0d, 0x27, 0xaa, 0xc6, 0xad, 0xca, 0x0e, 0x59, + 0x53, 0xbd, 0x43, 0xe8, 0xe0, 0x97, 0x92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 0x97, 0x8a, 0x22, + 0xfc, 0xed, 0x83, 0x1c, 0xf5, 0xc6, 0x47, 0x6f, 0x8f, 0xd7, 0xd0, 0xb1, 0x7e, 0xc7, 0x67, 0xf5, + 0x9a, 0x9d, 0x39, 0xef, 0x4f, 0x6c, 0x5d, 0x2e, 0x18, 0xe1, 0x79, 0x28, 0xaa, 0x3c, 0xca, 0x91, + 0xeb, 0x25, 0x8c, 0x4c, 0x8a, 0x94, 0x54, 0xde, 0xf2, 0x3f, 0x38, 0xdc, 0x08, 0x7f, 0x3a, 0xce, + 0x74, 0x5b, 0xd7, 0xbc, 0xfa, 0x15, 0x00, 0x00, 0xff, 0xff, 0x0a, 0x93, 0x59, 0x07, 0x42, 0x04, + 0x00, 0x00, +} diff --git a/googleapis/iam/credentials/v1/iamcredentials.pb.go b/googleapis/iam/credentials/v1/iamcredentials.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..f447abf720cf0c0c4b6be7ebcc2bb943f077218a --- /dev/null +++ b/googleapis/iam/credentials/v1/iamcredentials.pb.go @@ -0,0 +1,236 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/iam/credentials/v1/iamcredentials.proto + +package credentials // import "google.golang.org/genproto/googleapis/iam/credentials/v1" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import _ "google.golang.org/genproto/googleapis/api/annotations" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// 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 + +// 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 + +// IAMCredentialsClient is the client API for IAMCredentials service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type IAMCredentialsClient interface { + // Generates an OAuth 2.0 access token for a service account. + GenerateAccessToken(ctx context.Context, in *GenerateAccessTokenRequest, opts ...grpc.CallOption) (*GenerateAccessTokenResponse, error) + // Generates an OpenID Connect ID token for a service account. + GenerateIdToken(ctx context.Context, in *GenerateIdTokenRequest, opts ...grpc.CallOption) (*GenerateIdTokenResponse, error) + // Signs a blob using a service account's system-managed private key. + SignBlob(ctx context.Context, in *SignBlobRequest, opts ...grpc.CallOption) (*SignBlobResponse, error) + // Signs a JWT using a service account's system-managed private key. + SignJwt(ctx context.Context, in *SignJwtRequest, opts ...grpc.CallOption) (*SignJwtResponse, error) +} + +type iAMCredentialsClient struct { + cc *grpc.ClientConn +} + +func NewIAMCredentialsClient(cc *grpc.ClientConn) IAMCredentialsClient { + return &iAMCredentialsClient{cc} +} + +func (c *iAMCredentialsClient) GenerateAccessToken(ctx context.Context, in *GenerateAccessTokenRequest, opts ...grpc.CallOption) (*GenerateAccessTokenResponse, error) { + out := new(GenerateAccessTokenResponse) + err := c.cc.Invoke(ctx, "/google.iam.credentials.v1.IAMCredentials/GenerateAccessToken", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *iAMCredentialsClient) GenerateIdToken(ctx context.Context, in *GenerateIdTokenRequest, opts ...grpc.CallOption) (*GenerateIdTokenResponse, error) { + out := new(GenerateIdTokenResponse) + err := c.cc.Invoke(ctx, "/google.iam.credentials.v1.IAMCredentials/GenerateIdToken", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *iAMCredentialsClient) SignBlob(ctx context.Context, in *SignBlobRequest, opts ...grpc.CallOption) (*SignBlobResponse, error) { + out := new(SignBlobResponse) + err := c.cc.Invoke(ctx, "/google.iam.credentials.v1.IAMCredentials/SignBlob", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *iAMCredentialsClient) SignJwt(ctx context.Context, in *SignJwtRequest, opts ...grpc.CallOption) (*SignJwtResponse, error) { + out := new(SignJwtResponse) + err := c.cc.Invoke(ctx, "/google.iam.credentials.v1.IAMCredentials/SignJwt", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// IAMCredentialsServer is the server API for IAMCredentials service. +type IAMCredentialsServer interface { + // Generates an OAuth 2.0 access token for a service account. + GenerateAccessToken(context.Context, *GenerateAccessTokenRequest) (*GenerateAccessTokenResponse, error) + // Generates an OpenID Connect ID token for a service account. + GenerateIdToken(context.Context, *GenerateIdTokenRequest) (*GenerateIdTokenResponse, error) + // Signs a blob using a service account's system-managed private key. + SignBlob(context.Context, *SignBlobRequest) (*SignBlobResponse, error) + // Signs a JWT using a service account's system-managed private key. + SignJwt(context.Context, *SignJwtRequest) (*SignJwtResponse, error) +} + +func RegisterIAMCredentialsServer(s *grpc.Server, srv IAMCredentialsServer) { + s.RegisterService(&_IAMCredentials_serviceDesc, srv) +} + +func _IAMCredentials_GenerateAccessToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GenerateAccessTokenRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IAMCredentialsServer).GenerateAccessToken(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.iam.credentials.v1.IAMCredentials/GenerateAccessToken", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IAMCredentialsServer).GenerateAccessToken(ctx, req.(*GenerateAccessTokenRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _IAMCredentials_GenerateIdToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GenerateIdTokenRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IAMCredentialsServer).GenerateIdToken(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.iam.credentials.v1.IAMCredentials/GenerateIdToken", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IAMCredentialsServer).GenerateIdToken(ctx, req.(*GenerateIdTokenRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _IAMCredentials_SignBlob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SignBlobRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IAMCredentialsServer).SignBlob(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.iam.credentials.v1.IAMCredentials/SignBlob", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IAMCredentialsServer).SignBlob(ctx, req.(*SignBlobRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _IAMCredentials_SignJwt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SignJwtRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IAMCredentialsServer).SignJwt(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.iam.credentials.v1.IAMCredentials/SignJwt", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IAMCredentialsServer).SignJwt(ctx, req.(*SignJwtRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _IAMCredentials_serviceDesc = grpc.ServiceDesc{ + ServiceName: "google.iam.credentials.v1.IAMCredentials", + HandlerType: (*IAMCredentialsServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GenerateAccessToken", + Handler: _IAMCredentials_GenerateAccessToken_Handler, + }, + { + MethodName: "GenerateIdToken", + Handler: _IAMCredentials_GenerateIdToken_Handler, + }, + { + MethodName: "SignBlob", + Handler: _IAMCredentials_SignBlob_Handler, + }, + { + MethodName: "SignJwt", + Handler: _IAMCredentials_SignJwt_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "google/iam/credentials/v1/iamcredentials.proto", +} + +func init() { + proto.RegisterFile("google/iam/credentials/v1/iamcredentials.proto", fileDescriptor_iamcredentials_bb9e3c7fcb39de21) +} + +var fileDescriptor_iamcredentials_bb9e3c7fcb39de21 = []byte{ + // 372 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xbd, 0x4e, 0xc3, 0x30, + 0x14, 0x85, 0x65, 0x24, 0x7e, 0x94, 0x01, 0xa4, 0x30, 0x51, 0x31, 0x65, 0x40, 0x22, 0x48, 0x31, + 0x2d, 0x14, 0xa4, 0x14, 0x24, 0x5a, 0x10, 0xa8, 0x95, 0x58, 0x80, 0x89, 0xcd, 0x4d, 0xaf, 0x2c, + 0x43, 0xe2, 0x1b, 0x62, 0xb7, 0x1d, 0x10, 0x0b, 0xaf, 0xc0, 0xca, 0xc0, 0x83, 0xf0, 0x08, 0x6c, + 0xbc, 0x00, 0x03, 0x0f, 0xc1, 0x88, 0x92, 0x38, 0xa2, 0x12, 0x2d, 0x24, 0xa3, 0xaf, 0xcf, 0x39, + 0xf7, 0x3b, 0xc3, 0xb5, 0x3c, 0x8e, 0xc8, 0x43, 0xa0, 0x82, 0x45, 0x34, 0x48, 0x60, 0x00, 0x52, + 0x0b, 0x16, 0x2a, 0x3a, 0xaa, 0xa7, 0xa3, 0x89, 0x89, 0x17, 0x27, 0xa8, 0xd1, 0x5e, 0xcb, 0xf5, + 0x9e, 0x60, 0x91, 0x37, 0xf9, 0x3b, 0xaa, 0xd7, 0xd6, 0x4d, 0x14, 0x8b, 0x05, 0x65, 0x52, 0xa2, + 0x66, 0x5a, 0xa0, 0x34, 0xc6, 0xda, 0xc6, 0xec, 0x45, 0x01, 0x46, 0x11, 0xca, 0x5c, 0xd7, 0xf8, + 0x98, 0xb7, 0x96, 0xbb, 0xed, 0xf3, 0xe3, 0x1f, 0x89, 0xfd, 0x46, 0xac, 0xd5, 0x33, 0x90, 0x90, + 0x30, 0x0d, 0xed, 0x20, 0x00, 0xa5, 0xae, 0xf0, 0x16, 0xa4, 0xdd, 0xf4, 0x66, 0xc2, 0x78, 0x53, + 0xf4, 0x17, 0x70, 0x37, 0x04, 0xa5, 0x6b, 0x7b, 0x55, 0x6d, 0x2a, 0x46, 0xa9, 0xc0, 0x39, 0x7d, + 0x7c, 0xff, 0x7c, 0x9a, 0x3b, 0x72, 0x5a, 0x29, 0xf3, 0xbd, 0x64, 0x11, 0x1c, 0xc6, 0x09, 0xde, + 0x40, 0xa0, 0x15, 0x75, 0xa9, 0x82, 0x64, 0x24, 0x82, 0xd4, 0x88, 0x43, 0x99, 0x4e, 0x1e, 0x7c, + 0xfe, 0x3b, 0xcc, 0x27, 0xae, 0xfd, 0x4a, 0xac, 0x95, 0x62, 0x4f, 0x77, 0x90, 0x57, 0xa9, 0x97, + 0x60, 0x32, 0xda, 0xa2, 0x46, 0xa3, 0x8a, 0xc5, 0x54, 0xe8, 0x64, 0x15, 0x0e, 0x9c, 0xfd, 0xaa, + 0x15, 0x4c, 0x50, 0x8a, 0xff, 0x42, 0xac, 0xa5, 0x4b, 0xc1, 0x65, 0x27, 0xc4, 0xbe, 0xed, 0xfe, + 0x01, 0x51, 0x88, 0x0a, 0xe0, 0xad, 0x52, 0x5a, 0x43, 0xda, 0xca, 0x48, 0x9b, 0xce, 0x76, 0x59, + 0x52, 0x65, 0x12, 0x52, 0xc4, 0x67, 0x62, 0x2d, 0xa6, 0x89, 0xbd, 0xb1, 0xb6, 0x37, 0xff, 0xd9, + 0xda, 0x1b, 0xeb, 0x02, 0xd0, 0x2d, 0x23, 0x35, 0x7c, 0x7e, 0xc6, 0xb7, 0xeb, 0xd0, 0x2a, 0x7c, + 0xbd, 0xb1, 0xf6, 0x89, 0xdb, 0xe9, 0x5e, 0x9f, 0x98, 0x45, 0x1c, 0x43, 0x26, 0xb9, 0x87, 0x09, + 0xa7, 0x1c, 0x64, 0x76, 0x00, 0x34, 0xff, 0x62, 0xb1, 0x50, 0x53, 0x6e, 0xa5, 0x35, 0xf1, 0xfc, + 0x22, 0xa4, 0xbf, 0x90, 0x79, 0x76, 0xbe, 0x03, 0x00, 0x00, 0xff, 0xff, 0xbd, 0xb5, 0x16, 0x19, + 0xc7, 0x03, 0x00, 0x00, +} diff --git a/googleapis/logging/v2/logging_config.pb.go b/googleapis/logging/v2/logging_config.pb.go index f1de0eabdb1bd384ee7b470a55bdab3e3fffc20e..ece849ab3176c68edeb50de39a986ac40647a3e3 100644 --- a/googleapis/logging/v2/logging_config.pb.go +++ b/googleapis/logging/v2/logging_config.pb.go @@ -48,8 +48,8 @@ var LogSink_VersionFormat_name = map[int32]string{ } var LogSink_VersionFormat_value = map[string]int32{ "VERSION_FORMAT_UNSPECIFIED": 0, - "V2": 1, - "V1": 2, + "V2": 1, + "V1": 2, } func (x LogSink_VersionFormat) String() string { diff --git a/googleapis/monitoring/v3/alert.pb.go b/googleapis/monitoring/v3/alert.pb.go index 583adca7d0d63a71fa8b8a718af35f0318f51aab..733ef79c87b6e2abace7b4b839c2376b66776d7b 100644 --- a/googleapis/monitoring/v3/alert.pb.go +++ b/googleapis/monitoring/v3/alert.pb.go @@ -48,9 +48,9 @@ var AlertPolicy_ConditionCombinerType_name = map[int32]string{ 3: "AND_WITH_MATCHING_RESOURCE", } var AlertPolicy_ConditionCombinerType_value = map[string]int32{ - "COMBINE_UNSPECIFIED": 0, - "AND": 1, - "OR": 2, + "COMBINE_UNSPECIFIED": 0, + "AND": 1, + "OR": 2, "AND_WITH_MATCHING_RESOURCE": 3, } diff --git a/googleapis/privacy/dlp/v2/dlp.pb.go b/googleapis/privacy/dlp/v2/dlp.pb.go index d7a7c0c9e2ffaded5a1e26df4775ee2a3ba90302..348610b9fda4dd735c31ded16b1f112b41ec8e9e 100644 --- a/googleapis/privacy/dlp/v2/dlp.pb.go +++ b/googleapis/privacy/dlp/v2/dlp.pb.go @@ -196,10 +196,10 @@ var StoredInfoTypeState_name = map[int32]string{ } var StoredInfoTypeState_value = map[string]int32{ "STORED_INFO_TYPE_STATE_UNSPECIFIED": 0, - "PENDING": 1, - "READY": 2, - "FAILED": 3, - "INVALID": 4, + "PENDING": 1, + "READY": 2, + "FAILED": 3, + "INVALID": 4, } func (x StoredInfoTypeState) String() string { @@ -359,11 +359,11 @@ var CharsToIgnore_CommonCharsToIgnore_name = map[int32]string{ } var CharsToIgnore_CommonCharsToIgnore_value = map[string]int32{ "COMMON_CHARS_TO_IGNORE_UNSPECIFIED": 0, - "NUMERIC": 1, - "ALPHA_UPPER_CASE": 2, - "ALPHA_LOWER_CASE": 3, - "PUNCTUATION": 4, - "WHITESPACE": 5, + "NUMERIC": 1, + "ALPHA_UPPER_CASE": 2, + "ALPHA_LOWER_CASE": 3, + "PUNCTUATION": 4, + "WHITESPACE": 5, } func (x CharsToIgnore_CommonCharsToIgnore) String() string { @@ -399,10 +399,10 @@ var CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet_name = map[int32]string{ } var CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet_value = map[string]int32{ "FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED": 0, - "NUMERIC": 1, - "HEXADECIMAL": 2, - "UPPER_CASE_ALPHA_NUMERIC": 3, - "ALPHA_NUMERIC": 4, + "NUMERIC": 1, + "HEXADECIMAL": 2, + "UPPER_CASE_ALPHA_NUMERIC": 3, + "ALPHA_NUMERIC": 4, } func (x CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet) String() string { @@ -425,7 +425,7 @@ var RecordCondition_Expressions_LogicalOperator_name = map[int32]string{ } var RecordCondition_Expressions_LogicalOperator_value = map[string]int32{ "LOGICAL_OPERATOR_UNSPECIFIED": 0, - "AND": 1, + "AND": 1, } func (x RecordCondition_Expressions_LogicalOperator) String() string { @@ -451,8 +451,8 @@ var TransformationSummary_TransformationResultCode_name = map[int32]string{ } var TransformationSummary_TransformationResultCode_value = map[string]int32{ "TRANSFORMATION_RESULT_CODE_UNSPECIFIED": 0, - "SUCCESS": 1, - "ERROR": 2, + "SUCCESS": 1, + "ERROR": 2, } func (x TransformationSummary_TransformationResultCode) String() string { diff --git a/googleapis/privacy/dlp/v2/storage.pb.go b/googleapis/privacy/dlp/v2/storage.pb.go index 7b46d69e67587b8e7666bca5829c6946d8f018a6..3f2c13190ef8af9ff86132196c1119879548d8b5 100644 --- a/googleapis/privacy/dlp/v2/storage.pb.go +++ b/googleapis/privacy/dlp/v2/storage.pb.go @@ -117,8 +117,8 @@ var CloudStorageOptions_SampleMethod_name = map[int32]string{ } var CloudStorageOptions_SampleMethod_value = map[string]int32{ "SAMPLE_METHOD_UNSPECIFIED": 0, - "TOP": 1, - "RANDOM_START": 2, + "TOP": 1, + "RANDOM_START": 2, } func (x CloudStorageOptions_SampleMethod) String() string { @@ -148,8 +148,8 @@ var BigQueryOptions_SampleMethod_name = map[int32]string{ } var BigQueryOptions_SampleMethod_value = map[string]int32{ "SAMPLE_METHOD_UNSPECIFIED": 0, - "TOP": 1, - "RANDOM_START": 2, + "TOP": 1, + "RANDOM_START": 2, } func (x BigQueryOptions_SampleMethod) String() string {