Extension fields to descriptorpb.FileOptions.
var ( // optional int32 imported_plain_option = 511807920; E_ImportedPlainOption = &file_cmd_protoc_gen_go_testdata_retention_options_message_proto_extTypes[0] // optional int32 imported_runtime_retention_option = 512484074; E_ImportedRuntimeRetentionOption = &file_cmd_protoc_gen_go_testdata_retention_options_message_proto_extTypes[1] // optional int32 imported_source_retention_option = 512645287; E_ImportedSourceRetentionOption = &file_cmd_protoc_gen_go_testdata_retention_options_message_proto_extTypes[2] // optional testretention.OptionsMessage file_option = 504871168; E_FileOption = &file_cmd_protoc_gen_go_testdata_retention_options_message_proto_extTypes[3] )
Enum value maps for TopLevelEnum.
var ( TopLevelEnum_name = map[int32]string{ 0: "TOP_LEVEL_UNKNOWN", } TopLevelEnum_value = map[string]int32{ "TOP_LEVEL_UNKNOWN": 0, } )
Enum value maps for TopLevelMessage_NestedEnum.
var ( TopLevelMessage_NestedEnum_name = map[int32]string{ 0: "NESTED_UNKNOWN", } TopLevelMessage_NestedEnum_value = map[string]int32{ "NESTED_UNKNOWN": 0, } )
Extension fields to descriptorpb.FileOptions.
var ( // optional int32 plain_option = 505092806; E_PlainOption = &file_cmd_protoc_gen_go_testdata_retention_retention_proto_extTypes[0] // optional int32 runtime_retention_option = 505039132; E_RuntimeRetentionOption = &file_cmd_protoc_gen_go_testdata_retention_retention_proto_extTypes[1] // optional int32 source_retention_option = 504878676; E_SourceRetentionOption = &file_cmd_protoc_gen_go_testdata_retention_retention_proto_extTypes[2] // repeated testretention.OptionsMessage repeated_options = 504823570; E_RepeatedOptions = &file_cmd_protoc_gen_go_testdata_retention_retention_proto_extTypes[3] )
Extension fields to Extendee.
var ( // optional int32 i = 1; E_I = &file_cmd_protoc_gen_go_testdata_retention_retention_proto_extTypes[12] // optional string s = 2; E_TopLevelMessage_S = &file_cmd_protoc_gen_go_testdata_retention_retention_proto_extTypes[13] )
Extension fields to descriptorpb.EnumValueOptions.
var ( // optional testretention.OptionsMessage enum_entry_option = 504450522; E_EnumEntryOption = &file_cmd_protoc_gen_go_testdata_retention_retention_proto_extTypes[9] )
Extension fields to descriptorpb.EnumOptions.
var ( // optional testretention.OptionsMessage enum_option = 504451567; E_EnumOption = &file_cmd_protoc_gen_go_testdata_retention_retention_proto_extTypes[8] )
Extension fields to descriptorpb.ExtensionRangeOptions.
var ( // optional testretention.OptionsMessage extension_range_option = 504822148; E_ExtensionRangeOption = &file_cmd_protoc_gen_go_testdata_retention_retention_proto_extTypes[4] )
Extension fields to descriptorpb.FieldOptions.
var ( // optional testretention.OptionsMessage field_option = 504589219; E_FieldOption = &file_cmd_protoc_gen_go_testdata_retention_retention_proto_extTypes[6] )
Extension fields to descriptorpb.MessageOptions.
var ( // optional testretention.OptionsMessage message_option = 504820819; E_MessageOption = &file_cmd_protoc_gen_go_testdata_retention_retention_proto_extTypes[5] )
Extension fields to descriptorpb.MethodOptions.
var ( // optional testretention.OptionsMessage method_option = 504349420; E_MethodOption = &file_cmd_protoc_gen_go_testdata_retention_retention_proto_extTypes[11] )
Extension fields to descriptorpb.OneofOptions.
var ( // optional testretention.OptionsMessage oneof_option = 504479153; E_OneofOption = &file_cmd_protoc_gen_go_testdata_retention_retention_proto_extTypes[7] )
Extension fields to descriptorpb.ServiceOptions.
var ( // optional testretention.OptionsMessage service_option = 504387709; E_ServiceOption = &file_cmd_protoc_gen_go_testdata_retention_retention_proto_extTypes[10] )
var File_cmd_protoc_gen_go_testdata_retention_options_message_proto protoreflect.FileDescriptor
var File_cmd_protoc_gen_go_testdata_retention_retention_proto protoreflect.FileDescriptor
type Extendee struct {
// contains filtered or unexported fields
}
func (*Extendee) Descriptor() ([]byte, []int)
Deprecated: Use Extendee.ProtoReflect.Descriptor instead.
func (*Extendee) ProtoMessage()
func (x *Extendee) ProtoReflect() protoreflect.Message
func (x *Extendee) Reset()
func (x *Extendee) String() string
Retention attributes set on fields nested within a message
type OptionsMessage struct { PlainField *int32 `protobuf:"varint,1,opt,name=plain_field,json=plainField" json:"plain_field,omitempty"` RuntimeRetentionField *int32 `protobuf:"varint,2,opt,name=runtime_retention_field,json=runtimeRetentionField" json:"runtime_retention_field,omitempty"` SourceRetentionField *int32 `protobuf:"varint,3,opt,name=source_retention_field,json=sourceRetentionField" json:"source_retention_field,omitempty"` // contains filtered or unexported fields }
func (*OptionsMessage) Descriptor() ([]byte, []int)
Deprecated: Use OptionsMessage.ProtoReflect.Descriptor instead.
func (x *OptionsMessage) GetPlainField() int32
func (x *OptionsMessage) GetRuntimeRetentionField() int32
func (x *OptionsMessage) GetSourceRetentionField() int32
func (*OptionsMessage) ProtoMessage()
func (x *OptionsMessage) ProtoReflect() protoreflect.Message
func (x *OptionsMessage) Reset()
func (x *OptionsMessage) String() string
type TopLevelEnum int32
const ( TopLevelEnum_TOP_LEVEL_UNKNOWN TopLevelEnum = 0 )
func (TopLevelEnum) Descriptor() protoreflect.EnumDescriptor
func (x TopLevelEnum) Enum() *TopLevelEnum
func (TopLevelEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use TopLevelEnum.Descriptor instead.
func (x TopLevelEnum) Number() protoreflect.EnumNumber
func (x TopLevelEnum) String() string
func (TopLevelEnum) Type() protoreflect.EnumType
func (x *TopLevelEnum) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type TopLevelMessage struct { F *float32 `protobuf:"fixed32,1,opt,name=f" json:"f,omitempty"` // Types that are assignable to O: // // *TopLevelMessage_I O isTopLevelMessage_O `protobuf_oneof:"o"` // contains filtered or unexported fields }
func (*TopLevelMessage) Descriptor() ([]byte, []int)
Deprecated: Use TopLevelMessage.ProtoReflect.Descriptor instead.
func (x *TopLevelMessage) GetF() float32
func (x *TopLevelMessage) GetI() int64
func (m *TopLevelMessage) GetO() isTopLevelMessage_O
func (*TopLevelMessage) ProtoMessage()
func (x *TopLevelMessage) ProtoReflect() protoreflect.Message
func (x *TopLevelMessage) Reset()
func (x *TopLevelMessage) String() string
type TopLevelMessage_I struct { I int64 `protobuf:"varint,2,opt,name=i,oneof"` }
type TopLevelMessage_NestedEnum int32
const ( TopLevelMessage_NESTED_UNKNOWN TopLevelMessage_NestedEnum = 0 )
func (TopLevelMessage_NestedEnum) Descriptor() protoreflect.EnumDescriptor
func (x TopLevelMessage_NestedEnum) Enum() *TopLevelMessage_NestedEnum
func (TopLevelMessage_NestedEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use TopLevelMessage_NestedEnum.Descriptor instead.
func (x TopLevelMessage_NestedEnum) Number() protoreflect.EnumNumber
func (x TopLevelMessage_NestedEnum) String() string
func (TopLevelMessage_NestedEnum) Type() protoreflect.EnumType
func (x *TopLevelMessage_NestedEnum) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type TopLevelMessage_NestedMessage struct {
// contains filtered or unexported fields
}
func (*TopLevelMessage_NestedMessage) Descriptor() ([]byte, []int)
Deprecated: Use TopLevelMessage_NestedMessage.ProtoReflect.Descriptor instead.
func (*TopLevelMessage_NestedMessage) ProtoMessage()
func (x *TopLevelMessage_NestedMessage) ProtoReflect() protoreflect.Message
func (x *TopLevelMessage_NestedMessage) Reset()
func (x *TopLevelMessage_NestedMessage) String() string