...

Source file src/github.com/letsencrypt/boulder/nonce/proto/nonce.pb.go

Documentation: github.com/letsencrypt/boulder/nonce/proto

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.28.0
     4  // 	protoc        v3.20.1
     5  // source: nonce.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  	reflect "reflect"
    14  	sync "sync"
    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 NonceMessage struct {
    25  	state         protoimpl.MessageState
    26  	sizeCache     protoimpl.SizeCache
    27  	unknownFields protoimpl.UnknownFields
    28  
    29  	Nonce string `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
    30  }
    31  
    32  func (x *NonceMessage) Reset() {
    33  	*x = NonceMessage{}
    34  	if protoimpl.UnsafeEnabled {
    35  		mi := &file_nonce_proto_msgTypes[0]
    36  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    37  		ms.StoreMessageInfo(mi)
    38  	}
    39  }
    40  
    41  func (x *NonceMessage) String() string {
    42  	return protoimpl.X.MessageStringOf(x)
    43  }
    44  
    45  func (*NonceMessage) ProtoMessage() {}
    46  
    47  func (x *NonceMessage) ProtoReflect() protoreflect.Message {
    48  	mi := &file_nonce_proto_msgTypes[0]
    49  	if protoimpl.UnsafeEnabled && x != nil {
    50  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    51  		if ms.LoadMessageInfo() == nil {
    52  			ms.StoreMessageInfo(mi)
    53  		}
    54  		return ms
    55  	}
    56  	return mi.MessageOf(x)
    57  }
    58  
    59  // Deprecated: Use NonceMessage.ProtoReflect.Descriptor instead.
    60  func (*NonceMessage) Descriptor() ([]byte, []int) {
    61  	return file_nonce_proto_rawDescGZIP(), []int{0}
    62  }
    63  
    64  func (x *NonceMessage) GetNonce() string {
    65  	if x != nil {
    66  		return x.Nonce
    67  	}
    68  	return ""
    69  }
    70  
    71  type ValidMessage struct {
    72  	state         protoimpl.MessageState
    73  	sizeCache     protoimpl.SizeCache
    74  	unknownFields protoimpl.UnknownFields
    75  
    76  	Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
    77  }
    78  
    79  func (x *ValidMessage) Reset() {
    80  	*x = ValidMessage{}
    81  	if protoimpl.UnsafeEnabled {
    82  		mi := &file_nonce_proto_msgTypes[1]
    83  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    84  		ms.StoreMessageInfo(mi)
    85  	}
    86  }
    87  
    88  func (x *ValidMessage) String() string {
    89  	return protoimpl.X.MessageStringOf(x)
    90  }
    91  
    92  func (*ValidMessage) ProtoMessage() {}
    93  
    94  func (x *ValidMessage) ProtoReflect() protoreflect.Message {
    95  	mi := &file_nonce_proto_msgTypes[1]
    96  	if protoimpl.UnsafeEnabled && x != nil {
    97  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    98  		if ms.LoadMessageInfo() == nil {
    99  			ms.StoreMessageInfo(mi)
   100  		}
   101  		return ms
   102  	}
   103  	return mi.MessageOf(x)
   104  }
   105  
   106  // Deprecated: Use ValidMessage.ProtoReflect.Descriptor instead.
   107  func (*ValidMessage) Descriptor() ([]byte, []int) {
   108  	return file_nonce_proto_rawDescGZIP(), []int{1}
   109  }
   110  
   111  func (x *ValidMessage) GetValid() bool {
   112  	if x != nil {
   113  		return x.Valid
   114  	}
   115  	return false
   116  }
   117  
   118  var File_nonce_proto protoreflect.FileDescriptor
   119  
   120  var file_nonce_proto_rawDesc = []byte{
   121  	0x0a, 0x0b, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x6e,
   122  	0x6f, 0x6e, 0x63, 0x65, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
   123  	0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   124  	0x6f, 0x22, 0x24, 0x0a, 0x0c, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
   125  	0x65, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
   126  	0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x56, 0x61, 0x6c, 0x69, 0x64,
   127  	0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x69, 0x64,
   128  	0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x32, 0x7c, 0x0a,
   129  	0x0c, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x36, 0x0a,
   130  	0x05, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   131  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x13,
   132  	0x2e, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x2e, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x4d, 0x65, 0x73, 0x73,
   133  	0x61, 0x67, 0x65, 0x22, 0x00, 0x12, 0x34, 0x0a, 0x06, 0x52, 0x65, 0x64, 0x65, 0x65, 0x6d, 0x12,
   134  	0x13, 0x2e, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x2e, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x4d, 0x65, 0x73,
   135  	0x73, 0x61, 0x67, 0x65, 0x1a, 0x13, 0x2e, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x2e, 0x56, 0x61, 0x6c,
   136  	0x69, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x00, 0x42, 0x2c, 0x5a, 0x2a, 0x67,
   137  	0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x65, 0x74, 0x73, 0x65, 0x6e,
   138  	0x63, 0x72, 0x79, 0x70, 0x74, 0x2f, 0x62, 0x6f, 0x75, 0x6c, 0x64, 0x65, 0x72, 0x2f, 0x6e, 0x6f,
   139  	0x6e, 0x63, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   140  	0x33,
   141  }
   142  
   143  var (
   144  	file_nonce_proto_rawDescOnce sync.Once
   145  	file_nonce_proto_rawDescData = file_nonce_proto_rawDesc
   146  )
   147  
   148  func file_nonce_proto_rawDescGZIP() []byte {
   149  	file_nonce_proto_rawDescOnce.Do(func() {
   150  		file_nonce_proto_rawDescData = protoimpl.X.CompressGZIP(file_nonce_proto_rawDescData)
   151  	})
   152  	return file_nonce_proto_rawDescData
   153  }
   154  
   155  var file_nonce_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   156  var file_nonce_proto_goTypes = []interface{}{
   157  	(*NonceMessage)(nil),  // 0: nonce.NonceMessage
   158  	(*ValidMessage)(nil),  // 1: nonce.ValidMessage
   159  	(*emptypb.Empty)(nil), // 2: google.protobuf.Empty
   160  }
   161  var file_nonce_proto_depIdxs = []int32{
   162  	2, // 0: nonce.NonceService.Nonce:input_type -> google.protobuf.Empty
   163  	0, // 1: nonce.NonceService.Redeem:input_type -> nonce.NonceMessage
   164  	0, // 2: nonce.NonceService.Nonce:output_type -> nonce.NonceMessage
   165  	1, // 3: nonce.NonceService.Redeem:output_type -> nonce.ValidMessage
   166  	2, // [2:4] is the sub-list for method output_type
   167  	0, // [0:2] is the sub-list for method input_type
   168  	0, // [0:0] is the sub-list for extension type_name
   169  	0, // [0:0] is the sub-list for extension extendee
   170  	0, // [0:0] is the sub-list for field type_name
   171  }
   172  
   173  func init() { file_nonce_proto_init() }
   174  func file_nonce_proto_init() {
   175  	if File_nonce_proto != nil {
   176  		return
   177  	}
   178  	if !protoimpl.UnsafeEnabled {
   179  		file_nonce_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   180  			switch v := v.(*NonceMessage); i {
   181  			case 0:
   182  				return &v.state
   183  			case 1:
   184  				return &v.sizeCache
   185  			case 2:
   186  				return &v.unknownFields
   187  			default:
   188  				return nil
   189  			}
   190  		}
   191  		file_nonce_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   192  			switch v := v.(*ValidMessage); i {
   193  			case 0:
   194  				return &v.state
   195  			case 1:
   196  				return &v.sizeCache
   197  			case 2:
   198  				return &v.unknownFields
   199  			default:
   200  				return nil
   201  			}
   202  		}
   203  	}
   204  	type x struct{}
   205  	out := protoimpl.TypeBuilder{
   206  		File: protoimpl.DescBuilder{
   207  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   208  			RawDescriptor: file_nonce_proto_rawDesc,
   209  			NumEnums:      0,
   210  			NumMessages:   2,
   211  			NumExtensions: 0,
   212  			NumServices:   1,
   213  		},
   214  		GoTypes:           file_nonce_proto_goTypes,
   215  		DependencyIndexes: file_nonce_proto_depIdxs,
   216  		MessageInfos:      file_nonce_proto_msgTypes,
   217  	}.Build()
   218  	File_nonce_proto = out.File
   219  	file_nonce_proto_rawDesc = nil
   220  	file_nonce_proto_goTypes = nil
   221  	file_nonce_proto_depIdxs = nil
   222  }
   223  

View as plain text