github.com/mutagen-io/mutagen@v0.18.0-rc1/pkg/synchronization/rsync/transmission.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.33.0
     4  // 	protoc        v5.26.1
     5  // source: synchronization/rsync/transmission.proto
     6  
     7  package rsync
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  // Transmission represents a single message in a transmission stream. As a
    24  // Protocol Buffers message type, its internals are inherently public, but it
    25  // should otherwise be treated as an opaque type with a private implementation.
    26  type Transmission struct {
    27  	state         protoimpl.MessageState
    28  	sizeCache     protoimpl.SizeCache
    29  	unknownFields protoimpl.UnknownFields
    30  
    31  	// ExpectedSize sets the expected size for the current incoming file. It is
    32  	// only set alongside the first operation in a file's transmission stream.
    33  	// If it zero, then the file's size should be treated as unknown, because a
    34  	// file of zero size will receive an immediate "done" transmission and would
    35  	// not be indicated as having zero size.
    36  	ExpectedSize uint64 `protobuf:"varint,1,opt,name=expectedSize,proto3" json:"expectedSize,omitempty"`
    37  	// Operation is the next operation in the transmission stream for the
    38  	// current file.
    39  	Operation *Operation `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"`
    40  	// Done indicates that the transmission stream for the current file is
    41  	// finished. If Done is true, then there will be no operation set, but there
    42  	// may be an error set.
    43  	Done bool `protobuf:"varint,3,opt,name=done,proto3" json:"done,omitempty"`
    44  	// Error indicates that a non-terminal error has occurred. It can only be
    45  	// present if Done is true.
    46  	Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
    47  }
    48  
    49  func (x *Transmission) Reset() {
    50  	*x = Transmission{}
    51  	if protoimpl.UnsafeEnabled {
    52  		mi := &file_synchronization_rsync_transmission_proto_msgTypes[0]
    53  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    54  		ms.StoreMessageInfo(mi)
    55  	}
    56  }
    57  
    58  func (x *Transmission) String() string {
    59  	return protoimpl.X.MessageStringOf(x)
    60  }
    61  
    62  func (*Transmission) ProtoMessage() {}
    63  
    64  func (x *Transmission) ProtoReflect() protoreflect.Message {
    65  	mi := &file_synchronization_rsync_transmission_proto_msgTypes[0]
    66  	if protoimpl.UnsafeEnabled && x != nil {
    67  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    68  		if ms.LoadMessageInfo() == nil {
    69  			ms.StoreMessageInfo(mi)
    70  		}
    71  		return ms
    72  	}
    73  	return mi.MessageOf(x)
    74  }
    75  
    76  // Deprecated: Use Transmission.ProtoReflect.Descriptor instead.
    77  func (*Transmission) Descriptor() ([]byte, []int) {
    78  	return file_synchronization_rsync_transmission_proto_rawDescGZIP(), []int{0}
    79  }
    80  
    81  func (x *Transmission) GetExpectedSize() uint64 {
    82  	if x != nil {
    83  		return x.ExpectedSize
    84  	}
    85  	return 0
    86  }
    87  
    88  func (x *Transmission) GetOperation() *Operation {
    89  	if x != nil {
    90  		return x.Operation
    91  	}
    92  	return nil
    93  }
    94  
    95  func (x *Transmission) GetDone() bool {
    96  	if x != nil {
    97  		return x.Done
    98  	}
    99  	return false
   100  }
   101  
   102  func (x *Transmission) GetError() string {
   103  	if x != nil {
   104  		return x.Error
   105  	}
   106  	return ""
   107  }
   108  
   109  var File_synchronization_rsync_transmission_proto protoreflect.FileDescriptor
   110  
   111  var file_synchronization_rsync_transmission_proto_rawDesc = []byte{
   112  	0x0a, 0x28, 0x73, 0x79, 0x6e, 0x63, 0x68, 0x72, 0x6f, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f,
   113  	0x6e, 0x2f, 0x72, 0x73, 0x79, 0x6e, 0x63, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6d, 0x69, 0x73,
   114  	0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x72, 0x73, 0x79, 0x6e,
   115  	0x63, 0x1a, 0x22, 0x73, 0x79, 0x6e, 0x63, 0x68, 0x72, 0x6f, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69,
   116  	0x6f, 0x6e, 0x2f, 0x72, 0x73, 0x79, 0x6e, 0x63, 0x2f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e,
   117  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8c, 0x01, 0x0a, 0x0c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6d,
   118  	0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74,
   119  	0x65, 0x64, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x65, 0x78,
   120  	0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x2e, 0x0a, 0x09, 0x6f, 0x70,
   121  	0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e,
   122  	0x72, 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
   123  	0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f,
   124  	0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x12, 0x14,
   125  	0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65,
   126  	0x72, 0x72, 0x6f, 0x72, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
   127  	0x6f, 0x6d, 0x2f, 0x6d, 0x75, 0x74, 0x61, 0x67, 0x65, 0x6e, 0x2d, 0x69, 0x6f, 0x2f, 0x6d, 0x75,
   128  	0x74, 0x61, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x73, 0x79, 0x6e, 0x63, 0x68, 0x72,
   129  	0x6f, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x72, 0x73, 0x79, 0x6e, 0x63, 0x62,
   130  	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   131  }
   132  
   133  var (
   134  	file_synchronization_rsync_transmission_proto_rawDescOnce sync.Once
   135  	file_synchronization_rsync_transmission_proto_rawDescData = file_synchronization_rsync_transmission_proto_rawDesc
   136  )
   137  
   138  func file_synchronization_rsync_transmission_proto_rawDescGZIP() []byte {
   139  	file_synchronization_rsync_transmission_proto_rawDescOnce.Do(func() {
   140  		file_synchronization_rsync_transmission_proto_rawDescData = protoimpl.X.CompressGZIP(file_synchronization_rsync_transmission_proto_rawDescData)
   141  	})
   142  	return file_synchronization_rsync_transmission_proto_rawDescData
   143  }
   144  
   145  var file_synchronization_rsync_transmission_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   146  var file_synchronization_rsync_transmission_proto_goTypes = []interface{}{
   147  	(*Transmission)(nil), // 0: rsync.Transmission
   148  	(*Operation)(nil),    // 1: rsync.Operation
   149  }
   150  var file_synchronization_rsync_transmission_proto_depIdxs = []int32{
   151  	1, // 0: rsync.Transmission.operation:type_name -> rsync.Operation
   152  	1, // [1:1] is the sub-list for method output_type
   153  	1, // [1:1] is the sub-list for method input_type
   154  	1, // [1:1] is the sub-list for extension type_name
   155  	1, // [1:1] is the sub-list for extension extendee
   156  	0, // [0:1] is the sub-list for field type_name
   157  }
   158  
   159  func init() { file_synchronization_rsync_transmission_proto_init() }
   160  func file_synchronization_rsync_transmission_proto_init() {
   161  	if File_synchronization_rsync_transmission_proto != nil {
   162  		return
   163  	}
   164  	file_synchronization_rsync_engine_proto_init()
   165  	if !protoimpl.UnsafeEnabled {
   166  		file_synchronization_rsync_transmission_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   167  			switch v := v.(*Transmission); i {
   168  			case 0:
   169  				return &v.state
   170  			case 1:
   171  				return &v.sizeCache
   172  			case 2:
   173  				return &v.unknownFields
   174  			default:
   175  				return nil
   176  			}
   177  		}
   178  	}
   179  	type x struct{}
   180  	out := protoimpl.TypeBuilder{
   181  		File: protoimpl.DescBuilder{
   182  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   183  			RawDescriptor: file_synchronization_rsync_transmission_proto_rawDesc,
   184  			NumEnums:      0,
   185  			NumMessages:   1,
   186  			NumExtensions: 0,
   187  			NumServices:   0,
   188  		},
   189  		GoTypes:           file_synchronization_rsync_transmission_proto_goTypes,
   190  		DependencyIndexes: file_synchronization_rsync_transmission_proto_depIdxs,
   191  		MessageInfos:      file_synchronization_rsync_transmission_proto_msgTypes,
   192  	}.Build()
   193  	File_synchronization_rsync_transmission_proto = out.File
   194  	file_synchronization_rsync_transmission_proto_rawDesc = nil
   195  	file_synchronization_rsync_transmission_proto_goTypes = nil
   196  	file_synchronization_rsync_transmission_proto_depIdxs = nil
   197  }