github.com/letsencrypt/boulder@v0.20251208.0/crl/storer/proto/storer.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.36.5
     4  // 	protoc        v3.20.1
     5  // source: storer.proto
     6  
     7  package proto
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	emptypb "google.golang.org/protobuf/types/known/emptypb"
    13  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
    14  	reflect "reflect"
    15  	sync "sync"
    16  	unsafe "unsafe"
    17  )
    18  
    19  const (
    20  	// Verify that this generated code is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    22  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    23  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    24  )
    25  
    26  type UploadCRLRequest struct {
    27  	state protoimpl.MessageState `protogen:"open.v1"`
    28  	// Types that are valid to be assigned to Payload:
    29  	//
    30  	//	*UploadCRLRequest_Metadata
    31  	//	*UploadCRLRequest_CrlChunk
    32  	Payload       isUploadCRLRequest_Payload `protobuf_oneof:"payload"`
    33  	unknownFields protoimpl.UnknownFields
    34  	sizeCache     protoimpl.SizeCache
    35  }
    36  
    37  func (x *UploadCRLRequest) Reset() {
    38  	*x = UploadCRLRequest{}
    39  	mi := &file_storer_proto_msgTypes[0]
    40  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    41  	ms.StoreMessageInfo(mi)
    42  }
    43  
    44  func (x *UploadCRLRequest) String() string {
    45  	return protoimpl.X.MessageStringOf(x)
    46  }
    47  
    48  func (*UploadCRLRequest) ProtoMessage() {}
    49  
    50  func (x *UploadCRLRequest) ProtoReflect() protoreflect.Message {
    51  	mi := &file_storer_proto_msgTypes[0]
    52  	if x != nil {
    53  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    54  		if ms.LoadMessageInfo() == nil {
    55  			ms.StoreMessageInfo(mi)
    56  		}
    57  		return ms
    58  	}
    59  	return mi.MessageOf(x)
    60  }
    61  
    62  // Deprecated: Use UploadCRLRequest.ProtoReflect.Descriptor instead.
    63  func (*UploadCRLRequest) Descriptor() ([]byte, []int) {
    64  	return file_storer_proto_rawDescGZIP(), []int{0}
    65  }
    66  
    67  func (x *UploadCRLRequest) GetPayload() isUploadCRLRequest_Payload {
    68  	if x != nil {
    69  		return x.Payload
    70  	}
    71  	return nil
    72  }
    73  
    74  func (x *UploadCRLRequest) GetMetadata() *CRLMetadata {
    75  	if x != nil {
    76  		if x, ok := x.Payload.(*UploadCRLRequest_Metadata); ok {
    77  			return x.Metadata
    78  		}
    79  	}
    80  	return nil
    81  }
    82  
    83  func (x *UploadCRLRequest) GetCrlChunk() []byte {
    84  	if x != nil {
    85  		if x, ok := x.Payload.(*UploadCRLRequest_CrlChunk); ok {
    86  			return x.CrlChunk
    87  		}
    88  	}
    89  	return nil
    90  }
    91  
    92  type isUploadCRLRequest_Payload interface {
    93  	isUploadCRLRequest_Payload()
    94  }
    95  
    96  type UploadCRLRequest_Metadata struct {
    97  	Metadata *CRLMetadata `protobuf:"bytes,1,opt,name=metadata,proto3,oneof"`
    98  }
    99  
   100  type UploadCRLRequest_CrlChunk struct {
   101  	CrlChunk []byte `protobuf:"bytes,2,opt,name=crlChunk,proto3,oneof"`
   102  }
   103  
   104  func (*UploadCRLRequest_Metadata) isUploadCRLRequest_Payload() {}
   105  
   106  func (*UploadCRLRequest_CrlChunk) isUploadCRLRequest_Payload() {}
   107  
   108  type CRLMetadata struct {
   109  	state         protoimpl.MessageState `protogen:"open.v1"`
   110  	IssuerNameID  int64                  `protobuf:"varint,1,opt,name=issuerNameID,proto3" json:"issuerNameID,omitempty"`
   111  	Number        int64                  `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
   112  	ShardIdx      int64                  `protobuf:"varint,3,opt,name=shardIdx,proto3" json:"shardIdx,omitempty"`
   113  	Expires       *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires,proto3" json:"expires,omitempty"`
   114  	CacheControl  string                 `protobuf:"bytes,5,opt,name=cacheControl,proto3" json:"cacheControl,omitempty"`
   115  	unknownFields protoimpl.UnknownFields
   116  	sizeCache     protoimpl.SizeCache
   117  }
   118  
   119  func (x *CRLMetadata) Reset() {
   120  	*x = CRLMetadata{}
   121  	mi := &file_storer_proto_msgTypes[1]
   122  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   123  	ms.StoreMessageInfo(mi)
   124  }
   125  
   126  func (x *CRLMetadata) String() string {
   127  	return protoimpl.X.MessageStringOf(x)
   128  }
   129  
   130  func (*CRLMetadata) ProtoMessage() {}
   131  
   132  func (x *CRLMetadata) ProtoReflect() protoreflect.Message {
   133  	mi := &file_storer_proto_msgTypes[1]
   134  	if x != nil {
   135  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   136  		if ms.LoadMessageInfo() == nil {
   137  			ms.StoreMessageInfo(mi)
   138  		}
   139  		return ms
   140  	}
   141  	return mi.MessageOf(x)
   142  }
   143  
   144  // Deprecated: Use CRLMetadata.ProtoReflect.Descriptor instead.
   145  func (*CRLMetadata) Descriptor() ([]byte, []int) {
   146  	return file_storer_proto_rawDescGZIP(), []int{1}
   147  }
   148  
   149  func (x *CRLMetadata) GetIssuerNameID() int64 {
   150  	if x != nil {
   151  		return x.IssuerNameID
   152  	}
   153  	return 0
   154  }
   155  
   156  func (x *CRLMetadata) GetNumber() int64 {
   157  	if x != nil {
   158  		return x.Number
   159  	}
   160  	return 0
   161  }
   162  
   163  func (x *CRLMetadata) GetShardIdx() int64 {
   164  	if x != nil {
   165  		return x.ShardIdx
   166  	}
   167  	return 0
   168  }
   169  
   170  func (x *CRLMetadata) GetExpires() *timestamppb.Timestamp {
   171  	if x != nil {
   172  		return x.Expires
   173  	}
   174  	return nil
   175  }
   176  
   177  func (x *CRLMetadata) GetCacheControl() string {
   178  	if x != nil {
   179  		return x.CacheControl
   180  	}
   181  	return ""
   182  }
   183  
   184  var File_storer_proto protoreflect.FileDescriptor
   185  
   186  var file_storer_proto_rawDesc = string([]byte{
   187  	0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
   188  	0x73, 0x74, 0x6f, 0x72, 0x65, 0x72, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
   189  	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72,
   190  	0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
   191  	0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70,
   192  	0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6e, 0x0a, 0x10, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x52,
   193  	0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61,
   194  	0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x74, 0x6f,
   195  	0x72, 0x65, 0x72, 0x2e, 0x43, 0x52, 0x4c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48,
   196  	0x00, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x08, 0x63,
   197  	0x72, 0x6c, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52,
   198  	0x08, 0x63, 0x72, 0x6c, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79,
   199  	0x6c, 0x6f, 0x61, 0x64, 0x22, 0xbf, 0x01, 0x0a, 0x0b, 0x43, 0x52, 0x4c, 0x4d, 0x65, 0x74, 0x61,
   200  	0x64, 0x61, 0x74, 0x61, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x4e, 0x61,
   201  	0x6d, 0x65, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x69, 0x73, 0x73, 0x75,
   202  	0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62,
   203  	0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72,
   204  	0x12, 0x1a, 0x0a, 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x78, 0x18, 0x03, 0x20, 0x01,
   205  	0x28, 0x03, 0x52, 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x78, 0x12, 0x34, 0x0a, 0x07,
   206  	0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
   207  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
   208  	0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72,
   209  	0x65, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x61, 0x63, 0x68, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72,
   210  	0x6f, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x61, 0x63, 0x68, 0x65, 0x43,
   211  	0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x32, 0x4e, 0x0a, 0x09, 0x43, 0x52, 0x4c, 0x53, 0x74, 0x6f,
   212  	0x72, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x09, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x52, 0x4c,
   213  	0x12, 0x18, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x72, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64,
   214  	0x43, 0x52, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
   215  	0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
   216  	0x74, 0x79, 0x22, 0x00, 0x28, 0x01, 0x42, 0x31, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
   217  	0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x65, 0x74, 0x73, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74,
   218  	0x2f, 0x62, 0x6f, 0x75, 0x6c, 0x64, 0x65, 0x72, 0x2f, 0x63, 0x72, 0x6c, 0x2f, 0x73, 0x74, 0x6f,
   219  	0x72, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   220  	0x33,
   221  })
   222  
   223  var (
   224  	file_storer_proto_rawDescOnce sync.Once
   225  	file_storer_proto_rawDescData []byte
   226  )
   227  
   228  func file_storer_proto_rawDescGZIP() []byte {
   229  	file_storer_proto_rawDescOnce.Do(func() {
   230  		file_storer_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_storer_proto_rawDesc), len(file_storer_proto_rawDesc)))
   231  	})
   232  	return file_storer_proto_rawDescData
   233  }
   234  
   235  var file_storer_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   236  var file_storer_proto_goTypes = []any{
   237  	(*UploadCRLRequest)(nil),      // 0: storer.UploadCRLRequest
   238  	(*CRLMetadata)(nil),           // 1: storer.CRLMetadata
   239  	(*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
   240  	(*emptypb.Empty)(nil),         // 3: google.protobuf.Empty
   241  }
   242  var file_storer_proto_depIdxs = []int32{
   243  	1, // 0: storer.UploadCRLRequest.metadata:type_name -> storer.CRLMetadata
   244  	2, // 1: storer.CRLMetadata.expires:type_name -> google.protobuf.Timestamp
   245  	0, // 2: storer.CRLStorer.UploadCRL:input_type -> storer.UploadCRLRequest
   246  	3, // 3: storer.CRLStorer.UploadCRL:output_type -> google.protobuf.Empty
   247  	3, // [3:4] is the sub-list for method output_type
   248  	2, // [2:3] is the sub-list for method input_type
   249  	2, // [2:2] is the sub-list for extension type_name
   250  	2, // [2:2] is the sub-list for extension extendee
   251  	0, // [0:2] is the sub-list for field type_name
   252  }
   253  
   254  func init() { file_storer_proto_init() }
   255  func file_storer_proto_init() {
   256  	if File_storer_proto != nil {
   257  		return
   258  	}
   259  	file_storer_proto_msgTypes[0].OneofWrappers = []any{
   260  		(*UploadCRLRequest_Metadata)(nil),
   261  		(*UploadCRLRequest_CrlChunk)(nil),
   262  	}
   263  	type x struct{}
   264  	out := protoimpl.TypeBuilder{
   265  		File: protoimpl.DescBuilder{
   266  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   267  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_storer_proto_rawDesc), len(file_storer_proto_rawDesc)),
   268  			NumEnums:      0,
   269  			NumMessages:   2,
   270  			NumExtensions: 0,
   271  			NumServices:   1,
   272  		},
   273  		GoTypes:           file_storer_proto_goTypes,
   274  		DependencyIndexes: file_storer_proto_depIdxs,
   275  		MessageInfos:      file_storer_proto_msgTypes,
   276  	}.Build()
   277  	File_storer_proto = out.File
   278  	file_storer_proto_goTypes = nil
   279  	file_storer_proto_depIdxs = nil
   280  }