profilepb

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: MIT Imports: 22 Imported by: 7

Documentation

Index

Constants

View Source
const (
	Profile_GetProfile_FullMethodName          = "/flipchat.profile.v1.Profile/GetProfile"
	Profile_SetDisplayName_FullMethodName      = "/flipchat.profile.v1.Profile/SetDisplayName"
	Profile_LinkSocialAccount_FullMethodName   = "/flipchat.profile.v1.Profile/LinkSocialAccount"
	Profile_UnlinkSocialAccount_FullMethodName = "/flipchat.profile.v1.Profile/UnlinkSocialAccount"
)

Variables

View Source
var (
	XProfile_VerifiedType_name = map[int32]string{
		0: "NONE",
		1: "BLUE",
		2: "BUSINESS",
		3: "GOVERNMENT",
	}
	XProfile_VerifiedType_value = map[string]int32{
		"NONE":       0,
		"BLUE":       1,
		"BUSINESS":   2,
		"GOVERNMENT": 3,
	}
)

Enum value maps for XProfile_VerifiedType.

View Source
var (
	GetProfileResponse_Result_name = map[int32]string{
		0: "OK",
		1: "NOT_FOUND",
	}
	GetProfileResponse_Result_value = map[string]int32{
		"OK":        0,
		"NOT_FOUND": 1,
	}
)

Enum value maps for GetProfileResponse_Result.

View Source
var (
	SetDisplayNameResponse_Result_name = map[int32]string{
		0: "OK",
		1: "INVALID_DISPLAY_NAME",
		2: "DENIED",
	}
	SetDisplayNameResponse_Result_value = map[string]int32{
		"OK":                   0,
		"INVALID_DISPLAY_NAME": 1,
		"DENIED":               2,
	}
)

Enum value maps for SetDisplayNameResponse_Result.

View Source
var (
	LinkSocialAccountResponse_Result_name = map[int32]string{
		0: "OK",
		1: "INVALID_LINKING_TOKEN",
		2: "EXISTING_LINK",
		3: "DENIED",
	}
	LinkSocialAccountResponse_Result_value = map[string]int32{
		"OK":                    0,
		"INVALID_LINKING_TOKEN": 1,
		"EXISTING_LINK":         2,
		"DENIED":                3,
	}
)

Enum value maps for LinkSocialAccountResponse_Result.

View Source
var (
	UnlinkSocialAccountResponse_Result_name = map[int32]string{
		0: "OK",
		1: "DENIED",
	}
	UnlinkSocialAccountResponse_Result_value = map[string]int32{
		"OK":     0,
		"DENIED": 1,
	}
)

Enum value maps for UnlinkSocialAccountResponse_Result.

View Source
var File_profile_v1_model_proto protoreflect.FileDescriptor
View Source
var File_profile_v1_profile_service_proto protoreflect.FileDescriptor
View Source
var Profile_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "flipchat.profile.v1.Profile",
	HandlerType: (*ProfileServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetProfile",
			Handler:    _Profile_GetProfile_Handler,
		},
		{
			MethodName: "SetDisplayName",
			Handler:    _Profile_SetDisplayName_Handler,
		},
		{
			MethodName: "LinkSocialAccount",
			Handler:    _Profile_LinkSocialAccount_Handler,
		},
		{
			MethodName: "UnlinkSocialAccount",
			Handler:    _Profile_UnlinkSocialAccount_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "profile/v1/profile_service.proto",
}

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

Functions

func RegisterProfileServer

func RegisterProfileServer(s grpc.ServiceRegistrar, srv ProfileServer)

Types

type GetProfileRequest

type GetProfileRequest struct {
	UserId *v1.UserId `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProfileRequest) Descriptor deprecated

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

Deprecated: Use GetProfileRequest.ProtoReflect.Descriptor instead.

func (*GetProfileRequest) GetUserId

func (x *GetProfileRequest) GetUserId() *v1.UserId

func (*GetProfileRequest) ProtoMessage

func (*GetProfileRequest) ProtoMessage()

func (*GetProfileRequest) ProtoReflect

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

func (*GetProfileRequest) Reset

func (x *GetProfileRequest) Reset()

func (*GetProfileRequest) String

func (x *GetProfileRequest) String() string

func (*GetProfileRequest) Validate

func (m *GetProfileRequest) Validate() error

Validate checks the field values on GetProfileRequest 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 (*GetProfileRequest) ValidateAll

func (m *GetProfileRequest) ValidateAll() error

ValidateAll checks the field values on GetProfileRequest 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 GetProfileRequestMultiError, or nil if none found.

type GetProfileRequestMultiError

type GetProfileRequestMultiError []error

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

func (GetProfileRequestMultiError) AllErrors

func (m GetProfileRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetProfileRequestMultiError) Error

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

type GetProfileRequestValidationError

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

GetProfileRequestValidationError is the validation error returned by GetProfileRequest.Validate if the designated constraints aren't met.

func (GetProfileRequestValidationError) Cause

Cause function returns cause value.

func (GetProfileRequestValidationError) Error

Error satisfies the builtin error interface

func (GetProfileRequestValidationError) ErrorName

ErrorName returns error name.

func (GetProfileRequestValidationError) Field

Field function returns field value.

func (GetProfileRequestValidationError) Key

Key function returns key value.

func (GetProfileRequestValidationError) Reason

Reason function returns reason value.

type GetProfileResponse

type GetProfileResponse struct {
	Result GetProfileResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipchat.profile.v1.GetProfileResponse_Result" json:"result,omitempty"`
	// UserProfile, if found.
	//
	// Some fields may or may not be set, depending on the scope of request
	// in the future.
	UserProfile *UserProfile `protobuf:"bytes,2,opt,name=user_profile,json=userProfile,proto3" json:"user_profile,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProfileResponse) Descriptor deprecated

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

Deprecated: Use GetProfileResponse.ProtoReflect.Descriptor instead.

func (*GetProfileResponse) GetResult

func (*GetProfileResponse) GetUserProfile

func (x *GetProfileResponse) GetUserProfile() *UserProfile

func (*GetProfileResponse) ProtoMessage

func (*GetProfileResponse) ProtoMessage()

func (*GetProfileResponse) ProtoReflect

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

func (*GetProfileResponse) Reset

func (x *GetProfileResponse) Reset()

func (*GetProfileResponse) String

func (x *GetProfileResponse) String() string

func (*GetProfileResponse) Validate

func (m *GetProfileResponse) Validate() error

Validate checks the field values on GetProfileResponse 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 (*GetProfileResponse) ValidateAll

func (m *GetProfileResponse) ValidateAll() error

ValidateAll checks the field values on GetProfileResponse 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 GetProfileResponseMultiError, or nil if none found.

type GetProfileResponseMultiError

type GetProfileResponseMultiError []error

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

func (GetProfileResponseMultiError) AllErrors

func (m GetProfileResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetProfileResponseMultiError) Error

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

type GetProfileResponseValidationError

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

GetProfileResponseValidationError is the validation error returned by GetProfileResponse.Validate if the designated constraints aren't met.

func (GetProfileResponseValidationError) Cause

Cause function returns cause value.

func (GetProfileResponseValidationError) Error

Error satisfies the builtin error interface

func (GetProfileResponseValidationError) ErrorName

ErrorName returns error name.

func (GetProfileResponseValidationError) Field

Field function returns field value.

func (GetProfileResponseValidationError) Key

Key function returns key value.

func (GetProfileResponseValidationError) Reason

Reason function returns reason value.

type GetProfileResponse_Result

type GetProfileResponse_Result int32
const (
	GetProfileResponse_OK        GetProfileResponse_Result = 0
	GetProfileResponse_NOT_FOUND GetProfileResponse_Result = 1
)

func (GetProfileResponse_Result) Descriptor

func (GetProfileResponse_Result) Enum

func (GetProfileResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use GetProfileResponse_Result.Descriptor instead.

func (GetProfileResponse_Result) Number

func (GetProfileResponse_Result) String

func (x GetProfileResponse_Result) String() string

func (GetProfileResponse_Result) Type

type LinkSocialAccountRequest

type LinkSocialAccountRequest struct {
	LinkingToken *LinkSocialAccountRequest_LinkingToken `protobuf:"bytes,1,opt,name=linking_token,json=linkingToken,proto3" json:"linking_token,omitempty"`
	Auth         *v1.Auth                               `protobuf:"bytes,10,opt,name=auth,proto3" json:"auth,omitempty"`
	// contains filtered or unexported fields
}

func (*LinkSocialAccountRequest) Descriptor deprecated

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

Deprecated: Use LinkSocialAccountRequest.ProtoReflect.Descriptor instead.

func (*LinkSocialAccountRequest) GetAuth

func (x *LinkSocialAccountRequest) GetAuth() *v1.Auth

func (*LinkSocialAccountRequest) GetLinkingToken

func (*LinkSocialAccountRequest) ProtoMessage

func (*LinkSocialAccountRequest) ProtoMessage()

func (*LinkSocialAccountRequest) ProtoReflect

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

func (*LinkSocialAccountRequest) Reset

func (x *LinkSocialAccountRequest) Reset()

func (*LinkSocialAccountRequest) String

func (x *LinkSocialAccountRequest) String() string

func (*LinkSocialAccountRequest) Validate

func (m *LinkSocialAccountRequest) Validate() error

Validate checks the field values on LinkSocialAccountRequest 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 (*LinkSocialAccountRequest) ValidateAll

func (m *LinkSocialAccountRequest) ValidateAll() error

ValidateAll checks the field values on LinkSocialAccountRequest 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 LinkSocialAccountRequestMultiError, or nil if none found.

type LinkSocialAccountRequestMultiError

type LinkSocialAccountRequestMultiError []error

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

func (LinkSocialAccountRequestMultiError) AllErrors

func (m LinkSocialAccountRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LinkSocialAccountRequestMultiError) Error

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

type LinkSocialAccountRequestValidationError

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

LinkSocialAccountRequestValidationError is the validation error returned by LinkSocialAccountRequest.Validate if the designated constraints aren't met.

func (LinkSocialAccountRequestValidationError) Cause

Cause function returns cause value.

func (LinkSocialAccountRequestValidationError) Error

Error satisfies the builtin error interface

func (LinkSocialAccountRequestValidationError) ErrorName

ErrorName returns error name.

func (LinkSocialAccountRequestValidationError) Field

Field function returns field value.

func (LinkSocialAccountRequestValidationError) Key

Key function returns key value.

func (LinkSocialAccountRequestValidationError) Reason

Reason function returns reason value.

type LinkSocialAccountRequest_LinkingToken

type LinkSocialAccountRequest_LinkingToken struct {

	// Types that are assignable to Type:
	//
	//	*LinkSocialAccountRequest_LinkingToken_X
	Type isLinkSocialAccountRequest_LinkingToken_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*LinkSocialAccountRequest_LinkingToken) Descriptor deprecated

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

Deprecated: Use LinkSocialAccountRequest_LinkingToken.ProtoReflect.Descriptor instead.

func (*LinkSocialAccountRequest_LinkingToken) GetType

func (m *LinkSocialAccountRequest_LinkingToken) GetType() isLinkSocialAccountRequest_LinkingToken_Type

func (*LinkSocialAccountRequest_LinkingToken) GetX

func (*LinkSocialAccountRequest_LinkingToken) ProtoMessage

func (*LinkSocialAccountRequest_LinkingToken) ProtoMessage()

func (*LinkSocialAccountRequest_LinkingToken) ProtoReflect

func (*LinkSocialAccountRequest_LinkingToken) Reset

func (*LinkSocialAccountRequest_LinkingToken) String

func (*LinkSocialAccountRequest_LinkingToken) Validate

Validate checks the field values on LinkSocialAccountRequest_LinkingToken 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 (*LinkSocialAccountRequest_LinkingToken) ValidateAll

ValidateAll checks the field values on LinkSocialAccountRequest_LinkingToken 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 LinkSocialAccountRequest_LinkingTokenMultiError, or nil if none found.

type LinkSocialAccountRequest_LinkingTokenMultiError

type LinkSocialAccountRequest_LinkingTokenMultiError []error

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

func (LinkSocialAccountRequest_LinkingTokenMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (LinkSocialAccountRequest_LinkingTokenMultiError) Error

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

type LinkSocialAccountRequest_LinkingTokenValidationError

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

LinkSocialAccountRequest_LinkingTokenValidationError is the validation error returned by LinkSocialAccountRequest_LinkingToken.Validate if the designated constraints aren't met.

func (LinkSocialAccountRequest_LinkingTokenValidationError) Cause

Cause function returns cause value.

func (LinkSocialAccountRequest_LinkingTokenValidationError) Error

Error satisfies the builtin error interface

func (LinkSocialAccountRequest_LinkingTokenValidationError) ErrorName

ErrorName returns error name.

func (LinkSocialAccountRequest_LinkingTokenValidationError) Field

Field function returns field value.

func (LinkSocialAccountRequest_LinkingTokenValidationError) Key

Key function returns key value.

func (LinkSocialAccountRequest_LinkingTokenValidationError) Reason

Reason function returns reason value.

type LinkSocialAccountRequest_LinkingToken_X

type LinkSocialAccountRequest_LinkingToken_X struct {
	X *LinkSocialAccountRequest_LinkingToken_XLinkingToken `protobuf:"bytes,1,opt,name=x,proto3,oneof"`
}

type LinkSocialAccountRequest_LinkingToken_XLinkingToken

type LinkSocialAccountRequest_LinkingToken_XLinkingToken struct {

	// X access token from the OAuth 2.0 flow
	AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	// contains filtered or unexported fields
}

func (*LinkSocialAccountRequest_LinkingToken_XLinkingToken) Descriptor deprecated

Deprecated: Use LinkSocialAccountRequest_LinkingToken_XLinkingToken.ProtoReflect.Descriptor instead.

func (*LinkSocialAccountRequest_LinkingToken_XLinkingToken) GetAccessToken

func (*LinkSocialAccountRequest_LinkingToken_XLinkingToken) ProtoMessage

func (*LinkSocialAccountRequest_LinkingToken_XLinkingToken) ProtoReflect

func (*LinkSocialAccountRequest_LinkingToken_XLinkingToken) Reset

func (*LinkSocialAccountRequest_LinkingToken_XLinkingToken) String

func (*LinkSocialAccountRequest_LinkingToken_XLinkingToken) Validate

Validate checks the field values on LinkSocialAccountRequest_LinkingToken_XLinkingToken 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 (*LinkSocialAccountRequest_LinkingToken_XLinkingToken) ValidateAll

ValidateAll checks the field values on LinkSocialAccountRequest_LinkingToken_XLinkingToken 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 LinkSocialAccountRequest_LinkingToken_XLinkingTokenMultiError, or nil if none found.

type LinkSocialAccountRequest_LinkingToken_XLinkingTokenMultiError

type LinkSocialAccountRequest_LinkingToken_XLinkingTokenMultiError []error

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

func (LinkSocialAccountRequest_LinkingToken_XLinkingTokenMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (LinkSocialAccountRequest_LinkingToken_XLinkingTokenMultiError) Error

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

type LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError

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

LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError is the validation error returned by LinkSocialAccountRequest_LinkingToken_XLinkingToken.Validate if the designated constraints aren't met.

func (LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) Cause

Cause function returns cause value.

func (LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) Error

Error satisfies the builtin error interface

func (LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) ErrorName

ErrorName returns error name.

func (LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) Field

Field function returns field value.

func (LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) Key

Key function returns key value.

func (LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) Reason

Reason function returns reason value.

type LinkSocialAccountResponse

type LinkSocialAccountResponse struct {
	Result        LinkSocialAccountResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipchat.profile.v1.LinkSocialAccountResponse_Result" json:"result,omitempty"`
	SocialProfile *SocialProfile                   `protobuf:"bytes,2,opt,name=social_profile,json=socialProfile,proto3" json:"social_profile,omitempty"`
	// contains filtered or unexported fields
}

func (*LinkSocialAccountResponse) Descriptor deprecated

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

Deprecated: Use LinkSocialAccountResponse.ProtoReflect.Descriptor instead.

func (*LinkSocialAccountResponse) GetResult

func (*LinkSocialAccountResponse) GetSocialProfile

func (x *LinkSocialAccountResponse) GetSocialProfile() *SocialProfile

func (*LinkSocialAccountResponse) ProtoMessage

func (*LinkSocialAccountResponse) ProtoMessage()

func (*LinkSocialAccountResponse) ProtoReflect

func (*LinkSocialAccountResponse) Reset

func (x *LinkSocialAccountResponse) Reset()

func (*LinkSocialAccountResponse) String

func (x *LinkSocialAccountResponse) String() string

func (*LinkSocialAccountResponse) Validate

func (m *LinkSocialAccountResponse) Validate() error

Validate checks the field values on LinkSocialAccountResponse 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 (*LinkSocialAccountResponse) ValidateAll

func (m *LinkSocialAccountResponse) ValidateAll() error

ValidateAll checks the field values on LinkSocialAccountResponse 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 LinkSocialAccountResponseMultiError, or nil if none found.

type LinkSocialAccountResponseMultiError

type LinkSocialAccountResponseMultiError []error

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

func (LinkSocialAccountResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (LinkSocialAccountResponseMultiError) Error

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

type LinkSocialAccountResponseValidationError

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

LinkSocialAccountResponseValidationError is the validation error returned by LinkSocialAccountResponse.Validate if the designated constraints aren't met.

func (LinkSocialAccountResponseValidationError) Cause

Cause function returns cause value.

func (LinkSocialAccountResponseValidationError) Error

Error satisfies the builtin error interface

func (LinkSocialAccountResponseValidationError) ErrorName

ErrorName returns error name.

func (LinkSocialAccountResponseValidationError) Field

Field function returns field value.

func (LinkSocialAccountResponseValidationError) Key

Key function returns key value.

func (LinkSocialAccountResponseValidationError) Reason

Reason function returns reason value.

type LinkSocialAccountResponse_Result

type LinkSocialAccountResponse_Result int32
const (
	LinkSocialAccountResponse_OK                    LinkSocialAccountResponse_Result = 0
	LinkSocialAccountResponse_INVALID_LINKING_TOKEN LinkSocialAccountResponse_Result = 1
	LinkSocialAccountResponse_EXISTING_LINK         LinkSocialAccountResponse_Result = 2
	LinkSocialAccountResponse_DENIED                LinkSocialAccountResponse_Result = 3
)

func (LinkSocialAccountResponse_Result) Descriptor

func (LinkSocialAccountResponse_Result) Enum

func (LinkSocialAccountResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use LinkSocialAccountResponse_Result.Descriptor instead.

func (LinkSocialAccountResponse_Result) Number

func (LinkSocialAccountResponse_Result) String

func (LinkSocialAccountResponse_Result) Type

type ProfileClient

type ProfileClient interface {
	GetProfile(ctx context.Context, in *GetProfileRequest, opts ...grpc.CallOption) (*GetProfileResponse, error)
	SetDisplayName(ctx context.Context, in *SetDisplayNameRequest, opts ...grpc.CallOption) (*SetDisplayNameResponse, error)
	// LinkSocialAccount links a social account to a user
	LinkSocialAccount(ctx context.Context, in *LinkSocialAccountRequest, opts ...grpc.CallOption) (*LinkSocialAccountResponse, error)
	// UnlinkSocialAccount removes a social account link from a user
	UnlinkSocialAccount(ctx context.Context, in *UnlinkSocialAccountRequest, opts ...grpc.CallOption) (*UnlinkSocialAccountResponse, error)
}

ProfileClient is the client API for Profile 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 NewProfileClient

func NewProfileClient(cc grpc.ClientConnInterface) ProfileClient

type ProfileServer

type ProfileServer interface {
	GetProfile(context.Context, *GetProfileRequest) (*GetProfileResponse, error)
	SetDisplayName(context.Context, *SetDisplayNameRequest) (*SetDisplayNameResponse, error)
	// LinkSocialAccount links a social account to a user
	LinkSocialAccount(context.Context, *LinkSocialAccountRequest) (*LinkSocialAccountResponse, error)
	// UnlinkSocialAccount removes a social account link from a user
	UnlinkSocialAccount(context.Context, *UnlinkSocialAccountRequest) (*UnlinkSocialAccountResponse, error)
	// contains filtered or unexported methods
}

ProfileServer is the server API for Profile service. All implementations must embed UnimplementedProfileServer for forward compatibility.

type SetDisplayNameRequest

type SetDisplayNameRequest struct {

	// DisplayName is the new name to set.
	DisplayName string   `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	Auth        *v1.Auth `protobuf:"bytes,10,opt,name=auth,proto3" json:"auth,omitempty"`
	// contains filtered or unexported fields
}

func (*SetDisplayNameRequest) Descriptor deprecated

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

Deprecated: Use SetDisplayNameRequest.ProtoReflect.Descriptor instead.

func (*SetDisplayNameRequest) GetAuth

func (x *SetDisplayNameRequest) GetAuth() *v1.Auth

func (*SetDisplayNameRequest) GetDisplayName

func (x *SetDisplayNameRequest) GetDisplayName() string

func (*SetDisplayNameRequest) ProtoMessage

func (*SetDisplayNameRequest) ProtoMessage()

func (*SetDisplayNameRequest) ProtoReflect

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

func (*SetDisplayNameRequest) Reset

func (x *SetDisplayNameRequest) Reset()

func (*SetDisplayNameRequest) String

func (x *SetDisplayNameRequest) String() string

func (*SetDisplayNameRequest) Validate

func (m *SetDisplayNameRequest) Validate() error

Validate checks the field values on SetDisplayNameRequest 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 (*SetDisplayNameRequest) ValidateAll

func (m *SetDisplayNameRequest) ValidateAll() error

ValidateAll checks the field values on SetDisplayNameRequest 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 SetDisplayNameRequestMultiError, or nil if none found.

type SetDisplayNameRequestMultiError

type SetDisplayNameRequestMultiError []error

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

func (SetDisplayNameRequestMultiError) AllErrors

func (m SetDisplayNameRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetDisplayNameRequestMultiError) Error

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

type SetDisplayNameRequestValidationError

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

SetDisplayNameRequestValidationError is the validation error returned by SetDisplayNameRequest.Validate if the designated constraints aren't met.

func (SetDisplayNameRequestValidationError) Cause

Cause function returns cause value.

func (SetDisplayNameRequestValidationError) Error

Error satisfies the builtin error interface

func (SetDisplayNameRequestValidationError) ErrorName

ErrorName returns error name.

func (SetDisplayNameRequestValidationError) Field

Field function returns field value.

func (SetDisplayNameRequestValidationError) Key

Key function returns key value.

func (SetDisplayNameRequestValidationError) Reason

Reason function returns reason value.

type SetDisplayNameResponse

type SetDisplayNameResponse struct {
	Result SetDisplayNameResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipchat.profile.v1.SetDisplayNameResponse_Result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*SetDisplayNameResponse) Descriptor deprecated

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

Deprecated: Use SetDisplayNameResponse.ProtoReflect.Descriptor instead.

func (*SetDisplayNameResponse) GetResult

func (*SetDisplayNameResponse) ProtoMessage

func (*SetDisplayNameResponse) ProtoMessage()

func (*SetDisplayNameResponse) ProtoReflect

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

func (*SetDisplayNameResponse) Reset

func (x *SetDisplayNameResponse) Reset()

func (*SetDisplayNameResponse) String

func (x *SetDisplayNameResponse) String() string

func (*SetDisplayNameResponse) Validate

func (m *SetDisplayNameResponse) Validate() error

Validate checks the field values on SetDisplayNameResponse 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 (*SetDisplayNameResponse) ValidateAll

func (m *SetDisplayNameResponse) ValidateAll() error

ValidateAll checks the field values on SetDisplayNameResponse 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 SetDisplayNameResponseMultiError, or nil if none found.

type SetDisplayNameResponseMultiError

type SetDisplayNameResponseMultiError []error

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

func (SetDisplayNameResponseMultiError) AllErrors

func (m SetDisplayNameResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetDisplayNameResponseMultiError) Error

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

type SetDisplayNameResponseValidationError

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

SetDisplayNameResponseValidationError is the validation error returned by SetDisplayNameResponse.Validate if the designated constraints aren't met.

func (SetDisplayNameResponseValidationError) Cause

Cause function returns cause value.

func (SetDisplayNameResponseValidationError) Error

Error satisfies the builtin error interface

func (SetDisplayNameResponseValidationError) ErrorName

ErrorName returns error name.

func (SetDisplayNameResponseValidationError) Field

Field function returns field value.

func (SetDisplayNameResponseValidationError) Key

Key function returns key value.

func (SetDisplayNameResponseValidationError) Reason

Reason function returns reason value.

type SetDisplayNameResponse_Result

type SetDisplayNameResponse_Result int32
const (
	SetDisplayNameResponse_OK                   SetDisplayNameResponse_Result = 0
	SetDisplayNameResponse_INVALID_DISPLAY_NAME SetDisplayNameResponse_Result = 1
	SetDisplayNameResponse_DENIED               SetDisplayNameResponse_Result = 2
)

func (SetDisplayNameResponse_Result) Descriptor

func (SetDisplayNameResponse_Result) Enum

func (SetDisplayNameResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use SetDisplayNameResponse_Result.Descriptor instead.

func (SetDisplayNameResponse_Result) Number

func (SetDisplayNameResponse_Result) String

func (SetDisplayNameResponse_Result) Type

type SocialProfile

type SocialProfile struct {

	// Types that are assignable to Type:
	//
	//	*SocialProfile_X
	Type isSocialProfile_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*SocialProfile) Descriptor deprecated

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

Deprecated: Use SocialProfile.ProtoReflect.Descriptor instead.

func (*SocialProfile) GetType

func (m *SocialProfile) GetType() isSocialProfile_Type

func (*SocialProfile) GetX

func (x *SocialProfile) GetX() *XProfile

func (*SocialProfile) ProtoMessage

func (*SocialProfile) ProtoMessage()

func (*SocialProfile) ProtoReflect

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

func (*SocialProfile) Reset

func (x *SocialProfile) Reset()

func (*SocialProfile) String

func (x *SocialProfile) String() string

func (*SocialProfile) Validate

func (m *SocialProfile) Validate() error

Validate checks the field values on SocialProfile 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 (*SocialProfile) ValidateAll

func (m *SocialProfile) ValidateAll() error

ValidateAll checks the field values on SocialProfile 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 SocialProfileMultiError, or nil if none found.

type SocialProfileMultiError

type SocialProfileMultiError []error

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

func (SocialProfileMultiError) AllErrors

func (m SocialProfileMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SocialProfileMultiError) Error

func (m SocialProfileMultiError) Error() string

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

type SocialProfileValidationError

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

SocialProfileValidationError is the validation error returned by SocialProfile.Validate if the designated constraints aren't met.

func (SocialProfileValidationError) Cause

Cause function returns cause value.

func (SocialProfileValidationError) Error

Error satisfies the builtin error interface

func (SocialProfileValidationError) ErrorName

func (e SocialProfileValidationError) ErrorName() string

ErrorName returns error name.

func (SocialProfileValidationError) Field

Field function returns field value.

func (SocialProfileValidationError) Key

Key function returns key value.

func (SocialProfileValidationError) Reason

Reason function returns reason value.

type SocialProfile_X

type SocialProfile_X struct {
	X *XProfile `protobuf:"bytes,1,opt,name=x,proto3,oneof"`
}

type UnimplementedProfileServer

type UnimplementedProfileServer struct{}

UnimplementedProfileServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedProfileServer) GetProfile

func (UnimplementedProfileServer) SetDisplayName

func (UnimplementedProfileServer) UnlinkSocialAccount added in v1.2.0

type UnlinkSocialAccountRequest added in v1.2.0

type UnlinkSocialAccountRequest struct {

	// Types that are assignable to SocialIdentifier:
	//
	//	*UnlinkSocialAccountRequest_XUserId
	SocialIdentifier isUnlinkSocialAccountRequest_SocialIdentifier `protobuf_oneof:"social_identifier"`
	Auth             *v1.Auth                                      `protobuf:"bytes,10,opt,name=auth,proto3" json:"auth,omitempty"`
	// contains filtered or unexported fields
}

func (*UnlinkSocialAccountRequest) Descriptor deprecated added in v1.2.0

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

Deprecated: Use UnlinkSocialAccountRequest.ProtoReflect.Descriptor instead.

func (*UnlinkSocialAccountRequest) GetAuth added in v1.2.0

func (x *UnlinkSocialAccountRequest) GetAuth() *v1.Auth

func (*UnlinkSocialAccountRequest) GetSocialIdentifier added in v1.2.0

func (m *UnlinkSocialAccountRequest) GetSocialIdentifier() isUnlinkSocialAccountRequest_SocialIdentifier

func (*UnlinkSocialAccountRequest) GetXUserId added in v1.2.0

func (x *UnlinkSocialAccountRequest) GetXUserId() string

func (*UnlinkSocialAccountRequest) ProtoMessage added in v1.2.0

func (*UnlinkSocialAccountRequest) ProtoMessage()

func (*UnlinkSocialAccountRequest) ProtoReflect added in v1.2.0

func (*UnlinkSocialAccountRequest) Reset added in v1.2.0

func (x *UnlinkSocialAccountRequest) Reset()

func (*UnlinkSocialAccountRequest) String added in v1.2.0

func (x *UnlinkSocialAccountRequest) String() string

func (*UnlinkSocialAccountRequest) Validate added in v1.2.0

func (m *UnlinkSocialAccountRequest) Validate() error

Validate checks the field values on UnlinkSocialAccountRequest 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 (*UnlinkSocialAccountRequest) ValidateAll added in v1.2.0

func (m *UnlinkSocialAccountRequest) ValidateAll() error

ValidateAll checks the field values on UnlinkSocialAccountRequest 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 UnlinkSocialAccountRequestMultiError, or nil if none found.

type UnlinkSocialAccountRequestMultiError added in v1.2.0

type UnlinkSocialAccountRequestMultiError []error

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

func (UnlinkSocialAccountRequestMultiError) AllErrors added in v1.2.0

AllErrors returns a list of validation violation errors.

func (UnlinkSocialAccountRequestMultiError) Error added in v1.2.0

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

type UnlinkSocialAccountRequestValidationError added in v1.2.0

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

UnlinkSocialAccountRequestValidationError is the validation error returned by UnlinkSocialAccountRequest.Validate if the designated constraints aren't met.

func (UnlinkSocialAccountRequestValidationError) Cause added in v1.2.0

Cause function returns cause value.

func (UnlinkSocialAccountRequestValidationError) Error added in v1.2.0

Error satisfies the builtin error interface

func (UnlinkSocialAccountRequestValidationError) ErrorName added in v1.2.0

ErrorName returns error name.

func (UnlinkSocialAccountRequestValidationError) Field added in v1.2.0

Field function returns field value.

func (UnlinkSocialAccountRequestValidationError) Key added in v1.2.0

Key function returns key value.

func (UnlinkSocialAccountRequestValidationError) Reason added in v1.2.0

Reason function returns reason value.

type UnlinkSocialAccountRequest_XUserId added in v1.2.0

type UnlinkSocialAccountRequest_XUserId struct {
	XUserId string `protobuf:"bytes,1,opt,name=x_user_id,json=xUserId,proto3,oneof"`
}

type UnlinkSocialAccountResponse added in v1.2.0

type UnlinkSocialAccountResponse struct {
	Result UnlinkSocialAccountResponse_Result `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UnlinkSocialAccountResponse) Descriptor deprecated added in v1.2.0

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

Deprecated: Use UnlinkSocialAccountResponse.ProtoReflect.Descriptor instead.

func (*UnlinkSocialAccountResponse) GetResult added in v1.2.0

func (*UnlinkSocialAccountResponse) ProtoMessage added in v1.2.0

func (*UnlinkSocialAccountResponse) ProtoMessage()

func (*UnlinkSocialAccountResponse) ProtoReflect added in v1.2.0

func (*UnlinkSocialAccountResponse) Reset added in v1.2.0

func (x *UnlinkSocialAccountResponse) Reset()

func (*UnlinkSocialAccountResponse) String added in v1.2.0

func (x *UnlinkSocialAccountResponse) String() string

func (*UnlinkSocialAccountResponse) Validate added in v1.2.0

func (m *UnlinkSocialAccountResponse) Validate() error

Validate checks the field values on UnlinkSocialAccountResponse 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 (*UnlinkSocialAccountResponse) ValidateAll added in v1.2.0

func (m *UnlinkSocialAccountResponse) ValidateAll() error

ValidateAll checks the field values on UnlinkSocialAccountResponse 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 UnlinkSocialAccountResponseMultiError, or nil if none found.

type UnlinkSocialAccountResponseMultiError added in v1.2.0

type UnlinkSocialAccountResponseMultiError []error

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

func (UnlinkSocialAccountResponseMultiError) AllErrors added in v1.2.0

AllErrors returns a list of validation violation errors.

func (UnlinkSocialAccountResponseMultiError) Error added in v1.2.0

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

type UnlinkSocialAccountResponseValidationError added in v1.2.0

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

UnlinkSocialAccountResponseValidationError is the validation error returned by UnlinkSocialAccountResponse.Validate if the designated constraints aren't met.

func (UnlinkSocialAccountResponseValidationError) Cause added in v1.2.0

Cause function returns cause value.

func (UnlinkSocialAccountResponseValidationError) Error added in v1.2.0

Error satisfies the builtin error interface

func (UnlinkSocialAccountResponseValidationError) ErrorName added in v1.2.0

ErrorName returns error name.

func (UnlinkSocialAccountResponseValidationError) Field added in v1.2.0

Field function returns field value.

func (UnlinkSocialAccountResponseValidationError) Key added in v1.2.0

Key function returns key value.

func (UnlinkSocialAccountResponseValidationError) Reason added in v1.2.0

Reason function returns reason value.

type UnlinkSocialAccountResponse_Result added in v1.2.0

type UnlinkSocialAccountResponse_Result int32
const (
	UnlinkSocialAccountResponse_OK     UnlinkSocialAccountResponse_Result = 0
	UnlinkSocialAccountResponse_DENIED UnlinkSocialAccountResponse_Result = 1
)

func (UnlinkSocialAccountResponse_Result) Descriptor added in v1.2.0

func (UnlinkSocialAccountResponse_Result) Enum added in v1.2.0

func (UnlinkSocialAccountResponse_Result) EnumDescriptor deprecated added in v1.2.0

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

Deprecated: Use UnlinkSocialAccountResponse_Result.Descriptor instead.

func (UnlinkSocialAccountResponse_Result) Number added in v1.2.0

func (UnlinkSocialAccountResponse_Result) String added in v1.2.0

func (UnlinkSocialAccountResponse_Result) Type added in v1.2.0

type UnsafeProfileServer

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

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

type UserProfile

type UserProfile struct {

	// Display name is the display name of the user (if found).
	DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Social profiles are links to external social accounts
	SocialProfiles []*SocialProfile `protobuf:"bytes,2,rep,name=social_profiles,json=socialProfiles,proto3" json:"social_profiles,omitempty"`
	// contains filtered or unexported fields
}

func (*UserProfile) Descriptor deprecated

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

Deprecated: Use UserProfile.ProtoReflect.Descriptor instead.

func (*UserProfile) GetDisplayName

func (x *UserProfile) GetDisplayName() string

func (*UserProfile) GetSocialProfiles

func (x *UserProfile) GetSocialProfiles() []*SocialProfile

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.

type XProfile

type XProfile struct {

	// The user's ID on X
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The user's username on X
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// The user's friendly name on X
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// The user's description on X
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// URL to the user's X profile picture
	ProfilePicUrl string `protobuf:"bytes,5,opt,name=profile_pic_url,json=profilePicUrl,proto3" json:"profile_pic_url,omitempty"`
	// The type of X verification associated with the user
	VerifiedType XProfile_VerifiedType `` /* 145-byte string literal not displayed */
	// The number of followers the user has on X
	FollowerCount uint32 `protobuf:"varint,7,opt,name=follower_count,json=followerCount,proto3" json:"follower_count,omitempty"`
	// contains filtered or unexported fields
}

func (*XProfile) Descriptor deprecated

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

Deprecated: Use XProfile.ProtoReflect.Descriptor instead.

func (*XProfile) GetDescription

func (x *XProfile) GetDescription() string

func (*XProfile) GetFollowerCount

func (x *XProfile) GetFollowerCount() uint32

func (*XProfile) GetId

func (x *XProfile) GetId() string

func (*XProfile) GetName

func (x *XProfile) GetName() string

func (*XProfile) GetProfilePicUrl

func (x *XProfile) GetProfilePicUrl() string

func (*XProfile) GetUsername

func (x *XProfile) GetUsername() string

func (*XProfile) GetVerifiedType

func (x *XProfile) GetVerifiedType() XProfile_VerifiedType

func (*XProfile) ProtoMessage

func (*XProfile) ProtoMessage()

func (*XProfile) ProtoReflect

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

func (*XProfile) Reset

func (x *XProfile) Reset()

func (*XProfile) String

func (x *XProfile) String() string

func (*XProfile) Validate

func (m *XProfile) Validate() error

Validate checks the field values on XProfile 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 (*XProfile) ValidateAll

func (m *XProfile) ValidateAll() error

ValidateAll checks the field values on XProfile 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 XProfileMultiError, or nil if none found.

type XProfileMultiError

type XProfileMultiError []error

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

func (XProfileMultiError) AllErrors

func (m XProfileMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (XProfileMultiError) Error

func (m XProfileMultiError) Error() string

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

type XProfileValidationError

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

XProfileValidationError is the validation error returned by XProfile.Validate if the designated constraints aren't met.

func (XProfileValidationError) Cause

func (e XProfileValidationError) Cause() error

Cause function returns cause value.

func (XProfileValidationError) Error

func (e XProfileValidationError) Error() string

Error satisfies the builtin error interface

func (XProfileValidationError) ErrorName

func (e XProfileValidationError) ErrorName() string

ErrorName returns error name.

func (XProfileValidationError) Field

func (e XProfileValidationError) Field() string

Field function returns field value.

func (XProfileValidationError) Key

func (e XProfileValidationError) Key() bool

Key function returns key value.

func (XProfileValidationError) Reason

func (e XProfileValidationError) Reason() string

Reason function returns reason value.

type XProfile_VerifiedType

type XProfile_VerifiedType int32
const (
	XProfile_NONE       XProfile_VerifiedType = 0
	XProfile_BLUE       XProfile_VerifiedType = 1
	XProfile_BUSINESS   XProfile_VerifiedType = 2
	XProfile_GOVERNMENT XProfile_VerifiedType = 3
)

func (XProfile_VerifiedType) Descriptor

func (XProfile_VerifiedType) Enum

func (XProfile_VerifiedType) EnumDescriptor deprecated

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

Deprecated: Use XProfile_VerifiedType.Descriptor instead.

func (XProfile_VerifiedType) Number

func (XProfile_VerifiedType) String

func (x XProfile_VerifiedType) String() string

func (XProfile_VerifiedType) Type

Jump to

Keyboard shortcuts

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