v1

package
v0.0.0-...-2172325 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var ArticlesAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "hfcms.articles.v1.ArticlesAPI",
	HandlerType: (*ArticlesAPIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListArticles",
			Handler:    _ArticlesAPI_ListArticles_Handler,
		},
		{
			MethodName: "GetArticle",
			Handler:    _ArticlesAPI_GetArticle_Handler,
		},
		{
			MethodName: "SearchArticles",
			Handler:    _ArticlesAPI_SearchArticles_Handler,
		},
		{
			MethodName: "CreateArticle",
			Handler:    _ArticlesAPI_CreateArticle_Handler,
		},
		{
			MethodName: "UpdateArticle",
			Handler:    _ArticlesAPI_UpdateArticle_Handler,
		},
		{
			MethodName: "DeleteArticle",
			Handler:    _ArticlesAPI_DeleteArticle_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/articles/v1/hfcms-articles.proto",
}

ArticlesAPI_ServiceDesc is the grpc.ServiceDesc for ArticlesAPI 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 AttributesAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "hfcms.articles.v1.AttributesAPI",
	HandlerType: (*AttributesAPIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListAttributes",
			Handler:    _AttributesAPI_ListAttributes_Handler,
		},
		{
			MethodName: "GetAttribute",
			Handler:    _AttributesAPI_GetAttribute_Handler,
		},
		{
			MethodName: "SearchAttributes",
			Handler:    _AttributesAPI_SearchAttributes_Handler,
		},
		{
			MethodName: "CreateAttribute",
			Handler:    _AttributesAPI_CreateAttribute_Handler,
		},
		{
			MethodName: "UpdateAttribute",
			Handler:    _AttributesAPI_UpdateAttribute_Handler,
		},
		{
			MethodName: "DeleteAttribute",
			Handler:    _AttributesAPI_DeleteAttribute_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/articles/v1/hfcms-attributes.proto",
}

AttributesAPI_ServiceDesc is the grpc.ServiceDesc for AttributesAPI 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 CategoriesAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "hfcms.articles.v1.CategoriesAPI",
	HandlerType: (*CategoriesAPIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListCategories",
			Handler:    _CategoriesAPI_ListCategories_Handler,
		},
		{
			MethodName: "GetCategory",
			Handler:    _CategoriesAPI_GetCategory_Handler,
		},
		{
			MethodName: "CreateCategory",
			Handler:    _CategoriesAPI_CreateCategory_Handler,
		},
		{
			MethodName: "UpdateCategory",
			Handler:    _CategoriesAPI_UpdateCategory_Handler,
		},
		{
			MethodName: "DeleteCategory",
			Handler:    _CategoriesAPI_DeleteCategory_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/articles/v1/hfcms-categories.proto",
}

CategoriesAPI_ServiceDesc is the grpc.ServiceDesc for CategoriesAPI 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_api_articles_v1_hfcms_articles_proto protoreflect.FileDescriptor
View Source
var File_api_articles_v1_hfcms_attributes_proto protoreflect.FileDescriptor
View Source
var File_api_articles_v1_hfcms_categories_proto protoreflect.FileDescriptor
View Source
var File_api_articles_v1_hfcms_tags_proto protoreflect.FileDescriptor
View Source
var TagsAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "hfcms.articles.v1.TagsAPI",
	HandlerType: (*TagsAPIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListTags",
			Handler:    _TagsAPI_ListTags_Handler,
		},
		{
			MethodName: "GetTag",
			Handler:    _TagsAPI_GetTag_Handler,
		},
		{
			MethodName: "CreateTag",
			Handler:    _TagsAPI_CreateTag_Handler,
		},
		{
			MethodName: "UpdateTag",
			Handler:    _TagsAPI_UpdateTag_Handler,
		},
		{
			MethodName: "DeleteTag",
			Handler:    _TagsAPI_DeleteTag_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/articles/v1/hfcms-tags.proto",
}

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

Functions

func RegisterArticlesAPIHandler

func RegisterArticlesAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterArticlesAPIHandler registers the http handlers for service ArticlesAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterArticlesAPIHandlerClient

func RegisterArticlesAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ArticlesAPIClient) error

RegisterArticlesAPIHandlerClient registers the http handlers for service ArticlesAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ArticlesAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ArticlesAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ArticlesAPIClient" to call the correct interceptors.

func RegisterArticlesAPIHandlerFromEndpoint

func RegisterArticlesAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterArticlesAPIHandlerFromEndpoint is same as RegisterArticlesAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterArticlesAPIHandlerServer

func RegisterArticlesAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ArticlesAPIServer) error

RegisterArticlesAPIHandlerServer registers the http handlers for service ArticlesAPI to "mux". UnaryRPC :call ArticlesAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterArticlesAPIHandlerFromEndpoint instead.

func RegisterArticlesAPIServer

func RegisterArticlesAPIServer(s grpc.ServiceRegistrar, srv ArticlesAPIServer)

func RegisterAttributesAPIHandler

func RegisterAttributesAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAttributesAPIHandler registers the http handlers for service AttributesAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAttributesAPIHandlerClient

func RegisterAttributesAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AttributesAPIClient) error

RegisterAttributesAPIHandlerClient registers the http handlers for service AttributesAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AttributesAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AttributesAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AttributesAPIClient" to call the correct interceptors.

func RegisterAttributesAPIHandlerFromEndpoint

func RegisterAttributesAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAttributesAPIHandlerFromEndpoint is same as RegisterAttributesAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAttributesAPIHandlerServer

func RegisterAttributesAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AttributesAPIServer) error

RegisterAttributesAPIHandlerServer registers the http handlers for service AttributesAPI to "mux". UnaryRPC :call AttributesAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAttributesAPIHandlerFromEndpoint instead.

func RegisterAttributesAPIServer

func RegisterAttributesAPIServer(s grpc.ServiceRegistrar, srv AttributesAPIServer)

func RegisterCategoriesAPIHandler

func RegisterCategoriesAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterCategoriesAPIHandler registers the http handlers for service CategoriesAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterCategoriesAPIHandlerClient

func RegisterCategoriesAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CategoriesAPIClient) error

RegisterCategoriesAPIHandlerClient registers the http handlers for service CategoriesAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CategoriesAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CategoriesAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CategoriesAPIClient" to call the correct interceptors.

func RegisterCategoriesAPIHandlerFromEndpoint

func RegisterCategoriesAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterCategoriesAPIHandlerFromEndpoint is same as RegisterCategoriesAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterCategoriesAPIHandlerServer

func RegisterCategoriesAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CategoriesAPIServer) error

RegisterCategoriesAPIHandlerServer registers the http handlers for service CategoriesAPI to "mux". UnaryRPC :call CategoriesAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCategoriesAPIHandlerFromEndpoint instead.

func RegisterCategoriesAPIServer

func RegisterCategoriesAPIServer(s grpc.ServiceRegistrar, srv CategoriesAPIServer)

func RegisterTagsAPIHandler

func RegisterTagsAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterTagsAPIHandler registers the http handlers for service TagsAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterTagsAPIHandlerClient

func RegisterTagsAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TagsAPIClient) error

RegisterTagsAPIHandlerClient registers the http handlers for service TagsAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TagsAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TagsAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TagsAPIClient" to call the correct interceptors.

func RegisterTagsAPIHandlerFromEndpoint

func RegisterTagsAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterTagsAPIHandlerFromEndpoint is same as RegisterTagsAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterTagsAPIHandlerServer

func RegisterTagsAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TagsAPIServer) error

RegisterTagsAPIHandlerServer registers the http handlers for service TagsAPI to "mux". UnaryRPC :call TagsAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterTagsAPIHandlerFromEndpoint instead.

func RegisterTagsAPIServer

func RegisterTagsAPIServer(s grpc.ServiceRegistrar, srv TagsAPIServer)

Types

type Article

type Article struct {
	Name       string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ArticleId  string                 `protobuf:"bytes,2,opt,name=article_id,json=articleId,proto3" json:"article_id,omitempty"`
	Title      string                 `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	Content    string                 `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	CategoryId int32                  `protobuf:"varint,6,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
	UserId     int32                  `protobuf:"varint,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Category   *Category              `protobuf:"bytes,8,opt,name=category,proto3" json:"category,omitempty"`
	Tags       []*Tag                 `protobuf:"bytes,9,rep,name=tags,proto3" json:"tags,omitempty"`
	Attributes []*Attribute           `protobuf:"bytes,10,rep,name=attributes,proto3" json:"attributes,omitempty"`
	// contains filtered or unexported fields
}

func (*Article) Descriptor deprecated

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

Deprecated: Use Article.ProtoReflect.Descriptor instead.

func (*Article) GetArticleId

func (x *Article) GetArticleId() string

func (*Article) GetAttributes

func (x *Article) GetAttributes() []*Attribute

func (*Article) GetCategory

func (x *Article) GetCategory() *Category

func (*Article) GetCategoryId

func (x *Article) GetCategoryId() int32

func (*Article) GetContent

func (x *Article) GetContent() string

func (*Article) GetName

func (x *Article) GetName() string

func (*Article) GetTags

func (x *Article) GetTags() []*Tag

func (*Article) GetTitle

func (x *Article) GetTitle() string

func (*Article) GetUpdateTime

func (x *Article) GetUpdateTime() *timestamppb.Timestamp

func (*Article) GetUserId

func (x *Article) GetUserId() int32

func (*Article) ProtoMessage

func (*Article) ProtoMessage()

func (*Article) ProtoReflect

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

func (*Article) Reset

func (x *Article) Reset()

func (*Article) String

func (x *Article) String() string

type ArticlesAPIClient

type ArticlesAPIClient interface {
	ListArticles(ctx context.Context, in *ListArticlesRequest, opts ...grpc.CallOption) (*ListArticlesResponse, error)
	GetArticle(ctx context.Context, in *GetArticleRequest, opts ...grpc.CallOption) (*Article, error)
	SearchArticles(ctx context.Context, in *SearchArticlesRequest, opts ...grpc.CallOption) (*SearchArticlesResponse, error)
	CreateArticle(ctx context.Context, in *CreateArticleRequest, opts ...grpc.CallOption) (*Article, error)
	UpdateArticle(ctx context.Context, in *UpdateArticleRequest, opts ...grpc.CallOption) (*Article, error)
	DeleteArticle(ctx context.Context, in *DeleteArticleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ArticlesAPIClient is the client API for ArticlesAPI 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 ArticlesAPIServer

type ArticlesAPIServer interface {
	ListArticles(context.Context, *ListArticlesRequest) (*ListArticlesResponse, error)
	GetArticle(context.Context, *GetArticleRequest) (*Article, error)
	SearchArticles(context.Context, *SearchArticlesRequest) (*SearchArticlesResponse, error)
	CreateArticle(context.Context, *CreateArticleRequest) (*Article, error)
	UpdateArticle(context.Context, *UpdateArticleRequest) (*Article, error)
	DeleteArticle(context.Context, *DeleteArticleRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

ArticlesAPIServer is the server API for ArticlesAPI service. All implementations must embed UnimplementedArticlesAPIServer for forward compatibility

type Attribute

type Attribute struct {
	Name        string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	AttributeId int32                  `protobuf:"varint,2,opt,name=attribute_id,json=attributeId,proto3" json:"attribute_id,omitempty"`
	Path        string                 `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	Description string                 `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	UserId      int32                  `protobuf:"varint,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ArticleId   string                 `protobuf:"bytes,6,opt,name=article_id,json=articleId,proto3" json:"article_id,omitempty"`
	UpdateTime  *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

func (*Attribute) Descriptor deprecated

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

Deprecated: Use Attribute.ProtoReflect.Descriptor instead.

func (*Attribute) GetArticleId

func (x *Attribute) GetArticleId() string

func (*Attribute) GetAttributeId

func (x *Attribute) GetAttributeId() int32

func (*Attribute) GetDescription

func (x *Attribute) GetDescription() string

func (*Attribute) GetName

func (x *Attribute) GetName() string

func (*Attribute) GetPath

func (x *Attribute) GetPath() string

func (*Attribute) GetUpdateTime

func (x *Attribute) GetUpdateTime() *timestamppb.Timestamp

func (*Attribute) GetUserId

func (x *Attribute) GetUserId() int32

func (*Attribute) ProtoMessage

func (*Attribute) ProtoMessage()

func (*Attribute) ProtoReflect

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

func (*Attribute) Reset

func (x *Attribute) Reset()

func (*Attribute) String

func (x *Attribute) String() string

type AttributesAPIClient

type AttributesAPIClient interface {
	ListAttributes(ctx context.Context, in *ListAttributesRequest, opts ...grpc.CallOption) (*ListAttributesResponse, error)
	GetAttribute(ctx context.Context, in *GetAttributeRequest, opts ...grpc.CallOption) (*Attribute, error)
	SearchAttributes(ctx context.Context, in *SearchAttributesRequest, opts ...grpc.CallOption) (*SearchAttributesResponse, error)
	CreateAttribute(ctx context.Context, in *CreateAttributeRequest, opts ...grpc.CallOption) (*Attribute, error)
	UpdateAttribute(ctx context.Context, in *UpdateAttributeRequest, opts ...grpc.CallOption) (*Attribute, error)
	DeleteAttribute(ctx context.Context, in *DeleteAttributeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

AttributesAPIClient is the client API for AttributesAPI 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 AttributesAPIServer

type AttributesAPIServer interface {
	ListAttributes(context.Context, *ListAttributesRequest) (*ListAttributesResponse, error)
	GetAttribute(context.Context, *GetAttributeRequest) (*Attribute, error)
	SearchAttributes(context.Context, *SearchAttributesRequest) (*SearchAttributesResponse, error)
	CreateAttribute(context.Context, *CreateAttributeRequest) (*Attribute, error)
	UpdateAttribute(context.Context, *UpdateAttributeRequest) (*Attribute, error)
	DeleteAttribute(context.Context, *DeleteAttributeRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

AttributesAPIServer is the server API for AttributesAPI service. All implementations must embed UnimplementedAttributesAPIServer for forward compatibility

type CategoriesAPIClient

type CategoriesAPIClient interface {
	ListCategories(ctx context.Context, in *ListCategoriesRequest, opts ...grpc.CallOption) (*ListCategoriesResponse, error)
	GetCategory(ctx context.Context, in *GetCategoryRequest, opts ...grpc.CallOption) (*Category, error)
	CreateCategory(ctx context.Context, in *CreateCategoryRequest, opts ...grpc.CallOption) (*Category, error)
	UpdateCategory(ctx context.Context, in *UpdateCategoryRequest, opts ...grpc.CallOption) (*Category, error)
	DeleteCategory(ctx context.Context, in *DeleteCategoryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

CategoriesAPIClient is the client API for CategoriesAPI 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 CategoriesAPIServer

type CategoriesAPIServer interface {
	ListCategories(context.Context, *ListCategoriesRequest) (*ListCategoriesResponse, error)
	GetCategory(context.Context, *GetCategoryRequest) (*Category, error)
	CreateCategory(context.Context, *CreateCategoryRequest) (*Category, error)
	UpdateCategory(context.Context, *UpdateCategoryRequest) (*Category, error)
	DeleteCategory(context.Context, *DeleteCategoryRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

CategoriesAPIServer is the server API for CategoriesAPI service. All implementations must embed UnimplementedCategoriesAPIServer for forward compatibility

type Category

type Category struct {
	Name         string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	CategoryId   int32                  `protobuf:"varint,2,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
	CategoryName string                 `protobuf:"bytes,3,opt,name=category_name,json=categoryName,proto3" json:"category_name,omitempty"`
	CategoryCode string                 `protobuf:"bytes,4,opt,name=category_code,json=categoryCode,proto3" json:"category_code,omitempty"`
	UpdateTime   *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

func (*Category) Descriptor deprecated

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

Deprecated: Use Category.ProtoReflect.Descriptor instead.

func (*Category) GetCategoryCode

func (x *Category) GetCategoryCode() string

func (*Category) GetCategoryId

func (x *Category) GetCategoryId() int32

func (*Category) GetCategoryName

func (x *Category) GetCategoryName() string

func (*Category) GetName

func (x *Category) GetName() string

func (*Category) GetUpdateTime

func (x *Category) GetUpdateTime() *timestamppb.Timestamp

func (*Category) ProtoMessage

func (*Category) ProtoMessage()

func (*Category) ProtoReflect

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

func (*Category) Reset

func (x *Category) Reset()

func (*Category) String

func (x *Category) String() string

type CreateArticleRequest

type CreateArticleRequest struct {
	Parent    string   `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	ArticleId string   `protobuf:"bytes,2,opt,name=article_id,json=articleId,proto3" json:"article_id,omitempty"`
	Article   *Article `protobuf:"bytes,3,opt,name=article,proto3" json:"article,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateArticleRequest) Descriptor deprecated

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

Deprecated: Use CreateArticleRequest.ProtoReflect.Descriptor instead.

func (*CreateArticleRequest) GetArticle

func (x *CreateArticleRequest) GetArticle() *Article

func (*CreateArticleRequest) GetArticleId

func (x *CreateArticleRequest) GetArticleId() string

func (*CreateArticleRequest) GetParent

func (x *CreateArticleRequest) GetParent() string

func (*CreateArticleRequest) ProtoMessage

func (*CreateArticleRequest) ProtoMessage()

func (*CreateArticleRequest) ProtoReflect

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

func (*CreateArticleRequest) Reset

func (x *CreateArticleRequest) Reset()

func (*CreateArticleRequest) String

func (x *CreateArticleRequest) String() string

type CreateAttributeRequest

type CreateAttributeRequest struct {
	Name      string     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Attribute *Attribute `protobuf:"bytes,2,opt,name=attribute,proto3" json:"attribute,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAttributeRequest) Descriptor deprecated

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

Deprecated: Use CreateAttributeRequest.ProtoReflect.Descriptor instead.

func (*CreateAttributeRequest) GetAttribute

func (x *CreateAttributeRequest) GetAttribute() *Attribute

func (*CreateAttributeRequest) GetName

func (x *CreateAttributeRequest) GetName() string

func (*CreateAttributeRequest) ProtoMessage

func (*CreateAttributeRequest) ProtoMessage()

func (*CreateAttributeRequest) ProtoReflect

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

func (*CreateAttributeRequest) Reset

func (x *CreateAttributeRequest) Reset()

func (*CreateAttributeRequest) String

func (x *CreateAttributeRequest) String() string

type CreateCategoryRequest

type CreateCategoryRequest struct {
	Name     string    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Category *Category `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCategoryRequest) Descriptor deprecated

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

Deprecated: Use CreateCategoryRequest.ProtoReflect.Descriptor instead.

func (*CreateCategoryRequest) GetCategory

func (x *CreateCategoryRequest) GetCategory() *Category

func (*CreateCategoryRequest) GetName

func (x *CreateCategoryRequest) GetName() string

func (*CreateCategoryRequest) ProtoMessage

func (*CreateCategoryRequest) ProtoMessage()

func (*CreateCategoryRequest) ProtoReflect

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

func (*CreateCategoryRequest) Reset

func (x *CreateCategoryRequest) Reset()

func (*CreateCategoryRequest) String

func (x *CreateCategoryRequest) String() string

type CreateTagRequest

type CreateTagRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Tag  *Tag   `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTagRequest) Descriptor deprecated

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

Deprecated: Use CreateTagRequest.ProtoReflect.Descriptor instead.

func (*CreateTagRequest) GetName

func (x *CreateTagRequest) GetName() string

func (*CreateTagRequest) GetTag

func (x *CreateTagRequest) GetTag() *Tag

func (*CreateTagRequest) ProtoMessage

func (*CreateTagRequest) ProtoMessage()

func (*CreateTagRequest) ProtoReflect

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

func (*CreateTagRequest) Reset

func (x *CreateTagRequest) Reset()

func (*CreateTagRequest) String

func (x *CreateTagRequest) String() string

type DeleteArticleRequest

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

func (*DeleteArticleRequest) Descriptor deprecated

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

Deprecated: Use DeleteArticleRequest.ProtoReflect.Descriptor instead.

func (*DeleteArticleRequest) GetName

func (x *DeleteArticleRequest) GetName() string

func (*DeleteArticleRequest) ProtoMessage

func (*DeleteArticleRequest) ProtoMessage()

func (*DeleteArticleRequest) ProtoReflect

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

func (*DeleteArticleRequest) Reset

func (x *DeleteArticleRequest) Reset()

func (*DeleteArticleRequest) String

func (x *DeleteArticleRequest) String() string

type DeleteAttributeRequest

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

func (*DeleteAttributeRequest) Descriptor deprecated

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

Deprecated: Use DeleteAttributeRequest.ProtoReflect.Descriptor instead.

func (*DeleteAttributeRequest) GetName

func (x *DeleteAttributeRequest) GetName() string

func (*DeleteAttributeRequest) ProtoMessage

func (*DeleteAttributeRequest) ProtoMessage()

func (*DeleteAttributeRequest) ProtoReflect

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

func (*DeleteAttributeRequest) Reset

func (x *DeleteAttributeRequest) Reset()

func (*DeleteAttributeRequest) String

func (x *DeleteAttributeRequest) String() string

type DeleteCategoryRequest

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

func (*DeleteCategoryRequest) Descriptor deprecated

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

Deprecated: Use DeleteCategoryRequest.ProtoReflect.Descriptor instead.

func (*DeleteCategoryRequest) GetName

func (x *DeleteCategoryRequest) GetName() string

func (*DeleteCategoryRequest) ProtoMessage

func (*DeleteCategoryRequest) ProtoMessage()

func (*DeleteCategoryRequest) ProtoReflect

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

func (*DeleteCategoryRequest) Reset

func (x *DeleteCategoryRequest) Reset()

func (*DeleteCategoryRequest) String

func (x *DeleteCategoryRequest) String() string

type DeleteTagRequest

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

func (*DeleteTagRequest) Descriptor deprecated

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

Deprecated: Use DeleteTagRequest.ProtoReflect.Descriptor instead.

func (*DeleteTagRequest) GetName

func (x *DeleteTagRequest) GetName() string

func (*DeleteTagRequest) ProtoMessage

func (*DeleteTagRequest) ProtoMessage()

func (*DeleteTagRequest) ProtoReflect

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

func (*DeleteTagRequest) Reset

func (x *DeleteTagRequest) Reset()

func (*DeleteTagRequest) String

func (x *DeleteTagRequest) String() string

type GetArticleRequest

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

func (*GetArticleRequest) Descriptor deprecated

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

Deprecated: Use GetArticleRequest.ProtoReflect.Descriptor instead.

func (*GetArticleRequest) GetName

func (x *GetArticleRequest) GetName() string

func (*GetArticleRequest) ProtoMessage

func (*GetArticleRequest) ProtoMessage()

func (*GetArticleRequest) ProtoReflect

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

func (*GetArticleRequest) Reset

func (x *GetArticleRequest) Reset()

func (*GetArticleRequest) String

func (x *GetArticleRequest) String() string

type GetAttributeRequest

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

func (*GetAttributeRequest) Descriptor deprecated

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

Deprecated: Use GetAttributeRequest.ProtoReflect.Descriptor instead.

func (*GetAttributeRequest) GetName

func (x *GetAttributeRequest) GetName() string

func (*GetAttributeRequest) ProtoMessage

func (*GetAttributeRequest) ProtoMessage()

func (*GetAttributeRequest) ProtoReflect

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

func (*GetAttributeRequest) Reset

func (x *GetAttributeRequest) Reset()

func (*GetAttributeRequest) String

func (x *GetAttributeRequest) String() string

type GetCategoryRequest

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

func (*GetCategoryRequest) Descriptor deprecated

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

Deprecated: Use GetCategoryRequest.ProtoReflect.Descriptor instead.

func (*GetCategoryRequest) GetName

func (x *GetCategoryRequest) GetName() string

func (*GetCategoryRequest) ProtoMessage

func (*GetCategoryRequest) ProtoMessage()

func (*GetCategoryRequest) ProtoReflect

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

func (*GetCategoryRequest) Reset

func (x *GetCategoryRequest) Reset()

func (*GetCategoryRequest) String

func (x *GetCategoryRequest) String() string

type GetTagRequest

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

func (*GetTagRequest) Descriptor deprecated

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

Deprecated: Use GetTagRequest.ProtoReflect.Descriptor instead.

func (*GetTagRequest) GetName

func (x *GetTagRequest) GetName() string

func (*GetTagRequest) ProtoMessage

func (*GetTagRequest) ProtoMessage()

func (*GetTagRequest) ProtoReflect

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

func (*GetTagRequest) Reset

func (x *GetTagRequest) Reset()

func (*GetTagRequest) String

func (x *GetTagRequest) String() string

type ListArticlesRequest

type ListArticlesRequest struct {

	// The parent resource name
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of items to return.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token value returned from a previous List request, if any.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListArticlesRequest) Descriptor deprecated

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

Deprecated: Use ListArticlesRequest.ProtoReflect.Descriptor instead.

func (*ListArticlesRequest) GetPageSize

func (x *ListArticlesRequest) GetPageSize() int32

func (*ListArticlesRequest) GetPageToken

func (x *ListArticlesRequest) GetPageToken() string

func (*ListArticlesRequest) GetParent

func (x *ListArticlesRequest) GetParent() string

func (*ListArticlesRequest) ProtoMessage

func (*ListArticlesRequest) ProtoMessage()

func (*ListArticlesRequest) ProtoReflect

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

func (*ListArticlesRequest) Reset

func (x *ListArticlesRequest) Reset()

func (*ListArticlesRequest) String

func (x *ListArticlesRequest) String() string

type ListArticlesResponse

type ListArticlesResponse struct {
	Articles      []*Article `protobuf:"bytes,1,rep,name=articles,proto3" json:"articles,omitempty"`
	NextPageToken string     `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListArticlesResponse) Descriptor deprecated

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

Deprecated: Use ListArticlesResponse.ProtoReflect.Descriptor instead.

func (*ListArticlesResponse) GetArticles

func (x *ListArticlesResponse) GetArticles() []*Article

func (*ListArticlesResponse) GetNextPageToken

func (x *ListArticlesResponse) GetNextPageToken() string

func (*ListArticlesResponse) ProtoMessage

func (*ListArticlesResponse) ProtoMessage()

func (*ListArticlesResponse) ProtoReflect

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

func (*ListArticlesResponse) Reset

func (x *ListArticlesResponse) Reset()

func (*ListArticlesResponse) String

func (x *ListArticlesResponse) String() string

type ListAttributesRequest

type ListAttributesRequest struct {

	// The parent resource name
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of items to return.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token value returned from a previous List request, if any.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAttributesRequest) Descriptor deprecated

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

Deprecated: Use ListAttributesRequest.ProtoReflect.Descriptor instead.

func (*ListAttributesRequest) GetPageSize

func (x *ListAttributesRequest) GetPageSize() int32

func (*ListAttributesRequest) GetPageToken

func (x *ListAttributesRequest) GetPageToken() string

func (*ListAttributesRequest) GetParent

func (x *ListAttributesRequest) GetParent() string

func (*ListAttributesRequest) ProtoMessage

func (*ListAttributesRequest) ProtoMessage()

func (*ListAttributesRequest) ProtoReflect

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

func (*ListAttributesRequest) Reset

func (x *ListAttributesRequest) Reset()

func (*ListAttributesRequest) String

func (x *ListAttributesRequest) String() string

type ListAttributesResponse

type ListAttributesResponse struct {
	Attributes    []*Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"`
	NextPageToken string       `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAttributesResponse) Descriptor deprecated

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

Deprecated: Use ListAttributesResponse.ProtoReflect.Descriptor instead.

func (*ListAttributesResponse) GetAttributes

func (x *ListAttributesResponse) GetAttributes() []*Attribute

func (*ListAttributesResponse) GetNextPageToken

func (x *ListAttributesResponse) GetNextPageToken() string

func (*ListAttributesResponse) ProtoMessage

func (*ListAttributesResponse) ProtoMessage()

func (*ListAttributesResponse) ProtoReflect

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

func (*ListAttributesResponse) Reset

func (x *ListAttributesResponse) Reset()

func (*ListAttributesResponse) String

func (x *ListAttributesResponse) String() string

type ListCategoriesRequest

type ListCategoriesRequest struct {

	// The parent resource name
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of items to return.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token value returned from a previous List request, if any.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCategoriesRequest) Descriptor deprecated

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

Deprecated: Use ListCategoriesRequest.ProtoReflect.Descriptor instead.

func (*ListCategoriesRequest) GetPageSize

func (x *ListCategoriesRequest) GetPageSize() int32

func (*ListCategoriesRequest) GetPageToken

func (x *ListCategoriesRequest) GetPageToken() string

func (*ListCategoriesRequest) GetParent

func (x *ListCategoriesRequest) GetParent() string

func (*ListCategoriesRequest) ProtoMessage

func (*ListCategoriesRequest) ProtoMessage()

func (*ListCategoriesRequest) ProtoReflect

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

func (*ListCategoriesRequest) Reset

func (x *ListCategoriesRequest) Reset()

func (*ListCategoriesRequest) String

func (x *ListCategoriesRequest) String() string

type ListCategoriesResponse

type ListCategoriesResponse struct {
	Categories    []*Category `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"`
	NextPageToken string      `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCategoriesResponse) Descriptor deprecated

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

Deprecated: Use ListCategoriesResponse.ProtoReflect.Descriptor instead.

func (*ListCategoriesResponse) GetCategories

func (x *ListCategoriesResponse) GetCategories() []*Category

func (*ListCategoriesResponse) GetNextPageToken

func (x *ListCategoriesResponse) GetNextPageToken() string

func (*ListCategoriesResponse) ProtoMessage

func (*ListCategoriesResponse) ProtoMessage()

func (*ListCategoriesResponse) ProtoReflect

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

func (*ListCategoriesResponse) Reset

func (x *ListCategoriesResponse) Reset()

func (*ListCategoriesResponse) String

func (x *ListCategoriesResponse) String() string

type ListTagsRequest

type ListTagsRequest struct {

	// The parent resource name
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of items to return.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token value returned from a previous List request, if any.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTagsRequest) Descriptor deprecated

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

Deprecated: Use ListTagsRequest.ProtoReflect.Descriptor instead.

func (*ListTagsRequest) GetPageSize

func (x *ListTagsRequest) GetPageSize() int32

func (*ListTagsRequest) GetPageToken

func (x *ListTagsRequest) GetPageToken() string

func (*ListTagsRequest) GetParent

func (x *ListTagsRequest) GetParent() string

func (*ListTagsRequest) ProtoMessage

func (*ListTagsRequest) ProtoMessage()

func (*ListTagsRequest) ProtoReflect

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

func (*ListTagsRequest) Reset

func (x *ListTagsRequest) Reset()

func (*ListTagsRequest) String

func (x *ListTagsRequest) String() string

type ListTagsResponse

type ListTagsResponse struct {
	Tags          []*Tag `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"`
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTagsResponse) Descriptor deprecated

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

Deprecated: Use ListTagsResponse.ProtoReflect.Descriptor instead.

func (*ListTagsResponse) GetNextPageToken

func (x *ListTagsResponse) GetNextPageToken() string

func (*ListTagsResponse) GetTags

func (x *ListTagsResponse) GetTags() []*Tag

func (*ListTagsResponse) ProtoMessage

func (*ListTagsResponse) ProtoMessage()

func (*ListTagsResponse) ProtoReflect

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

func (*ListTagsResponse) Reset

func (x *ListTagsResponse) Reset()

func (*ListTagsResponse) String

func (x *ListTagsResponse) String() string

type SearchArticlesRequest

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

func (*SearchArticlesRequest) Descriptor deprecated

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

Deprecated: Use SearchArticlesRequest.ProtoReflect.Descriptor instead.

func (*SearchArticlesRequest) GetName

func (x *SearchArticlesRequest) GetName() string

func (*SearchArticlesRequest) ProtoMessage

func (*SearchArticlesRequest) ProtoMessage()

func (*SearchArticlesRequest) ProtoReflect

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

func (*SearchArticlesRequest) Reset

func (x *SearchArticlesRequest) Reset()

func (*SearchArticlesRequest) String

func (x *SearchArticlesRequest) String() string

type SearchArticlesResponse

type SearchArticlesResponse struct {
	Articles      []*Article `protobuf:"bytes,1,rep,name=articles,proto3" json:"articles,omitempty"`
	NextPageToken string     `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchArticlesResponse) Descriptor deprecated

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

Deprecated: Use SearchArticlesResponse.ProtoReflect.Descriptor instead.

func (*SearchArticlesResponse) GetArticles

func (x *SearchArticlesResponse) GetArticles() []*Article

func (*SearchArticlesResponse) GetNextPageToken

func (x *SearchArticlesResponse) GetNextPageToken() string

func (*SearchArticlesResponse) ProtoMessage

func (*SearchArticlesResponse) ProtoMessage()

func (*SearchArticlesResponse) ProtoReflect

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

func (*SearchArticlesResponse) Reset

func (x *SearchArticlesResponse) Reset()

func (*SearchArticlesResponse) String

func (x *SearchArticlesResponse) String() string

type SearchAttributesRequest

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

func (*SearchAttributesRequest) Descriptor deprecated

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

Deprecated: Use SearchAttributesRequest.ProtoReflect.Descriptor instead.

func (*SearchAttributesRequest) GetName

func (x *SearchAttributesRequest) GetName() string

func (*SearchAttributesRequest) ProtoMessage

func (*SearchAttributesRequest) ProtoMessage()

func (*SearchAttributesRequest) ProtoReflect

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

func (*SearchAttributesRequest) Reset

func (x *SearchAttributesRequest) Reset()

func (*SearchAttributesRequest) String

func (x *SearchAttributesRequest) String() string

type SearchAttributesResponse

type SearchAttributesResponse struct {
	Attributes    []*Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"`
	NextPageToken string       `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchAttributesResponse) Descriptor deprecated

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

Deprecated: Use SearchAttributesResponse.ProtoReflect.Descriptor instead.

func (*SearchAttributesResponse) GetAttributes

func (x *SearchAttributesResponse) GetAttributes() []*Attribute

func (*SearchAttributesResponse) GetNextPageToken

func (x *SearchAttributesResponse) GetNextPageToken() string

func (*SearchAttributesResponse) ProtoMessage

func (*SearchAttributesResponse) ProtoMessage()

func (*SearchAttributesResponse) ProtoReflect

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

func (*SearchAttributesResponse) Reset

func (x *SearchAttributesResponse) Reset()

func (*SearchAttributesResponse) String

func (x *SearchAttributesResponse) String() string

type Tag

type Tag struct {
	Name       string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	TagId      int32                  `protobuf:"varint,2,opt,name=tag_id,json=tagId,proto3" json:"tag_id,omitempty"`
	TagName    string                 `protobuf:"bytes,3,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"`
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

func (*Tag) Descriptor deprecated

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

Deprecated: Use Tag.ProtoReflect.Descriptor instead.

func (*Tag) GetName

func (x *Tag) GetName() string

func (*Tag) GetTagId

func (x *Tag) GetTagId() int32

func (*Tag) GetTagName

func (x *Tag) GetTagName() string

func (*Tag) GetUpdateTime

func (x *Tag) GetUpdateTime() *timestamppb.Timestamp

func (*Tag) ProtoMessage

func (*Tag) ProtoMessage()

func (*Tag) ProtoReflect

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

func (*Tag) Reset

func (x *Tag) Reset()

func (*Tag) String

func (x *Tag) String() string

type TagsAPIClient

type TagsAPIClient interface {
	ListTags(ctx context.Context, in *ListTagsRequest, opts ...grpc.CallOption) (*ListTagsResponse, error)
	GetTag(ctx context.Context, in *GetTagRequest, opts ...grpc.CallOption) (*Tag, error)
	CreateTag(ctx context.Context, in *CreateTagRequest, opts ...grpc.CallOption) (*Tag, error)
	UpdateTag(ctx context.Context, in *UpdateTagRequest, opts ...grpc.CallOption) (*Tag, error)
	DeleteTag(ctx context.Context, in *DeleteTagRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

TagsAPIClient is the client API for TagsAPI 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.

func NewTagsAPIClient

func NewTagsAPIClient(cc grpc.ClientConnInterface) TagsAPIClient

type TagsAPIServer

type TagsAPIServer interface {
	ListTags(context.Context, *ListTagsRequest) (*ListTagsResponse, error)
	GetTag(context.Context, *GetTagRequest) (*Tag, error)
	CreateTag(context.Context, *CreateTagRequest) (*Tag, error)
	UpdateTag(context.Context, *UpdateTagRequest) (*Tag, error)
	DeleteTag(context.Context, *DeleteTagRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

TagsAPIServer is the server API for TagsAPI service. All implementations must embed UnimplementedTagsAPIServer for forward compatibility

type UnimplementedArticlesAPIServer

type UnimplementedArticlesAPIServer struct {
}

UnimplementedArticlesAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedArticlesAPIServer) CreateArticle

func (UnimplementedArticlesAPIServer) DeleteArticle

func (UnimplementedArticlesAPIServer) GetArticle

func (UnimplementedArticlesAPIServer) ListArticles

func (UnimplementedArticlesAPIServer) SearchArticles

func (UnimplementedArticlesAPIServer) UpdateArticle

type UnimplementedAttributesAPIServer

type UnimplementedAttributesAPIServer struct {
}

UnimplementedAttributesAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedAttributesAPIServer) CreateAttribute

func (UnimplementedAttributesAPIServer) DeleteAttribute

func (UnimplementedAttributesAPIServer) GetAttribute

func (UnimplementedAttributesAPIServer) ListAttributes

func (UnimplementedAttributesAPIServer) SearchAttributes

func (UnimplementedAttributesAPIServer) UpdateAttribute

type UnimplementedCategoriesAPIServer

type UnimplementedCategoriesAPIServer struct {
}

UnimplementedCategoriesAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedCategoriesAPIServer) CreateCategory

func (UnimplementedCategoriesAPIServer) DeleteCategory

func (UnimplementedCategoriesAPIServer) GetCategory

func (UnimplementedCategoriesAPIServer) ListCategories

func (UnimplementedCategoriesAPIServer) UpdateCategory

type UnimplementedTagsAPIServer

type UnimplementedTagsAPIServer struct {
}

UnimplementedTagsAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedTagsAPIServer) CreateTag

func (UnimplementedTagsAPIServer) DeleteTag

func (UnimplementedTagsAPIServer) GetTag

func (UnimplementedTagsAPIServer) ListTags

func (UnimplementedTagsAPIServer) UpdateTag

type UnsafeArticlesAPIServer

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

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

type UnsafeAttributesAPIServer

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

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

type UnsafeCategoriesAPIServer

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

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

type UnsafeTagsAPIServer

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

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

type UpdateArticleRequest

type UpdateArticleRequest struct {
	Article *Article `protobuf:"bytes,1,opt,name=article,proto3" json:"article,omitempty"`
	// The update mask applies to the resource. For the `FieldMask` definition,
	// see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateArticleRequest) Descriptor deprecated

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

Deprecated: Use UpdateArticleRequest.ProtoReflect.Descriptor instead.

func (*UpdateArticleRequest) GetArticle

func (x *UpdateArticleRequest) GetArticle() *Article

func (*UpdateArticleRequest) GetUpdateMask

func (x *UpdateArticleRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateArticleRequest) ProtoMessage

func (*UpdateArticleRequest) ProtoMessage()

func (*UpdateArticleRequest) ProtoReflect

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

func (*UpdateArticleRequest) Reset

func (x *UpdateArticleRequest) Reset()

func (*UpdateArticleRequest) String

func (x *UpdateArticleRequest) String() string

type UpdateAttributeRequest

type UpdateAttributeRequest struct {
	Attribute *Attribute `protobuf:"bytes,1,opt,name=attribute,proto3" json:"attribute,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAttributeRequest) Descriptor deprecated

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

Deprecated: Use UpdateAttributeRequest.ProtoReflect.Descriptor instead.

func (*UpdateAttributeRequest) GetAttribute

func (x *UpdateAttributeRequest) GetAttribute() *Attribute

func (*UpdateAttributeRequest) ProtoMessage

func (*UpdateAttributeRequest) ProtoMessage()

func (*UpdateAttributeRequest) ProtoReflect

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

func (*UpdateAttributeRequest) Reset

func (x *UpdateAttributeRequest) Reset()

func (*UpdateAttributeRequest) String

func (x *UpdateAttributeRequest) String() string

type UpdateCategoryRequest

type UpdateCategoryRequest struct {
	Category *Category `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCategoryRequest) Descriptor deprecated

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

Deprecated: Use UpdateCategoryRequest.ProtoReflect.Descriptor instead.

func (*UpdateCategoryRequest) GetCategory

func (x *UpdateCategoryRequest) GetCategory() *Category

func (*UpdateCategoryRequest) ProtoMessage

func (*UpdateCategoryRequest) ProtoMessage()

func (*UpdateCategoryRequest) ProtoReflect

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

func (*UpdateCategoryRequest) Reset

func (x *UpdateCategoryRequest) Reset()

func (*UpdateCategoryRequest) String

func (x *UpdateCategoryRequest) String() string

type UpdateTagRequest

type UpdateTagRequest struct {
	Tag *Tag `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateTagRequest) Descriptor deprecated

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

Deprecated: Use UpdateTagRequest.ProtoReflect.Descriptor instead.

func (*UpdateTagRequest) GetTag

func (x *UpdateTagRequest) GetTag() *Tag

func (*UpdateTagRequest) ProtoMessage

func (*UpdateTagRequest) ProtoMessage()

func (*UpdateTagRequest) ProtoReflect

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

func (*UpdateTagRequest) Reset

func (x *UpdateTagRequest) Reset()

func (*UpdateTagRequest) String

func (x *UpdateTagRequest) String() string

Jump to

Keyboard shortcuts

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