v1

package
v0.0.0-...-0944201 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_pbs_profile_v1_profile_proto protoreflect.FileDescriptor
View Source
var ProfileService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pkg.pbs.profile.v1.ProfileService",
	HandlerType: (*ProfileServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ReadProfile",
			Handler:    _ProfileService_ReadProfile_Handler,
		},
		{
			MethodName: "UpdateProfile",
			Handler:    _ProfileService_UpdateProfile_Handler,
		},
		{
			MethodName: "CreateProfile",
			Handler:    _ProfileService_CreateProfile_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/pbs/profile/v1/profile.proto",
}

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

Functions

func RegisterProfileServiceHandler

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

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

func RegisterProfileServiceHandlerClient

func RegisterProfileServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProfileServiceClient) error

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

func RegisterProfileServiceHandlerFromEndpoint

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

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

func RegisterProfileServiceHandlerServer

func RegisterProfileServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProfileServiceServer) error

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

func RegisterProfileServiceServer

func RegisterProfileServiceServer(s grpc.ServiceRegistrar, srv ProfileServiceServer)

Types

type CreateProfileRequest

type CreateProfileRequest struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Email       string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Name        string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	LegalName   string `protobuf:"bytes,4,opt,name=legal_name,json=legalName,proto3" json:"legal_name,omitempty"`
	UserName    string `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	Address     string `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"`
	DateOfBirth string `protobuf:"bytes,8,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateProfileRequest) Descriptor deprecated

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

Deprecated: Use CreateProfileRequest.ProtoReflect.Descriptor instead.

func (*CreateProfileRequest) GetAddress

func (x *CreateProfileRequest) GetAddress() string

func (*CreateProfileRequest) GetDateOfBirth

func (x *CreateProfileRequest) GetDateOfBirth() string

func (*CreateProfileRequest) GetEmail

func (x *CreateProfileRequest) GetEmail() string

func (*CreateProfileRequest) GetId

func (x *CreateProfileRequest) GetId() string

func (*CreateProfileRequest) GetLegalName

func (x *CreateProfileRequest) GetLegalName() string

func (*CreateProfileRequest) GetName

func (x *CreateProfileRequest) GetName() string

func (*CreateProfileRequest) GetUserName

func (x *CreateProfileRequest) GetUserName() string

func (*CreateProfileRequest) ProtoMessage

func (*CreateProfileRequest) ProtoMessage()

func (*CreateProfileRequest) ProtoReflect

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

func (*CreateProfileRequest) Reset

func (x *CreateProfileRequest) Reset()

func (*CreateProfileRequest) String

func (x *CreateProfileRequest) String() string

func (*CreateProfileRequest) Validate

func (m *CreateProfileRequest) Validate() error

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

func (m *CreateProfileRequest) ValidateAll() error

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

type CreateProfileRequestMultiError

type CreateProfileRequestMultiError []error

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

func (CreateProfileRequestMultiError) AllErrors

func (m CreateProfileRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateProfileRequestMultiError) Error

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

type CreateProfileRequestValidationError

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

CreateProfileRequestValidationError is the validation error returned by CreateProfileRequest.Validate if the designated constraints aren't met.

func (CreateProfileRequestValidationError) Cause

Cause function returns cause value.

func (CreateProfileRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateProfileRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateProfileRequestValidationError) Field

Field function returns field value.

func (CreateProfileRequestValidationError) Key

Key function returns key value.

func (CreateProfileRequestValidationError) Reason

Reason function returns reason value.

type CreateProfileResponse

type CreateProfileResponse struct {
	UserId      string                 `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Email       string                 `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Name        string                 `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	LegalName   string                 `protobuf:"bytes,4,opt,name=legal_name,json=legalName,proto3" json:"legal_name,omitempty"`
	UserName    string                 `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	Roles       []string               `protobuf:"bytes,6,rep,name=roles,proto3" json:"roles,omitempty"`
	Address     string                 `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"`
	DateOfBirth string                 `protobuf:"bytes,8,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"`
	CreatedAt   *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateProfileResponse) Descriptor deprecated

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

Deprecated: Use CreateProfileResponse.ProtoReflect.Descriptor instead.

func (*CreateProfileResponse) GetAddress

func (x *CreateProfileResponse) GetAddress() string

func (*CreateProfileResponse) GetCreatedAt

func (x *CreateProfileResponse) GetCreatedAt() *timestamppb.Timestamp

func (*CreateProfileResponse) GetDateOfBirth

func (x *CreateProfileResponse) GetDateOfBirth() string

func (*CreateProfileResponse) GetEmail

func (x *CreateProfileResponse) GetEmail() string

func (*CreateProfileResponse) GetLegalName

func (x *CreateProfileResponse) GetLegalName() string

func (*CreateProfileResponse) GetName

func (x *CreateProfileResponse) GetName() string

func (*CreateProfileResponse) GetRoles

func (x *CreateProfileResponse) GetRoles() []string

func (*CreateProfileResponse) GetUpdatedAt

func (x *CreateProfileResponse) GetUpdatedAt() *timestamppb.Timestamp

func (*CreateProfileResponse) GetUserId

func (x *CreateProfileResponse) GetUserId() string

func (*CreateProfileResponse) GetUserName

func (x *CreateProfileResponse) GetUserName() string

func (*CreateProfileResponse) ProtoMessage

func (*CreateProfileResponse) ProtoMessage()

func (*CreateProfileResponse) ProtoReflect

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

func (*CreateProfileResponse) Reset

func (x *CreateProfileResponse) Reset()

func (*CreateProfileResponse) String

func (x *CreateProfileResponse) String() string

func (*CreateProfileResponse) Validate

func (m *CreateProfileResponse) Validate() error

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

func (m *CreateProfileResponse) ValidateAll() error

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

type CreateProfileResponseMultiError

type CreateProfileResponseMultiError []error

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

func (CreateProfileResponseMultiError) AllErrors

func (m CreateProfileResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateProfileResponseMultiError) Error

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

type CreateProfileResponseValidationError

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

CreateProfileResponseValidationError is the validation error returned by CreateProfileResponse.Validate if the designated constraints aren't met.

func (CreateProfileResponseValidationError) Cause

Cause function returns cause value.

func (CreateProfileResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateProfileResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateProfileResponseValidationError) Field

Field function returns field value.

func (CreateProfileResponseValidationError) Key

Key function returns key value.

func (CreateProfileResponseValidationError) Reason

Reason function returns reason value.

type ProfileServiceClient

type ProfileServiceClient interface {
	ReadProfile(ctx context.Context, in *ReadProfileRequest, opts ...grpc.CallOption) (*ReadProfileResponse, error)
	UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*UpdateProfileResponse, error)
	CreateProfile(ctx context.Context, in *CreateProfileRequest, opts ...grpc.CallOption) (*CreateProfileResponse, error)
}

ProfileServiceClient is the client API for ProfileService service.

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

type ProfileServiceServer

type ProfileServiceServer interface {
	ReadProfile(context.Context, *ReadProfileRequest) (*ReadProfileResponse, error)
	UpdateProfile(context.Context, *UpdateProfileRequest) (*UpdateProfileResponse, error)
	CreateProfile(context.Context, *CreateProfileRequest) (*CreateProfileResponse, error)
	// contains filtered or unexported methods
}

ProfileServiceServer is the server API for ProfileService service. All implementations must embed UnimplementedProfileServiceServer for forward compatibility

type ReadProfileRequest

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

func (*ReadProfileRequest) Descriptor deprecated

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

Deprecated: Use ReadProfileRequest.ProtoReflect.Descriptor instead.

func (*ReadProfileRequest) GetId

func (x *ReadProfileRequest) GetId() string

func (*ReadProfileRequest) ProtoMessage

func (*ReadProfileRequest) ProtoMessage()

func (*ReadProfileRequest) ProtoReflect

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

func (*ReadProfileRequest) Reset

func (x *ReadProfileRequest) Reset()

func (*ReadProfileRequest) String

func (x *ReadProfileRequest) String() string

func (*ReadProfileRequest) Validate

func (m *ReadProfileRequest) Validate() error

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

func (m *ReadProfileRequest) ValidateAll() error

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

type ReadProfileRequestMultiError

type ReadProfileRequestMultiError []error

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

func (ReadProfileRequestMultiError) AllErrors

func (m ReadProfileRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ReadProfileRequestMultiError) Error

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

type ReadProfileRequestValidationError

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

ReadProfileRequestValidationError is the validation error returned by ReadProfileRequest.Validate if the designated constraints aren't met.

func (ReadProfileRequestValidationError) Cause

Cause function returns cause value.

func (ReadProfileRequestValidationError) Error

Error satisfies the builtin error interface

func (ReadProfileRequestValidationError) ErrorName

ErrorName returns error name.

func (ReadProfileRequestValidationError) Field

Field function returns field value.

func (ReadProfileRequestValidationError) Key

Key function returns key value.

func (ReadProfileRequestValidationError) Reason

Reason function returns reason value.

type ReadProfileResponse

type ReadProfileResponse struct {
	UserId      string                 `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Email       string                 `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Name        string                 `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	LegalName   string                 `protobuf:"bytes,4,opt,name=legal_name,json=legalName,proto3" json:"legal_name,omitempty"`
	UserName    string                 `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	Roles       []string               `protobuf:"bytes,6,rep,name=roles,proto3" json:"roles,omitempty"`
	Address     string                 `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"`
	DateOfBirth string                 `protobuf:"bytes,8,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"`
	CreatedAt   *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadProfileResponse) Descriptor deprecated

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

Deprecated: Use ReadProfileResponse.ProtoReflect.Descriptor instead.

func (*ReadProfileResponse) GetAddress

func (x *ReadProfileResponse) GetAddress() string

func (*ReadProfileResponse) GetCreatedAt

func (x *ReadProfileResponse) GetCreatedAt() *timestamppb.Timestamp

func (*ReadProfileResponse) GetDateOfBirth

func (x *ReadProfileResponse) GetDateOfBirth() string

func (*ReadProfileResponse) GetEmail

func (x *ReadProfileResponse) GetEmail() string

func (*ReadProfileResponse) GetLegalName

func (x *ReadProfileResponse) GetLegalName() string

func (*ReadProfileResponse) GetName

func (x *ReadProfileResponse) GetName() string

func (*ReadProfileResponse) GetRoles

func (x *ReadProfileResponse) GetRoles() []string

func (*ReadProfileResponse) GetUpdatedAt

func (x *ReadProfileResponse) GetUpdatedAt() *timestamppb.Timestamp

func (*ReadProfileResponse) GetUserId

func (x *ReadProfileResponse) GetUserId() string

func (*ReadProfileResponse) GetUserName

func (x *ReadProfileResponse) GetUserName() string

func (*ReadProfileResponse) ProtoMessage

func (*ReadProfileResponse) ProtoMessage()

func (*ReadProfileResponse) ProtoReflect

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

func (*ReadProfileResponse) Reset

func (x *ReadProfileResponse) Reset()

func (*ReadProfileResponse) String

func (x *ReadProfileResponse) String() string

func (*ReadProfileResponse) Validate

func (m *ReadProfileResponse) Validate() error

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

func (m *ReadProfileResponse) ValidateAll() error

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

type ReadProfileResponseMultiError

type ReadProfileResponseMultiError []error

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

func (ReadProfileResponseMultiError) AllErrors

func (m ReadProfileResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ReadProfileResponseMultiError) Error

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

type ReadProfileResponseValidationError

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

ReadProfileResponseValidationError is the validation error returned by ReadProfileResponse.Validate if the designated constraints aren't met.

func (ReadProfileResponseValidationError) Cause

Cause function returns cause value.

func (ReadProfileResponseValidationError) Error

Error satisfies the builtin error interface

func (ReadProfileResponseValidationError) ErrorName

ErrorName returns error name.

func (ReadProfileResponseValidationError) Field

Field function returns field value.

func (ReadProfileResponseValidationError) Key

Key function returns key value.

func (ReadProfileResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedProfileServiceServer

type UnimplementedProfileServiceServer struct {
}

UnimplementedProfileServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedProfileServiceServer) CreateProfile

func (UnimplementedProfileServiceServer) ReadProfile

func (UnimplementedProfileServiceServer) UpdateProfile

type UnsafeProfileServiceServer

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

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

type UpdateProfileRequest

type UpdateProfileRequest struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Email       string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Name        string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	LegalName   string `protobuf:"bytes,4,opt,name=legal_name,json=legalName,proto3" json:"legal_name,omitempty"`
	UserName    string `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	Address     string `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"`
	DateOfBirth string `protobuf:"bytes,8,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateProfileRequest) Descriptor deprecated

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

Deprecated: Use UpdateProfileRequest.ProtoReflect.Descriptor instead.

func (*UpdateProfileRequest) GetAddress

func (x *UpdateProfileRequest) GetAddress() string

func (*UpdateProfileRequest) GetDateOfBirth

func (x *UpdateProfileRequest) GetDateOfBirth() string

func (*UpdateProfileRequest) GetEmail

func (x *UpdateProfileRequest) GetEmail() string

func (*UpdateProfileRequest) GetId

func (x *UpdateProfileRequest) GetId() string

func (*UpdateProfileRequest) GetLegalName

func (x *UpdateProfileRequest) GetLegalName() string

func (*UpdateProfileRequest) GetName

func (x *UpdateProfileRequest) GetName() string

func (*UpdateProfileRequest) GetUserName

func (x *UpdateProfileRequest) GetUserName() string

func (*UpdateProfileRequest) ProtoMessage

func (*UpdateProfileRequest) ProtoMessage()

func (*UpdateProfileRequest) ProtoReflect

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

func (*UpdateProfileRequest) Reset

func (x *UpdateProfileRequest) Reset()

func (*UpdateProfileRequest) String

func (x *UpdateProfileRequest) String() string

func (*UpdateProfileRequest) Validate

func (m *UpdateProfileRequest) Validate() error

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

func (m *UpdateProfileRequest) ValidateAll() error

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

type UpdateProfileRequestMultiError

type UpdateProfileRequestMultiError []error

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

func (UpdateProfileRequestMultiError) AllErrors

func (m UpdateProfileRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateProfileRequestMultiError) Error

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

type UpdateProfileRequestValidationError

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

UpdateProfileRequestValidationError is the validation error returned by UpdateProfileRequest.Validate if the designated constraints aren't met.

func (UpdateProfileRequestValidationError) Cause

Cause function returns cause value.

func (UpdateProfileRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateProfileRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateProfileRequestValidationError) Field

Field function returns field value.

func (UpdateProfileRequestValidationError) Key

Key function returns key value.

func (UpdateProfileRequestValidationError) Reason

Reason function returns reason value.

type UpdateProfileResponse

type UpdateProfileResponse struct {
	UserId      string                 `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Email       string                 `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Name        string                 `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	LegalName   string                 `protobuf:"bytes,4,opt,name=legal_name,json=legalName,proto3" json:"legal_name,omitempty"`
	UserName    string                 `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	Roles       []string               `protobuf:"bytes,6,rep,name=roles,proto3" json:"roles,omitempty"`
	Address     string                 `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"`
	DateOfBirth string                 `protobuf:"bytes,8,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"`
	CreatedAt   *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateProfileResponse) Descriptor deprecated

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

Deprecated: Use UpdateProfileResponse.ProtoReflect.Descriptor instead.

func (*UpdateProfileResponse) GetAddress

func (x *UpdateProfileResponse) GetAddress() string

func (*UpdateProfileResponse) GetCreatedAt

func (x *UpdateProfileResponse) GetCreatedAt() *timestamppb.Timestamp

func (*UpdateProfileResponse) GetDateOfBirth

func (x *UpdateProfileResponse) GetDateOfBirth() string

func (*UpdateProfileResponse) GetEmail

func (x *UpdateProfileResponse) GetEmail() string

func (*UpdateProfileResponse) GetLegalName

func (x *UpdateProfileResponse) GetLegalName() string

func (*UpdateProfileResponse) GetName

func (x *UpdateProfileResponse) GetName() string

func (*UpdateProfileResponse) GetRoles

func (x *UpdateProfileResponse) GetRoles() []string

func (*UpdateProfileResponse) GetUpdatedAt

func (x *UpdateProfileResponse) GetUpdatedAt() *timestamppb.Timestamp

func (*UpdateProfileResponse) GetUserId

func (x *UpdateProfileResponse) GetUserId() string

func (*UpdateProfileResponse) GetUserName

func (x *UpdateProfileResponse) GetUserName() string

func (*UpdateProfileResponse) ProtoMessage

func (*UpdateProfileResponse) ProtoMessage()

func (*UpdateProfileResponse) ProtoReflect

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

func (*UpdateProfileResponse) Reset

func (x *UpdateProfileResponse) Reset()

func (*UpdateProfileResponse) String

func (x *UpdateProfileResponse) String() string

func (*UpdateProfileResponse) Validate

func (m *UpdateProfileResponse) Validate() error

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

func (m *UpdateProfileResponse) ValidateAll() error

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

type UpdateProfileResponseMultiError

type UpdateProfileResponseMultiError []error

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

func (UpdateProfileResponseMultiError) AllErrors

func (m UpdateProfileResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateProfileResponseMultiError) Error

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

type UpdateProfileResponseValidationError

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

UpdateProfileResponseValidationError is the validation error returned by UpdateProfileResponse.Validate if the designated constraints aren't met.

func (UpdateProfileResponseValidationError) Cause

Cause function returns cause value.

func (UpdateProfileResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateProfileResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateProfileResponseValidationError) Field

Field function returns field value.

func (UpdateProfileResponseValidationError) Key

Key function returns key value.

func (UpdateProfileResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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