github.com/qiuhoude/go-web@v0.0.0-20220223060959-ab545e78f20d/prepare/23_proto_actor/remotessl/messages/messages.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: messages.proto
     3  
     4  /*
     5  Package messages is a generated protocol buffer package.
     6  
     7  It is generated from these files:
     8  	messages.proto
     9  
    10  It has these top-level messages:
    11  	EncryptedMessage
    12  */
    13  package messages
    14  
    15  import proto "github.com/gogo/protobuf/proto"
    16  import fmt "fmt"
    17  import math "math"
    18  import _ "github.com/AsynkronIT/protoactor-go/actor"
    19  
    20  import strings "strings"
    21  import reflect "reflect"
    22  
    23  import io "io"
    24  
    25  // Reference imports to suppress errors if they are not otherwise used.
    26  var _ = proto.Marshal
    27  var _ = fmt.Errorf
    28  var _ = math.Inf
    29  
    30  // This is a compile-time assertion to ensure that this generated file
    31  // is compatible with the proto package it is being compiled against.
    32  // A compilation error at this line likely means your copy of the
    33  // proto package needs to be updated.
    34  const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
    35  
    36  type EncryptedMessage struct {
    37  	Message string `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"`
    38  }
    39  
    40  func (m *EncryptedMessage) Reset()                    { *m = EncryptedMessage{} }
    41  func (*EncryptedMessage) ProtoMessage()               {}
    42  func (*EncryptedMessage) Descriptor() ([]byte, []int) { return fileDescriptorMessages, []int{0} }
    43  
    44  func (m *EncryptedMessage) GetMessage() string {
    45  	if m != nil {
    46  		return m.Message
    47  	}
    48  	return ""
    49  }
    50  
    51  func init() {
    52  	proto.RegisterType((*EncryptedMessage)(nil), "messages.EncryptedMessage")
    53  }
    54  func (this *EncryptedMessage) Equal(that interface{}) bool {
    55  	if that == nil {
    56  		return this == nil
    57  	}
    58  
    59  	that1, ok := that.(*EncryptedMessage)
    60  	if !ok {
    61  		that2, ok := that.(EncryptedMessage)
    62  		if ok {
    63  			that1 = &that2
    64  		} else {
    65  			return false
    66  		}
    67  	}
    68  	if that1 == nil {
    69  		return this == nil
    70  	} else if this == nil {
    71  		return false
    72  	}
    73  	if this.Message != that1.Message {
    74  		return false
    75  	}
    76  	return true
    77  }
    78  func (this *EncryptedMessage) GoString() string {
    79  	if this == nil {
    80  		return "nil"
    81  	}
    82  	s := make([]string, 0, 5)
    83  	s = append(s, "&messages.EncryptedMessage{")
    84  	s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
    85  	s = append(s, "}")
    86  	return strings.Join(s, "")
    87  }
    88  func valueToGoStringMessages(v interface{}, typ string) string {
    89  	rv := reflect.ValueOf(v)
    90  	if rv.IsNil() {
    91  		return "nil"
    92  	}
    93  	pv := reflect.Indirect(rv).Interface()
    94  	return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
    95  }
    96  func (m *EncryptedMessage) Marshal() (dAtA []byte, err error) {
    97  	size := m.Size()
    98  	dAtA = make([]byte, size)
    99  	n, err := m.MarshalTo(dAtA)
   100  	if err != nil {
   101  		return nil, err
   102  	}
   103  	return dAtA[:n], nil
   104  }
   105  
   106  func (m *EncryptedMessage) MarshalTo(dAtA []byte) (int, error) {
   107  	var i int
   108  	_ = i
   109  	var l int
   110  	_ = l
   111  	if len(m.Message) > 0 {
   112  		dAtA[i] = 0xa
   113  		i++
   114  		i = encodeVarintMessages(dAtA, i, uint64(len(m.Message)))
   115  		i += copy(dAtA[i:], m.Message)
   116  	}
   117  	return i, nil
   118  }
   119  
   120  func encodeVarintMessages(dAtA []byte, offset int, v uint64) int {
   121  	for v >= 1<<7 {
   122  		dAtA[offset] = uint8(v&0x7f | 0x80)
   123  		v >>= 7
   124  		offset++
   125  	}
   126  	dAtA[offset] = uint8(v)
   127  	return offset + 1
   128  }
   129  func (m *EncryptedMessage) Size() (n int) {
   130  	var l int
   131  	_ = l
   132  	l = len(m.Message)
   133  	if l > 0 {
   134  		n += 1 + l + sovMessages(uint64(l))
   135  	}
   136  	return n
   137  }
   138  
   139  func sovMessages(x uint64) (n int) {
   140  	for {
   141  		n++
   142  		x >>= 7
   143  		if x == 0 {
   144  			break
   145  		}
   146  	}
   147  	return n
   148  }
   149  func sozMessages(x uint64) (n int) {
   150  	return sovMessages(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   151  }
   152  func (this *EncryptedMessage) String() string {
   153  	if this == nil {
   154  		return "nil"
   155  	}
   156  	s := strings.Join([]string{`&EncryptedMessage{`,
   157  		`Message:` + fmt.Sprintf("%v", this.Message) + `,`,
   158  		`}`,
   159  	}, "")
   160  	return s
   161  }
   162  func valueToStringMessages(v interface{}) string {
   163  	rv := reflect.ValueOf(v)
   164  	if rv.IsNil() {
   165  		return "nil"
   166  	}
   167  	pv := reflect.Indirect(rv).Interface()
   168  	return fmt.Sprintf("*%v", pv)
   169  }
   170  func (m *EncryptedMessage) Unmarshal(dAtA []byte) error {
   171  	l := len(dAtA)
   172  	iNdEx := 0
   173  	for iNdEx < l {
   174  		preIndex := iNdEx
   175  		var wire uint64
   176  		for shift := uint(0); ; shift += 7 {
   177  			if shift >= 64 {
   178  				return ErrIntOverflowMessages
   179  			}
   180  			if iNdEx >= l {
   181  				return io.ErrUnexpectedEOF
   182  			}
   183  			b := dAtA[iNdEx]
   184  			iNdEx++
   185  			wire |= (uint64(b) & 0x7F) << shift
   186  			if b < 0x80 {
   187  				break
   188  			}
   189  		}
   190  		fieldNum := int32(wire >> 3)
   191  		wireType := int(wire & 0x7)
   192  		if wireType == 4 {
   193  			return fmt.Errorf("proto: EncryptedMessage: wiretype end group for non-group")
   194  		}
   195  		if fieldNum <= 0 {
   196  			return fmt.Errorf("proto: EncryptedMessage: illegal tag %d (wire type %d)", fieldNum, wire)
   197  		}
   198  		switch fieldNum {
   199  		case 1:
   200  			if wireType != 2 {
   201  				return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
   202  			}
   203  			var stringLen uint64
   204  			for shift := uint(0); ; shift += 7 {
   205  				if shift >= 64 {
   206  					return ErrIntOverflowMessages
   207  				}
   208  				if iNdEx >= l {
   209  					return io.ErrUnexpectedEOF
   210  				}
   211  				b := dAtA[iNdEx]
   212  				iNdEx++
   213  				stringLen |= (uint64(b) & 0x7F) << shift
   214  				if b < 0x80 {
   215  					break
   216  				}
   217  			}
   218  			intStringLen := int(stringLen)
   219  			if intStringLen < 0 {
   220  				return ErrInvalidLengthMessages
   221  			}
   222  			postIndex := iNdEx + intStringLen
   223  			if postIndex > l {
   224  				return io.ErrUnexpectedEOF
   225  			}
   226  			m.Message = string(dAtA[iNdEx:postIndex])
   227  			iNdEx = postIndex
   228  		default:
   229  			iNdEx = preIndex
   230  			skippy, err := skipMessages(dAtA[iNdEx:])
   231  			if err != nil {
   232  				return err
   233  			}
   234  			if skippy < 0 {
   235  				return ErrInvalidLengthMessages
   236  			}
   237  			if (iNdEx + skippy) > l {
   238  				return io.ErrUnexpectedEOF
   239  			}
   240  			iNdEx += skippy
   241  		}
   242  	}
   243  
   244  	if iNdEx > l {
   245  		return io.ErrUnexpectedEOF
   246  	}
   247  	return nil
   248  }
   249  func skipMessages(dAtA []byte) (n int, err error) {
   250  	l := len(dAtA)
   251  	iNdEx := 0
   252  	for iNdEx < l {
   253  		var wire uint64
   254  		for shift := uint(0); ; shift += 7 {
   255  			if shift >= 64 {
   256  				return 0, ErrIntOverflowMessages
   257  			}
   258  			if iNdEx >= l {
   259  				return 0, io.ErrUnexpectedEOF
   260  			}
   261  			b := dAtA[iNdEx]
   262  			iNdEx++
   263  			wire |= (uint64(b) & 0x7F) << shift
   264  			if b < 0x80 {
   265  				break
   266  			}
   267  		}
   268  		wireType := int(wire & 0x7)
   269  		switch wireType {
   270  		case 0:
   271  			for shift := uint(0); ; shift += 7 {
   272  				if shift >= 64 {
   273  					return 0, ErrIntOverflowMessages
   274  				}
   275  				if iNdEx >= l {
   276  					return 0, io.ErrUnexpectedEOF
   277  				}
   278  				iNdEx++
   279  				if dAtA[iNdEx-1] < 0x80 {
   280  					break
   281  				}
   282  			}
   283  			return iNdEx, nil
   284  		case 1:
   285  			iNdEx += 8
   286  			return iNdEx, nil
   287  		case 2:
   288  			var length int
   289  			for shift := uint(0); ; shift += 7 {
   290  				if shift >= 64 {
   291  					return 0, ErrIntOverflowMessages
   292  				}
   293  				if iNdEx >= l {
   294  					return 0, io.ErrUnexpectedEOF
   295  				}
   296  				b := dAtA[iNdEx]
   297  				iNdEx++
   298  				length |= (int(b) & 0x7F) << shift
   299  				if b < 0x80 {
   300  					break
   301  				}
   302  			}
   303  			iNdEx += length
   304  			if length < 0 {
   305  				return 0, ErrInvalidLengthMessages
   306  			}
   307  			return iNdEx, nil
   308  		case 3:
   309  			for {
   310  				var innerWire uint64
   311  				var start int = iNdEx
   312  				for shift := uint(0); ; shift += 7 {
   313  					if shift >= 64 {
   314  						return 0, ErrIntOverflowMessages
   315  					}
   316  					if iNdEx >= l {
   317  						return 0, io.ErrUnexpectedEOF
   318  					}
   319  					b := dAtA[iNdEx]
   320  					iNdEx++
   321  					innerWire |= (uint64(b) & 0x7F) << shift
   322  					if b < 0x80 {
   323  						break
   324  					}
   325  				}
   326  				innerWireType := int(innerWire & 0x7)
   327  				if innerWireType == 4 {
   328  					break
   329  				}
   330  				next, err := skipMessages(dAtA[start:])
   331  				if err != nil {
   332  					return 0, err
   333  				}
   334  				iNdEx = start + next
   335  			}
   336  			return iNdEx, nil
   337  		case 4:
   338  			return iNdEx, nil
   339  		case 5:
   340  			iNdEx += 4
   341  			return iNdEx, nil
   342  		default:
   343  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   344  		}
   345  	}
   346  	panic("unreachable")
   347  }
   348  
   349  var (
   350  	ErrInvalidLengthMessages = fmt.Errorf("proto: negative length found during unmarshaling")
   351  	ErrIntOverflowMessages   = fmt.Errorf("proto: integer overflow")
   352  )
   353  
   354  func init() { proto.RegisterFile("messages.proto", fileDescriptorMessages) }
   355  
   356  var fileDescriptorMessages = []byte{
   357  	// 169 bytes of a gzipped FileDescriptorProto
   358  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xcb, 0x4d, 0x2d, 0x2e,
   359  	0x4e, 0x4c, 0x4f, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x80, 0xf1, 0xa5, 0xcc,
   360  	0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x1d, 0x8b, 0x2b, 0xf3, 0xb2,
   361  	0x8b, 0xf2, 0xf3, 0x3c, 0x43, 0xf4, 0xc1, 0xca, 0x12, 0x93, 0x4b, 0xf2, 0x8b, 0x74, 0xd3, 0xf3,
   362  	0xf5, 0xc1, 0x0c, 0x88, 0x18, 0xd4, 0x04, 0x25, 0x1d, 0x2e, 0x01, 0xd7, 0xbc, 0xe4, 0xa2, 0xca,
   363  	0x82, 0x92, 0xd4, 0x14, 0x5f, 0x88, 0x61, 0x42, 0x12, 0x5c, 0xec, 0x50, 0xa6, 0x04, 0xa3, 0x02,
   364  	0xa3, 0x06, 0x67, 0x10, 0x8c, 0xeb, 0xa4, 0x73, 0xe1, 0xa1, 0x1c, 0xc3, 0x8d, 0x87, 0x72, 0x0c,
   365  	0x1f, 0x1e, 0xca, 0x31, 0x36, 0x3c, 0x92, 0x63, 0x5c, 0xf1, 0x48, 0x8e, 0xf1, 0xc4, 0x23, 0x39,
   366  	0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x7c, 0xf1, 0x48, 0x8e, 0xe1, 0xc3, 0x23,
   367  	0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x92, 0xd8, 0xc0, 0x56, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff,
   368  	0xff, 0x8b, 0x04, 0x32, 0x80, 0xb6, 0x00, 0x00, 0x00,
   369  }