github.com/letsencrypt/boulder@v0.20251208.0/publisher/proto/publisher.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: publisher.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  	reflect "reflect"
    13  	sync "sync"
    14  	unsafe "unsafe"
    15  )
    16  
    17  const (
    18  	// Verify that this generated code is sufficiently up-to-date.
    19  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    20  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    22  )
    23  
    24  type SubmissionType int32
    25  
    26  const (
    27  	SubmissionType_unknown SubmissionType = 0
    28  	SubmissionType_sct     SubmissionType = 1 // Submitting a precert with the intent of getting SCTs
    29  	SubmissionType_info    SubmissionType = 2 // Submitting a precert on a best-effort basis
    30  	SubmissionType_final   SubmissionType = 3 // Submitting a final cert on a best-effort basis
    31  )
    32  
    33  // Enum value maps for SubmissionType.
    34  var (
    35  	SubmissionType_name = map[int32]string{
    36  		0: "unknown",
    37  		1: "sct",
    38  		2: "info",
    39  		3: "final",
    40  	}
    41  	SubmissionType_value = map[string]int32{
    42  		"unknown": 0,
    43  		"sct":     1,
    44  		"info":    2,
    45  		"final":   3,
    46  	}
    47  )
    48  
    49  func (x SubmissionType) Enum() *SubmissionType {
    50  	p := new(SubmissionType)
    51  	*p = x
    52  	return p
    53  }
    54  
    55  func (x SubmissionType) String() string {
    56  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    57  }
    58  
    59  func (SubmissionType) Descriptor() protoreflect.EnumDescriptor {
    60  	return file_publisher_proto_enumTypes[0].Descriptor()
    61  }
    62  
    63  func (SubmissionType) Type() protoreflect.EnumType {
    64  	return &file_publisher_proto_enumTypes[0]
    65  }
    66  
    67  func (x SubmissionType) Number() protoreflect.EnumNumber {
    68  	return protoreflect.EnumNumber(x)
    69  }
    70  
    71  // Deprecated: Use SubmissionType.Descriptor instead.
    72  func (SubmissionType) EnumDescriptor() ([]byte, []int) {
    73  	return file_publisher_proto_rawDescGZIP(), []int{0}
    74  }
    75  
    76  type Request struct {
    77  	state         protoimpl.MessageState `protogen:"open.v1"`
    78  	Der           []byte                 `protobuf:"bytes,1,opt,name=der,proto3" json:"der,omitempty"`
    79  	LogURL        string                 `protobuf:"bytes,2,opt,name=LogURL,proto3" json:"LogURL,omitempty"`
    80  	LogPublicKey  string                 `protobuf:"bytes,3,opt,name=LogPublicKey,proto3" json:"LogPublicKey,omitempty"`
    81  	Kind          SubmissionType         `protobuf:"varint,5,opt,name=kind,proto3,enum=SubmissionType" json:"kind,omitempty"`
    82  	unknownFields protoimpl.UnknownFields
    83  	sizeCache     protoimpl.SizeCache
    84  }
    85  
    86  func (x *Request) Reset() {
    87  	*x = Request{}
    88  	mi := &file_publisher_proto_msgTypes[0]
    89  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    90  	ms.StoreMessageInfo(mi)
    91  }
    92  
    93  func (x *Request) String() string {
    94  	return protoimpl.X.MessageStringOf(x)
    95  }
    96  
    97  func (*Request) ProtoMessage() {}
    98  
    99  func (x *Request) ProtoReflect() protoreflect.Message {
   100  	mi := &file_publisher_proto_msgTypes[0]
   101  	if x != nil {
   102  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   103  		if ms.LoadMessageInfo() == nil {
   104  			ms.StoreMessageInfo(mi)
   105  		}
   106  		return ms
   107  	}
   108  	return mi.MessageOf(x)
   109  }
   110  
   111  // Deprecated: Use Request.ProtoReflect.Descriptor instead.
   112  func (*Request) Descriptor() ([]byte, []int) {
   113  	return file_publisher_proto_rawDescGZIP(), []int{0}
   114  }
   115  
   116  func (x *Request) GetDer() []byte {
   117  	if x != nil {
   118  		return x.Der
   119  	}
   120  	return nil
   121  }
   122  
   123  func (x *Request) GetLogURL() string {
   124  	if x != nil {
   125  		return x.LogURL
   126  	}
   127  	return ""
   128  }
   129  
   130  func (x *Request) GetLogPublicKey() string {
   131  	if x != nil {
   132  		return x.LogPublicKey
   133  	}
   134  	return ""
   135  }
   136  
   137  func (x *Request) GetKind() SubmissionType {
   138  	if x != nil {
   139  		return x.Kind
   140  	}
   141  	return SubmissionType_unknown
   142  }
   143  
   144  type Result struct {
   145  	state         protoimpl.MessageState `protogen:"open.v1"`
   146  	Sct           []byte                 `protobuf:"bytes,1,opt,name=sct,proto3" json:"sct,omitempty"`
   147  	unknownFields protoimpl.UnknownFields
   148  	sizeCache     protoimpl.SizeCache
   149  }
   150  
   151  func (x *Result) Reset() {
   152  	*x = Result{}
   153  	mi := &file_publisher_proto_msgTypes[1]
   154  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   155  	ms.StoreMessageInfo(mi)
   156  }
   157  
   158  func (x *Result) String() string {
   159  	return protoimpl.X.MessageStringOf(x)
   160  }
   161  
   162  func (*Result) ProtoMessage() {}
   163  
   164  func (x *Result) ProtoReflect() protoreflect.Message {
   165  	mi := &file_publisher_proto_msgTypes[1]
   166  	if x != nil {
   167  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   168  		if ms.LoadMessageInfo() == nil {
   169  			ms.StoreMessageInfo(mi)
   170  		}
   171  		return ms
   172  	}
   173  	return mi.MessageOf(x)
   174  }
   175  
   176  // Deprecated: Use Result.ProtoReflect.Descriptor instead.
   177  func (*Result) Descriptor() ([]byte, []int) {
   178  	return file_publisher_proto_rawDescGZIP(), []int{1}
   179  }
   180  
   181  func (x *Result) GetSct() []byte {
   182  	if x != nil {
   183  		return x.Sct
   184  	}
   185  	return nil
   186  }
   187  
   188  var File_publisher_proto protoreflect.FileDescriptor
   189  
   190  var file_publisher_proto_rawDesc = string([]byte{
   191  	0x0a, 0x0f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   192  	0x6f, 0x22, 0x82, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a,
   193  	0x03, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x64, 0x65, 0x72, 0x12,
   194  	0x16, 0x0a, 0x06, 0x4c, 0x6f, 0x67, 0x55, 0x52, 0x4c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
   195  	0x06, 0x4c, 0x6f, 0x67, 0x55, 0x52, 0x4c, 0x12, 0x22, 0x0a, 0x0c, 0x4c, 0x6f, 0x67, 0x50, 0x75,
   196  	0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x4c,
   197  	0x6f, 0x67, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x04, 0x6b,
   198  	0x69, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x53, 0x75, 0x62, 0x6d,
   199  	0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64,
   200  	0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x22, 0x1a, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74,
   201  	0x12, 0x10, 0x0a, 0x03, 0x73, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x73,
   202  	0x63, 0x74, 0x2a, 0x3b, 0x0a, 0x0e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
   203  	0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10,
   204  	0x00, 0x12, 0x07, 0x0a, 0x03, 0x73, 0x63, 0x74, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x69, 0x6e,
   205  	0x66, 0x6f, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x10, 0x03, 0x32,
   206  	0x3e, 0x0a, 0x09, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x12, 0x31, 0x0a, 0x1a,
   207  	0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x6f, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x43, 0x54,
   208  	0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x08, 0x2e, 0x52, 0x65, 0x71,
   209  	0x75, 0x65, 0x73, 0x74, 0x1a, 0x07, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x00, 0x42,
   210  	0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x65,
   211  	0x74, 0x73, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x2f, 0x62, 0x6f, 0x75, 0x6c, 0x64, 0x65,
   212  	0x72, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x74,
   213  	0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   214  })
   215  
   216  var (
   217  	file_publisher_proto_rawDescOnce sync.Once
   218  	file_publisher_proto_rawDescData []byte
   219  )
   220  
   221  func file_publisher_proto_rawDescGZIP() []byte {
   222  	file_publisher_proto_rawDescOnce.Do(func() {
   223  		file_publisher_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_publisher_proto_rawDesc), len(file_publisher_proto_rawDesc)))
   224  	})
   225  	return file_publisher_proto_rawDescData
   226  }
   227  
   228  var file_publisher_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   229  var file_publisher_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   230  var file_publisher_proto_goTypes = []any{
   231  	(SubmissionType)(0), // 0: SubmissionType
   232  	(*Request)(nil),     // 1: Request
   233  	(*Result)(nil),      // 2: Result
   234  }
   235  var file_publisher_proto_depIdxs = []int32{
   236  	0, // 0: Request.kind:type_name -> SubmissionType
   237  	1, // 1: Publisher.SubmitToSingleCTWithResult:input_type -> Request
   238  	2, // 2: Publisher.SubmitToSingleCTWithResult:output_type -> Result
   239  	2, // [2:3] is the sub-list for method output_type
   240  	1, // [1:2] is the sub-list for method input_type
   241  	1, // [1:1] is the sub-list for extension type_name
   242  	1, // [1:1] is the sub-list for extension extendee
   243  	0, // [0:1] is the sub-list for field type_name
   244  }
   245  
   246  func init() { file_publisher_proto_init() }
   247  func file_publisher_proto_init() {
   248  	if File_publisher_proto != nil {
   249  		return
   250  	}
   251  	type x struct{}
   252  	out := protoimpl.TypeBuilder{
   253  		File: protoimpl.DescBuilder{
   254  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   255  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_publisher_proto_rawDesc), len(file_publisher_proto_rawDesc)),
   256  			NumEnums:      1,
   257  			NumMessages:   2,
   258  			NumExtensions: 0,
   259  			NumServices:   1,
   260  		},
   261  		GoTypes:           file_publisher_proto_goTypes,
   262  		DependencyIndexes: file_publisher_proto_depIdxs,
   263  		EnumInfos:         file_publisher_proto_enumTypes,
   264  		MessageInfos:      file_publisher_proto_msgTypes,
   265  	}.Build()
   266  	File_publisher_proto = out.File
   267  	file_publisher_proto_goTypes = nil
   268  	file_publisher_proto_depIdxs = nil
   269  }