github.com/m3db/m3@v1.5.0/src/query/generated/proto/admin/namespace.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: github.com/m3db/m3/src/query/generated/proto/admin/namespace.proto
     3  
     4  // Copyright (c) 2020 Uber Technologies, Inc.
     5  //
     6  // Permission is hereby granted, free of charge, to any person obtaining a copy
     7  // of this software and associated documentation files (the "Software"), to deal
     8  // in the Software without restriction, including without limitation the rights
     9  // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    10  // copies of the Software, and to permit persons to whom the Software is
    11  // furnished to do so, subject to the following conditions:
    12  //
    13  // The above copyright notice and this permission notice shall be included in
    14  // all copies or substantial portions of the Software.
    15  //
    16  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    17  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    18  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    19  // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    20  // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    21  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    22  // THE SOFTWARE.
    23  
    24  package admin
    25  
    26  import proto "github.com/gogo/protobuf/proto"
    27  import fmt "fmt"
    28  import math "math"
    29  import namespace1 "github.com/m3db/m3/src/dbnode/generated/proto/namespace"
    30  
    31  import io "io"
    32  
    33  // Reference imports to suppress errors if they are not otherwise used.
    34  var _ = proto.Marshal
    35  var _ = fmt.Errorf
    36  var _ = math.Inf
    37  
    38  type NamespaceGetResponse struct {
    39  	Registry *namespace1.Registry `protobuf:"bytes,1,opt,name=registry" json:"registry,omitempty"`
    40  }
    41  
    42  func (m *NamespaceGetResponse) Reset()                    { *m = NamespaceGetResponse{} }
    43  func (m *NamespaceGetResponse) String() string            { return proto.CompactTextString(m) }
    44  func (*NamespaceGetResponse) ProtoMessage()               {}
    45  func (*NamespaceGetResponse) Descriptor() ([]byte, []int) { return fileDescriptorNamespace, []int{0} }
    46  
    47  func (m *NamespaceGetResponse) GetRegistry() *namespace1.Registry {
    48  	if m != nil {
    49  		return m.Registry
    50  	}
    51  	return nil
    52  }
    53  
    54  type NamespaceAddRequest struct {
    55  	Name    string                       `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    56  	Options *namespace1.NamespaceOptions `protobuf:"bytes,2,opt,name=options" json:"options,omitempty"`
    57  }
    58  
    59  func (m *NamespaceAddRequest) Reset()                    { *m = NamespaceAddRequest{} }
    60  func (m *NamespaceAddRequest) String() string            { return proto.CompactTextString(m) }
    61  func (*NamespaceAddRequest) ProtoMessage()               {}
    62  func (*NamespaceAddRequest) Descriptor() ([]byte, []int) { return fileDescriptorNamespace, []int{1} }
    63  
    64  func (m *NamespaceAddRequest) GetName() string {
    65  	if m != nil {
    66  		return m.Name
    67  	}
    68  	return ""
    69  }
    70  
    71  func (m *NamespaceAddRequest) GetOptions() *namespace1.NamespaceOptions {
    72  	if m != nil {
    73  		return m.Options
    74  	}
    75  	return nil
    76  }
    77  
    78  type NamespaceUpdateRequest struct {
    79  	Name    string                       `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    80  	Options *namespace1.NamespaceOptions `protobuf:"bytes,2,opt,name=options" json:"options,omitempty"`
    81  }
    82  
    83  func (m *NamespaceUpdateRequest) Reset()                    { *m = NamespaceUpdateRequest{} }
    84  func (m *NamespaceUpdateRequest) String() string            { return proto.CompactTextString(m) }
    85  func (*NamespaceUpdateRequest) ProtoMessage()               {}
    86  func (*NamespaceUpdateRequest) Descriptor() ([]byte, []int) { return fileDescriptorNamespace, []int{2} }
    87  
    88  func (m *NamespaceUpdateRequest) GetName() string {
    89  	if m != nil {
    90  		return m.Name
    91  	}
    92  	return ""
    93  }
    94  
    95  func (m *NamespaceUpdateRequest) GetOptions() *namespace1.NamespaceOptions {
    96  	if m != nil {
    97  		return m.Options
    98  	}
    99  	return nil
   100  }
   101  
   102  type NamespaceSchemaAddRequest struct {
   103  	// Name is the namespace name.
   104  	// Add schema to non-existent namespace will get 404.
   105  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   106  	// MsgName is the name of the top level proto message.
   107  	MsgName string `protobuf:"bytes,2,opt,name=msgName,proto3" json:"msgName,omitempty"`
   108  	// ProtoName is the name of the top level proto file.
   109  	// Proto file content will be looked up from protoMap, so the name must corresponds to the map key.
   110  	ProtoName string `protobuf:"bytes,3,opt,name=protoName,proto3" json:"protoName,omitempty"`
   111  	// ProtoMap is a map of name to proto strings.
   112  	// Except the top level proto file, other imported proto files' key must be exactly the same
   113  	// as how they are imported in the import statement.
   114  	// E.g. If import.proto is imported using as below
   115  	// import "mainpkg/imported.proto";
   116  	// Then the map key for imported.proto must be "mainpkg/imported.proto"
   117  	// See src/dbnode/namespame/kvadmin test for example.
   118  	ProtoMap map[string]string `protobuf:"bytes,4,rep,name=protoMap" json:"protoMap,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   119  }
   120  
   121  func (m *NamespaceSchemaAddRequest) Reset()         { *m = NamespaceSchemaAddRequest{} }
   122  func (m *NamespaceSchemaAddRequest) String() string { return proto.CompactTextString(m) }
   123  func (*NamespaceSchemaAddRequest) ProtoMessage()    {}
   124  func (*NamespaceSchemaAddRequest) Descriptor() ([]byte, []int) {
   125  	return fileDescriptorNamespace, []int{3}
   126  }
   127  
   128  func (m *NamespaceSchemaAddRequest) GetName() string {
   129  	if m != nil {
   130  		return m.Name
   131  	}
   132  	return ""
   133  }
   134  
   135  func (m *NamespaceSchemaAddRequest) GetMsgName() string {
   136  	if m != nil {
   137  		return m.MsgName
   138  	}
   139  	return ""
   140  }
   141  
   142  func (m *NamespaceSchemaAddRequest) GetProtoName() string {
   143  	if m != nil {
   144  		return m.ProtoName
   145  	}
   146  	return ""
   147  }
   148  
   149  func (m *NamespaceSchemaAddRequest) GetProtoMap() map[string]string {
   150  	if m != nil {
   151  		return m.ProtoMap
   152  	}
   153  	return nil
   154  }
   155  
   156  type NamespaceSchemaAddResponse struct {
   157  	DeployID string `protobuf:"bytes,1,opt,name=deployID,proto3" json:"deployID,omitempty"`
   158  }
   159  
   160  func (m *NamespaceSchemaAddResponse) Reset()         { *m = NamespaceSchemaAddResponse{} }
   161  func (m *NamespaceSchemaAddResponse) String() string { return proto.CompactTextString(m) }
   162  func (*NamespaceSchemaAddResponse) ProtoMessage()    {}
   163  func (*NamespaceSchemaAddResponse) Descriptor() ([]byte, []int) {
   164  	return fileDescriptorNamespace, []int{4}
   165  }
   166  
   167  func (m *NamespaceSchemaAddResponse) GetDeployID() string {
   168  	if m != nil {
   169  		return m.DeployID
   170  	}
   171  	return ""
   172  }
   173  
   174  type NamespaceSchemaResetRequest struct {
   175  	// Name is the namespace name.
   176  	// Reset schema to non-existent namespace will get 404.
   177  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   178  }
   179  
   180  func (m *NamespaceSchemaResetRequest) Reset()         { *m = NamespaceSchemaResetRequest{} }
   181  func (m *NamespaceSchemaResetRequest) String() string { return proto.CompactTextString(m) }
   182  func (*NamespaceSchemaResetRequest) ProtoMessage()    {}
   183  func (*NamespaceSchemaResetRequest) Descriptor() ([]byte, []int) {
   184  	return fileDescriptorNamespace, []int{5}
   185  }
   186  
   187  func (m *NamespaceSchemaResetRequest) GetName() string {
   188  	if m != nil {
   189  		return m.Name
   190  	}
   191  	return ""
   192  }
   193  
   194  type NamespaceSchemaResetResponse struct {
   195  }
   196  
   197  func (m *NamespaceSchemaResetResponse) Reset()         { *m = NamespaceSchemaResetResponse{} }
   198  func (m *NamespaceSchemaResetResponse) String() string { return proto.CompactTextString(m) }
   199  func (*NamespaceSchemaResetResponse) ProtoMessage()    {}
   200  func (*NamespaceSchemaResetResponse) Descriptor() ([]byte, []int) {
   201  	return fileDescriptorNamespace, []int{6}
   202  }
   203  
   204  // NamespaceReadyRequest is the request for transitioning a namespace
   205  // to the ready state. Calls to this endpoint are idempotent and can
   206  // be safely retried on error.
   207  type NamespaceReadyRequest struct {
   208  	// Name is the namespace name.
   209  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   210  	// Force forces the StagingStatus of the namespace to be moved to the ready state.
   211  	// If the namespace is still not ready in DB nodes, then the coordinator will receive
   212  	// errors upon attempted reads or writes until the namespaces is actually ready.
   213  	Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
   214  }
   215  
   216  func (m *NamespaceReadyRequest) Reset()                    { *m = NamespaceReadyRequest{} }
   217  func (m *NamespaceReadyRequest) String() string            { return proto.CompactTextString(m) }
   218  func (*NamespaceReadyRequest) ProtoMessage()               {}
   219  func (*NamespaceReadyRequest) Descriptor() ([]byte, []int) { return fileDescriptorNamespace, []int{7} }
   220  
   221  func (m *NamespaceReadyRequest) GetName() string {
   222  	if m != nil {
   223  		return m.Name
   224  	}
   225  	return ""
   226  }
   227  
   228  func (m *NamespaceReadyRequest) GetForce() bool {
   229  	if m != nil {
   230  		return m.Force
   231  	}
   232  	return false
   233  }
   234  
   235  // NamespaceReadyResponse is the response from a request for transitioning
   236  // a namespace to the ready state.
   237  type NamespaceReadyResponse struct {
   238  	Ready bool `protobuf:"varint,1,opt,name=ready,proto3" json:"ready,omitempty"`
   239  }
   240  
   241  func (m *NamespaceReadyResponse) Reset()                    { *m = NamespaceReadyResponse{} }
   242  func (m *NamespaceReadyResponse) String() string            { return proto.CompactTextString(m) }
   243  func (*NamespaceReadyResponse) ProtoMessage()               {}
   244  func (*NamespaceReadyResponse) Descriptor() ([]byte, []int) { return fileDescriptorNamespace, []int{8} }
   245  
   246  func (m *NamespaceReadyResponse) GetReady() bool {
   247  	if m != nil {
   248  		return m.Ready
   249  	}
   250  	return false
   251  }
   252  
   253  func init() {
   254  	proto.RegisterType((*NamespaceGetResponse)(nil), "admin.NamespaceGetResponse")
   255  	proto.RegisterType((*NamespaceAddRequest)(nil), "admin.NamespaceAddRequest")
   256  	proto.RegisterType((*NamespaceUpdateRequest)(nil), "admin.NamespaceUpdateRequest")
   257  	proto.RegisterType((*NamespaceSchemaAddRequest)(nil), "admin.NamespaceSchemaAddRequest")
   258  	proto.RegisterType((*NamespaceSchemaAddResponse)(nil), "admin.NamespaceSchemaAddResponse")
   259  	proto.RegisterType((*NamespaceSchemaResetRequest)(nil), "admin.NamespaceSchemaResetRequest")
   260  	proto.RegisterType((*NamespaceSchemaResetResponse)(nil), "admin.NamespaceSchemaResetResponse")
   261  	proto.RegisterType((*NamespaceReadyRequest)(nil), "admin.NamespaceReadyRequest")
   262  	proto.RegisterType((*NamespaceReadyResponse)(nil), "admin.NamespaceReadyResponse")
   263  }
   264  func (m *NamespaceGetResponse) Marshal() (dAtA []byte, err error) {
   265  	size := m.Size()
   266  	dAtA = make([]byte, size)
   267  	n, err := m.MarshalTo(dAtA)
   268  	if err != nil {
   269  		return nil, err
   270  	}
   271  	return dAtA[:n], nil
   272  }
   273  
   274  func (m *NamespaceGetResponse) MarshalTo(dAtA []byte) (int, error) {
   275  	var i int
   276  	_ = i
   277  	var l int
   278  	_ = l
   279  	if m.Registry != nil {
   280  		dAtA[i] = 0xa
   281  		i++
   282  		i = encodeVarintNamespace(dAtA, i, uint64(m.Registry.Size()))
   283  		n1, err := m.Registry.MarshalTo(dAtA[i:])
   284  		if err != nil {
   285  			return 0, err
   286  		}
   287  		i += n1
   288  	}
   289  	return i, nil
   290  }
   291  
   292  func (m *NamespaceAddRequest) Marshal() (dAtA []byte, err error) {
   293  	size := m.Size()
   294  	dAtA = make([]byte, size)
   295  	n, err := m.MarshalTo(dAtA)
   296  	if err != nil {
   297  		return nil, err
   298  	}
   299  	return dAtA[:n], nil
   300  }
   301  
   302  func (m *NamespaceAddRequest) MarshalTo(dAtA []byte) (int, error) {
   303  	var i int
   304  	_ = i
   305  	var l int
   306  	_ = l
   307  	if len(m.Name) > 0 {
   308  		dAtA[i] = 0xa
   309  		i++
   310  		i = encodeVarintNamespace(dAtA, i, uint64(len(m.Name)))
   311  		i += copy(dAtA[i:], m.Name)
   312  	}
   313  	if m.Options != nil {
   314  		dAtA[i] = 0x12
   315  		i++
   316  		i = encodeVarintNamespace(dAtA, i, uint64(m.Options.Size()))
   317  		n2, err := m.Options.MarshalTo(dAtA[i:])
   318  		if err != nil {
   319  			return 0, err
   320  		}
   321  		i += n2
   322  	}
   323  	return i, nil
   324  }
   325  
   326  func (m *NamespaceUpdateRequest) Marshal() (dAtA []byte, err error) {
   327  	size := m.Size()
   328  	dAtA = make([]byte, size)
   329  	n, err := m.MarshalTo(dAtA)
   330  	if err != nil {
   331  		return nil, err
   332  	}
   333  	return dAtA[:n], nil
   334  }
   335  
   336  func (m *NamespaceUpdateRequest) MarshalTo(dAtA []byte) (int, error) {
   337  	var i int
   338  	_ = i
   339  	var l int
   340  	_ = l
   341  	if len(m.Name) > 0 {
   342  		dAtA[i] = 0xa
   343  		i++
   344  		i = encodeVarintNamespace(dAtA, i, uint64(len(m.Name)))
   345  		i += copy(dAtA[i:], m.Name)
   346  	}
   347  	if m.Options != nil {
   348  		dAtA[i] = 0x12
   349  		i++
   350  		i = encodeVarintNamespace(dAtA, i, uint64(m.Options.Size()))
   351  		n3, err := m.Options.MarshalTo(dAtA[i:])
   352  		if err != nil {
   353  			return 0, err
   354  		}
   355  		i += n3
   356  	}
   357  	return i, nil
   358  }
   359  
   360  func (m *NamespaceSchemaAddRequest) Marshal() (dAtA []byte, err error) {
   361  	size := m.Size()
   362  	dAtA = make([]byte, size)
   363  	n, err := m.MarshalTo(dAtA)
   364  	if err != nil {
   365  		return nil, err
   366  	}
   367  	return dAtA[:n], nil
   368  }
   369  
   370  func (m *NamespaceSchemaAddRequest) MarshalTo(dAtA []byte) (int, error) {
   371  	var i int
   372  	_ = i
   373  	var l int
   374  	_ = l
   375  	if len(m.Name) > 0 {
   376  		dAtA[i] = 0xa
   377  		i++
   378  		i = encodeVarintNamespace(dAtA, i, uint64(len(m.Name)))
   379  		i += copy(dAtA[i:], m.Name)
   380  	}
   381  	if len(m.MsgName) > 0 {
   382  		dAtA[i] = 0x12
   383  		i++
   384  		i = encodeVarintNamespace(dAtA, i, uint64(len(m.MsgName)))
   385  		i += copy(dAtA[i:], m.MsgName)
   386  	}
   387  	if len(m.ProtoName) > 0 {
   388  		dAtA[i] = 0x1a
   389  		i++
   390  		i = encodeVarintNamespace(dAtA, i, uint64(len(m.ProtoName)))
   391  		i += copy(dAtA[i:], m.ProtoName)
   392  	}
   393  	if len(m.ProtoMap) > 0 {
   394  		for k, _ := range m.ProtoMap {
   395  			dAtA[i] = 0x22
   396  			i++
   397  			v := m.ProtoMap[k]
   398  			mapSize := 1 + len(k) + sovNamespace(uint64(len(k))) + 1 + len(v) + sovNamespace(uint64(len(v)))
   399  			i = encodeVarintNamespace(dAtA, i, uint64(mapSize))
   400  			dAtA[i] = 0xa
   401  			i++
   402  			i = encodeVarintNamespace(dAtA, i, uint64(len(k)))
   403  			i += copy(dAtA[i:], k)
   404  			dAtA[i] = 0x12
   405  			i++
   406  			i = encodeVarintNamespace(dAtA, i, uint64(len(v)))
   407  			i += copy(dAtA[i:], v)
   408  		}
   409  	}
   410  	return i, nil
   411  }
   412  
   413  func (m *NamespaceSchemaAddResponse) Marshal() (dAtA []byte, err error) {
   414  	size := m.Size()
   415  	dAtA = make([]byte, size)
   416  	n, err := m.MarshalTo(dAtA)
   417  	if err != nil {
   418  		return nil, err
   419  	}
   420  	return dAtA[:n], nil
   421  }
   422  
   423  func (m *NamespaceSchemaAddResponse) MarshalTo(dAtA []byte) (int, error) {
   424  	var i int
   425  	_ = i
   426  	var l int
   427  	_ = l
   428  	if len(m.DeployID) > 0 {
   429  		dAtA[i] = 0xa
   430  		i++
   431  		i = encodeVarintNamespace(dAtA, i, uint64(len(m.DeployID)))
   432  		i += copy(dAtA[i:], m.DeployID)
   433  	}
   434  	return i, nil
   435  }
   436  
   437  func (m *NamespaceSchemaResetRequest) Marshal() (dAtA []byte, err error) {
   438  	size := m.Size()
   439  	dAtA = make([]byte, size)
   440  	n, err := m.MarshalTo(dAtA)
   441  	if err != nil {
   442  		return nil, err
   443  	}
   444  	return dAtA[:n], nil
   445  }
   446  
   447  func (m *NamespaceSchemaResetRequest) MarshalTo(dAtA []byte) (int, error) {
   448  	var i int
   449  	_ = i
   450  	var l int
   451  	_ = l
   452  	if len(m.Name) > 0 {
   453  		dAtA[i] = 0xa
   454  		i++
   455  		i = encodeVarintNamespace(dAtA, i, uint64(len(m.Name)))
   456  		i += copy(dAtA[i:], m.Name)
   457  	}
   458  	return i, nil
   459  }
   460  
   461  func (m *NamespaceSchemaResetResponse) Marshal() (dAtA []byte, err error) {
   462  	size := m.Size()
   463  	dAtA = make([]byte, size)
   464  	n, err := m.MarshalTo(dAtA)
   465  	if err != nil {
   466  		return nil, err
   467  	}
   468  	return dAtA[:n], nil
   469  }
   470  
   471  func (m *NamespaceSchemaResetResponse) MarshalTo(dAtA []byte) (int, error) {
   472  	var i int
   473  	_ = i
   474  	var l int
   475  	_ = l
   476  	return i, nil
   477  }
   478  
   479  func (m *NamespaceReadyRequest) Marshal() (dAtA []byte, err error) {
   480  	size := m.Size()
   481  	dAtA = make([]byte, size)
   482  	n, err := m.MarshalTo(dAtA)
   483  	if err != nil {
   484  		return nil, err
   485  	}
   486  	return dAtA[:n], nil
   487  }
   488  
   489  func (m *NamespaceReadyRequest) MarshalTo(dAtA []byte) (int, error) {
   490  	var i int
   491  	_ = i
   492  	var l int
   493  	_ = l
   494  	if len(m.Name) > 0 {
   495  		dAtA[i] = 0xa
   496  		i++
   497  		i = encodeVarintNamespace(dAtA, i, uint64(len(m.Name)))
   498  		i += copy(dAtA[i:], m.Name)
   499  	}
   500  	if m.Force {
   501  		dAtA[i] = 0x10
   502  		i++
   503  		if m.Force {
   504  			dAtA[i] = 1
   505  		} else {
   506  			dAtA[i] = 0
   507  		}
   508  		i++
   509  	}
   510  	return i, nil
   511  }
   512  
   513  func (m *NamespaceReadyResponse) Marshal() (dAtA []byte, err error) {
   514  	size := m.Size()
   515  	dAtA = make([]byte, size)
   516  	n, err := m.MarshalTo(dAtA)
   517  	if err != nil {
   518  		return nil, err
   519  	}
   520  	return dAtA[:n], nil
   521  }
   522  
   523  func (m *NamespaceReadyResponse) MarshalTo(dAtA []byte) (int, error) {
   524  	var i int
   525  	_ = i
   526  	var l int
   527  	_ = l
   528  	if m.Ready {
   529  		dAtA[i] = 0x8
   530  		i++
   531  		if m.Ready {
   532  			dAtA[i] = 1
   533  		} else {
   534  			dAtA[i] = 0
   535  		}
   536  		i++
   537  	}
   538  	return i, nil
   539  }
   540  
   541  func encodeVarintNamespace(dAtA []byte, offset int, v uint64) int {
   542  	for v >= 1<<7 {
   543  		dAtA[offset] = uint8(v&0x7f | 0x80)
   544  		v >>= 7
   545  		offset++
   546  	}
   547  	dAtA[offset] = uint8(v)
   548  	return offset + 1
   549  }
   550  func (m *NamespaceGetResponse) Size() (n int) {
   551  	var l int
   552  	_ = l
   553  	if m.Registry != nil {
   554  		l = m.Registry.Size()
   555  		n += 1 + l + sovNamespace(uint64(l))
   556  	}
   557  	return n
   558  }
   559  
   560  func (m *NamespaceAddRequest) Size() (n int) {
   561  	var l int
   562  	_ = l
   563  	l = len(m.Name)
   564  	if l > 0 {
   565  		n += 1 + l + sovNamespace(uint64(l))
   566  	}
   567  	if m.Options != nil {
   568  		l = m.Options.Size()
   569  		n += 1 + l + sovNamespace(uint64(l))
   570  	}
   571  	return n
   572  }
   573  
   574  func (m *NamespaceUpdateRequest) Size() (n int) {
   575  	var l int
   576  	_ = l
   577  	l = len(m.Name)
   578  	if l > 0 {
   579  		n += 1 + l + sovNamespace(uint64(l))
   580  	}
   581  	if m.Options != nil {
   582  		l = m.Options.Size()
   583  		n += 1 + l + sovNamespace(uint64(l))
   584  	}
   585  	return n
   586  }
   587  
   588  func (m *NamespaceSchemaAddRequest) Size() (n int) {
   589  	var l int
   590  	_ = l
   591  	l = len(m.Name)
   592  	if l > 0 {
   593  		n += 1 + l + sovNamespace(uint64(l))
   594  	}
   595  	l = len(m.MsgName)
   596  	if l > 0 {
   597  		n += 1 + l + sovNamespace(uint64(l))
   598  	}
   599  	l = len(m.ProtoName)
   600  	if l > 0 {
   601  		n += 1 + l + sovNamespace(uint64(l))
   602  	}
   603  	if len(m.ProtoMap) > 0 {
   604  		for k, v := range m.ProtoMap {
   605  			_ = k
   606  			_ = v
   607  			mapEntrySize := 1 + len(k) + sovNamespace(uint64(len(k))) + 1 + len(v) + sovNamespace(uint64(len(v)))
   608  			n += mapEntrySize + 1 + sovNamespace(uint64(mapEntrySize))
   609  		}
   610  	}
   611  	return n
   612  }
   613  
   614  func (m *NamespaceSchemaAddResponse) Size() (n int) {
   615  	var l int
   616  	_ = l
   617  	l = len(m.DeployID)
   618  	if l > 0 {
   619  		n += 1 + l + sovNamespace(uint64(l))
   620  	}
   621  	return n
   622  }
   623  
   624  func (m *NamespaceSchemaResetRequest) Size() (n int) {
   625  	var l int
   626  	_ = l
   627  	l = len(m.Name)
   628  	if l > 0 {
   629  		n += 1 + l + sovNamespace(uint64(l))
   630  	}
   631  	return n
   632  }
   633  
   634  func (m *NamespaceSchemaResetResponse) Size() (n int) {
   635  	var l int
   636  	_ = l
   637  	return n
   638  }
   639  
   640  func (m *NamespaceReadyRequest) Size() (n int) {
   641  	var l int
   642  	_ = l
   643  	l = len(m.Name)
   644  	if l > 0 {
   645  		n += 1 + l + sovNamespace(uint64(l))
   646  	}
   647  	if m.Force {
   648  		n += 2
   649  	}
   650  	return n
   651  }
   652  
   653  func (m *NamespaceReadyResponse) Size() (n int) {
   654  	var l int
   655  	_ = l
   656  	if m.Ready {
   657  		n += 2
   658  	}
   659  	return n
   660  }
   661  
   662  func sovNamespace(x uint64) (n int) {
   663  	for {
   664  		n++
   665  		x >>= 7
   666  		if x == 0 {
   667  			break
   668  		}
   669  	}
   670  	return n
   671  }
   672  func sozNamespace(x uint64) (n int) {
   673  	return sovNamespace(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   674  }
   675  func (m *NamespaceGetResponse) Unmarshal(dAtA []byte) error {
   676  	l := len(dAtA)
   677  	iNdEx := 0
   678  	for iNdEx < l {
   679  		preIndex := iNdEx
   680  		var wire uint64
   681  		for shift := uint(0); ; shift += 7 {
   682  			if shift >= 64 {
   683  				return ErrIntOverflowNamespace
   684  			}
   685  			if iNdEx >= l {
   686  				return io.ErrUnexpectedEOF
   687  			}
   688  			b := dAtA[iNdEx]
   689  			iNdEx++
   690  			wire |= (uint64(b) & 0x7F) << shift
   691  			if b < 0x80 {
   692  				break
   693  			}
   694  		}
   695  		fieldNum := int32(wire >> 3)
   696  		wireType := int(wire & 0x7)
   697  		if wireType == 4 {
   698  			return fmt.Errorf("proto: NamespaceGetResponse: wiretype end group for non-group")
   699  		}
   700  		if fieldNum <= 0 {
   701  			return fmt.Errorf("proto: NamespaceGetResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   702  		}
   703  		switch fieldNum {
   704  		case 1:
   705  			if wireType != 2 {
   706  				return fmt.Errorf("proto: wrong wireType = %d for field Registry", wireType)
   707  			}
   708  			var msglen int
   709  			for shift := uint(0); ; shift += 7 {
   710  				if shift >= 64 {
   711  					return ErrIntOverflowNamespace
   712  				}
   713  				if iNdEx >= l {
   714  					return io.ErrUnexpectedEOF
   715  				}
   716  				b := dAtA[iNdEx]
   717  				iNdEx++
   718  				msglen |= (int(b) & 0x7F) << shift
   719  				if b < 0x80 {
   720  					break
   721  				}
   722  			}
   723  			if msglen < 0 {
   724  				return ErrInvalidLengthNamespace
   725  			}
   726  			postIndex := iNdEx + msglen
   727  			if postIndex > l {
   728  				return io.ErrUnexpectedEOF
   729  			}
   730  			if m.Registry == nil {
   731  				m.Registry = &namespace1.Registry{}
   732  			}
   733  			if err := m.Registry.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   734  				return err
   735  			}
   736  			iNdEx = postIndex
   737  		default:
   738  			iNdEx = preIndex
   739  			skippy, err := skipNamespace(dAtA[iNdEx:])
   740  			if err != nil {
   741  				return err
   742  			}
   743  			if skippy < 0 {
   744  				return ErrInvalidLengthNamespace
   745  			}
   746  			if (iNdEx + skippy) > l {
   747  				return io.ErrUnexpectedEOF
   748  			}
   749  			iNdEx += skippy
   750  		}
   751  	}
   752  
   753  	if iNdEx > l {
   754  		return io.ErrUnexpectedEOF
   755  	}
   756  	return nil
   757  }
   758  func (m *NamespaceAddRequest) Unmarshal(dAtA []byte) error {
   759  	l := len(dAtA)
   760  	iNdEx := 0
   761  	for iNdEx < l {
   762  		preIndex := iNdEx
   763  		var wire uint64
   764  		for shift := uint(0); ; shift += 7 {
   765  			if shift >= 64 {
   766  				return ErrIntOverflowNamespace
   767  			}
   768  			if iNdEx >= l {
   769  				return io.ErrUnexpectedEOF
   770  			}
   771  			b := dAtA[iNdEx]
   772  			iNdEx++
   773  			wire |= (uint64(b) & 0x7F) << shift
   774  			if b < 0x80 {
   775  				break
   776  			}
   777  		}
   778  		fieldNum := int32(wire >> 3)
   779  		wireType := int(wire & 0x7)
   780  		if wireType == 4 {
   781  			return fmt.Errorf("proto: NamespaceAddRequest: wiretype end group for non-group")
   782  		}
   783  		if fieldNum <= 0 {
   784  			return fmt.Errorf("proto: NamespaceAddRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   785  		}
   786  		switch fieldNum {
   787  		case 1:
   788  			if wireType != 2 {
   789  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
   790  			}
   791  			var stringLen uint64
   792  			for shift := uint(0); ; shift += 7 {
   793  				if shift >= 64 {
   794  					return ErrIntOverflowNamespace
   795  				}
   796  				if iNdEx >= l {
   797  					return io.ErrUnexpectedEOF
   798  				}
   799  				b := dAtA[iNdEx]
   800  				iNdEx++
   801  				stringLen |= (uint64(b) & 0x7F) << shift
   802  				if b < 0x80 {
   803  					break
   804  				}
   805  			}
   806  			intStringLen := int(stringLen)
   807  			if intStringLen < 0 {
   808  				return ErrInvalidLengthNamespace
   809  			}
   810  			postIndex := iNdEx + intStringLen
   811  			if postIndex > l {
   812  				return io.ErrUnexpectedEOF
   813  			}
   814  			m.Name = string(dAtA[iNdEx:postIndex])
   815  			iNdEx = postIndex
   816  		case 2:
   817  			if wireType != 2 {
   818  				return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
   819  			}
   820  			var msglen int
   821  			for shift := uint(0); ; shift += 7 {
   822  				if shift >= 64 {
   823  					return ErrIntOverflowNamespace
   824  				}
   825  				if iNdEx >= l {
   826  					return io.ErrUnexpectedEOF
   827  				}
   828  				b := dAtA[iNdEx]
   829  				iNdEx++
   830  				msglen |= (int(b) & 0x7F) << shift
   831  				if b < 0x80 {
   832  					break
   833  				}
   834  			}
   835  			if msglen < 0 {
   836  				return ErrInvalidLengthNamespace
   837  			}
   838  			postIndex := iNdEx + msglen
   839  			if postIndex > l {
   840  				return io.ErrUnexpectedEOF
   841  			}
   842  			if m.Options == nil {
   843  				m.Options = &namespace1.NamespaceOptions{}
   844  			}
   845  			if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   846  				return err
   847  			}
   848  			iNdEx = postIndex
   849  		default:
   850  			iNdEx = preIndex
   851  			skippy, err := skipNamespace(dAtA[iNdEx:])
   852  			if err != nil {
   853  				return err
   854  			}
   855  			if skippy < 0 {
   856  				return ErrInvalidLengthNamespace
   857  			}
   858  			if (iNdEx + skippy) > l {
   859  				return io.ErrUnexpectedEOF
   860  			}
   861  			iNdEx += skippy
   862  		}
   863  	}
   864  
   865  	if iNdEx > l {
   866  		return io.ErrUnexpectedEOF
   867  	}
   868  	return nil
   869  }
   870  func (m *NamespaceUpdateRequest) Unmarshal(dAtA []byte) error {
   871  	l := len(dAtA)
   872  	iNdEx := 0
   873  	for iNdEx < l {
   874  		preIndex := iNdEx
   875  		var wire uint64
   876  		for shift := uint(0); ; shift += 7 {
   877  			if shift >= 64 {
   878  				return ErrIntOverflowNamespace
   879  			}
   880  			if iNdEx >= l {
   881  				return io.ErrUnexpectedEOF
   882  			}
   883  			b := dAtA[iNdEx]
   884  			iNdEx++
   885  			wire |= (uint64(b) & 0x7F) << shift
   886  			if b < 0x80 {
   887  				break
   888  			}
   889  		}
   890  		fieldNum := int32(wire >> 3)
   891  		wireType := int(wire & 0x7)
   892  		if wireType == 4 {
   893  			return fmt.Errorf("proto: NamespaceUpdateRequest: wiretype end group for non-group")
   894  		}
   895  		if fieldNum <= 0 {
   896  			return fmt.Errorf("proto: NamespaceUpdateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   897  		}
   898  		switch fieldNum {
   899  		case 1:
   900  			if wireType != 2 {
   901  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
   902  			}
   903  			var stringLen uint64
   904  			for shift := uint(0); ; shift += 7 {
   905  				if shift >= 64 {
   906  					return ErrIntOverflowNamespace
   907  				}
   908  				if iNdEx >= l {
   909  					return io.ErrUnexpectedEOF
   910  				}
   911  				b := dAtA[iNdEx]
   912  				iNdEx++
   913  				stringLen |= (uint64(b) & 0x7F) << shift
   914  				if b < 0x80 {
   915  					break
   916  				}
   917  			}
   918  			intStringLen := int(stringLen)
   919  			if intStringLen < 0 {
   920  				return ErrInvalidLengthNamespace
   921  			}
   922  			postIndex := iNdEx + intStringLen
   923  			if postIndex > l {
   924  				return io.ErrUnexpectedEOF
   925  			}
   926  			m.Name = string(dAtA[iNdEx:postIndex])
   927  			iNdEx = postIndex
   928  		case 2:
   929  			if wireType != 2 {
   930  				return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
   931  			}
   932  			var msglen int
   933  			for shift := uint(0); ; shift += 7 {
   934  				if shift >= 64 {
   935  					return ErrIntOverflowNamespace
   936  				}
   937  				if iNdEx >= l {
   938  					return io.ErrUnexpectedEOF
   939  				}
   940  				b := dAtA[iNdEx]
   941  				iNdEx++
   942  				msglen |= (int(b) & 0x7F) << shift
   943  				if b < 0x80 {
   944  					break
   945  				}
   946  			}
   947  			if msglen < 0 {
   948  				return ErrInvalidLengthNamespace
   949  			}
   950  			postIndex := iNdEx + msglen
   951  			if postIndex > l {
   952  				return io.ErrUnexpectedEOF
   953  			}
   954  			if m.Options == nil {
   955  				m.Options = &namespace1.NamespaceOptions{}
   956  			}
   957  			if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   958  				return err
   959  			}
   960  			iNdEx = postIndex
   961  		default:
   962  			iNdEx = preIndex
   963  			skippy, err := skipNamespace(dAtA[iNdEx:])
   964  			if err != nil {
   965  				return err
   966  			}
   967  			if skippy < 0 {
   968  				return ErrInvalidLengthNamespace
   969  			}
   970  			if (iNdEx + skippy) > l {
   971  				return io.ErrUnexpectedEOF
   972  			}
   973  			iNdEx += skippy
   974  		}
   975  	}
   976  
   977  	if iNdEx > l {
   978  		return io.ErrUnexpectedEOF
   979  	}
   980  	return nil
   981  }
   982  func (m *NamespaceSchemaAddRequest) Unmarshal(dAtA []byte) error {
   983  	l := len(dAtA)
   984  	iNdEx := 0
   985  	for iNdEx < l {
   986  		preIndex := iNdEx
   987  		var wire uint64
   988  		for shift := uint(0); ; shift += 7 {
   989  			if shift >= 64 {
   990  				return ErrIntOverflowNamespace
   991  			}
   992  			if iNdEx >= l {
   993  				return io.ErrUnexpectedEOF
   994  			}
   995  			b := dAtA[iNdEx]
   996  			iNdEx++
   997  			wire |= (uint64(b) & 0x7F) << shift
   998  			if b < 0x80 {
   999  				break
  1000  			}
  1001  		}
  1002  		fieldNum := int32(wire >> 3)
  1003  		wireType := int(wire & 0x7)
  1004  		if wireType == 4 {
  1005  			return fmt.Errorf("proto: NamespaceSchemaAddRequest: wiretype end group for non-group")
  1006  		}
  1007  		if fieldNum <= 0 {
  1008  			return fmt.Errorf("proto: NamespaceSchemaAddRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1009  		}
  1010  		switch fieldNum {
  1011  		case 1:
  1012  			if wireType != 2 {
  1013  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  1014  			}
  1015  			var stringLen uint64
  1016  			for shift := uint(0); ; shift += 7 {
  1017  				if shift >= 64 {
  1018  					return ErrIntOverflowNamespace
  1019  				}
  1020  				if iNdEx >= l {
  1021  					return io.ErrUnexpectedEOF
  1022  				}
  1023  				b := dAtA[iNdEx]
  1024  				iNdEx++
  1025  				stringLen |= (uint64(b) & 0x7F) << shift
  1026  				if b < 0x80 {
  1027  					break
  1028  				}
  1029  			}
  1030  			intStringLen := int(stringLen)
  1031  			if intStringLen < 0 {
  1032  				return ErrInvalidLengthNamespace
  1033  			}
  1034  			postIndex := iNdEx + intStringLen
  1035  			if postIndex > l {
  1036  				return io.ErrUnexpectedEOF
  1037  			}
  1038  			m.Name = string(dAtA[iNdEx:postIndex])
  1039  			iNdEx = postIndex
  1040  		case 2:
  1041  			if wireType != 2 {
  1042  				return fmt.Errorf("proto: wrong wireType = %d for field MsgName", wireType)
  1043  			}
  1044  			var stringLen uint64
  1045  			for shift := uint(0); ; shift += 7 {
  1046  				if shift >= 64 {
  1047  					return ErrIntOverflowNamespace
  1048  				}
  1049  				if iNdEx >= l {
  1050  					return io.ErrUnexpectedEOF
  1051  				}
  1052  				b := dAtA[iNdEx]
  1053  				iNdEx++
  1054  				stringLen |= (uint64(b) & 0x7F) << shift
  1055  				if b < 0x80 {
  1056  					break
  1057  				}
  1058  			}
  1059  			intStringLen := int(stringLen)
  1060  			if intStringLen < 0 {
  1061  				return ErrInvalidLengthNamespace
  1062  			}
  1063  			postIndex := iNdEx + intStringLen
  1064  			if postIndex > l {
  1065  				return io.ErrUnexpectedEOF
  1066  			}
  1067  			m.MsgName = string(dAtA[iNdEx:postIndex])
  1068  			iNdEx = postIndex
  1069  		case 3:
  1070  			if wireType != 2 {
  1071  				return fmt.Errorf("proto: wrong wireType = %d for field ProtoName", wireType)
  1072  			}
  1073  			var stringLen uint64
  1074  			for shift := uint(0); ; shift += 7 {
  1075  				if shift >= 64 {
  1076  					return ErrIntOverflowNamespace
  1077  				}
  1078  				if iNdEx >= l {
  1079  					return io.ErrUnexpectedEOF
  1080  				}
  1081  				b := dAtA[iNdEx]
  1082  				iNdEx++
  1083  				stringLen |= (uint64(b) & 0x7F) << shift
  1084  				if b < 0x80 {
  1085  					break
  1086  				}
  1087  			}
  1088  			intStringLen := int(stringLen)
  1089  			if intStringLen < 0 {
  1090  				return ErrInvalidLengthNamespace
  1091  			}
  1092  			postIndex := iNdEx + intStringLen
  1093  			if postIndex > l {
  1094  				return io.ErrUnexpectedEOF
  1095  			}
  1096  			m.ProtoName = string(dAtA[iNdEx:postIndex])
  1097  			iNdEx = postIndex
  1098  		case 4:
  1099  			if wireType != 2 {
  1100  				return fmt.Errorf("proto: wrong wireType = %d for field ProtoMap", wireType)
  1101  			}
  1102  			var msglen int
  1103  			for shift := uint(0); ; shift += 7 {
  1104  				if shift >= 64 {
  1105  					return ErrIntOverflowNamespace
  1106  				}
  1107  				if iNdEx >= l {
  1108  					return io.ErrUnexpectedEOF
  1109  				}
  1110  				b := dAtA[iNdEx]
  1111  				iNdEx++
  1112  				msglen |= (int(b) & 0x7F) << shift
  1113  				if b < 0x80 {
  1114  					break
  1115  				}
  1116  			}
  1117  			if msglen < 0 {
  1118  				return ErrInvalidLengthNamespace
  1119  			}
  1120  			postIndex := iNdEx + msglen
  1121  			if postIndex > l {
  1122  				return io.ErrUnexpectedEOF
  1123  			}
  1124  			if m.ProtoMap == nil {
  1125  				m.ProtoMap = make(map[string]string)
  1126  			}
  1127  			var mapkey string
  1128  			var mapvalue string
  1129  			for iNdEx < postIndex {
  1130  				entryPreIndex := iNdEx
  1131  				var wire uint64
  1132  				for shift := uint(0); ; shift += 7 {
  1133  					if shift >= 64 {
  1134  						return ErrIntOverflowNamespace
  1135  					}
  1136  					if iNdEx >= l {
  1137  						return io.ErrUnexpectedEOF
  1138  					}
  1139  					b := dAtA[iNdEx]
  1140  					iNdEx++
  1141  					wire |= (uint64(b) & 0x7F) << shift
  1142  					if b < 0x80 {
  1143  						break
  1144  					}
  1145  				}
  1146  				fieldNum := int32(wire >> 3)
  1147  				if fieldNum == 1 {
  1148  					var stringLenmapkey uint64
  1149  					for shift := uint(0); ; shift += 7 {
  1150  						if shift >= 64 {
  1151  							return ErrIntOverflowNamespace
  1152  						}
  1153  						if iNdEx >= l {
  1154  							return io.ErrUnexpectedEOF
  1155  						}
  1156  						b := dAtA[iNdEx]
  1157  						iNdEx++
  1158  						stringLenmapkey |= (uint64(b) & 0x7F) << shift
  1159  						if b < 0x80 {
  1160  							break
  1161  						}
  1162  					}
  1163  					intStringLenmapkey := int(stringLenmapkey)
  1164  					if intStringLenmapkey < 0 {
  1165  						return ErrInvalidLengthNamespace
  1166  					}
  1167  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  1168  					if postStringIndexmapkey > l {
  1169  						return io.ErrUnexpectedEOF
  1170  					}
  1171  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  1172  					iNdEx = postStringIndexmapkey
  1173  				} else if fieldNum == 2 {
  1174  					var stringLenmapvalue uint64
  1175  					for shift := uint(0); ; shift += 7 {
  1176  						if shift >= 64 {
  1177  							return ErrIntOverflowNamespace
  1178  						}
  1179  						if iNdEx >= l {
  1180  							return io.ErrUnexpectedEOF
  1181  						}
  1182  						b := dAtA[iNdEx]
  1183  						iNdEx++
  1184  						stringLenmapvalue |= (uint64(b) & 0x7F) << shift
  1185  						if b < 0x80 {
  1186  							break
  1187  						}
  1188  					}
  1189  					intStringLenmapvalue := int(stringLenmapvalue)
  1190  					if intStringLenmapvalue < 0 {
  1191  						return ErrInvalidLengthNamespace
  1192  					}
  1193  					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  1194  					if postStringIndexmapvalue > l {
  1195  						return io.ErrUnexpectedEOF
  1196  					}
  1197  					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  1198  					iNdEx = postStringIndexmapvalue
  1199  				} else {
  1200  					iNdEx = entryPreIndex
  1201  					skippy, err := skipNamespace(dAtA[iNdEx:])
  1202  					if err != nil {
  1203  						return err
  1204  					}
  1205  					if skippy < 0 {
  1206  						return ErrInvalidLengthNamespace
  1207  					}
  1208  					if (iNdEx + skippy) > postIndex {
  1209  						return io.ErrUnexpectedEOF
  1210  					}
  1211  					iNdEx += skippy
  1212  				}
  1213  			}
  1214  			m.ProtoMap[mapkey] = mapvalue
  1215  			iNdEx = postIndex
  1216  		default:
  1217  			iNdEx = preIndex
  1218  			skippy, err := skipNamespace(dAtA[iNdEx:])
  1219  			if err != nil {
  1220  				return err
  1221  			}
  1222  			if skippy < 0 {
  1223  				return ErrInvalidLengthNamespace
  1224  			}
  1225  			if (iNdEx + skippy) > l {
  1226  				return io.ErrUnexpectedEOF
  1227  			}
  1228  			iNdEx += skippy
  1229  		}
  1230  	}
  1231  
  1232  	if iNdEx > l {
  1233  		return io.ErrUnexpectedEOF
  1234  	}
  1235  	return nil
  1236  }
  1237  func (m *NamespaceSchemaAddResponse) Unmarshal(dAtA []byte) error {
  1238  	l := len(dAtA)
  1239  	iNdEx := 0
  1240  	for iNdEx < l {
  1241  		preIndex := iNdEx
  1242  		var wire uint64
  1243  		for shift := uint(0); ; shift += 7 {
  1244  			if shift >= 64 {
  1245  				return ErrIntOverflowNamespace
  1246  			}
  1247  			if iNdEx >= l {
  1248  				return io.ErrUnexpectedEOF
  1249  			}
  1250  			b := dAtA[iNdEx]
  1251  			iNdEx++
  1252  			wire |= (uint64(b) & 0x7F) << shift
  1253  			if b < 0x80 {
  1254  				break
  1255  			}
  1256  		}
  1257  		fieldNum := int32(wire >> 3)
  1258  		wireType := int(wire & 0x7)
  1259  		if wireType == 4 {
  1260  			return fmt.Errorf("proto: NamespaceSchemaAddResponse: wiretype end group for non-group")
  1261  		}
  1262  		if fieldNum <= 0 {
  1263  			return fmt.Errorf("proto: NamespaceSchemaAddResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1264  		}
  1265  		switch fieldNum {
  1266  		case 1:
  1267  			if wireType != 2 {
  1268  				return fmt.Errorf("proto: wrong wireType = %d for field DeployID", wireType)
  1269  			}
  1270  			var stringLen uint64
  1271  			for shift := uint(0); ; shift += 7 {
  1272  				if shift >= 64 {
  1273  					return ErrIntOverflowNamespace
  1274  				}
  1275  				if iNdEx >= l {
  1276  					return io.ErrUnexpectedEOF
  1277  				}
  1278  				b := dAtA[iNdEx]
  1279  				iNdEx++
  1280  				stringLen |= (uint64(b) & 0x7F) << shift
  1281  				if b < 0x80 {
  1282  					break
  1283  				}
  1284  			}
  1285  			intStringLen := int(stringLen)
  1286  			if intStringLen < 0 {
  1287  				return ErrInvalidLengthNamespace
  1288  			}
  1289  			postIndex := iNdEx + intStringLen
  1290  			if postIndex > l {
  1291  				return io.ErrUnexpectedEOF
  1292  			}
  1293  			m.DeployID = string(dAtA[iNdEx:postIndex])
  1294  			iNdEx = postIndex
  1295  		default:
  1296  			iNdEx = preIndex
  1297  			skippy, err := skipNamespace(dAtA[iNdEx:])
  1298  			if err != nil {
  1299  				return err
  1300  			}
  1301  			if skippy < 0 {
  1302  				return ErrInvalidLengthNamespace
  1303  			}
  1304  			if (iNdEx + skippy) > l {
  1305  				return io.ErrUnexpectedEOF
  1306  			}
  1307  			iNdEx += skippy
  1308  		}
  1309  	}
  1310  
  1311  	if iNdEx > l {
  1312  		return io.ErrUnexpectedEOF
  1313  	}
  1314  	return nil
  1315  }
  1316  func (m *NamespaceSchemaResetRequest) Unmarshal(dAtA []byte) error {
  1317  	l := len(dAtA)
  1318  	iNdEx := 0
  1319  	for iNdEx < l {
  1320  		preIndex := iNdEx
  1321  		var wire uint64
  1322  		for shift := uint(0); ; shift += 7 {
  1323  			if shift >= 64 {
  1324  				return ErrIntOverflowNamespace
  1325  			}
  1326  			if iNdEx >= l {
  1327  				return io.ErrUnexpectedEOF
  1328  			}
  1329  			b := dAtA[iNdEx]
  1330  			iNdEx++
  1331  			wire |= (uint64(b) & 0x7F) << shift
  1332  			if b < 0x80 {
  1333  				break
  1334  			}
  1335  		}
  1336  		fieldNum := int32(wire >> 3)
  1337  		wireType := int(wire & 0x7)
  1338  		if wireType == 4 {
  1339  			return fmt.Errorf("proto: NamespaceSchemaResetRequest: wiretype end group for non-group")
  1340  		}
  1341  		if fieldNum <= 0 {
  1342  			return fmt.Errorf("proto: NamespaceSchemaResetRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1343  		}
  1344  		switch fieldNum {
  1345  		case 1:
  1346  			if wireType != 2 {
  1347  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  1348  			}
  1349  			var stringLen uint64
  1350  			for shift := uint(0); ; shift += 7 {
  1351  				if shift >= 64 {
  1352  					return ErrIntOverflowNamespace
  1353  				}
  1354  				if iNdEx >= l {
  1355  					return io.ErrUnexpectedEOF
  1356  				}
  1357  				b := dAtA[iNdEx]
  1358  				iNdEx++
  1359  				stringLen |= (uint64(b) & 0x7F) << shift
  1360  				if b < 0x80 {
  1361  					break
  1362  				}
  1363  			}
  1364  			intStringLen := int(stringLen)
  1365  			if intStringLen < 0 {
  1366  				return ErrInvalidLengthNamespace
  1367  			}
  1368  			postIndex := iNdEx + intStringLen
  1369  			if postIndex > l {
  1370  				return io.ErrUnexpectedEOF
  1371  			}
  1372  			m.Name = string(dAtA[iNdEx:postIndex])
  1373  			iNdEx = postIndex
  1374  		default:
  1375  			iNdEx = preIndex
  1376  			skippy, err := skipNamespace(dAtA[iNdEx:])
  1377  			if err != nil {
  1378  				return err
  1379  			}
  1380  			if skippy < 0 {
  1381  				return ErrInvalidLengthNamespace
  1382  			}
  1383  			if (iNdEx + skippy) > l {
  1384  				return io.ErrUnexpectedEOF
  1385  			}
  1386  			iNdEx += skippy
  1387  		}
  1388  	}
  1389  
  1390  	if iNdEx > l {
  1391  		return io.ErrUnexpectedEOF
  1392  	}
  1393  	return nil
  1394  }
  1395  func (m *NamespaceSchemaResetResponse) Unmarshal(dAtA []byte) error {
  1396  	l := len(dAtA)
  1397  	iNdEx := 0
  1398  	for iNdEx < l {
  1399  		preIndex := iNdEx
  1400  		var wire uint64
  1401  		for shift := uint(0); ; shift += 7 {
  1402  			if shift >= 64 {
  1403  				return ErrIntOverflowNamespace
  1404  			}
  1405  			if iNdEx >= l {
  1406  				return io.ErrUnexpectedEOF
  1407  			}
  1408  			b := dAtA[iNdEx]
  1409  			iNdEx++
  1410  			wire |= (uint64(b) & 0x7F) << shift
  1411  			if b < 0x80 {
  1412  				break
  1413  			}
  1414  		}
  1415  		fieldNum := int32(wire >> 3)
  1416  		wireType := int(wire & 0x7)
  1417  		if wireType == 4 {
  1418  			return fmt.Errorf("proto: NamespaceSchemaResetResponse: wiretype end group for non-group")
  1419  		}
  1420  		if fieldNum <= 0 {
  1421  			return fmt.Errorf("proto: NamespaceSchemaResetResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1422  		}
  1423  		switch fieldNum {
  1424  		default:
  1425  			iNdEx = preIndex
  1426  			skippy, err := skipNamespace(dAtA[iNdEx:])
  1427  			if err != nil {
  1428  				return err
  1429  			}
  1430  			if skippy < 0 {
  1431  				return ErrInvalidLengthNamespace
  1432  			}
  1433  			if (iNdEx + skippy) > l {
  1434  				return io.ErrUnexpectedEOF
  1435  			}
  1436  			iNdEx += skippy
  1437  		}
  1438  	}
  1439  
  1440  	if iNdEx > l {
  1441  		return io.ErrUnexpectedEOF
  1442  	}
  1443  	return nil
  1444  }
  1445  func (m *NamespaceReadyRequest) Unmarshal(dAtA []byte) error {
  1446  	l := len(dAtA)
  1447  	iNdEx := 0
  1448  	for iNdEx < l {
  1449  		preIndex := iNdEx
  1450  		var wire uint64
  1451  		for shift := uint(0); ; shift += 7 {
  1452  			if shift >= 64 {
  1453  				return ErrIntOverflowNamespace
  1454  			}
  1455  			if iNdEx >= l {
  1456  				return io.ErrUnexpectedEOF
  1457  			}
  1458  			b := dAtA[iNdEx]
  1459  			iNdEx++
  1460  			wire |= (uint64(b) & 0x7F) << shift
  1461  			if b < 0x80 {
  1462  				break
  1463  			}
  1464  		}
  1465  		fieldNum := int32(wire >> 3)
  1466  		wireType := int(wire & 0x7)
  1467  		if wireType == 4 {
  1468  			return fmt.Errorf("proto: NamespaceReadyRequest: wiretype end group for non-group")
  1469  		}
  1470  		if fieldNum <= 0 {
  1471  			return fmt.Errorf("proto: NamespaceReadyRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1472  		}
  1473  		switch fieldNum {
  1474  		case 1:
  1475  			if wireType != 2 {
  1476  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  1477  			}
  1478  			var stringLen uint64
  1479  			for shift := uint(0); ; shift += 7 {
  1480  				if shift >= 64 {
  1481  					return ErrIntOverflowNamespace
  1482  				}
  1483  				if iNdEx >= l {
  1484  					return io.ErrUnexpectedEOF
  1485  				}
  1486  				b := dAtA[iNdEx]
  1487  				iNdEx++
  1488  				stringLen |= (uint64(b) & 0x7F) << shift
  1489  				if b < 0x80 {
  1490  					break
  1491  				}
  1492  			}
  1493  			intStringLen := int(stringLen)
  1494  			if intStringLen < 0 {
  1495  				return ErrInvalidLengthNamespace
  1496  			}
  1497  			postIndex := iNdEx + intStringLen
  1498  			if postIndex > l {
  1499  				return io.ErrUnexpectedEOF
  1500  			}
  1501  			m.Name = string(dAtA[iNdEx:postIndex])
  1502  			iNdEx = postIndex
  1503  		case 2:
  1504  			if wireType != 0 {
  1505  				return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType)
  1506  			}
  1507  			var v int
  1508  			for shift := uint(0); ; shift += 7 {
  1509  				if shift >= 64 {
  1510  					return ErrIntOverflowNamespace
  1511  				}
  1512  				if iNdEx >= l {
  1513  					return io.ErrUnexpectedEOF
  1514  				}
  1515  				b := dAtA[iNdEx]
  1516  				iNdEx++
  1517  				v |= (int(b) & 0x7F) << shift
  1518  				if b < 0x80 {
  1519  					break
  1520  				}
  1521  			}
  1522  			m.Force = bool(v != 0)
  1523  		default:
  1524  			iNdEx = preIndex
  1525  			skippy, err := skipNamespace(dAtA[iNdEx:])
  1526  			if err != nil {
  1527  				return err
  1528  			}
  1529  			if skippy < 0 {
  1530  				return ErrInvalidLengthNamespace
  1531  			}
  1532  			if (iNdEx + skippy) > l {
  1533  				return io.ErrUnexpectedEOF
  1534  			}
  1535  			iNdEx += skippy
  1536  		}
  1537  	}
  1538  
  1539  	if iNdEx > l {
  1540  		return io.ErrUnexpectedEOF
  1541  	}
  1542  	return nil
  1543  }
  1544  func (m *NamespaceReadyResponse) Unmarshal(dAtA []byte) error {
  1545  	l := len(dAtA)
  1546  	iNdEx := 0
  1547  	for iNdEx < l {
  1548  		preIndex := iNdEx
  1549  		var wire uint64
  1550  		for shift := uint(0); ; shift += 7 {
  1551  			if shift >= 64 {
  1552  				return ErrIntOverflowNamespace
  1553  			}
  1554  			if iNdEx >= l {
  1555  				return io.ErrUnexpectedEOF
  1556  			}
  1557  			b := dAtA[iNdEx]
  1558  			iNdEx++
  1559  			wire |= (uint64(b) & 0x7F) << shift
  1560  			if b < 0x80 {
  1561  				break
  1562  			}
  1563  		}
  1564  		fieldNum := int32(wire >> 3)
  1565  		wireType := int(wire & 0x7)
  1566  		if wireType == 4 {
  1567  			return fmt.Errorf("proto: NamespaceReadyResponse: wiretype end group for non-group")
  1568  		}
  1569  		if fieldNum <= 0 {
  1570  			return fmt.Errorf("proto: NamespaceReadyResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1571  		}
  1572  		switch fieldNum {
  1573  		case 1:
  1574  			if wireType != 0 {
  1575  				return fmt.Errorf("proto: wrong wireType = %d for field Ready", wireType)
  1576  			}
  1577  			var v int
  1578  			for shift := uint(0); ; shift += 7 {
  1579  				if shift >= 64 {
  1580  					return ErrIntOverflowNamespace
  1581  				}
  1582  				if iNdEx >= l {
  1583  					return io.ErrUnexpectedEOF
  1584  				}
  1585  				b := dAtA[iNdEx]
  1586  				iNdEx++
  1587  				v |= (int(b) & 0x7F) << shift
  1588  				if b < 0x80 {
  1589  					break
  1590  				}
  1591  			}
  1592  			m.Ready = bool(v != 0)
  1593  		default:
  1594  			iNdEx = preIndex
  1595  			skippy, err := skipNamespace(dAtA[iNdEx:])
  1596  			if err != nil {
  1597  				return err
  1598  			}
  1599  			if skippy < 0 {
  1600  				return ErrInvalidLengthNamespace
  1601  			}
  1602  			if (iNdEx + skippy) > l {
  1603  				return io.ErrUnexpectedEOF
  1604  			}
  1605  			iNdEx += skippy
  1606  		}
  1607  	}
  1608  
  1609  	if iNdEx > l {
  1610  		return io.ErrUnexpectedEOF
  1611  	}
  1612  	return nil
  1613  }
  1614  func skipNamespace(dAtA []byte) (n int, err error) {
  1615  	l := len(dAtA)
  1616  	iNdEx := 0
  1617  	for iNdEx < l {
  1618  		var wire uint64
  1619  		for shift := uint(0); ; shift += 7 {
  1620  			if shift >= 64 {
  1621  				return 0, ErrIntOverflowNamespace
  1622  			}
  1623  			if iNdEx >= l {
  1624  				return 0, io.ErrUnexpectedEOF
  1625  			}
  1626  			b := dAtA[iNdEx]
  1627  			iNdEx++
  1628  			wire |= (uint64(b) & 0x7F) << shift
  1629  			if b < 0x80 {
  1630  				break
  1631  			}
  1632  		}
  1633  		wireType := int(wire & 0x7)
  1634  		switch wireType {
  1635  		case 0:
  1636  			for shift := uint(0); ; shift += 7 {
  1637  				if shift >= 64 {
  1638  					return 0, ErrIntOverflowNamespace
  1639  				}
  1640  				if iNdEx >= l {
  1641  					return 0, io.ErrUnexpectedEOF
  1642  				}
  1643  				iNdEx++
  1644  				if dAtA[iNdEx-1] < 0x80 {
  1645  					break
  1646  				}
  1647  			}
  1648  			return iNdEx, nil
  1649  		case 1:
  1650  			iNdEx += 8
  1651  			return iNdEx, nil
  1652  		case 2:
  1653  			var length int
  1654  			for shift := uint(0); ; shift += 7 {
  1655  				if shift >= 64 {
  1656  					return 0, ErrIntOverflowNamespace
  1657  				}
  1658  				if iNdEx >= l {
  1659  					return 0, io.ErrUnexpectedEOF
  1660  				}
  1661  				b := dAtA[iNdEx]
  1662  				iNdEx++
  1663  				length |= (int(b) & 0x7F) << shift
  1664  				if b < 0x80 {
  1665  					break
  1666  				}
  1667  			}
  1668  			iNdEx += length
  1669  			if length < 0 {
  1670  				return 0, ErrInvalidLengthNamespace
  1671  			}
  1672  			return iNdEx, nil
  1673  		case 3:
  1674  			for {
  1675  				var innerWire uint64
  1676  				var start int = iNdEx
  1677  				for shift := uint(0); ; shift += 7 {
  1678  					if shift >= 64 {
  1679  						return 0, ErrIntOverflowNamespace
  1680  					}
  1681  					if iNdEx >= l {
  1682  						return 0, io.ErrUnexpectedEOF
  1683  					}
  1684  					b := dAtA[iNdEx]
  1685  					iNdEx++
  1686  					innerWire |= (uint64(b) & 0x7F) << shift
  1687  					if b < 0x80 {
  1688  						break
  1689  					}
  1690  				}
  1691  				innerWireType := int(innerWire & 0x7)
  1692  				if innerWireType == 4 {
  1693  					break
  1694  				}
  1695  				next, err := skipNamespace(dAtA[start:])
  1696  				if err != nil {
  1697  					return 0, err
  1698  				}
  1699  				iNdEx = start + next
  1700  			}
  1701  			return iNdEx, nil
  1702  		case 4:
  1703  			return iNdEx, nil
  1704  		case 5:
  1705  			iNdEx += 4
  1706  			return iNdEx, nil
  1707  		default:
  1708  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1709  		}
  1710  	}
  1711  	panic("unreachable")
  1712  }
  1713  
  1714  var (
  1715  	ErrInvalidLengthNamespace = fmt.Errorf("proto: negative length found during unmarshaling")
  1716  	ErrIntOverflowNamespace   = fmt.Errorf("proto: integer overflow")
  1717  )
  1718  
  1719  func init() {
  1720  	proto.RegisterFile("github.com/m3db/m3/src/query/generated/proto/admin/namespace.proto", fileDescriptorNamespace)
  1721  }
  1722  
  1723  var fileDescriptorNamespace = []byte{
  1724  	// 433 bytes of a gzipped FileDescriptorProto
  1725  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x92, 0xdf, 0x6e, 0xd3, 0x30,
  1726  	0x14, 0xc6, 0xc9, 0xba, 0xb2, 0xf4, 0x4c, 0x48, 0x93, 0x57, 0x50, 0xe9, 0xa6, 0x68, 0xf2, 0xd5,
  1727  	0xae, 0x6c, 0xb1, 0x0a, 0x69, 0x82, 0xab, 0x4d, 0xa0, 0x0a, 0x24, 0xfe, 0xc8, 0x88, 0x7b, 0xdc,
  1728  	0xf8, 0xd0, 0x45, 0x2c, 0x71, 0x66, 0x3b, 0x48, 0x79, 0x0b, 0x1e, 0x8b, 0x4b, 0x1e, 0x01, 0x95,
  1729  	0x17, 0xe0, 0x11, 0x50, 0x9c, 0xc4, 0x1b, 0xa3, 0x85, 0x2b, 0xee, 0xf2, 0x9d, 0xcf, 0xdf, 0xef,
  1730  	0xd8, 0x27, 0x07, 0xce, 0x97, 0x99, 0xbb, 0xa8, 0x16, 0x2c, 0xd5, 0x39, 0xcf, 0x67, 0x6a, 0xc1,
  1731  	0xf3, 0x19, 0xb7, 0x26, 0xe5, 0x57, 0x15, 0x9a, 0x9a, 0x2f, 0xb1, 0x40, 0x23, 0x1d, 0x2a, 0x5e,
  1732  	0x1a, 0xed, 0x34, 0x97, 0x2a, 0xcf, 0x0a, 0x5e, 0xc8, 0x1c, 0x6d, 0x29, 0x53, 0x64, 0xbe, 0x4a,
  1733  	0x86, 0xbe, 0x3c, 0x9d, 0x6f, 0x40, 0xa9, 0x45, 0xa1, 0x15, 0xfe, 0xc1, 0x0a, 0x94, 0xdb, 0x3c,
  1734  	0x3a, 0x87, 0xf1, 0xeb, 0xbe, 0x34, 0x47, 0x27, 0xd0, 0x96, 0xba, 0xb0, 0x48, 0x38, 0xc4, 0x06,
  1735  	0x97, 0x99, 0x75, 0xa6, 0x9e, 0x44, 0x47, 0xd1, 0xf1, 0xee, 0xc9, 0x3e, 0xbb, 0xce, 0x8a, 0xce,
  1736  	0x12, 0xe1, 0x10, 0xfd, 0x00, 0xfb, 0x01, 0x74, 0xa6, 0x94, 0xc0, 0xab, 0x0a, 0xad, 0x23, 0x04,
  1737  	0xb6, 0x9b, 0x98, 0x67, 0x8c, 0x84, 0xff, 0x26, 0x8f, 0x61, 0x47, 0x97, 0x2e, 0xd3, 0x85, 0x9d,
  1738  	0x6c, 0x79, 0xf4, 0xc1, 0x0d, 0x74, 0x80, 0xbc, 0x69, 0x8f, 0x88, 0xfe, 0x2c, 0x4d, 0xe1, 0x41,
  1739  	0x30, 0xdf, 0x97, 0x4a, 0x3a, 0xfc, 0x0f, 0x4d, 0x7e, 0x46, 0xf0, 0x30, 0xb8, 0xef, 0xd2, 0x0b,
  1740  	0xcc, 0xe5, 0x3f, 0x5e, 0x33, 0x81, 0x9d, 0xdc, 0x2e, 0x9b, 0x8c, 0x6f, 0x34, 0x12, 0xbd, 0x24,
  1741  	0x87, 0x30, 0xf2, 0x43, 0xf6, 0xde, 0xc0, 0x7b, 0xd7, 0x05, 0xf2, 0x12, 0x62, 0x2f, 0x5e, 0xc9,
  1742  	0x72, 0xb2, 0x7d, 0x34, 0x38, 0xde, 0x3d, 0x61, 0xcc, 0xff, 0x5c, 0xb6, 0xb1, 0x3f, 0x7b, 0xdb,
  1743  	0x05, 0x9e, 0x17, 0x7e, 0xf8, 0x7d, 0x7e, 0xfa, 0x14, 0xee, 0xfd, 0x66, 0x91, 0x3d, 0x18, 0x7c,
  1744  	0xc2, 0xba, 0xbb, 0x67, 0xf3, 0x49, 0xc6, 0x30, 0xfc, 0x2c, 0x2f, 0xab, 0xfe, 0x92, 0xad, 0x78,
  1745  	0xb2, 0x75, 0x1a, 0xd1, 0x53, 0x98, 0xae, 0xeb, 0xd8, 0x2d, 0xc2, 0x14, 0x62, 0x85, 0xe5, 0xa5,
  1746  	0xae, 0x5f, 0x3c, 0xeb, 0x70, 0x41, 0xd3, 0x47, 0x70, 0x70, 0x2b, 0x29, 0xd0, 0x36, 0x4b, 0xb4,
  1747  	0x71, 0x5a, 0x34, 0x81, 0xc3, 0xf5, 0x91, 0xb6, 0x1d, 0x3d, 0x83, 0xfb, 0xc1, 0x17, 0x28, 0x55,
  1748  	0xfd, 0xb7, 0xd1, 0x8f, 0x61, 0xf8, 0x51, 0x9b, 0xb4, 0x7d, 0x53, 0x2c, 0x5a, 0x41, 0xd9, 0x8d,
  1749  	0x3d, 0xe9, 0x10, 0xdd, 0x5b, 0xc6, 0x30, 0x34, 0x4d, 0xc1, 0x43, 0x62, 0xd1, 0x8a, 0xf3, 0xbd,
  1750  	0xaf, 0xab, 0x24, 0xfa, 0xb6, 0x4a, 0xa2, 0xef, 0xab, 0x24, 0xfa, 0xf2, 0x23, 0xb9, 0xb3, 0xb8,
  1751  	0xeb, 0x07, 0x3b, 0xfb, 0x15, 0x00, 0x00, 0xff, 0xff, 0xcd, 0xb9, 0x78, 0x5f, 0xb1, 0x03, 0x00,
  1752  	0x00,
  1753  }