typespb

package
v0.0.0-...-692e367 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_lastbackend_toolkit_examples_service_apis_ptypes_messages_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type HelloWorldRequest

type HelloWorldRequest struct {
	Name string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type string            `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Data map[string]string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*HelloWorldRequest) Descriptor deprecated

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

Deprecated: Use HelloWorldRequest.ProtoReflect.Descriptor instead.

func (*HelloWorldRequest) GetData

func (x *HelloWorldRequest) GetData() map[string]string

func (*HelloWorldRequest) GetName

func (x *HelloWorldRequest) GetName() string

func (*HelloWorldRequest) GetType

func (x *HelloWorldRequest) GetType() string

func (*HelloWorldRequest) ProtoMessage

func (*HelloWorldRequest) ProtoMessage()

func (*HelloWorldRequest) ProtoReflect

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

func (*HelloWorldRequest) Reset

func (x *HelloWorldRequest) Reset()

func (*HelloWorldRequest) String

func (x *HelloWorldRequest) String() string

func (*HelloWorldRequest) Validate

func (m *HelloWorldRequest) Validate() error

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

func (m *HelloWorldRequest) ValidateAll() error

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

type HelloWorldRequestMultiError

type HelloWorldRequestMultiError []error

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

func (HelloWorldRequestMultiError) AllErrors

func (m HelloWorldRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HelloWorldRequestMultiError) Error

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

type HelloWorldRequestValidationError

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

HelloWorldRequestValidationError is the validation error returned by HelloWorldRequest.Validate if the designated constraints aren't met.

func (HelloWorldRequestValidationError) Cause

Cause function returns cause value.

func (HelloWorldRequestValidationError) Error

Error satisfies the builtin error interface

func (HelloWorldRequestValidationError) ErrorName

ErrorName returns error name.

func (HelloWorldRequestValidationError) Field

Field function returns field value.

func (HelloWorldRequestValidationError) Key

Key function returns key value.

func (HelloWorldRequestValidationError) Reason

Reason function returns reason value.

type HelloWorldResponse

type HelloWorldResponse struct {
	Id        string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string            `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Type      string            `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	Data      map[string]string `` /* 149-byte string literal not displayed */
	CreatedAt int64             `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt int64             `protobuf:"varint,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*HelloWorldResponse) Descriptor deprecated

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

Deprecated: Use HelloWorldResponse.ProtoReflect.Descriptor instead.

func (*HelloWorldResponse) GetCreatedAt

func (x *HelloWorldResponse) GetCreatedAt() int64

func (*HelloWorldResponse) GetData

func (x *HelloWorldResponse) GetData() map[string]string

func (*HelloWorldResponse) GetId

func (x *HelloWorldResponse) GetId() string

func (*HelloWorldResponse) GetName

func (x *HelloWorldResponse) GetName() string

func (*HelloWorldResponse) GetType

func (x *HelloWorldResponse) GetType() string

func (*HelloWorldResponse) GetUpdatedAt

func (x *HelloWorldResponse) GetUpdatedAt() int64

func (*HelloWorldResponse) ProtoMessage

func (*HelloWorldResponse) ProtoMessage()

func (*HelloWorldResponse) ProtoReflect

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

func (*HelloWorldResponse) Reset

func (x *HelloWorldResponse) Reset()

func (*HelloWorldResponse) String

func (x *HelloWorldResponse) String() string

func (*HelloWorldResponse) Validate

func (m *HelloWorldResponse) Validate() error

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

func (m *HelloWorldResponse) ValidateAll() error

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

type HelloWorldResponseMultiError

type HelloWorldResponseMultiError []error

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

func (HelloWorldResponseMultiError) AllErrors

func (m HelloWorldResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HelloWorldResponseMultiError) Error

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

type HelloWorldResponseValidationError

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

HelloWorldResponseValidationError is the validation error returned by HelloWorldResponse.Validate if the designated constraints aren't met.

func (HelloWorldResponseValidationError) Cause

Cause function returns cause value.

func (HelloWorldResponseValidationError) Error

Error satisfies the builtin error interface

func (HelloWorldResponseValidationError) ErrorName

ErrorName returns error name.

func (HelloWorldResponseValidationError) Field

Field function returns field value.

func (HelloWorldResponseValidationError) Key

Key function returns key value.

func (HelloWorldResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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