protooptions

package
v0.0.48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// mask_mapping is an option which tags a field with the expected field mask
	// used by a companion proto if applied on the field this option is for.
	// The value of this option should be for the field name itself and not for
	// the json name.
	//
	// optional controller.custom_options.v1.MaskMapping mask_mapping = 85464;
	E_MaskMapping = &file_controller_custom_options_v1_options_proto_extTypes[0]
	// generate_sdk_option is a directive used when generating the SDK to
	// indicate that an option should be created for the field. This also controls
	// API options (DefaultX, WithX functions).
	//
	// optional bool generate_sdk_option = 85412;
	E_GenerateSdkOption = &file_controller_custom_options_v1_options_proto_extTypes[1]
	// subtype is used for oneOf attribute subtypes, to identify that we only need to parse attributes
	// of oneOf once and not for each option when generating the API
	// This will serve as a JSON key, used to transform that into the key the protobuf expects
	//
	// optional string subtype = 85555;
	E_Subtype = &file_controller_custom_options_v1_options_proto_extTypes[2]
	// subtype_source_id is used to indicate that a field provided an id that can be used
	// to determine the subtype of a message.
	//
	// optional bool subtype_source_id = 85556;
	E_SubtypeSourceId = &file_controller_custom_options_v1_options_proto_extTypes[3]
	// aliasable_field is used to indicate that a field is aliasable. Fields with
	// this option attached will have their values checked for a possible alias
	// value at request time and will be replaced with the destination id
	// associated with the alias if found.
	//
	// optional controller.custom_options.v1.AliasInfo aliasable = 85557;
	E_Aliasable = &file_controller_custom_options_v1_options_proto_extTypes[4]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var (
	// domain is used to associate the messages in a file with a domain package.
	//
	// optional string domain = 85556;
	E_Domain = &file_controller_custom_options_v1_options_proto_extTypes[5]
)

Extension fields to descriptorpb.FileOptions.

View Source
var File_controller_custom_options_v1_options_proto protoreflect.FileDescriptor
View Source
var File_controller_custom_options_v1_testing_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AliasInfo added in v0.0.46

type AliasInfo struct {

	// Types that are assignable to Aliasable:
	//
	//	*AliasInfo_Always
	//	*AliasInfo_UnlessSet
	Aliasable isAliasInfo_Aliasable `protobuf_oneof:"aliasable"`
	// contains filtered or unexported fields
}

func (*AliasInfo) Descriptor deprecated added in v0.0.46

func (*AliasInfo) Descriptor() ([]byte, []int)

Deprecated: Use AliasInfo.ProtoReflect.Descriptor instead.

func (*AliasInfo) GetAliasable added in v0.0.46

func (m *AliasInfo) GetAliasable() isAliasInfo_Aliasable

func (*AliasInfo) GetAlways added in v0.0.46

func (x *AliasInfo) GetAlways() bool

func (*AliasInfo) GetUnlessSet added in v0.0.46

func (x *AliasInfo) GetUnlessSet() *AliasableUnlessSet

func (*AliasInfo) ProtoMessage added in v0.0.46

func (*AliasInfo) ProtoMessage()

func (*AliasInfo) ProtoReflect added in v0.0.46

func (x *AliasInfo) ProtoReflect() protoreflect.Message

func (*AliasInfo) Reset added in v0.0.46

func (x *AliasInfo) Reset()

func (*AliasInfo) String added in v0.0.46

func (x *AliasInfo) String() string

type AliasInfo_Always added in v0.0.46

type AliasInfo_Always struct {
	Always bool `protobuf:"varint,1,opt,name=always,proto3,oneof"`
}

type AliasInfo_UnlessSet added in v0.0.46

type AliasInfo_UnlessSet struct {
	// aliasable_with_fields is used to indicate that the field this FieldOption
	// is on, while normally aliasable, should not be aliased if any fields on this
	// same message are populated.
	UnlessSet *AliasableUnlessSet `protobuf:"bytes,2,opt,name=unless_set,json=unlessSet,proto3,oneof"`
}

type AliasableUnlessSet added in v0.0.46

type AliasableUnlessSet struct {

	// fields is a list of fields that, if any of them are set with a non zero
	// value then the field this FieldOption is on should not be treated as an alias.
	Fields []string `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

func (*AliasableUnlessSet) Descriptor deprecated added in v0.0.46

func (*AliasableUnlessSet) Descriptor() ([]byte, []int)

Deprecated: Use AliasableUnlessSet.ProtoReflect.Descriptor instead.

func (*AliasableUnlessSet) GetFields added in v0.0.46

func (x *AliasableUnlessSet) GetFields() []string

func (*AliasableUnlessSet) ProtoMessage added in v0.0.46

func (*AliasableUnlessSet) ProtoMessage()

func (*AliasableUnlessSet) ProtoReflect added in v0.0.46

func (x *AliasableUnlessSet) ProtoReflect() protoreflect.Message

func (*AliasableUnlessSet) Reset added in v0.0.46

func (x *AliasableUnlessSet) Reset()

func (*AliasableUnlessSet) String added in v0.0.46

func (x *AliasableUnlessSet) String() string

type MaskMapping

type MaskMapping struct {
	This string `protobuf:"bytes,1,opt,name=this,proto3" json:"this,omitempty"`
	That string `protobuf:"bytes,2,opt,name=that,proto3" json:"that,omitempty"`
	// contains filtered or unexported fields
}

func (*MaskMapping) Descriptor deprecated

func (*MaskMapping) Descriptor() ([]byte, []int)

Deprecated: Use MaskMapping.ProtoReflect.Descriptor instead.

func (*MaskMapping) GetThat

func (x *MaskMapping) GetThat() string

func (*MaskMapping) GetThis

func (x *MaskMapping) GetThis() string

func (*MaskMapping) ProtoMessage

func (*MaskMapping) ProtoMessage()

func (*MaskMapping) ProtoReflect

func (x *MaskMapping) ProtoReflect() protoreflect.Message

func (*MaskMapping) Reset

func (x *MaskMapping) Reset()

func (*MaskMapping) String

func (x *MaskMapping) String() string

type TestBase

type TestBase struct {
	FirstField                 string `protobuf:"bytes,1,opt,name=first_field,json=firstField,proto3" json:"first_field,omitempty"`
	StrangeFormatField         string `protobuf:"bytes,2,opt,name=StrangeFormatField,proto3" json:"StrangeFormatField,omitempty"`
	FieldWithDifferentJsonName string `` /* 128-byte string literal not displayed */
	ExtraField                 string `protobuf:"bytes,4,opt,name=extra_field,json=extraField,proto3" json:"extra_field,omitempty"`
	// contains filtered or unexported fields
}

func (*TestBase) Descriptor deprecated

func (*TestBase) Descriptor() ([]byte, []int)

Deprecated: Use TestBase.ProtoReflect.Descriptor instead.

func (*TestBase) GetExtraField

func (x *TestBase) GetExtraField() string

func (*TestBase) GetFieldWithDifferentJsonName

func (x *TestBase) GetFieldWithDifferentJsonName() string

func (*TestBase) GetFirstField

func (x *TestBase) GetFirstField() string

func (*TestBase) GetStrangeFormatField

func (x *TestBase) GetStrangeFormatField() string

func (*TestBase) ProtoMessage

func (*TestBase) ProtoMessage()

func (*TestBase) ProtoReflect

func (x *TestBase) ProtoReflect() protoreflect.Message

func (*TestBase) Reset

func (x *TestBase) Reset()

func (*TestBase) String

func (x *TestBase) String() string

type TestBaseSplit1

type TestBaseSplit1 struct {
	FirstField                 string `protobuf:"bytes,1,opt,name=first_field,json=firstField,proto3" json:"first_field,omitempty"`
	FieldWithDifferentJsonName string `` /* 128-byte string literal not displayed */
	ExtraField                 string `protobuf:"bytes,3,opt,name=extra_field,json=extraField,proto3" json:"extra_field,omitempty"`
	// contains filtered or unexported fields
}

func (*TestBaseSplit1) Descriptor deprecated

func (*TestBaseSplit1) Descriptor() ([]byte, []int)

Deprecated: Use TestBaseSplit1.ProtoReflect.Descriptor instead.

func (*TestBaseSplit1) GetExtraField

func (x *TestBaseSplit1) GetExtraField() string

func (*TestBaseSplit1) GetFieldWithDifferentJsonName

func (x *TestBaseSplit1) GetFieldWithDifferentJsonName() string

func (*TestBaseSplit1) GetFirstField

func (x *TestBaseSplit1) GetFirstField() string

func (*TestBaseSplit1) ProtoMessage

func (*TestBaseSplit1) ProtoMessage()

func (*TestBaseSplit1) ProtoReflect

func (x *TestBaseSplit1) ProtoReflect() protoreflect.Message

func (*TestBaseSplit1) Reset

func (x *TestBaseSplit1) Reset()

func (*TestBaseSplit1) String

func (x *TestBaseSplit1) String() string

type TestBaseSplit2

type TestBaseSplit2 struct {
	SplitField1 string `protobuf:"bytes,1,opt,name=split_field1,json=splitField1,proto3" json:"split_field1,omitempty"`
	// contains filtered or unexported fields
}

func (*TestBaseSplit2) Descriptor deprecated

func (*TestBaseSplit2) Descriptor() ([]byte, []int)

Deprecated: Use TestBaseSplit2.ProtoReflect.Descriptor instead.

func (*TestBaseSplit2) GetSplitField1

func (x *TestBaseSplit2) GetSplitField1() string

func (*TestBaseSplit2) ProtoMessage

func (*TestBaseSplit2) ProtoMessage()

func (*TestBaseSplit2) ProtoReflect

func (x *TestBaseSplit2) ProtoReflect() protoreflect.Message

func (*TestBaseSplit2) Reset

func (x *TestBaseSplit2) Reset()

func (*TestBaseSplit2) String

func (x *TestBaseSplit2) String() string

type TestManyToOneMappings

type TestManyToOneMappings struct {
	OtherFirstField  string `protobuf:"bytes,1,opt,name=other_first_field,json=otherFirstField,proto3" json:"other_first_field,omitempty"`
	OtherSecondField string `protobuf:"bytes,2,opt,name=other_second_field,json=otherSecondField,proto3" json:"other_second_field,omitempty"`
	OtherThirdField  string `protobuf:"bytes,3,opt,name=other_third_field,json=otherThirdField,proto3" json:"other_third_field,omitempty"`
	// this field maps to the first_field like 'other_first_field'
	ExtraField string `protobuf:"bytes,4,opt,name=extra_field,json=extraField,proto3" json:"extra_field,omitempty"`
	// contains filtered or unexported fields
}

func (*TestManyToOneMappings) Descriptor deprecated

func (*TestManyToOneMappings) Descriptor() ([]byte, []int)

Deprecated: Use TestManyToOneMappings.ProtoReflect.Descriptor instead.

func (*TestManyToOneMappings) GetExtraField

func (x *TestManyToOneMappings) GetExtraField() string

func (*TestManyToOneMappings) GetOtherFirstField

func (x *TestManyToOneMappings) GetOtherFirstField() string

func (*TestManyToOneMappings) GetOtherSecondField

func (x *TestManyToOneMappings) GetOtherSecondField() string

func (*TestManyToOneMappings) GetOtherThirdField

func (x *TestManyToOneMappings) GetOtherThirdField() string

func (*TestManyToOneMappings) ProtoMessage

func (*TestManyToOneMappings) ProtoMessage()

func (*TestManyToOneMappings) ProtoReflect

func (x *TestManyToOneMappings) ProtoReflect() protoreflect.Message

func (*TestManyToOneMappings) Reset

func (x *TestManyToOneMappings) Reset()

func (*TestManyToOneMappings) String

func (x *TestManyToOneMappings) String() string

type TestNameDoesntMap

type TestNameDoesntMap struct {
	FirstDoesntMap    string `protobuf:"bytes,1,opt,name=first_doesnt_map,json=firstDoesntMap,proto3" json:"first_doesnt_map,omitempty"`
	SecondDoesntMap   string `protobuf:"bytes,2,opt,name=second_doesnt_map,json=secondDoesntMap,proto3" json:"second_doesnt_map,omitempty"`
	ThirdDoesntMap    string `protobuf:"bytes,3,opt,name=third_doesnt_map,json=thirdDoesntMap,proto3" json:"third_doesnt_map,omitempty"`
	AnotherExtraField string `protobuf:"bytes,4,opt,name=another_extra_field,json=anotherExtraField,proto3" json:"another_extra_field,omitempty"`
	// contains filtered or unexported fields
}

func (*TestNameDoesntMap) Descriptor deprecated

func (*TestNameDoesntMap) Descriptor() ([]byte, []int)

Deprecated: Use TestNameDoesntMap.ProtoReflect.Descriptor instead.

func (*TestNameDoesntMap) GetAnotherExtraField

func (x *TestNameDoesntMap) GetAnotherExtraField() string

func (*TestNameDoesntMap) GetFirstDoesntMap

func (x *TestNameDoesntMap) GetFirstDoesntMap() string

func (*TestNameDoesntMap) GetSecondDoesntMap

func (x *TestNameDoesntMap) GetSecondDoesntMap() string

func (*TestNameDoesntMap) GetThirdDoesntMap

func (x *TestNameDoesntMap) GetThirdDoesntMap() string

func (*TestNameDoesntMap) ProtoMessage

func (*TestNameDoesntMap) ProtoMessage()

func (*TestNameDoesntMap) ProtoReflect

func (x *TestNameDoesntMap) ProtoReflect() protoreflect.Message

func (*TestNameDoesntMap) Reset

func (x *TestNameDoesntMap) Reset()

func (*TestNameDoesntMap) String

func (x *TestNameDoesntMap) String() string

type TestNotEnoughFields

type TestNotEnoughFields struct {
	OtherFirstField  string `protobuf:"bytes,1,opt,name=other_first_field,json=otherFirstField,proto3" json:"other_first_field,omitempty"`
	OtherSecondField string `protobuf:"bytes,2,opt,name=other_second_field,json=otherSecondField,proto3" json:"other_second_field,omitempty"`
	// contains filtered or unexported fields
}

func (*TestNotEnoughFields) Descriptor deprecated

func (*TestNotEnoughFields) Descriptor() ([]byte, []int)

Deprecated: Use TestNotEnoughFields.ProtoReflect.Descriptor instead.

func (*TestNotEnoughFields) GetOtherFirstField

func (x *TestNotEnoughFields) GetOtherFirstField() string

func (*TestNotEnoughFields) GetOtherSecondField

func (x *TestNotEnoughFields) GetOtherSecondField() string

func (*TestNotEnoughFields) ProtoMessage

func (*TestNotEnoughFields) ProtoMessage()

func (*TestNotEnoughFields) ProtoReflect

func (x *TestNotEnoughFields) ProtoReflect() protoreflect.Message

func (*TestNotEnoughFields) Reset

func (x *TestNotEnoughFields) Reset()

func (*TestNotEnoughFields) String

func (x *TestNotEnoughFields) String() string

type TestProperlyNamedFields

type TestProperlyNamedFields struct {
	OtherFirstField   string `protobuf:"bytes,1,opt,name=other_first_field,json=otherFirstField,proto3" json:"other_first_field,omitempty"`
	OtherSecondField  string `protobuf:"bytes,2,opt,name=other_second_field,json=otherSecondField,proto3" json:"other_second_field,omitempty"`
	OtherThirdField   string `protobuf:"bytes,3,opt,name=other_third_field,proto3" json:"other_third_field,omitempty"`
	AnotherExtraField string `protobuf:"bytes,4,opt,name=another_extra_field,json=anotherExtraField,proto3" json:"another_extra_field,omitempty"`
	// contains filtered or unexported fields
}

func (*TestProperlyNamedFields) Descriptor deprecated

func (*TestProperlyNamedFields) Descriptor() ([]byte, []int)

Deprecated: Use TestProperlyNamedFields.ProtoReflect.Descriptor instead.

func (*TestProperlyNamedFields) GetAnotherExtraField

func (x *TestProperlyNamedFields) GetAnotherExtraField() string

func (*TestProperlyNamedFields) GetOtherFirstField

func (x *TestProperlyNamedFields) GetOtherFirstField() string

func (*TestProperlyNamedFields) GetOtherSecondField

func (x *TestProperlyNamedFields) GetOtherSecondField() string

func (*TestProperlyNamedFields) GetOtherThirdField

func (x *TestProperlyNamedFields) GetOtherThirdField() string

func (*TestProperlyNamedFields) ProtoMessage

func (*TestProperlyNamedFields) ProtoMessage()

func (*TestProperlyNamedFields) ProtoReflect

func (x *TestProperlyNamedFields) ProtoReflect() protoreflect.Message

func (*TestProperlyNamedFields) Reset

func (x *TestProperlyNamedFields) Reset()

func (*TestProperlyNamedFields) String

func (x *TestProperlyNamedFields) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL