proto

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_proto_twitter_proto protoreflect.FileDescriptor
View Source
var Twitter_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Twitter",
	HandlerType: (*TwitterServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddTweet",
			Handler:    _Twitter_AddTweet_Handler,
		},
		{
			MethodName: "AddComment",
			Handler:    _Twitter_AddComment_Handler,
		},
		{
			MethodName: "UpdateTweet",
			Handler:    _Twitter_UpdateTweet_Handler,
		},
		{
			MethodName: "UpdateComment",
			Handler:    _Twitter_UpdateComment_Handler,
		},
		{
			MethodName: "GetNewsFeed",
			Handler:    _Twitter_GetNewsFeed_Handler,
		},
		{
			MethodName: "Follow",
			Handler:    _Twitter_Follow_Handler,
		},
		{
			MethodName: "Unfollow",
			Handler:    _Twitter_Unfollow_Handler,
		},
		{
			MethodName: "GetFollowing",
			Handler:    _Twitter_GetFollowing_Handler,
		},
		{
			MethodName: "GetFollowers",
			Handler:    _Twitter_GetFollowers_Handler,
		},
		{
			MethodName: "RecommendUsers",
			Handler:    _Twitter_RecommendUsers_Handler,
		},
		{
			MethodName: "Register",
			Handler:    _Twitter_Register_Handler,
		},
		{
			MethodName: "UpdateCaption",
			Handler:    _Twitter_UpdateCaption_Handler,
		},
		{
			MethodName: "Login",
			Handler:    _Twitter_Login_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/proto/twitter.proto",
}

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

Functions

func RegisterTwitterServer

func RegisterTwitterServer(s grpc.ServiceRegistrar, srv TwitterServer)

Types

type AddCommentRequest

type AddCommentRequest struct {
	UserId  int64  `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	TweetId int64  `protobuf:"varint,2,opt,name=tweet_id,json=tweetId,proto3" json:"tweet_id,omitempty"`
	Text    string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*AddCommentRequest) Descriptor deprecated

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

Deprecated: Use AddCommentRequest.ProtoReflect.Descriptor instead.

func (*AddCommentRequest) GetText

func (x *AddCommentRequest) GetText() string

func (*AddCommentRequest) GetTweetId

func (x *AddCommentRequest) GetTweetId() int64

func (*AddCommentRequest) GetUserId

func (x *AddCommentRequest) GetUserId() int64

func (*AddCommentRequest) ProtoMessage

func (*AddCommentRequest) ProtoMessage()

func (*AddCommentRequest) ProtoReflect

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

func (*AddCommentRequest) Reset

func (x *AddCommentRequest) Reset()

func (*AddCommentRequest) String

func (x *AddCommentRequest) String() string

func (*AddCommentRequest) Validate

func (m *AddCommentRequest) Validate() error

Validate checks the field values on AddCommentRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AddCommentRequest) ValidateAll

func (m *AddCommentRequest) ValidateAll() error

ValidateAll checks the field values on AddCommentRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AddCommentRequestMultiError, or nil if none found.

type AddCommentRequestMultiError

type AddCommentRequestMultiError []error

AddCommentRequestMultiError is an error wrapping multiple validation errors returned by AddCommentRequest.ValidateAll() if the designated constraints aren't met.

func (AddCommentRequestMultiError) AllErrors

func (m AddCommentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddCommentRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AddCommentRequestValidationError

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

AddCommentRequestValidationError is the validation error returned by AddCommentRequest.Validate if the designated constraints aren't met.

func (AddCommentRequestValidationError) Cause

Cause function returns cause value.

func (AddCommentRequestValidationError) Error

Error satisfies the builtin error interface

func (AddCommentRequestValidationError) ErrorName

ErrorName returns error name.

func (AddCommentRequestValidationError) Field

Field function returns field value.

func (AddCommentRequestValidationError) Key

Key function returns key value.

func (AddCommentRequestValidationError) Reason

Reason function returns reason value.

type AddCommentResponse

type AddCommentResponse struct {
	CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AddCommentResponse) Descriptor deprecated

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

Deprecated: Use AddCommentResponse.ProtoReflect.Descriptor instead.

func (*AddCommentResponse) GetCommentId

func (x *AddCommentResponse) GetCommentId() int64

func (*AddCommentResponse) ProtoMessage

func (*AddCommentResponse) ProtoMessage()

func (*AddCommentResponse) ProtoReflect

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

func (*AddCommentResponse) Reset

func (x *AddCommentResponse) Reset()

func (*AddCommentResponse) String

func (x *AddCommentResponse) String() string

func (*AddCommentResponse) Validate

func (m *AddCommentResponse) Validate() error

Validate checks the field values on AddCommentResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AddCommentResponse) ValidateAll

func (m *AddCommentResponse) ValidateAll() error

ValidateAll checks the field values on AddCommentResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AddCommentResponseMultiError, or nil if none found.

type AddCommentResponseMultiError

type AddCommentResponseMultiError []error

AddCommentResponseMultiError is an error wrapping multiple validation errors returned by AddCommentResponse.ValidateAll() if the designated constraints aren't met.

func (AddCommentResponseMultiError) AllErrors

func (m AddCommentResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddCommentResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AddCommentResponseValidationError

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

AddCommentResponseValidationError is the validation error returned by AddCommentResponse.Validate if the designated constraints aren't met.

func (AddCommentResponseValidationError) Cause

Cause function returns cause value.

func (AddCommentResponseValidationError) Error

Error satisfies the builtin error interface

func (AddCommentResponseValidationError) ErrorName

ErrorName returns error name.

func (AddCommentResponseValidationError) Field

Field function returns field value.

func (AddCommentResponseValidationError) Key

Key function returns key value.

func (AddCommentResponseValidationError) Reason

Reason function returns reason value.

type AddTweetRequest

type AddTweetRequest struct {
	UserId int64  `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Text   string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*AddTweetRequest) Descriptor deprecated

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

Deprecated: Use AddTweetRequest.ProtoReflect.Descriptor instead.

func (*AddTweetRequest) GetText

func (x *AddTweetRequest) GetText() string

func (*AddTweetRequest) GetUserId

func (x *AddTweetRequest) GetUserId() int64

func (*AddTweetRequest) ProtoMessage

func (*AddTweetRequest) ProtoMessage()

func (*AddTweetRequest) ProtoReflect

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

func (*AddTweetRequest) Reset

func (x *AddTweetRequest) Reset()

func (*AddTweetRequest) String

func (x *AddTweetRequest) String() string

func (*AddTweetRequest) Validate

func (m *AddTweetRequest) Validate() error

Validate checks the field values on AddTweetRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AddTweetRequest) ValidateAll

func (m *AddTweetRequest) ValidateAll() error

ValidateAll checks the field values on AddTweetRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AddTweetRequestMultiError, or nil if none found.

type AddTweetRequestMultiError

type AddTweetRequestMultiError []error

AddTweetRequestMultiError is an error wrapping multiple validation errors returned by AddTweetRequest.ValidateAll() if the designated constraints aren't met.

func (AddTweetRequestMultiError) AllErrors

func (m AddTweetRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddTweetRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AddTweetRequestValidationError

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

AddTweetRequestValidationError is the validation error returned by AddTweetRequest.Validate if the designated constraints aren't met.

func (AddTweetRequestValidationError) Cause

Cause function returns cause value.

func (AddTweetRequestValidationError) Error

Error satisfies the builtin error interface

func (AddTweetRequestValidationError) ErrorName

func (e AddTweetRequestValidationError) ErrorName() string

ErrorName returns error name.

func (AddTweetRequestValidationError) Field

Field function returns field value.

func (AddTweetRequestValidationError) Key

Key function returns key value.

func (AddTweetRequestValidationError) Reason

Reason function returns reason value.

type AddTweetResponse

type AddTweetResponse struct {
	TweetId int64 `protobuf:"varint,1,opt,name=tweet_id,json=tweetId,proto3" json:"tweet_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AddTweetResponse) Descriptor deprecated

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

Deprecated: Use AddTweetResponse.ProtoReflect.Descriptor instead.

func (*AddTweetResponse) GetTweetId

func (x *AddTweetResponse) GetTweetId() int64

func (*AddTweetResponse) ProtoMessage

func (*AddTweetResponse) ProtoMessage()

func (*AddTweetResponse) ProtoReflect

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

func (*AddTweetResponse) Reset

func (x *AddTweetResponse) Reset()

func (*AddTweetResponse) String

func (x *AddTweetResponse) String() string

func (*AddTweetResponse) Validate

func (m *AddTweetResponse) Validate() error

Validate checks the field values on AddTweetResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AddTweetResponse) ValidateAll

func (m *AddTweetResponse) ValidateAll() error

ValidateAll checks the field values on AddTweetResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AddTweetResponseMultiError, or nil if none found.

type AddTweetResponseMultiError

type AddTweetResponseMultiError []error

AddTweetResponseMultiError is an error wrapping multiple validation errors returned by AddTweetResponse.ValidateAll() if the designated constraints aren't met.

func (AddTweetResponseMultiError) AllErrors

func (m AddTweetResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddTweetResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AddTweetResponseValidationError

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

AddTweetResponseValidationError is the validation error returned by AddTweetResponse.Validate if the designated constraints aren't met.

func (AddTweetResponseValidationError) Cause

Cause function returns cause value.

func (AddTweetResponseValidationError) Error

Error satisfies the builtin error interface

func (AddTweetResponseValidationError) ErrorName

ErrorName returns error name.

func (AddTweetResponseValidationError) Field

Field function returns field value.

func (AddTweetResponseValidationError) Key

Key function returns key value.

func (AddTweetResponseValidationError) Reason

Reason function returns reason value.

type FollowRequest

type FollowRequest struct {
	UserId        int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	NewFollowerId int64 `protobuf:"varint,2,opt,name=new_follower_id,json=newFollowerId,proto3" json:"new_follower_id,omitempty"`
	// contains filtered or unexported fields
}

func (*FollowRequest) Descriptor deprecated

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

Deprecated: Use FollowRequest.ProtoReflect.Descriptor instead.

func (*FollowRequest) GetNewFollowerId

func (x *FollowRequest) GetNewFollowerId() int64

func (*FollowRequest) GetUserId

func (x *FollowRequest) GetUserId() int64

func (*FollowRequest) ProtoMessage

func (*FollowRequest) ProtoMessage()

func (*FollowRequest) ProtoReflect

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

func (*FollowRequest) Reset

func (x *FollowRequest) Reset()

func (*FollowRequest) String

func (x *FollowRequest) String() string

func (*FollowRequest) Validate

func (m *FollowRequest) Validate() error

Validate checks the field values on FollowRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FollowRequest) ValidateAll

func (m *FollowRequest) ValidateAll() error

ValidateAll checks the field values on FollowRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FollowRequestMultiError, or nil if none found.

type FollowRequestMultiError

type FollowRequestMultiError []error

FollowRequestMultiError is an error wrapping multiple validation errors returned by FollowRequest.ValidateAll() if the designated constraints aren't met.

func (FollowRequestMultiError) AllErrors

func (m FollowRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FollowRequestMultiError) Error

func (m FollowRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type FollowRequestValidationError

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

FollowRequestValidationError is the validation error returned by FollowRequest.Validate if the designated constraints aren't met.

func (FollowRequestValidationError) Cause

Cause function returns cause value.

func (FollowRequestValidationError) Error

Error satisfies the builtin error interface

func (FollowRequestValidationError) ErrorName

func (e FollowRequestValidationError) ErrorName() string

ErrorName returns error name.

func (FollowRequestValidationError) Field

Field function returns field value.

func (FollowRequestValidationError) Key

Key function returns key value.

func (FollowRequestValidationError) Reason

Reason function returns reason value.

type FollowResponse

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

func (*FollowResponse) Descriptor deprecated

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

Deprecated: Use FollowResponse.ProtoReflect.Descriptor instead.

func (*FollowResponse) ProtoMessage

func (*FollowResponse) ProtoMessage()

func (*FollowResponse) ProtoReflect

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

func (*FollowResponse) Reset

func (x *FollowResponse) Reset()

func (*FollowResponse) String

func (x *FollowResponse) String() string

func (*FollowResponse) Validate

func (m *FollowResponse) Validate() error

Validate checks the field values on FollowResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FollowResponse) ValidateAll

func (m *FollowResponse) ValidateAll() error

ValidateAll checks the field values on FollowResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FollowResponseMultiError, or nil if none found.

type FollowResponseMultiError

type FollowResponseMultiError []error

FollowResponseMultiError is an error wrapping multiple validation errors returned by FollowResponse.ValidateAll() if the designated constraints aren't met.

func (FollowResponseMultiError) AllErrors

func (m FollowResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FollowResponseMultiError) Error

func (m FollowResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type FollowResponseValidationError

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

FollowResponseValidationError is the validation error returned by FollowResponse.Validate if the designated constraints aren't met.

func (FollowResponseValidationError) Cause

Cause function returns cause value.

func (FollowResponseValidationError) Error

Error satisfies the builtin error interface

func (FollowResponseValidationError) ErrorName

func (e FollowResponseValidationError) ErrorName() string

ErrorName returns error name.

func (FollowResponseValidationError) Field

Field function returns field value.

func (FollowResponseValidationError) Key

Key function returns key value.

func (FollowResponseValidationError) Reason

Reason function returns reason value.

type GetFollowersRequest

type GetFollowersRequest struct {
	UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFollowersRequest) Descriptor deprecated

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

Deprecated: Use GetFollowersRequest.ProtoReflect.Descriptor instead.

func (*GetFollowersRequest) GetUserId

func (x *GetFollowersRequest) GetUserId() int64

func (*GetFollowersRequest) ProtoMessage

func (*GetFollowersRequest) ProtoMessage()

func (*GetFollowersRequest) ProtoReflect

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

func (*GetFollowersRequest) Reset

func (x *GetFollowersRequest) Reset()

func (*GetFollowersRequest) String

func (x *GetFollowersRequest) String() string

func (*GetFollowersRequest) Validate

func (m *GetFollowersRequest) Validate() error

Validate checks the field values on GetFollowersRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetFollowersRequest) ValidateAll

func (m *GetFollowersRequest) ValidateAll() error

ValidateAll checks the field values on GetFollowersRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetFollowersRequestMultiError, or nil if none found.

type GetFollowersRequestMultiError

type GetFollowersRequestMultiError []error

GetFollowersRequestMultiError is an error wrapping multiple validation errors returned by GetFollowersRequest.ValidateAll() if the designated constraints aren't met.

func (GetFollowersRequestMultiError) AllErrors

func (m GetFollowersRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetFollowersRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetFollowersRequestValidationError

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

GetFollowersRequestValidationError is the validation error returned by GetFollowersRequest.Validate if the designated constraints aren't met.

func (GetFollowersRequestValidationError) Cause

Cause function returns cause value.

func (GetFollowersRequestValidationError) Error

Error satisfies the builtin error interface

func (GetFollowersRequestValidationError) ErrorName

ErrorName returns error name.

func (GetFollowersRequestValidationError) Field

Field function returns field value.

func (GetFollowersRequestValidationError) Key

Key function returns key value.

func (GetFollowersRequestValidationError) Reason

Reason function returns reason value.

type GetFollowersResponse

type GetFollowersResponse struct {
	Users []*UserProfile `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFollowersResponse) Descriptor deprecated

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

Deprecated: Use GetFollowersResponse.ProtoReflect.Descriptor instead.

func (*GetFollowersResponse) GetUsers

func (x *GetFollowersResponse) GetUsers() []*UserProfile

func (*GetFollowersResponse) ProtoMessage

func (*GetFollowersResponse) ProtoMessage()

func (*GetFollowersResponse) ProtoReflect

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

func (*GetFollowersResponse) Reset

func (x *GetFollowersResponse) Reset()

func (*GetFollowersResponse) String

func (x *GetFollowersResponse) String() string

func (*GetFollowersResponse) Validate

func (m *GetFollowersResponse) Validate() error

Validate checks the field values on GetFollowersResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetFollowersResponse) ValidateAll

func (m *GetFollowersResponse) ValidateAll() error

ValidateAll checks the field values on GetFollowersResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetFollowersResponseMultiError, or nil if none found.

type GetFollowersResponseMultiError

type GetFollowersResponseMultiError []error

GetFollowersResponseMultiError is an error wrapping multiple validation errors returned by GetFollowersResponse.ValidateAll() if the designated constraints aren't met.

func (GetFollowersResponseMultiError) AllErrors

func (m GetFollowersResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetFollowersResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetFollowersResponseValidationError

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

GetFollowersResponseValidationError is the validation error returned by GetFollowersResponse.Validate if the designated constraints aren't met.

func (GetFollowersResponseValidationError) Cause

Cause function returns cause value.

func (GetFollowersResponseValidationError) Error

Error satisfies the builtin error interface

func (GetFollowersResponseValidationError) ErrorName

ErrorName returns error name.

func (GetFollowersResponseValidationError) Field

Field function returns field value.

func (GetFollowersResponseValidationError) Key

Key function returns key value.

func (GetFollowersResponseValidationError) Reason

Reason function returns reason value.

type GetFollowingRequest

type GetFollowingRequest struct {
	UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFollowingRequest) Descriptor deprecated

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

Deprecated: Use GetFollowingRequest.ProtoReflect.Descriptor instead.

func (*GetFollowingRequest) GetUserId

func (x *GetFollowingRequest) GetUserId() int64

func (*GetFollowingRequest) ProtoMessage

func (*GetFollowingRequest) ProtoMessage()

func (*GetFollowingRequest) ProtoReflect

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

func (*GetFollowingRequest) Reset

func (x *GetFollowingRequest) Reset()

func (*GetFollowingRequest) String

func (x *GetFollowingRequest) String() string

func (*GetFollowingRequest) Validate

func (m *GetFollowingRequest) Validate() error

Validate checks the field values on GetFollowingRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetFollowingRequest) ValidateAll

func (m *GetFollowingRequest) ValidateAll() error

ValidateAll checks the field values on GetFollowingRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetFollowingRequestMultiError, or nil if none found.

type GetFollowingRequestMultiError

type GetFollowingRequestMultiError []error

GetFollowingRequestMultiError is an error wrapping multiple validation errors returned by GetFollowingRequest.ValidateAll() if the designated constraints aren't met.

func (GetFollowingRequestMultiError) AllErrors

func (m GetFollowingRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetFollowingRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetFollowingRequestValidationError

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

GetFollowingRequestValidationError is the validation error returned by GetFollowingRequest.Validate if the designated constraints aren't met.

func (GetFollowingRequestValidationError) Cause

Cause function returns cause value.

func (GetFollowingRequestValidationError) Error

Error satisfies the builtin error interface

func (GetFollowingRequestValidationError) ErrorName

ErrorName returns error name.

func (GetFollowingRequestValidationError) Field

Field function returns field value.

func (GetFollowingRequestValidationError) Key

Key function returns key value.

func (GetFollowingRequestValidationError) Reason

Reason function returns reason value.

type GetFollowingResponse

type GetFollowingResponse struct {
	Users []*UserProfile `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFollowingResponse) Descriptor deprecated

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

Deprecated: Use GetFollowingResponse.ProtoReflect.Descriptor instead.

func (*GetFollowingResponse) GetUsers

func (x *GetFollowingResponse) GetUsers() []*UserProfile

func (*GetFollowingResponse) ProtoMessage

func (*GetFollowingResponse) ProtoMessage()

func (*GetFollowingResponse) ProtoReflect

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

func (*GetFollowingResponse) Reset

func (x *GetFollowingResponse) Reset()

func (*GetFollowingResponse) String

func (x *GetFollowingResponse) String() string

func (*GetFollowingResponse) Validate

func (m *GetFollowingResponse) Validate() error

Validate checks the field values on GetFollowingResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetFollowingResponse) ValidateAll

func (m *GetFollowingResponse) ValidateAll() error

ValidateAll checks the field values on GetFollowingResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetFollowingResponseMultiError, or nil if none found.

type GetFollowingResponseMultiError

type GetFollowingResponseMultiError []error

GetFollowingResponseMultiError is an error wrapping multiple validation errors returned by GetFollowingResponse.ValidateAll() if the designated constraints aren't met.

func (GetFollowingResponseMultiError) AllErrors

func (m GetFollowingResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetFollowingResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetFollowingResponseValidationError

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

GetFollowingResponseValidationError is the validation error returned by GetFollowingResponse.Validate if the designated constraints aren't met.

func (GetFollowingResponseValidationError) Cause

Cause function returns cause value.

func (GetFollowingResponseValidationError) Error

Error satisfies the builtin error interface

func (GetFollowingResponseValidationError) ErrorName

ErrorName returns error name.

func (GetFollowingResponseValidationError) Field

Field function returns field value.

func (GetFollowingResponseValidationError) Key

Key function returns key value.

func (GetFollowingResponseValidationError) Reason

Reason function returns reason value.

type GetNewsFeedRequest

type GetNewsFeedRequest struct {
	UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Limit  int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset int64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNewsFeedRequest) Descriptor deprecated

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

Deprecated: Use GetNewsFeedRequest.ProtoReflect.Descriptor instead.

func (*GetNewsFeedRequest) GetLimit

func (x *GetNewsFeedRequest) GetLimit() int64

func (*GetNewsFeedRequest) GetOffset

func (x *GetNewsFeedRequest) GetOffset() int64

func (*GetNewsFeedRequest) GetUserId

func (x *GetNewsFeedRequest) GetUserId() int64

func (*GetNewsFeedRequest) ProtoMessage

func (*GetNewsFeedRequest) ProtoMessage()

func (*GetNewsFeedRequest) ProtoReflect

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

func (*GetNewsFeedRequest) Reset

func (x *GetNewsFeedRequest) Reset()

func (*GetNewsFeedRequest) String

func (x *GetNewsFeedRequest) String() string

func (*GetNewsFeedRequest) Validate

func (m *GetNewsFeedRequest) Validate() error

Validate checks the field values on GetNewsFeedRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetNewsFeedRequest) ValidateAll

func (m *GetNewsFeedRequest) ValidateAll() error

ValidateAll checks the field values on GetNewsFeedRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetNewsFeedRequestMultiError, or nil if none found.

type GetNewsFeedRequestMultiError

type GetNewsFeedRequestMultiError []error

GetNewsFeedRequestMultiError is an error wrapping multiple validation errors returned by GetNewsFeedRequest.ValidateAll() if the designated constraints aren't met.

func (GetNewsFeedRequestMultiError) AllErrors

func (m GetNewsFeedRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetNewsFeedRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetNewsFeedRequestValidationError

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

GetNewsFeedRequestValidationError is the validation error returned by GetNewsFeedRequest.Validate if the designated constraints aren't met.

func (GetNewsFeedRequestValidationError) Cause

Cause function returns cause value.

func (GetNewsFeedRequestValidationError) Error

Error satisfies the builtin error interface

func (GetNewsFeedRequestValidationError) ErrorName

ErrorName returns error name.

func (GetNewsFeedRequestValidationError) Field

Field function returns field value.

func (GetNewsFeedRequestValidationError) Key

Key function returns key value.

func (GetNewsFeedRequestValidationError) Reason

Reason function returns reason value.

type GetNewsFeedResponse

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

func (*GetNewsFeedResponse) Descriptor deprecated

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

Deprecated: Use GetNewsFeedResponse.ProtoReflect.Descriptor instead.

func (*GetNewsFeedResponse) GetTweets

func (x *GetNewsFeedResponse) GetTweets() []string

func (*GetNewsFeedResponse) ProtoMessage

func (*GetNewsFeedResponse) ProtoMessage()

func (*GetNewsFeedResponse) ProtoReflect

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

func (*GetNewsFeedResponse) Reset

func (x *GetNewsFeedResponse) Reset()

func (*GetNewsFeedResponse) String

func (x *GetNewsFeedResponse) String() string

func (*GetNewsFeedResponse) Validate

func (m *GetNewsFeedResponse) Validate() error

Validate checks the field values on GetNewsFeedResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetNewsFeedResponse) ValidateAll

func (m *GetNewsFeedResponse) ValidateAll() error

ValidateAll checks the field values on GetNewsFeedResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetNewsFeedResponseMultiError, or nil if none found.

type GetNewsFeedResponseMultiError

type GetNewsFeedResponseMultiError []error

GetNewsFeedResponseMultiError is an error wrapping multiple validation errors returned by GetNewsFeedResponse.ValidateAll() if the designated constraints aren't met.

func (GetNewsFeedResponseMultiError) AllErrors

func (m GetNewsFeedResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetNewsFeedResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetNewsFeedResponseValidationError

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

GetNewsFeedResponseValidationError is the validation error returned by GetNewsFeedResponse.Validate if the designated constraints aren't met.

func (GetNewsFeedResponseValidationError) Cause

Cause function returns cause value.

func (GetNewsFeedResponseValidationError) Error

Error satisfies the builtin error interface

func (GetNewsFeedResponseValidationError) ErrorName

ErrorName returns error name.

func (GetNewsFeedResponseValidationError) Field

Field function returns field value.

func (GetNewsFeedResponseValidationError) Key

Key function returns key value.

func (GetNewsFeedResponseValidationError) Reason

Reason function returns reason value.

type LoginRequest

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

func (*LoginRequest) Descriptor deprecated

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

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetEmail

func (x *LoginRequest) GetEmail() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

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

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

func (*LoginRequest) Validate

func (m *LoginRequest) Validate() error

Validate checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginRequest) ValidateAll

func (m *LoginRequest) ValidateAll() error

ValidateAll checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginRequestMultiError, or nil if none found.

type LoginRequestMultiError

type LoginRequestMultiError []error

LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.

func (LoginRequestMultiError) AllErrors

func (m LoginRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginRequestMultiError) Error

func (m LoginRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginRequestValidationError

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

LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.

func (LoginRequestValidationError) Cause

Cause function returns cause value.

func (LoginRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginRequestValidationError) ErrorName

func (e LoginRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRequestValidationError) Field

Field function returns field value.

func (LoginRequestValidationError) Key

Key function returns key value.

func (LoginRequestValidationError) Reason

Reason function returns reason value.

type LoginResponse

type LoginResponse struct {
	UserId      int64        `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	UserProfile *UserProfile `protobuf:"bytes,2,opt,name=user_profile,json=userProfile,proto3" json:"user_profile,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

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

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetUserId

func (x *LoginResponse) GetUserId() int64

func (*LoginResponse) GetUserProfile

func (x *LoginResponse) GetUserProfile() *UserProfile

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

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

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

func (*LoginResponse) Validate

func (m *LoginResponse) Validate() error

Validate checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginResponse) ValidateAll

func (m *LoginResponse) ValidateAll() error

ValidateAll checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginResponseMultiError, or nil if none found.

type LoginResponseMultiError

type LoginResponseMultiError []error

LoginResponseMultiError is an error wrapping multiple validation errors returned by LoginResponse.ValidateAll() if the designated constraints aren't met.

func (LoginResponseMultiError) AllErrors

func (m LoginResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginResponseMultiError) Error

func (m LoginResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginResponseValidationError

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

LoginResponseValidationError is the validation error returned by LoginResponse.Validate if the designated constraints aren't met.

func (LoginResponseValidationError) Cause

Cause function returns cause value.

func (LoginResponseValidationError) Error

Error satisfies the builtin error interface

func (LoginResponseValidationError) ErrorName

func (e LoginResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LoginResponseValidationError) Field

Field function returns field value.

func (LoginResponseValidationError) Key

Key function returns key value.

func (LoginResponseValidationError) Reason

Reason function returns reason value.

type RecommendUsersRequest

type RecommendUsersRequest struct {
	UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RecommendUsersRequest) Descriptor deprecated

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

Deprecated: Use RecommendUsersRequest.ProtoReflect.Descriptor instead.

func (*RecommendUsersRequest) GetUserId

func (x *RecommendUsersRequest) GetUserId() int64

func (*RecommendUsersRequest) ProtoMessage

func (*RecommendUsersRequest) ProtoMessage()

func (*RecommendUsersRequest) ProtoReflect

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

func (*RecommendUsersRequest) Reset

func (x *RecommendUsersRequest) Reset()

func (*RecommendUsersRequest) String

func (x *RecommendUsersRequest) String() string

func (*RecommendUsersRequest) Validate

func (m *RecommendUsersRequest) Validate() error

Validate checks the field values on RecommendUsersRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RecommendUsersRequest) ValidateAll

func (m *RecommendUsersRequest) ValidateAll() error

ValidateAll checks the field values on RecommendUsersRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RecommendUsersRequestMultiError, or nil if none found.

type RecommendUsersRequestMultiError

type RecommendUsersRequestMultiError []error

RecommendUsersRequestMultiError is an error wrapping multiple validation errors returned by RecommendUsersRequest.ValidateAll() if the designated constraints aren't met.

func (RecommendUsersRequestMultiError) AllErrors

func (m RecommendUsersRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RecommendUsersRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RecommendUsersRequestValidationError

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

RecommendUsersRequestValidationError is the validation error returned by RecommendUsersRequest.Validate if the designated constraints aren't met.

func (RecommendUsersRequestValidationError) Cause

Cause function returns cause value.

func (RecommendUsersRequestValidationError) Error

Error satisfies the builtin error interface

func (RecommendUsersRequestValidationError) ErrorName

ErrorName returns error name.

func (RecommendUsersRequestValidationError) Field

Field function returns field value.

func (RecommendUsersRequestValidationError) Key

Key function returns key value.

func (RecommendUsersRequestValidationError) Reason

Reason function returns reason value.

type RecommendUsersResponse

type RecommendUsersResponse struct {
	Users []*UserProfile `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*RecommendUsersResponse) Descriptor deprecated

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

Deprecated: Use RecommendUsersResponse.ProtoReflect.Descriptor instead.

func (*RecommendUsersResponse) GetUsers

func (x *RecommendUsersResponse) GetUsers() []*UserProfile

func (*RecommendUsersResponse) ProtoMessage

func (*RecommendUsersResponse) ProtoMessage()

func (*RecommendUsersResponse) ProtoReflect

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

func (*RecommendUsersResponse) Reset

func (x *RecommendUsersResponse) Reset()

func (*RecommendUsersResponse) String

func (x *RecommendUsersResponse) String() string

func (*RecommendUsersResponse) Validate

func (m *RecommendUsersResponse) Validate() error

Validate checks the field values on RecommendUsersResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RecommendUsersResponse) ValidateAll

func (m *RecommendUsersResponse) ValidateAll() error

ValidateAll checks the field values on RecommendUsersResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RecommendUsersResponseMultiError, or nil if none found.

type RecommendUsersResponseMultiError

type RecommendUsersResponseMultiError []error

RecommendUsersResponseMultiError is an error wrapping multiple validation errors returned by RecommendUsersResponse.ValidateAll() if the designated constraints aren't met.

func (RecommendUsersResponseMultiError) AllErrors

func (m RecommendUsersResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RecommendUsersResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RecommendUsersResponseValidationError

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

RecommendUsersResponseValidationError is the validation error returned by RecommendUsersResponse.Validate if the designated constraints aren't met.

func (RecommendUsersResponseValidationError) Cause

Cause function returns cause value.

func (RecommendUsersResponseValidationError) Error

Error satisfies the builtin error interface

func (RecommendUsersResponseValidationError) ErrorName

ErrorName returns error name.

func (RecommendUsersResponseValidationError) Field

Field function returns field value.

func (RecommendUsersResponseValidationError) Key

Key function returns key value.

func (RecommendUsersResponseValidationError) Reason

Reason function returns reason value.

type RegisterRequest

type RegisterRequest struct {
	User *UserProfile `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterRequest) Descriptor deprecated

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

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) GetUser

func (x *RegisterRequest) GetUser() *UserProfile

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) ProtoReflect

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

func (*RegisterRequest) Reset

func (x *RegisterRequest) Reset()

func (*RegisterRequest) String

func (x *RegisterRequest) String() string

func (*RegisterRequest) Validate

func (m *RegisterRequest) Validate() error

Validate checks the field values on RegisterRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RegisterRequest) ValidateAll

func (m *RegisterRequest) ValidateAll() error

ValidateAll checks the field values on RegisterRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegisterRequestMultiError, or nil if none found.

type RegisterRequestMultiError

type RegisterRequestMultiError []error

RegisterRequestMultiError is an error wrapping multiple validation errors returned by RegisterRequest.ValidateAll() if the designated constraints aren't met.

func (RegisterRequestMultiError) AllErrors

func (m RegisterRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegisterRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RegisterRequestValidationError

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

RegisterRequestValidationError is the validation error returned by RegisterRequest.Validate if the designated constraints aren't met.

func (RegisterRequestValidationError) Cause

Cause function returns cause value.

func (RegisterRequestValidationError) Error

Error satisfies the builtin error interface

func (RegisterRequestValidationError) ErrorName

func (e RegisterRequestValidationError) ErrorName() string

ErrorName returns error name.

func (RegisterRequestValidationError) Field

Field function returns field value.

func (RegisterRequestValidationError) Key

Key function returns key value.

func (RegisterRequestValidationError) Reason

Reason function returns reason value.

type RegisterResponse

type RegisterResponse struct {
	UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterResponse) Descriptor deprecated

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

Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.

func (*RegisterResponse) GetUserId

func (x *RegisterResponse) GetUserId() int64

func (*RegisterResponse) ProtoMessage

func (*RegisterResponse) ProtoMessage()

func (*RegisterResponse) ProtoReflect

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

func (*RegisterResponse) Reset

func (x *RegisterResponse) Reset()

func (*RegisterResponse) String

func (x *RegisterResponse) String() string

func (*RegisterResponse) Validate

func (m *RegisterResponse) Validate() error

Validate checks the field values on RegisterResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RegisterResponse) ValidateAll

func (m *RegisterResponse) ValidateAll() error

ValidateAll checks the field values on RegisterResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegisterResponseMultiError, or nil if none found.

type RegisterResponseMultiError

type RegisterResponseMultiError []error

RegisterResponseMultiError is an error wrapping multiple validation errors returned by RegisterResponse.ValidateAll() if the designated constraints aren't met.

func (RegisterResponseMultiError) AllErrors

func (m RegisterResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegisterResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RegisterResponseValidationError

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

RegisterResponseValidationError is the validation error returned by RegisterResponse.Validate if the designated constraints aren't met.

func (RegisterResponseValidationError) Cause

Cause function returns cause value.

func (RegisterResponseValidationError) Error

Error satisfies the builtin error interface

func (RegisterResponseValidationError) ErrorName

ErrorName returns error name.

func (RegisterResponseValidationError) Field

Field function returns field value.

func (RegisterResponseValidationError) Key

Key function returns key value.

func (RegisterResponseValidationError) Reason

Reason function returns reason value.

type TwitterClient

TwitterClient is the client API for Twitter 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 NewTwitterClient

func NewTwitterClient(cc grpc.ClientConnInterface) TwitterClient

type TwitterServer

TwitterServer is the server API for Twitter service. All implementations must embed UnimplementedTwitterServer for forward compatibility

type UnfollowRequest

type UnfollowRequest struct {
	UserId        int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	OldFollowerId int64 `protobuf:"varint,2,opt,name=old_follower_id,json=oldFollowerId,proto3" json:"old_follower_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UnfollowRequest) Descriptor deprecated

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

Deprecated: Use UnfollowRequest.ProtoReflect.Descriptor instead.

func (*UnfollowRequest) GetOldFollowerId

func (x *UnfollowRequest) GetOldFollowerId() int64

func (*UnfollowRequest) GetUserId

func (x *UnfollowRequest) GetUserId() int64

func (*UnfollowRequest) ProtoMessage

func (*UnfollowRequest) ProtoMessage()

func (*UnfollowRequest) ProtoReflect

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

func (*UnfollowRequest) Reset

func (x *UnfollowRequest) Reset()

func (*UnfollowRequest) String

func (x *UnfollowRequest) String() string

func (*UnfollowRequest) Validate

func (m *UnfollowRequest) Validate() error

Validate checks the field values on UnfollowRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UnfollowRequest) ValidateAll

func (m *UnfollowRequest) ValidateAll() error

ValidateAll checks the field values on UnfollowRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UnfollowRequestMultiError, or nil if none found.

type UnfollowRequestMultiError

type UnfollowRequestMultiError []error

UnfollowRequestMultiError is an error wrapping multiple validation errors returned by UnfollowRequest.ValidateAll() if the designated constraints aren't met.

func (UnfollowRequestMultiError) AllErrors

func (m UnfollowRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UnfollowRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UnfollowRequestValidationError

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

UnfollowRequestValidationError is the validation error returned by UnfollowRequest.Validate if the designated constraints aren't met.

func (UnfollowRequestValidationError) Cause

Cause function returns cause value.

func (UnfollowRequestValidationError) Error

Error satisfies the builtin error interface

func (UnfollowRequestValidationError) ErrorName

func (e UnfollowRequestValidationError) ErrorName() string

ErrorName returns error name.

func (UnfollowRequestValidationError) Field

Field function returns field value.

func (UnfollowRequestValidationError) Key

Key function returns key value.

func (UnfollowRequestValidationError) Reason

Reason function returns reason value.

type UnfollowResponse

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

func (*UnfollowResponse) Descriptor deprecated

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

Deprecated: Use UnfollowResponse.ProtoReflect.Descriptor instead.

func (*UnfollowResponse) ProtoMessage

func (*UnfollowResponse) ProtoMessage()

func (*UnfollowResponse) ProtoReflect

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

func (*UnfollowResponse) Reset

func (x *UnfollowResponse) Reset()

func (*UnfollowResponse) String

func (x *UnfollowResponse) String() string

func (*UnfollowResponse) Validate

func (m *UnfollowResponse) Validate() error

Validate checks the field values on UnfollowResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UnfollowResponse) ValidateAll

func (m *UnfollowResponse) ValidateAll() error

ValidateAll checks the field values on UnfollowResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UnfollowResponseMultiError, or nil if none found.

type UnfollowResponseMultiError

type UnfollowResponseMultiError []error

UnfollowResponseMultiError is an error wrapping multiple validation errors returned by UnfollowResponse.ValidateAll() if the designated constraints aren't met.

func (UnfollowResponseMultiError) AllErrors

func (m UnfollowResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UnfollowResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UnfollowResponseValidationError

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

UnfollowResponseValidationError is the validation error returned by UnfollowResponse.Validate if the designated constraints aren't met.

func (UnfollowResponseValidationError) Cause

Cause function returns cause value.

func (UnfollowResponseValidationError) Error

Error satisfies the builtin error interface

func (UnfollowResponseValidationError) ErrorName

ErrorName returns error name.

func (UnfollowResponseValidationError) Field

Field function returns field value.

func (UnfollowResponseValidationError) Key

Key function returns key value.

func (UnfollowResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedTwitterServer

type UnimplementedTwitterServer struct {
}

UnimplementedTwitterServer must be embedded to have forward compatible implementations.

func (UnimplementedTwitterServer) AddComment

func (UnimplementedTwitterServer) AddTweet

func (UnimplementedTwitterServer) Follow

func (UnimplementedTwitterServer) GetFollowers

func (UnimplementedTwitterServer) GetFollowing

func (UnimplementedTwitterServer) GetNewsFeed

func (UnimplementedTwitterServer) Login

func (UnimplementedTwitterServer) RecommendUsers

func (UnimplementedTwitterServer) Register

func (UnimplementedTwitterServer) Unfollow

func (UnimplementedTwitterServer) UpdateCaption

func (UnimplementedTwitterServer) UpdateComment

func (UnimplementedTwitterServer) UpdateTweet

type UnsafeTwitterServer

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

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

type UpdateCaptionRequest

type UpdateCaptionRequest struct {
	UserId     int64  `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	NewCaption string `protobuf:"bytes,2,opt,name=new_caption,json=newCaption,proto3" json:"new_caption,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCaptionRequest) Descriptor deprecated

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

Deprecated: Use UpdateCaptionRequest.ProtoReflect.Descriptor instead.

func (*UpdateCaptionRequest) GetNewCaption

func (x *UpdateCaptionRequest) GetNewCaption() string

func (*UpdateCaptionRequest) GetUserId

func (x *UpdateCaptionRequest) GetUserId() int64

func (*UpdateCaptionRequest) ProtoMessage

func (*UpdateCaptionRequest) ProtoMessage()

func (*UpdateCaptionRequest) ProtoReflect

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

func (*UpdateCaptionRequest) Reset

func (x *UpdateCaptionRequest) Reset()

func (*UpdateCaptionRequest) String

func (x *UpdateCaptionRequest) String() string

func (*UpdateCaptionRequest) Validate

func (m *UpdateCaptionRequest) Validate() error

Validate checks the field values on UpdateCaptionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateCaptionRequest) ValidateAll

func (m *UpdateCaptionRequest) ValidateAll() error

ValidateAll checks the field values on UpdateCaptionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateCaptionRequestMultiError, or nil if none found.

type UpdateCaptionRequestMultiError

type UpdateCaptionRequestMultiError []error

UpdateCaptionRequestMultiError is an error wrapping multiple validation errors returned by UpdateCaptionRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateCaptionRequestMultiError) AllErrors

func (m UpdateCaptionRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateCaptionRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateCaptionRequestValidationError

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

UpdateCaptionRequestValidationError is the validation error returned by UpdateCaptionRequest.Validate if the designated constraints aren't met.

func (UpdateCaptionRequestValidationError) Cause

Cause function returns cause value.

func (UpdateCaptionRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateCaptionRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateCaptionRequestValidationError) Field

Field function returns field value.

func (UpdateCaptionRequestValidationError) Key

Key function returns key value.

func (UpdateCaptionRequestValidationError) Reason

Reason function returns reason value.

type UpdateCaptionResponse

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

func (*UpdateCaptionResponse) Descriptor deprecated

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

Deprecated: Use UpdateCaptionResponse.ProtoReflect.Descriptor instead.

func (*UpdateCaptionResponse) ProtoMessage

func (*UpdateCaptionResponse) ProtoMessage()

func (*UpdateCaptionResponse) ProtoReflect

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

func (*UpdateCaptionResponse) Reset

func (x *UpdateCaptionResponse) Reset()

func (*UpdateCaptionResponse) String

func (x *UpdateCaptionResponse) String() string

func (*UpdateCaptionResponse) Validate

func (m *UpdateCaptionResponse) Validate() error

Validate checks the field values on UpdateCaptionResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateCaptionResponse) ValidateAll

func (m *UpdateCaptionResponse) ValidateAll() error

ValidateAll checks the field values on UpdateCaptionResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateCaptionResponseMultiError, or nil if none found.

type UpdateCaptionResponseMultiError

type UpdateCaptionResponseMultiError []error

UpdateCaptionResponseMultiError is an error wrapping multiple validation errors returned by UpdateCaptionResponse.ValidateAll() if the designated constraints aren't met.

func (UpdateCaptionResponseMultiError) AllErrors

func (m UpdateCaptionResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateCaptionResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateCaptionResponseValidationError

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

UpdateCaptionResponseValidationError is the validation error returned by UpdateCaptionResponse.Validate if the designated constraints aren't met.

func (UpdateCaptionResponseValidationError) Cause

Cause function returns cause value.

func (UpdateCaptionResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateCaptionResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateCaptionResponseValidationError) Field

Field function returns field value.

func (UpdateCaptionResponseValidationError) Key

Key function returns key value.

func (UpdateCaptionResponseValidationError) Reason

Reason function returns reason value.

type UpdateCommentRequest

type UpdateCommentRequest struct {
	UserId    int64  `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	CommentId int64  `protobuf:"varint,2,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`
	NewText   string `protobuf:"bytes,3,opt,name=new_text,json=newText,proto3" json:"new_text,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCommentRequest) Descriptor deprecated

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

Deprecated: Use UpdateCommentRequest.ProtoReflect.Descriptor instead.

func (*UpdateCommentRequest) GetCommentId

func (x *UpdateCommentRequest) GetCommentId() int64

func (*UpdateCommentRequest) GetNewText

func (x *UpdateCommentRequest) GetNewText() string

func (*UpdateCommentRequest) GetUserId

func (x *UpdateCommentRequest) GetUserId() int64

func (*UpdateCommentRequest) ProtoMessage

func (*UpdateCommentRequest) ProtoMessage()

func (*UpdateCommentRequest) ProtoReflect

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

func (*UpdateCommentRequest) Reset

func (x *UpdateCommentRequest) Reset()

func (*UpdateCommentRequest) String

func (x *UpdateCommentRequest) String() string

func (*UpdateCommentRequest) Validate

func (m *UpdateCommentRequest) Validate() error

Validate checks the field values on UpdateCommentRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateCommentRequest) ValidateAll

func (m *UpdateCommentRequest) ValidateAll() error

ValidateAll checks the field values on UpdateCommentRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateCommentRequestMultiError, or nil if none found.

type UpdateCommentRequestMultiError

type UpdateCommentRequestMultiError []error

UpdateCommentRequestMultiError is an error wrapping multiple validation errors returned by UpdateCommentRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateCommentRequestMultiError) AllErrors

func (m UpdateCommentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateCommentRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateCommentRequestValidationError

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

UpdateCommentRequestValidationError is the validation error returned by UpdateCommentRequest.Validate if the designated constraints aren't met.

func (UpdateCommentRequestValidationError) Cause

Cause function returns cause value.

func (UpdateCommentRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateCommentRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateCommentRequestValidationError) Field

Field function returns field value.

func (UpdateCommentRequestValidationError) Key

Key function returns key value.

func (UpdateCommentRequestValidationError) Reason

Reason function returns reason value.

type UpdateCommentResponse

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

func (*UpdateCommentResponse) Descriptor deprecated

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

Deprecated: Use UpdateCommentResponse.ProtoReflect.Descriptor instead.

func (*UpdateCommentResponse) ProtoMessage

func (*UpdateCommentResponse) ProtoMessage()

func (*UpdateCommentResponse) ProtoReflect

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

func (*UpdateCommentResponse) Reset

func (x *UpdateCommentResponse) Reset()

func (*UpdateCommentResponse) String

func (x *UpdateCommentResponse) String() string

func (*UpdateCommentResponse) Validate

func (m *UpdateCommentResponse) Validate() error

Validate checks the field values on UpdateCommentResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateCommentResponse) ValidateAll

func (m *UpdateCommentResponse) ValidateAll() error

ValidateAll checks the field values on UpdateCommentResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateCommentResponseMultiError, or nil if none found.

type UpdateCommentResponseMultiError

type UpdateCommentResponseMultiError []error

UpdateCommentResponseMultiError is an error wrapping multiple validation errors returned by UpdateCommentResponse.ValidateAll() if the designated constraints aren't met.

func (UpdateCommentResponseMultiError) AllErrors

func (m UpdateCommentResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateCommentResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateCommentResponseValidationError

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

UpdateCommentResponseValidationError is the validation error returned by UpdateCommentResponse.Validate if the designated constraints aren't met.

func (UpdateCommentResponseValidationError) Cause

Cause function returns cause value.

func (UpdateCommentResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateCommentResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateCommentResponseValidationError) Field

Field function returns field value.

func (UpdateCommentResponseValidationError) Key

Key function returns key value.

func (UpdateCommentResponseValidationError) Reason

Reason function returns reason value.

type UpdateTweetRequest

type UpdateTweetRequest struct {
	UserId  int64  `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	TweetId int64  `protobuf:"varint,2,opt,name=tweet_id,json=tweetId,proto3" json:"tweet_id,omitempty"`
	NewText string `protobuf:"bytes,3,opt,name=new_text,json=newText,proto3" json:"new_text,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateTweetRequest) Descriptor deprecated

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

Deprecated: Use UpdateTweetRequest.ProtoReflect.Descriptor instead.

func (*UpdateTweetRequest) GetNewText

func (x *UpdateTweetRequest) GetNewText() string

func (*UpdateTweetRequest) GetTweetId

func (x *UpdateTweetRequest) GetTweetId() int64

func (*UpdateTweetRequest) GetUserId

func (x *UpdateTweetRequest) GetUserId() int64

func (*UpdateTweetRequest) ProtoMessage

func (*UpdateTweetRequest) ProtoMessage()

func (*UpdateTweetRequest) ProtoReflect

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

func (*UpdateTweetRequest) Reset

func (x *UpdateTweetRequest) Reset()

func (*UpdateTweetRequest) String

func (x *UpdateTweetRequest) String() string

func (*UpdateTweetRequest) Validate

func (m *UpdateTweetRequest) Validate() error

Validate checks the field values on UpdateTweetRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateTweetRequest) ValidateAll

func (m *UpdateTweetRequest) ValidateAll() error

ValidateAll checks the field values on UpdateTweetRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateTweetRequestMultiError, or nil if none found.

type UpdateTweetRequestMultiError

type UpdateTweetRequestMultiError []error

UpdateTweetRequestMultiError is an error wrapping multiple validation errors returned by UpdateTweetRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateTweetRequestMultiError) AllErrors

func (m UpdateTweetRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateTweetRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateTweetRequestValidationError

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

UpdateTweetRequestValidationError is the validation error returned by UpdateTweetRequest.Validate if the designated constraints aren't met.

func (UpdateTweetRequestValidationError) Cause

Cause function returns cause value.

func (UpdateTweetRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateTweetRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateTweetRequestValidationError) Field

Field function returns field value.

func (UpdateTweetRequestValidationError) Key

Key function returns key value.

func (UpdateTweetRequestValidationError) Reason

Reason function returns reason value.

type UpdateTweetResponse

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

func (*UpdateTweetResponse) Descriptor deprecated

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

Deprecated: Use UpdateTweetResponse.ProtoReflect.Descriptor instead.

func (*UpdateTweetResponse) ProtoMessage

func (*UpdateTweetResponse) ProtoMessage()

func (*UpdateTweetResponse) ProtoReflect

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

func (*UpdateTweetResponse) Reset

func (x *UpdateTweetResponse) Reset()

func (*UpdateTweetResponse) String

func (x *UpdateTweetResponse) String() string

func (*UpdateTweetResponse) Validate

func (m *UpdateTweetResponse) Validate() error

Validate checks the field values on UpdateTweetResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateTweetResponse) ValidateAll

func (m *UpdateTweetResponse) ValidateAll() error

ValidateAll checks the field values on UpdateTweetResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateTweetResponseMultiError, or nil if none found.

type UpdateTweetResponseMultiError

type UpdateTweetResponseMultiError []error

UpdateTweetResponseMultiError is an error wrapping multiple validation errors returned by UpdateTweetResponse.ValidateAll() if the designated constraints aren't met.

func (UpdateTweetResponseMultiError) AllErrors

func (m UpdateTweetResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateTweetResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateTweetResponseValidationError

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

UpdateTweetResponseValidationError is the validation error returned by UpdateTweetResponse.Validate if the designated constraints aren't met.

func (UpdateTweetResponseValidationError) Cause

Cause function returns cause value.

func (UpdateTweetResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateTweetResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateTweetResponseValidationError) Field

Field function returns field value.

func (UpdateTweetResponseValidationError) Key

Key function returns key value.

func (UpdateTweetResponseValidationError) Reason

Reason function returns reason value.

type UserProfile

type UserProfile struct {
	Email    string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	FullName string `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	Caption  string `protobuf:"bytes,3,opt,name=caption,proto3" json:"caption,omitempty"`
	// date_of_birth should be in range (now - 100 years, now)
	DateOfBirth *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"`
	// contains filtered or unexported fields
}

func (*UserProfile) Descriptor deprecated

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

Deprecated: Use UserProfile.ProtoReflect.Descriptor instead.

func (*UserProfile) GetCaption

func (x *UserProfile) GetCaption() string

func (*UserProfile) GetDateOfBirth

func (x *UserProfile) GetDateOfBirth() *timestamppb.Timestamp

func (*UserProfile) GetEmail

func (x *UserProfile) GetEmail() string

func (*UserProfile) GetFullName

func (x *UserProfile) GetFullName() string

func (*UserProfile) ProtoMessage

func (*UserProfile) ProtoMessage()

func (*UserProfile) ProtoReflect

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

func (*UserProfile) Reset

func (x *UserProfile) Reset()

func (*UserProfile) String

func (x *UserProfile) String() string

func (*UserProfile) Validate

func (m *UserProfile) Validate() error

Validate checks the field values on UserProfile with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserProfile) ValidateAll

func (m *UserProfile) ValidateAll() error

ValidateAll checks the field values on UserProfile with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserProfileMultiError, or nil if none found.

type UserProfileMultiError

type UserProfileMultiError []error

UserProfileMultiError is an error wrapping multiple validation errors returned by UserProfile.ValidateAll() if the designated constraints aren't met.

func (UserProfileMultiError) AllErrors

func (m UserProfileMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserProfileMultiError) Error

func (m UserProfileMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserProfileValidationError

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

UserProfileValidationError is the validation error returned by UserProfile.Validate if the designated constraints aren't met.

func (UserProfileValidationError) Cause

Cause function returns cause value.

func (UserProfileValidationError) Error

Error satisfies the builtin error interface

func (UserProfileValidationError) ErrorName

func (e UserProfileValidationError) ErrorName() string

ErrorName returns error name.

func (UserProfileValidationError) Field

Field function returns field value.

func (UserProfileValidationError) Key

Key function returns key value.

func (UserProfileValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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