github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/pkg/proto/impl/v1/pgrevision.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.33.0
     4  // 	protoc        (unknown)
     5  // source: impl/v1/pgrevision.proto
     6  
     7  package implv1
     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  // *
    24  // PostgresRevision is a compact binary encoding of a postgres snapshot as
    25  // described in the offial documentation here:
    26  // https://www.postgresql.org/docs/current/functions-info.html#FUNCTIONS-PG-SNAPSHOT-PARTS
    27  //
    28  // We use relative offsets for xmax and the xips to reduce the number of bytes
    29  // required for binary encoding using the protobuf varint datatype:
    30  // https://protobuf.dev/programming-guides/encoding/#varints
    31  type PostgresRevision struct {
    32  	state         protoimpl.MessageState
    33  	sizeCache     protoimpl.SizeCache
    34  	unknownFields protoimpl.UnknownFields
    35  
    36  	Xmin         uint64  `protobuf:"varint,1,opt,name=xmin,proto3" json:"xmin,omitempty"`
    37  	RelativeXmax int64   `protobuf:"varint,2,opt,name=relative_xmax,json=relativeXmax,proto3" json:"relative_xmax,omitempty"`
    38  	RelativeXips []int64 `protobuf:"varint,3,rep,packed,name=relative_xips,json=relativeXips,proto3" json:"relative_xips,omitempty"`
    39  }
    40  
    41  func (x *PostgresRevision) Reset() {
    42  	*x = PostgresRevision{}
    43  	if protoimpl.UnsafeEnabled {
    44  		mi := &file_impl_v1_pgrevision_proto_msgTypes[0]
    45  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    46  		ms.StoreMessageInfo(mi)
    47  	}
    48  }
    49  
    50  func (x *PostgresRevision) String() string {
    51  	return protoimpl.X.MessageStringOf(x)
    52  }
    53  
    54  func (*PostgresRevision) ProtoMessage() {}
    55  
    56  func (x *PostgresRevision) ProtoReflect() protoreflect.Message {
    57  	mi := &file_impl_v1_pgrevision_proto_msgTypes[0]
    58  	if protoimpl.UnsafeEnabled && x != nil {
    59  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    60  		if ms.LoadMessageInfo() == nil {
    61  			ms.StoreMessageInfo(mi)
    62  		}
    63  		return ms
    64  	}
    65  	return mi.MessageOf(x)
    66  }
    67  
    68  // Deprecated: Use PostgresRevision.ProtoReflect.Descriptor instead.
    69  func (*PostgresRevision) Descriptor() ([]byte, []int) {
    70  	return file_impl_v1_pgrevision_proto_rawDescGZIP(), []int{0}
    71  }
    72  
    73  func (x *PostgresRevision) GetXmin() uint64 {
    74  	if x != nil {
    75  		return x.Xmin
    76  	}
    77  	return 0
    78  }
    79  
    80  func (x *PostgresRevision) GetRelativeXmax() int64 {
    81  	if x != nil {
    82  		return x.RelativeXmax
    83  	}
    84  	return 0
    85  }
    86  
    87  func (x *PostgresRevision) GetRelativeXips() []int64 {
    88  	if x != nil {
    89  		return x.RelativeXips
    90  	}
    91  	return nil
    92  }
    93  
    94  var File_impl_v1_pgrevision_proto protoreflect.FileDescriptor
    95  
    96  var file_impl_v1_pgrevision_proto_rawDesc = []byte{
    97  	0x0a, 0x18, 0x69, 0x6d, 0x70, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x67, 0x72, 0x65, 0x76, 0x69,
    98  	0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x69, 0x6d, 0x70, 0x6c,
    99  	0x2e, 0x76, 0x31, 0x22, 0x70, 0x0a, 0x10, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x52,
   100  	0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x78, 0x6d, 0x69, 0x6e, 0x18,
   101  	0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x78, 0x6d, 0x69, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x72,
   102  	0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x78, 0x6d, 0x61, 0x78, 0x18, 0x02, 0x20, 0x01,
   103  	0x28, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x58, 0x6d, 0x61, 0x78,
   104  	0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x78, 0x69, 0x70,
   105  	0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76,
   106  	0x65, 0x58, 0x69, 0x70, 0x73, 0x42, 0x90, 0x01, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x2e, 0x69, 0x6d,
   107  	0x70, 0x6c, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x50, 0x67, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f,
   108  	0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
   109  	0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x65, 0x64, 0x2f, 0x73, 0x70, 0x69,
   110  	0x63, 0x65, 0x64, 0x62, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x69,
   111  	0x6d, 0x70, 0x6c, 0x2f, 0x76, 0x31, 0x3b, 0x69, 0x6d, 0x70, 0x6c, 0x76, 0x31, 0xa2, 0x02, 0x03,
   112  	0x49, 0x58, 0x58, 0xaa, 0x02, 0x07, 0x49, 0x6d, 0x70, 0x6c, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x07,
   113  	0x49, 0x6d, 0x70, 0x6c, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x13, 0x49, 0x6d, 0x70, 0x6c, 0x5c, 0x56,
   114  	0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08,
   115  	0x49, 0x6d, 0x70, 0x6c, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   116  }
   117  
   118  var (
   119  	file_impl_v1_pgrevision_proto_rawDescOnce sync.Once
   120  	file_impl_v1_pgrevision_proto_rawDescData = file_impl_v1_pgrevision_proto_rawDesc
   121  )
   122  
   123  func file_impl_v1_pgrevision_proto_rawDescGZIP() []byte {
   124  	file_impl_v1_pgrevision_proto_rawDescOnce.Do(func() {
   125  		file_impl_v1_pgrevision_proto_rawDescData = protoimpl.X.CompressGZIP(file_impl_v1_pgrevision_proto_rawDescData)
   126  	})
   127  	return file_impl_v1_pgrevision_proto_rawDescData
   128  }
   129  
   130  var file_impl_v1_pgrevision_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   131  var file_impl_v1_pgrevision_proto_goTypes = []interface{}{
   132  	(*PostgresRevision)(nil), // 0: impl.v1.PostgresRevision
   133  }
   134  var file_impl_v1_pgrevision_proto_depIdxs = []int32{
   135  	0, // [0:0] is the sub-list for method output_type
   136  	0, // [0:0] is the sub-list for method input_type
   137  	0, // [0:0] is the sub-list for extension type_name
   138  	0, // [0:0] is the sub-list for extension extendee
   139  	0, // [0:0] is the sub-list for field type_name
   140  }
   141  
   142  func init() { file_impl_v1_pgrevision_proto_init() }
   143  func file_impl_v1_pgrevision_proto_init() {
   144  	if File_impl_v1_pgrevision_proto != nil {
   145  		return
   146  	}
   147  	if !protoimpl.UnsafeEnabled {
   148  		file_impl_v1_pgrevision_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   149  			switch v := v.(*PostgresRevision); i {
   150  			case 0:
   151  				return &v.state
   152  			case 1:
   153  				return &v.sizeCache
   154  			case 2:
   155  				return &v.unknownFields
   156  			default:
   157  				return nil
   158  			}
   159  		}
   160  	}
   161  	type x struct{}
   162  	out := protoimpl.TypeBuilder{
   163  		File: protoimpl.DescBuilder{
   164  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   165  			RawDescriptor: file_impl_v1_pgrevision_proto_rawDesc,
   166  			NumEnums:      0,
   167  			NumMessages:   1,
   168  			NumExtensions: 0,
   169  			NumServices:   0,
   170  		},
   171  		GoTypes:           file_impl_v1_pgrevision_proto_goTypes,
   172  		DependencyIndexes: file_impl_v1_pgrevision_proto_depIdxs,
   173  		MessageInfos:      file_impl_v1_pgrevision_proto_msgTypes,
   174  	}.Build()
   175  	File_impl_v1_pgrevision_proto = out.File
   176  	file_impl_v1_pgrevision_proto_rawDesc = nil
   177  	file_impl_v1_pgrevision_proto_goTypes = nil
   178  	file_impl_v1_pgrevision_proto_depIdxs = nil
   179  }