pb

package
v0.0.0-...-f9312ef Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package pb is a generated protocol buffer package.

It is generated from these files:

contacts1/pkg/pb/service.proto

It has these top-level messages:

VersionResponse
Contact
ReverseRequest
ReverseResponse
CreateContactRequest
CreateContactResponse
ReadContactRequest
ReadContactResponse
UpdateContactRequest
UpdateContactResponse
DeleteContactRequest
DeleteContactResponse

Package pb is a generated protocol buffer package.

It is generated from these files:

contacts1/pkg/pb/service.proto

It has these top-level messages:

VersionResponse
Contact
ReverseRequest
ReverseResponse
CreateContactRequest
CreateContactResponse
ReadContactRequest
ReadContactResponse
UpdateContactRequest
UpdateContactResponse
DeleteContactRequest
DeleteContactResponse

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDeleteContact

func DefaultDeleteContact(ctx context.Context, in *Contact, db *gorm1.DB) error

func DefaultDeleteContactSet

func DefaultDeleteContactSet(ctx context.Context, in []*Contact, db *gorm1.DB) error

func RegisterContacts1Handler

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

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

func RegisterContacts1HandlerClient

func RegisterContacts1HandlerClient(ctx context.Context, mux *runtime.ServeMux, client Contacts1Client) error

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

func RegisterContacts1HandlerFromEndpoint

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

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

func RegisterContacts1Server

func RegisterContacts1Server(s *grpc.Server, srv Contacts1Server)

Types

type Contact

type Contact struct {
	// The id associated to the person
	Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	// The first name of the person.
	FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName" json:"first_name,omitempty"`
	// The middle name of the person.
	MiddleName string `protobuf:"bytes,3,opt,name=middle_name,json=middleName" json:"middle_name,omitempty"`
	// The last name of the person.
	LastName string `protobuf:"bytes,4,opt,name=last_name,json=lastName" json:"last_name,omitempty"`
	// The person's primary email.
	Email string `protobuf:"bytes,5,opt,name=email" json:"email,omitempty"`
	// The home address of the person.
	HomeAddress string `protobuf:"bytes,6,opt,name=home_address,json=homeAddress" json:"home_address,omitempty"`
}

Contact represents a particular person in an contacts list.

func DefaultApplyFieldMaskContact

func DefaultApplyFieldMaskContact(ctx context.Context, patchee *Contact, patcher *Contact, updateMask *field_mask1.FieldMask, prefix string, db *gorm1.DB) (*Contact, error)

DefaultApplyFieldMaskContact patches an pbObject with patcher according to a field mask.

func DefaultCreateContact

func DefaultCreateContact(ctx context.Context, in *Contact, db *gorm1.DB) (*Contact, error)

DefaultCreateContact executes a basic gorm create call

func DefaultListContact

func DefaultListContact(ctx context.Context, db *gorm1.DB) ([]*Contact, error)

DefaultListContact executes a gorm list call

func DefaultPatchContact

func DefaultPatchContact(ctx context.Context, in *Contact, updateMask *field_mask1.FieldMask, db *gorm1.DB) (*Contact, error)

DefaultPatchContact executes a basic gorm update call with patch behavior

func DefaultReadContact

func DefaultReadContact(ctx context.Context, in *Contact, db *gorm1.DB) (*Contact, error)

DefaultReadContact executes a basic gorm read call

func DefaultStrictUpdateContact

func DefaultStrictUpdateContact(ctx context.Context, in *Contact, db *gorm1.DB) (*Contact, error)

DefaultStrictUpdateContact clears first level 1:many children and then executes a gorm update call

func (*Contact) Descriptor

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

func (*Contact) GetEmail

func (m *Contact) GetEmail() string

func (*Contact) GetFirstName

func (m *Contact) GetFirstName() string

func (*Contact) GetHomeAddress

func (m *Contact) GetHomeAddress() string

func (*Contact) GetId

func (m *Contact) GetId() int64

func (*Contact) GetLastName

func (m *Contact) GetLastName() string

func (*Contact) GetMiddleName

func (m *Contact) GetMiddleName() string

func (*Contact) ProtoMessage

func (*Contact) ProtoMessage()

func (*Contact) Reset

func (m *Contact) Reset()

func (*Contact) String

func (m *Contact) String() string

func (*Contact) ToORM

func (m *Contact) ToORM(ctx context.Context) (ContactORM, error)

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

func (*Contact) Validate

func (m *Contact) Validate() error

Validate checks the field values on Contact with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ContactORM

type ContactORM struct {
	Email       string
	FirstName   string
	HomeAddress string
	Id          int64
	LastName    string
	MiddleName  string
}

func (ContactORM) TableName

func (ContactORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*ContactORM) ToPB

func (m *ContactORM) ToPB(ctx context.Context) (Contact, error)

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type ContactORMWithAfterCreate_

type ContactORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm1.DB) error
}

type ContactORMWithAfterDeleteSet

type ContactORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Contact, *gorm1.DB) error
}

type ContactORMWithAfterDelete_

type ContactORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm1.DB) error
}

type ContactORMWithAfterListFind

type ContactORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm1.DB, *[]ContactORM) error
}

type ContactORMWithAfterReadFind

type ContactORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm1.DB) error
}

type ContactORMWithAfterStrictUpdateSave

type ContactORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm1.DB) error
}

type ContactORMWithBeforeCreate_

type ContactORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ContactORMWithBeforeDeleteSet

type ContactORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Contact, *gorm1.DB) (*gorm1.DB, error)
}

type ContactORMWithBeforeDelete_

type ContactORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ContactORMWithBeforeListApplyQuery

type ContactORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ContactORMWithBeforeListFind

type ContactORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ContactORMWithBeforeReadApplyQuery

type ContactORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ContactORMWithBeforeReadFind

type ContactORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ContactORMWithBeforeStrictUpdateCleanup

type ContactORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ContactORMWithBeforeStrictUpdateSave

type ContactORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ContactValidationError

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

ContactValidationError is the validation error returned by Contact.Validate if the designated constraints aren't met.

func (ContactValidationError) Cause

func (e ContactValidationError) Cause() error

Cause function returns cause value.

func (ContactValidationError) Error

func (e ContactValidationError) Error() string

Error satisfies the builtin error interface

func (ContactValidationError) ErrorName

func (e ContactValidationError) ErrorName() string

ErrorName returns error name.

func (ContactValidationError) Field

func (e ContactValidationError) Field() string

Field function returns field value.

func (ContactValidationError) Key

func (e ContactValidationError) Key() bool

Key function returns key value.

func (ContactValidationError) Reason

func (e ContactValidationError) Reason() string

Reason function returns reason value.

type ContactWithAfterPatchSave

type ContactWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Contact, *field_mask1.FieldMask, *gorm1.DB) error
}

type ContactWithAfterToORM

type ContactWithAfterToORM interface {
	AfterToORM(context.Context, *ContactORM) error
}

ContactAfterToORM called after default ToORM code

type ContactWithAfterToPB

type ContactWithAfterToPB interface {
	AfterToPB(context.Context, *Contact) error
}

ContactAfterToPB called after default ToPB code

type ContactWithBeforePatchApplyFieldMask

type ContactWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Contact, *field_mask1.FieldMask, *gorm1.DB) (*gorm1.DB, error)
}

type ContactWithBeforePatchRead

type ContactWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Contact, *field_mask1.FieldMask, *gorm1.DB) (*gorm1.DB, error)
}

type ContactWithBeforePatchSave

type ContactWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Contact, *field_mask1.FieldMask, *gorm1.DB) (*gorm1.DB, error)
}

type ContactWithBeforeToORM

type ContactWithBeforeToORM interface {
	BeforeToORM(context.Context, *ContactORM) error
}

ContactBeforeToORM called before default ToORM code

type ContactWithBeforeToPB

type ContactWithBeforeToPB interface {
	BeforeToPB(context.Context, *Contact) error
}

ContactBeforeToPB called before default ToPB code

type Contacts1Client

type Contacts1Client interface {
	GetVersion(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*VersionResponse, error)
	Reverse(ctx context.Context, in *ReverseRequest, opts ...grpc.CallOption) (*ReverseResponse, error)
	// Use this method to create a contact information.
	Create(ctx context.Context, in *CreateContactRequest, opts ...grpc.CallOption) (*CreateContactResponse, error)
	// Use this method to read a contact information by identifier.
	Read(ctx context.Context, in *ReadContactRequest, opts ...grpc.CallOption) (*ReadContactResponse, error)
	// Use this method to update a contact information.
	Update(ctx context.Context, in *UpdateContactRequest, opts ...grpc.CallOption) (*UpdateContactResponse, error)
	// Use this method to delete a particular contact.
	Delete(ctx context.Context, in *DeleteContactRequest, opts ...grpc.CallOption) (*DeleteContactResponse, error)
}

func NewContacts1Client

func NewContacts1Client(cc *grpc.ClientConn) Contacts1Client

type Contacts1ContactWithAfterCreate

type Contacts1ContactWithAfterCreate interface {
	AfterCreate(context.Context, *CreateContactResponse, *gorm1.DB) error
}

Contacts1ContactWithAfterCreate called before DefaultCreateContact in the default Create handler

type Contacts1ContactWithAfterDelete

type Contacts1ContactWithAfterDelete interface {
	AfterDelete(context.Context, *DeleteContactResponse, *gorm1.DB) error
}

Contacts1ContactWithAfterDelete called before DefaultDeleteContact in the default Delete handler

type Contacts1ContactWithAfterRead

type Contacts1ContactWithAfterRead interface {
	AfterRead(context.Context, *ReadContactResponse, *gorm1.DB) error
}

Contacts1ContactWithAfterRead called before DefaultReadContact in the default Read handler

type Contacts1ContactWithAfterUpdate

type Contacts1ContactWithAfterUpdate interface {
	AfterUpdate(context.Context, *UpdateContactResponse, *gorm1.DB) error
}

Contacts1ContactWithAfterUpdate called before DefaultUpdateContact in the default Update handler

type Contacts1ContactWithBeforeCreate

type Contacts1ContactWithBeforeCreate interface {
	BeforeCreate(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

Contacts1ContactWithBeforeCreate called before DefaultCreateContact in the default Create handler

type Contacts1ContactWithBeforeDelete

type Contacts1ContactWithBeforeDelete interface {
	BeforeDelete(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

Contacts1ContactWithBeforeDelete called before DefaultDeleteContact in the default Delete handler

type Contacts1ContactWithBeforeRead

type Contacts1ContactWithBeforeRead interface {
	BeforeRead(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

Contacts1ContactWithBeforeRead called before DefaultReadContact in the default Read handler

type Contacts1ContactWithBeforeUpdate

type Contacts1ContactWithBeforeUpdate interface {
	BeforeUpdate(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

Contacts1ContactWithBeforeUpdate called before DefaultUpdateContact in the default Update handler

type Contacts1DefaultServer

type Contacts1DefaultServer struct {
	DB *gorm1.DB
}

func (*Contacts1DefaultServer) Create

Create ...

func (*Contacts1DefaultServer) Delete

Delete ...

func (*Contacts1DefaultServer) GetVersion

GetVersion ...

func (*Contacts1DefaultServer) Read

Read ...

func (*Contacts1DefaultServer) Reverse

Reverse ...

func (*Contacts1DefaultServer) Update

Update ...

type Contacts1Server

type Contacts1Server interface {
	GetVersion(context.Context, *google_protobuf.Empty) (*VersionResponse, error)
	Reverse(context.Context, *ReverseRequest) (*ReverseResponse, error)
	// Use this method to create a contact information.
	Create(context.Context, *CreateContactRequest) (*CreateContactResponse, error)
	// Use this method to read a contact information by identifier.
	Read(context.Context, *ReadContactRequest) (*ReadContactResponse, error)
	// Use this method to update a contact information.
	Update(context.Context, *UpdateContactRequest) (*UpdateContactResponse, error)
	// Use this method to delete a particular contact.
	Delete(context.Context, *DeleteContactRequest) (*DeleteContactResponse, error)
}

type CreateContactRequest

type CreateContactRequest struct {
	Payload *Contact `protobuf:"bytes,1,opt,name=payload" json:"payload,omitempty"`
}

func (*CreateContactRequest) Descriptor

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

func (*CreateContactRequest) GetPayload

func (m *CreateContactRequest) GetPayload() *Contact

func (*CreateContactRequest) ProtoMessage

func (*CreateContactRequest) ProtoMessage()

func (*CreateContactRequest) Reset

func (m *CreateContactRequest) Reset()

func (*CreateContactRequest) String

func (m *CreateContactRequest) String() string

func (*CreateContactRequest) Validate

func (m *CreateContactRequest) Validate() error

Validate checks the field values on CreateContactRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CreateContactRequestValidationError

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

CreateContactRequestValidationError is the validation error returned by CreateContactRequest.Validate if the designated constraints aren't met.

func (CreateContactRequestValidationError) Cause

Cause function returns cause value.

func (CreateContactRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateContactRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateContactRequestValidationError) Field

Field function returns field value.

func (CreateContactRequestValidationError) Key

Key function returns key value.

func (CreateContactRequestValidationError) Reason

Reason function returns reason value.

type CreateContactResponse

type CreateContactResponse struct {
	Result *Contact `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
}

func (*CreateContactResponse) Descriptor

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

func (*CreateContactResponse) GetResult

func (m *CreateContactResponse) GetResult() *Contact

func (*CreateContactResponse) ProtoMessage

func (*CreateContactResponse) ProtoMessage()

func (*CreateContactResponse) Reset

func (m *CreateContactResponse) Reset()

func (*CreateContactResponse) String

func (m *CreateContactResponse) String() string

func (*CreateContactResponse) Validate

func (m *CreateContactResponse) Validate() error

Validate checks the field values on CreateContactResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CreateContactResponseValidationError

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

CreateContactResponseValidationError is the validation error returned by CreateContactResponse.Validate if the designated constraints aren't met.

func (CreateContactResponseValidationError) Cause

Cause function returns cause value.

func (CreateContactResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateContactResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateContactResponseValidationError) Field

Field function returns field value.

func (CreateContactResponseValidationError) Key

Key function returns key value.

func (CreateContactResponseValidationError) Reason

Reason function returns reason value.

type DeleteContactRequest

type DeleteContactRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}

func (*DeleteContactRequest) Descriptor

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

func (*DeleteContactRequest) GetId

func (m *DeleteContactRequest) GetId() int64

func (*DeleteContactRequest) ProtoMessage

func (*DeleteContactRequest) ProtoMessage()

func (*DeleteContactRequest) Reset

func (m *DeleteContactRequest) Reset()

func (*DeleteContactRequest) String

func (m *DeleteContactRequest) String() string

func (*DeleteContactRequest) Validate

func (m *DeleteContactRequest) Validate() error

Validate checks the field values on DeleteContactRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type DeleteContactRequestValidationError

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

DeleteContactRequestValidationError is the validation error returned by DeleteContactRequest.Validate if the designated constraints aren't met.

func (DeleteContactRequestValidationError) Cause

Cause function returns cause value.

func (DeleteContactRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteContactRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteContactRequestValidationError) Field

Field function returns field value.

func (DeleteContactRequestValidationError) Key

Key function returns key value.

func (DeleteContactRequestValidationError) Reason

Reason function returns reason value.

type DeleteContactResponse

type DeleteContactResponse struct {
}

func (*DeleteContactResponse) Descriptor

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

func (*DeleteContactResponse) ProtoMessage

func (*DeleteContactResponse) ProtoMessage()

func (*DeleteContactResponse) Reset

func (m *DeleteContactResponse) Reset()

func (*DeleteContactResponse) String

func (m *DeleteContactResponse) String() string

func (*DeleteContactResponse) Validate

func (m *DeleteContactResponse) Validate() error

Validate checks the field values on DeleteContactResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type DeleteContactResponseValidationError

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

DeleteContactResponseValidationError is the validation error returned by DeleteContactResponse.Validate if the designated constraints aren't met.

func (DeleteContactResponseValidationError) Cause

Cause function returns cause value.

func (DeleteContactResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteContactResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteContactResponseValidationError) Field

Field function returns field value.

func (DeleteContactResponseValidationError) Key

Key function returns key value.

func (DeleteContactResponseValidationError) Reason

Reason function returns reason value.

type ReadContactRequest

type ReadContactRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}

func (*ReadContactRequest) Descriptor

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

func (*ReadContactRequest) GetId

func (m *ReadContactRequest) GetId() int64

func (*ReadContactRequest) ProtoMessage

func (*ReadContactRequest) ProtoMessage()

func (*ReadContactRequest) Reset

func (m *ReadContactRequest) Reset()

func (*ReadContactRequest) String

func (m *ReadContactRequest) String() string

func (*ReadContactRequest) Validate

func (m *ReadContactRequest) Validate() error

Validate checks the field values on ReadContactRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ReadContactRequestValidationError

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

ReadContactRequestValidationError is the validation error returned by ReadContactRequest.Validate if the designated constraints aren't met.

func (ReadContactRequestValidationError) Cause

Cause function returns cause value.

func (ReadContactRequestValidationError) Error

Error satisfies the builtin error interface

func (ReadContactRequestValidationError) ErrorName

ErrorName returns error name.

func (ReadContactRequestValidationError) Field

Field function returns field value.

func (ReadContactRequestValidationError) Key

Key function returns key value.

func (ReadContactRequestValidationError) Reason

Reason function returns reason value.

type ReadContactResponse

type ReadContactResponse struct {
	Result *Contact `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
}

func (*ReadContactResponse) Descriptor

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

func (*ReadContactResponse) GetResult

func (m *ReadContactResponse) GetResult() *Contact

func (*ReadContactResponse) ProtoMessage

func (*ReadContactResponse) ProtoMessage()

func (*ReadContactResponse) Reset

func (m *ReadContactResponse) Reset()

func (*ReadContactResponse) String

func (m *ReadContactResponse) String() string

func (*ReadContactResponse) Validate

func (m *ReadContactResponse) Validate() error

Validate checks the field values on ReadContactResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ReadContactResponseValidationError

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

ReadContactResponseValidationError is the validation error returned by ReadContactResponse.Validate if the designated constraints aren't met.

func (ReadContactResponseValidationError) Cause

Cause function returns cause value.

func (ReadContactResponseValidationError) Error

Error satisfies the builtin error interface

func (ReadContactResponseValidationError) ErrorName

ErrorName returns error name.

func (ReadContactResponseValidationError) Field

Field function returns field value.

func (ReadContactResponseValidationError) Key

Key function returns key value.

func (ReadContactResponseValidationError) Reason

Reason function returns reason value.

type ReverseRequest

type ReverseRequest struct {
	Payload *Contact `protobuf:"bytes,1,opt,name=payload" json:"payload,omitempty"`
}

func (*ReverseRequest) Descriptor

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

func (*ReverseRequest) GetPayload

func (m *ReverseRequest) GetPayload() *Contact

func (*ReverseRequest) ProtoMessage

func (*ReverseRequest) ProtoMessage()

func (*ReverseRequest) Reset

func (m *ReverseRequest) Reset()

func (*ReverseRequest) String

func (m *ReverseRequest) String() string

func (*ReverseRequest) Validate

func (m *ReverseRequest) Validate() error

Validate checks the field values on ReverseRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ReverseRequestValidationError

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

ReverseRequestValidationError is the validation error returned by ReverseRequest.Validate if the designated constraints aren't met.

func (ReverseRequestValidationError) Cause

Cause function returns cause value.

func (ReverseRequestValidationError) Error

Error satisfies the builtin error interface

func (ReverseRequestValidationError) ErrorName

func (e ReverseRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ReverseRequestValidationError) Field

Field function returns field value.

func (ReverseRequestValidationError) Key

Key function returns key value.

func (ReverseRequestValidationError) Reason

Reason function returns reason value.

type ReverseResponse

type ReverseResponse struct {
	Result string `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
}

func (*ReverseResponse) Descriptor

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

func (*ReverseResponse) GetResult

func (m *ReverseResponse) GetResult() string

func (*ReverseResponse) ProtoMessage

func (*ReverseResponse) ProtoMessage()

func (*ReverseResponse) Reset

func (m *ReverseResponse) Reset()

func (*ReverseResponse) String

func (m *ReverseResponse) String() string

func (*ReverseResponse) Validate

func (m *ReverseResponse) Validate() error

Validate checks the field values on ReverseResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ReverseResponseValidationError

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

ReverseResponseValidationError is the validation error returned by ReverseResponse.Validate if the designated constraints aren't met.

func (ReverseResponseValidationError) Cause

Cause function returns cause value.

func (ReverseResponseValidationError) Error

Error satisfies the builtin error interface

func (ReverseResponseValidationError) ErrorName

func (e ReverseResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ReverseResponseValidationError) Field

Field function returns field value.

func (ReverseResponseValidationError) Key

Key function returns key value.

func (ReverseResponseValidationError) Reason

Reason function returns reason value.

type UpdateContactRequest

type UpdateContactRequest struct {
	Payload *Contact `protobuf:"bytes,1,opt,name=payload" json:"payload,omitempty"`
}

func (*UpdateContactRequest) Descriptor

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

func (*UpdateContactRequest) GetPayload

func (m *UpdateContactRequest) GetPayload() *Contact

func (*UpdateContactRequest) ProtoMessage

func (*UpdateContactRequest) ProtoMessage()

func (*UpdateContactRequest) Reset

func (m *UpdateContactRequest) Reset()

func (*UpdateContactRequest) String

func (m *UpdateContactRequest) String() string

func (*UpdateContactRequest) Validate

func (m *UpdateContactRequest) Validate() error

Validate checks the field values on UpdateContactRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UpdateContactRequestValidationError

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

UpdateContactRequestValidationError is the validation error returned by UpdateContactRequest.Validate if the designated constraints aren't met.

func (UpdateContactRequestValidationError) Cause

Cause function returns cause value.

func (UpdateContactRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateContactRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateContactRequestValidationError) Field

Field function returns field value.

func (UpdateContactRequestValidationError) Key

Key function returns key value.

func (UpdateContactRequestValidationError) Reason

Reason function returns reason value.

type UpdateContactResponse

type UpdateContactResponse struct {
	Result *Contact `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
}

func (*UpdateContactResponse) Descriptor

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

func (*UpdateContactResponse) GetResult

func (m *UpdateContactResponse) GetResult() *Contact

func (*UpdateContactResponse) ProtoMessage

func (*UpdateContactResponse) ProtoMessage()

func (*UpdateContactResponse) Reset

func (m *UpdateContactResponse) Reset()

func (*UpdateContactResponse) String

func (m *UpdateContactResponse) String() string

func (*UpdateContactResponse) Validate

func (m *UpdateContactResponse) Validate() error

Validate checks the field values on UpdateContactResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UpdateContactResponseValidationError

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

UpdateContactResponseValidationError is the validation error returned by UpdateContactResponse.Validate if the designated constraints aren't met.

func (UpdateContactResponseValidationError) Cause

Cause function returns cause value.

func (UpdateContactResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateContactResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateContactResponseValidationError) Field

Field function returns field value.

func (UpdateContactResponseValidationError) Key

Key function returns key value.

func (UpdateContactResponseValidationError) Reason

Reason function returns reason value.

type VersionResponse

type VersionResponse struct {
	Version string `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
}

TODO: Structure your own protobuf messages. Each protocol buffer message is a small logical record of information, containing a series of name-value pairs.

func (*VersionResponse) Descriptor

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

func (*VersionResponse) GetVersion

func (m *VersionResponse) GetVersion() string

func (*VersionResponse) ProtoMessage

func (*VersionResponse) ProtoMessage()

func (*VersionResponse) Reset

func (m *VersionResponse) Reset()

func (*VersionResponse) String

func (m *VersionResponse) String() string

func (*VersionResponse) Validate

func (m *VersionResponse) Validate() error

Validate checks the field values on VersionResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type VersionResponseValidationError

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

VersionResponseValidationError is the validation error returned by VersionResponse.Validate if the designated constraints aren't met.

func (VersionResponseValidationError) Cause

Cause function returns cause value.

func (VersionResponseValidationError) Error

Error satisfies the builtin error interface

func (VersionResponseValidationError) ErrorName

func (e VersionResponseValidationError) ErrorName() string

ErrorName returns error name.

func (VersionResponseValidationError) Field

Field function returns field value.

func (VersionResponseValidationError) Key

Key function returns key value.

func (VersionResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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