mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-21 02:08:29 +00:00
3410 lines
82 KiB
Go
3410 lines
82 KiB
Go
// The MIT License
|
|
//
|
|
// Copyright (c) 2020 Temporal Technologies Inc. All rights reserved.
|
|
//
|
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
// of this software and associated documentation files (the "Software"), to deal
|
|
// in the Software without restriction, including without limitation the rights
|
|
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
// copies of the Software, and to permit persons to whom the Software is
|
|
// furnished to do so, subject to the following conditions:
|
|
//
|
|
// The above copyright notice and this permission notice shall be included in
|
|
// all copies or substantial portions of the Software.
|
|
//
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
// THE SOFTWARE.
|
|
|
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: temporal/api/common/v1/message.proto
|
|
|
|
package common
|
|
|
|
import (
|
|
bytes "bytes"
|
|
encoding_binary "encoding/binary"
|
|
fmt "fmt"
|
|
io "io"
|
|
math "math"
|
|
math_bits "math/bits"
|
|
reflect "reflect"
|
|
strings "strings"
|
|
time "time"
|
|
|
|
_ "github.com/gogo/protobuf/gogoproto"
|
|
proto "github.com/gogo/protobuf/proto"
|
|
github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
|
|
_ "github.com/gogo/protobuf/types"
|
|
github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
|
|
v1 "go.temporal.io/api/enums/v1"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
var _ = time.Kitchen
|
|
|
|
// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type DataBlob struct {
|
|
EncodingType v1.EncodingType `protobuf:"varint,1,opt,name=encoding_type,json=encodingType,proto3,enum=temporal.api.enums.v1.EncodingType" json:"encoding_type,omitempty"`
|
|
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
|
}
|
|
|
|
func (m *DataBlob) Reset() { *m = DataBlob{} }
|
|
func (*DataBlob) ProtoMessage() {}
|
|
func (*DataBlob) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_de60adc512f72d87, []int{0}
|
|
}
|
|
func (m *DataBlob) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *DataBlob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_DataBlob.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *DataBlob) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DataBlob.Merge(m, src)
|
|
}
|
|
func (m *DataBlob) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *DataBlob) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DataBlob.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DataBlob proto.InternalMessageInfo
|
|
|
|
func (m *DataBlob) GetEncodingType() v1.EncodingType {
|
|
if m != nil {
|
|
return m.EncodingType
|
|
}
|
|
return v1.ENCODING_TYPE_UNSPECIFIED
|
|
}
|
|
|
|
func (m *DataBlob) GetData() []byte {
|
|
if m != nil {
|
|
return m.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Payloads struct {
|
|
Payloads []*Payload `protobuf:"bytes,1,rep,name=payloads,proto3" json:"payloads,omitempty"`
|
|
}
|
|
|
|
func (m *Payloads) Reset() { *m = Payloads{} }
|
|
func (*Payloads) ProtoMessage() {}
|
|
func (*Payloads) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_de60adc512f72d87, []int{1}
|
|
}
|
|
func (m *Payloads) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *Payloads) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_Payloads.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *Payloads) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Payloads.Merge(m, src)
|
|
}
|
|
func (m *Payloads) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *Payloads) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Payloads.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Payloads proto.InternalMessageInfo
|
|
|
|
func (m *Payloads) GetPayloads() []*Payload {
|
|
if m != nil {
|
|
return m.Payloads
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Payload struct {
|
|
Metadata map[string][]byte `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
|
}
|
|
|
|
func (m *Payload) Reset() { *m = Payload{} }
|
|
func (*Payload) ProtoMessage() {}
|
|
func (*Payload) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_de60adc512f72d87, []int{2}
|
|
}
|
|
func (m *Payload) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_Payload.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *Payload) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Payload.Merge(m, src)
|
|
}
|
|
func (m *Payload) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *Payload) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Payload.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Payload proto.InternalMessageInfo
|
|
|
|
func (m *Payload) GetMetadata() map[string][]byte {
|
|
if m != nil {
|
|
return m.Metadata
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Payload) GetData() []byte {
|
|
if m != nil {
|
|
return m.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SearchAttributes struct {
|
|
IndexedFields map[string]*Payload `protobuf:"bytes,1,rep,name=indexed_fields,json=indexedFields,proto3" json:"indexed_fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
}
|
|
|
|
func (m *SearchAttributes) Reset() { *m = SearchAttributes{} }
|
|
func (*SearchAttributes) ProtoMessage() {}
|
|
func (*SearchAttributes) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_de60adc512f72d87, []int{3}
|
|
}
|
|
func (m *SearchAttributes) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *SearchAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_SearchAttributes.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *SearchAttributes) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SearchAttributes.Merge(m, src)
|
|
}
|
|
func (m *SearchAttributes) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *SearchAttributes) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SearchAttributes.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SearchAttributes proto.InternalMessageInfo
|
|
|
|
func (m *SearchAttributes) GetIndexedFields() map[string]*Payload {
|
|
if m != nil {
|
|
return m.IndexedFields
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Memo struct {
|
|
Fields map[string]*Payload `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
}
|
|
|
|
func (m *Memo) Reset() { *m = Memo{} }
|
|
func (*Memo) ProtoMessage() {}
|
|
func (*Memo) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_de60adc512f72d87, []int{4}
|
|
}
|
|
func (m *Memo) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *Memo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_Memo.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *Memo) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Memo.Merge(m, src)
|
|
}
|
|
func (m *Memo) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *Memo) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Memo.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Memo proto.InternalMessageInfo
|
|
|
|
func (m *Memo) GetFields() map[string]*Payload {
|
|
if m != nil {
|
|
return m.Fields
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Header struct {
|
|
Fields map[string]*Payload `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
}
|
|
|
|
func (m *Header) Reset() { *m = Header{} }
|
|
func (*Header) ProtoMessage() {}
|
|
func (*Header) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_de60adc512f72d87, []int{5}
|
|
}
|
|
func (m *Header) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_Header.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *Header) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Header.Merge(m, src)
|
|
}
|
|
func (m *Header) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *Header) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Header.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Header proto.InternalMessageInfo
|
|
|
|
func (m *Header) GetFields() map[string]*Payload {
|
|
if m != nil {
|
|
return m.Fields
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type WorkflowExecution struct {
|
|
WorkflowId string `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"`
|
|
RunId string `protobuf:"bytes,2,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
|
|
}
|
|
|
|
func (m *WorkflowExecution) Reset() { *m = WorkflowExecution{} }
|
|
func (*WorkflowExecution) ProtoMessage() {}
|
|
func (*WorkflowExecution) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_de60adc512f72d87, []int{6}
|
|
}
|
|
func (m *WorkflowExecution) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *WorkflowExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_WorkflowExecution.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *WorkflowExecution) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_WorkflowExecution.Merge(m, src)
|
|
}
|
|
func (m *WorkflowExecution) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *WorkflowExecution) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_WorkflowExecution.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_WorkflowExecution proto.InternalMessageInfo
|
|
|
|
func (m *WorkflowExecution) GetWorkflowId() string {
|
|
if m != nil {
|
|
return m.WorkflowId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *WorkflowExecution) GetRunId() string {
|
|
if m != nil {
|
|
return m.RunId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type WorkflowType struct {
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
}
|
|
|
|
func (m *WorkflowType) Reset() { *m = WorkflowType{} }
|
|
func (*WorkflowType) ProtoMessage() {}
|
|
func (*WorkflowType) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_de60adc512f72d87, []int{7}
|
|
}
|
|
func (m *WorkflowType) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *WorkflowType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_WorkflowType.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *WorkflowType) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_WorkflowType.Merge(m, src)
|
|
}
|
|
func (m *WorkflowType) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *WorkflowType) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_WorkflowType.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_WorkflowType proto.InternalMessageInfo
|
|
|
|
func (m *WorkflowType) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ActivityType struct {
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
}
|
|
|
|
func (m *ActivityType) Reset() { *m = ActivityType{} }
|
|
func (*ActivityType) ProtoMessage() {}
|
|
func (*ActivityType) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_de60adc512f72d87, []int{8}
|
|
}
|
|
func (m *ActivityType) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ActivityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ActivityType.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *ActivityType) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ActivityType.Merge(m, src)
|
|
}
|
|
func (m *ActivityType) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ActivityType) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ActivityType.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ActivityType proto.InternalMessageInfo
|
|
|
|
func (m *ActivityType) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RetryPolicy struct {
|
|
// Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries.
|
|
InitialInterval *time.Duration `protobuf:"bytes,1,opt,name=initial_interval,json=initialInterval,proto3,stdduration" json:"initial_interval,omitempty"`
|
|
// Coefficient used to calculate the next retry interval.
|
|
// The next retry interval is previous interval multiplied by the coefficient.
|
|
// Must be 1 or larger.
|
|
BackoffCoefficient float64 `protobuf:"fixed64,2,opt,name=backoff_coefficient,json=backoffCoefficient,proto3" json:"backoff_coefficient,omitempty"`
|
|
// Maximum interval between retries. Exponential backoff leads to interval increase.
|
|
// This value is the cap of the increase. Default is 100x of the initial interval.
|
|
MaximumInterval *time.Duration `protobuf:"bytes,3,opt,name=maximum_interval,json=maximumInterval,proto3,stdduration" json:"maximum_interval,omitempty"`
|
|
// Maximum number of attempts. When exceeded the retries stop even if not expired yet.
|
|
// 1 disables retries. 0 means unlimited (up to the timeouts)
|
|
MaximumAttempts int32 `protobuf:"varint,4,opt,name=maximum_attempts,json=maximumAttempts,proto3" json:"maximum_attempts,omitempty"`
|
|
// Non-Retryable errors types. Will stop retrying if error type matches this list.
|
|
NonRetryableErrorTypes []string `protobuf:"bytes,5,rep,name=non_retryable_error_types,json=nonRetryableErrorTypes,proto3" json:"non_retryable_error_types,omitempty"`
|
|
}
|
|
|
|
func (m *RetryPolicy) Reset() { *m = RetryPolicy{} }
|
|
func (*RetryPolicy) ProtoMessage() {}
|
|
func (*RetryPolicy) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_de60adc512f72d87, []int{9}
|
|
}
|
|
func (m *RetryPolicy) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *RetryPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_RetryPolicy.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *RetryPolicy) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RetryPolicy.Merge(m, src)
|
|
}
|
|
func (m *RetryPolicy) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *RetryPolicy) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RetryPolicy.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RetryPolicy proto.InternalMessageInfo
|
|
|
|
func (m *RetryPolicy) GetInitialInterval() *time.Duration {
|
|
if m != nil {
|
|
return m.InitialInterval
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RetryPolicy) GetBackoffCoefficient() float64 {
|
|
if m != nil {
|
|
return m.BackoffCoefficient
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *RetryPolicy) GetMaximumInterval() *time.Duration {
|
|
if m != nil {
|
|
return m.MaximumInterval
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RetryPolicy) GetMaximumAttempts() int32 {
|
|
if m != nil {
|
|
return m.MaximumAttempts
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *RetryPolicy) GetNonRetryableErrorTypes() []string {
|
|
if m != nil {
|
|
return m.NonRetryableErrorTypes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*DataBlob)(nil), "temporal.api.common.v1.DataBlob")
|
|
proto.RegisterType((*Payloads)(nil), "temporal.api.common.v1.Payloads")
|
|
proto.RegisterType((*Payload)(nil), "temporal.api.common.v1.Payload")
|
|
proto.RegisterMapType((map[string][]byte)(nil), "temporal.api.common.v1.Payload.MetadataEntry")
|
|
proto.RegisterType((*SearchAttributes)(nil), "temporal.api.common.v1.SearchAttributes")
|
|
proto.RegisterMapType((map[string]*Payload)(nil), "temporal.api.common.v1.SearchAttributes.IndexedFieldsEntry")
|
|
proto.RegisterType((*Memo)(nil), "temporal.api.common.v1.Memo")
|
|
proto.RegisterMapType((map[string]*Payload)(nil), "temporal.api.common.v1.Memo.FieldsEntry")
|
|
proto.RegisterType((*Header)(nil), "temporal.api.common.v1.Header")
|
|
proto.RegisterMapType((map[string]*Payload)(nil), "temporal.api.common.v1.Header.FieldsEntry")
|
|
proto.RegisterType((*WorkflowExecution)(nil), "temporal.api.common.v1.WorkflowExecution")
|
|
proto.RegisterType((*WorkflowType)(nil), "temporal.api.common.v1.WorkflowType")
|
|
proto.RegisterType((*ActivityType)(nil), "temporal.api.common.v1.ActivityType")
|
|
proto.RegisterType((*RetryPolicy)(nil), "temporal.api.common.v1.RetryPolicy")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("temporal/api/common/v1/message.proto", fileDescriptor_de60adc512f72d87)
|
|
}
|
|
|
|
var fileDescriptor_de60adc512f72d87 = []byte{
|
|
// 786 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x4f, 0x6f, 0xe3, 0x44,
|
|
0x14, 0xcf, 0xa4, 0x7f, 0xe8, 0x4e, 0xda, 0xa5, 0x0c, 0x50, 0x25, 0x39, 0xb8, 0x21, 0xcb, 0x21,
|
|
0x20, 0x31, 0x56, 0x8a, 0x90, 0x20, 0xb9, 0x90, 0xec, 0x06, 0x36, 0xa0, 0x4a, 0x91, 0x59, 0x2d,
|
|
0xd2, 0x5e, 0xa2, 0x89, 0xfd, 0x92, 0x1d, 0xd5, 0x9e, 0xb1, 0xc6, 0xe3, 0x6c, 0x7d, 0xe3, 0x23,
|
|
0x70, 0xe4, 0x03, 0x80, 0xb4, 0xe2, 0x1b, 0x20, 0xf1, 0x01, 0x38, 0xf6, 0xb8, 0x9c, 0xa0, 0xe9,
|
|
0x05, 0x71, 0xda, 0x8f, 0x80, 0x6c, 0x8f, 0xd3, 0x64, 0x69, 0x44, 0x2f, 0xec, 0xed, 0xf9, 0xbd,
|
|
0xdf, 0xef, 0xf7, 0x7e, 0xef, 0xd9, 0x9e, 0xc1, 0xef, 0x6b, 0x08, 0x42, 0xa9, 0x98, 0x6f, 0xb3,
|
|
0x90, 0xdb, 0xae, 0x0c, 0x02, 0x29, 0xec, 0x79, 0xdb, 0x0e, 0x20, 0x8a, 0xd8, 0x0c, 0x68, 0xa8,
|
|
0xa4, 0x96, 0xe4, 0xa8, 0x40, 0x51, 0x16, 0x72, 0x9a, 0xa3, 0xe8, 0xbc, 0x5d, 0xb7, 0x66, 0x52,
|
|
0xce, 0x7c, 0xb0, 0x33, 0xd4, 0x24, 0x9e, 0xda, 0x5e, 0xac, 0x98, 0xe6, 0x52, 0xe4, 0xbc, 0xfa,
|
|
0x7b, 0x1e, 0x84, 0x20, 0x3c, 0x10, 0x2e, 0x87, 0xc8, 0x9e, 0xc9, 0x99, 0xcc, 0xf2, 0x59, 0x64,
|
|
0x20, 0xcd, 0x35, 0x03, 0x20, 0xe2, 0x20, 0x4a, 0xfb, 0x9b, 0x1e, 0x19, 0xa6, 0xf9, 0x14, 0xef,
|
|
0x3d, 0x60, 0x9a, 0xf5, 0x7d, 0x39, 0x21, 0x0f, 0xf1, 0x01, 0x08, 0x57, 0x7a, 0x5c, 0xcc, 0xc6,
|
|
0x3a, 0x09, 0xa1, 0x8a, 0x1a, 0xa8, 0x75, 0xf7, 0xe4, 0x1e, 0x5d, 0xb3, 0x98, 0xe9, 0xd0, 0x79,
|
|
0x9b, 0x0e, 0x0c, 0xf6, 0x51, 0x12, 0x82, 0xb3, 0x0f, 0x2b, 0x4f, 0x84, 0xe0, 0x6d, 0x8f, 0x69,
|
|
0x56, 0x2d, 0x37, 0x50, 0x6b, 0xdf, 0xc9, 0xe2, 0xe6, 0x97, 0x78, 0x6f, 0xc4, 0x12, 0x5f, 0x32,
|
|
0x2f, 0x22, 0x5d, 0xbc, 0x17, 0x9a, 0xb8, 0x8a, 0x1a, 0x5b, 0xad, 0xca, 0xc9, 0x31, 0xbd, 0x79,
|
|
0x0f, 0xd4, 0x70, 0x9c, 0x25, 0xa1, 0xf9, 0x13, 0xc2, 0x6f, 0x98, 0x2c, 0x19, 0xe2, 0xbd, 0x00,
|
|
0x34, 0xcb, 0x9a, 0xe5, 0x42, 0x1f, 0xfd, 0x87, 0x10, 0x3d, 0x35, 0xf8, 0x81, 0xd0, 0x2a, 0x71,
|
|
0x96, 0xf4, 0x9b, 0x3c, 0xd7, 0xbb, 0xf8, 0x60, 0x0d, 0x4e, 0x0e, 0xf1, 0xd6, 0x19, 0x24, 0xd9,
|
|
0x62, 0xee, 0x38, 0x69, 0x48, 0xde, 0xc1, 0x3b, 0x73, 0xe6, 0xc7, 0x60, 0x78, 0xf9, 0x43, 0xa7,
|
|
0xfc, 0x29, 0x6a, 0xfe, 0x8e, 0xf0, 0xe1, 0x37, 0xc0, 0x94, 0xfb, 0xb4, 0xa7, 0xb5, 0xe2, 0x93,
|
|
0x58, 0x43, 0x44, 0x26, 0xf8, 0x2e, 0x17, 0x1e, 0x9c, 0x83, 0x37, 0x9e, 0x72, 0xf0, 0x97, 0xf3,
|
|
0x77, 0x37, 0xd9, 0x7e, 0x55, 0x81, 0x0e, 0x73, 0xfa, 0x17, 0x19, 0x3b, 0x1f, 0xe2, 0x80, 0xaf,
|
|
0xe6, 0xea, 0x0c, 0x93, 0x7f, 0x83, 0x6e, 0xb0, 0xfe, 0xc9, 0xaa, 0xf5, 0x5b, 0xbc, 0x82, 0x95,
|
|
0xd9, 0x7e, 0x44, 0x78, 0xfb, 0x14, 0x02, 0x49, 0x3e, 0xc7, 0xbb, 0x6b, 0x73, 0xb4, 0x36, 0x89,
|
|
0xa4, 0x68, 0xba, 0x6a, 0xda, 0xf0, 0xea, 0x4f, 0x70, 0xe5, 0x7f, 0xb3, 0xf9, 0x1c, 0xe1, 0xdd,
|
|
0x87, 0xc0, 0x3c, 0x50, 0xa4, 0xff, 0x8a, 0xd1, 0x0f, 0x37, 0xc9, 0xe4, 0xf8, 0xd7, 0x6e, 0xf5,
|
|
0x6b, 0xfc, 0xd6, 0xb7, 0x52, 0x9d, 0x4d, 0x7d, 0xf9, 0x6c, 0x70, 0x0e, 0x6e, 0x9c, 0xfe, 0xea,
|
|
0xe4, 0x18, 0x57, 0x9e, 0x99, 0xe4, 0x98, 0x7b, 0xa6, 0x13, 0x2e, 0x52, 0x43, 0x8f, 0xbc, 0x8b,
|
|
0x77, 0x55, 0x2c, 0xd2, 0x5a, 0x39, 0xab, 0xed, 0xa8, 0x58, 0x0c, 0xbd, 0x66, 0x13, 0xef, 0x17,
|
|
0x62, 0xc5, 0xff, 0x28, 0x58, 0x00, 0x46, 0x20, 0x8b, 0x53, 0x4c, 0xcf, 0xd5, 0x7c, 0xce, 0x75,
|
|
0xb2, 0x11, 0xf3, 0x6b, 0x19, 0x57, 0x1c, 0xd0, 0x2a, 0x19, 0x49, 0x9f, 0xbb, 0x09, 0xf9, 0x0a,
|
|
0x1f, 0x72, 0xc1, 0x35, 0x67, 0xfe, 0x98, 0x0b, 0x0d, 0x6a, 0xce, 0xfc, 0x0c, 0x5f, 0x39, 0xa9,
|
|
0xd1, 0xfc, 0xbc, 0xa2, 0xc5, 0x79, 0x45, 0x1f, 0x98, 0xf3, 0xaa, 0xbf, 0xfd, 0xc3, 0x1f, 0xc7,
|
|
0xc8, 0x79, 0xd3, 0x10, 0x87, 0x86, 0x47, 0x6c, 0xfc, 0xf6, 0x84, 0xb9, 0x67, 0x72, 0x3a, 0x1d,
|
|
0xbb, 0x12, 0xa6, 0x53, 0xee, 0x72, 0x10, 0x3a, 0x9b, 0x03, 0x39, 0xc4, 0x94, 0xee, 0x5f, 0x57,
|
|
0xd2, 0xe6, 0x01, 0x3b, 0xe7, 0x41, 0x1c, 0x5c, 0x37, 0xdf, 0xba, 0x65, 0x73, 0x43, 0x5c, 0x36,
|
|
0xff, 0xe0, 0x5a, 0x8b, 0xe9, 0xf4, 0x25, 0xe9, 0xa8, 0xba, 0xdd, 0x40, 0xad, 0x9d, 0x25, 0xb4,
|
|
0x67, 0xd2, 0xe4, 0x33, 0x5c, 0x13, 0x52, 0x8c, 0x55, 0xba, 0x06, 0x36, 0xf1, 0x61, 0x0c, 0x4a,
|
|
0x49, 0x95, 0x1d, 0x90, 0x51, 0x75, 0xa7, 0xb1, 0xd5, 0xba, 0xe3, 0x1c, 0x09, 0x29, 0x9c, 0xa2,
|
|
0x3e, 0x48, 0xcb, 0xe9, 0x46, 0xa3, 0xfe, 0x2f, 0xe8, 0xe2, 0xd2, 0x2a, 0xbd, 0xb8, 0xb4, 0x4a,
|
|
0x2f, 0x2f, 0x2d, 0xf4, 0xdd, 0xc2, 0x42, 0xcf, 0x17, 0x16, 0xfa, 0x6d, 0x61, 0xa1, 0x8b, 0x85,
|
|
0x85, 0xfe, 0x5c, 0x58, 0xe8, 0xaf, 0x85, 0x55, 0x7a, 0xb9, 0xb0, 0xd0, 0xf7, 0x57, 0x56, 0xe9,
|
|
0xe2, 0xca, 0x2a, 0xbd, 0xb8, 0xb2, 0x4a, 0xb8, 0xc6, 0xe5, 0x86, 0x0f, 0xa7, 0xbf, 0x7f, 0x9a,
|
|
0x5f, 0x1e, 0xa3, 0x74, 0xd0, 0x11, 0x7a, 0x72, 0x6f, 0xb6, 0x02, 0xe5, 0x72, 0xfd, 0xa6, 0xe9,
|
|
0xe6, 0xd1, 0xcf, 0xe5, 0xa3, 0x47, 0x05, 0xa4, 0x17, 0x72, 0x7a, 0x3f, 0x57, 0x7b, 0xdc, 0xfe,
|
|
0xbb, 0x5c, 0x2b, 0x0a, 0x9d, 0x4e, 0x2f, 0xe4, 0x9d, 0x4e, 0x5e, 0xea, 0x74, 0x1e, 0xb7, 0x27,
|
|
0xbb, 0xd9, 0x2e, 0x3f, 0xfe, 0x27, 0x00, 0x00, 0xff, 0xff, 0x65, 0xec, 0x32, 0x8e, 0xc6, 0x06,
|
|
0x00, 0x00,
|
|
}
|
|
|
|
func (this *DataBlob) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
that1, ok := that.(*DataBlob)
|
|
if !ok {
|
|
that2, ok := that.(DataBlob)
|
|
if ok {
|
|
that1 = &that2
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
if that1 == nil {
|
|
return this == nil
|
|
} else if this == nil {
|
|
return false
|
|
}
|
|
if this.EncodingType != that1.EncodingType {
|
|
return false
|
|
}
|
|
if !bytes.Equal(this.Data, that1.Data) {
|
|
return false
|
|
}
|
|
return true
|
|
}
|
|
func (this *Payloads) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
that1, ok := that.(*Payloads)
|
|
if !ok {
|
|
that2, ok := that.(Payloads)
|
|
if ok {
|
|
that1 = &that2
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
if that1 == nil {
|
|
return this == nil
|
|
} else if this == nil {
|
|
return false
|
|
}
|
|
if len(this.Payloads) != len(that1.Payloads) {
|
|
return false
|
|
}
|
|
for i := range this.Payloads {
|
|
if !this.Payloads[i].Equal(that1.Payloads[i]) {
|
|
return false
|
|
}
|
|
}
|
|
return true
|
|
}
|
|
func (this *Payload) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
that1, ok := that.(*Payload)
|
|
if !ok {
|
|
that2, ok := that.(Payload)
|
|
if ok {
|
|
that1 = &that2
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
if that1 == nil {
|
|
return this == nil
|
|
} else if this == nil {
|
|
return false
|
|
}
|
|
if len(this.Metadata) != len(that1.Metadata) {
|
|
return false
|
|
}
|
|
for i := range this.Metadata {
|
|
if !bytes.Equal(this.Metadata[i], that1.Metadata[i]) {
|
|
return false
|
|
}
|
|
}
|
|
if !bytes.Equal(this.Data, that1.Data) {
|
|
return false
|
|
}
|
|
return true
|
|
}
|
|
func (this *SearchAttributes) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
that1, ok := that.(*SearchAttributes)
|
|
if !ok {
|
|
that2, ok := that.(SearchAttributes)
|
|
if ok {
|
|
that1 = &that2
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
if that1 == nil {
|
|
return this == nil
|
|
} else if this == nil {
|
|
return false
|
|
}
|
|
if len(this.IndexedFields) != len(that1.IndexedFields) {
|
|
return false
|
|
}
|
|
for i := range this.IndexedFields {
|
|
if !this.IndexedFields[i].Equal(that1.IndexedFields[i]) {
|
|
return false
|
|
}
|
|
}
|
|
return true
|
|
}
|
|
func (this *Memo) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
that1, ok := that.(*Memo)
|
|
if !ok {
|
|
that2, ok := that.(Memo)
|
|
if ok {
|
|
that1 = &that2
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
if that1 == nil {
|
|
return this == nil
|
|
} else if this == nil {
|
|
return false
|
|
}
|
|
if len(this.Fields) != len(that1.Fields) {
|
|
return false
|
|
}
|
|
for i := range this.Fields {
|
|
if !this.Fields[i].Equal(that1.Fields[i]) {
|
|
return false
|
|
}
|
|
}
|
|
return true
|
|
}
|
|
func (this *Header) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
that1, ok := that.(*Header)
|
|
if !ok {
|
|
that2, ok := that.(Header)
|
|
if ok {
|
|
that1 = &that2
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
if that1 == nil {
|
|
return this == nil
|
|
} else if this == nil {
|
|
return false
|
|
}
|
|
if len(this.Fields) != len(that1.Fields) {
|
|
return false
|
|
}
|
|
for i := range this.Fields {
|
|
if !this.Fields[i].Equal(that1.Fields[i]) {
|
|
return false
|
|
}
|
|
}
|
|
return true
|
|
}
|
|
func (this *WorkflowExecution) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
that1, ok := that.(*WorkflowExecution)
|
|
if !ok {
|
|
that2, ok := that.(WorkflowExecution)
|
|
if ok {
|
|
that1 = &that2
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
if that1 == nil {
|
|
return this == nil
|
|
} else if this == nil {
|
|
return false
|
|
}
|
|
if this.WorkflowId != that1.WorkflowId {
|
|
return false
|
|
}
|
|
if this.RunId != that1.RunId {
|
|
return false
|
|
}
|
|
return true
|
|
}
|
|
func (this *WorkflowType) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
that1, ok := that.(*WorkflowType)
|
|
if !ok {
|
|
that2, ok := that.(WorkflowType)
|
|
if ok {
|
|
that1 = &that2
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
if that1 == nil {
|
|
return this == nil
|
|
} else if this == nil {
|
|
return false
|
|
}
|
|
if this.Name != that1.Name {
|
|
return false
|
|
}
|
|
return true
|
|
}
|
|
func (this *ActivityType) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
that1, ok := that.(*ActivityType)
|
|
if !ok {
|
|
that2, ok := that.(ActivityType)
|
|
if ok {
|
|
that1 = &that2
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
if that1 == nil {
|
|
return this == nil
|
|
} else if this == nil {
|
|
return false
|
|
}
|
|
if this.Name != that1.Name {
|
|
return false
|
|
}
|
|
return true
|
|
}
|
|
func (this *RetryPolicy) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
that1, ok := that.(*RetryPolicy)
|
|
if !ok {
|
|
that2, ok := that.(RetryPolicy)
|
|
if ok {
|
|
that1 = &that2
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
if that1 == nil {
|
|
return this == nil
|
|
} else if this == nil {
|
|
return false
|
|
}
|
|
if this.InitialInterval != nil && that1.InitialInterval != nil {
|
|
if *this.InitialInterval != *that1.InitialInterval {
|
|
return false
|
|
}
|
|
} else if this.InitialInterval != nil {
|
|
return false
|
|
} else if that1.InitialInterval != nil {
|
|
return false
|
|
}
|
|
if this.BackoffCoefficient != that1.BackoffCoefficient {
|
|
return false
|
|
}
|
|
if this.MaximumInterval != nil && that1.MaximumInterval != nil {
|
|
if *this.MaximumInterval != *that1.MaximumInterval {
|
|
return false
|
|
}
|
|
} else if this.MaximumInterval != nil {
|
|
return false
|
|
} else if that1.MaximumInterval != nil {
|
|
return false
|
|
}
|
|
if this.MaximumAttempts != that1.MaximumAttempts {
|
|
return false
|
|
}
|
|
if len(this.NonRetryableErrorTypes) != len(that1.NonRetryableErrorTypes) {
|
|
return false
|
|
}
|
|
for i := range this.NonRetryableErrorTypes {
|
|
if this.NonRetryableErrorTypes[i] != that1.NonRetryableErrorTypes[i] {
|
|
return false
|
|
}
|
|
}
|
|
return true
|
|
}
|
|
func (this *DataBlob) GoString() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := make([]string, 0, 6)
|
|
s = append(s, "&common.DataBlob{")
|
|
s = append(s, "EncodingType: "+fmt.Sprintf("%#v", this.EncodingType)+",\n")
|
|
s = append(s, "Data: "+fmt.Sprintf("%#v", this.Data)+",\n")
|
|
s = append(s, "}")
|
|
return strings.Join(s, "")
|
|
}
|
|
func (this *Payloads) GoString() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := make([]string, 0, 5)
|
|
s = append(s, "&common.Payloads{")
|
|
if this.Payloads != nil {
|
|
s = append(s, "Payloads: "+fmt.Sprintf("%#v", this.Payloads)+",\n")
|
|
}
|
|
s = append(s, "}")
|
|
return strings.Join(s, "")
|
|
}
|
|
func (this *Payload) GoString() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := make([]string, 0, 6)
|
|
s = append(s, "&common.Payload{")
|
|
keysForMetadata := make([]string, 0, len(this.Metadata))
|
|
for k, _ := range this.Metadata {
|
|
keysForMetadata = append(keysForMetadata, k)
|
|
}
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForMetadata)
|
|
mapStringForMetadata := "map[string][]byte{"
|
|
for _, k := range keysForMetadata {
|
|
mapStringForMetadata += fmt.Sprintf("%#v: %#v,", k, this.Metadata[k])
|
|
}
|
|
mapStringForMetadata += "}"
|
|
if this.Metadata != nil {
|
|
s = append(s, "Metadata: "+mapStringForMetadata+",\n")
|
|
}
|
|
s = append(s, "Data: "+fmt.Sprintf("%#v", this.Data)+",\n")
|
|
s = append(s, "}")
|
|
return strings.Join(s, "")
|
|
}
|
|
func (this *SearchAttributes) GoString() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := make([]string, 0, 5)
|
|
s = append(s, "&common.SearchAttributes{")
|
|
keysForIndexedFields := make([]string, 0, len(this.IndexedFields))
|
|
for k, _ := range this.IndexedFields {
|
|
keysForIndexedFields = append(keysForIndexedFields, k)
|
|
}
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForIndexedFields)
|
|
mapStringForIndexedFields := "map[string]*Payload{"
|
|
for _, k := range keysForIndexedFields {
|
|
mapStringForIndexedFields += fmt.Sprintf("%#v: %#v,", k, this.IndexedFields[k])
|
|
}
|
|
mapStringForIndexedFields += "}"
|
|
if this.IndexedFields != nil {
|
|
s = append(s, "IndexedFields: "+mapStringForIndexedFields+",\n")
|
|
}
|
|
s = append(s, "}")
|
|
return strings.Join(s, "")
|
|
}
|
|
func (this *Memo) GoString() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := make([]string, 0, 5)
|
|
s = append(s, "&common.Memo{")
|
|
keysForFields := make([]string, 0, len(this.Fields))
|
|
for k, _ := range this.Fields {
|
|
keysForFields = append(keysForFields, k)
|
|
}
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForFields)
|
|
mapStringForFields := "map[string]*Payload{"
|
|
for _, k := range keysForFields {
|
|
mapStringForFields += fmt.Sprintf("%#v: %#v,", k, this.Fields[k])
|
|
}
|
|
mapStringForFields += "}"
|
|
if this.Fields != nil {
|
|
s = append(s, "Fields: "+mapStringForFields+",\n")
|
|
}
|
|
s = append(s, "}")
|
|
return strings.Join(s, "")
|
|
}
|
|
func (this *Header) GoString() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := make([]string, 0, 5)
|
|
s = append(s, "&common.Header{")
|
|
keysForFields := make([]string, 0, len(this.Fields))
|
|
for k, _ := range this.Fields {
|
|
keysForFields = append(keysForFields, k)
|
|
}
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForFields)
|
|
mapStringForFields := "map[string]*Payload{"
|
|
for _, k := range keysForFields {
|
|
mapStringForFields += fmt.Sprintf("%#v: %#v,", k, this.Fields[k])
|
|
}
|
|
mapStringForFields += "}"
|
|
if this.Fields != nil {
|
|
s = append(s, "Fields: "+mapStringForFields+",\n")
|
|
}
|
|
s = append(s, "}")
|
|
return strings.Join(s, "")
|
|
}
|
|
func (this *WorkflowExecution) GoString() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := make([]string, 0, 6)
|
|
s = append(s, "&common.WorkflowExecution{")
|
|
s = append(s, "WorkflowId: "+fmt.Sprintf("%#v", this.WorkflowId)+",\n")
|
|
s = append(s, "RunId: "+fmt.Sprintf("%#v", this.RunId)+",\n")
|
|
s = append(s, "}")
|
|
return strings.Join(s, "")
|
|
}
|
|
func (this *WorkflowType) GoString() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := make([]string, 0, 5)
|
|
s = append(s, "&common.WorkflowType{")
|
|
s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n")
|
|
s = append(s, "}")
|
|
return strings.Join(s, "")
|
|
}
|
|
func (this *ActivityType) GoString() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := make([]string, 0, 5)
|
|
s = append(s, "&common.ActivityType{")
|
|
s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n")
|
|
s = append(s, "}")
|
|
return strings.Join(s, "")
|
|
}
|
|
func (this *RetryPolicy) GoString() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := make([]string, 0, 9)
|
|
s = append(s, "&common.RetryPolicy{")
|
|
s = append(s, "InitialInterval: "+fmt.Sprintf("%#v", this.InitialInterval)+",\n")
|
|
s = append(s, "BackoffCoefficient: "+fmt.Sprintf("%#v", this.BackoffCoefficient)+",\n")
|
|
s = append(s, "MaximumInterval: "+fmt.Sprintf("%#v", this.MaximumInterval)+",\n")
|
|
s = append(s, "MaximumAttempts: "+fmt.Sprintf("%#v", this.MaximumAttempts)+",\n")
|
|
s = append(s, "NonRetryableErrorTypes: "+fmt.Sprintf("%#v", this.NonRetryableErrorTypes)+",\n")
|
|
s = append(s, "}")
|
|
return strings.Join(s, "")
|
|
}
|
|
func valueToGoStringMessage(v interface{}, typ string) string {
|
|
rv := reflect.ValueOf(v)
|
|
if rv.IsNil() {
|
|
return "nil"
|
|
}
|
|
pv := reflect.Indirect(rv).Interface()
|
|
return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
|
|
}
|
|
func (m *DataBlob) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *DataBlob) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *DataBlob) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Data) > 0 {
|
|
i -= len(m.Data)
|
|
copy(dAtA[i:], m.Data)
|
|
i = encodeVarintMessage(dAtA, i, uint64(len(m.Data)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.EncodingType != 0 {
|
|
i = encodeVarintMessage(dAtA, i, uint64(m.EncodingType))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *Payloads) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *Payloads) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Payloads) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Payloads) > 0 {
|
|
for iNdEx := len(m.Payloads) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.Payloads[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintMessage(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *Payload) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *Payload) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Payload) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Data) > 0 {
|
|
i -= len(m.Data)
|
|
copy(dAtA[i:], m.Data)
|
|
i = encodeVarintMessage(dAtA, i, uint64(len(m.Data)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Metadata) > 0 {
|
|
for k := range m.Metadata {
|
|
v := m.Metadata[k]
|
|
baseI := i
|
|
if len(v) > 0 {
|
|
i -= len(v)
|
|
copy(dAtA[i:], v)
|
|
i = encodeVarintMessage(dAtA, i, uint64(len(v)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
i -= len(k)
|
|
copy(dAtA[i:], k)
|
|
i = encodeVarintMessage(dAtA, i, uint64(len(k)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
i = encodeVarintMessage(dAtA, i, uint64(baseI-i))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *SearchAttributes) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *SearchAttributes) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *SearchAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.IndexedFields) > 0 {
|
|
for k := range m.IndexedFields {
|
|
v := m.IndexedFields[k]
|
|
baseI := i
|
|
if v != nil {
|
|
{
|
|
size, err := v.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintMessage(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
i -= len(k)
|
|
copy(dAtA[i:], k)
|
|
i = encodeVarintMessage(dAtA, i, uint64(len(k)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
i = encodeVarintMessage(dAtA, i, uint64(baseI-i))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *Memo) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *Memo) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Memo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Fields) > 0 {
|
|
for k := range m.Fields {
|
|
v := m.Fields[k]
|
|
baseI := i
|
|
if v != nil {
|
|
{
|
|
size, err := v.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintMessage(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
i -= len(k)
|
|
copy(dAtA[i:], k)
|
|
i = encodeVarintMessage(dAtA, i, uint64(len(k)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
i = encodeVarintMessage(dAtA, i, uint64(baseI-i))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *Header) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *Header) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Fields) > 0 {
|
|
for k := range m.Fields {
|
|
v := m.Fields[k]
|
|
baseI := i
|
|
if v != nil {
|
|
{
|
|
size, err := v.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintMessage(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
i -= len(k)
|
|
copy(dAtA[i:], k)
|
|
i = encodeVarintMessage(dAtA, i, uint64(len(k)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
i = encodeVarintMessage(dAtA, i, uint64(baseI-i))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *WorkflowExecution) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *WorkflowExecution) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *WorkflowExecution) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.RunId) > 0 {
|
|
i -= len(m.RunId)
|
|
copy(dAtA[i:], m.RunId)
|
|
i = encodeVarintMessage(dAtA, i, uint64(len(m.RunId)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.WorkflowId) > 0 {
|
|
i -= len(m.WorkflowId)
|
|
copy(dAtA[i:], m.WorkflowId)
|
|
i = encodeVarintMessage(dAtA, i, uint64(len(m.WorkflowId)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *WorkflowType) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *WorkflowType) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *WorkflowType) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintMessage(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ActivityType) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *ActivityType) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ActivityType) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintMessage(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *RetryPolicy) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *RetryPolicy) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *RetryPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.NonRetryableErrorTypes) > 0 {
|
|
for iNdEx := len(m.NonRetryableErrorTypes) - 1; iNdEx >= 0; iNdEx-- {
|
|
i -= len(m.NonRetryableErrorTypes[iNdEx])
|
|
copy(dAtA[i:], m.NonRetryableErrorTypes[iNdEx])
|
|
i = encodeVarintMessage(dAtA, i, uint64(len(m.NonRetryableErrorTypes[iNdEx])))
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
}
|
|
}
|
|
if m.MaximumAttempts != 0 {
|
|
i = encodeVarintMessage(dAtA, i, uint64(m.MaximumAttempts))
|
|
i--
|
|
dAtA[i] = 0x20
|
|
}
|
|
if m.MaximumInterval != nil {
|
|
n4, err4 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.MaximumInterval, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.MaximumInterval):])
|
|
if err4 != nil {
|
|
return 0, err4
|
|
}
|
|
i -= n4
|
|
i = encodeVarintMessage(dAtA, i, uint64(n4))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if m.BackoffCoefficient != 0 {
|
|
i -= 8
|
|
encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.BackoffCoefficient))))
|
|
i--
|
|
dAtA[i] = 0x11
|
|
}
|
|
if m.InitialInterval != nil {
|
|
n5, err5 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.InitialInterval, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.InitialInterval):])
|
|
if err5 != nil {
|
|
return 0, err5
|
|
}
|
|
i -= n5
|
|
i = encodeVarintMessage(dAtA, i, uint64(n5))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func encodeVarintMessage(dAtA []byte, offset int, v uint64) int {
|
|
offset -= sovMessage(v)
|
|
base := offset
|
|
for v >= 1<<7 {
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
v >>= 7
|
|
offset++
|
|
}
|
|
dAtA[offset] = uint8(v)
|
|
return base
|
|
}
|
|
func (m *DataBlob) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.EncodingType != 0 {
|
|
n += 1 + sovMessage(uint64(m.EncodingType))
|
|
}
|
|
l = len(m.Data)
|
|
if l > 0 {
|
|
n += 1 + l + sovMessage(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *Payloads) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.Payloads) > 0 {
|
|
for _, e := range m.Payloads {
|
|
l = e.Size()
|
|
n += 1 + l + sovMessage(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *Payload) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.Metadata) > 0 {
|
|
for k, v := range m.Metadata {
|
|
_ = k
|
|
_ = v
|
|
l = 0
|
|
if len(v) > 0 {
|
|
l = 1 + len(v) + sovMessage(uint64(len(v)))
|
|
}
|
|
mapEntrySize := 1 + len(k) + sovMessage(uint64(len(k))) + l
|
|
n += mapEntrySize + 1 + sovMessage(uint64(mapEntrySize))
|
|
}
|
|
}
|
|
l = len(m.Data)
|
|
if l > 0 {
|
|
n += 1 + l + sovMessage(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *SearchAttributes) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.IndexedFields) > 0 {
|
|
for k, v := range m.IndexedFields {
|
|
_ = k
|
|
_ = v
|
|
l = 0
|
|
if v != nil {
|
|
l = v.Size()
|
|
l += 1 + sovMessage(uint64(l))
|
|
}
|
|
mapEntrySize := 1 + len(k) + sovMessage(uint64(len(k))) + l
|
|
n += mapEntrySize + 1 + sovMessage(uint64(mapEntrySize))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *Memo) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.Fields) > 0 {
|
|
for k, v := range m.Fields {
|
|
_ = k
|
|
_ = v
|
|
l = 0
|
|
if v != nil {
|
|
l = v.Size()
|
|
l += 1 + sovMessage(uint64(l))
|
|
}
|
|
mapEntrySize := 1 + len(k) + sovMessage(uint64(len(k))) + l
|
|
n += mapEntrySize + 1 + sovMessage(uint64(mapEntrySize))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *Header) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.Fields) > 0 {
|
|
for k, v := range m.Fields {
|
|
_ = k
|
|
_ = v
|
|
l = 0
|
|
if v != nil {
|
|
l = v.Size()
|
|
l += 1 + sovMessage(uint64(l))
|
|
}
|
|
mapEntrySize := 1 + len(k) + sovMessage(uint64(len(k))) + l
|
|
n += mapEntrySize + 1 + sovMessage(uint64(mapEntrySize))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *WorkflowExecution) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.WorkflowId)
|
|
if l > 0 {
|
|
n += 1 + l + sovMessage(uint64(l))
|
|
}
|
|
l = len(m.RunId)
|
|
if l > 0 {
|
|
n += 1 + l + sovMessage(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *WorkflowType) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovMessage(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ActivityType) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovMessage(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *RetryPolicy) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.InitialInterval != nil {
|
|
l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.InitialInterval)
|
|
n += 1 + l + sovMessage(uint64(l))
|
|
}
|
|
if m.BackoffCoefficient != 0 {
|
|
n += 9
|
|
}
|
|
if m.MaximumInterval != nil {
|
|
l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.MaximumInterval)
|
|
n += 1 + l + sovMessage(uint64(l))
|
|
}
|
|
if m.MaximumAttempts != 0 {
|
|
n += 1 + sovMessage(uint64(m.MaximumAttempts))
|
|
}
|
|
if len(m.NonRetryableErrorTypes) > 0 {
|
|
for _, s := range m.NonRetryableErrorTypes {
|
|
l = len(s)
|
|
n += 1 + l + sovMessage(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func sovMessage(x uint64) (n int) {
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
}
|
|
func sozMessage(x uint64) (n int) {
|
|
return sovMessage(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
}
|
|
func (this *DataBlob) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := strings.Join([]string{`&DataBlob{`,
|
|
`EncodingType:` + fmt.Sprintf("%v", this.EncodingType) + `,`,
|
|
`Data:` + fmt.Sprintf("%v", this.Data) + `,`,
|
|
`}`,
|
|
}, "")
|
|
return s
|
|
}
|
|
func (this *Payloads) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
repeatedStringForPayloads := "[]*Payload{"
|
|
for _, f := range this.Payloads {
|
|
repeatedStringForPayloads += strings.Replace(f.String(), "Payload", "Payload", 1) + ","
|
|
}
|
|
repeatedStringForPayloads += "}"
|
|
s := strings.Join([]string{`&Payloads{`,
|
|
`Payloads:` + repeatedStringForPayloads + `,`,
|
|
`}`,
|
|
}, "")
|
|
return s
|
|
}
|
|
func (this *Payload) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
keysForMetadata := make([]string, 0, len(this.Metadata))
|
|
for k, _ := range this.Metadata {
|
|
keysForMetadata = append(keysForMetadata, k)
|
|
}
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForMetadata)
|
|
mapStringForMetadata := "map[string][]byte{"
|
|
for _, k := range keysForMetadata {
|
|
mapStringForMetadata += fmt.Sprintf("%v: %v,", k, this.Metadata[k])
|
|
}
|
|
mapStringForMetadata += "}"
|
|
s := strings.Join([]string{`&Payload{`,
|
|
`Metadata:` + mapStringForMetadata + `,`,
|
|
`Data:` + fmt.Sprintf("%v", this.Data) + `,`,
|
|
`}`,
|
|
}, "")
|
|
return s
|
|
}
|
|
func (this *SearchAttributes) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
keysForIndexedFields := make([]string, 0, len(this.IndexedFields))
|
|
for k, _ := range this.IndexedFields {
|
|
keysForIndexedFields = append(keysForIndexedFields, k)
|
|
}
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForIndexedFields)
|
|
mapStringForIndexedFields := "map[string]*Payload{"
|
|
for _, k := range keysForIndexedFields {
|
|
mapStringForIndexedFields += fmt.Sprintf("%v: %v,", k, this.IndexedFields[k])
|
|
}
|
|
mapStringForIndexedFields += "}"
|
|
s := strings.Join([]string{`&SearchAttributes{`,
|
|
`IndexedFields:` + mapStringForIndexedFields + `,`,
|
|
`}`,
|
|
}, "")
|
|
return s
|
|
}
|
|
func (this *Memo) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
keysForFields := make([]string, 0, len(this.Fields))
|
|
for k, _ := range this.Fields {
|
|
keysForFields = append(keysForFields, k)
|
|
}
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForFields)
|
|
mapStringForFields := "map[string]*Payload{"
|
|
for _, k := range keysForFields {
|
|
mapStringForFields += fmt.Sprintf("%v: %v,", k, this.Fields[k])
|
|
}
|
|
mapStringForFields += "}"
|
|
s := strings.Join([]string{`&Memo{`,
|
|
`Fields:` + mapStringForFields + `,`,
|
|
`}`,
|
|
}, "")
|
|
return s
|
|
}
|
|
func (this *Header) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
keysForFields := make([]string, 0, len(this.Fields))
|
|
for k, _ := range this.Fields {
|
|
keysForFields = append(keysForFields, k)
|
|
}
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForFields)
|
|
mapStringForFields := "map[string]*Payload{"
|
|
for _, k := range keysForFields {
|
|
mapStringForFields += fmt.Sprintf("%v: %v,", k, this.Fields[k])
|
|
}
|
|
mapStringForFields += "}"
|
|
s := strings.Join([]string{`&Header{`,
|
|
`Fields:` + mapStringForFields + `,`,
|
|
`}`,
|
|
}, "")
|
|
return s
|
|
}
|
|
func (this *WorkflowExecution) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := strings.Join([]string{`&WorkflowExecution{`,
|
|
`WorkflowId:` + fmt.Sprintf("%v", this.WorkflowId) + `,`,
|
|
`RunId:` + fmt.Sprintf("%v", this.RunId) + `,`,
|
|
`}`,
|
|
}, "")
|
|
return s
|
|
}
|
|
func (this *WorkflowType) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := strings.Join([]string{`&WorkflowType{`,
|
|
`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
|
|
`}`,
|
|
}, "")
|
|
return s
|
|
}
|
|
func (this *ActivityType) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := strings.Join([]string{`&ActivityType{`,
|
|
`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
|
|
`}`,
|
|
}, "")
|
|
return s
|
|
}
|
|
func (this *RetryPolicy) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := strings.Join([]string{`&RetryPolicy{`,
|
|
`InitialInterval:` + strings.Replace(fmt.Sprintf("%v", this.InitialInterval), "Duration", "types.Duration", 1) + `,`,
|
|
`BackoffCoefficient:` + fmt.Sprintf("%v", this.BackoffCoefficient) + `,`,
|
|
`MaximumInterval:` + strings.Replace(fmt.Sprintf("%v", this.MaximumInterval), "Duration", "types.Duration", 1) + `,`,
|
|
`MaximumAttempts:` + fmt.Sprintf("%v", this.MaximumAttempts) + `,`,
|
|
`NonRetryableErrorTypes:` + fmt.Sprintf("%v", this.NonRetryableErrorTypes) + `,`,
|
|
`}`,
|
|
}, "")
|
|
return s
|
|
}
|
|
func valueToStringMessage(v interface{}) string {
|
|
rv := reflect.ValueOf(v)
|
|
if rv.IsNil() {
|
|
return "nil"
|
|
}
|
|
pv := reflect.Indirect(rv).Interface()
|
|
return fmt.Sprintf("*%v", pv)
|
|
}
|
|
func (m *DataBlob) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: DataBlob: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: DataBlob: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field EncodingType", wireType)
|
|
}
|
|
m.EncodingType = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.EncodingType |= v1.EncodingType(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.Data == nil {
|
|
m.Data = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipMessage(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *Payloads) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: Payloads: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Payloads: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Payloads", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Payloads = append(m.Payloads, &Payload{})
|
|
if err := m.Payloads[len(m.Payloads)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipMessage(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *Payload) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: Payload: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Payload: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Metadata == nil {
|
|
m.Metadata = make(map[string][]byte)
|
|
}
|
|
var mapkey string
|
|
mapvalue := []byte{}
|
|
for iNdEx < postIndex {
|
|
entryPreIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
if fieldNum == 1 {
|
|
var stringLenmapkey uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLenmapkey |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLenmapkey := int(stringLenmapkey)
|
|
if intStringLenmapkey < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
if postStringIndexmapkey < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postStringIndexmapkey > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
|
|
iNdEx = postStringIndexmapkey
|
|
} else if fieldNum == 2 {
|
|
var mapbyteLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
mapbyteLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intMapbyteLen := int(mapbyteLen)
|
|
if intMapbyteLen < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postbytesIndex := iNdEx + intMapbyteLen
|
|
if postbytesIndex < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postbytesIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
mapvalue = make([]byte, mapbyteLen)
|
|
copy(mapvalue, dAtA[iNdEx:postbytesIndex])
|
|
iNdEx = postbytesIndex
|
|
} else {
|
|
iNdEx = entryPreIndex
|
|
skippy, err := skipMessage(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) > postIndex {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
m.Metadata[mapkey] = mapvalue
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.Data == nil {
|
|
m.Data = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipMessage(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *SearchAttributes) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: SearchAttributes: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: SearchAttributes: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field IndexedFields", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.IndexedFields == nil {
|
|
m.IndexedFields = make(map[string]*Payload)
|
|
}
|
|
var mapkey string
|
|
var mapvalue *Payload
|
|
for iNdEx < postIndex {
|
|
entryPreIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
if fieldNum == 1 {
|
|
var stringLenmapkey uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLenmapkey |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLenmapkey := int(stringLenmapkey)
|
|
if intStringLenmapkey < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
if postStringIndexmapkey < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postStringIndexmapkey > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
|
|
iNdEx = postStringIndexmapkey
|
|
} else if fieldNum == 2 {
|
|
var mapmsglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
mapmsglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if mapmsglen < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postmsgIndex := iNdEx + mapmsglen
|
|
if postmsgIndex < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postmsgIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
mapvalue = &Payload{}
|
|
if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postmsgIndex
|
|
} else {
|
|
iNdEx = entryPreIndex
|
|
skippy, err := skipMessage(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) > postIndex {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
m.IndexedFields[mapkey] = mapvalue
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipMessage(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *Memo) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: Memo: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Memo: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Fields == nil {
|
|
m.Fields = make(map[string]*Payload)
|
|
}
|
|
var mapkey string
|
|
var mapvalue *Payload
|
|
for iNdEx < postIndex {
|
|
entryPreIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
if fieldNum == 1 {
|
|
var stringLenmapkey uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLenmapkey |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLenmapkey := int(stringLenmapkey)
|
|
if intStringLenmapkey < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
if postStringIndexmapkey < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postStringIndexmapkey > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
|
|
iNdEx = postStringIndexmapkey
|
|
} else if fieldNum == 2 {
|
|
var mapmsglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
mapmsglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if mapmsglen < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postmsgIndex := iNdEx + mapmsglen
|
|
if postmsgIndex < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postmsgIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
mapvalue = &Payload{}
|
|
if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postmsgIndex
|
|
} else {
|
|
iNdEx = entryPreIndex
|
|
skippy, err := skipMessage(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) > postIndex {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
m.Fields[mapkey] = mapvalue
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipMessage(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *Header) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: Header: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Header: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Fields == nil {
|
|
m.Fields = make(map[string]*Payload)
|
|
}
|
|
var mapkey string
|
|
var mapvalue *Payload
|
|
for iNdEx < postIndex {
|
|
entryPreIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
if fieldNum == 1 {
|
|
var stringLenmapkey uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLenmapkey |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLenmapkey := int(stringLenmapkey)
|
|
if intStringLenmapkey < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
if postStringIndexmapkey < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postStringIndexmapkey > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
|
|
iNdEx = postStringIndexmapkey
|
|
} else if fieldNum == 2 {
|
|
var mapmsglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
mapmsglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if mapmsglen < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postmsgIndex := iNdEx + mapmsglen
|
|
if postmsgIndex < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postmsgIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
mapvalue = &Payload{}
|
|
if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postmsgIndex
|
|
} else {
|
|
iNdEx = entryPreIndex
|
|
skippy, err := skipMessage(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) > postIndex {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
m.Fields[mapkey] = mapvalue
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipMessage(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *WorkflowExecution) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: WorkflowExecution: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: WorkflowExecution: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field WorkflowId", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.WorkflowId = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.RunId = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipMessage(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *WorkflowType) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: WorkflowType: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: WorkflowType: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipMessage(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *ActivityType) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: ActivityType: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ActivityType: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipMessage(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *RetryPolicy) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: RetryPolicy: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: RetryPolicy: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field InitialInterval", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.InitialInterval == nil {
|
|
m.InitialInterval = new(time.Duration)
|
|
}
|
|
if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.InitialInterval, dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 1 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field BackoffCoefficient", wireType)
|
|
}
|
|
var v uint64
|
|
if (iNdEx + 8) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
|
|
iNdEx += 8
|
|
m.BackoffCoefficient = float64(math.Float64frombits(v))
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MaximumInterval", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.MaximumInterval == nil {
|
|
m.MaximumInterval = new(time.Duration)
|
|
}
|
|
if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.MaximumInterval, dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MaximumAttempts", wireType)
|
|
}
|
|
m.MaximumAttempts = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.MaximumAttempts |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 5:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NonRetryableErrorTypes", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.NonRetryableErrorTypes = append(m.NonRetryableErrorTypes, string(dAtA[iNdEx:postIndex]))
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipMessage(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func skipMessage(dAtA []byte) (n int, err error) {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
depth := 0
|
|
for iNdEx < l {
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
wireType := int(wire & 0x7)
|
|
switch wireType {
|
|
case 0:
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx++
|
|
if dAtA[iNdEx-1] < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 1:
|
|
iNdEx += 8
|
|
case 2:
|
|
var length int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
length |= (int(b) & 0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if length < 0 {
|
|
return 0, ErrInvalidLengthMessage
|
|
}
|
|
iNdEx += length
|
|
case 3:
|
|
depth++
|
|
case 4:
|
|
if depth == 0 {
|
|
return 0, ErrUnexpectedEndOfGroupMessage
|
|
}
|
|
depth--
|
|
case 5:
|
|
iNdEx += 4
|
|
default:
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
}
|
|
if iNdEx < 0 {
|
|
return 0, ErrInvalidLengthMessage
|
|
}
|
|
if depth == 0 {
|
|
return iNdEx, nil
|
|
}
|
|
}
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
|
|
var (
|
|
ErrInvalidLengthMessage = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
ErrIntOverflowMessage = fmt.Errorf("proto: integer overflow")
|
|
ErrUnexpectedEndOfGroupMessage = fmt.Errorf("proto: unexpected end of group")
|
|
)
|