mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-30 14:00:57 +00:00
2520 lines
65 KiB
Go
2520 lines
65 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/namespace/v1/message.proto
|
|
|
|
package namespace
|
|
|
|
import (
|
|
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 NamespaceInfo struct {
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
State v1.NamespaceState `protobuf:"varint,2,opt,name=state,proto3,enum=temporal.api.enums.v1.NamespaceState" json:"state,omitempty"`
|
|
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
|
OwnerEmail string `protobuf:"bytes,4,opt,name=owner_email,json=ownerEmail,proto3" json:"owner_email,omitempty"`
|
|
// A key-value map for any customized purpose.
|
|
Data map[string]string `protobuf:"bytes,5,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"`
|
|
}
|
|
|
|
func (m *NamespaceInfo) Reset() { *m = NamespaceInfo{} }
|
|
func (*NamespaceInfo) ProtoMessage() {}
|
|
func (*NamespaceInfo) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_cb8d87cc59c3faa9, []int{0}
|
|
}
|
|
func (m *NamespaceInfo) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *NamespaceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_NamespaceInfo.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 *NamespaceInfo) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_NamespaceInfo.Merge(m, src)
|
|
}
|
|
func (m *NamespaceInfo) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *NamespaceInfo) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_NamespaceInfo.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_NamespaceInfo proto.InternalMessageInfo
|
|
|
|
func (m *NamespaceInfo) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *NamespaceInfo) GetState() v1.NamespaceState {
|
|
if m != nil {
|
|
return m.State
|
|
}
|
|
return v1.NAMESPACE_STATE_UNSPECIFIED
|
|
}
|
|
|
|
func (m *NamespaceInfo) GetDescription() string {
|
|
if m != nil {
|
|
return m.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *NamespaceInfo) GetOwnerEmail() string {
|
|
if m != nil {
|
|
return m.OwnerEmail
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *NamespaceInfo) GetData() map[string]string {
|
|
if m != nil {
|
|
return m.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *NamespaceInfo) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type NamespaceConfig struct {
|
|
WorkflowExecutionRetentionTtl *time.Duration `protobuf:"bytes,1,opt,name=workflow_execution_retention_ttl,json=workflowExecutionRetentionTtl,proto3,stdduration" json:"workflow_execution_retention_ttl,omitempty"`
|
|
BadBinaries *BadBinaries `protobuf:"bytes,2,opt,name=bad_binaries,json=badBinaries,proto3" json:"bad_binaries,omitempty"`
|
|
// If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
|
|
HistoryArchivalState v1.ArchivalState `protobuf:"varint,3,opt,name=history_archival_state,json=historyArchivalState,proto3,enum=temporal.api.enums.v1.ArchivalState" json:"history_archival_state,omitempty"`
|
|
HistoryArchivalUri string `protobuf:"bytes,4,opt,name=history_archival_uri,json=historyArchivalUri,proto3" json:"history_archival_uri,omitempty"`
|
|
// If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
|
|
VisibilityArchivalState v1.ArchivalState `protobuf:"varint,5,opt,name=visibility_archival_state,json=visibilityArchivalState,proto3,enum=temporal.api.enums.v1.ArchivalState" json:"visibility_archival_state,omitempty"`
|
|
VisibilityArchivalUri string `protobuf:"bytes,6,opt,name=visibility_archival_uri,json=visibilityArchivalUri,proto3" json:"visibility_archival_uri,omitempty"`
|
|
}
|
|
|
|
func (m *NamespaceConfig) Reset() { *m = NamespaceConfig{} }
|
|
func (*NamespaceConfig) ProtoMessage() {}
|
|
func (*NamespaceConfig) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_cb8d87cc59c3faa9, []int{1}
|
|
}
|
|
func (m *NamespaceConfig) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *NamespaceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_NamespaceConfig.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 *NamespaceConfig) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_NamespaceConfig.Merge(m, src)
|
|
}
|
|
func (m *NamespaceConfig) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *NamespaceConfig) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_NamespaceConfig.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_NamespaceConfig proto.InternalMessageInfo
|
|
|
|
func (m *NamespaceConfig) GetWorkflowExecutionRetentionTtl() *time.Duration {
|
|
if m != nil {
|
|
return m.WorkflowExecutionRetentionTtl
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *NamespaceConfig) GetBadBinaries() *BadBinaries {
|
|
if m != nil {
|
|
return m.BadBinaries
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *NamespaceConfig) GetHistoryArchivalState() v1.ArchivalState {
|
|
if m != nil {
|
|
return m.HistoryArchivalState
|
|
}
|
|
return v1.ARCHIVAL_STATE_UNSPECIFIED
|
|
}
|
|
|
|
func (m *NamespaceConfig) GetHistoryArchivalUri() string {
|
|
if m != nil {
|
|
return m.HistoryArchivalUri
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *NamespaceConfig) GetVisibilityArchivalState() v1.ArchivalState {
|
|
if m != nil {
|
|
return m.VisibilityArchivalState
|
|
}
|
|
return v1.ARCHIVAL_STATE_UNSPECIFIED
|
|
}
|
|
|
|
func (m *NamespaceConfig) GetVisibilityArchivalUri() string {
|
|
if m != nil {
|
|
return m.VisibilityArchivalUri
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type BadBinaries struct {
|
|
Binaries map[string]*BadBinaryInfo `protobuf:"bytes,1,rep,name=binaries,proto3" json:"binaries,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
}
|
|
|
|
func (m *BadBinaries) Reset() { *m = BadBinaries{} }
|
|
func (*BadBinaries) ProtoMessage() {}
|
|
func (*BadBinaries) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_cb8d87cc59c3faa9, []int{2}
|
|
}
|
|
func (m *BadBinaries) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BadBinaries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BadBinaries.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 *BadBinaries) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BadBinaries.Merge(m, src)
|
|
}
|
|
func (m *BadBinaries) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BadBinaries) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BadBinaries.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BadBinaries proto.InternalMessageInfo
|
|
|
|
func (m *BadBinaries) GetBinaries() map[string]*BadBinaryInfo {
|
|
if m != nil {
|
|
return m.Binaries
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type BadBinaryInfo struct {
|
|
Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"`
|
|
Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
|
|
CreateTime *time.Time `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3,stdtime" json:"create_time,omitempty"`
|
|
}
|
|
|
|
func (m *BadBinaryInfo) Reset() { *m = BadBinaryInfo{} }
|
|
func (*BadBinaryInfo) ProtoMessage() {}
|
|
func (*BadBinaryInfo) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_cb8d87cc59c3faa9, []int{3}
|
|
}
|
|
func (m *BadBinaryInfo) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BadBinaryInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BadBinaryInfo.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 *BadBinaryInfo) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BadBinaryInfo.Merge(m, src)
|
|
}
|
|
func (m *BadBinaryInfo) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BadBinaryInfo) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BadBinaryInfo.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BadBinaryInfo proto.InternalMessageInfo
|
|
|
|
func (m *BadBinaryInfo) GetReason() string {
|
|
if m != nil {
|
|
return m.Reason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *BadBinaryInfo) GetOperator() string {
|
|
if m != nil {
|
|
return m.Operator
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *BadBinaryInfo) GetCreateTime() *time.Time {
|
|
if m != nil {
|
|
return m.CreateTime
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UpdateNamespaceInfo struct {
|
|
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
|
|
OwnerEmail string `protobuf:"bytes,2,opt,name=owner_email,json=ownerEmail,proto3" json:"owner_email,omitempty"`
|
|
// A key-value map for any customized purpose.
|
|
Data map[string]string `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
}
|
|
|
|
func (m *UpdateNamespaceInfo) Reset() { *m = UpdateNamespaceInfo{} }
|
|
func (*UpdateNamespaceInfo) ProtoMessage() {}
|
|
func (*UpdateNamespaceInfo) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_cb8d87cc59c3faa9, []int{4}
|
|
}
|
|
func (m *UpdateNamespaceInfo) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *UpdateNamespaceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_UpdateNamespaceInfo.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 *UpdateNamespaceInfo) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_UpdateNamespaceInfo.Merge(m, src)
|
|
}
|
|
func (m *UpdateNamespaceInfo) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *UpdateNamespaceInfo) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_UpdateNamespaceInfo.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_UpdateNamespaceInfo proto.InternalMessageInfo
|
|
|
|
func (m *UpdateNamespaceInfo) GetDescription() string {
|
|
if m != nil {
|
|
return m.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *UpdateNamespaceInfo) GetOwnerEmail() string {
|
|
if m != nil {
|
|
return m.OwnerEmail
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *UpdateNamespaceInfo) GetData() map[string]string {
|
|
if m != nil {
|
|
return m.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*NamespaceInfo)(nil), "temporal.api.namespace.v1.NamespaceInfo")
|
|
proto.RegisterMapType((map[string]string)(nil), "temporal.api.namespace.v1.NamespaceInfo.DataEntry")
|
|
proto.RegisterType((*NamespaceConfig)(nil), "temporal.api.namespace.v1.NamespaceConfig")
|
|
proto.RegisterType((*BadBinaries)(nil), "temporal.api.namespace.v1.BadBinaries")
|
|
proto.RegisterMapType((map[string]*BadBinaryInfo)(nil), "temporal.api.namespace.v1.BadBinaries.BinariesEntry")
|
|
proto.RegisterType((*BadBinaryInfo)(nil), "temporal.api.namespace.v1.BadBinaryInfo")
|
|
proto.RegisterType((*UpdateNamespaceInfo)(nil), "temporal.api.namespace.v1.UpdateNamespaceInfo")
|
|
proto.RegisterMapType((map[string]string)(nil), "temporal.api.namespace.v1.UpdateNamespaceInfo.DataEntry")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("temporal/api/namespace/v1/message.proto", fileDescriptor_cb8d87cc59c3faa9)
|
|
}
|
|
|
|
var fileDescriptor_cb8d87cc59c3faa9 = []byte{
|
|
// 799 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0x3d, 0x4f, 0x1b, 0x49,
|
|
0x18, 0xf6, 0xac, 0x6d, 0x04, 0xb3, 0xc0, 0x9d, 0xe6, 0x38, 0xb0, 0x2d, 0x6e, 0xf1, 0x59, 0xc7,
|
|
0x9d, 0xaf, 0x59, 0xc7, 0x4e, 0x94, 0x20, 0x23, 0x45, 0xb2, 0x03, 0x91, 0x90, 0x92, 0x08, 0x39,
|
|
0x40, 0x41, 0xe3, 0x8c, 0xbd, 0x63, 0x33, 0x62, 0xbd, 0xb3, 0x9a, 0x1d, 0x9b, 0xb8, 0x4b, 0x95,
|
|
0x9a, 0x32, 0x3f, 0x21, 0x4a, 0x9d, 0xdf, 0x10, 0x51, 0x52, 0xd2, 0x11, 0x4c, 0x13, 0xa5, 0x88,
|
|
0xf8, 0x09, 0xd1, 0xce, 0x7e, 0xd8, 0x6b, 0x03, 0x21, 0xe9, 0x66, 0xde, 0xf7, 0x79, 0x9f, 0x79,
|
|
0xbf, 0xf6, 0x59, 0xf8, 0x9f, 0x20, 0x1d, 0x9b, 0x71, 0x6c, 0x16, 0xb0, 0x4d, 0x0b, 0x16, 0xee,
|
|
0x10, 0xc7, 0xc6, 0x4d, 0x52, 0xe8, 0x15, 0x0b, 0x1d, 0xe2, 0x38, 0xb8, 0x4d, 0x74, 0x9b, 0x33,
|
|
0xc1, 0x50, 0x3a, 0x00, 0xea, 0xd8, 0xa6, 0x7a, 0x08, 0xd4, 0x7b, 0xc5, 0x8c, 0xd6, 0x66, 0xac,
|
|
0x6d, 0x92, 0x82, 0x04, 0x36, 0xba, 0xad, 0x82, 0xd1, 0xe5, 0x58, 0x50, 0x66, 0x79, 0xa1, 0x99,
|
|
0x95, 0x71, 0xbf, 0xa0, 0x1d, 0xe2, 0x08, 0xdc, 0xb1, 0x7d, 0xc0, 0xdf, 0x06, 0xb1, 0x89, 0x65,
|
|
0x10, 0xab, 0x49, 0x89, 0x53, 0x68, 0xb3, 0x36, 0x93, 0x76, 0x79, 0xf2, 0x21, 0xab, 0x91, 0x3c,
|
|
0x89, 0xd5, 0xed, 0x38, 0x6e, 0x8e, 0xc3, 0x3c, 0x24, 0x2c, 0xf7, 0x51, 0x81, 0x73, 0x2f, 0x02,
|
|
0xdb, 0x96, 0xd5, 0x62, 0x08, 0xc1, 0x84, 0x0b, 0x4a, 0x81, 0x2c, 0xc8, 0xcf, 0xd4, 0xe4, 0x19,
|
|
0xad, 0xc3, 0xa4, 0x23, 0xb0, 0x20, 0x29, 0x25, 0x0b, 0xf2, 0xf3, 0xa5, 0x55, 0x3d, 0x52, 0x9b,
|
|
0x24, 0xd7, 0x7b, 0x45, 0x3d, 0x24, 0x7a, 0xe9, 0x82, 0x6b, 0x5e, 0x0c, 0xca, 0x42, 0xd5, 0x20,
|
|
0x4e, 0x93, 0x53, 0xdb, 0x2d, 0x31, 0x15, 0x97, 0xbc, 0xa3, 0x26, 0xb4, 0x02, 0x55, 0x76, 0x64,
|
|
0x11, 0x5e, 0x27, 0x1d, 0x4c, 0xcd, 0x54, 0x42, 0x22, 0xa0, 0x34, 0x6d, 0xba, 0x16, 0xf4, 0x14,
|
|
0x26, 0x0c, 0x2c, 0x70, 0x2a, 0x99, 0x8d, 0xe7, 0xd5, 0x52, 0x49, 0xbf, 0xb1, 0xb5, 0x7a, 0xa4,
|
|
0x16, 0x7d, 0x03, 0x0b, 0xbc, 0x69, 0x09, 0xde, 0xaf, 0xc9, 0x78, 0x34, 0x0f, 0x15, 0x6a, 0xa4,
|
|
0xa6, 0x24, 0xbf, 0x42, 0x8d, 0xcc, 0x23, 0x38, 0x13, 0x42, 0xd0, 0xef, 0x30, 0x7e, 0x48, 0xfa,
|
|
0x7e, 0xdd, 0xee, 0x11, 0x2d, 0xc0, 0x64, 0x0f, 0x9b, 0x5d, 0xaf, 0xec, 0x99, 0x9a, 0x77, 0x29,
|
|
0x2b, 0x6b, 0x20, 0xf7, 0x2d, 0x0e, 0x7f, 0x0b, 0x9f, 0x7a, 0xc2, 0xac, 0x16, 0x6d, 0xa3, 0x03,
|
|
0x98, 0x3d, 0x62, 0xfc, 0xb0, 0x65, 0xb2, 0xa3, 0x3a, 0x79, 0x4d, 0x9a, 0x5d, 0xb7, 0xb6, 0x3a,
|
|
0x27, 0x82, 0x58, 0xf2, 0x24, 0x84, 0x29, 0xc9, 0xd5, 0x52, 0x5a, 0xf7, 0x06, 0xac, 0x07, 0x03,
|
|
0xd6, 0x37, 0xfc, 0x05, 0xa8, 0x26, 0xde, 0x9d, 0xaf, 0x80, 0xda, 0x5f, 0x01, 0xd1, 0x66, 0xc0,
|
|
0x53, 0x0b, 0x68, 0x76, 0x84, 0x89, 0xb6, 0xe0, 0x6c, 0x03, 0x1b, 0xf5, 0x06, 0xb5, 0x30, 0xa7,
|
|
0xc4, 0x91, 0xe9, 0xa9, 0xa5, 0x7f, 0x6f, 0x69, 0x4b, 0x15, 0x1b, 0x55, 0x1f, 0x5d, 0x53, 0x1b,
|
|
0xc3, 0x0b, 0xda, 0x87, 0x8b, 0x07, 0xd4, 0x11, 0x8c, 0xf7, 0xeb, 0x98, 0x37, 0x0f, 0x68, 0x0f,
|
|
0x9b, 0x75, 0x6f, 0xd4, 0x71, 0x39, 0xea, 0x7f, 0x6e, 0x18, 0x75, 0xc5, 0x07, 0x7b, 0x93, 0x5e,
|
|
0xf0, 0x39, 0x22, 0x56, 0x74, 0x0f, 0x2e, 0x4c, 0x70, 0x77, 0x39, 0xf5, 0xe7, 0x8b, 0xc6, 0x62,
|
|
0x76, 0x39, 0x45, 0xaf, 0x60, 0xba, 0x47, 0x1d, 0xda, 0xa0, 0x26, 0x15, 0x13, 0x09, 0x25, 0x7f,
|
|
0x22, 0xa1, 0xa5, 0x21, 0x4d, 0x34, 0xa7, 0x87, 0x70, 0xe9, 0xba, 0x17, 0xdc, 0xb4, 0xbc, 0xb5,
|
|
0xf8, 0x73, 0x32, 0x72, 0x97, 0xd3, 0xdc, 0x27, 0x00, 0xd5, 0x91, 0x26, 0xa2, 0x6d, 0x38, 0x1d,
|
|
0xb6, 0x1f, 0xc8, 0xad, 0x7c, 0x70, 0xb7, 0xf6, 0xeb, 0xc1, 0xc1, 0xdb, 0xcb, 0x90, 0x25, 0x43,
|
|
0xe0, 0x5c, 0xc4, 0x75, 0xcd, 0x3e, 0x3e, 0x1e, 0xdd, 0x47, 0xb5, 0x94, 0xbf, 0xc3, 0x8b, 0x7d,
|
|
0xf7, 0x3b, 0x18, 0xdd, 0xdc, 0xb7, 0x00, 0xce, 0x45, 0x9c, 0x68, 0x11, 0x4e, 0x71, 0x82, 0x1d,
|
|
0x66, 0xf9, 0x4f, 0xf9, 0x37, 0x94, 0x81, 0xd3, 0xcc, 0x26, 0x1c, 0x0b, 0xc6, 0xfd, 0x0f, 0x20,
|
|
0xbc, 0xa3, 0x0a, 0x54, 0x9b, 0x9c, 0x60, 0x41, 0xea, 0xae, 0x34, 0xc9, 0x5d, 0x51, 0x4b, 0x99,
|
|
0x89, 0xb5, 0xde, 0x09, 0x74, 0xab, 0x9a, 0x38, 0x76, 0xf7, 0x1a, 0x7a, 0x41, 0xae, 0x39, 0x77,
|
|
0x0e, 0xe0, 0x1f, 0xbb, 0xb6, 0x81, 0x05, 0x89, 0xea, 0xcf, 0x98, 0x5c, 0x80, 0x1f, 0xca, 0x85,
|
|
0x32, 0x21, 0x17, 0xcf, 0x7c, 0xb9, 0x88, 0xcb, 0xc1, 0xac, 0xdd, 0xd2, 0xa6, 0x6b, 0x12, 0x18,
|
|
0x17, 0x8d, 0x5f, 0x16, 0x89, 0xea, 0x09, 0x38, 0xbd, 0xd0, 0x62, 0x67, 0x17, 0x5a, 0xec, 0xea,
|
|
0x42, 0x03, 0x6f, 0x06, 0x1a, 0x78, 0x3f, 0xd0, 0xc0, 0xc9, 0x40, 0x03, 0xa7, 0x03, 0x0d, 0x7c,
|
|
0x1e, 0x68, 0xe0, 0xcb, 0x40, 0x8b, 0x5d, 0x0d, 0x34, 0x70, 0x7c, 0xa9, 0xc5, 0x4e, 0x2f, 0xb5,
|
|
0xd8, 0xd9, 0xa5, 0x16, 0x83, 0xcb, 0x94, 0xdd, 0x9c, 0x71, 0x75, 0xf6, 0xb9, 0xf7, 0x97, 0xd9,
|
|
0x76, 0x7b, 0xbc, 0x0d, 0xf6, 0xff, 0x6f, 0x8f, 0xa0, 0x29, 0x9b, 0xf8, 0x2b, 0xad, 0x87, 0x97,
|
|
0x0f, 0x4a, 0x7a, 0x27, 0x00, 0x56, 0x6c, 0x3a, 0x94, 0x4a, 0x7d, 0xaf, 0xf8, 0x55, 0x59, 0x0e,
|
|
0x7c, 0xe5, 0x72, 0xc5, 0xa6, 0xe5, 0x72, 0xe8, 0x2d, 0x97, 0xf7, 0x8a, 0x8d, 0x29, 0x39, 0xd2,
|
|
0xfb, 0xdf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xf9, 0x87, 0x26, 0xa3, 0xfe, 0x06, 0x00, 0x00,
|
|
}
|
|
|
|
func (this *NamespaceInfo) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
that1, ok := that.(*NamespaceInfo)
|
|
if !ok {
|
|
that2, ok := that.(NamespaceInfo)
|
|
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
|
|
}
|
|
if this.State != that1.State {
|
|
return false
|
|
}
|
|
if this.Description != that1.Description {
|
|
return false
|
|
}
|
|
if this.OwnerEmail != that1.OwnerEmail {
|
|
return false
|
|
}
|
|
if len(this.Data) != len(that1.Data) {
|
|
return false
|
|
}
|
|
for i := range this.Data {
|
|
if this.Data[i] != that1.Data[i] {
|
|
return false
|
|
}
|
|
}
|
|
if this.Id != that1.Id {
|
|
return false
|
|
}
|
|
return true
|
|
}
|
|
func (this *NamespaceConfig) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
that1, ok := that.(*NamespaceConfig)
|
|
if !ok {
|
|
that2, ok := that.(NamespaceConfig)
|
|
if ok {
|
|
that1 = &that2
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
if that1 == nil {
|
|
return this == nil
|
|
} else if this == nil {
|
|
return false
|
|
}
|
|
if this.WorkflowExecutionRetentionTtl != nil && that1.WorkflowExecutionRetentionTtl != nil {
|
|
if *this.WorkflowExecutionRetentionTtl != *that1.WorkflowExecutionRetentionTtl {
|
|
return false
|
|
}
|
|
} else if this.WorkflowExecutionRetentionTtl != nil {
|
|
return false
|
|
} else if that1.WorkflowExecutionRetentionTtl != nil {
|
|
return false
|
|
}
|
|
if !this.BadBinaries.Equal(that1.BadBinaries) {
|
|
return false
|
|
}
|
|
if this.HistoryArchivalState != that1.HistoryArchivalState {
|
|
return false
|
|
}
|
|
if this.HistoryArchivalUri != that1.HistoryArchivalUri {
|
|
return false
|
|
}
|
|
if this.VisibilityArchivalState != that1.VisibilityArchivalState {
|
|
return false
|
|
}
|
|
if this.VisibilityArchivalUri != that1.VisibilityArchivalUri {
|
|
return false
|
|
}
|
|
return true
|
|
}
|
|
func (this *BadBinaries) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
that1, ok := that.(*BadBinaries)
|
|
if !ok {
|
|
that2, ok := that.(BadBinaries)
|
|
if ok {
|
|
that1 = &that2
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
if that1 == nil {
|
|
return this == nil
|
|
} else if this == nil {
|
|
return false
|
|
}
|
|
if len(this.Binaries) != len(that1.Binaries) {
|
|
return false
|
|
}
|
|
for i := range this.Binaries {
|
|
if !this.Binaries[i].Equal(that1.Binaries[i]) {
|
|
return false
|
|
}
|
|
}
|
|
return true
|
|
}
|
|
func (this *BadBinaryInfo) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
that1, ok := that.(*BadBinaryInfo)
|
|
if !ok {
|
|
that2, ok := that.(BadBinaryInfo)
|
|
if ok {
|
|
that1 = &that2
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
if that1 == nil {
|
|
return this == nil
|
|
} else if this == nil {
|
|
return false
|
|
}
|
|
if this.Reason != that1.Reason {
|
|
return false
|
|
}
|
|
if this.Operator != that1.Operator {
|
|
return false
|
|
}
|
|
if that1.CreateTime == nil {
|
|
if this.CreateTime != nil {
|
|
return false
|
|
}
|
|
} else if !this.CreateTime.Equal(*that1.CreateTime) {
|
|
return false
|
|
}
|
|
return true
|
|
}
|
|
func (this *UpdateNamespaceInfo) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
that1, ok := that.(*UpdateNamespaceInfo)
|
|
if !ok {
|
|
that2, ok := that.(UpdateNamespaceInfo)
|
|
if ok {
|
|
that1 = &that2
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
if that1 == nil {
|
|
return this == nil
|
|
} else if this == nil {
|
|
return false
|
|
}
|
|
if this.Description != that1.Description {
|
|
return false
|
|
}
|
|
if this.OwnerEmail != that1.OwnerEmail {
|
|
return false
|
|
}
|
|
if len(this.Data) != len(that1.Data) {
|
|
return false
|
|
}
|
|
for i := range this.Data {
|
|
if this.Data[i] != that1.Data[i] {
|
|
return false
|
|
}
|
|
}
|
|
return true
|
|
}
|
|
func (this *NamespaceInfo) GoString() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := make([]string, 0, 10)
|
|
s = append(s, "&namespace.NamespaceInfo{")
|
|
s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n")
|
|
s = append(s, "State: "+fmt.Sprintf("%#v", this.State)+",\n")
|
|
s = append(s, "Description: "+fmt.Sprintf("%#v", this.Description)+",\n")
|
|
s = append(s, "OwnerEmail: "+fmt.Sprintf("%#v", this.OwnerEmail)+",\n")
|
|
keysForData := make([]string, 0, len(this.Data))
|
|
for k, _ := range this.Data {
|
|
keysForData = append(keysForData, k)
|
|
}
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForData)
|
|
mapStringForData := "map[string]string{"
|
|
for _, k := range keysForData {
|
|
mapStringForData += fmt.Sprintf("%#v: %#v,", k, this.Data[k])
|
|
}
|
|
mapStringForData += "}"
|
|
if this.Data != nil {
|
|
s = append(s, "Data: "+mapStringForData+",\n")
|
|
}
|
|
s = append(s, "Id: "+fmt.Sprintf("%#v", this.Id)+",\n")
|
|
s = append(s, "}")
|
|
return strings.Join(s, "")
|
|
}
|
|
func (this *NamespaceConfig) GoString() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := make([]string, 0, 10)
|
|
s = append(s, "&namespace.NamespaceConfig{")
|
|
s = append(s, "WorkflowExecutionRetentionTtl: "+fmt.Sprintf("%#v", this.WorkflowExecutionRetentionTtl)+",\n")
|
|
if this.BadBinaries != nil {
|
|
s = append(s, "BadBinaries: "+fmt.Sprintf("%#v", this.BadBinaries)+",\n")
|
|
}
|
|
s = append(s, "HistoryArchivalState: "+fmt.Sprintf("%#v", this.HistoryArchivalState)+",\n")
|
|
s = append(s, "HistoryArchivalUri: "+fmt.Sprintf("%#v", this.HistoryArchivalUri)+",\n")
|
|
s = append(s, "VisibilityArchivalState: "+fmt.Sprintf("%#v", this.VisibilityArchivalState)+",\n")
|
|
s = append(s, "VisibilityArchivalUri: "+fmt.Sprintf("%#v", this.VisibilityArchivalUri)+",\n")
|
|
s = append(s, "}")
|
|
return strings.Join(s, "")
|
|
}
|
|
func (this *BadBinaries) GoString() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := make([]string, 0, 5)
|
|
s = append(s, "&namespace.BadBinaries{")
|
|
keysForBinaries := make([]string, 0, len(this.Binaries))
|
|
for k, _ := range this.Binaries {
|
|
keysForBinaries = append(keysForBinaries, k)
|
|
}
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForBinaries)
|
|
mapStringForBinaries := "map[string]*BadBinaryInfo{"
|
|
for _, k := range keysForBinaries {
|
|
mapStringForBinaries += fmt.Sprintf("%#v: %#v,", k, this.Binaries[k])
|
|
}
|
|
mapStringForBinaries += "}"
|
|
if this.Binaries != nil {
|
|
s = append(s, "Binaries: "+mapStringForBinaries+",\n")
|
|
}
|
|
s = append(s, "}")
|
|
return strings.Join(s, "")
|
|
}
|
|
func (this *BadBinaryInfo) GoString() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := make([]string, 0, 7)
|
|
s = append(s, "&namespace.BadBinaryInfo{")
|
|
s = append(s, "Reason: "+fmt.Sprintf("%#v", this.Reason)+",\n")
|
|
s = append(s, "Operator: "+fmt.Sprintf("%#v", this.Operator)+",\n")
|
|
s = append(s, "CreateTime: "+fmt.Sprintf("%#v", this.CreateTime)+",\n")
|
|
s = append(s, "}")
|
|
return strings.Join(s, "")
|
|
}
|
|
func (this *UpdateNamespaceInfo) GoString() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := make([]string, 0, 7)
|
|
s = append(s, "&namespace.UpdateNamespaceInfo{")
|
|
s = append(s, "Description: "+fmt.Sprintf("%#v", this.Description)+",\n")
|
|
s = append(s, "OwnerEmail: "+fmt.Sprintf("%#v", this.OwnerEmail)+",\n")
|
|
keysForData := make([]string, 0, len(this.Data))
|
|
for k, _ := range this.Data {
|
|
keysForData = append(keysForData, k)
|
|
}
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForData)
|
|
mapStringForData := "map[string]string{"
|
|
for _, k := range keysForData {
|
|
mapStringForData += fmt.Sprintf("%#v: %#v,", k, this.Data[k])
|
|
}
|
|
mapStringForData += "}"
|
|
if this.Data != nil {
|
|
s = append(s, "Data: "+mapStringForData+",\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 *NamespaceInfo) 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 *NamespaceInfo) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *NamespaceInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Id) > 0 {
|
|
i -= len(m.Id)
|
|
copy(dAtA[i:], m.Id)
|
|
i = encodeVarintMessage(dAtA, i, uint64(len(m.Id)))
|
|
i--
|
|
dAtA[i] = 0x32
|
|
}
|
|
if len(m.Data) > 0 {
|
|
for k := range m.Data {
|
|
v := m.Data[k]
|
|
baseI := i
|
|
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] = 0x2a
|
|
}
|
|
}
|
|
if len(m.OwnerEmail) > 0 {
|
|
i -= len(m.OwnerEmail)
|
|
copy(dAtA[i:], m.OwnerEmail)
|
|
i = encodeVarintMessage(dAtA, i, uint64(len(m.OwnerEmail)))
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
if len(m.Description) > 0 {
|
|
i -= len(m.Description)
|
|
copy(dAtA[i:], m.Description)
|
|
i = encodeVarintMessage(dAtA, i, uint64(len(m.Description)))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if m.State != 0 {
|
|
i = encodeVarintMessage(dAtA, i, uint64(m.State))
|
|
i--
|
|
dAtA[i] = 0x10
|
|
}
|
|
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 *NamespaceConfig) 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 *NamespaceConfig) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *NamespaceConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.VisibilityArchivalUri) > 0 {
|
|
i -= len(m.VisibilityArchivalUri)
|
|
copy(dAtA[i:], m.VisibilityArchivalUri)
|
|
i = encodeVarintMessage(dAtA, i, uint64(len(m.VisibilityArchivalUri)))
|
|
i--
|
|
dAtA[i] = 0x32
|
|
}
|
|
if m.VisibilityArchivalState != 0 {
|
|
i = encodeVarintMessage(dAtA, i, uint64(m.VisibilityArchivalState))
|
|
i--
|
|
dAtA[i] = 0x28
|
|
}
|
|
if len(m.HistoryArchivalUri) > 0 {
|
|
i -= len(m.HistoryArchivalUri)
|
|
copy(dAtA[i:], m.HistoryArchivalUri)
|
|
i = encodeVarintMessage(dAtA, i, uint64(len(m.HistoryArchivalUri)))
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
if m.HistoryArchivalState != 0 {
|
|
i = encodeVarintMessage(dAtA, i, uint64(m.HistoryArchivalState))
|
|
i--
|
|
dAtA[i] = 0x18
|
|
}
|
|
if m.BadBinaries != nil {
|
|
{
|
|
size, err := m.BadBinaries.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintMessage(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.WorkflowExecutionRetentionTtl != nil {
|
|
n2, err2 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.WorkflowExecutionRetentionTtl, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.WorkflowExecutionRetentionTtl):])
|
|
if err2 != nil {
|
|
return 0, err2
|
|
}
|
|
i -= n2
|
|
i = encodeVarintMessage(dAtA, i, uint64(n2))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *BadBinaries) 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 *BadBinaries) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BadBinaries) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Binaries) > 0 {
|
|
for k := range m.Binaries {
|
|
v := m.Binaries[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 *BadBinaryInfo) 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 *BadBinaryInfo) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BadBinaryInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.CreateTime != nil {
|
|
n4, err4 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.CreateTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.CreateTime):])
|
|
if err4 != nil {
|
|
return 0, err4
|
|
}
|
|
i -= n4
|
|
i = encodeVarintMessage(dAtA, i, uint64(n4))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if len(m.Operator) > 0 {
|
|
i -= len(m.Operator)
|
|
copy(dAtA[i:], m.Operator)
|
|
i = encodeVarintMessage(dAtA, i, uint64(len(m.Operator)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Reason) > 0 {
|
|
i -= len(m.Reason)
|
|
copy(dAtA[i:], m.Reason)
|
|
i = encodeVarintMessage(dAtA, i, uint64(len(m.Reason)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *UpdateNamespaceInfo) 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 *UpdateNamespaceInfo) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *UpdateNamespaceInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Data) > 0 {
|
|
for k := range m.Data {
|
|
v := m.Data[k]
|
|
baseI := i
|
|
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] = 0x1a
|
|
}
|
|
}
|
|
if len(m.OwnerEmail) > 0 {
|
|
i -= len(m.OwnerEmail)
|
|
copy(dAtA[i:], m.OwnerEmail)
|
|
i = encodeVarintMessage(dAtA, i, uint64(len(m.OwnerEmail)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Description) > 0 {
|
|
i -= len(m.Description)
|
|
copy(dAtA[i:], m.Description)
|
|
i = encodeVarintMessage(dAtA, i, uint64(len(m.Description)))
|
|
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 *NamespaceInfo) 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))
|
|
}
|
|
if m.State != 0 {
|
|
n += 1 + sovMessage(uint64(m.State))
|
|
}
|
|
l = len(m.Description)
|
|
if l > 0 {
|
|
n += 1 + l + sovMessage(uint64(l))
|
|
}
|
|
l = len(m.OwnerEmail)
|
|
if l > 0 {
|
|
n += 1 + l + sovMessage(uint64(l))
|
|
}
|
|
if len(m.Data) > 0 {
|
|
for k, v := range m.Data {
|
|
_ = k
|
|
_ = v
|
|
mapEntrySize := 1 + len(k) + sovMessage(uint64(len(k))) + 1 + len(v) + sovMessage(uint64(len(v)))
|
|
n += mapEntrySize + 1 + sovMessage(uint64(mapEntrySize))
|
|
}
|
|
}
|
|
l = len(m.Id)
|
|
if l > 0 {
|
|
n += 1 + l + sovMessage(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *NamespaceConfig) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.WorkflowExecutionRetentionTtl != nil {
|
|
l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.WorkflowExecutionRetentionTtl)
|
|
n += 1 + l + sovMessage(uint64(l))
|
|
}
|
|
if m.BadBinaries != nil {
|
|
l = m.BadBinaries.Size()
|
|
n += 1 + l + sovMessage(uint64(l))
|
|
}
|
|
if m.HistoryArchivalState != 0 {
|
|
n += 1 + sovMessage(uint64(m.HistoryArchivalState))
|
|
}
|
|
l = len(m.HistoryArchivalUri)
|
|
if l > 0 {
|
|
n += 1 + l + sovMessage(uint64(l))
|
|
}
|
|
if m.VisibilityArchivalState != 0 {
|
|
n += 1 + sovMessage(uint64(m.VisibilityArchivalState))
|
|
}
|
|
l = len(m.VisibilityArchivalUri)
|
|
if l > 0 {
|
|
n += 1 + l + sovMessage(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *BadBinaries) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.Binaries) > 0 {
|
|
for k, v := range m.Binaries {
|
|
_ = 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 *BadBinaryInfo) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Reason)
|
|
if l > 0 {
|
|
n += 1 + l + sovMessage(uint64(l))
|
|
}
|
|
l = len(m.Operator)
|
|
if l > 0 {
|
|
n += 1 + l + sovMessage(uint64(l))
|
|
}
|
|
if m.CreateTime != nil {
|
|
l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.CreateTime)
|
|
n += 1 + l + sovMessage(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *UpdateNamespaceInfo) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Description)
|
|
if l > 0 {
|
|
n += 1 + l + sovMessage(uint64(l))
|
|
}
|
|
l = len(m.OwnerEmail)
|
|
if l > 0 {
|
|
n += 1 + l + sovMessage(uint64(l))
|
|
}
|
|
if len(m.Data) > 0 {
|
|
for k, v := range m.Data {
|
|
_ = k
|
|
_ = v
|
|
mapEntrySize := 1 + len(k) + sovMessage(uint64(len(k))) + 1 + len(v) + sovMessage(uint64(len(v)))
|
|
n += mapEntrySize + 1 + sovMessage(uint64(mapEntrySize))
|
|
}
|
|
}
|
|
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 *NamespaceInfo) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
keysForData := make([]string, 0, len(this.Data))
|
|
for k, _ := range this.Data {
|
|
keysForData = append(keysForData, k)
|
|
}
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForData)
|
|
mapStringForData := "map[string]string{"
|
|
for _, k := range keysForData {
|
|
mapStringForData += fmt.Sprintf("%v: %v,", k, this.Data[k])
|
|
}
|
|
mapStringForData += "}"
|
|
s := strings.Join([]string{`&NamespaceInfo{`,
|
|
`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
|
|
`State:` + fmt.Sprintf("%v", this.State) + `,`,
|
|
`Description:` + fmt.Sprintf("%v", this.Description) + `,`,
|
|
`OwnerEmail:` + fmt.Sprintf("%v", this.OwnerEmail) + `,`,
|
|
`Data:` + mapStringForData + `,`,
|
|
`Id:` + fmt.Sprintf("%v", this.Id) + `,`,
|
|
`}`,
|
|
}, "")
|
|
return s
|
|
}
|
|
func (this *NamespaceConfig) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := strings.Join([]string{`&NamespaceConfig{`,
|
|
`WorkflowExecutionRetentionTtl:` + strings.Replace(fmt.Sprintf("%v", this.WorkflowExecutionRetentionTtl), "Duration", "types.Duration", 1) + `,`,
|
|
`BadBinaries:` + strings.Replace(this.BadBinaries.String(), "BadBinaries", "BadBinaries", 1) + `,`,
|
|
`HistoryArchivalState:` + fmt.Sprintf("%v", this.HistoryArchivalState) + `,`,
|
|
`HistoryArchivalUri:` + fmt.Sprintf("%v", this.HistoryArchivalUri) + `,`,
|
|
`VisibilityArchivalState:` + fmt.Sprintf("%v", this.VisibilityArchivalState) + `,`,
|
|
`VisibilityArchivalUri:` + fmt.Sprintf("%v", this.VisibilityArchivalUri) + `,`,
|
|
`}`,
|
|
}, "")
|
|
return s
|
|
}
|
|
func (this *BadBinaries) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
keysForBinaries := make([]string, 0, len(this.Binaries))
|
|
for k, _ := range this.Binaries {
|
|
keysForBinaries = append(keysForBinaries, k)
|
|
}
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForBinaries)
|
|
mapStringForBinaries := "map[string]*BadBinaryInfo{"
|
|
for _, k := range keysForBinaries {
|
|
mapStringForBinaries += fmt.Sprintf("%v: %v,", k, this.Binaries[k])
|
|
}
|
|
mapStringForBinaries += "}"
|
|
s := strings.Join([]string{`&BadBinaries{`,
|
|
`Binaries:` + mapStringForBinaries + `,`,
|
|
`}`,
|
|
}, "")
|
|
return s
|
|
}
|
|
func (this *BadBinaryInfo) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := strings.Join([]string{`&BadBinaryInfo{`,
|
|
`Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
|
|
`Operator:` + fmt.Sprintf("%v", this.Operator) + `,`,
|
|
`CreateTime:` + strings.Replace(fmt.Sprintf("%v", this.CreateTime), "Timestamp", "types.Timestamp", 1) + `,`,
|
|
`}`,
|
|
}, "")
|
|
return s
|
|
}
|
|
func (this *UpdateNamespaceInfo) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
keysForData := make([]string, 0, len(this.Data))
|
|
for k, _ := range this.Data {
|
|
keysForData = append(keysForData, k)
|
|
}
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForData)
|
|
mapStringForData := "map[string]string{"
|
|
for _, k := range keysForData {
|
|
mapStringForData += fmt.Sprintf("%v: %v,", k, this.Data[k])
|
|
}
|
|
mapStringForData += "}"
|
|
s := strings.Join([]string{`&UpdateNamespaceInfo{`,
|
|
`Description:` + fmt.Sprintf("%v", this.Description) + `,`,
|
|
`OwnerEmail:` + fmt.Sprintf("%v", this.OwnerEmail) + `,`,
|
|
`Data:` + mapStringForData + `,`,
|
|
`}`,
|
|
}, "")
|
|
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 *NamespaceInfo) 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: NamespaceInfo: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: NamespaceInfo: 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
|
|
case 2:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
|
|
}
|
|
m.State = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.State |= v1.NamespaceState(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Description", 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.Description = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field OwnerEmail", 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.OwnerEmail = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 5:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Data", 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.Data == nil {
|
|
m.Data = make(map[string]string)
|
|
}
|
|
var mapkey string
|
|
var mapvalue string
|
|
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 stringLenmapvalue uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLenmapvalue |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLenmapvalue := int(stringLenmapvalue)
|
|
if intStringLenmapvalue < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postStringIndexmapvalue := iNdEx + intStringLenmapvalue
|
|
if postStringIndexmapvalue < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postStringIndexmapvalue > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
|
|
iNdEx = postStringIndexmapvalue
|
|
} 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.Data[mapkey] = mapvalue
|
|
iNdEx = postIndex
|
|
case 6:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", 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.Id = 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 *NamespaceConfig) 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: NamespaceConfig: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: NamespaceConfig: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecutionRetentionTtl", 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.WorkflowExecutionRetentionTtl == nil {
|
|
m.WorkflowExecutionRetentionTtl = new(time.Duration)
|
|
}
|
|
if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.WorkflowExecutionRetentionTtl, dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field BadBinaries", 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.BadBinaries == nil {
|
|
m.BadBinaries = &BadBinaries{}
|
|
}
|
|
if err := m.BadBinaries.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field HistoryArchivalState", wireType)
|
|
}
|
|
m.HistoryArchivalState = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.HistoryArchivalState |= v1.ArchivalState(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field HistoryArchivalUri", 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.HistoryArchivalUri = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 5:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field VisibilityArchivalState", wireType)
|
|
}
|
|
m.VisibilityArchivalState = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.VisibilityArchivalState |= v1.ArchivalState(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 6:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field VisibilityArchivalUri", 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.VisibilityArchivalUri = 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 *BadBinaries) 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: BadBinaries: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BadBinaries: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Binaries", 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.Binaries == nil {
|
|
m.Binaries = make(map[string]*BadBinaryInfo)
|
|
}
|
|
var mapkey string
|
|
var mapvalue *BadBinaryInfo
|
|
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 = &BadBinaryInfo{}
|
|
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.Binaries[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 *BadBinaryInfo) 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: BadBinaryInfo: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BadBinaryInfo: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Operator", 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.Operator = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CreateTime", 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.CreateTime == nil {
|
|
m.CreateTime = new(time.Time)
|
|
}
|
|
if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.CreateTime, 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 *UpdateNamespaceInfo) 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: UpdateNamespaceInfo: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: UpdateNamespaceInfo: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Description", 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.Description = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field OwnerEmail", 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.OwnerEmail = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Data", 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.Data == nil {
|
|
m.Data = make(map[string]string)
|
|
}
|
|
var mapkey string
|
|
var mapvalue string
|
|
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 stringLenmapvalue uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMessage
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLenmapvalue |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLenmapvalue := int(stringLenmapvalue)
|
|
if intStringLenmapvalue < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
postStringIndexmapvalue := iNdEx + intStringLenmapvalue
|
|
if postStringIndexmapvalue < 0 {
|
|
return ErrInvalidLengthMessage
|
|
}
|
|
if postStringIndexmapvalue > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
|
|
iNdEx = postStringIndexmapvalue
|
|
} 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.Data[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 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")
|
|
)
|