| 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 FieldSecurityAnnotation struct { |
| 26 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 27 |
ConfigureForUntrustedDownstream bool `protobuf:"varint,1,opt,name=configure_for_untrusted_downstream,json=configureForUntrustedDownstream,proto3" json:"configure_for_untrusted_downstream,omitempty"` |
| 28 |
ConfigureForUntrustedUpstream bool `protobuf:"varint,2,opt,name=configure_for_untrusted_upstream,json=configureForUntrustedUpstream,proto3" json:"configure_for_untrusted_upstream,omitempty"` |
| 29 |
unknownFields protoimpl.UnknownFields |
| 30 |
sizeCache protoimpl.SizeCache |
| 31 |
} |
| 32 |
|
| 33 |
func (x *FieldSecurityAnnotation) Reset() { |
| 34 |
*x = FieldSecurityAnnotation{} |
| 35 |
mi := &file_udpa_annotations_security_proto_msgTypes[0] |
| 36 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 37 |
ms.StoreMessageInfo(mi) |
| 38 |
} |
| 39 |
|
| 40 |
func (x *FieldSecurityAnnotation) String() string { |
| 41 |
return protoimpl.X.MessageStringOf(x) |
| 42 |
} |
| 43 |
|
| 44 |
func (*FieldSecurityAnnotation) ProtoMessage() {} |
| 45 |
|
| 46 |
func (x *FieldSecurityAnnotation) ProtoReflect() protoreflect.Message { |
| 47 |
mi := &file_udpa_annotations_security_proto_msgTypes[0] |
| 48 |
if x != nil { |
| 49 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 50 |
if ms.LoadMessageInfo() == nil { |
| 51 |
ms.StoreMessageInfo(mi) |
| 52 |
} |
| 53 |
return ms |
| 54 |
} |
| 55 |
return mi.MessageOf(x) |
| 56 |
} |
| 57 |
|
| 58 |
|
| 59 |
func (*FieldSecurityAnnotation) Descriptor() ([]byte, []int) { |
| 60 |
return file_udpa_annotations_security_proto_rawDescGZIP(), []int{0} |
| 61 |
} |
| 62 |
|
| 63 |
func (x *FieldSecurityAnnotation) GetConfigureForUntrustedDownstream() bool { |
| 64 |
if x != nil { |
| 65 |
return x.ConfigureForUntrustedDownstream |
| 66 |
} |
| 67 |
return false |
| 68 |
} |
| 69 |
|
| 70 |
func (x *FieldSecurityAnnotation) GetConfigureForUntrustedUpstream() bool { |
| 71 |
if x != nil { |
| 72 |
return x.ConfigureForUntrustedUpstream |
| 73 |
} |
| 74 |
return false |
| 75 |
} |
| 76 |
|
| 77 |
var file_udpa_annotations_security_proto_extTypes = []protoimpl.ExtensionInfo{ |
| 78 |
{ |
| 79 |
ExtendedType: (*descriptorpb.FieldOptions)(nil), |
| 80 |
ExtensionType: (*FieldSecurityAnnotation)(nil), |
| 81 |
Field: 11122993, |
| 82 |
Name: "udpa.annotations.security", |
| 83 |
Tag: "bytes,11122993,opt,name=security", |
| 84 |
Filename: "udpa/annotations/security.proto", |
| 85 |
}, |
| 86 |
} |
| 87 |
|
| 88 |
|
| 89 |
var ( |
| 90 |
|
| 91 |
E_Security = &file_udpa_annotations_security_proto_extTypes[0] |
| 92 |
) |
| 93 |
|
| 94 |
var File_udpa_annotations_security_proto protoreflect.FileDescriptor |
| 95 |
|
| 96 |
const file_udpa_annotations_security_proto_rawDesc = "" + |
| 97 |
"\n" + |
| 98 |
"\x1fudpa/annotations/security.proto\x12\x10udpa.annotations\x1a\x1dudpa/annotations/status.proto\x1a google/protobuf/descriptor.proto\"\xaf\x01\n" + |
| 99 |
"\x17FieldSecurityAnnotation\x12K\n" + |
| 100 |
"\"configure_for_untrusted_downstream\x18\x01 \x01(\bR\x1fconfigureForUntrustedDownstream\x12G\n" + |
| 101 |
" configure_for_untrusted_upstream\x18\x02 \x01(\bR\x1dconfigureForUntrustedUpstream:g\n" + |
| 102 |
"\bsecurity\x12\x1d.google.protobuf.FieldOptions\x18\xb1\xf2\xa6\x05 \x01(\v2).udpa.annotations.FieldSecurityAnnotationR\bsecurityB1\xba\x80\xc8\xd1\x06\x02\b\x01Z'github.com/cncf/xds/go/udpa/annotationsb\x06proto3" |
| 103 |
|
| 104 |
var ( |
| 105 |
file_udpa_annotations_security_proto_rawDescOnce sync.Once |
| 106 |
file_udpa_annotations_security_proto_rawDescData []byte |
| 107 |
) |
| 108 |
|
| 109 |
func file_udpa_annotations_security_proto_rawDescGZIP() []byte { |
| 110 |
file_udpa_annotations_security_proto_rawDescOnce.Do(func() { |
| 111 |
file_udpa_annotations_security_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_udpa_annotations_security_proto_rawDesc), len(file_udpa_annotations_security_proto_rawDesc))) |
| 112 |
}) |
| 113 |
return file_udpa_annotations_security_proto_rawDescData |
| 114 |
} |
| 115 |
|
| 116 |
var file_udpa_annotations_security_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 117 |
var file_udpa_annotations_security_proto_goTypes = []any{ |
| 118 |
(*FieldSecurityAnnotation)(nil), |
| 119 |
(*descriptorpb.FieldOptions)(nil), |
| 120 |
} |
| 121 |
var file_udpa_annotations_security_proto_depIdxs = []int32{ |
| 122 |
1, |
| 123 |
0, |
| 124 |
2, |
| 125 |
2, |
| 126 |
1, |
| 127 |
0, |
| 128 |
0, |
| 129 |
} |
| 130 |
|
| 131 |
func init() { file_udpa_annotations_security_proto_init() } |
| 132 |
func file_udpa_annotations_security_proto_init() { |
| 133 |
if File_udpa_annotations_security_proto != nil { |
| 134 |
return |
| 135 |
} |
| 136 |
file_udpa_annotations_status_proto_init() |
| 137 |
type x struct{} |
| 138 |
out := protoimpl.TypeBuilder{ |
| 139 |
File: protoimpl.DescBuilder{ |
| 140 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 141 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_udpa_annotations_security_proto_rawDesc), len(file_udpa_annotations_security_proto_rawDesc)), |
| 142 |
NumEnums: 0, |
| 143 |
NumMessages: 1, |
| 144 |
NumExtensions: 1, |
| 145 |
NumServices: 0, |
| 146 |
}, |
| 147 |
GoTypes: file_udpa_annotations_security_proto_goTypes, |
| 148 |
DependencyIndexes: file_udpa_annotations_security_proto_depIdxs, |
| 149 |
MessageInfos: file_udpa_annotations_security_proto_msgTypes, |
| 150 |
ExtensionInfos: file_udpa_annotations_security_proto_extTypes, |
| 151 |
}.Build() |
| 152 |
File_udpa_annotations_security_proto = out.File |
| 153 |
file_udpa_annotations_security_proto_goTypes = nil |
| 154 |
file_udpa_annotations_security_proto_depIdxs = nil |
| 155 |
} |