istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pkg/zdsapi/zds.pb.go (about)

     1  // Copyright Istio Authors
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.33.0
    18  // 	protoc        (unknown)
    19  // source: zdsapi/zds.proto
    20  
    21  // GRPC package - part of the URL. Service is added.
    22  // URL: /PACKAGE.SERVICE/METHOD
    23  
    24  package zdsapi
    25  
    26  import (
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    29  	reflect "reflect"
    30  	sync "sync"
    31  )
    32  
    33  const (
    34  	// Verify that this generated code is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    36  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    37  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    38  )
    39  
    40  type Version int32
    41  
    42  const (
    43  	Version_NOT_USED Version = 0
    44  	Version_V1       Version = 1
    45  )
    46  
    47  // Enum value maps for Version.
    48  var (
    49  	Version_name = map[int32]string{
    50  		0: "NOT_USED",
    51  		1: "V1",
    52  	}
    53  	Version_value = map[string]int32{
    54  		"NOT_USED": 0,
    55  		"V1":       1,
    56  	}
    57  )
    58  
    59  func (x Version) Enum() *Version {
    60  	p := new(Version)
    61  	*p = x
    62  	return p
    63  }
    64  
    65  func (x Version) String() string {
    66  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    67  }
    68  
    69  func (Version) Descriptor() protoreflect.EnumDescriptor {
    70  	return file_zdsapi_zds_proto_enumTypes[0].Descriptor()
    71  }
    72  
    73  func (Version) Type() protoreflect.EnumType {
    74  	return &file_zdsapi_zds_proto_enumTypes[0]
    75  }
    76  
    77  func (x Version) Number() protoreflect.EnumNumber {
    78  	return protoreflect.EnumNumber(x)
    79  }
    80  
    81  // Deprecated: Use Version.Descriptor instead.
    82  func (Version) EnumDescriptor() ([]byte, []int) {
    83  	return file_zdsapi_zds_proto_rawDescGZIP(), []int{0}
    84  }
    85  
    86  type ZdsHello struct {
    87  	state         protoimpl.MessageState
    88  	sizeCache     protoimpl.SizeCache
    89  	unknownFields protoimpl.UnknownFields
    90  
    91  	Version Version `protobuf:"varint,1,opt,name=version,proto3,enum=istio.workload.zds.Version" json:"version,omitempty"`
    92  }
    93  
    94  func (x *ZdsHello) Reset() {
    95  	*x = ZdsHello{}
    96  	if protoimpl.UnsafeEnabled {
    97  		mi := &file_zdsapi_zds_proto_msgTypes[0]
    98  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    99  		ms.StoreMessageInfo(mi)
   100  	}
   101  }
   102  
   103  func (x *ZdsHello) String() string {
   104  	return protoimpl.X.MessageStringOf(x)
   105  }
   106  
   107  func (*ZdsHello) ProtoMessage() {}
   108  
   109  func (x *ZdsHello) ProtoReflect() protoreflect.Message {
   110  	mi := &file_zdsapi_zds_proto_msgTypes[0]
   111  	if protoimpl.UnsafeEnabled && x != nil {
   112  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   113  		if ms.LoadMessageInfo() == nil {
   114  			ms.StoreMessageInfo(mi)
   115  		}
   116  		return ms
   117  	}
   118  	return mi.MessageOf(x)
   119  }
   120  
   121  // Deprecated: Use ZdsHello.ProtoReflect.Descriptor instead.
   122  func (*ZdsHello) Descriptor() ([]byte, []int) {
   123  	return file_zdsapi_zds_proto_rawDescGZIP(), []int{0}
   124  }
   125  
   126  func (x *ZdsHello) GetVersion() Version {
   127  	if x != nil {
   128  		return x.Version
   129  	}
   130  	return Version_NOT_USED
   131  }
   132  
   133  type WorkloadInfo struct {
   134  	state         protoimpl.MessageState
   135  	sizeCache     protoimpl.SizeCache
   136  	unknownFields protoimpl.UnknownFields
   137  
   138  	Name           string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   139  	Namespace      string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
   140  	ServiceAccount string `protobuf:"bytes,3,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
   141  	TrustDomain    string `protobuf:"bytes,4,opt,name=trust_domain,json=trustDomain,proto3" json:"trust_domain,omitempty"`
   142  }
   143  
   144  func (x *WorkloadInfo) Reset() {
   145  	*x = WorkloadInfo{}
   146  	if protoimpl.UnsafeEnabled {
   147  		mi := &file_zdsapi_zds_proto_msgTypes[1]
   148  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   149  		ms.StoreMessageInfo(mi)
   150  	}
   151  }
   152  
   153  func (x *WorkloadInfo) String() string {
   154  	return protoimpl.X.MessageStringOf(x)
   155  }
   156  
   157  func (*WorkloadInfo) ProtoMessage() {}
   158  
   159  func (x *WorkloadInfo) ProtoReflect() protoreflect.Message {
   160  	mi := &file_zdsapi_zds_proto_msgTypes[1]
   161  	if protoimpl.UnsafeEnabled && x != nil {
   162  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   163  		if ms.LoadMessageInfo() == nil {
   164  			ms.StoreMessageInfo(mi)
   165  		}
   166  		return ms
   167  	}
   168  	return mi.MessageOf(x)
   169  }
   170  
   171  // Deprecated: Use WorkloadInfo.ProtoReflect.Descriptor instead.
   172  func (*WorkloadInfo) Descriptor() ([]byte, []int) {
   173  	return file_zdsapi_zds_proto_rawDescGZIP(), []int{1}
   174  }
   175  
   176  func (x *WorkloadInfo) GetName() string {
   177  	if x != nil {
   178  		return x.Name
   179  	}
   180  	return ""
   181  }
   182  
   183  func (x *WorkloadInfo) GetNamespace() string {
   184  	if x != nil {
   185  		return x.Namespace
   186  	}
   187  	return ""
   188  }
   189  
   190  func (x *WorkloadInfo) GetServiceAccount() string {
   191  	if x != nil {
   192  		return x.ServiceAccount
   193  	}
   194  	return ""
   195  }
   196  
   197  func (x *WorkloadInfo) GetTrustDomain() string {
   198  	if x != nil {
   199  		return x.TrustDomain
   200  	}
   201  	return ""
   202  }
   203  
   204  // Add a workload to the ztunnel. this will be accompanied by ancillary data contianing
   205  // the workload's netns file descriptor.
   206  type AddWorkload struct {
   207  	state         protoimpl.MessageState
   208  	sizeCache     protoimpl.SizeCache
   209  	unknownFields protoimpl.UnknownFields
   210  
   211  	Uid          string        `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
   212  	WorkloadInfo *WorkloadInfo `protobuf:"bytes,2,opt,name=workload_info,json=workloadInfo,proto3" json:"workload_info,omitempty"`
   213  }
   214  
   215  func (x *AddWorkload) Reset() {
   216  	*x = AddWorkload{}
   217  	if protoimpl.UnsafeEnabled {
   218  		mi := &file_zdsapi_zds_proto_msgTypes[2]
   219  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   220  		ms.StoreMessageInfo(mi)
   221  	}
   222  }
   223  
   224  func (x *AddWorkload) String() string {
   225  	return protoimpl.X.MessageStringOf(x)
   226  }
   227  
   228  func (*AddWorkload) ProtoMessage() {}
   229  
   230  func (x *AddWorkload) ProtoReflect() protoreflect.Message {
   231  	mi := &file_zdsapi_zds_proto_msgTypes[2]
   232  	if protoimpl.UnsafeEnabled && x != nil {
   233  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   234  		if ms.LoadMessageInfo() == nil {
   235  			ms.StoreMessageInfo(mi)
   236  		}
   237  		return ms
   238  	}
   239  	return mi.MessageOf(x)
   240  }
   241  
   242  // Deprecated: Use AddWorkload.ProtoReflect.Descriptor instead.
   243  func (*AddWorkload) Descriptor() ([]byte, []int) {
   244  	return file_zdsapi_zds_proto_rawDescGZIP(), []int{2}
   245  }
   246  
   247  func (x *AddWorkload) GetUid() string {
   248  	if x != nil {
   249  		return x.Uid
   250  	}
   251  	return ""
   252  }
   253  
   254  func (x *AddWorkload) GetWorkloadInfo() *WorkloadInfo {
   255  	if x != nil {
   256  		return x.WorkloadInfo
   257  	}
   258  	return nil
   259  }
   260  
   261  // Keep workload that we can't find in the fd cache. This can only be sent before SnapshotSent is sent
   262  // to signal ztunnel to not delete the workload if it has it.
   263  type KeepWorkload struct {
   264  	state         protoimpl.MessageState
   265  	sizeCache     protoimpl.SizeCache
   266  	unknownFields protoimpl.UnknownFields
   267  
   268  	Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
   269  }
   270  
   271  func (x *KeepWorkload) Reset() {
   272  	*x = KeepWorkload{}
   273  	if protoimpl.UnsafeEnabled {
   274  		mi := &file_zdsapi_zds_proto_msgTypes[3]
   275  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   276  		ms.StoreMessageInfo(mi)
   277  	}
   278  }
   279  
   280  func (x *KeepWorkload) String() string {
   281  	return protoimpl.X.MessageStringOf(x)
   282  }
   283  
   284  func (*KeepWorkload) ProtoMessage() {}
   285  
   286  func (x *KeepWorkload) ProtoReflect() protoreflect.Message {
   287  	mi := &file_zdsapi_zds_proto_msgTypes[3]
   288  	if protoimpl.UnsafeEnabled && x != nil {
   289  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   290  		if ms.LoadMessageInfo() == nil {
   291  			ms.StoreMessageInfo(mi)
   292  		}
   293  		return ms
   294  	}
   295  	return mi.MessageOf(x)
   296  }
   297  
   298  // Deprecated: Use KeepWorkload.ProtoReflect.Descriptor instead.
   299  func (*KeepWorkload) Descriptor() ([]byte, []int) {
   300  	return file_zdsapi_zds_proto_rawDescGZIP(), []int{3}
   301  }
   302  
   303  func (x *KeepWorkload) GetUid() string {
   304  	if x != nil {
   305  		return x.Uid
   306  	}
   307  	return ""
   308  }
   309  
   310  // Delete a workload from the ztunnel. Ztunnel should shutdown the workload's proxy.
   311  type DelWorkload struct {
   312  	state         protoimpl.MessageState
   313  	sizeCache     protoimpl.SizeCache
   314  	unknownFields protoimpl.UnknownFields
   315  
   316  	Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
   317  }
   318  
   319  func (x *DelWorkload) Reset() {
   320  	*x = DelWorkload{}
   321  	if protoimpl.UnsafeEnabled {
   322  		mi := &file_zdsapi_zds_proto_msgTypes[4]
   323  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   324  		ms.StoreMessageInfo(mi)
   325  	}
   326  }
   327  
   328  func (x *DelWorkload) String() string {
   329  	return protoimpl.X.MessageStringOf(x)
   330  }
   331  
   332  func (*DelWorkload) ProtoMessage() {}
   333  
   334  func (x *DelWorkload) ProtoReflect() protoreflect.Message {
   335  	mi := &file_zdsapi_zds_proto_msgTypes[4]
   336  	if protoimpl.UnsafeEnabled && x != nil {
   337  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   338  		if ms.LoadMessageInfo() == nil {
   339  			ms.StoreMessageInfo(mi)
   340  		}
   341  		return ms
   342  	}
   343  	return mi.MessageOf(x)
   344  }
   345  
   346  // Deprecated: Use DelWorkload.ProtoReflect.Descriptor instead.
   347  func (*DelWorkload) Descriptor() ([]byte, []int) {
   348  	return file_zdsapi_zds_proto_rawDescGZIP(), []int{4}
   349  }
   350  
   351  func (x *DelWorkload) GetUid() string {
   352  	if x != nil {
   353  		return x.Uid
   354  	}
   355  	return ""
   356  }
   357  
   358  // Let ztunnel know that a full snapshot was sent. Ztunnel should reconcile its internal state
   359  // and remove internal entries that were not sent.
   360  type SnapshotSent struct {
   361  	state         protoimpl.MessageState
   362  	sizeCache     protoimpl.SizeCache
   363  	unknownFields protoimpl.UnknownFields
   364  }
   365  
   366  func (x *SnapshotSent) Reset() {
   367  	*x = SnapshotSent{}
   368  	if protoimpl.UnsafeEnabled {
   369  		mi := &file_zdsapi_zds_proto_msgTypes[5]
   370  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   371  		ms.StoreMessageInfo(mi)
   372  	}
   373  }
   374  
   375  func (x *SnapshotSent) String() string {
   376  	return protoimpl.X.MessageStringOf(x)
   377  }
   378  
   379  func (*SnapshotSent) ProtoMessage() {}
   380  
   381  func (x *SnapshotSent) ProtoReflect() protoreflect.Message {
   382  	mi := &file_zdsapi_zds_proto_msgTypes[5]
   383  	if protoimpl.UnsafeEnabled && x != nil {
   384  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   385  		if ms.LoadMessageInfo() == nil {
   386  			ms.StoreMessageInfo(mi)
   387  		}
   388  		return ms
   389  	}
   390  	return mi.MessageOf(x)
   391  }
   392  
   393  // Deprecated: Use SnapshotSent.ProtoReflect.Descriptor instead.
   394  func (*SnapshotSent) Descriptor() ([]byte, []int) {
   395  	return file_zdsapi_zds_proto_rawDescGZIP(), []int{5}
   396  }
   397  
   398  // Ztunnel ack message. If error is not empty, this is an error message.
   399  type Ack struct {
   400  	state         protoimpl.MessageState
   401  	sizeCache     protoimpl.SizeCache
   402  	unknownFields protoimpl.UnknownFields
   403  
   404  	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
   405  }
   406  
   407  func (x *Ack) Reset() {
   408  	*x = Ack{}
   409  	if protoimpl.UnsafeEnabled {
   410  		mi := &file_zdsapi_zds_proto_msgTypes[6]
   411  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   412  		ms.StoreMessageInfo(mi)
   413  	}
   414  }
   415  
   416  func (x *Ack) String() string {
   417  	return protoimpl.X.MessageStringOf(x)
   418  }
   419  
   420  func (*Ack) ProtoMessage() {}
   421  
   422  func (x *Ack) ProtoReflect() protoreflect.Message {
   423  	mi := &file_zdsapi_zds_proto_msgTypes[6]
   424  	if protoimpl.UnsafeEnabled && x != nil {
   425  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   426  		if ms.LoadMessageInfo() == nil {
   427  			ms.StoreMessageInfo(mi)
   428  		}
   429  		return ms
   430  	}
   431  	return mi.MessageOf(x)
   432  }
   433  
   434  // Deprecated: Use Ack.ProtoReflect.Descriptor instead.
   435  func (*Ack) Descriptor() ([]byte, []int) {
   436  	return file_zdsapi_zds_proto_rawDescGZIP(), []int{6}
   437  }
   438  
   439  func (x *Ack) GetError() string {
   440  	if x != nil {
   441  		return x.Error
   442  	}
   443  	return ""
   444  }
   445  
   446  // Sent from CNI to ztunnel
   447  type WorkloadRequest struct {
   448  	state         protoimpl.MessageState
   449  	sizeCache     protoimpl.SizeCache
   450  	unknownFields protoimpl.UnknownFields
   451  
   452  	// Types that are assignable to Payload:
   453  	//
   454  	//	*WorkloadRequest_Add
   455  	//	*WorkloadRequest_Keep
   456  	//	*WorkloadRequest_Del
   457  	//	*WorkloadRequest_SnapshotSent
   458  	Payload isWorkloadRequest_Payload `protobuf_oneof:"payload"`
   459  }
   460  
   461  func (x *WorkloadRequest) Reset() {
   462  	*x = WorkloadRequest{}
   463  	if protoimpl.UnsafeEnabled {
   464  		mi := &file_zdsapi_zds_proto_msgTypes[7]
   465  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   466  		ms.StoreMessageInfo(mi)
   467  	}
   468  }
   469  
   470  func (x *WorkloadRequest) String() string {
   471  	return protoimpl.X.MessageStringOf(x)
   472  }
   473  
   474  func (*WorkloadRequest) ProtoMessage() {}
   475  
   476  func (x *WorkloadRequest) ProtoReflect() protoreflect.Message {
   477  	mi := &file_zdsapi_zds_proto_msgTypes[7]
   478  	if protoimpl.UnsafeEnabled && x != nil {
   479  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   480  		if ms.LoadMessageInfo() == nil {
   481  			ms.StoreMessageInfo(mi)
   482  		}
   483  		return ms
   484  	}
   485  	return mi.MessageOf(x)
   486  }
   487  
   488  // Deprecated: Use WorkloadRequest.ProtoReflect.Descriptor instead.
   489  func (*WorkloadRequest) Descriptor() ([]byte, []int) {
   490  	return file_zdsapi_zds_proto_rawDescGZIP(), []int{7}
   491  }
   492  
   493  func (m *WorkloadRequest) GetPayload() isWorkloadRequest_Payload {
   494  	if m != nil {
   495  		return m.Payload
   496  	}
   497  	return nil
   498  }
   499  
   500  func (x *WorkloadRequest) GetAdd() *AddWorkload {
   501  	if x, ok := x.GetPayload().(*WorkloadRequest_Add); ok {
   502  		return x.Add
   503  	}
   504  	return nil
   505  }
   506  
   507  func (x *WorkloadRequest) GetKeep() *KeepWorkload {
   508  	if x, ok := x.GetPayload().(*WorkloadRequest_Keep); ok {
   509  		return x.Keep
   510  	}
   511  	return nil
   512  }
   513  
   514  func (x *WorkloadRequest) GetDel() *DelWorkload {
   515  	if x, ok := x.GetPayload().(*WorkloadRequest_Del); ok {
   516  		return x.Del
   517  	}
   518  	return nil
   519  }
   520  
   521  func (x *WorkloadRequest) GetSnapshotSent() *SnapshotSent {
   522  	if x, ok := x.GetPayload().(*WorkloadRequest_SnapshotSent); ok {
   523  		return x.SnapshotSent
   524  	}
   525  	return nil
   526  }
   527  
   528  type isWorkloadRequest_Payload interface {
   529  	isWorkloadRequest_Payload()
   530  }
   531  
   532  type WorkloadRequest_Add struct {
   533  	Add *AddWorkload `protobuf:"bytes,1,opt,name=add,proto3,oneof"`
   534  }
   535  
   536  type WorkloadRequest_Keep struct {
   537  	Keep *KeepWorkload `protobuf:"bytes,5,opt,name=keep,proto3,oneof"`
   538  }
   539  
   540  type WorkloadRequest_Del struct {
   541  	Del *DelWorkload `protobuf:"bytes,2,opt,name=del,proto3,oneof"`
   542  }
   543  
   544  type WorkloadRequest_SnapshotSent struct {
   545  	SnapshotSent *SnapshotSent `protobuf:"bytes,3,opt,name=snapshot_sent,json=snapshotSent,proto3,oneof"`
   546  }
   547  
   548  func (*WorkloadRequest_Add) isWorkloadRequest_Payload() {}
   549  
   550  func (*WorkloadRequest_Keep) isWorkloadRequest_Payload() {}
   551  
   552  func (*WorkloadRequest_Del) isWorkloadRequest_Payload() {}
   553  
   554  func (*WorkloadRequest_SnapshotSent) isWorkloadRequest_Payload() {}
   555  
   556  // Sent from ztunnel to CNI
   557  type WorkloadResponse struct {
   558  	state         protoimpl.MessageState
   559  	sizeCache     protoimpl.SizeCache
   560  	unknownFields protoimpl.UnknownFields
   561  
   562  	// Types that are assignable to Payload:
   563  	//
   564  	//	*WorkloadResponse_Ack
   565  	Payload isWorkloadResponse_Payload `protobuf_oneof:"payload"`
   566  }
   567  
   568  func (x *WorkloadResponse) Reset() {
   569  	*x = WorkloadResponse{}
   570  	if protoimpl.UnsafeEnabled {
   571  		mi := &file_zdsapi_zds_proto_msgTypes[8]
   572  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   573  		ms.StoreMessageInfo(mi)
   574  	}
   575  }
   576  
   577  func (x *WorkloadResponse) String() string {
   578  	return protoimpl.X.MessageStringOf(x)
   579  }
   580  
   581  func (*WorkloadResponse) ProtoMessage() {}
   582  
   583  func (x *WorkloadResponse) ProtoReflect() protoreflect.Message {
   584  	mi := &file_zdsapi_zds_proto_msgTypes[8]
   585  	if protoimpl.UnsafeEnabled && x != nil {
   586  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   587  		if ms.LoadMessageInfo() == nil {
   588  			ms.StoreMessageInfo(mi)
   589  		}
   590  		return ms
   591  	}
   592  	return mi.MessageOf(x)
   593  }
   594  
   595  // Deprecated: Use WorkloadResponse.ProtoReflect.Descriptor instead.
   596  func (*WorkloadResponse) Descriptor() ([]byte, []int) {
   597  	return file_zdsapi_zds_proto_rawDescGZIP(), []int{8}
   598  }
   599  
   600  func (m *WorkloadResponse) GetPayload() isWorkloadResponse_Payload {
   601  	if m != nil {
   602  		return m.Payload
   603  	}
   604  	return nil
   605  }
   606  
   607  func (x *WorkloadResponse) GetAck() *Ack {
   608  	if x, ok := x.GetPayload().(*WorkloadResponse_Ack); ok {
   609  		return x.Ack
   610  	}
   611  	return nil
   612  }
   613  
   614  type isWorkloadResponse_Payload interface {
   615  	isWorkloadResponse_Payload()
   616  }
   617  
   618  type WorkloadResponse_Ack struct {
   619  	Ack *Ack `protobuf:"bytes,1,opt,name=ack,proto3,oneof"`
   620  }
   621  
   622  func (*WorkloadResponse_Ack) isWorkloadResponse_Payload() {}
   623  
   624  var File_zdsapi_zds_proto protoreflect.FileDescriptor
   625  
   626  var file_zdsapi_zds_proto_rawDesc = []byte{
   627  	0x0a, 0x10, 0x7a, 0x64, 0x73, 0x61, 0x70, 0x69, 0x2f, 0x7a, 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f,
   628  	0x74, 0x6f, 0x12, 0x12, 0x69, 0x73, 0x74, 0x69, 0x6f, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f,
   629  	0x61, 0x64, 0x2e, 0x7a, 0x64, 0x73, 0x22, 0x41, 0x0a, 0x08, 0x5a, 0x64, 0x73, 0x48, 0x65, 0x6c,
   630  	0x6c, 0x6f, 0x12, 0x35, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20,
   631  	0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x69, 0x73, 0x74, 0x69, 0x6f, 0x2e, 0x77, 0x6f, 0x72, 0x6b,
   632  	0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x7a, 0x64, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
   633  	0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x8c, 0x01, 0x0a, 0x0c, 0x57, 0x6f,
   634  	0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
   635  	0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c,
   636  	0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
   637  	0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x0f,
   638  	0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,
   639  	0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63,
   640  	0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x64,
   641  	0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x72, 0x75,
   642  	0x73, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x66, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x57,
   643  	0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01,
   644  	0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x45, 0x0a, 0x0d, 0x77, 0x6f, 0x72,
   645  	0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
   646  	0x32, 0x20, 0x2e, 0x69, 0x73, 0x74, 0x69, 0x6f, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61,
   647  	0x64, 0x2e, 0x7a, 0x64, 0x73, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x6e,
   648  	0x66, 0x6f, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x6e, 0x66, 0x6f,
   649  	0x22, 0x20, 0x0a, 0x0c, 0x4b, 0x65, 0x65, 0x70, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64,
   650  	0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75,
   651  	0x69, 0x64, 0x22, 0x1f, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61,
   652  	0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
   653  	0x75, 0x69, 0x64, 0x22, 0x0e, 0x0a, 0x0c, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x53,
   654  	0x65, 0x6e, 0x74, 0x22, 0x1b, 0x0a, 0x03, 0x41, 0x63, 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72,
   655  	0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72,
   656  	0x22, 0x87, 0x02, 0x0a, 0x0f, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71,
   657  	0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x03, 0x61, 0x64, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
   658  	0x0b, 0x32, 0x1f, 0x2e, 0x69, 0x73, 0x74, 0x69, 0x6f, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f,
   659  	0x61, 0x64, 0x2e, 0x7a, 0x64, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f,
   660  	0x61, 0x64, 0x48, 0x00, 0x52, 0x03, 0x61, 0x64, 0x64, 0x12, 0x36, 0x0a, 0x04, 0x6b, 0x65, 0x65,
   661  	0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x69, 0x73, 0x74, 0x69, 0x6f, 0x2e,
   662  	0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x7a, 0x64, 0x73, 0x2e, 0x4b, 0x65, 0x65,
   663  	0x70, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x48, 0x00, 0x52, 0x04, 0x6b, 0x65, 0x65,
   664  	0x70, 0x12, 0x33, 0x0a, 0x03, 0x64, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f,
   665  	0x2e, 0x69, 0x73, 0x74, 0x69, 0x6f, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e,
   666  	0x7a, 0x64, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x48,
   667  	0x00, 0x52, 0x03, 0x64, 0x65, 0x6c, 0x12, 0x47, 0x0a, 0x0d, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68,
   668  	0x6f, 0x74, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e,
   669  	0x69, 0x73, 0x74, 0x69, 0x6f, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x7a,
   670  	0x64, 0x73, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x53, 0x65, 0x6e, 0x74, 0x48,
   671  	0x00, 0x52, 0x0c, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x53, 0x65, 0x6e, 0x74, 0x42,
   672  	0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x4a, 0x0a, 0x10, 0x57, 0x6f,
   673  	0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b,
   674  	0x0a, 0x03, 0x61, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x69, 0x73,
   675  	0x74, 0x69, 0x6f, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x7a, 0x64, 0x73,
   676  	0x2e, 0x41, 0x63, 0x6b, 0x48, 0x00, 0x52, 0x03, 0x61, 0x63, 0x6b, 0x42, 0x09, 0x0a, 0x07, 0x70,
   677  	0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2a, 0x1f, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
   678  	0x6e, 0x12, 0x0c, 0x0a, 0x08, 0x4e, 0x4f, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x44, 0x10, 0x00, 0x12,
   679  	0x06, 0x0a, 0x02, 0x56, 0x31, 0x10, 0x01, 0x42, 0x0c, 0x5a, 0x0a, 0x70, 0x6b, 0x67, 0x2f, 0x7a,
   680  	0x64, 0x73, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   681  }
   682  
   683  var (
   684  	file_zdsapi_zds_proto_rawDescOnce sync.Once
   685  	file_zdsapi_zds_proto_rawDescData = file_zdsapi_zds_proto_rawDesc
   686  )
   687  
   688  func file_zdsapi_zds_proto_rawDescGZIP() []byte {
   689  	file_zdsapi_zds_proto_rawDescOnce.Do(func() {
   690  		file_zdsapi_zds_proto_rawDescData = protoimpl.X.CompressGZIP(file_zdsapi_zds_proto_rawDescData)
   691  	})
   692  	return file_zdsapi_zds_proto_rawDescData
   693  }
   694  
   695  var file_zdsapi_zds_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   696  var file_zdsapi_zds_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
   697  var file_zdsapi_zds_proto_goTypes = []interface{}{
   698  	(Version)(0),             // 0: istio.workload.zds.Version
   699  	(*ZdsHello)(nil),         // 1: istio.workload.zds.ZdsHello
   700  	(*WorkloadInfo)(nil),     // 2: istio.workload.zds.WorkloadInfo
   701  	(*AddWorkload)(nil),      // 3: istio.workload.zds.AddWorkload
   702  	(*KeepWorkload)(nil),     // 4: istio.workload.zds.KeepWorkload
   703  	(*DelWorkload)(nil),      // 5: istio.workload.zds.DelWorkload
   704  	(*SnapshotSent)(nil),     // 6: istio.workload.zds.SnapshotSent
   705  	(*Ack)(nil),              // 7: istio.workload.zds.Ack
   706  	(*WorkloadRequest)(nil),  // 8: istio.workload.zds.WorkloadRequest
   707  	(*WorkloadResponse)(nil), // 9: istio.workload.zds.WorkloadResponse
   708  }
   709  var file_zdsapi_zds_proto_depIdxs = []int32{
   710  	0, // 0: istio.workload.zds.ZdsHello.version:type_name -> istio.workload.zds.Version
   711  	2, // 1: istio.workload.zds.AddWorkload.workload_info:type_name -> istio.workload.zds.WorkloadInfo
   712  	3, // 2: istio.workload.zds.WorkloadRequest.add:type_name -> istio.workload.zds.AddWorkload
   713  	4, // 3: istio.workload.zds.WorkloadRequest.keep:type_name -> istio.workload.zds.KeepWorkload
   714  	5, // 4: istio.workload.zds.WorkloadRequest.del:type_name -> istio.workload.zds.DelWorkload
   715  	6, // 5: istio.workload.zds.WorkloadRequest.snapshot_sent:type_name -> istio.workload.zds.SnapshotSent
   716  	7, // 6: istio.workload.zds.WorkloadResponse.ack:type_name -> istio.workload.zds.Ack
   717  	7, // [7:7] is the sub-list for method output_type
   718  	7, // [7:7] is the sub-list for method input_type
   719  	7, // [7:7] is the sub-list for extension type_name
   720  	7, // [7:7] is the sub-list for extension extendee
   721  	0, // [0:7] is the sub-list for field type_name
   722  }
   723  
   724  func init() { file_zdsapi_zds_proto_init() }
   725  func file_zdsapi_zds_proto_init() {
   726  	if File_zdsapi_zds_proto != nil {
   727  		return
   728  	}
   729  	if !protoimpl.UnsafeEnabled {
   730  		file_zdsapi_zds_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   731  			switch v := v.(*ZdsHello); i {
   732  			case 0:
   733  				return &v.state
   734  			case 1:
   735  				return &v.sizeCache
   736  			case 2:
   737  				return &v.unknownFields
   738  			default:
   739  				return nil
   740  			}
   741  		}
   742  		file_zdsapi_zds_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   743  			switch v := v.(*WorkloadInfo); i {
   744  			case 0:
   745  				return &v.state
   746  			case 1:
   747  				return &v.sizeCache
   748  			case 2:
   749  				return &v.unknownFields
   750  			default:
   751  				return nil
   752  			}
   753  		}
   754  		file_zdsapi_zds_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   755  			switch v := v.(*AddWorkload); i {
   756  			case 0:
   757  				return &v.state
   758  			case 1:
   759  				return &v.sizeCache
   760  			case 2:
   761  				return &v.unknownFields
   762  			default:
   763  				return nil
   764  			}
   765  		}
   766  		file_zdsapi_zds_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   767  			switch v := v.(*KeepWorkload); i {
   768  			case 0:
   769  				return &v.state
   770  			case 1:
   771  				return &v.sizeCache
   772  			case 2:
   773  				return &v.unknownFields
   774  			default:
   775  				return nil
   776  			}
   777  		}
   778  		file_zdsapi_zds_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
   779  			switch v := v.(*DelWorkload); i {
   780  			case 0:
   781  				return &v.state
   782  			case 1:
   783  				return &v.sizeCache
   784  			case 2:
   785  				return &v.unknownFields
   786  			default:
   787  				return nil
   788  			}
   789  		}
   790  		file_zdsapi_zds_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
   791  			switch v := v.(*SnapshotSent); i {
   792  			case 0:
   793  				return &v.state
   794  			case 1:
   795  				return &v.sizeCache
   796  			case 2:
   797  				return &v.unknownFields
   798  			default:
   799  				return nil
   800  			}
   801  		}
   802  		file_zdsapi_zds_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
   803  			switch v := v.(*Ack); i {
   804  			case 0:
   805  				return &v.state
   806  			case 1:
   807  				return &v.sizeCache
   808  			case 2:
   809  				return &v.unknownFields
   810  			default:
   811  				return nil
   812  			}
   813  		}
   814  		file_zdsapi_zds_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
   815  			switch v := v.(*WorkloadRequest); i {
   816  			case 0:
   817  				return &v.state
   818  			case 1:
   819  				return &v.sizeCache
   820  			case 2:
   821  				return &v.unknownFields
   822  			default:
   823  				return nil
   824  			}
   825  		}
   826  		file_zdsapi_zds_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
   827  			switch v := v.(*WorkloadResponse); i {
   828  			case 0:
   829  				return &v.state
   830  			case 1:
   831  				return &v.sizeCache
   832  			case 2:
   833  				return &v.unknownFields
   834  			default:
   835  				return nil
   836  			}
   837  		}
   838  	}
   839  	file_zdsapi_zds_proto_msgTypes[7].OneofWrappers = []interface{}{
   840  		(*WorkloadRequest_Add)(nil),
   841  		(*WorkloadRequest_Keep)(nil),
   842  		(*WorkloadRequest_Del)(nil),
   843  		(*WorkloadRequest_SnapshotSent)(nil),
   844  	}
   845  	file_zdsapi_zds_proto_msgTypes[8].OneofWrappers = []interface{}{
   846  		(*WorkloadResponse_Ack)(nil),
   847  	}
   848  	type x struct{}
   849  	out := protoimpl.TypeBuilder{
   850  		File: protoimpl.DescBuilder{
   851  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   852  			RawDescriptor: file_zdsapi_zds_proto_rawDesc,
   853  			NumEnums:      1,
   854  			NumMessages:   9,
   855  			NumExtensions: 0,
   856  			NumServices:   0,
   857  		},
   858  		GoTypes:           file_zdsapi_zds_proto_goTypes,
   859  		DependencyIndexes: file_zdsapi_zds_proto_depIdxs,
   860  		EnumInfos:         file_zdsapi_zds_proto_enumTypes,
   861  		MessageInfos:      file_zdsapi_zds_proto_msgTypes,
   862  	}.Build()
   863  	File_zdsapi_zds_proto = out.File
   864  	file_zdsapi_zds_proto_rawDesc = nil
   865  	file_zdsapi_zds_proto_goTypes = nil
   866  	file_zdsapi_zds_proto_depIdxs = nil
   867  }