github.com/letsencrypt/boulder@v0.20251208.0/nonce/proto/nonce.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: 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 unsafe "unsafe" 16 ) 17 18 const ( 19 // Verify that this generated code is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 21 // Verify that runtime/protoimpl is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 23 ) 24 25 type NonceMessage struct { 26 state protoimpl.MessageState `protogen:"open.v1"` 27 Nonce string `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` 28 unknownFields protoimpl.UnknownFields 29 sizeCache protoimpl.SizeCache 30 } 31 32 func (x *NonceMessage) Reset() { 33 *x = NonceMessage{} 34 mi := &file_nonce_proto_msgTypes[0] 35 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 36 ms.StoreMessageInfo(mi) 37 } 38 39 func (x *NonceMessage) String() string { 40 return protoimpl.X.MessageStringOf(x) 41 } 42 43 func (*NonceMessage) ProtoMessage() {} 44 45 func (x *NonceMessage) ProtoReflect() protoreflect.Message { 46 mi := &file_nonce_proto_msgTypes[0] 47 if x != nil { 48 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 49 if ms.LoadMessageInfo() == nil { 50 ms.StoreMessageInfo(mi) 51 } 52 return ms 53 } 54 return mi.MessageOf(x) 55 } 56 57 // Deprecated: Use NonceMessage.ProtoReflect.Descriptor instead. 58 func (*NonceMessage) Descriptor() ([]byte, []int) { 59 return file_nonce_proto_rawDescGZIP(), []int{0} 60 } 61 62 func (x *NonceMessage) GetNonce() string { 63 if x != nil { 64 return x.Nonce 65 } 66 return "" 67 } 68 69 type ValidMessage struct { 70 state protoimpl.MessageState `protogen:"open.v1"` 71 Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` 72 unknownFields protoimpl.UnknownFields 73 sizeCache protoimpl.SizeCache 74 } 75 76 func (x *ValidMessage) Reset() { 77 *x = ValidMessage{} 78 mi := &file_nonce_proto_msgTypes[1] 79 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 80 ms.StoreMessageInfo(mi) 81 } 82 83 func (x *ValidMessage) String() string { 84 return protoimpl.X.MessageStringOf(x) 85 } 86 87 func (*ValidMessage) ProtoMessage() {} 88 89 func (x *ValidMessage) ProtoReflect() protoreflect.Message { 90 mi := &file_nonce_proto_msgTypes[1] 91 if x != nil { 92 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 93 if ms.LoadMessageInfo() == nil { 94 ms.StoreMessageInfo(mi) 95 } 96 return ms 97 } 98 return mi.MessageOf(x) 99 } 100 101 // Deprecated: Use ValidMessage.ProtoReflect.Descriptor instead. 102 func (*ValidMessage) Descriptor() ([]byte, []int) { 103 return file_nonce_proto_rawDescGZIP(), []int{1} 104 } 105 106 func (x *ValidMessage) GetValid() bool { 107 if x != nil { 108 return x.Valid 109 } 110 return false 111 } 112 113 var File_nonce_proto protoreflect.FileDescriptor 114 115 var file_nonce_proto_rawDesc = string([]byte{ 116 0x0a, 0x0b, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x6e, 117 0x6f, 0x6e, 0x63, 0x65, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 118 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 119 0x6f, 0x22, 0x24, 0x0a, 0x0c, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 120 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 121 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x56, 0x61, 0x6c, 0x69, 0x64, 122 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x69, 0x64, 123 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x32, 0x7c, 0x0a, 124 0x0c, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x36, 0x0a, 125 0x05, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 126 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x13, 127 0x2e, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x2e, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x4d, 0x65, 0x73, 0x73, 128 0x61, 0x67, 0x65, 0x22, 0x00, 0x12, 0x34, 0x0a, 0x06, 0x52, 0x65, 0x64, 0x65, 0x65, 0x6d, 0x12, 129 0x13, 0x2e, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x2e, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x4d, 0x65, 0x73, 130 0x73, 0x61, 0x67, 0x65, 0x1a, 0x13, 0x2e, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x2e, 0x56, 0x61, 0x6c, 131 0x69, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x00, 0x42, 0x2c, 0x5a, 0x2a, 0x67, 132 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x65, 0x74, 0x73, 0x65, 0x6e, 133 0x63, 0x72, 0x79, 0x70, 0x74, 0x2f, 0x62, 0x6f, 0x75, 0x6c, 0x64, 0x65, 0x72, 0x2f, 0x6e, 0x6f, 134 0x6e, 0x63, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 135 0x33, 136 }) 137 138 var ( 139 file_nonce_proto_rawDescOnce sync.Once 140 file_nonce_proto_rawDescData []byte 141 ) 142 143 func file_nonce_proto_rawDescGZIP() []byte { 144 file_nonce_proto_rawDescOnce.Do(func() { 145 file_nonce_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_nonce_proto_rawDesc), len(file_nonce_proto_rawDesc))) 146 }) 147 return file_nonce_proto_rawDescData 148 } 149 150 var file_nonce_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 151 var file_nonce_proto_goTypes = []any{ 152 (*NonceMessage)(nil), // 0: nonce.NonceMessage 153 (*ValidMessage)(nil), // 1: nonce.ValidMessage 154 (*emptypb.Empty)(nil), // 2: google.protobuf.Empty 155 } 156 var file_nonce_proto_depIdxs = []int32{ 157 2, // 0: nonce.NonceService.Nonce:input_type -> google.protobuf.Empty 158 0, // 1: nonce.NonceService.Redeem:input_type -> nonce.NonceMessage 159 0, // 2: nonce.NonceService.Nonce:output_type -> nonce.NonceMessage 160 1, // 3: nonce.NonceService.Redeem:output_type -> nonce.ValidMessage 161 2, // [2:4] is the sub-list for method output_type 162 0, // [0:2] is the sub-list for method input_type 163 0, // [0:0] is the sub-list for extension type_name 164 0, // [0:0] is the sub-list for extension extendee 165 0, // [0:0] is the sub-list for field type_name 166 } 167 168 func init() { file_nonce_proto_init() } 169 func file_nonce_proto_init() { 170 if File_nonce_proto != nil { 171 return 172 } 173 type x struct{} 174 out := protoimpl.TypeBuilder{ 175 File: protoimpl.DescBuilder{ 176 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 177 RawDescriptor: unsafe.Slice(unsafe.StringData(file_nonce_proto_rawDesc), len(file_nonce_proto_rawDesc)), 178 NumEnums: 0, 179 NumMessages: 2, 180 NumExtensions: 0, 181 NumServices: 1, 182 }, 183 GoTypes: file_nonce_proto_goTypes, 184 DependencyIndexes: file_nonce_proto_depIdxs, 185 MessageInfos: file_nonce_proto_msgTypes, 186 }.Build() 187 File_nonce_proto = out.File 188 file_nonce_proto_goTypes = nil 189 file_nonce_proto_depIdxs = nil 190 }