v1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SearchOptions_Weight_name = map[int32]string{
		0: "WEIGHT_UNSPECIFIED",
		1: "WEIGHT_A",
		2: "WEIGHT_B",
		3: "WEIGHT_C",
		4: "WEIGHT_D",
	}
	SearchOptions_Weight_value = map[string]int32{
		"WEIGHT_UNSPECIFIED": 0,
		"WEIGHT_A":           1,
		"WEIGHT_B":           2,
		"WEIGHT_C":           3,
		"WEIGHT_D":           4,
	}
)

Enum value maps for SearchOptions_Weight.

View Source
var (
	SearchOptions_Split_name = map[int32]string{
		0: "SPLIT_UNSPECIFIED",
		1: "SPLIT_EMAIL_ADDRESS",
		2: "SPLIT_PHONE_NUMBER",
	}
	SearchOptions_Split_value = map[string]int32{
		"SPLIT_UNSPECIFIED":   0,
		"SPLIT_EMAIL_ADDRESS": 1,
		"SPLIT_PHONE_NUMBER":  2,
	}
)

Enum value maps for SearchOptions_Split.

View Source
var (
	//	The uuid namespace for a resource.
	//
	// optional string uuid_namespace = 92000;
	E_UuidNamespace = &file_malonaz_codegen_aip_v1_aip_proto_extTypes[1]
	// Configuration for AIP Update RPCs, including field mask handling and authorization.
	//
	// optional malonaz.codegen.aip.v1.UpdateOptions update = 920013;
	E_Update = &file_malonaz_codegen_aip_v1_aip_proto_extTypes[2]
	// Option for pagination.
	//
	// optional malonaz.codegen.aip.v1.PaginationOptions pagination = 94000;
	E_Pagination = &file_malonaz_codegen_aip_v1_aip_proto_extTypes[3]
	// Option for ordering.
	//
	// optional malonaz.codegen.aip.v1.OrderingOptions ordering = 94001;
	E_Ordering = &file_malonaz_codegen_aip_v1_aip_proto_extTypes[4]
	// Option for ordering.
	//
	// optional malonaz.codegen.aip.v1.FilteringOptions filtering = 94002;
	E_Filtering = &file_malonaz_codegen_aip_v1_aip_proto_extTypes[5]
	// Option for search. Set on a resource message to make it searchable.
	//
	// optional malonaz.codegen.aip.v1.SearchOptions search = 94003;
	E_Search = &file_malonaz_codegen_aip_v1_aip_proto_extTypes[6]
)

Extension fields to descriptorpb.MessageOptions.

View Source
var (
	// Labels that a package defines and uses.
	//
	// repeated malonaz.aip.v1.Label label = 43346;
	E_Label = &file_malonaz_codegen_aip_v1_label_proto_extTypes[0]
)

Extension fields to descriptorpb.FileOptions.

View Source
var (
	// Extension for standard method.
	//
	// optional malonaz.codegen.aip.v1.StandardMethod standard_method = 93000;
	E_StandardMethod = &file_malonaz_codegen_aip_v1_aip_proto_extTypes[0]
)

Extension fields to descriptorpb.MethodOptions.

View Source
var File_malonaz_codegen_aip_v1_aip_proto protoreflect.FileDescriptor
View Source
var File_malonaz_codegen_aip_v1_label_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FilteringOptions

type FilteringOptions struct {

	// List of fields that can be used in the filter expression.
	// Can use * or some.path.* wildcards.
	Paths []string `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"`
	// contains filtered or unexported fields
}

Options for filtering.

func (*FilteringOptions) GetPaths

func (x *FilteringOptions) GetPaths() []string

func (*FilteringOptions) ProtoMessage

func (*FilteringOptions) ProtoMessage()

func (*FilteringOptions) ProtoReflect

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

func (*FilteringOptions) Reset

func (x *FilteringOptions) Reset()

func (*FilteringOptions) SetPaths

func (x *FilteringOptions) SetPaths(v []string)

func (*FilteringOptions) String

func (x *FilteringOptions) String() string

type FilteringOptions_builder

type FilteringOptions_builder struct {

	// List of fields that can be used in the filter expression.
	// Can use * or some.path.* wildcards.
	Paths []string
	// contains filtered or unexported fields
}

func (FilteringOptions_builder) Build

type OrderingOptions

type OrderingOptions struct {

	// List of fields that can be used in the filter expression.
	// Can use * or some.path.* wildcards.
	Paths []string `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"`
	// The default ordering by option.
	Default string `protobuf:"bytes,2,opt,name=default,proto3" json:"default,omitempty"`
	// contains filtered or unexported fields
}

Options for ordering.

func (*OrderingOptions) GetDefault

func (x *OrderingOptions) GetDefault() string

func (*OrderingOptions) GetPaths

func (x *OrderingOptions) GetPaths() []string

func (*OrderingOptions) ProtoMessage

func (*OrderingOptions) ProtoMessage()

func (*OrderingOptions) ProtoReflect

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

func (*OrderingOptions) Reset

func (x *OrderingOptions) Reset()

func (*OrderingOptions) SetDefault

func (x *OrderingOptions) SetDefault(v string)

func (*OrderingOptions) SetPaths

func (x *OrderingOptions) SetPaths(v []string)

func (*OrderingOptions) String

func (x *OrderingOptions) String() string

type OrderingOptions_builder

type OrderingOptions_builder struct {

	// List of fields that can be used in the filter expression.
	// Can use * or some.path.* wildcards.
	Paths []string
	// The default ordering by option.
	Default string
	// contains filtered or unexported fields
}

func (OrderingOptions_builder) Build

type PaginationOptions

type PaginationOptions struct {

	// The default number of items to return per page.
	DefaultPageSize int32 `protobuf:"varint,1,opt,name=default_page_size,json=defaultPageSize,proto3" json:"default_page_size,omitempty"`
	// contains filtered or unexported fields
}

Options for pagination.

func (*PaginationOptions) GetDefaultPageSize

func (x *PaginationOptions) GetDefaultPageSize() int32

func (*PaginationOptions) ProtoMessage

func (*PaginationOptions) ProtoMessage()

func (*PaginationOptions) ProtoReflect

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

func (*PaginationOptions) Reset

func (x *PaginationOptions) Reset()

func (*PaginationOptions) SetDefaultPageSize

func (x *PaginationOptions) SetDefaultPageSize(v int32)

func (*PaginationOptions) String

func (x *PaginationOptions) String() string

type PaginationOptions_builder

type PaginationOptions_builder struct {

	// The default number of items to return per page.
	DefaultPageSize int32
	// contains filtered or unexported fields
}

func (PaginationOptions_builder) Build

type SearchOptions

type SearchOptions struct {

	// The fields composing the search document.
	Fields []*SearchOptions_Field `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

Options for search. Declares the fields composing a resource's search document, along with their relevance weight and tokenization behavior. The postgres codegen derives the search document SQL expression from these fields, and the rpc codegen wires Search{Plural} methods against it.

func (*SearchOptions) GetFields

func (x *SearchOptions) GetFields() []*SearchOptions_Field

func (*SearchOptions) ProtoMessage

func (*SearchOptions) ProtoMessage()

func (*SearchOptions) ProtoReflect

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

func (*SearchOptions) Reset

func (x *SearchOptions) Reset()

func (*SearchOptions) SetFields

func (x *SearchOptions) SetFields(v []*SearchOptions_Field)

func (*SearchOptions) String

func (x *SearchOptions) String() string

type SearchOptions_Field

type SearchOptions_Field struct {

	// The field of the resource to index. Either a top-level string or
	// repeated string field, or a dotted path into a message field stored as
	// JSONB via (malonaz.codegen.model.v1.field_opts).as_json_bytes, e.g.
	// "metadata.postal_address". JSON keys are proto field names. The terminal
	// segment may be a string, repeated string, or a message (whose whole JSON
	// subtree is indexed).
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// The relevance weight of this field. Defaults to WEIGHT_D.
	Weight SearchOptions_Weight `protobuf:"varint,2,opt,name=weight,proto3,enum=malonaz.codegen.aip.v1.SearchOptions_Weight" json:"weight,omitempty"`
	// Extra tokenization applied to this field.
	Split SearchOptions_Split `protobuf:"varint,3,opt,name=split,proto3,enum=malonaz.codegen.aip.v1.SearchOptions_Split" json:"split,omitempty"`
	// contains filtered or unexported fields
}

A field contributing to the search document.

func (*SearchOptions_Field) GetPath

func (x *SearchOptions_Field) GetPath() string

func (*SearchOptions_Field) GetSplit

func (*SearchOptions_Field) GetWeight

func (*SearchOptions_Field) ProtoMessage

func (*SearchOptions_Field) ProtoMessage()

func (*SearchOptions_Field) ProtoReflect

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

func (*SearchOptions_Field) Reset

func (x *SearchOptions_Field) Reset()

func (*SearchOptions_Field) SetPath

func (x *SearchOptions_Field) SetPath(v string)

func (*SearchOptions_Field) SetSplit

func (*SearchOptions_Field) SetWeight

func (x *SearchOptions_Field) SetWeight(v SearchOptions_Weight)

func (*SearchOptions_Field) String

func (x *SearchOptions_Field) String() string

type SearchOptions_Field_builder

type SearchOptions_Field_builder struct {

	// The field of the resource to index. Either a top-level string or
	// repeated string field, or a dotted path into a message field stored as
	// JSONB via (malonaz.codegen.model.v1.field_opts).as_json_bytes, e.g.
	// "metadata.postal_address". JSON keys are proto field names. The terminal
	// segment may be a string, repeated string, or a message (whose whole JSON
	// subtree is indexed).
	Path string
	// The relevance weight of this field. Defaults to WEIGHT_D.
	Weight SearchOptions_Weight
	// Extra tokenization applied to this field.
	Split SearchOptions_Split
	// contains filtered or unexported fields
}

func (SearchOptions_Field_builder) Build

type SearchOptions_Split

type SearchOptions_Split int32

Tokenization behavior applied to a field on top of standard word splitting.

const (
	// Used to detect an unset field. No extra tokenization.
	SearchOptions_SPLIT_UNSPECIFIED SearchOptions_Split = 0
	// Splits email addresses into their components, e.g.
	// "john@gmail.com" also indexes "john", "gmail" and "com".
	SearchOptions_SPLIT_EMAIL_ADDRESS SearchOptions_Split = 1
	// Strips all non-digit characters, e.g. "+1 (415) 555-1234"
	// also indexes "14155551234".
	SearchOptions_SPLIT_PHONE_NUMBER SearchOptions_Split = 2
)

func (SearchOptions_Split) Descriptor

func (SearchOptions_Split) Enum

func (SearchOptions_Split) Number

func (SearchOptions_Split) String

func (x SearchOptions_Split) String() string

func (SearchOptions_Split) Type

type SearchOptions_Weight

type SearchOptions_Weight int32

Relevance weight of a field, mapping to postgres tsvector weights. A is the highest relevance, D the lowest.

const (
	// Used to detect an unset field. Defaults to WEIGHT_D.
	SearchOptions_WEIGHT_UNSPECIFIED SearchOptions_Weight = 0
	// Highest relevance.
	SearchOptions_WEIGHT_A SearchOptions_Weight = 1
	// High relevance.
	SearchOptions_WEIGHT_B SearchOptions_Weight = 2
	// Medium relevance.
	SearchOptions_WEIGHT_C SearchOptions_Weight = 3
	// Lowest relevance.
	SearchOptions_WEIGHT_D SearchOptions_Weight = 4
)

func (SearchOptions_Weight) Descriptor

func (SearchOptions_Weight) Enum

func (SearchOptions_Weight) Number

func (SearchOptions_Weight) String

func (x SearchOptions_Weight) String() string

func (SearchOptions_Weight) Type

type SearchOptions_builder

type SearchOptions_builder struct {

	// The fields composing the search document.
	Fields []*SearchOptions_Field
	// contains filtered or unexported fields
}

func (SearchOptions_builder) Build

type StandardMethod

type StandardMethod struct {

	// The resource type this method operates on (e.g., "example.com/User").
	// Must match a resource type defined in google.api.resource annotations.
	// Used to determine request/response message types and validate method naming.
	Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// Emit an event for this action, using github.com/malonaz/pgq.
	// Only supported on CREATE, UPDATE & DELETE methods.
	EmitEvent bool `protobuf:"varint,2,opt,name=emit_event,json=emitEvent,proto3" json:"emit_event,omitempty"`
	// contains filtered or unexported fields
}

Marks a method as a standard AIP method (Create, Get, Update, Delete, or List). The protoc-gen-api plugin uses this to generate appropriate server and client code.

func (*StandardMethod) GetEmitEvent

func (x *StandardMethod) GetEmitEvent() bool

func (*StandardMethod) GetResource

func (x *StandardMethod) GetResource() string

func (*StandardMethod) ProtoMessage

func (*StandardMethod) ProtoMessage()

func (*StandardMethod) ProtoReflect

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

func (*StandardMethod) Reset

func (x *StandardMethod) Reset()

func (*StandardMethod) SetEmitEvent

func (x *StandardMethod) SetEmitEvent(v bool)

func (*StandardMethod) SetResource

func (x *StandardMethod) SetResource(v string)

func (*StandardMethod) String

func (x *StandardMethod) String() string

type StandardMethod_builder

type StandardMethod_builder struct {

	// The resource type this method operates on (e.g., "example.com/User").
	// Must match a resource type defined in google.api.resource annotations.
	// Used to determine request/response message types and validate method naming.
	Resource string
	// Emit an event for this action, using github.com/malonaz/pgq.
	// Only supported on CREATE, UPDATE & DELETE methods.
	EmitEvent bool
	// contains filtered or unexported fields
}

func (StandardMethod_builder) Build

type UpdateOptions

type UpdateOptions struct {

	// List of field paths that users are authorized to update.
	// Only fields listed here (or matching wildcard patterns) can be modified via Update RPCs.
	// This provides fine-grained access control at the field level.
	Paths []string `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"`
	// contains filtered or unexported fields
}

Configuration options for AIP-compliant Update methods. Defines which fields can be updated and how field masks are processed.

func (*UpdateOptions) GetPaths

func (x *UpdateOptions) GetPaths() []string

func (*UpdateOptions) ProtoMessage

func (*UpdateOptions) ProtoMessage()

func (*UpdateOptions) ProtoReflect

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

func (*UpdateOptions) Reset

func (x *UpdateOptions) Reset()

func (*UpdateOptions) SetPaths

func (x *UpdateOptions) SetPaths(v []string)

func (*UpdateOptions) String

func (x *UpdateOptions) String() string

type UpdateOptions_builder

type UpdateOptions_builder struct {

	// List of field paths that users are authorized to update.
	// Only fields listed here (or matching wildcard patterns) can be modified via Update RPCs.
	// This provides fine-grained access control at the field level.
	Paths []string
	// contains filtered or unexported fields
}

func (UpdateOptions_builder) Build

Jump to

Keyboard shortcuts

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