github.com/zhuohuang-hust/src-cbuild@v0.0.0-20230105071821-c7aab3e7c840/mergeCode/libnetwork/agent.pb.go (about)

     1  // Code generated by protoc-gen-gogo.
     2  // source: agent.proto
     3  // DO NOT EDIT!
     4  
     5  /*
     6  	Package libnetwork is a generated protocol buffer package.
     7  
     8  	It is generated from these files:
     9  		agent.proto
    10  
    11  	It has these top-level messages:
    12  		EndpointRecord
    13  		PortConfig
    14  */
    15  package libnetwork
    16  
    17  import proto "github.com/gogo/protobuf/proto"
    18  import fmt "fmt"
    19  import math "math"
    20  import _ "github.com/gogo/protobuf/gogoproto"
    21  
    22  import strings "strings"
    23  import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto"
    24  import sort "sort"
    25  import strconv "strconv"
    26  import reflect "reflect"
    27  
    28  import io "io"
    29  
    30  // Reference imports to suppress errors if they are not otherwise used.
    31  var _ = proto.Marshal
    32  var _ = fmt.Errorf
    33  var _ = math.Inf
    34  
    35  // This is a compile-time assertion to ensure that this generated file
    36  // is compatible with the proto package it is being compiled against.
    37  const _ = proto.GoGoProtoPackageIsVersion1
    38  
    39  type PortConfig_Protocol int32
    40  
    41  const (
    42  	ProtocolTCP PortConfig_Protocol = 0
    43  	ProtocolUDP PortConfig_Protocol = 1
    44  )
    45  
    46  var PortConfig_Protocol_name = map[int32]string{
    47  	0: "TCP",
    48  	1: "UDP",
    49  }
    50  var PortConfig_Protocol_value = map[string]int32{
    51  	"TCP": 0,
    52  	"UDP": 1,
    53  }
    54  
    55  func (x PortConfig_Protocol) String() string {
    56  	return proto.EnumName(PortConfig_Protocol_name, int32(x))
    57  }
    58  func (PortConfig_Protocol) EnumDescriptor() ([]byte, []int) { return fileDescriptorAgent, []int{1, 0} }
    59  
    60  // EndpointRecord specifies all the endpoint specific information that
    61  // needs to gossiped to nodes participating in the network.
    62  type EndpointRecord struct {
    63  	// Name of the endpoint
    64  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    65  	// Service name of the service to which this endpoint belongs.
    66  	ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
    67  	// Service ID of the service to which this endpoint belongs.
    68  	ServiceID string `protobuf:"bytes,3,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
    69  	// Virtual IP of the service to which this endpoint belongs.
    70  	VirtualIP string `protobuf:"bytes,4,opt,name=virtual_ip,json=virtualIp,proto3" json:"virtual_ip,omitempty"`
    71  	// IP assigned to this endpoint.
    72  	EndpointIP string `protobuf:"bytes,5,opt,name=endpoint_ip,json=endpointIp,proto3" json:"endpoint_ip,omitempty"`
    73  	// IngressPorts exposed by the service to which this endpoint belongs.
    74  	IngressPorts []*PortConfig `protobuf:"bytes,6,rep,name=ingress_ports,json=ingressPorts" json:"ingress_ports,omitempty"`
    75  	// A list of aliases which are alternate names for the service
    76  	Aliases []string `protobuf:"bytes,7,rep,name=aliases" json:"aliases,omitempty"`
    77  	// List of aliases task specific aliases
    78  	TaskAliases []string `protobuf:"bytes,8,rep,name=task_aliases,json=taskAliases" json:"task_aliases,omitempty"`
    79  }
    80  
    81  func (m *EndpointRecord) Reset()                    { *m = EndpointRecord{} }
    82  func (*EndpointRecord) ProtoMessage()               {}
    83  func (*EndpointRecord) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{0} }
    84  
    85  func (m *EndpointRecord) GetIngressPorts() []*PortConfig {
    86  	if m != nil {
    87  		return m.IngressPorts
    88  	}
    89  	return nil
    90  }
    91  
    92  // PortConfig specifies an exposed port which can be
    93  // addressed using the given name. This can be later queried
    94  // using a service discovery api or a DNS SRV query. The node
    95  // port specifies a port that can be used to address this
    96  // service external to the cluster by sending a connection
    97  // request to this port to any node on the cluster.
    98  type PortConfig struct {
    99  	// Name for the port. If provided the port information can
   100  	// be queried using the name as in a DNS SRV query.
   101  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   102  	// Protocol for the port which is exposed.
   103  	Protocol PortConfig_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=libnetwork.PortConfig_Protocol" json:"protocol,omitempty"`
   104  	// The port which the application is exposing and is bound to.
   105  	TargetPort uint32 `protobuf:"varint,3,opt,name=target_port,json=targetPort,proto3" json:"target_port,omitempty"`
   106  	// PublishedPort specifies the port on which the service is
   107  	// exposed on all nodes on the cluster. If not specified an
   108  	// arbitrary port in the node port range is allocated by the
   109  	// system. If specified it should be within the node port
   110  	// range and it should be available.
   111  	PublishedPort uint32 `protobuf:"varint,4,opt,name=published_port,json=publishedPort,proto3" json:"published_port,omitempty"`
   112  }
   113  
   114  func (m *PortConfig) Reset()                    { *m = PortConfig{} }
   115  func (*PortConfig) ProtoMessage()               {}
   116  func (*PortConfig) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{1} }
   117  
   118  func init() {
   119  	proto.RegisterType((*EndpointRecord)(nil), "libnetwork.EndpointRecord")
   120  	proto.RegisterType((*PortConfig)(nil), "libnetwork.PortConfig")
   121  	proto.RegisterEnum("libnetwork.PortConfig_Protocol", PortConfig_Protocol_name, PortConfig_Protocol_value)
   122  }
   123  func (this *EndpointRecord) GoString() string {
   124  	if this == nil {
   125  		return "nil"
   126  	}
   127  	s := make([]string, 0, 12)
   128  	s = append(s, "&libnetwork.EndpointRecord{")
   129  	s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n")
   130  	s = append(s, "ServiceName: "+fmt.Sprintf("%#v", this.ServiceName)+",\n")
   131  	s = append(s, "ServiceID: "+fmt.Sprintf("%#v", this.ServiceID)+",\n")
   132  	s = append(s, "VirtualIP: "+fmt.Sprintf("%#v", this.VirtualIP)+",\n")
   133  	s = append(s, "EndpointIP: "+fmt.Sprintf("%#v", this.EndpointIP)+",\n")
   134  	if this.IngressPorts != nil {
   135  		s = append(s, "IngressPorts: "+fmt.Sprintf("%#v", this.IngressPorts)+",\n")
   136  	}
   137  	s = append(s, "Aliases: "+fmt.Sprintf("%#v", this.Aliases)+",\n")
   138  	s = append(s, "TaskAliases: "+fmt.Sprintf("%#v", this.TaskAliases)+",\n")
   139  	s = append(s, "}")
   140  	return strings.Join(s, "")
   141  }
   142  func (this *PortConfig) GoString() string {
   143  	if this == nil {
   144  		return "nil"
   145  	}
   146  	s := make([]string, 0, 8)
   147  	s = append(s, "&libnetwork.PortConfig{")
   148  	s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n")
   149  	s = append(s, "Protocol: "+fmt.Sprintf("%#v", this.Protocol)+",\n")
   150  	s = append(s, "TargetPort: "+fmt.Sprintf("%#v", this.TargetPort)+",\n")
   151  	s = append(s, "PublishedPort: "+fmt.Sprintf("%#v", this.PublishedPort)+",\n")
   152  	s = append(s, "}")
   153  	return strings.Join(s, "")
   154  }
   155  func valueToGoStringAgent(v interface{}, typ string) string {
   156  	rv := reflect.ValueOf(v)
   157  	if rv.IsNil() {
   158  		return "nil"
   159  	}
   160  	pv := reflect.Indirect(rv).Interface()
   161  	return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
   162  }
   163  func extensionToGoStringAgent(e map[int32]github_com_gogo_protobuf_proto.Extension) string {
   164  	if e == nil {
   165  		return "nil"
   166  	}
   167  	s := "map[int32]proto.Extension{"
   168  	keys := make([]int, 0, len(e))
   169  	for k := range e {
   170  		keys = append(keys, int(k))
   171  	}
   172  	sort.Ints(keys)
   173  	ss := []string{}
   174  	for _, k := range keys {
   175  		ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString())
   176  	}
   177  	s += strings.Join(ss, ",") + "}"
   178  	return s
   179  }
   180  func (m *EndpointRecord) Marshal() (data []byte, err error) {
   181  	size := m.Size()
   182  	data = make([]byte, size)
   183  	n, err := m.MarshalTo(data)
   184  	if err != nil {
   185  		return nil, err
   186  	}
   187  	return data[:n], nil
   188  }
   189  
   190  func (m *EndpointRecord) MarshalTo(data []byte) (int, error) {
   191  	var i int
   192  	_ = i
   193  	var l int
   194  	_ = l
   195  	if len(m.Name) > 0 {
   196  		data[i] = 0xa
   197  		i++
   198  		i = encodeVarintAgent(data, i, uint64(len(m.Name)))
   199  		i += copy(data[i:], m.Name)
   200  	}
   201  	if len(m.ServiceName) > 0 {
   202  		data[i] = 0x12
   203  		i++
   204  		i = encodeVarintAgent(data, i, uint64(len(m.ServiceName)))
   205  		i += copy(data[i:], m.ServiceName)
   206  	}
   207  	if len(m.ServiceID) > 0 {
   208  		data[i] = 0x1a
   209  		i++
   210  		i = encodeVarintAgent(data, i, uint64(len(m.ServiceID)))
   211  		i += copy(data[i:], m.ServiceID)
   212  	}
   213  	if len(m.VirtualIP) > 0 {
   214  		data[i] = 0x22
   215  		i++
   216  		i = encodeVarintAgent(data, i, uint64(len(m.VirtualIP)))
   217  		i += copy(data[i:], m.VirtualIP)
   218  	}
   219  	if len(m.EndpointIP) > 0 {
   220  		data[i] = 0x2a
   221  		i++
   222  		i = encodeVarintAgent(data, i, uint64(len(m.EndpointIP)))
   223  		i += copy(data[i:], m.EndpointIP)
   224  	}
   225  	if len(m.IngressPorts) > 0 {
   226  		for _, msg := range m.IngressPorts {
   227  			data[i] = 0x32
   228  			i++
   229  			i = encodeVarintAgent(data, i, uint64(msg.Size()))
   230  			n, err := msg.MarshalTo(data[i:])
   231  			if err != nil {
   232  				return 0, err
   233  			}
   234  			i += n
   235  		}
   236  	}
   237  	if len(m.Aliases) > 0 {
   238  		for _, s := range m.Aliases {
   239  			data[i] = 0x3a
   240  			i++
   241  			l = len(s)
   242  			for l >= 1<<7 {
   243  				data[i] = uint8(uint64(l)&0x7f | 0x80)
   244  				l >>= 7
   245  				i++
   246  			}
   247  			data[i] = uint8(l)
   248  			i++
   249  			i += copy(data[i:], s)
   250  		}
   251  	}
   252  	if len(m.TaskAliases) > 0 {
   253  		for _, s := range m.TaskAliases {
   254  			data[i] = 0x42
   255  			i++
   256  			l = len(s)
   257  			for l >= 1<<7 {
   258  				data[i] = uint8(uint64(l)&0x7f | 0x80)
   259  				l >>= 7
   260  				i++
   261  			}
   262  			data[i] = uint8(l)
   263  			i++
   264  			i += copy(data[i:], s)
   265  		}
   266  	}
   267  	return i, nil
   268  }
   269  
   270  func (m *PortConfig) Marshal() (data []byte, err error) {
   271  	size := m.Size()
   272  	data = make([]byte, size)
   273  	n, err := m.MarshalTo(data)
   274  	if err != nil {
   275  		return nil, err
   276  	}
   277  	return data[:n], nil
   278  }
   279  
   280  func (m *PortConfig) MarshalTo(data []byte) (int, error) {
   281  	var i int
   282  	_ = i
   283  	var l int
   284  	_ = l
   285  	if len(m.Name) > 0 {
   286  		data[i] = 0xa
   287  		i++
   288  		i = encodeVarintAgent(data, i, uint64(len(m.Name)))
   289  		i += copy(data[i:], m.Name)
   290  	}
   291  	if m.Protocol != 0 {
   292  		data[i] = 0x10
   293  		i++
   294  		i = encodeVarintAgent(data, i, uint64(m.Protocol))
   295  	}
   296  	if m.TargetPort != 0 {
   297  		data[i] = 0x18
   298  		i++
   299  		i = encodeVarintAgent(data, i, uint64(m.TargetPort))
   300  	}
   301  	if m.PublishedPort != 0 {
   302  		data[i] = 0x20
   303  		i++
   304  		i = encodeVarintAgent(data, i, uint64(m.PublishedPort))
   305  	}
   306  	return i, nil
   307  }
   308  
   309  func encodeFixed64Agent(data []byte, offset int, v uint64) int {
   310  	data[offset] = uint8(v)
   311  	data[offset+1] = uint8(v >> 8)
   312  	data[offset+2] = uint8(v >> 16)
   313  	data[offset+3] = uint8(v >> 24)
   314  	data[offset+4] = uint8(v >> 32)
   315  	data[offset+5] = uint8(v >> 40)
   316  	data[offset+6] = uint8(v >> 48)
   317  	data[offset+7] = uint8(v >> 56)
   318  	return offset + 8
   319  }
   320  func encodeFixed32Agent(data []byte, offset int, v uint32) int {
   321  	data[offset] = uint8(v)
   322  	data[offset+1] = uint8(v >> 8)
   323  	data[offset+2] = uint8(v >> 16)
   324  	data[offset+3] = uint8(v >> 24)
   325  	return offset + 4
   326  }
   327  func encodeVarintAgent(data []byte, offset int, v uint64) int {
   328  	for v >= 1<<7 {
   329  		data[offset] = uint8(v&0x7f | 0x80)
   330  		v >>= 7
   331  		offset++
   332  	}
   333  	data[offset] = uint8(v)
   334  	return offset + 1
   335  }
   336  func (m *EndpointRecord) Size() (n int) {
   337  	var l int
   338  	_ = l
   339  	l = len(m.Name)
   340  	if l > 0 {
   341  		n += 1 + l + sovAgent(uint64(l))
   342  	}
   343  	l = len(m.ServiceName)
   344  	if l > 0 {
   345  		n += 1 + l + sovAgent(uint64(l))
   346  	}
   347  	l = len(m.ServiceID)
   348  	if l > 0 {
   349  		n += 1 + l + sovAgent(uint64(l))
   350  	}
   351  	l = len(m.VirtualIP)
   352  	if l > 0 {
   353  		n += 1 + l + sovAgent(uint64(l))
   354  	}
   355  	l = len(m.EndpointIP)
   356  	if l > 0 {
   357  		n += 1 + l + sovAgent(uint64(l))
   358  	}
   359  	if len(m.IngressPorts) > 0 {
   360  		for _, e := range m.IngressPorts {
   361  			l = e.Size()
   362  			n += 1 + l + sovAgent(uint64(l))
   363  		}
   364  	}
   365  	if len(m.Aliases) > 0 {
   366  		for _, s := range m.Aliases {
   367  			l = len(s)
   368  			n += 1 + l + sovAgent(uint64(l))
   369  		}
   370  	}
   371  	if len(m.TaskAliases) > 0 {
   372  		for _, s := range m.TaskAliases {
   373  			l = len(s)
   374  			n += 1 + l + sovAgent(uint64(l))
   375  		}
   376  	}
   377  	return n
   378  }
   379  
   380  func (m *PortConfig) Size() (n int) {
   381  	var l int
   382  	_ = l
   383  	l = len(m.Name)
   384  	if l > 0 {
   385  		n += 1 + l + sovAgent(uint64(l))
   386  	}
   387  	if m.Protocol != 0 {
   388  		n += 1 + sovAgent(uint64(m.Protocol))
   389  	}
   390  	if m.TargetPort != 0 {
   391  		n += 1 + sovAgent(uint64(m.TargetPort))
   392  	}
   393  	if m.PublishedPort != 0 {
   394  		n += 1 + sovAgent(uint64(m.PublishedPort))
   395  	}
   396  	return n
   397  }
   398  
   399  func sovAgent(x uint64) (n int) {
   400  	for {
   401  		n++
   402  		x >>= 7
   403  		if x == 0 {
   404  			break
   405  		}
   406  	}
   407  	return n
   408  }
   409  func sozAgent(x uint64) (n int) {
   410  	return sovAgent(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   411  }
   412  func (this *EndpointRecord) String() string {
   413  	if this == nil {
   414  		return "nil"
   415  	}
   416  	s := strings.Join([]string{`&EndpointRecord{`,
   417  		`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
   418  		`ServiceName:` + fmt.Sprintf("%v", this.ServiceName) + `,`,
   419  		`ServiceID:` + fmt.Sprintf("%v", this.ServiceID) + `,`,
   420  		`VirtualIP:` + fmt.Sprintf("%v", this.VirtualIP) + `,`,
   421  		`EndpointIP:` + fmt.Sprintf("%v", this.EndpointIP) + `,`,
   422  		`IngressPorts:` + strings.Replace(fmt.Sprintf("%v", this.IngressPorts), "PortConfig", "PortConfig", 1) + `,`,
   423  		`Aliases:` + fmt.Sprintf("%v", this.Aliases) + `,`,
   424  		`TaskAliases:` + fmt.Sprintf("%v", this.TaskAliases) + `,`,
   425  		`}`,
   426  	}, "")
   427  	return s
   428  }
   429  func (this *PortConfig) String() string {
   430  	if this == nil {
   431  		return "nil"
   432  	}
   433  	s := strings.Join([]string{`&PortConfig{`,
   434  		`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
   435  		`Protocol:` + fmt.Sprintf("%v", this.Protocol) + `,`,
   436  		`TargetPort:` + fmt.Sprintf("%v", this.TargetPort) + `,`,
   437  		`PublishedPort:` + fmt.Sprintf("%v", this.PublishedPort) + `,`,
   438  		`}`,
   439  	}, "")
   440  	return s
   441  }
   442  func valueToStringAgent(v interface{}) string {
   443  	rv := reflect.ValueOf(v)
   444  	if rv.IsNil() {
   445  		return "nil"
   446  	}
   447  	pv := reflect.Indirect(rv).Interface()
   448  	return fmt.Sprintf("*%v", pv)
   449  }
   450  func (m *EndpointRecord) Unmarshal(data []byte) error {
   451  	l := len(data)
   452  	iNdEx := 0
   453  	for iNdEx < l {
   454  		preIndex := iNdEx
   455  		var wire uint64
   456  		for shift := uint(0); ; shift += 7 {
   457  			if shift >= 64 {
   458  				return ErrIntOverflowAgent
   459  			}
   460  			if iNdEx >= l {
   461  				return io.ErrUnexpectedEOF
   462  			}
   463  			b := data[iNdEx]
   464  			iNdEx++
   465  			wire |= (uint64(b) & 0x7F) << shift
   466  			if b < 0x80 {
   467  				break
   468  			}
   469  		}
   470  		fieldNum := int32(wire >> 3)
   471  		wireType := int(wire & 0x7)
   472  		if wireType == 4 {
   473  			return fmt.Errorf("proto: EndpointRecord: wiretype end group for non-group")
   474  		}
   475  		if fieldNum <= 0 {
   476  			return fmt.Errorf("proto: EndpointRecord: illegal tag %d (wire type %d)", fieldNum, wire)
   477  		}
   478  		switch fieldNum {
   479  		case 1:
   480  			if wireType != 2 {
   481  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
   482  			}
   483  			var stringLen uint64
   484  			for shift := uint(0); ; shift += 7 {
   485  				if shift >= 64 {
   486  					return ErrIntOverflowAgent
   487  				}
   488  				if iNdEx >= l {
   489  					return io.ErrUnexpectedEOF
   490  				}
   491  				b := data[iNdEx]
   492  				iNdEx++
   493  				stringLen |= (uint64(b) & 0x7F) << shift
   494  				if b < 0x80 {
   495  					break
   496  				}
   497  			}
   498  			intStringLen := int(stringLen)
   499  			if intStringLen < 0 {
   500  				return ErrInvalidLengthAgent
   501  			}
   502  			postIndex := iNdEx + intStringLen
   503  			if postIndex > l {
   504  				return io.ErrUnexpectedEOF
   505  			}
   506  			m.Name = string(data[iNdEx:postIndex])
   507  			iNdEx = postIndex
   508  		case 2:
   509  			if wireType != 2 {
   510  				return fmt.Errorf("proto: wrong wireType = %d for field ServiceName", wireType)
   511  			}
   512  			var stringLen uint64
   513  			for shift := uint(0); ; shift += 7 {
   514  				if shift >= 64 {
   515  					return ErrIntOverflowAgent
   516  				}
   517  				if iNdEx >= l {
   518  					return io.ErrUnexpectedEOF
   519  				}
   520  				b := data[iNdEx]
   521  				iNdEx++
   522  				stringLen |= (uint64(b) & 0x7F) << shift
   523  				if b < 0x80 {
   524  					break
   525  				}
   526  			}
   527  			intStringLen := int(stringLen)
   528  			if intStringLen < 0 {
   529  				return ErrInvalidLengthAgent
   530  			}
   531  			postIndex := iNdEx + intStringLen
   532  			if postIndex > l {
   533  				return io.ErrUnexpectedEOF
   534  			}
   535  			m.ServiceName = string(data[iNdEx:postIndex])
   536  			iNdEx = postIndex
   537  		case 3:
   538  			if wireType != 2 {
   539  				return fmt.Errorf("proto: wrong wireType = %d for field ServiceID", wireType)
   540  			}
   541  			var stringLen uint64
   542  			for shift := uint(0); ; shift += 7 {
   543  				if shift >= 64 {
   544  					return ErrIntOverflowAgent
   545  				}
   546  				if iNdEx >= l {
   547  					return io.ErrUnexpectedEOF
   548  				}
   549  				b := data[iNdEx]
   550  				iNdEx++
   551  				stringLen |= (uint64(b) & 0x7F) << shift
   552  				if b < 0x80 {
   553  					break
   554  				}
   555  			}
   556  			intStringLen := int(stringLen)
   557  			if intStringLen < 0 {
   558  				return ErrInvalidLengthAgent
   559  			}
   560  			postIndex := iNdEx + intStringLen
   561  			if postIndex > l {
   562  				return io.ErrUnexpectedEOF
   563  			}
   564  			m.ServiceID = string(data[iNdEx:postIndex])
   565  			iNdEx = postIndex
   566  		case 4:
   567  			if wireType != 2 {
   568  				return fmt.Errorf("proto: wrong wireType = %d for field VirtualIP", wireType)
   569  			}
   570  			var stringLen uint64
   571  			for shift := uint(0); ; shift += 7 {
   572  				if shift >= 64 {
   573  					return ErrIntOverflowAgent
   574  				}
   575  				if iNdEx >= l {
   576  					return io.ErrUnexpectedEOF
   577  				}
   578  				b := data[iNdEx]
   579  				iNdEx++
   580  				stringLen |= (uint64(b) & 0x7F) << shift
   581  				if b < 0x80 {
   582  					break
   583  				}
   584  			}
   585  			intStringLen := int(stringLen)
   586  			if intStringLen < 0 {
   587  				return ErrInvalidLengthAgent
   588  			}
   589  			postIndex := iNdEx + intStringLen
   590  			if postIndex > l {
   591  				return io.ErrUnexpectedEOF
   592  			}
   593  			m.VirtualIP = string(data[iNdEx:postIndex])
   594  			iNdEx = postIndex
   595  		case 5:
   596  			if wireType != 2 {
   597  				return fmt.Errorf("proto: wrong wireType = %d for field EndpointIP", wireType)
   598  			}
   599  			var stringLen uint64
   600  			for shift := uint(0); ; shift += 7 {
   601  				if shift >= 64 {
   602  					return ErrIntOverflowAgent
   603  				}
   604  				if iNdEx >= l {
   605  					return io.ErrUnexpectedEOF
   606  				}
   607  				b := data[iNdEx]
   608  				iNdEx++
   609  				stringLen |= (uint64(b) & 0x7F) << shift
   610  				if b < 0x80 {
   611  					break
   612  				}
   613  			}
   614  			intStringLen := int(stringLen)
   615  			if intStringLen < 0 {
   616  				return ErrInvalidLengthAgent
   617  			}
   618  			postIndex := iNdEx + intStringLen
   619  			if postIndex > l {
   620  				return io.ErrUnexpectedEOF
   621  			}
   622  			m.EndpointIP = string(data[iNdEx:postIndex])
   623  			iNdEx = postIndex
   624  		case 6:
   625  			if wireType != 2 {
   626  				return fmt.Errorf("proto: wrong wireType = %d for field IngressPorts", wireType)
   627  			}
   628  			var msglen int
   629  			for shift := uint(0); ; shift += 7 {
   630  				if shift >= 64 {
   631  					return ErrIntOverflowAgent
   632  				}
   633  				if iNdEx >= l {
   634  					return io.ErrUnexpectedEOF
   635  				}
   636  				b := data[iNdEx]
   637  				iNdEx++
   638  				msglen |= (int(b) & 0x7F) << shift
   639  				if b < 0x80 {
   640  					break
   641  				}
   642  			}
   643  			if msglen < 0 {
   644  				return ErrInvalidLengthAgent
   645  			}
   646  			postIndex := iNdEx + msglen
   647  			if postIndex > l {
   648  				return io.ErrUnexpectedEOF
   649  			}
   650  			m.IngressPorts = append(m.IngressPorts, &PortConfig{})
   651  			if err := m.IngressPorts[len(m.IngressPorts)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
   652  				return err
   653  			}
   654  			iNdEx = postIndex
   655  		case 7:
   656  			if wireType != 2 {
   657  				return fmt.Errorf("proto: wrong wireType = %d for field Aliases", wireType)
   658  			}
   659  			var stringLen uint64
   660  			for shift := uint(0); ; shift += 7 {
   661  				if shift >= 64 {
   662  					return ErrIntOverflowAgent
   663  				}
   664  				if iNdEx >= l {
   665  					return io.ErrUnexpectedEOF
   666  				}
   667  				b := data[iNdEx]
   668  				iNdEx++
   669  				stringLen |= (uint64(b) & 0x7F) << shift
   670  				if b < 0x80 {
   671  					break
   672  				}
   673  			}
   674  			intStringLen := int(stringLen)
   675  			if intStringLen < 0 {
   676  				return ErrInvalidLengthAgent
   677  			}
   678  			postIndex := iNdEx + intStringLen
   679  			if postIndex > l {
   680  				return io.ErrUnexpectedEOF
   681  			}
   682  			m.Aliases = append(m.Aliases, string(data[iNdEx:postIndex]))
   683  			iNdEx = postIndex
   684  		case 8:
   685  			if wireType != 2 {
   686  				return fmt.Errorf("proto: wrong wireType = %d for field TaskAliases", wireType)
   687  			}
   688  			var stringLen uint64
   689  			for shift := uint(0); ; shift += 7 {
   690  				if shift >= 64 {
   691  					return ErrIntOverflowAgent
   692  				}
   693  				if iNdEx >= l {
   694  					return io.ErrUnexpectedEOF
   695  				}
   696  				b := data[iNdEx]
   697  				iNdEx++
   698  				stringLen |= (uint64(b) & 0x7F) << shift
   699  				if b < 0x80 {
   700  					break
   701  				}
   702  			}
   703  			intStringLen := int(stringLen)
   704  			if intStringLen < 0 {
   705  				return ErrInvalidLengthAgent
   706  			}
   707  			postIndex := iNdEx + intStringLen
   708  			if postIndex > l {
   709  				return io.ErrUnexpectedEOF
   710  			}
   711  			m.TaskAliases = append(m.TaskAliases, string(data[iNdEx:postIndex]))
   712  			iNdEx = postIndex
   713  		default:
   714  			iNdEx = preIndex
   715  			skippy, err := skipAgent(data[iNdEx:])
   716  			if err != nil {
   717  				return err
   718  			}
   719  			if skippy < 0 {
   720  				return ErrInvalidLengthAgent
   721  			}
   722  			if (iNdEx + skippy) > l {
   723  				return io.ErrUnexpectedEOF
   724  			}
   725  			iNdEx += skippy
   726  		}
   727  	}
   728  
   729  	if iNdEx > l {
   730  		return io.ErrUnexpectedEOF
   731  	}
   732  	return nil
   733  }
   734  func (m *PortConfig) Unmarshal(data []byte) error {
   735  	l := len(data)
   736  	iNdEx := 0
   737  	for iNdEx < l {
   738  		preIndex := iNdEx
   739  		var wire uint64
   740  		for shift := uint(0); ; shift += 7 {
   741  			if shift >= 64 {
   742  				return ErrIntOverflowAgent
   743  			}
   744  			if iNdEx >= l {
   745  				return io.ErrUnexpectedEOF
   746  			}
   747  			b := data[iNdEx]
   748  			iNdEx++
   749  			wire |= (uint64(b) & 0x7F) << shift
   750  			if b < 0x80 {
   751  				break
   752  			}
   753  		}
   754  		fieldNum := int32(wire >> 3)
   755  		wireType := int(wire & 0x7)
   756  		if wireType == 4 {
   757  			return fmt.Errorf("proto: PortConfig: wiretype end group for non-group")
   758  		}
   759  		if fieldNum <= 0 {
   760  			return fmt.Errorf("proto: PortConfig: illegal tag %d (wire type %d)", fieldNum, wire)
   761  		}
   762  		switch fieldNum {
   763  		case 1:
   764  			if wireType != 2 {
   765  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
   766  			}
   767  			var stringLen uint64
   768  			for shift := uint(0); ; shift += 7 {
   769  				if shift >= 64 {
   770  					return ErrIntOverflowAgent
   771  				}
   772  				if iNdEx >= l {
   773  					return io.ErrUnexpectedEOF
   774  				}
   775  				b := data[iNdEx]
   776  				iNdEx++
   777  				stringLen |= (uint64(b) & 0x7F) << shift
   778  				if b < 0x80 {
   779  					break
   780  				}
   781  			}
   782  			intStringLen := int(stringLen)
   783  			if intStringLen < 0 {
   784  				return ErrInvalidLengthAgent
   785  			}
   786  			postIndex := iNdEx + intStringLen
   787  			if postIndex > l {
   788  				return io.ErrUnexpectedEOF
   789  			}
   790  			m.Name = string(data[iNdEx:postIndex])
   791  			iNdEx = postIndex
   792  		case 2:
   793  			if wireType != 0 {
   794  				return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType)
   795  			}
   796  			m.Protocol = 0
   797  			for shift := uint(0); ; shift += 7 {
   798  				if shift >= 64 {
   799  					return ErrIntOverflowAgent
   800  				}
   801  				if iNdEx >= l {
   802  					return io.ErrUnexpectedEOF
   803  				}
   804  				b := data[iNdEx]
   805  				iNdEx++
   806  				m.Protocol |= (PortConfig_Protocol(b) & 0x7F) << shift
   807  				if b < 0x80 {
   808  					break
   809  				}
   810  			}
   811  		case 3:
   812  			if wireType != 0 {
   813  				return fmt.Errorf("proto: wrong wireType = %d for field TargetPort", wireType)
   814  			}
   815  			m.TargetPort = 0
   816  			for shift := uint(0); ; shift += 7 {
   817  				if shift >= 64 {
   818  					return ErrIntOverflowAgent
   819  				}
   820  				if iNdEx >= l {
   821  					return io.ErrUnexpectedEOF
   822  				}
   823  				b := data[iNdEx]
   824  				iNdEx++
   825  				m.TargetPort |= (uint32(b) & 0x7F) << shift
   826  				if b < 0x80 {
   827  					break
   828  				}
   829  			}
   830  		case 4:
   831  			if wireType != 0 {
   832  				return fmt.Errorf("proto: wrong wireType = %d for field PublishedPort", wireType)
   833  			}
   834  			m.PublishedPort = 0
   835  			for shift := uint(0); ; shift += 7 {
   836  				if shift >= 64 {
   837  					return ErrIntOverflowAgent
   838  				}
   839  				if iNdEx >= l {
   840  					return io.ErrUnexpectedEOF
   841  				}
   842  				b := data[iNdEx]
   843  				iNdEx++
   844  				m.PublishedPort |= (uint32(b) & 0x7F) << shift
   845  				if b < 0x80 {
   846  					break
   847  				}
   848  			}
   849  		default:
   850  			iNdEx = preIndex
   851  			skippy, err := skipAgent(data[iNdEx:])
   852  			if err != nil {
   853  				return err
   854  			}
   855  			if skippy < 0 {
   856  				return ErrInvalidLengthAgent
   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 skipAgent(data []byte) (n int, err error) {
   871  	l := len(data)
   872  	iNdEx := 0
   873  	for iNdEx < l {
   874  		var wire uint64
   875  		for shift := uint(0); ; shift += 7 {
   876  			if shift >= 64 {
   877  				return 0, ErrIntOverflowAgent
   878  			}
   879  			if iNdEx >= l {
   880  				return 0, io.ErrUnexpectedEOF
   881  			}
   882  			b := data[iNdEx]
   883  			iNdEx++
   884  			wire |= (uint64(b) & 0x7F) << shift
   885  			if b < 0x80 {
   886  				break
   887  			}
   888  		}
   889  		wireType := int(wire & 0x7)
   890  		switch wireType {
   891  		case 0:
   892  			for shift := uint(0); ; shift += 7 {
   893  				if shift >= 64 {
   894  					return 0, ErrIntOverflowAgent
   895  				}
   896  				if iNdEx >= l {
   897  					return 0, io.ErrUnexpectedEOF
   898  				}
   899  				iNdEx++
   900  				if data[iNdEx-1] < 0x80 {
   901  					break
   902  				}
   903  			}
   904  			return iNdEx, nil
   905  		case 1:
   906  			iNdEx += 8
   907  			return iNdEx, nil
   908  		case 2:
   909  			var length int
   910  			for shift := uint(0); ; shift += 7 {
   911  				if shift >= 64 {
   912  					return 0, ErrIntOverflowAgent
   913  				}
   914  				if iNdEx >= l {
   915  					return 0, io.ErrUnexpectedEOF
   916  				}
   917  				b := data[iNdEx]
   918  				iNdEx++
   919  				length |= (int(b) & 0x7F) << shift
   920  				if b < 0x80 {
   921  					break
   922  				}
   923  			}
   924  			iNdEx += length
   925  			if length < 0 {
   926  				return 0, ErrInvalidLengthAgent
   927  			}
   928  			return iNdEx, nil
   929  		case 3:
   930  			for {
   931  				var innerWire uint64
   932  				var start int = iNdEx
   933  				for shift := uint(0); ; shift += 7 {
   934  					if shift >= 64 {
   935  						return 0, ErrIntOverflowAgent
   936  					}
   937  					if iNdEx >= l {
   938  						return 0, io.ErrUnexpectedEOF
   939  					}
   940  					b := data[iNdEx]
   941  					iNdEx++
   942  					innerWire |= (uint64(b) & 0x7F) << shift
   943  					if b < 0x80 {
   944  						break
   945  					}
   946  				}
   947  				innerWireType := int(innerWire & 0x7)
   948  				if innerWireType == 4 {
   949  					break
   950  				}
   951  				next, err := skipAgent(data[start:])
   952  				if err != nil {
   953  					return 0, err
   954  				}
   955  				iNdEx = start + next
   956  			}
   957  			return iNdEx, nil
   958  		case 4:
   959  			return iNdEx, nil
   960  		case 5:
   961  			iNdEx += 4
   962  			return iNdEx, nil
   963  		default:
   964  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   965  		}
   966  	}
   967  	panic("unreachable")
   968  }
   969  
   970  var (
   971  	ErrInvalidLengthAgent = fmt.Errorf("proto: negative length found during unmarshaling")
   972  	ErrIntOverflowAgent   = fmt.Errorf("proto: integer overflow")
   973  )
   974  
   975  var fileDescriptorAgent = []byte{
   976  	// 413 bytes of a gzipped FileDescriptorProto
   977  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x90, 0xbf, 0xae, 0xd3, 0x30,
   978  	0x14, 0x87, 0x9b, 0xdb, 0x70, 0x6f, 0x73, 0x72, 0x13, 0xae, 0x2c, 0x84, 0xa2, 0x0e, 0x69, 0xa9,
   979  	0x84, 0x74, 0x07, 0x94, 0x2b, 0x95, 0xb1, 0x13, 0x6d, 0x19, 0xb2, 0xa0, 0xc8, 0xfc, 0x59, 0xa3,
   980  	0xb4, 0x31, 0xc1, 0x6a, 0x88, 0x23, 0xdb, 0x2d, 0x2b, 0x23, 0xe2, 0x1d, 0x98, 0x78, 0x19, 0x26,
   981  	0xc4, 0xc8, 0x84, 0x68, 0x57, 0x16, 0x1e, 0x01, 0xdb, 0x49, 0x5a, 0x21, 0x75, 0x38, 0x92, 0xf3,
   982  	0xfd, 0xbe, 0xe3, 0x1c, 0x1f, 0x70, 0xb3, 0x82, 0x54, 0x32, 0xaa, 0x39, 0x93, 0x0c, 0x41, 0x49,
   983  	0x57, 0x15, 0x91, 0x1f, 0x18, 0xdf, 0x0c, 0x1f, 0x14, 0xac, 0x60, 0x06, 0xdf, 0xe9, 0x53, 0x63,
   984  	0x4c, 0xbe, 0x5f, 0x80, 0xff, 0xbc, 0xca, 0x6b, 0x46, 0x2b, 0x89, 0xc9, 0x9a, 0xf1, 0x1c, 0x21,
   985  	0xb0, 0xab, 0xec, 0x3d, 0x09, 0xac, 0xb1, 0x75, 0xeb, 0x60, 0x73, 0x46, 0x8f, 0xe0, 0x5a, 0x10,
   986  	0xbe, 0xa3, 0x6b, 0x92, 0x9a, 0xec, 0xc2, 0x64, 0x6e, 0xcb, 0x5e, 0x68, 0xe5, 0x09, 0x40, 0xa7,
   987  	0xd0, 0x3c, 0xe8, 0x6b, 0x61, 0xee, 0x1d, 0x7e, 0x8d, 0x9c, 0x97, 0x0d, 0x8d, 0x97, 0xd8, 0x69,
   988  	0x85, 0x38, 0xd7, 0xf6, 0x8e, 0x72, 0xb9, 0xcd, 0xca, 0x94, 0xd6, 0x81, 0x7d, 0xb2, 0xdf, 0x34,
   989  	0x34, 0x4e, 0xb0, 0xd3, 0x0a, 0x71, 0x8d, 0xee, 0xc0, 0x25, 0xed, 0x90, 0x5a, 0xbf, 0x67, 0x74,
   990  	0x5f, 0xe9, 0xd0, 0xcd, 0xae, 0x7c, 0xe8, 0x14, 0xd5, 0x30, 0x03, 0x8f, 0x56, 0x05, 0x27, 0x42,
   991  	0xa4, 0x35, 0xe3, 0x52, 0x04, 0x97, 0xe3, 0xfe, 0xad, 0x3b, 0x7d, 0x18, 0x9d, 0x16, 0x12, 0x25,
   992  	0x2a, 0x58, 0xb0, 0xea, 0x2d, 0x2d, 0xf0, 0x75, 0x2b, 0x6b, 0x24, 0x50, 0x00, 0x57, 0x59, 0x49,
   993  	0x33, 0x41, 0x44, 0x70, 0xa5, 0xda, 0x1c, 0xdc, 0x7d, 0xea, 0x35, 0xc8, 0x4c, 0x6c, 0xd2, 0x2e,
   994  	0x1e, 0x98, 0xd8, 0xd5, 0xec, 0x59, 0x83, 0x26, 0x7f, 0x2c, 0x80, 0xd3, 0xcd, 0x67, 0x97, 0x39,
   995  	0x83, 0x81, 0x59, 0xfe, 0x9a, 0x95, 0x66, 0x91, 0xfe, 0x74, 0x74, 0x7e, 0xae, 0x28, 0x69, 0x35,
   996  	0x7c, 0x6c, 0x40, 0x23, 0x50, 0xbf, 0xe3, 0x05, 0x91, 0xe6, 0x61, 0x66, 0xcf, 0x1e, 0x86, 0x06,
   997  	0xe9, 0x4e, 0xf4, 0x18, 0xfc, 0x7a, 0xbb, 0x2a, 0xa9, 0x78, 0x47, 0xf2, 0xc6, 0xb1, 0x8d, 0xe3,
   998  	0x1d, 0xa9, 0xd6, 0x26, 0x4b, 0x18, 0x74, 0xb7, 0xab, 0x07, 0xf7, 0x5f, 0x2d, 0x92, 0x9b, 0xde,
   999  	0xf0, 0xfe, 0xe7, 0x2f, 0x63, 0xb7, 0xc3, 0x0a, 0xe9, 0xe4, 0xf5, 0x32, 0xb9, 0xb1, 0xfe, 0x4f,
  1000  	0x14, 0x1a, 0xda, 0x9f, 0xbe, 0x86, 0xbd, 0x79, 0xf0, 0x73, 0x1f, 0xf6, 0xfe, 0xee, 0x43, 0xeb,
  1001  	0xe3, 0x21, 0xb4, 0xbe, 0xa9, 0xfa, 0xa1, 0xea, 0xb7, 0xaa, 0xd5, 0xa5, 0x99, 0xf8, 0xe9, 0xbf,
  1002  	0x00, 0x00, 0x00, 0xff, 0xff, 0xc9, 0x63, 0x1a, 0x0f, 0x90, 0x02, 0x00, 0x00,
  1003  }