v1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_examples_echo_v1_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type SpeakRequest

type SpeakRequest struct {
	Input string `protobuf:"bytes,1,opt,name=input,proto3" json:"input" bun:"input" csv:"input" pg:"input" yaml:"input"`
	// contains filtered or unexported fields
}

func (*SpeakRequest) Descriptor deprecated

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

Deprecated: Use SpeakRequest.ProtoReflect.Descriptor instead.

func (*SpeakRequest) GetInput

func (x *SpeakRequest) GetInput() string

func (*SpeakRequest) ProtoMessage

func (*SpeakRequest) ProtoMessage()

func (*SpeakRequest) ProtoReflect

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

func (*SpeakRequest) Reset

func (x *SpeakRequest) Reset()

func (*SpeakRequest) String

func (x *SpeakRequest) String() string

func (*SpeakRequest) Validate

func (m *SpeakRequest) Validate() error

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

func (m *SpeakRequest) ValidateAll() error

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

type SpeakRequestMultiError

type SpeakRequestMultiError []error

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

func (SpeakRequestMultiError) AllErrors

func (m SpeakRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SpeakRequestMultiError) Error

func (m SpeakRequestMultiError) Error() string

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

type SpeakRequestValidationError

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

SpeakRequestValidationError is the validation error returned by SpeakRequest.Validate if the designated constraints aren't met.

func (SpeakRequestValidationError) Cause

Cause function returns cause value.

func (SpeakRequestValidationError) Error

Error satisfies the builtin error interface

func (SpeakRequestValidationError) ErrorName

func (e SpeakRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SpeakRequestValidationError) Field

Field function returns field value.

func (SpeakRequestValidationError) Key

Key function returns key value.

func (SpeakRequestValidationError) Reason

Reason function returns reason value.

type SpeakResponse

type SpeakResponse struct {
	Output string `protobuf:"bytes,2,opt,name=output,proto3" json:"output" bun:"output" csv:"output" pg:"output" yaml:"output"`
	// contains filtered or unexported fields
}

func (*SpeakResponse) Descriptor deprecated

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

Deprecated: Use SpeakResponse.ProtoReflect.Descriptor instead.

func (*SpeakResponse) GetOutput

func (x *SpeakResponse) GetOutput() string

func (*SpeakResponse) ProtoMessage

func (*SpeakResponse) ProtoMessage()

func (*SpeakResponse) ProtoReflect

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

func (*SpeakResponse) Reset

func (x *SpeakResponse) Reset()

func (*SpeakResponse) String

func (x *SpeakResponse) String() string

func (*SpeakResponse) Validate

func (m *SpeakResponse) Validate() error

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

func (m *SpeakResponse) ValidateAll() error

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

type SpeakResponseMultiError

type SpeakResponseMultiError []error

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

func (SpeakResponseMultiError) AllErrors

func (m SpeakResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SpeakResponseMultiError) Error

func (m SpeakResponseMultiError) Error() string

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

type SpeakResponseValidationError

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

SpeakResponseValidationError is the validation error returned by SpeakResponse.Validate if the designated constraints aren't met.

func (SpeakResponseValidationError) Cause

Cause function returns cause value.

func (SpeakResponseValidationError) Error

Error satisfies the builtin error interface

func (SpeakResponseValidationError) ErrorName

func (e SpeakResponseValidationError) ErrorName() string

ErrorName returns error name.

func (SpeakResponseValidationError) Field

Field function returns field value.

func (SpeakResponseValidationError) Key

Key function returns key value.

func (SpeakResponseValidationError) Reason

Reason function returns reason value.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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