| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
package annotations |
| 8 |
|
| 9 |
import ( |
| 10 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 11 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 12 |
descriptorpb "google.golang.org/protobuf/types/descriptorpb" |
| 13 |
reflect "reflect" |
| 14 |
sync "sync" |
| 15 |
unsafe "unsafe" |
| 16 |
) |
| 17 |
|
| 18 |
const ( |
| 19 |
|
| 20 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 21 |
|
| 22 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 23 |
) |
| 24 |
|
| 25 |
type VersioningAnnotation struct { |
| 26 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 27 |
PreviousMessageType string `protobuf:"bytes,1,opt,name=previous_message_type,json=previousMessageType,proto3" json:"previous_message_type,omitempty"` |
| 28 |
unknownFields protoimpl.UnknownFields |
| 29 |
sizeCache protoimpl.SizeCache |
| 30 |
} |
| 31 |
|
| 32 |
func (x *VersioningAnnotation) Reset() { |
| 33 |
*x = VersioningAnnotation{} |
| 34 |
mi := &file_udpa_annotations_versioning_proto_msgTypes[0] |
| 35 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 36 |
ms.StoreMessageInfo(mi) |
| 37 |
} |
| 38 |
|
| 39 |
func (x *VersioningAnnotation) String() string { |
| 40 |
return protoimpl.X.MessageStringOf(x) |
| 41 |
} |
| 42 |
|
| 43 |
func (*VersioningAnnotation) ProtoMessage() {} |
| 44 |
|
| 45 |
func (x *VersioningAnnotation) ProtoReflect() protoreflect.Message { |
| 46 |
mi := &file_udpa_annotations_versioning_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 |
|
| 58 |
func (*VersioningAnnotation) Descriptor() ([]byte, []int) { |
| 59 |
return file_udpa_annotations_versioning_proto_rawDescGZIP(), []int{0} |
| 60 |
} |
| 61 |
|
| 62 |
func (x *VersioningAnnotation) GetPreviousMessageType() string { |
| 63 |
if x != nil { |
| 64 |
return x.PreviousMessageType |
| 65 |
} |
| 66 |
return "" |
| 67 |
} |
| 68 |
|
| 69 |
var file_udpa_annotations_versioning_proto_extTypes = []protoimpl.ExtensionInfo{ |
| 70 |
{ |
| 71 |
ExtendedType: (*descriptorpb.MessageOptions)(nil), |
| 72 |
ExtensionType: (*VersioningAnnotation)(nil), |
| 73 |
Field: 7881811, |
| 74 |
Name: "udpa.annotations.versioning", |
| 75 |
Tag: "bytes,7881811,opt,name=versioning", |
| 76 |
Filename: "udpa/annotations/versioning.proto", |
| 77 |
}, |
| 78 |
} |
| 79 |
|
| 80 |
|
| 81 |
var ( |
| 82 |
|
| 83 |
E_Versioning = &file_udpa_annotations_versioning_proto_extTypes[0] |
| 84 |
) |
| 85 |
|
| 86 |
var File_udpa_annotations_versioning_proto protoreflect.FileDescriptor |
| 87 |
|
| 88 |
const file_udpa_annotations_versioning_proto_rawDesc = "" + |
| 89 |
"\n" + |
| 90 |
"!udpa/annotations/versioning.proto\x12\x10udpa.annotations\x1a google/protobuf/descriptor.proto\"J\n" + |
| 91 |
"\x14VersioningAnnotation\x122\n" + |
| 92 |
"\x15previous_message_type\x18\x01 \x01(\tR\x13previousMessageType:j\n" + |
| 93 |
"\n" + |
| 94 |
"versioning\x12\x1f.google.protobuf.MessageOptions\x18ӈ\xe1\x03 \x01(\v2&.udpa.annotations.VersioningAnnotationR\n" + |
| 95 |
"versioningB)Z'github.com/cncf/xds/go/udpa/annotationsb\x06proto3" |
| 96 |
|
| 97 |
var ( |
| 98 |
file_udpa_annotations_versioning_proto_rawDescOnce sync.Once |
| 99 |
file_udpa_annotations_versioning_proto_rawDescData []byte |
| 100 |
) |
| 101 |
|
| 102 |
func file_udpa_annotations_versioning_proto_rawDescGZIP() []byte { |
| 103 |
file_udpa_annotations_versioning_proto_rawDescOnce.Do(func() { |
| 104 |
file_udpa_annotations_versioning_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_udpa_annotations_versioning_proto_rawDesc), len(file_udpa_annotations_versioning_proto_rawDesc))) |
| 105 |
}) |
| 106 |
return file_udpa_annotations_versioning_proto_rawDescData |
| 107 |
} |
| 108 |
|
| 109 |
var file_udpa_annotations_versioning_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 110 |
var file_udpa_annotations_versioning_proto_goTypes = []any{ |
| 111 |
(*VersioningAnnotation)(nil), |
| 112 |
(*descriptorpb.MessageOptions)(nil), |
| 113 |
} |
| 114 |
var file_udpa_annotations_versioning_proto_depIdxs = []int32{ |
| 115 |
1, |
| 116 |
0, |
| 117 |
2, |
| 118 |
2, |
| 119 |
1, |
| 120 |
0, |
| 121 |
0, |
| 122 |
} |
| 123 |
|
| 124 |
func init() { file_udpa_annotations_versioning_proto_init() } |
| 125 |
func file_udpa_annotations_versioning_proto_init() { |
| 126 |
if File_udpa_annotations_versioning_proto != nil { |
| 127 |
return |
| 128 |
} |
| 129 |
type x struct{} |
| 130 |
out := protoimpl.TypeBuilder{ |
| 131 |
File: protoimpl.DescBuilder{ |
| 132 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 133 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_udpa_annotations_versioning_proto_rawDesc), len(file_udpa_annotations_versioning_proto_rawDesc)), |
| 134 |
NumEnums: 0, |
| 135 |
NumMessages: 1, |
| 136 |
NumExtensions: 1, |
| 137 |
NumServices: 0, |
| 138 |
}, |
| 139 |
GoTypes: file_udpa_annotations_versioning_proto_goTypes, |
| 140 |
DependencyIndexes: file_udpa_annotations_versioning_proto_depIdxs, |
| 141 |
MessageInfos: file_udpa_annotations_versioning_proto_msgTypes, |
| 142 |
ExtensionInfos: file_udpa_annotations_versioning_proto_extTypes, |
| 143 |
}.Build() |
| 144 |
File_udpa_annotations_versioning_proto = out.File |
| 145 |
file_udpa_annotations_versioning_proto_goTypes = nil |
| 146 |
file_udpa_annotations_versioning_proto_depIdxs = nil |
| 147 |
} |