v1

package
v0.2.23 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CircleRule_ContentType_name = map[int32]string{
		0: "circleChat",
		1: "circlePostText",
		2: "circlePostLink",
		3: "circlePostImage",
		4: "circlePostVideo",
		5: "circlePostPoll",
		6: "circlePostAudio",
	}
	CircleRule_ContentType_value = map[string]int32{
		"circleChat":      0,
		"circlePostText":  1,
		"circlePostLink":  2,
		"circlePostImage": 3,
		"circlePostVideo": 4,
		"circlePostPoll":  5,
		"circlePostAudio": 6,
	}
)

Enum value maps for CircleRule_ContentType.

View Source
var AutomoderationAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "automoderation_api.v1.AutomoderationAPI",
	HandlerType: (*AutomoderationAPIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetCircleSettings",
			Handler:    _AutomoderationAPI_GetCircleSettings_Handler,
		},
		{
			MethodName: "UpdateCircleSettings",
			Handler:    _AutomoderationAPI_UpdateCircleSettings_Handler,
		},
		{
			MethodName: "CreateCircleRule",
			Handler:    _AutomoderationAPI_CreateCircleRule_Handler,
		},
		{
			MethodName: "UpdateCircleRule",
			Handler:    _AutomoderationAPI_UpdateCircleRule_Handler,
		},
		{
			MethodName: "DeleteCircleRule",
			Handler:    _AutomoderationAPI_DeleteCircleRule_Handler,
		},
		{
			MethodName: "GetAvailableActions",
			Handler:    _AutomoderationAPI_GetAvailableActions_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "automoderation-api/automoderation/v1/automoderation.proto",
}

AutomoderationAPI_ServiceDesc is the grpc.ServiceDesc for AutomoderationAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_automoderation_api_automoderation_v1_automoderation_proto protoreflect.FileDescriptor

Functions

func RegisterAutomoderationAPIServer

func RegisterAutomoderationAPIServer(s grpc.ServiceRegistrar, srv AutomoderationAPIServer)

Types

type AutomoderatableCircleChatMessage

type AutomoderatableCircleChatMessage struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserID   string `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID,omitempty"`
	CircleID string `protobuf:"bytes,3,opt,name=circleID,proto3" json:"circleID,omitempty"`
	Content  string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*AutomoderatableCircleChatMessage) Descriptor deprecated

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

Deprecated: Use AutomoderatableCircleChatMessage.ProtoReflect.Descriptor instead.

func (*AutomoderatableCircleChatMessage) GetCircleID

func (x *AutomoderatableCircleChatMessage) GetCircleID() string

func (*AutomoderatableCircleChatMessage) GetContent

func (x *AutomoderatableCircleChatMessage) GetContent() string

func (*AutomoderatableCircleChatMessage) GetId

func (*AutomoderatableCircleChatMessage) GetUserID

func (*AutomoderatableCircleChatMessage) ProtoMessage

func (*AutomoderatableCircleChatMessage) ProtoMessage()

func (*AutomoderatableCircleChatMessage) ProtoReflect

func (*AutomoderatableCircleChatMessage) Reset

func (*AutomoderatableCircleChatMessage) String

type AutomoderatableCirclePost

type AutomoderatableCirclePost struct {
	Id       string        `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserID   string        `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID,omitempty"`
	CircleID string        `protobuf:"bytes,3,opt,name=circleID,proto3" json:"circleID,omitempty"`
	Data     *v1.Post_Data `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` //  repeated string tags = 5; // for preprocessed videos
	// contains filtered or unexported fields
}

func (*AutomoderatableCirclePost) Descriptor deprecated

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

Deprecated: Use AutomoderatableCirclePost.ProtoReflect.Descriptor instead.

func (*AutomoderatableCirclePost) GetCircleID

func (x *AutomoderatableCirclePost) GetCircleID() string

func (*AutomoderatableCirclePost) GetData

func (x *AutomoderatableCirclePost) GetData() *v1.Post_Data

func (*AutomoderatableCirclePost) GetId

func (x *AutomoderatableCirclePost) GetId() string

func (*AutomoderatableCirclePost) GetUserID

func (x *AutomoderatableCirclePost) GetUserID() string

func (*AutomoderatableCirclePost) ProtoMessage

func (*AutomoderatableCirclePost) ProtoMessage()

func (*AutomoderatableCirclePost) ProtoReflect

func (*AutomoderatableCirclePost) Reset

func (x *AutomoderatableCirclePost) Reset()

func (*AutomoderatableCirclePost) String

func (x *AutomoderatableCirclePost) String() string

type AutomoderatableData

type AutomoderatableData struct {

	// Types that are assignable to Data:
	//
	//	*AutomoderatableData_CircleChatMessage
	//	*AutomoderatableData_CirclePost
	Data isAutomoderatableData_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*AutomoderatableData) Descriptor deprecated

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

Deprecated: Use AutomoderatableData.ProtoReflect.Descriptor instead.

func (*AutomoderatableData) GetCircleChatMessage

func (x *AutomoderatableData) GetCircleChatMessage() *AutomoderatableCircleChatMessage

func (*AutomoderatableData) GetCirclePost

func (x *AutomoderatableData) GetCirclePost() *AutomoderatableCirclePost

func (*AutomoderatableData) GetData

func (m *AutomoderatableData) GetData() isAutomoderatableData_Data

func (*AutomoderatableData) ProtoMessage

func (*AutomoderatableData) ProtoMessage()

func (*AutomoderatableData) ProtoReflect

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

func (*AutomoderatableData) Reset

func (x *AutomoderatableData) Reset()

func (*AutomoderatableData) String

func (x *AutomoderatableData) String() string

type AutomoderatableData_CircleChatMessage

type AutomoderatableData_CircleChatMessage struct {
	CircleChatMessage *AutomoderatableCircleChatMessage `protobuf:"bytes,1,opt,name=circleChatMessage,proto3,oneof"`
}

type AutomoderatableData_CirclePost

type AutomoderatableData_CirclePost struct {
	CirclePost *AutomoderatableCirclePost `protobuf:"bytes,2,opt,name=circlePost,proto3,oneof"`
}

type AutomoderationAPIClient

type AutomoderationAPIClient interface {
	GetCircleSettings(ctx context.Context, in *GetCircleSettingsRequest, opts ...grpc.CallOption) (*GetCircleSettingsResponse, error)
	UpdateCircleSettings(ctx context.Context, in *UpdateCircleSettingsRequest, opts ...grpc.CallOption) (*Empty, error)
	CreateCircleRule(ctx context.Context, in *CreateCircleRuleRequest, opts ...grpc.CallOption) (*Empty, error)
	UpdateCircleRule(ctx context.Context, in *UpdateCircleRuleRequest, opts ...grpc.CallOption) (*Empty, error)
	DeleteCircleRule(ctx context.Context, in *DeleteCircleRuleRequest, opts ...grpc.CallOption) (*Empty, error)
	GetAvailableActions(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetAvailableActionsResponse, error)
}

AutomoderationAPIClient is the client API for AutomoderationAPI service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AutomoderationAPIServer

type AutomoderationAPIServer interface {
	GetCircleSettings(context.Context, *GetCircleSettingsRequest) (*GetCircleSettingsResponse, error)
	UpdateCircleSettings(context.Context, *UpdateCircleSettingsRequest) (*Empty, error)
	CreateCircleRule(context.Context, *CreateCircleRuleRequest) (*Empty, error)
	UpdateCircleRule(context.Context, *UpdateCircleRuleRequest) (*Empty, error)
	DeleteCircleRule(context.Context, *DeleteCircleRuleRequest) (*Empty, error)
	GetAvailableActions(context.Context, *Empty) (*GetAvailableActionsResponse, error)
	// contains filtered or unexported methods
}

AutomoderationAPIServer is the server API for AutomoderationAPI service. All implementations must embed UnimplementedAutomoderationAPIServer for forward compatibility

type CircleRule

type CircleRule struct {
	Id          string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	CircleId    string                 `protobuf:"bytes,2,opt,name=circleId,proto3" json:"circleId,omitempty"`
	Action      string                 `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"`
	Condition   string                 `protobuf:"bytes,4,opt,name=condition,proto3" json:"condition,omitempty"`
	IsEnabled   bool                   `protobuf:"varint,5,opt,name=isEnabled,proto3" json:"isEnabled,omitempty"`
	ContentType CircleRule_ContentType `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CircleRule) Descriptor deprecated

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

Deprecated: Use CircleRule.ProtoReflect.Descriptor instead.

func (*CircleRule) GetAction

func (x *CircleRule) GetAction() string

func (*CircleRule) GetCircleId

func (x *CircleRule) GetCircleId() string

func (*CircleRule) GetCondition

func (x *CircleRule) GetCondition() string

func (*CircleRule) GetContentType

func (x *CircleRule) GetContentType() CircleRule_ContentType

func (*CircleRule) GetId

func (x *CircleRule) GetId() string

func (*CircleRule) GetIsEnabled

func (x *CircleRule) GetIsEnabled() bool

func (*CircleRule) ProtoMessage

func (*CircleRule) ProtoMessage()

func (*CircleRule) ProtoReflect

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

func (*CircleRule) Reset

func (x *CircleRule) Reset()

func (*CircleRule) String

func (x *CircleRule) String() string

type CircleRule_ContentType

type CircleRule_ContentType int32
const (
	CircleRule_circleChat      CircleRule_ContentType = 0
	CircleRule_circlePostText  CircleRule_ContentType = 1
	CircleRule_circlePostLink  CircleRule_ContentType = 2
	CircleRule_circlePostImage CircleRule_ContentType = 3
	CircleRule_circlePostVideo CircleRule_ContentType = 4
	CircleRule_circlePostPoll  CircleRule_ContentType = 5
	CircleRule_circlePostAudio CircleRule_ContentType = 6
)

func (CircleRule_ContentType) Descriptor

func (CircleRule_ContentType) Enum

func (CircleRule_ContentType) EnumDescriptor deprecated

func (CircleRule_ContentType) EnumDescriptor() ([]byte, []int)

Deprecated: Use CircleRule_ContentType.Descriptor instead.

func (CircleRule_ContentType) Number

func (CircleRule_ContentType) String

func (x CircleRule_ContentType) String() string

func (CircleRule_ContentType) Type

type CircleSettings

type CircleSettings struct {
	IsShown   bool `protobuf:"varint,1,opt,name=isShown,proto3" json:"isShown,omitempty"`
	IsEnabled bool `protobuf:"varint,2,opt,name=isEnabled,proto3" json:"isEnabled,omitempty"`
	// contains filtered or unexported fields
}

func (*CircleSettings) Descriptor deprecated

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

Deprecated: Use CircleSettings.ProtoReflect.Descriptor instead.

func (*CircleSettings) GetIsEnabled

func (x *CircleSettings) GetIsEnabled() bool

func (*CircleSettings) GetIsShown

func (x *CircleSettings) GetIsShown() bool

func (*CircleSettings) ProtoMessage

func (*CircleSettings) ProtoMessage()

func (*CircleSettings) ProtoReflect

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

func (*CircleSettings) Reset

func (x *CircleSettings) Reset()

func (*CircleSettings) String

func (x *CircleSettings) String() string

type CreateCircleRuleRequest

type CreateCircleRuleRequest struct {
	Rule *CircleRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCircleRuleRequest) Descriptor deprecated

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

Deprecated: Use CreateCircleRuleRequest.ProtoReflect.Descriptor instead.

func (*CreateCircleRuleRequest) GetRule

func (x *CreateCircleRuleRequest) GetRule() *CircleRule

func (*CreateCircleRuleRequest) ProtoMessage

func (*CreateCircleRuleRequest) ProtoMessage()

func (*CreateCircleRuleRequest) ProtoReflect

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

func (*CreateCircleRuleRequest) Reset

func (x *CreateCircleRuleRequest) Reset()

func (*CreateCircleRuleRequest) String

func (x *CreateCircleRuleRequest) String() string

type DeleteCircleRuleRequest

type DeleteCircleRuleRequest struct {
	Rule *CircleRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteCircleRuleRequest) Descriptor deprecated

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

Deprecated: Use DeleteCircleRuleRequest.ProtoReflect.Descriptor instead.

func (*DeleteCircleRuleRequest) GetRule

func (x *DeleteCircleRuleRequest) GetRule() *CircleRule

func (*DeleteCircleRuleRequest) ProtoMessage

func (*DeleteCircleRuleRequest) ProtoMessage()

func (*DeleteCircleRuleRequest) ProtoReflect

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

func (*DeleteCircleRuleRequest) Reset

func (x *DeleteCircleRuleRequest) Reset()

func (*DeleteCircleRuleRequest) String

func (x *DeleteCircleRuleRequest) String() string

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type GetAvailableActionsResponse

type GetAvailableActionsResponse struct {
	Actions []string `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAvailableActionsResponse) Descriptor deprecated

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

Deprecated: Use GetAvailableActionsResponse.ProtoReflect.Descriptor instead.

func (*GetAvailableActionsResponse) GetActions

func (x *GetAvailableActionsResponse) GetActions() []string

func (*GetAvailableActionsResponse) ProtoMessage

func (*GetAvailableActionsResponse) ProtoMessage()

func (*GetAvailableActionsResponse) ProtoReflect

func (*GetAvailableActionsResponse) Reset

func (x *GetAvailableActionsResponse) Reset()

func (*GetAvailableActionsResponse) String

func (x *GetAvailableActionsResponse) String() string

type GetCircleSettingsRequest

type GetCircleSettingsRequest struct {
	CircleId  string `protobuf:"bytes,1,opt,name=circleId,proto3" json:"circleId,omitempty"`
	WithRules bool   `protobuf:"varint,2,opt,name=withRules,proto3" json:"withRules,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCircleSettingsRequest) Descriptor deprecated

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

Deprecated: Use GetCircleSettingsRequest.ProtoReflect.Descriptor instead.

func (*GetCircleSettingsRequest) GetCircleId

func (x *GetCircleSettingsRequest) GetCircleId() string

func (*GetCircleSettingsRequest) GetWithRules

func (x *GetCircleSettingsRequest) GetWithRules() bool

func (*GetCircleSettingsRequest) ProtoMessage

func (*GetCircleSettingsRequest) ProtoMessage()

func (*GetCircleSettingsRequest) ProtoReflect

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

func (*GetCircleSettingsRequest) Reset

func (x *GetCircleSettingsRequest) Reset()

func (*GetCircleSettingsRequest) String

func (x *GetCircleSettingsRequest) String() string

type GetCircleSettingsResponse

type GetCircleSettingsResponse struct {
	Settings *CircleSettings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"`
	Rules    []*CircleRule   `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCircleSettingsResponse) Descriptor deprecated

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

Deprecated: Use GetCircleSettingsResponse.ProtoReflect.Descriptor instead.

func (*GetCircleSettingsResponse) GetRules

func (x *GetCircleSettingsResponse) GetRules() []*CircleRule

func (*GetCircleSettingsResponse) GetSettings

func (x *GetCircleSettingsResponse) GetSettings() *CircleSettings

func (*GetCircleSettingsResponse) ProtoMessage

func (*GetCircleSettingsResponse) ProtoMessage()

func (*GetCircleSettingsResponse) ProtoReflect

func (*GetCircleSettingsResponse) Reset

func (x *GetCircleSettingsResponse) Reset()

func (*GetCircleSettingsResponse) String

func (x *GetCircleSettingsResponse) String() string

type UnimplementedAutomoderationAPIServer

type UnimplementedAutomoderationAPIServer struct {
}

UnimplementedAutomoderationAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedAutomoderationAPIServer) CreateCircleRule

func (UnimplementedAutomoderationAPIServer) DeleteCircleRule

func (UnimplementedAutomoderationAPIServer) GetAvailableActions

func (UnimplementedAutomoderationAPIServer) GetCircleSettings

func (UnimplementedAutomoderationAPIServer) UpdateCircleRule

func (UnimplementedAutomoderationAPIServer) UpdateCircleSettings

type UnsafeAutomoderationAPIServer

type UnsafeAutomoderationAPIServer interface {
	// contains filtered or unexported methods
}

UnsafeAutomoderationAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AutomoderationAPIServer will result in compilation errors.

type UpdateCircleRuleRequest

type UpdateCircleRuleRequest struct {
	Rule *CircleRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCircleRuleRequest) Descriptor deprecated

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

Deprecated: Use UpdateCircleRuleRequest.ProtoReflect.Descriptor instead.

func (*UpdateCircleRuleRequest) GetRule

func (x *UpdateCircleRuleRequest) GetRule() *CircleRule

func (*UpdateCircleRuleRequest) ProtoMessage

func (*UpdateCircleRuleRequest) ProtoMessage()

func (*UpdateCircleRuleRequest) ProtoReflect

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

func (*UpdateCircleRuleRequest) Reset

func (x *UpdateCircleRuleRequest) Reset()

func (*UpdateCircleRuleRequest) String

func (x *UpdateCircleRuleRequest) String() string

type UpdateCircleSettingsRequest

type UpdateCircleSettingsRequest struct {
	CircleId string          `protobuf:"bytes,1,opt,name=circleId,proto3" json:"circleId,omitempty"`
	Settings *CircleSettings `protobuf:"bytes,2,opt,name=settings,proto3" json:"settings,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCircleSettingsRequest) Descriptor deprecated

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

Deprecated: Use UpdateCircleSettingsRequest.ProtoReflect.Descriptor instead.

func (*UpdateCircleSettingsRequest) GetCircleId

func (x *UpdateCircleSettingsRequest) GetCircleId() string

func (*UpdateCircleSettingsRequest) GetSettings

func (x *UpdateCircleSettingsRequest) GetSettings() *CircleSettings

func (*UpdateCircleSettingsRequest) ProtoMessage

func (*UpdateCircleSettingsRequest) ProtoMessage()

func (*UpdateCircleSettingsRequest) ProtoReflect

func (*UpdateCircleSettingsRequest) Reset

func (x *UpdateCircleSettingsRequest) Reset()

func (*UpdateCircleSettingsRequest) String

func (x *UpdateCircleSettingsRequest) String() string

Jump to

Keyboard shortcuts

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