Documentation ¶
Index ¶
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetRawValue() []byte
- func (m *Message) GetTypeName() string
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- func (m *Message) Validate() error
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type MessageValidationError
- type Wrapper
- func (*Wrapper) Descriptor() ([]byte, []int)
- func (m *Wrapper) GetMessage() *Message
- func (m *Wrapper) GetSubmissionTime() *timestamp.Timestamp
- func (*Wrapper) ProtoMessage()
- func (m *Wrapper) Reset()
- func (m *Wrapper) String() string
- func (m *Wrapper) Validate() error
- func (m *Wrapper) XXX_DiscardUnknown()
- func (m *Wrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Wrapper) XXX_Merge(src proto.Message)
- func (m *Wrapper) XXX_Size() int
- func (m *Wrapper) XXX_Unmarshal(b []byte) error
- type WrapperValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { // The canonical protobuf message type name; used for validating the type of the payload. // // For example: internal.task.v1.Message. TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` // The protobuf message bytes. // // Note: we allow 0 byte length for messages with only default field values. RawValue []byte `protobuf:"bytes,2,opt,name=raw_value,json=rawValue,proto3" json:"raw_value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Message is the task message payload.
func (*Message) Descriptor ¶
func (*Message) GetRawValue ¶
func (*Message) GetTypeName ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) Validate ¶
Validate checks the field values on Message with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
type MessageValidationError ¶
type MessageValidationError struct {
// contains filtered or unexported fields
}
MessageValidationError is the validation error returned by Message.Validate if the designated constraints aren't met.
func (MessageValidationError) Cause ¶
func (e MessageValidationError) Cause() error
Cause function returns cause value.
func (MessageValidationError) Error ¶
func (e MessageValidationError) Error() string
Error satisfies the builtin error interface
func (MessageValidationError) ErrorName ¶
func (e MessageValidationError) ErrorName() string
ErrorName returns error name.
func (MessageValidationError) Field ¶
func (e MessageValidationError) Field() string
Field function returns field value.
func (MessageValidationError) Key ¶
func (e MessageValidationError) Key() bool
Key function returns key value.
func (MessageValidationError) Reason ¶
func (e MessageValidationError) Reason() string
Reason function returns reason value.
type Wrapper ¶
type Wrapper struct { Message *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` SubmissionTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=submission_time,json=submissionTime,proto3" json:"submission_time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Wrapper is a wrapper for task queue payloads.
func (*Wrapper) Descriptor ¶
func (*Wrapper) GetMessage ¶
func (*Wrapper) GetSubmissionTime ¶
func (*Wrapper) ProtoMessage ¶
func (*Wrapper) ProtoMessage()
func (*Wrapper) Validate ¶
Validate checks the field values on Wrapper with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Wrapper) XXX_DiscardUnknown ¶
func (m *Wrapper) XXX_DiscardUnknown()
func (*Wrapper) XXX_Marshal ¶
func (*Wrapper) XXX_Unmarshal ¶
type WrapperValidationError ¶
type WrapperValidationError struct {
// contains filtered or unexported fields
}
WrapperValidationError is the validation error returned by Wrapper.Validate if the designated constraints aren't met.
func (WrapperValidationError) Cause ¶
func (e WrapperValidationError) Cause() error
Cause function returns cause value.
func (WrapperValidationError) Error ¶
func (e WrapperValidationError) Error() string
Error satisfies the builtin error interface
func (WrapperValidationError) ErrorName ¶
func (e WrapperValidationError) ErrorName() string
ErrorName returns error name.
func (WrapperValidationError) Field ¶
func (e WrapperValidationError) Field() string
Field function returns field value.
func (WrapperValidationError) Key ¶
func (e WrapperValidationError) Key() bool
Key function returns key value.
func (WrapperValidationError) Reason ¶
func (e WrapperValidationError) Reason() string
Reason function returns reason value.