diff --git a/Makefile b/Makefile index 811b80e..b0435d4 100644 --- a/Makefile +++ b/Makefile @@ -64,7 +64,7 @@ lint: ## Lint go source code .PHONY: lint # --- Protos --------------------------------------------------------------------- -PROTOFILES = $(shell find proto -name google -prune -o -regex '.*/[^_].*\.proto' -print | LANG=C sort) +PROTOFILES = $(shell find proto -name google -prune -o -regex '.*/[^_][^/]*\.proto' -print | LANG=C sort) lint-proto: ## Lint *.proto files buf lint proto diff --git a/bones/exemplar.go b/bones/exemplar.go index a23c370..db12552 100644 --- a/bones/exemplar.go +++ b/bones/exemplar.go @@ -62,6 +62,12 @@ func MethodExemplar(md protoreflect.MethodDescriptor) exemplar { func MessageExemplar(md protoreflect.MessageDescriptor) exemplar { var e exemplar + if strings.HasPrefix(string(md.FullName()), "google.protobuf.") { + if e = WellKnownExemplar(md); len(e.lines) > 0 { + return e + } + } + for _, fd := range fields(md) { fe := FieldExemplar(fd) if fd.ContainingOneof() != nil { @@ -75,6 +81,46 @@ func MessageExemplar(md protoreflect.MessageDescriptor) exemplar { return e } +// WellKnownExemplar returns an exemplar for a well-known type (those in the +// google.protobuf package). These are typically messages that are rendered in +// JSON as a single field, rather than as an object. +// +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf +func WellKnownExemplar(md protoreflect.MessageDescriptor) exemplar { + var e exemplar + switch string(md.Name()) { + case "Api", "Enum", "EnumValue", "Field", "Method", "Mixin", "Option", "SourceContext", "Type": + return e // empty exemplar. will be formatted as a message + case "Any": + // Emit an Any that can be read back in without modification + // Duration chosen at random, almost. Also for its simplicity. + e.line(`"@type": "type.googleapis.com/google.protobuf.Duration",`) + e.line(`value: "0s",`) + e.nest("{", "}") + case "BoolValue", "BytesValue", "DoubleValue", "FloatValue", + "Int32Value", "Int64Value", "StringValue", "UInt32Value", "UInt64Value": + return FieldValueExemplar(md.Fields().ByName("value")) + case "Duration": + e.line(`"0s"`) + case "Empty": + e.line("{}") + case "FieldMask": + e.line(`"field1.field2,field3"`) + case "ListValue": + return FieldValueExemplar(md.Fields().ByName("values")) + case "Struct": + e = FieldValueExemplar(md.Fields().Get(0).MapValue()) + e.prepend("structField: ") + e.append(",") + e.nest("{", "}") + case "Timestamp": + e.line(`"2006-01-02T15:04:05.999999999Z"`) + case "Value": + e.line(`"https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#value"`) + } + return e +} + // FieldExemplar returns an exemplar for a message field. It has the JSON name // for the field prefixed and a comment appended to the first line describing // the type of the field. @@ -133,6 +179,13 @@ func EnumExemplar(fd protoreflect.FieldDescriptor) exemplar { if fd.Kind() != protoreflect.EnumKind { return e } + + // The well-known google.protobuf.NullValue enum renders as "null" + if fd.Enum().FullName() == "google.protobuf.NullValue" { + e.line("null") + return e + } + ev := fd.Enum().Values() name := ev.Get(0).Name() if ev.Len() > 1 { diff --git a/bones/generate_test.go b/bones/generate_test.go index b8b642e..3cf4429 100644 --- a/bones/generate_test.go +++ b/bones/generate_test.go @@ -44,6 +44,6 @@ func requireSameContent(t *testing.T, wantDir, gotDir string) { gotFileName := filepath.Join(gotDir, gotFile.Name()) gotBytes, err := os.ReadFile(gotFileName) require.NoError(t, err) - require.Equalf(t, wantBytes, gotBytes, "file contents are not the same want: %s, got: %s", wantFile.Name(), gotFile.Name()) + require.Equalf(t, string(wantBytes), string(gotBytes), "file contents are not the same for %s", wantFile.Name()) } } diff --git a/bones/testdata/golden/exemplar/exemplar.Exemplar.WellKnown.jsonnet b/bones/testdata/golden/exemplar/exemplar.Exemplar.WellKnown.jsonnet new file mode 100644 index 0000000..a6e2e24 --- /dev/null +++ b/bones/testdata/golden/exemplar/exemplar.Exemplar.WellKnown.jsonnet @@ -0,0 +1,212 @@ +// exemplar.Exemplar.WellKnown (Unary) + +// Input: +// { +// request: { +// name: "", // string +// }, +// } + +function(input) { + response: { + any: { // Any + "@type": "type.googleapis.com/google.protobuf.Duration", + value: "0s", + }, + api: { // Api + name: "", // string + methods: [ // repeated Method + { + name: "", // string + requestTypeUrl: "", // string + requestStreaming: false, // bool + responseTypeUrl: "", // string + responseStreaming: false, // bool + options: [ // repeated Option + { + name: "", // string + value: { // Any + "@type": "type.googleapis.com/google.protobuf.Duration", + value: "0s", + }, + } + ], + syntax: "SYNTAX_PROTO3", // Syntax + } + ], + options: [ // repeated Option + { + name: "", // string + value: { // Any + "@type": "type.googleapis.com/google.protobuf.Duration", + value: "0s", + }, + } + ], + version: "", // string + sourceContext: { // SourceContext + fileName: "", // string + }, + mixins: [ // repeated Mixin + { + name: "", // string + root: "", // string + } + ], + syntax: "SYNTAX_PROTO3", // Syntax + }, + boolValue: false, // BoolValue + bytesValue: "", // BytesValue + doubleValue: 0.0, // DoubleValue + duration: "0s", // Duration + empty: {}, // Empty + anEnum: { // Enum + name: "", // string + enumvalue: [ // repeated EnumValue + { + name: "", // string + number: 0, // int32 + options: [ // repeated Option + { + name: "", // string + value: { // Any + "@type": "type.googleapis.com/google.protobuf.Duration", + value: "0s", + }, + } + ], + } + ], + options: [ // repeated Option + { + name: "", // string + value: { // Any + "@type": "type.googleapis.com/google.protobuf.Duration", + value: "0s", + }, + } + ], + sourceContext: { // SourceContext + fileName: "", // string + }, + syntax: "SYNTAX_PROTO3", // Syntax + }, + enumValue: { // EnumValue + name: "", // string + number: 0, // int32 + options: [ // repeated Option + { + name: "", // string + value: { // Any + "@type": "type.googleapis.com/google.protobuf.Duration", + value: "0s", + }, + } + ], + }, + field: { // Field + kind: "TYPE_DOUBLE", // Kind + cardinality: "CARDINALITY_OPTIONAL", // Cardinality + number: 0, // int32 + name: "", // string + typeUrl: "", // string + oneofIndex: 0, // int32 + packed: false, // bool + options: [ // repeated Option + { + name: "", // string + value: { // Any + "@type": "type.googleapis.com/google.protobuf.Duration", + value: "0s", + }, + } + ], + jsonName: "", // string + defaultValue: "", // string + }, + fieldMask: "field1.field2,field3", // FieldMask + floatValue: 0.0, // FloatValue + int32Value: 0, // Int32Value + int64Value: 0, // Int64Value + listValue: ["https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#value"], // ListValue + method: { // Method + name: "", // string + requestTypeUrl: "", // string + requestStreaming: false, // bool + responseTypeUrl: "", // string + responseStreaming: false, // bool + options: [ // repeated Option + { + name: "", // string + value: { // Any + "@type": "type.googleapis.com/google.protobuf.Duration", + value: "0s", + }, + } + ], + syntax: "SYNTAX_PROTO3", // Syntax + }, + mixin: { // Mixin + name: "", // string + root: "", // string + }, + nullValue: null, // NullValue + anOption: { // Option + name: "", // string + value: { // Any + "@type": "type.googleapis.com/google.protobuf.Duration", + value: "0s", + }, + }, + sourceContext: { // SourceContext + fileName: "", // string + }, + stringValue: "", // StringValue + struct: { // Struct + structField: "https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#value", + }, + timestamp: "2006-01-02T15:04:05.999999999Z", // Timestamp + type: { // Type + name: "", // string + fields: [ // repeated Field + { + kind: "TYPE_DOUBLE", // Kind + cardinality: "CARDINALITY_OPTIONAL", // Cardinality + number: 0, // int32 + name: "", // string + typeUrl: "", // string + oneofIndex: 0, // int32 + packed: false, // bool + options: [ // repeated Option + { + name: "", // string + value: { // Any + "@type": "type.googleapis.com/google.protobuf.Duration", + value: "0s", + }, + } + ], + jsonName: "", // string + defaultValue: "", // string + } + ], + oneofs: [""], // repeated string + options: [ // repeated Option + { + name: "", // string + value: { // Any + "@type": "type.googleapis.com/google.protobuf.Duration", + value: "0s", + }, + } + ], + sourceContext: { // SourceContext + fileName: "", // string + }, + syntax: "SYNTAX_PROTO3", // Syntax + }, + uint32Value: 0, // UInt32Value + uint64Value: 0, // UInt64Value + value: "https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#value", // Value + }, +} diff --git a/pb/exemplar/exemplar.pb b/pb/exemplar/exemplar.pb index 020cea6..ee64bf1 100644 Binary files a/pb/exemplar/exemplar.pb and b/pb/exemplar/exemplar.pb differ diff --git a/pb/exemplar/exemplar.pb.go b/pb/exemplar/exemplar.pb.go index 8db08ed..7e9826e 100644 --- a/pb/exemplar/exemplar.pb.go +++ b/pb/exemplar/exemplar.pb.go @@ -11,6 +11,16 @@ package exemplar import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + apipb "google.golang.org/protobuf/types/known/apipb" + durationpb "google.golang.org/protobuf/types/known/durationpb" + emptypb "google.golang.org/protobuf/types/known/emptypb" + fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" + sourcecontextpb "google.golang.org/protobuf/types/known/sourcecontextpb" + structpb "google.golang.org/protobuf/types/known/structpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + typepb "google.golang.org/protobuf/types/known/typepb" + wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" reflect "reflect" sync "sync" ) @@ -396,6 +406,261 @@ func (*SampleResponse_AEnumOneof) isSampleResponse_AOneof() {} func (*SampleResponse_AMessageOneof) isSampleResponse_AOneof() {} +type WellKnownSample struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Any *anypb.Any `protobuf:"bytes,1,opt,name=any,proto3" json:"any,omitempty"` + Api *apipb.Api `protobuf:"bytes,2,opt,name=api,proto3" json:"api,omitempty"` + BoolValue *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=bool_value,json=boolValue,proto3" json:"bool_value,omitempty"` + BytesValue *wrapperspb.BytesValue `protobuf:"bytes,4,opt,name=bytes_value,json=bytesValue,proto3" json:"bytes_value,omitempty"` + DoubleValue *wrapperspb.DoubleValue `protobuf:"bytes,5,opt,name=double_value,json=doubleValue,proto3" json:"double_value,omitempty"` + Duration *durationpb.Duration `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"` + Empty *emptypb.Empty `protobuf:"bytes,7,opt,name=empty,proto3" json:"empty,omitempty"` + AnEnum *typepb.Enum `protobuf:"bytes,8,opt,name=an_enum,json=anEnum,proto3" json:"an_enum,omitempty"` + EnumValue *typepb.EnumValue `protobuf:"bytes,9,opt,name=enum_value,json=enumValue,proto3" json:"enum_value,omitempty"` + Field *typepb.Field `protobuf:"bytes,10,opt,name=field,proto3" json:"field,omitempty"` + FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,11,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` + FloatValue *wrapperspb.FloatValue `protobuf:"bytes,12,opt,name=float_value,json=floatValue,proto3" json:"float_value,omitempty"` + Int32Value *wrapperspb.Int32Value `protobuf:"bytes,13,opt,name=int32_value,json=int32Value,proto3" json:"int32_value,omitempty"` + Int64Value *wrapperspb.Int64Value `protobuf:"bytes,14,opt,name=int64_value,json=int64Value,proto3" json:"int64_value,omitempty"` + ListValue *structpb.ListValue `protobuf:"bytes,15,opt,name=list_value,json=listValue,proto3" json:"list_value,omitempty"` + Method *apipb.Method `protobuf:"bytes,16,opt,name=method,proto3" json:"method,omitempty"` + Mixin *apipb.Mixin `protobuf:"bytes,17,opt,name=mixin,proto3" json:"mixin,omitempty"` + NullValue structpb.NullValue `protobuf:"varint,18,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue" json:"null_value,omitempty"` + AnOption *typepb.Option `protobuf:"bytes,19,opt,name=an_option,json=anOption,proto3" json:"an_option,omitempty"` + SourceContext *sourcecontextpb.SourceContext `protobuf:"bytes,20,opt,name=source_context,json=sourceContext,proto3" json:"source_context,omitempty"` + StringValue *wrapperspb.StringValue `protobuf:"bytes,21,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"` + Struct *structpb.Struct `protobuf:"bytes,22,opt,name=struct,proto3" json:"struct,omitempty"` + Timestamp *timestamppb.Timestamp `protobuf:"bytes,23,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Type *typepb.Type `protobuf:"bytes,24,opt,name=type,proto3" json:"type,omitempty"` + Uint32Value *wrapperspb.UInt32Value `protobuf:"bytes,25,opt,name=uint32_value,json=uint32Value,proto3" json:"uint32_value,omitempty"` + Uint64Value *wrapperspb.UInt64Value `protobuf:"bytes,26,opt,name=uint64_value,json=uint64Value,proto3" json:"uint64_value,omitempty"` + Value *structpb.Value `protobuf:"bytes,27,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *WellKnownSample) Reset() { + *x = WellKnownSample{} + if protoimpl.UnsafeEnabled { + mi := &file_exemplar_exemplar_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WellKnownSample) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WellKnownSample) ProtoMessage() {} + +func (x *WellKnownSample) ProtoReflect() protoreflect.Message { + mi := &file_exemplar_exemplar_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WellKnownSample.ProtoReflect.Descriptor instead. +func (*WellKnownSample) Descriptor() ([]byte, []int) { + return file_exemplar_exemplar_proto_rawDescGZIP(), []int{2} +} + +func (x *WellKnownSample) GetAny() *anypb.Any { + if x != nil { + return x.Any + } + return nil +} + +func (x *WellKnownSample) GetApi() *apipb.Api { + if x != nil { + return x.Api + } + return nil +} + +func (x *WellKnownSample) GetBoolValue() *wrapperspb.BoolValue { + if x != nil { + return x.BoolValue + } + return nil +} + +func (x *WellKnownSample) GetBytesValue() *wrapperspb.BytesValue { + if x != nil { + return x.BytesValue + } + return nil +} + +func (x *WellKnownSample) GetDoubleValue() *wrapperspb.DoubleValue { + if x != nil { + return x.DoubleValue + } + return nil +} + +func (x *WellKnownSample) GetDuration() *durationpb.Duration { + if x != nil { + return x.Duration + } + return nil +} + +func (x *WellKnownSample) GetEmpty() *emptypb.Empty { + if x != nil { + return x.Empty + } + return nil +} + +func (x *WellKnownSample) GetAnEnum() *typepb.Enum { + if x != nil { + return x.AnEnum + } + return nil +} + +func (x *WellKnownSample) GetEnumValue() *typepb.EnumValue { + if x != nil { + return x.EnumValue + } + return nil +} + +func (x *WellKnownSample) GetField() *typepb.Field { + if x != nil { + return x.Field + } + return nil +} + +func (x *WellKnownSample) GetFieldMask() *fieldmaskpb.FieldMask { + if x != nil { + return x.FieldMask + } + return nil +} + +func (x *WellKnownSample) GetFloatValue() *wrapperspb.FloatValue { + if x != nil { + return x.FloatValue + } + return nil +} + +func (x *WellKnownSample) GetInt32Value() *wrapperspb.Int32Value { + if x != nil { + return x.Int32Value + } + return nil +} + +func (x *WellKnownSample) GetInt64Value() *wrapperspb.Int64Value { + if x != nil { + return x.Int64Value + } + return nil +} + +func (x *WellKnownSample) GetListValue() *structpb.ListValue { + if x != nil { + return x.ListValue + } + return nil +} + +func (x *WellKnownSample) GetMethod() *apipb.Method { + if x != nil { + return x.Method + } + return nil +} + +func (x *WellKnownSample) GetMixin() *apipb.Mixin { + if x != nil { + return x.Mixin + } + return nil +} + +func (x *WellKnownSample) GetNullValue() structpb.NullValue { + if x != nil { + return x.NullValue + } + return structpb.NullValue(0) +} + +func (x *WellKnownSample) GetAnOption() *typepb.Option { + if x != nil { + return x.AnOption + } + return nil +} + +func (x *WellKnownSample) GetSourceContext() *sourcecontextpb.SourceContext { + if x != nil { + return x.SourceContext + } + return nil +} + +func (x *WellKnownSample) GetStringValue() *wrapperspb.StringValue { + if x != nil { + return x.StringValue + } + return nil +} + +func (x *WellKnownSample) GetStruct() *structpb.Struct { + if x != nil { + return x.Struct + } + return nil +} + +func (x *WellKnownSample) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +func (x *WellKnownSample) GetType() *typepb.Type { + if x != nil { + return x.Type + } + return nil +} + +func (x *WellKnownSample) GetUint32Value() *wrapperspb.UInt32Value { + if x != nil { + return x.Uint32Value + } + return nil +} + +func (x *WellKnownSample) GetUint64Value() *wrapperspb.UInt64Value { + if x != nil { + return x.Uint64Value + } + return nil +} + +func (x *WellKnownSample) GetValue() *structpb.Value { + if x != nil { + return x.Value + } + return nil +} + // Message type SampleResponse_SampleMessage1 struct { state protoimpl.MessageState @@ -409,7 +674,7 @@ type SampleResponse_SampleMessage1 struct { func (x *SampleResponse_SampleMessage1) Reset() { *x = SampleResponse_SampleMessage1{} if protoimpl.UnsafeEnabled { - mi := &file_exemplar_exemplar_proto_msgTypes[2] + mi := &file_exemplar_exemplar_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -422,7 +687,7 @@ func (x *SampleResponse_SampleMessage1) String() string { func (*SampleResponse_SampleMessage1) ProtoMessage() {} func (x *SampleResponse_SampleMessage1) ProtoReflect() protoreflect.Message { - mi := &file_exemplar_exemplar_proto_msgTypes[2] + mi := &file_exemplar_exemplar_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -466,7 +731,7 @@ type SampleResponse_SampleMessage2 struct { func (x *SampleResponse_SampleMessage2) Reset() { *x = SampleResponse_SampleMessage2{} if protoimpl.UnsafeEnabled { - mi := &file_exemplar_exemplar_proto_msgTypes[3] + mi := &file_exemplar_exemplar_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -479,7 +744,7 @@ func (x *SampleResponse_SampleMessage2) String() string { func (*SampleResponse_SampleMessage2) ProtoMessage() {} func (x *SampleResponse_SampleMessage2) ProtoReflect() protoreflect.Message { - mi := &file_exemplar_exemplar_proto_msgTypes[3] + mi := &file_exemplar_exemplar_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -521,113 +786,231 @@ var File_exemplar_exemplar_proto protoreflect.FileDescriptor var file_exemplar_exemplar_proto_rawDesc = []byte{ 0x0a, 0x17, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x2f, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x65, 0x78, 0x65, 0x6d, 0x70, - 0x6c, 0x61, 0x72, 0x22, 0x23, 0x0a, 0x0d, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8b, 0x0c, 0x0a, 0x0e, 0x53, 0x61, 0x6d, - 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x61, - 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x61, 0x42, 0x6f, - 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x61, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x06, 0x61, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x61, - 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x03, 0x20, 0x01, 0x28, 0x11, 0x52, 0x07, 0x61, - 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x5f, 0x73, 0x66, 0x69, 0x78, - 0x65, 0x64, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x61, 0x53, 0x66, 0x69, - 0x78, 0x65, 0x64, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, - 0x32, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x61, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, - 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x07, 0x52, 0x08, 0x61, 0x46, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12, 0x17, 0x0a, - 0x07, 0x61, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, - 0x61, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x5f, 0x73, 0x69, 0x6e, 0x74, - 0x36, 0x34, 0x18, 0x08, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, 0x61, 0x53, 0x69, 0x6e, 0x74, 0x36, - 0x34, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, - 0x09, 0x20, 0x01, 0x28, 0x10, 0x52, 0x09, 0x61, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, - 0x12, 0x19, 0x0a, 0x08, 0x61, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x0a, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x07, 0x61, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1b, 0x0a, 0x09, 0x61, - 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, - 0x61, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x17, 0x0a, 0x07, 0x61, 0x5f, 0x66, 0x6c, - 0x6f, 0x61, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x02, 0x52, 0x06, 0x61, 0x46, 0x6c, 0x6f, 0x61, - 0x74, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18, 0x0d, 0x20, - 0x01, 0x28, 0x01, 0x52, 0x07, 0x61, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x12, 0x19, 0x0a, 0x08, - 0x61, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x17, 0x0a, 0x07, 0x61, 0x5f, 0x62, 0x79, 0x74, - 0x65, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x61, 0x42, 0x79, 0x74, 0x65, 0x73, - 0x12, 0x3a, 0x0a, 0x06, 0x61, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x23, 0x2e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x2e, 0x53, 0x61, 0x6d, 0x70, - 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, - 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x61, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x44, 0x0a, 0x09, - 0x61, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x27, 0x2e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, - 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x52, 0x08, 0x61, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x12, 0x37, 0x0a, 0x05, 0x61, 0x5f, 0x6d, 0x61, 0x70, 0x18, 0x12, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x22, 0x2e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x2e, 0x53, 0x61, 0x6d, - 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x4d, 0x61, 0x70, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x61, 0x4d, 0x61, 0x70, 0x12, 0x44, 0x0a, 0x0a, 0x61, - 0x5f, 0x64, 0x65, 0x65, 0x70, 0x5f, 0x6d, 0x61, 0x70, 0x18, 0x13, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x26, 0x2e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x44, 0x65, 0x65, 0x70, 0x4d, - 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x61, 0x44, 0x65, 0x65, 0x70, 0x4d, 0x61, - 0x70, 0x12, 0x1c, 0x0a, 0x0a, 0x61, 0x5f, 0x69, 0x6e, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, - 0x14, 0x20, 0x03, 0x28, 0x05, 0x52, 0x08, 0x61, 0x49, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, - 0x43, 0x0a, 0x0b, 0x61, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x15, - 0x20, 0x03, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x2e, - 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, - 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x09, 0x61, 0x45, 0x6e, 0x75, 0x6d, - 0x4c, 0x69, 0x73, 0x74, 0x12, 0x4d, 0x0a, 0x0e, 0x61, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x16, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x65, - 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x31, 0x52, 0x0c, 0x61, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, - 0x69, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x61, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, - 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x61, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x12, 0x47, 0x0a, 0x0c, 0x61, - 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x18, 0x18, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x23, 0x2e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x2e, 0x53, 0x61, 0x6d, - 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x61, 0x6d, 0x70, - 0x6c, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x45, 0x6e, 0x75, 0x6d, 0x4f, - 0x6e, 0x65, 0x6f, 0x66, 0x12, 0x51, 0x0a, 0x0f, 0x61, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x5f, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x18, 0x19, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, + 0x6c, 0x61, 0x72, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, + 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, + 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, + 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, + 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, + 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x23, 0x0a, 0x0d, 0x53, 0x61, 0x6d, + 0x70, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8b, + 0x0c, 0x0a, 0x0e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x15, 0x0a, 0x06, 0x61, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x05, 0x61, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x61, 0x5f, 0x69, 0x6e, + 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x61, 0x49, 0x6e, 0x74, 0x33, + 0x32, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x11, 0x52, 0x07, 0x61, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x1d, 0x0a, 0x0a, + 0x61, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0f, + 0x52, 0x09, 0x61, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x61, + 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x61, + 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x5f, 0x66, 0x69, 0x78, 0x65, + 0x64, 0x33, 0x32, 0x18, 0x06, 0x20, 0x01, 0x28, 0x07, 0x52, 0x08, 0x61, 0x46, 0x69, 0x78, 0x65, + 0x64, 0x33, 0x32, 0x12, 0x17, 0x0a, 0x07, 0x61, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, + 0x61, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x08, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, + 0x61, 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x5f, 0x73, 0x66, 0x69, + 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x09, 0x20, 0x01, 0x28, 0x10, 0x52, 0x09, 0x61, 0x53, 0x66, + 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x5f, 0x75, 0x69, 0x6e, 0x74, + 0x36, 0x34, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x61, 0x55, 0x69, 0x6e, 0x74, 0x36, + 0x34, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x61, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x17, + 0x0a, 0x07, 0x61, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x02, 0x52, + 0x06, 0x61, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x5f, 0x64, 0x6f, 0x75, + 0x62, 0x6c, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x61, 0x44, 0x6f, 0x75, 0x62, + 0x6c, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0e, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x17, 0x0a, + 0x07, 0x61, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, + 0x61, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x3a, 0x0a, 0x06, 0x61, 0x5f, 0x65, 0x6e, 0x75, 0x6d, + 0x18, 0x10, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, + 0x72, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x61, 0x45, 0x6e, + 0x75, 0x6d, 0x12, 0x44, 0x0a, 0x09, 0x61, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, + 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, + 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, + 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x52, 0x08, + 0x61, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x37, 0x0a, 0x05, 0x61, 0x5f, 0x6d, 0x61, + 0x70, 0x18, 0x12, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x72, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x41, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x61, 0x4d, 0x61, + 0x70, 0x12, 0x44, 0x0a, 0x0a, 0x61, 0x5f, 0x64, 0x65, 0x65, 0x70, 0x5f, 0x6d, 0x61, 0x70, 0x18, + 0x13, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, + 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, + 0x41, 0x44, 0x65, 0x65, 0x70, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x61, + 0x44, 0x65, 0x65, 0x70, 0x4d, 0x61, 0x70, 0x12, 0x1c, 0x0a, 0x0a, 0x61, 0x5f, 0x69, 0x6e, 0x74, + 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x14, 0x20, 0x03, 0x28, 0x05, 0x52, 0x08, 0x61, 0x49, 0x6e, + 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x0b, 0x61, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, + 0x6c, 0x69, 0x73, 0x74, 0x18, 0x15, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x65, 0x78, 0x65, + 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x52, + 0x09, 0x61, 0x45, 0x6e, 0x75, 0x6d, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x4d, 0x0a, 0x0e, 0x61, 0x5f, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x16, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x2e, 0x53, 0x61, + 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x61, 0x6d, + 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x52, 0x0c, 0x61, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x61, 0x5f, 0x73, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x18, 0x17, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4f, 0x6e, 0x65, 0x6f, + 0x66, 0x12, 0x47, 0x0a, 0x0c, 0x61, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x6f, 0x6e, 0x65, 0x6f, + 0x66, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x72, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x0a, + 0x61, 0x45, 0x6e, 0x75, 0x6d, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x12, 0x51, 0x0a, 0x0f, 0x61, 0x5f, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x18, 0x19, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x2e, 0x53, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x61, + 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x48, 0x00, 0x52, 0x0d, + 0x61, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x1a, 0x3e, 0x0a, + 0x0e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x12, + 0x14, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x06, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x1a, 0xa8, 0x01, + 0x0a, 0x0e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, + 0x12, 0x2b, 0x0a, 0x12, 0x77, 0x65, 0x69, 0x72, 0x64, 0x5f, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, + 0x61, 0x6d, 0x65, 0x5f, 0x31, 0x5f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x77, 0x65, + 0x69, 0x72, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x31, 0x12, 0x22, 0x0a, + 0x0d, 0x61, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4c, 0x69, 0x73, + 0x74, 0x12, 0x45, 0x0a, 0x0a, 0x61, 0x5f, 0x6d, 0x73, 0x67, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, + 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, + 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x52, 0x08, + 0x61, 0x4d, 0x73, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x1a, 0x37, 0x0a, 0x09, 0x41, 0x4d, 0x61, 0x70, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x1a, 0x64, 0x0a, 0x0d, 0x41, 0x44, 0x65, 0x65, 0x70, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x2e, 0x53, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x61, + 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x58, 0x0a, 0x0a, 0x53, 0x61, 0x6d, 0x70, 0x6c, + 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x5f, + 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, + 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x5f, 0x45, 0x4e, 0x55, + 0x4d, 0x5f, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x41, 0x4d, + 0x50, 0x4c, 0x45, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, + 0x02, 0x42, 0x09, 0x0a, 0x07, 0x61, 0x5f, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x22, 0xe7, 0x0b, 0x0a, + 0x0f, 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, + 0x12, 0x26, 0x0a, 0x03, 0x61, 0x6e, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x41, 0x6e, 0x79, 0x52, 0x03, 0x61, 0x6e, 0x79, 0x12, 0x26, 0x0a, 0x03, 0x61, 0x70, 0x69, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x70, 0x69, 0x52, 0x03, 0x61, 0x70, 0x69, + 0x12, 0x39, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x62, + 0x79, 0x74, 0x65, 0x73, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x42, 0x79, 0x74, 0x65, 0x73, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x62, + 0x79, 0x74, 0x65, 0x73, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x64, 0x6f, 0x75, + 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0b, 0x64, + 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x64, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x2c, 0x0a, 0x05, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x05, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x12, + 0x2e, 0x0a, 0x07, 0x61, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, 0x61, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, + 0x39, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2c, 0x0a, 0x05, 0x66, 0x69, + 0x65, 0x6c, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, + 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4d, + 0x61, 0x73, 0x6b, 0x12, 0x3c, 0x0a, 0x0b, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x6c, 0x6f, 0x61, 0x74, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x3c, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0e, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x39, 0x0a, + 0x0a, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x6c, + 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, + 0x6f, 0x64, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x2c, 0x0a, 0x05, 0x6d, 0x69, 0x78, + 0x69, 0x6e, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x69, 0x78, 0x69, 0x6e, + 0x52, 0x05, 0x6d, 0x69, 0x78, 0x69, 0x6e, 0x12, 0x39, 0x0a, 0x0a, 0x6e, 0x75, 0x6c, 0x6c, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4e, 0x75, + 0x6c, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x6e, 0x75, 0x6c, 0x6c, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x34, 0x0a, 0x09, 0x61, 0x6e, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, + 0x61, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x45, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, + 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, + 0x3f, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x06, 0x73, 0x74, 0x72, 0x75, 0x63, + 0x74, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x17, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x29, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x19, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, + 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0b, 0x75, 0x69, 0x6e, 0x74, + 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, + 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x55, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0b, 0x75, 0x69, 0x6e, + 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x32, 0x88, 0x01, 0x0a, 0x08, 0x45, 0x78, 0x65, 0x6d, 0x70, + 0x6c, 0x61, 0x72, 0x12, 0x3b, 0x0a, 0x06, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x17, 0x2e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x48, 0x00, 0x52, 0x0d, 0x61, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x1a, 0x3e, 0x0a, 0x0e, 0x53, 0x61, 0x6d, 0x70, 0x6c, - 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, 0x65, - 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, - 0x16, 0x0a, 0x06, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, - 0x06, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x1a, 0xa8, 0x01, 0x0a, 0x0e, 0x53, 0x61, 0x6d, 0x70, - 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x12, 0x2b, 0x0a, 0x12, 0x77, 0x65, - 0x69, 0x72, 0x64, 0x5f, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x5f, 0x31, 0x5f, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x77, 0x65, 0x69, 0x72, 0x64, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x31, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x5f, 0x73, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, - 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x0a, 0x61, - 0x5f, 0x6d, 0x73, 0x67, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x27, 0x2e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, - 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x52, 0x08, 0x61, 0x4d, 0x73, 0x67, 0x4c, 0x69, - 0x73, 0x74, 0x1a, 0x37, 0x0a, 0x09, 0x41, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x64, 0x0a, 0x0d, 0x41, - 0x44, 0x65, 0x65, 0x70, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3d, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, + 0x72, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x3f, 0x0a, 0x09, 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x12, 0x17, 0x2e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, - 0x01, 0x22, 0x58, 0x0a, 0x0a, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x12, - 0x1b, 0x0a, 0x17, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x55, - 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, - 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x46, 0x49, 0x52, 0x53, - 0x54, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x5f, 0x45, 0x4e, - 0x55, 0x4d, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x02, 0x42, 0x09, 0x0a, 0x07, 0x61, - 0x5f, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x32, 0x47, 0x0a, 0x08, 0x45, 0x78, 0x65, 0x6d, 0x70, 0x6c, - 0x61, 0x72, 0x12, 0x3b, 0x0a, 0x06, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x17, 0x2e, 0x65, - 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, - 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, - 0x1b, 0x5a, 0x19, 0x66, 0x6f, 0x78, 0x79, 0x67, 0x6f, 0x2e, 0x61, 0x74, 0x2f, 0x6a, 0x69, 0x67, - 0x2f, 0x70, 0x62, 0x2f, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, + 0x72, 0x2e, 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, + 0x65, 0x42, 0x1b, 0x5a, 0x19, 0x66, 0x6f, 0x78, 0x79, 0x67, 0x6f, 0x2e, 0x61, 0x74, 0x2f, 0x6a, + 0x69, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -643,34 +1026,91 @@ func file_exemplar_exemplar_proto_rawDescGZIP() []byte { } var file_exemplar_exemplar_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_exemplar_exemplar_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_exemplar_exemplar_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_exemplar_exemplar_proto_goTypes = []interface{}{ (SampleResponse_SampleEnum)(0), // 0: exemplar.SampleResponse.SampleEnum (*SampleRequest)(nil), // 1: exemplar.SampleRequest (*SampleResponse)(nil), // 2: exemplar.SampleResponse - (*SampleResponse_SampleMessage1)(nil), // 3: exemplar.SampleResponse.SampleMessage1 - (*SampleResponse_SampleMessage2)(nil), // 4: exemplar.SampleResponse.SampleMessage2 - nil, // 5: exemplar.SampleResponse.AMapEntry - nil, // 6: exemplar.SampleResponse.ADeepMapEntry + (*WellKnownSample)(nil), // 3: exemplar.WellKnownSample + (*SampleResponse_SampleMessage1)(nil), // 4: exemplar.SampleResponse.SampleMessage1 + (*SampleResponse_SampleMessage2)(nil), // 5: exemplar.SampleResponse.SampleMessage2 + nil, // 6: exemplar.SampleResponse.AMapEntry + nil, // 7: exemplar.SampleResponse.ADeepMapEntry + (*anypb.Any)(nil), // 8: google.protobuf.Any + (*apipb.Api)(nil), // 9: google.protobuf.Api + (*wrapperspb.BoolValue)(nil), // 10: google.protobuf.BoolValue + (*wrapperspb.BytesValue)(nil), // 11: google.protobuf.BytesValue + (*wrapperspb.DoubleValue)(nil), // 12: google.protobuf.DoubleValue + (*durationpb.Duration)(nil), // 13: google.protobuf.Duration + (*emptypb.Empty)(nil), // 14: google.protobuf.Empty + (*typepb.Enum)(nil), // 15: google.protobuf.Enum + (*typepb.EnumValue)(nil), // 16: google.protobuf.EnumValue + (*typepb.Field)(nil), // 17: google.protobuf.Field + (*fieldmaskpb.FieldMask)(nil), // 18: google.protobuf.FieldMask + (*wrapperspb.FloatValue)(nil), // 19: google.protobuf.FloatValue + (*wrapperspb.Int32Value)(nil), // 20: google.protobuf.Int32Value + (*wrapperspb.Int64Value)(nil), // 21: google.protobuf.Int64Value + (*structpb.ListValue)(nil), // 22: google.protobuf.ListValue + (*apipb.Method)(nil), // 23: google.protobuf.Method + (*apipb.Mixin)(nil), // 24: google.protobuf.Mixin + (structpb.NullValue)(0), // 25: google.protobuf.NullValue + (*typepb.Option)(nil), // 26: google.protobuf.Option + (*sourcecontextpb.SourceContext)(nil), // 27: google.protobuf.SourceContext + (*wrapperspb.StringValue)(nil), // 28: google.protobuf.StringValue + (*structpb.Struct)(nil), // 29: google.protobuf.Struct + (*timestamppb.Timestamp)(nil), // 30: google.protobuf.Timestamp + (*typepb.Type)(nil), // 31: google.protobuf.Type + (*wrapperspb.UInt32Value)(nil), // 32: google.protobuf.UInt32Value + (*wrapperspb.UInt64Value)(nil), // 33: google.protobuf.UInt64Value + (*structpb.Value)(nil), // 34: google.protobuf.Value } var file_exemplar_exemplar_proto_depIdxs = []int32{ 0, // 0: exemplar.SampleResponse.a_enum:type_name -> exemplar.SampleResponse.SampleEnum - 3, // 1: exemplar.SampleResponse.a_message:type_name -> exemplar.SampleResponse.SampleMessage1 - 5, // 2: exemplar.SampleResponse.a_map:type_name -> exemplar.SampleResponse.AMapEntry - 6, // 3: exemplar.SampleResponse.a_deep_map:type_name -> exemplar.SampleResponse.ADeepMapEntry + 4, // 1: exemplar.SampleResponse.a_message:type_name -> exemplar.SampleResponse.SampleMessage1 + 6, // 2: exemplar.SampleResponse.a_map:type_name -> exemplar.SampleResponse.AMapEntry + 7, // 3: exemplar.SampleResponse.a_deep_map:type_name -> exemplar.SampleResponse.ADeepMapEntry 0, // 4: exemplar.SampleResponse.a_enum_list:type_name -> exemplar.SampleResponse.SampleEnum - 3, // 5: exemplar.SampleResponse.a_message_list:type_name -> exemplar.SampleResponse.SampleMessage1 + 4, // 5: exemplar.SampleResponse.a_message_list:type_name -> exemplar.SampleResponse.SampleMessage1 0, // 6: exemplar.SampleResponse.a_enum_oneof:type_name -> exemplar.SampleResponse.SampleEnum - 3, // 7: exemplar.SampleResponse.a_message_oneof:type_name -> exemplar.SampleResponse.SampleMessage1 - 3, // 8: exemplar.SampleResponse.SampleMessage2.a_msg_list:type_name -> exemplar.SampleResponse.SampleMessage1 - 4, // 9: exemplar.SampleResponse.ADeepMapEntry.value:type_name -> exemplar.SampleResponse.SampleMessage2 - 1, // 10: exemplar.Exemplar.Sample:input_type -> exemplar.SampleRequest - 2, // 11: exemplar.Exemplar.Sample:output_type -> exemplar.SampleResponse - 11, // [11:12] is the sub-list for method output_type - 10, // [10:11] is the sub-list for method input_type - 10, // [10:10] is the sub-list for extension type_name - 10, // [10:10] is the sub-list for extension extendee - 0, // [0:10] is the sub-list for field type_name + 4, // 7: exemplar.SampleResponse.a_message_oneof:type_name -> exemplar.SampleResponse.SampleMessage1 + 8, // 8: exemplar.WellKnownSample.any:type_name -> google.protobuf.Any + 9, // 9: exemplar.WellKnownSample.api:type_name -> google.protobuf.Api + 10, // 10: exemplar.WellKnownSample.bool_value:type_name -> google.protobuf.BoolValue + 11, // 11: exemplar.WellKnownSample.bytes_value:type_name -> google.protobuf.BytesValue + 12, // 12: exemplar.WellKnownSample.double_value:type_name -> google.protobuf.DoubleValue + 13, // 13: exemplar.WellKnownSample.duration:type_name -> google.protobuf.Duration + 14, // 14: exemplar.WellKnownSample.empty:type_name -> google.protobuf.Empty + 15, // 15: exemplar.WellKnownSample.an_enum:type_name -> google.protobuf.Enum + 16, // 16: exemplar.WellKnownSample.enum_value:type_name -> google.protobuf.EnumValue + 17, // 17: exemplar.WellKnownSample.field:type_name -> google.protobuf.Field + 18, // 18: exemplar.WellKnownSample.field_mask:type_name -> google.protobuf.FieldMask + 19, // 19: exemplar.WellKnownSample.float_value:type_name -> google.protobuf.FloatValue + 20, // 20: exemplar.WellKnownSample.int32_value:type_name -> google.protobuf.Int32Value + 21, // 21: exemplar.WellKnownSample.int64_value:type_name -> google.protobuf.Int64Value + 22, // 22: exemplar.WellKnownSample.list_value:type_name -> google.protobuf.ListValue + 23, // 23: exemplar.WellKnownSample.method:type_name -> google.protobuf.Method + 24, // 24: exemplar.WellKnownSample.mixin:type_name -> google.protobuf.Mixin + 25, // 25: exemplar.WellKnownSample.null_value:type_name -> google.protobuf.NullValue + 26, // 26: exemplar.WellKnownSample.an_option:type_name -> google.protobuf.Option + 27, // 27: exemplar.WellKnownSample.source_context:type_name -> google.protobuf.SourceContext + 28, // 28: exemplar.WellKnownSample.string_value:type_name -> google.protobuf.StringValue + 29, // 29: exemplar.WellKnownSample.struct:type_name -> google.protobuf.Struct + 30, // 30: exemplar.WellKnownSample.timestamp:type_name -> google.protobuf.Timestamp + 31, // 31: exemplar.WellKnownSample.type:type_name -> google.protobuf.Type + 32, // 32: exemplar.WellKnownSample.uint32_value:type_name -> google.protobuf.UInt32Value + 33, // 33: exemplar.WellKnownSample.uint64_value:type_name -> google.protobuf.UInt64Value + 34, // 34: exemplar.WellKnownSample.value:type_name -> google.protobuf.Value + 4, // 35: exemplar.SampleResponse.SampleMessage2.a_msg_list:type_name -> exemplar.SampleResponse.SampleMessage1 + 5, // 36: exemplar.SampleResponse.ADeepMapEntry.value:type_name -> exemplar.SampleResponse.SampleMessage2 + 1, // 37: exemplar.Exemplar.Sample:input_type -> exemplar.SampleRequest + 1, // 38: exemplar.Exemplar.WellKnown:input_type -> exemplar.SampleRequest + 2, // 39: exemplar.Exemplar.Sample:output_type -> exemplar.SampleResponse + 3, // 40: exemplar.Exemplar.WellKnown:output_type -> exemplar.WellKnownSample + 39, // [39:41] is the sub-list for method output_type + 37, // [37:39] is the sub-list for method input_type + 37, // [37:37] is the sub-list for extension type_name + 37, // [37:37] is the sub-list for extension extendee + 0, // [0:37] is the sub-list for field type_name } func init() { file_exemplar_exemplar_proto_init() } @@ -704,7 +1144,7 @@ func file_exemplar_exemplar_proto_init() { } } file_exemplar_exemplar_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SampleResponse_SampleMessage1); i { + switch v := v.(*WellKnownSample); i { case 0: return &v.state case 1: @@ -716,6 +1156,18 @@ func file_exemplar_exemplar_proto_init() { } } file_exemplar_exemplar_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SampleResponse_SampleMessage1); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_exemplar_exemplar_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SampleResponse_SampleMessage2); i { case 0: return &v.state @@ -739,7 +1191,7 @@ func file_exemplar_exemplar_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_exemplar_exemplar_proto_rawDesc, NumEnums: 1, - NumMessages: 6, + NumMessages: 7, NumExtensions: 0, NumServices: 1, }, diff --git a/pb/exemplar/exemplar_grpc.pb.go b/pb/exemplar/exemplar_grpc.pb.go index e014fbf..dbb3eaf 100644 --- a/pb/exemplar/exemplar_grpc.pb.go +++ b/pb/exemplar/exemplar_grpc.pb.go @@ -19,6 +19,7 @@ const _ = grpc.SupportPackageIsVersion7 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type ExemplarClient interface { Sample(ctx context.Context, in *SampleRequest, opts ...grpc.CallOption) (*SampleResponse, error) + WellKnown(ctx context.Context, in *SampleRequest, opts ...grpc.CallOption) (*WellKnownSample, error) } type exemplarClient struct { @@ -38,11 +39,21 @@ func (c *exemplarClient) Sample(ctx context.Context, in *SampleRequest, opts ... return out, nil } +func (c *exemplarClient) WellKnown(ctx context.Context, in *SampleRequest, opts ...grpc.CallOption) (*WellKnownSample, error) { + out := new(WellKnownSample) + err := c.cc.Invoke(ctx, "/exemplar.Exemplar/WellKnown", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // ExemplarServer is the server API for Exemplar service. // All implementations must embed UnimplementedExemplarServer // for forward compatibility type ExemplarServer interface { Sample(context.Context, *SampleRequest) (*SampleResponse, error) + WellKnown(context.Context, *SampleRequest) (*WellKnownSample, error) mustEmbedUnimplementedExemplarServer() } @@ -53,6 +64,9 @@ type UnimplementedExemplarServer struct { func (UnimplementedExemplarServer) Sample(context.Context, *SampleRequest) (*SampleResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Sample not implemented") } +func (UnimplementedExemplarServer) WellKnown(context.Context, *SampleRequest) (*WellKnownSample, error) { + return nil, status.Errorf(codes.Unimplemented, "method WellKnown not implemented") +} func (UnimplementedExemplarServer) mustEmbedUnimplementedExemplarServer() {} // UnsafeExemplarServer may be embedded to opt out of forward compatibility for this service. @@ -84,6 +98,24 @@ func _Exemplar_Sample_Handler(srv interface{}, ctx context.Context, dec func(int return interceptor(ctx, in, info, handler) } +func _Exemplar_WellKnown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SampleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ExemplarServer).WellKnown(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/exemplar.Exemplar/WellKnown", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExemplarServer).WellKnown(ctx, req.(*SampleRequest)) + } + return interceptor(ctx, in, info, handler) +} + // Exemplar_ServiceDesc is the grpc.ServiceDesc for Exemplar service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -95,6 +127,10 @@ var Exemplar_ServiceDesc = grpc.ServiceDesc{ MethodName: "Sample", Handler: _Exemplar_Sample_Handler, }, + { + MethodName: "WellKnown", + Handler: _Exemplar_WellKnown_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "exemplar/exemplar.proto", diff --git a/proto/exemplar/exemplar.proto b/proto/exemplar/exemplar.proto index 10a5920..6789868 100644 --- a/proto/exemplar/exemplar.proto +++ b/proto/exemplar/exemplar.proto @@ -6,8 +6,20 @@ package exemplar; option go_package = "foxygo.at/jig/pb/exemplar"; +import "google/protobuf/any.proto"; +import "google/protobuf/api.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/source_context.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/type.proto"; +import "google/protobuf/wrappers.proto"; + service Exemplar { rpc Sample(SampleRequest) returns (SampleResponse); + rpc WellKnown(SampleRequest) returns (WellKnownSample); } message SampleRequest { @@ -77,3 +89,33 @@ message SampleResponse { SampleMessage1 a_message_oneof = 25; } } + +message WellKnownSample { + google.protobuf.Any any = 1; + google.protobuf.Api api = 2; + google.protobuf.BoolValue bool_value = 3; + google.protobuf.BytesValue bytes_value = 4; + google.protobuf.DoubleValue double_value = 5; + google.protobuf.Duration duration = 6; + google.protobuf.Empty empty = 7; + google.protobuf.Enum an_enum = 8; + google.protobuf.EnumValue enum_value = 9; + google.protobuf.Field field = 10; + google.protobuf.FieldMask field_mask = 11; + google.protobuf.FloatValue float_value = 12; + google.protobuf.Int32Value int32_value = 13; + google.protobuf.Int64Value int64_value = 14; + google.protobuf.ListValue list_value = 15; + google.protobuf.Method method = 16; + google.protobuf.Mixin mixin = 17; + google.protobuf.NullValue null_value = 18; + google.protobuf.Option an_option = 19; + google.protobuf.SourceContext source_context = 20; + google.protobuf.StringValue string_value = 21; + google.protobuf.Struct struct = 22; + google.protobuf.Timestamp timestamp = 23; + google.protobuf.Type type = 24; + google.protobuf.UInt32Value uint32_value = 25; + google.protobuf.UInt64Value uint64_value = 26; + google.protobuf.Value value = 27; +}