Documentation
¶
Index ¶
- Constants
- Variables
- func WriteError(resp http.ResponseWriter, err error)
- type Assignment
- func (*Assignment) Descriptor() ([]byte, []int)deprecated
- func (x *Assignment) GetAssigneeName() string
- func (x *Assignment) GetAssigneeUuid() string
- func (x *Assignment) GetAssignmentUuid() string
- func (x *Assignment) GetCommissionCode() string
- func (x *Assignment) GetPlanningUuid() string
- func (*Assignment) ProtoMessage()
- func (x *Assignment) ProtoReflect() protoreflect.Message
- func (x *Assignment) Reset()
- func (x *Assignment) String() string
- type DocumentFormatInfo
- func (*DocumentFormatInfo) Descriptor() ([]byte, []int)deprecated
- func (x *DocumentFormatInfo) GetBase64Encode() bool
- func (x *DocumentFormatInfo) GetFileSuffixes() []string
- func (x *DocumentFormatInfo) GetFileType() string
- func (x *DocumentFormatInfo) GetMimeTypes() []string
- func (*DocumentFormatInfo) ProtoMessage()
- func (x *DocumentFormatInfo) ProtoReflect() protoreflect.Message
- func (x *DocumentFormatInfo) Reset()
- func (x *DocumentFormatInfo) String() string
- type File
- func (*File) Descriptor() ([]byte, []int)deprecated
- func (x *File) GetHeight() int32
- func (x *File) GetMimeType() string
- func (x *File) GetOriginalFilename() string
- func (x *File) GetSize() int64
- func (x *File) GetWidth() int32
- func (*File) ProtoMessage()
- func (x *File) ProtoReflect() protoreflect.Message
- func (x *File) Reset()
- func (x *File) String() string
- type FileType
- type GetAssignmentRequest
- func (*GetAssignmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAssignmentRequest) GetCommissionCode() string
- func (*GetAssignmentRequest) ProtoMessage()
- func (x *GetAssignmentRequest) ProtoReflect() protoreflect.Message
- func (x *GetAssignmentRequest) Reset()
- func (x *GetAssignmentRequest) String() string
- type GetAssignmentResponse
- func (*GetAssignmentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAssignmentResponse) GetAssignmentUuid() string
- func (x *GetAssignmentResponse) GetPlanningUuid() string
- func (*GetAssignmentResponse) ProtoMessage()
- func (x *GetAssignmentResponse) ProtoReflect() protoreflect.Message
- func (x *GetAssignmentResponse) Reset()
- func (x *GetAssignmentResponse) String() string
- type GetDocumentFormatsRequest
- type GetDocumentFormatsResponse
- func (*GetDocumentFormatsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetDocumentFormatsResponse) GetDocumentFormats() []*DocumentFormatInfo
- func (*GetDocumentFormatsResponse) ProtoMessage()
- func (x *GetDocumentFormatsResponse) ProtoReflect() protoreflect.Message
- func (x *GetDocumentFormatsResponse) Reset()
- func (x *GetDocumentFormatsResponse) String() string
- type GetItemRequest
- func (*GetItemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetItemRequest) GetArchive() string
- func (x *GetItemRequest) GetId() string
- func (*GetItemRequest) ProtoMessage()
- func (x *GetItemRequest) ProtoReflect() protoreflect.Message
- func (x *GetItemRequest) Reset()
- func (x *GetItemRequest) String() string
- type GetItemResponse
- type GetLanguagePrefsRequest
- type GetLanguagePrefsResponse
- func (*GetLanguagePrefsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetLanguagePrefsResponse) GetLanguagePrefs() map[string]*LanguagePreference
- func (*GetLanguagePrefsResponse) ProtoMessage()
- func (x *GetLanguagePrefsResponse) ProtoReflect() protoreflect.Message
- func (x *GetLanguagePrefsResponse) Reset()
- func (x *GetLanguagePrefsResponse) String() string
- type GetPreferenceTemplatesRequest
- func (*GetPreferenceTemplatesRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetPreferenceTemplatesRequest) ProtoMessage()
- func (x *GetPreferenceTemplatesRequest) ProtoReflect() protoreflect.Message
- func (x *GetPreferenceTemplatesRequest) Reset()
- func (x *GetPreferenceTemplatesRequest) String() string
- type GetPreferenceTemplatesResponse
- func (*GetPreferenceTemplatesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPreferenceTemplatesResponse) GetPreferenceTemplates() map[string]*StringList
- func (*GetPreferenceTemplatesResponse) ProtoMessage()
- func (x *GetPreferenceTemplatesResponse) ProtoReflect() protoreflect.Message
- func (x *GetPreferenceTemplatesResponse) Reset()
- func (x *GetPreferenceTemplatesResponse) String() string
- type GetSortFieldsRequest
- type GetSortFieldsResponse
- func (*GetSortFieldsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSortFieldsResponse) GetFields() []*SortField
- func (*GetSortFieldsResponse) ProtoMessage()
- func (x *GetSortFieldsResponse) ProtoReflect() protoreflect.Message
- func (x *GetSortFieldsResponse) Reset()
- func (x *GetSortFieldsResponse) String() string
- type HTTPClient
- type ImpreciseTimestamp
- func (*ImpreciseTimestamp) Descriptor() ([]byte, []int)deprecated
- func (x *ImpreciseTimestamp) GetPrecision() TimestampPrecision
- func (x *ImpreciseTimestamp) GetTime() string
- func (x *ImpreciseTimestamp) GetValidTimezone() bool
- func (*ImpreciseTimestamp) ProtoMessage()
- func (x *ImpreciseTimestamp) ProtoReflect() protoreflect.Message
- func (x *ImpreciseTimestamp) Reset()
- func (x *ImpreciseTimestamp) String() string
- type Internal
- type LangParameterTranslate
- func (LangParameterTranslate) Descriptor() protoreflect.EnumDescriptor
- func (x LangParameterTranslate) Enum() *LangParameterTranslate
- func (LangParameterTranslate) EnumDescriptor() ([]byte, []int)deprecated
- func (x LangParameterTranslate) Number() protoreflect.EnumNumber
- func (x LangParameterTranslate) String() string
- func (LangParameterTranslate) Type() protoreflect.EnumType
- type LanguagePreference
- func (*LanguagePreference) Descriptor() ([]byte, []int)deprecated
- func (x *LanguagePreference) GetCategory() string
- func (x *LanguagePreference) GetDescription() string
- func (x *LanguagePreference) GetModifyFor() []string
- func (*LanguagePreference) ProtoMessage()
- func (x *LanguagePreference) ProtoReflect() protoreflect.Message
- func (x *LanguagePreference) Reset()
- func (x *LanguagePreference) String() string
- type ListAssignmentsRequest
- type ListAssignmentsResponse
- func (*ListAssignmentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAssignmentsResponse) GetAssignments() []*Assignment
- func (*ListAssignmentsResponse) ProtoMessage()
- func (x *ListAssignmentsResponse) ProtoReflect() protoreflect.Message
- func (x *ListAssignmentsResponse) Reset()
- func (x *ListAssignmentsResponse) String() string
- type Location
- type Media
- type MediaItem
- func (*MediaItem) Descriptor() ([]byte, []int)deprecated
- func (x *MediaItem) GetAltTextAccessibility() string
- func (x *MediaItem) GetArchive() string
- func (x *MediaItem) GetCategory() string
- func (x *MediaItem) GetCity() string
- func (x *MediaItem) GetCountry() string
- func (x *MediaItem) GetCreator() string
- func (x *MediaItem) GetCreditLine() string
- func (x *MediaItem) GetDateArchived() string
- func (x *MediaItem) GetDateCreated() *ImpreciseTimestamp
- func (x *MediaItem) GetDescription() string
- func (x *MediaItem) GetFile() *File
- func (x *MediaItem) GetHeadline() string
- func (x *MediaItem) GetId() string
- func (x *MediaItem) GetImageRating() int32
- func (x *MediaItem) GetImageSupplierImageId() string
- func (x *MediaItem) GetInstructions() string
- func (x *MediaItem) GetInternal() *Internal
- func (x *MediaItem) GetJobId() string
- func (x *MediaItem) GetKeywords() []string
- func (x *MediaItem) GetLinks() map[string]string
- func (x *MediaItem) GetPermissions() *Permissions
- func (x *MediaItem) GetPersonsShown() []*Person
- func (x *MediaItem) GetPreviews() []*Preview
- func (x *MediaItem) GetRestrictions() bool
- func (x *MediaItem) GetSortValues() []string
- func (x *MediaItem) GetSource() string
- func (x *MediaItem) GetSuppliers() string
- func (x *MediaItem) GetTitle() string
- func (x *MediaItem) GetType() string
- func (x *MediaItem) GetUsageTerms() string
- func (x *MediaItem) GetUserId() string
- func (x *MediaItem) GetVersionCount() int32
- func (*MediaItem) ProtoMessage()
- func (x *MediaItem) ProtoReflect() protoreflect.Message
- func (x *MediaItem) Reset()
- func (x *MediaItem) String() string
- type Metadata
- type Nynorsk
- type Orientation
- func (Orientation) Descriptor() protoreflect.EnumDescriptor
- func (x Orientation) Enum() *Orientation
- func (Orientation) EnumDescriptor() ([]byte, []int)deprecated
- func (x Orientation) Number() protoreflect.EnumNumber
- func (x Orientation) String() string
- func (Orientation) Type() protoreflect.EnumType
- type Origin
- type OriginInfo
- type Page
- func (*Page) Descriptor() ([]byte, []int)deprecated
- func (x *Page) GetCount() int32
- func (x *Page) GetLimit() int32
- func (x *Page) GetOffset() int32
- func (x *Page) GetSearchAfter() []string
- func (x *Page) GetTotal() int32
- func (*Page) ProtoMessage()
- func (x *Page) ProtoReflect() protoreflect.Message
- func (x *Page) Reset()
- func (x *Page) String() string
- type Permissions
- func (*Permissions) Descriptor() ([]byte, []int)deprecated
- func (x *Permissions) GetDelete() bool
- func (x *Permissions) GetDownload() bool
- func (x *Permissions) GetEdit() bool
- func (*Permissions) ProtoMessage()
- func (x *Permissions) ProtoReflect() protoreflect.Message
- func (x *Permissions) Reset()
- func (x *Permissions) String() string
- type Person
- type PreferenceValue
- func (*PreferenceValue) Descriptor() ([]byte, []int)deprecated
- func (x *PreferenceValue) GetEnabled() bool
- func (x *PreferenceValue) GetValue() isPreferenceValue_Value
- func (x *PreferenceValue) GetWords() *StringList
- func (*PreferenceValue) ProtoMessage()
- func (x *PreferenceValue) ProtoReflect() protoreflect.Message
- func (x *PreferenceValue) Reset()
- func (x *PreferenceValue) String() string
- type PreferenceValue_Enabled
- type PreferenceValue_Words
- type Preview
- func (*Preview) Descriptor() ([]byte, []int)deprecated
- func (x *Preview) GetHeight() int32
- func (x *Preview) GetType() PreviewType
- func (x *Preview) GetUrl() string
- func (x *Preview) GetWidth() int32
- func (*Preview) ProtoMessage()
- func (x *Preview) ProtoReflect() protoreflect.Message
- func (x *Preview) Reset()
- func (x *Preview) String() string
- type PreviewType
- func (PreviewType) Descriptor() protoreflect.EnumDescriptor
- func (x PreviewType) Enum() *PreviewType
- func (PreviewType) EnumDescriptor() ([]byte, []int)deprecated
- func (x PreviewType) Number() protoreflect.EnumNumber
- func (x PreviewType) String() string
- func (PreviewType) Type() protoreflect.EnumType
- type SearchRequest
- func (*SearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest) GetAlbums() []int32
- func (x *SearchRequest) GetArchive() string
- func (x *SearchRequest) GetCategories() []string
- func (x *SearchRequest) GetCity() string
- func (x *SearchRequest) GetCollections() []int32
- func (x *SearchRequest) GetCountry() string
- func (x *SearchRequest) GetCreatedMax() string
- func (x *SearchRequest) GetCreatedMin() string
- func (x *SearchRequest) GetCreator() string
- func (x *SearchRequest) GetFileType() FileType
- func (x *SearchRequest) GetIds() []string
- func (x *SearchRequest) GetItemId() string
- func (x *SearchRequest) GetJobId() string
- func (x *SearchRequest) GetKeywords() []string
- func (x *SearchRequest) GetLimit() int32
- func (x *SearchRequest) GetLocations() string
- func (x *SearchRequest) GetOffset() int32
- func (x *SearchRequest) GetOrientation() Orientation
- func (x *SearchRequest) GetOrigins() []Origin
- func (x *SearchRequest) GetOutsideSubscription() bool
- func (x *SearchRequest) GetQuery() string
- func (x *SearchRequest) GetSearchAfter() []string
- func (x *SearchRequest) GetSort() *Sort
- func (*SearchRequest) ProtoMessage()
- func (x *SearchRequest) ProtoReflect() protoreflect.Message
- func (x *SearchRequest) Reset()
- func (x *SearchRequest) String() string
- type SearchResponse
- func (*SearchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResponse) GetData() []*MediaItem
- func (x *SearchResponse) GetPage() *Page
- func (*SearchResponse) ProtoMessage()
- func (x *SearchResponse) ProtoReflect() protoreflect.Message
- func (x *SearchResponse) Reset()
- func (x *SearchResponse) String() string
- type Sort
- type SortField
- type StringList
- type StringMap
- type TimestampPrecision
- func (TimestampPrecision) Descriptor() protoreflect.EnumDescriptor
- func (x TimestampPrecision) Enum() *TimestampPrecision
- func (TimestampPrecision) EnumDescriptor() ([]byte, []int)deprecated
- func (x TimestampPrecision) Number() protoreflect.EnumNumber
- func (x TimestampPrecision) String() string
- func (TimestampPrecision) Type() protoreflect.EnumType
- type TranslateRequest
- func (*TranslateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TranslateRequest) GetDocument() isTranslateRequest_Document
- func (x *TranslateRequest) GetFileType() string
- func (x *TranslateRequest) GetGuid() string
- func (x *TranslateRequest) GetLangParameterTranslate() LangParameterTranslate
- func (x *TranslateRequest) GetPostEdit() bool
- func (x *TranslateRequest) GetPrefs() map[string]*PreferenceValue
- func (x *TranslateRequest) GetPrefsTemplate() string
- func (x *TranslateRequest) GetSourceLanguage() string
- func (x *TranslateRequest) GetTargetLanguage() string
- func (x *TranslateRequest) GetText() string
- func (x *TranslateRequest) GetTextMap() *StringMap
- func (x *TranslateRequest) GetTexts() *StringList
- func (*TranslateRequest) ProtoMessage()
- func (x *TranslateRequest) ProtoReflect() protoreflect.Message
- func (x *TranslateRequest) Reset()
- func (x *TranslateRequest) String() string
- type TranslateRequest_Text
- type TranslateRequest_TextMap
- type TranslateRequest_Texts
- type TranslateResponse
- func (*TranslateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TranslateResponse) GetDocument() isTranslateResponse_Document
- func (x *TranslateResponse) GetGuid() string
- func (x *TranslateResponse) GetText() string
- func (x *TranslateResponse) GetTextMap() *StringMap
- func (x *TranslateResponse) GetTexts() *StringList
- func (*TranslateResponse) ProtoMessage()
- func (x *TranslateResponse) ProtoReflect() protoreflect.Message
- func (x *TranslateResponse) Reset()
- func (x *TranslateResponse) String() string
- type TranslateResponse_Text
- type TranslateResponse_TextMap
- type TranslateResponse_Texts
- type TwirpServer
Constants ¶
const MediaPathPrefix = "/twirp/ttab.ntb.Media/"
MediaPathPrefix is a convenience constant that may identify URL paths. Should be used with caution, it only matches routes generated by Twirp Go clients, with the default "/twirp" prefix and default CamelCase service and method names. More info: https://twitchtv.github.io/twirp/docs/routing.html
const MetadataPathPrefix = "/twirp/ttab.ntb.Metadata/"
MetadataPathPrefix is a convenience constant that may identify URL paths. Should be used with caution, it only matches routes generated by Twirp Go clients, with the default "/twirp" prefix and default CamelCase service and method names. More info: https://twitchtv.github.io/twirp/docs/routing.html
const NynorskPathPrefix = "/twirp/ttab.ntb.Nynorsk/"
NynorskPathPrefix is a convenience constant that may identify URL paths. Should be used with caution, it only matches routes generated by Twirp Go clients, with the default "/twirp" prefix and default CamelCase service and method names. More info: https://twitchtv.github.io/twirp/docs/routing.html
Variables ¶
var ( Orientation_name = map[int32]string{ 0: "ORIENTATION_UNSPECIFIED", 1: "ORIENTATION_HORIZONTAL", 2: "ORIENTATION_VERTICAL", 3: "ORIENTATION_SQUARE", } Orientation_value = map[string]int32{ "ORIENTATION_UNSPECIFIED": 0, "ORIENTATION_HORIZONTAL": 1, "ORIENTATION_VERTICAL": 2, "ORIENTATION_SQUARE": 3, } )
Enum value maps for Orientation.
var ( Location_name = map[int32]string{ 0: "LOCATION_UNSPECIFIED", 1: "LOCATION_IN_GALLERY", 2: "LOCATION_NOT_IN_GALLERY", 3: "LOCATION_IN_COLLECTIONS", 4: "LOCATION_NOT_IN_COLLECTIONS", 5: "LOCATION_ALL_ORGANIZATIONS", } Location_value = map[string]int32{ "LOCATION_UNSPECIFIED": 0, "LOCATION_IN_GALLERY": 1, "LOCATION_NOT_IN_GALLERY": 2, "LOCATION_IN_COLLECTIONS": 3, "LOCATION_NOT_IN_COLLECTIONS": 4, "LOCATION_ALL_ORGANIZATIONS": 5, } )
Enum value maps for Location.
var ( Origin_name = map[int32]string{ 0: "ORIGIN_UNSPECIFIED", 1: "ORIGIN_UPLOAD", 2: "ORIGIN_GUEST", 3: "ORIGIN_GUESTFTP", 4: "ORIGIN_EMAIL", 5: "ORIGIN_IMPORT", 6: "ORIGIN_FTP", 7: "ORIGIN_LTR", 8: "ORIGIN_PS", 9: "ORIGIN_CMS", } Origin_value = map[string]int32{ "ORIGIN_UNSPECIFIED": 0, "ORIGIN_UPLOAD": 1, "ORIGIN_GUEST": 2, "ORIGIN_GUESTFTP": 3, "ORIGIN_EMAIL": 4, "ORIGIN_IMPORT": 5, "ORIGIN_FTP": 6, "ORIGIN_LTR": 7, "ORIGIN_PS": 8, "ORIGIN_CMS": 9, } )
Enum value maps for Origin.
var ( FileType_name = map[int32]string{ 0: "FILE_TYPE_UNSPECIFIED", 1: "FILE_TYPE_IMAGE", 2: "FILE_TYPE_VIDEO", 3: "FILE_TYPE_PDF", 4: "FILE_TYPE_VECTOR", 5: "FILE_TYPE_PHOTOSHOP", } FileType_value = map[string]int32{ "FILE_TYPE_UNSPECIFIED": 0, "FILE_TYPE_IMAGE": 1, "FILE_TYPE_VIDEO": 2, "FILE_TYPE_PDF": 3, "FILE_TYPE_VECTOR": 4, "FILE_TYPE_PHOTOSHOP": 5, } )
Enum value maps for FileType.
var ( TimestampPrecision_name = map[int32]string{ 0: "TS_PRECISION_UNKNOWN", 1: "TS_PRECISION_FULL", 2: "TS_PRECISION_MINUTE", 3: "TS_PRECISION_HOUR", 4: "TS_PRECISION_DAY", 5: "TS_PRECISION_MONTH", 6: "TS_PRECISION_YEAR", 7: "TS_PRECISION_DECADE", 8: "TS_PRECISION_CENTURY", } TimestampPrecision_value = map[string]int32{ "TS_PRECISION_UNKNOWN": 0, "TS_PRECISION_FULL": 1, "TS_PRECISION_MINUTE": 2, "TS_PRECISION_HOUR": 3, "TS_PRECISION_DAY": 4, "TS_PRECISION_MONTH": 5, "TS_PRECISION_YEAR": 6, "TS_PRECISION_DECADE": 7, "TS_PRECISION_CENTURY": 8, } )
Enum value maps for TimestampPrecision.
var ( PreviewType_name = map[int32]string{ 0: "PREVIEW_UNKNOWN", 1: "PREVIEW_IMAGE", 2: "PREVIEW_VIDEO", } PreviewType_value = map[string]int32{ "PREVIEW_UNKNOWN": 0, "PREVIEW_IMAGE": 1, "PREVIEW_VIDEO": 2, } )
Enum value maps for PreviewType.
var ( LangParameterTranslate_name = map[int32]string{ 0: "LANG_PARAMETER_TRANSLATE_UNSPECIFIED", 1: "LANG_PARAMETER_TRANSLATE_ORIGIN", 2: "LANG_PARAMETER_TRANSLATE_ALL", 3: "LANG_PARAMETER_TRANSLATE_NONE", } LangParameterTranslate_value = map[string]int32{ "LANG_PARAMETER_TRANSLATE_UNSPECIFIED": 0, "LANG_PARAMETER_TRANSLATE_ORIGIN": 1, "LANG_PARAMETER_TRANSLATE_ALL": 2, "LANG_PARAMETER_TRANSLATE_NONE": 3, } )
Enum value maps for LangParameterTranslate.
var File_ntb_service_proto protoreflect.FileDescriptor
Functions ¶
func WriteError ¶
func WriteError(resp http.ResponseWriter, err error)
WriteError writes an HTTP response with a valid Twirp error format (code, msg, meta). Useful outside of the Twirp server (e.g. http middleware), but does not trigger hooks. If err is not a twirp.Error, it will get wrapped with twirp.InternalErrorWith(err)
Types ¶
type Assignment ¶ added in v0.5.1
type Assignment struct {
PlanningUuid string `protobuf:"bytes,1,opt,name=planning_uuid,json=planningUuid,proto3" json:"planning_uuid,omitempty"`
AssignmentUuid string `protobuf:"bytes,2,opt,name=assignment_uuid,json=assignmentUuid,proto3" json:"assignment_uuid,omitempty"`
AssigneeUuid string `protobuf:"bytes,3,opt,name=assignee_uuid,json=assigneeUuid,proto3" json:"assignee_uuid,omitempty"`
AssigneeName string `protobuf:"bytes,4,opt,name=assignee_name,json=assigneeName,proto3" json:"assignee_name,omitempty"`
CommissionCode string `protobuf:"bytes,5,opt,name=commission_code,json=commissionCode,proto3" json:"commission_code,omitempty"`
// contains filtered or unexported fields
}
func (*Assignment) Descriptor
deprecated
added in
v0.5.1
func (*Assignment) Descriptor() ([]byte, []int)
Deprecated: Use Assignment.ProtoReflect.Descriptor instead.
func (*Assignment) GetAssigneeName ¶ added in v0.5.1
func (x *Assignment) GetAssigneeName() string
func (*Assignment) GetAssigneeUuid ¶ added in v0.5.1
func (x *Assignment) GetAssigneeUuid() string
func (*Assignment) GetAssignmentUuid ¶ added in v0.5.1
func (x *Assignment) GetAssignmentUuid() string
func (*Assignment) GetCommissionCode ¶ added in v0.5.1
func (x *Assignment) GetCommissionCode() string
func (*Assignment) GetPlanningUuid ¶ added in v0.5.1
func (x *Assignment) GetPlanningUuid() string
func (*Assignment) ProtoMessage ¶ added in v0.5.1
func (*Assignment) ProtoMessage()
func (*Assignment) ProtoReflect ¶ added in v0.5.1
func (x *Assignment) ProtoReflect() protoreflect.Message
func (*Assignment) Reset ¶ added in v0.5.1
func (x *Assignment) Reset()
func (*Assignment) String ¶ added in v0.5.1
func (x *Assignment) String() string
type DocumentFormatInfo ¶ added in v0.5.0
type DocumentFormatInfo struct {
// The file type identifier used in translation requests (e.g. "html", "docx").
FileType string `protobuf:"bytes,1,opt,name=file_type,json=fileType,proto3" json:"file_type,omitempty"`
// File suffixes associated with this format (e.g. [".html", ".htm"]).
FileSuffixes []string `protobuf:"bytes,2,rep,name=file_suffixes,json=fileSuffixes,proto3" json:"file_suffixes,omitempty"`
// MIME types associated with this format (e.g. ["text/html"]).
MimeTypes []string `protobuf:"bytes,3,rep,name=mime_types,json=mimeTypes,proto3" json:"mime_types,omitempty"`
// Whether document content must be base64-encoded for this format.
Base64Encode bool `protobuf:"varint,4,opt,name=base64_encode,json=base64Encode,proto3" json:"base64_encode,omitempty"`
// contains filtered or unexported fields
}
DocumentFormatInfo describes a supported document format.
func (*DocumentFormatInfo) Descriptor
deprecated
added in
v0.5.0
func (*DocumentFormatInfo) Descriptor() ([]byte, []int)
Deprecated: Use DocumentFormatInfo.ProtoReflect.Descriptor instead.
func (*DocumentFormatInfo) GetBase64Encode ¶ added in v0.5.0
func (x *DocumentFormatInfo) GetBase64Encode() bool
func (*DocumentFormatInfo) GetFileSuffixes ¶ added in v0.5.0
func (x *DocumentFormatInfo) GetFileSuffixes() []string
func (*DocumentFormatInfo) GetFileType ¶ added in v0.5.0
func (x *DocumentFormatInfo) GetFileType() string
func (*DocumentFormatInfo) GetMimeTypes ¶ added in v0.5.0
func (x *DocumentFormatInfo) GetMimeTypes() []string
func (*DocumentFormatInfo) ProtoMessage ¶ added in v0.5.0
func (*DocumentFormatInfo) ProtoMessage()
func (*DocumentFormatInfo) ProtoReflect ¶ added in v0.5.0
func (x *DocumentFormatInfo) ProtoReflect() protoreflect.Message
func (*DocumentFormatInfo) Reset ¶ added in v0.5.0
func (x *DocumentFormatInfo) Reset()
func (*DocumentFormatInfo) String ¶ added in v0.5.0
func (x *DocumentFormatInfo) String() string
type File ¶
type File struct {
// Size is the size of the file in bytes.
Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
// Height is the height of the media in pixels.
Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
// Width is the width of the media in pixels.
Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"`
// MimeType is the mimetype of the media.
MimeType string `protobuf:"bytes,4,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
// OriginalFilename is the original name of the file.
OriginalFilename string `protobuf:"bytes,5,opt,name=original_filename,json=originalFilename,proto3" json:"original_filename,omitempty"`
// contains filtered or unexported fields
}
func (*File) Descriptor
deprecated
func (*File) GetMimeType ¶
func (*File) GetOriginalFilename ¶
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
type FileType ¶
type FileType int32
func (FileType) Descriptor ¶
func (FileType) Descriptor() protoreflect.EnumDescriptor
func (FileType) EnumDescriptor
deprecated
func (FileType) Number ¶
func (x FileType) Number() protoreflect.EnumNumber
func (FileType) Type ¶
func (FileType) Type() protoreflect.EnumType
type GetAssignmentRequest ¶ added in v0.4.2
type GetAssignmentRequest struct {
// The assignee is identified by their commission code.
CommissionCode string `protobuf:"bytes,1,opt,name=commission_code,json=commissionCode,proto3" json:"commission_code,omitempty"`
// contains filtered or unexported fields
}
func (*GetAssignmentRequest) Descriptor
deprecated
added in
v0.4.2
func (*GetAssignmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAssignmentRequest.ProtoReflect.Descriptor instead.
func (*GetAssignmentRequest) GetCommissionCode ¶ added in v0.4.2
func (x *GetAssignmentRequest) GetCommissionCode() string
func (*GetAssignmentRequest) ProtoMessage ¶ added in v0.4.2
func (*GetAssignmentRequest) ProtoMessage()
func (*GetAssignmentRequest) ProtoReflect ¶ added in v0.4.2
func (x *GetAssignmentRequest) ProtoReflect() protoreflect.Message
func (*GetAssignmentRequest) Reset ¶ added in v0.4.2
func (x *GetAssignmentRequest) Reset()
func (*GetAssignmentRequest) String ¶ added in v0.4.2
func (x *GetAssignmentRequest) String() string
type GetAssignmentResponse ¶ added in v0.4.2
type GetAssignmentResponse struct {
PlanningUuid string `protobuf:"bytes,1,opt,name=planning_uuid,json=planningUuid,proto3" json:"planning_uuid,omitempty"`
AssignmentUuid string `protobuf:"bytes,2,opt,name=assignment_uuid,json=assignmentUuid,proto3" json:"assignment_uuid,omitempty"`
// contains filtered or unexported fields
}
func (*GetAssignmentResponse) Descriptor
deprecated
added in
v0.4.2
func (*GetAssignmentResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAssignmentResponse.ProtoReflect.Descriptor instead.
func (*GetAssignmentResponse) GetAssignmentUuid ¶ added in v0.4.2
func (x *GetAssignmentResponse) GetAssignmentUuid() string
func (*GetAssignmentResponse) GetPlanningUuid ¶ added in v0.4.2
func (x *GetAssignmentResponse) GetPlanningUuid() string
func (*GetAssignmentResponse) ProtoMessage ¶ added in v0.4.2
func (*GetAssignmentResponse) ProtoMessage()
func (*GetAssignmentResponse) ProtoReflect ¶ added in v0.4.2
func (x *GetAssignmentResponse) ProtoReflect() protoreflect.Message
func (*GetAssignmentResponse) Reset ¶ added in v0.4.2
func (x *GetAssignmentResponse) Reset()
func (*GetAssignmentResponse) String ¶ added in v0.4.2
func (x *GetAssignmentResponse) String() string
type GetDocumentFormatsRequest ¶ added in v0.5.0
type GetDocumentFormatsRequest struct {
// contains filtered or unexported fields
}
func (*GetDocumentFormatsRequest) Descriptor
deprecated
added in
v0.5.0
func (*GetDocumentFormatsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDocumentFormatsRequest.ProtoReflect.Descriptor instead.
func (*GetDocumentFormatsRequest) ProtoMessage ¶ added in v0.5.0
func (*GetDocumentFormatsRequest) ProtoMessage()
func (*GetDocumentFormatsRequest) ProtoReflect ¶ added in v0.5.0
func (x *GetDocumentFormatsRequest) ProtoReflect() protoreflect.Message
func (*GetDocumentFormatsRequest) Reset ¶ added in v0.5.0
func (x *GetDocumentFormatsRequest) Reset()
func (*GetDocumentFormatsRequest) String ¶ added in v0.5.0
func (x *GetDocumentFormatsRequest) String() string
type GetDocumentFormatsResponse ¶ added in v0.5.0
type GetDocumentFormatsResponse struct {
DocumentFormats []*DocumentFormatInfo `protobuf:"bytes,1,rep,name=document_formats,json=documentFormats,proto3" json:"document_formats,omitempty"`
// contains filtered or unexported fields
}
func (*GetDocumentFormatsResponse) Descriptor
deprecated
added in
v0.5.0
func (*GetDocumentFormatsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDocumentFormatsResponse.ProtoReflect.Descriptor instead.
func (*GetDocumentFormatsResponse) GetDocumentFormats ¶ added in v0.5.0
func (x *GetDocumentFormatsResponse) GetDocumentFormats() []*DocumentFormatInfo
func (*GetDocumentFormatsResponse) ProtoMessage ¶ added in v0.5.0
func (*GetDocumentFormatsResponse) ProtoMessage()
func (*GetDocumentFormatsResponse) ProtoReflect ¶ added in v0.5.0
func (x *GetDocumentFormatsResponse) ProtoReflect() protoreflect.Message
func (*GetDocumentFormatsResponse) Reset ¶ added in v0.5.0
func (x *GetDocumentFormatsResponse) Reset()
func (*GetDocumentFormatsResponse) String ¶ added in v0.5.0
func (x *GetDocumentFormatsResponse) String() string
type GetItemRequest ¶
type GetItemRequest struct {
// Archive to search in.
Archive string `protobuf:"bytes,1,opt,name=archive,proto3" json:"archive,omitempty"`
// ID of the item to get.
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*GetItemRequest) Descriptor
deprecated
func (*GetItemRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetItemRequest.ProtoReflect.Descriptor instead.
func (*GetItemRequest) GetArchive ¶
func (x *GetItemRequest) GetArchive() string
func (*GetItemRequest) GetId ¶
func (x *GetItemRequest) GetId() string
func (*GetItemRequest) ProtoMessage ¶
func (*GetItemRequest) ProtoMessage()
func (*GetItemRequest) ProtoReflect ¶
func (x *GetItemRequest) ProtoReflect() protoreflect.Message
func (*GetItemRequest) Reset ¶
func (x *GetItemRequest) Reset()
func (*GetItemRequest) String ¶
func (x *GetItemRequest) String() string
type GetItemResponse ¶
type GetItemResponse struct {
Item *MediaItem `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
// contains filtered or unexported fields
}
func (*GetItemResponse) Descriptor
deprecated
func (*GetItemResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetItemResponse.ProtoReflect.Descriptor instead.
func (*GetItemResponse) GetItem ¶
func (x *GetItemResponse) GetItem() *MediaItem
func (*GetItemResponse) ProtoMessage ¶
func (*GetItemResponse) ProtoMessage()
func (*GetItemResponse) ProtoReflect ¶
func (x *GetItemResponse) ProtoReflect() protoreflect.Message
func (*GetItemResponse) Reset ¶
func (x *GetItemResponse) Reset()
func (*GetItemResponse) String ¶
func (x *GetItemResponse) String() string
type GetLanguagePrefsRequest ¶ added in v0.5.0
type GetLanguagePrefsRequest struct {
// contains filtered or unexported fields
}
func (*GetLanguagePrefsRequest) Descriptor
deprecated
added in
v0.5.0
func (*GetLanguagePrefsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLanguagePrefsRequest.ProtoReflect.Descriptor instead.
func (*GetLanguagePrefsRequest) ProtoMessage ¶ added in v0.5.0
func (*GetLanguagePrefsRequest) ProtoMessage()
func (*GetLanguagePrefsRequest) ProtoReflect ¶ added in v0.5.0
func (x *GetLanguagePrefsRequest) ProtoReflect() protoreflect.Message
func (*GetLanguagePrefsRequest) Reset ¶ added in v0.5.0
func (x *GetLanguagePrefsRequest) Reset()
func (*GetLanguagePrefsRequest) String ¶ added in v0.5.0
func (x *GetLanguagePrefsRequest) String() string
type GetLanguagePrefsResponse ¶ added in v0.5.0
type GetLanguagePrefsResponse struct {
// Map of form name to its details.
LanguagePrefs map[string]*LanguagePreference `` /* 174-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*GetLanguagePrefsResponse) Descriptor
deprecated
added in
v0.5.0
func (*GetLanguagePrefsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetLanguagePrefsResponse.ProtoReflect.Descriptor instead.
func (*GetLanguagePrefsResponse) GetLanguagePrefs ¶ added in v0.5.0
func (x *GetLanguagePrefsResponse) GetLanguagePrefs() map[string]*LanguagePreference
func (*GetLanguagePrefsResponse) ProtoMessage ¶ added in v0.5.0
func (*GetLanguagePrefsResponse) ProtoMessage()
func (*GetLanguagePrefsResponse) ProtoReflect ¶ added in v0.5.0
func (x *GetLanguagePrefsResponse) ProtoReflect() protoreflect.Message
func (*GetLanguagePrefsResponse) Reset ¶ added in v0.5.0
func (x *GetLanguagePrefsResponse) Reset()
func (*GetLanguagePrefsResponse) String ¶ added in v0.5.0
func (x *GetLanguagePrefsResponse) String() string
type GetPreferenceTemplatesRequest ¶ added in v0.5.0
type GetPreferenceTemplatesRequest struct {
// contains filtered or unexported fields
}
func (*GetPreferenceTemplatesRequest) Descriptor
deprecated
added in
v0.5.0
func (*GetPreferenceTemplatesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPreferenceTemplatesRequest.ProtoReflect.Descriptor instead.
func (*GetPreferenceTemplatesRequest) ProtoMessage ¶ added in v0.5.0
func (*GetPreferenceTemplatesRequest) ProtoMessage()
func (*GetPreferenceTemplatesRequest) ProtoReflect ¶ added in v0.5.0
func (x *GetPreferenceTemplatesRequest) ProtoReflect() protoreflect.Message
func (*GetPreferenceTemplatesRequest) Reset ¶ added in v0.5.0
func (x *GetPreferenceTemplatesRequest) Reset()
func (*GetPreferenceTemplatesRequest) String ¶ added in v0.5.0
func (x *GetPreferenceTemplatesRequest) String() string
type GetPreferenceTemplatesResponse ¶ added in v0.5.0
type GetPreferenceTemplatesResponse struct {
// Map of template name to the list of language form names it enables.
PreferenceTemplates map[string]*StringList `` /* 192-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*GetPreferenceTemplatesResponse) Descriptor
deprecated
added in
v0.5.0
func (*GetPreferenceTemplatesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPreferenceTemplatesResponse.ProtoReflect.Descriptor instead.
func (*GetPreferenceTemplatesResponse) GetPreferenceTemplates ¶ added in v0.5.0
func (x *GetPreferenceTemplatesResponse) GetPreferenceTemplates() map[string]*StringList
func (*GetPreferenceTemplatesResponse) ProtoMessage ¶ added in v0.5.0
func (*GetPreferenceTemplatesResponse) ProtoMessage()
func (*GetPreferenceTemplatesResponse) ProtoReflect ¶ added in v0.5.0
func (x *GetPreferenceTemplatesResponse) ProtoReflect() protoreflect.Message
func (*GetPreferenceTemplatesResponse) Reset ¶ added in v0.5.0
func (x *GetPreferenceTemplatesResponse) Reset()
func (*GetPreferenceTemplatesResponse) String ¶ added in v0.5.0
func (x *GetPreferenceTemplatesResponse) String() string
type GetSortFieldsRequest ¶
type GetSortFieldsRequest struct {
// contains filtered or unexported fields
}
func (*GetSortFieldsRequest) Descriptor
deprecated
func (*GetSortFieldsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSortFieldsRequest.ProtoReflect.Descriptor instead.
func (*GetSortFieldsRequest) ProtoMessage ¶
func (*GetSortFieldsRequest) ProtoMessage()
func (*GetSortFieldsRequest) ProtoReflect ¶
func (x *GetSortFieldsRequest) ProtoReflect() protoreflect.Message
func (*GetSortFieldsRequest) Reset ¶
func (x *GetSortFieldsRequest) Reset()
func (*GetSortFieldsRequest) String ¶
func (x *GetSortFieldsRequest) String() string
type GetSortFieldsResponse ¶
type GetSortFieldsResponse struct {
Fields []*SortField `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
// contains filtered or unexported fields
}
func (*GetSortFieldsResponse) Descriptor
deprecated
func (*GetSortFieldsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSortFieldsResponse.ProtoReflect.Descriptor instead.
func (*GetSortFieldsResponse) GetFields ¶
func (x *GetSortFieldsResponse) GetFields() []*SortField
func (*GetSortFieldsResponse) ProtoMessage ¶
func (*GetSortFieldsResponse) ProtoMessage()
func (*GetSortFieldsResponse) ProtoReflect ¶
func (x *GetSortFieldsResponse) ProtoReflect() protoreflect.Message
func (*GetSortFieldsResponse) Reset ¶
func (x *GetSortFieldsResponse) Reset()
func (*GetSortFieldsResponse) String ¶
func (x *GetSortFieldsResponse) String() string
type HTTPClient ¶
HTTPClient is the interface used by generated clients to send HTTP requests. It is fulfilled by *(net/http).Client, which is sufficient for most users. Users can provide their own implementation for special retry policies.
HTTPClient implementations should not follow redirects. Redirects are automatically disabled if *(net/http).Client is passed to client constructors. See the withoutRedirects function in this file for more details.
type ImpreciseTimestamp ¶
type ImpreciseTimestamp struct {
// Time as an RFC3339 timestamp.
Time string `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
// ValidTimezone is set to true if the timestamp has a valid timezone, if
// false the timestamp will use zulu time as a substitute for the unknown
// timezone.
ValidTimezone bool `protobuf:"varint,2,opt,name=valid_timezone,json=validTimezone,proto3" json:"valid_timezone,omitempty"`
// Precision is a hint about the precision of the timestamp.
Precision TimestampPrecision `protobuf:"varint,3,opt,name=precision,proto3,enum=ttab.ntb.TimestampPrecision" json:"precision,omitempty"`
// contains filtered or unexported fields
}
func (*ImpreciseTimestamp) Descriptor
deprecated
func (*ImpreciseTimestamp) Descriptor() ([]byte, []int)
Deprecated: Use ImpreciseTimestamp.ProtoReflect.Descriptor instead.
func (*ImpreciseTimestamp) GetPrecision ¶
func (x *ImpreciseTimestamp) GetPrecision() TimestampPrecision
func (*ImpreciseTimestamp) GetTime ¶
func (x *ImpreciseTimestamp) GetTime() string
func (*ImpreciseTimestamp) GetValidTimezone ¶
func (x *ImpreciseTimestamp) GetValidTimezone() bool
func (*ImpreciseTimestamp) ProtoMessage ¶
func (*ImpreciseTimestamp) ProtoMessage()
func (*ImpreciseTimestamp) ProtoReflect ¶
func (x *ImpreciseTimestamp) ProtoReflect() protoreflect.Message
func (*ImpreciseTimestamp) Reset ¶
func (x *ImpreciseTimestamp) Reset()
func (*ImpreciseTimestamp) String ¶
func (x *ImpreciseTimestamp) String() string
type Internal ¶
type Internal struct {
// Origin contains information about the origin of the media.
Origin *OriginInfo `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"`
// ItemID is a non-unique ID of the media provided under upload.
ItemId string `protobuf:"bytes,2,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
// contains filtered or unexported fields
}
func (*Internal) Descriptor
deprecated
func (*Internal) GetOrigin ¶
func (x *Internal) GetOrigin() *OriginInfo
func (*Internal) ProtoMessage ¶
func (*Internal) ProtoMessage()
func (*Internal) ProtoReflect ¶
func (x *Internal) ProtoReflect() protoreflect.Message
type LangParameterTranslate ¶ added in v0.5.0
type LangParameterTranslate int32
LangParameterTranslate controls how text inside HTML lang-tagged elements is handled during translation.
const ( LangParameterTranslate_LANG_PARAMETER_TRANSLATE_UNSPECIFIED LangParameterTranslate = 0 // Translate only tags where the lang attribute matches the source language. LangParameterTranslate_LANG_PARAMETER_TRANSLATE_ORIGIN LangParameterTranslate = 1 // Ignore lang attributes and translate all text. LangParameterTranslate_LANG_PARAMETER_TRANSLATE_ALL LangParameterTranslate = 2 // Do not translate any text inside lang-tagged elements. LangParameterTranslate_LANG_PARAMETER_TRANSLATE_NONE LangParameterTranslate = 3 )
func (LangParameterTranslate) Descriptor ¶ added in v0.5.0
func (LangParameterTranslate) Descriptor() protoreflect.EnumDescriptor
func (LangParameterTranslate) Enum ¶ added in v0.5.0
func (x LangParameterTranslate) Enum() *LangParameterTranslate
func (LangParameterTranslate) EnumDescriptor
deprecated
added in
v0.5.0
func (LangParameterTranslate) EnumDescriptor() ([]byte, []int)
Deprecated: Use LangParameterTranslate.Descriptor instead.
func (LangParameterTranslate) Number ¶ added in v0.5.0
func (x LangParameterTranslate) Number() protoreflect.EnumNumber
func (LangParameterTranslate) String ¶ added in v0.5.0
func (x LangParameterTranslate) String() string
func (LangParameterTranslate) Type ¶ added in v0.5.0
func (LangParameterTranslate) Type() protoreflect.EnumType
type LanguagePreference ¶ added in v0.5.0
type LanguagePreference struct {
// Category of the language form (e.g. "Konsonantar", "Synonym og stavemåtar").
Category string `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"`
// Human-readable description of what this form changes.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Words that can be individually selected for this form. Empty if the form
// applies to all words in its category.
ModifyFor []string `protobuf:"bytes,3,rep,name=modify_for,json=modifyFor,proto3" json:"modify_for,omitempty"`
// contains filtered or unexported fields
}
LanguagePreference describes a single optional language form.
func (*LanguagePreference) Descriptor
deprecated
added in
v0.5.0
func (*LanguagePreference) Descriptor() ([]byte, []int)
Deprecated: Use LanguagePreference.ProtoReflect.Descriptor instead.
func (*LanguagePreference) GetCategory ¶ added in v0.5.0
func (x *LanguagePreference) GetCategory() string
func (*LanguagePreference) GetDescription ¶ added in v0.5.0
func (x *LanguagePreference) GetDescription() string
func (*LanguagePreference) GetModifyFor ¶ added in v0.5.0
func (x *LanguagePreference) GetModifyFor() []string
func (*LanguagePreference) ProtoMessage ¶ added in v0.5.0
func (*LanguagePreference) ProtoMessage()
func (*LanguagePreference) ProtoReflect ¶ added in v0.5.0
func (x *LanguagePreference) ProtoReflect() protoreflect.Message
func (*LanguagePreference) Reset ¶ added in v0.5.0
func (x *LanguagePreference) Reset()
func (*LanguagePreference) String ¶ added in v0.5.0
func (x *LanguagePreference) String() string
type ListAssignmentsRequest ¶ added in v0.5.1
type ListAssignmentsRequest struct {
// contains filtered or unexported fields
}
func (*ListAssignmentsRequest) Descriptor
deprecated
added in
v0.5.1
func (*ListAssignmentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAssignmentsRequest.ProtoReflect.Descriptor instead.
func (*ListAssignmentsRequest) ProtoMessage ¶ added in v0.5.1
func (*ListAssignmentsRequest) ProtoMessage()
func (*ListAssignmentsRequest) ProtoReflect ¶ added in v0.5.1
func (x *ListAssignmentsRequest) ProtoReflect() protoreflect.Message
func (*ListAssignmentsRequest) Reset ¶ added in v0.5.1
func (x *ListAssignmentsRequest) Reset()
func (*ListAssignmentsRequest) String ¶ added in v0.5.1
func (x *ListAssignmentsRequest) String() string
type ListAssignmentsResponse ¶ added in v0.5.1
type ListAssignmentsResponse struct {
Assignments []*Assignment `protobuf:"bytes,1,rep,name=assignments,proto3" json:"assignments,omitempty"`
// contains filtered or unexported fields
}
func (*ListAssignmentsResponse) Descriptor
deprecated
added in
v0.5.1
func (*ListAssignmentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAssignmentsResponse.ProtoReflect.Descriptor instead.
func (*ListAssignmentsResponse) GetAssignments ¶ added in v0.5.1
func (x *ListAssignmentsResponse) GetAssignments() []*Assignment
func (*ListAssignmentsResponse) ProtoMessage ¶ added in v0.5.1
func (*ListAssignmentsResponse) ProtoMessage()
func (*ListAssignmentsResponse) ProtoReflect ¶ added in v0.5.1
func (x *ListAssignmentsResponse) ProtoReflect() protoreflect.Message
func (*ListAssignmentsResponse) Reset ¶ added in v0.5.1
func (x *ListAssignmentsResponse) Reset()
func (*ListAssignmentsResponse) String ¶ added in v0.5.1
func (x *ListAssignmentsResponse) String() string
type Location ¶
type Location int32
func (Location) Descriptor ¶
func (Location) Descriptor() protoreflect.EnumDescriptor
func (Location) EnumDescriptor
deprecated
func (Location) Number ¶
func (x Location) Number() protoreflect.EnumNumber
func (Location) Type ¶
func (Location) Type() protoreflect.EnumType
type Media ¶
type Media interface {
// Search in a media archive.
Search(context.Context, *SearchRequest) (*SearchResponse, error)
// GetItem fetches a single media item.
GetItem(context.Context, *GetItemRequest) (*GetItemResponse, error)
// GetSortFields returns the available sort fields.
GetSortFields(context.Context, *GetSortFieldsRequest) (*GetSortFieldsResponse, error)
}
Media service for interacting with the NTB media manager archive. Experimental.
func NewMediaJSONClient ¶
func NewMediaJSONClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Media
NewMediaJSONClient creates a JSON client that implements the Media interface. It communicates using JSON and can be configured with a custom HTTPClient.
func NewMediaProtobufClient ¶
func NewMediaProtobufClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Media
NewMediaProtobufClient creates a Protobuf client that implements the Media interface. It communicates using Protobuf and can be configured with a custom HTTPClient.
type MediaItem ¶
type MediaItem struct {
// ID of the item.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Type is the content type.
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// Archive (mb/ntb/tt).
Archive string `protobuf:"bytes,3,opt,name=archive,proto3" json:"archive,omitempty"`
// UserID is the user ID of user who uploaded the media.
UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// Restrictions indicates whether there are any restrictions noted on the
// media.
Restrictions bool `protobuf:"varint,5,opt,name=restrictions,proto3" json:"restrictions,omitempty"`
// Headline is a brief synopsis of the caption. Corresponds to IPTC field.
Headline string `protobuf:"bytes,6,opt,name=headline,proto3" json:"headline,omitempty"`
// Description is a textual description, including captions, of the media.
Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
// AltTextAccessibility is a textual description for accessibility.
AltTextAccessibility string `protobuf:"bytes,8,opt,name=alt_text_accessibility,json=altTextAccessibility,proto3" json:"alt_text_accessibility,omitempty"`
// Creator contains the name of the photographer or company/org.
Creator string `protobuf:"bytes,9,opt,name=creator,proto3" json:"creator,omitempty"`
// Keywords to express the subject of the image.
Keywords []string `protobuf:"bytes,10,rep,name=keywords,proto3" json:"keywords,omitempty"`
// Category corresponds to IPTC category field.
Category string `protobuf:"bytes,11,opt,name=category,proto3" json:"category,omitempty"`
// PersonsShown are persons in the image.
PersonsShown []*Person `protobuf:"bytes,12,rep,name=persons_shown,json=personsShown,proto3" json:"persons_shown,omitempty"`
// ImageRating is the rating of the image by its user or supplier (0-5).
// Using optional to distinguish between unset and 0.
ImageRating *int32 `protobuf:"varint,13,opt,name=image_rating,json=imageRating,proto3,oneof" json:"image_rating,omitempty"`
// Title provides a short human-readable name.
Title string `protobuf:"bytes,14,opt,name=title,proto3" json:"title,omitempty"`
// DateArchived designates the date and time the content was archived.
DateArchived string `protobuf:"bytes,15,opt,name=date_archived,json=dateArchived,proto3" json:"date_archived,omitempty"`
// DateCreated designates the date and time the content was created. Not
// present if the source data is invalid or missing.
DateCreated *ImpreciseTimestamp `protobuf:"bytes,16,opt,name=date_created,json=dateCreated,proto3" json:"date_created,omitempty"`
// Country corresponds to IPTC field.
Country string `protobuf:"bytes,17,opt,name=country,proto3" json:"country,omitempty"`
// City corresponds to IPTC field.
City string `protobuf:"bytes,18,opt,name=city,proto3" json:"city,omitempty"`
// CreditLine corresponds to IPTC field.
CreditLine string `protobuf:"bytes,19,opt,name=credit_line,json=creditLine,proto3" json:"credit_line,omitempty"`
// VersionCount is the number of available versions.
VersionCount int32 `protobuf:"varint,20,opt,name=version_count,json=versionCount,proto3" json:"version_count,omitempty"`
// Instructions are any number of instructions from the provider or creator.
Instructions string `protobuf:"bytes,21,opt,name=instructions,proto3" json:"instructions,omitempty"`
// UsageTerms are rights usage terms.
UsageTerms string `protobuf:"bytes,22,opt,name=usage_terms,json=usageTerms,proto3" json:"usage_terms,omitempty"`
// Source is the name of a person or party who has a role in the content
// supply chain.
Source string `protobuf:"bytes,23,opt,name=source,proto3" json:"source,omitempty"`
// Suppliers identifies the most recent supplier of the image.
Suppliers string `protobuf:"bytes,24,opt,name=suppliers,proto3" json:"suppliers,omitempty"`
// ImageSupplierImageID is an identifier assigned by the Image Supplier.
ImageSupplierImageId string `` /* 126-byte string literal not displayed */
// JobID is an identifier related to the job for which the image is supplied.
JobId string `protobuf:"bytes,26,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
// File contains file information.
File *File `protobuf:"bytes,27,opt,name=file,proto3" json:"file,omitempty"`
// Previews contains preview URLs and dimensions.
Previews []*Preview `protobuf:"bytes,28,rep,name=previews,proto3" json:"previews,omitempty"`
// Permissions contains user permissions for this media.
Permissions *Permissions `protobuf:"bytes,29,opt,name=permissions,proto3" json:"permissions,omitempty"`
// Links contains related links.
Links map[string]string `` /* 138-byte string literal not displayed */
// Internal contains internal metadata.
Internal *Internal `protobuf:"bytes,31,opt,name=internal,proto3" json:"internal,omitempty"`
// SortValues can be used for pagination in search results. Only available
// when the MediaItem was returned as part of a search result.
SortValues []string `protobuf:"bytes,32,rep,name=sort_values,json=sortValues,proto3" json:"sort_values,omitempty"`
// contains filtered or unexported fields
}
func (*MediaItem) Descriptor
deprecated
func (*MediaItem) GetAltTextAccessibility ¶
func (*MediaItem) GetArchive ¶
func (*MediaItem) GetCategory ¶
func (*MediaItem) GetCountry ¶
func (*MediaItem) GetCreator ¶
func (*MediaItem) GetCreditLine ¶
func (*MediaItem) GetDateArchived ¶
func (*MediaItem) GetDateCreated ¶
func (x *MediaItem) GetDateCreated() *ImpreciseTimestamp
func (*MediaItem) GetDescription ¶
func (*MediaItem) GetHeadline ¶
func (*MediaItem) GetImageRating ¶
func (*MediaItem) GetImageSupplierImageId ¶
func (*MediaItem) GetInstructions ¶
func (*MediaItem) GetInternal ¶
func (*MediaItem) GetKeywords ¶
func (*MediaItem) GetPermissions ¶
func (x *MediaItem) GetPermissions() *Permissions
func (*MediaItem) GetPersonsShown ¶
func (*MediaItem) GetPreviews ¶
func (*MediaItem) GetRestrictions ¶
func (*MediaItem) GetSortValues ¶
func (*MediaItem) GetSuppliers ¶
func (*MediaItem) GetUsageTerms ¶
func (*MediaItem) GetVersionCount ¶
func (*MediaItem) ProtoMessage ¶
func (*MediaItem) ProtoMessage()
func (*MediaItem) ProtoReflect ¶
func (x *MediaItem) ProtoReflect() protoreflect.Message
type Metadata ¶ added in v0.4.2
type Metadata interface {
// GetAssignment returns metadata for a specific assignment.
GetAssignment(context.Context, *GetAssignmentRequest) (*GetAssignmentResponse, error)
// ListAssignments returns metadata for all assignments.
ListAssignments(context.Context, *ListAssignmentsRequest) (*ListAssignmentsResponse, error)
}
Metadata service for retrieving assignment metadata.
func NewMetadataJSONClient ¶ added in v0.4.2
func NewMetadataJSONClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Metadata
NewMetadataJSONClient creates a JSON client that implements the Metadata interface. It communicates using JSON and can be configured with a custom HTTPClient.
func NewMetadataProtobufClient ¶ added in v0.4.2
func NewMetadataProtobufClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Metadata
NewMetadataProtobufClient creates a Protobuf client that implements the Metadata interface. It communicates using Protobuf and can be configured with a custom HTTPClient.
type Nynorsk ¶ added in v0.5.0
type Nynorsk interface {
// Translate translates a document between Scandinavian languages.
Translate(context.Context, *TranslateRequest) (*TranslateResponse, error)
// GetLanguagePrefs returns the available optional language forms.
GetLanguagePrefs(context.Context, *GetLanguagePrefsRequest) (*GetLanguagePrefsResponse, error)
// GetDocumentFormats returns the supported document formats.
GetDocumentFormats(context.Context, *GetDocumentFormatsRequest) (*GetDocumentFormatsResponse, error)
// GetPreferenceTemplates returns the available preference templates and the
// language forms they enable.
GetPreferenceTemplates(context.Context, *GetPreferenceTemplatesRequest) (*GetPreferenceTemplatesResponse, error)
}
Nynorsk service for translating documents using Nynorskroboten.
func NewNynorskJSONClient ¶ added in v0.5.0
func NewNynorskJSONClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Nynorsk
NewNynorskJSONClient creates a JSON client that implements the Nynorsk interface. It communicates using JSON and can be configured with a custom HTTPClient.
func NewNynorskProtobufClient ¶ added in v0.5.0
func NewNynorskProtobufClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Nynorsk
NewNynorskProtobufClient creates a Protobuf client that implements the Nynorsk interface. It communicates using Protobuf and can be configured with a custom HTTPClient.
type Orientation ¶
type Orientation int32
const ( Orientation_ORIENTATION_UNSPECIFIED Orientation = 0 Orientation_ORIENTATION_HORIZONTAL Orientation = 1 Orientation_ORIENTATION_VERTICAL Orientation = 2 Orientation_ORIENTATION_SQUARE Orientation = 3 )
func (Orientation) Descriptor ¶
func (Orientation) Descriptor() protoreflect.EnumDescriptor
func (Orientation) Enum ¶
func (x Orientation) Enum() *Orientation
func (Orientation) EnumDescriptor
deprecated
func (Orientation) EnumDescriptor() ([]byte, []int)
Deprecated: Use Orientation.Descriptor instead.
func (Orientation) Number ¶
func (x Orientation) Number() protoreflect.EnumNumber
func (Orientation) String ¶
func (x Orientation) String() string
func (Orientation) Type ¶
func (Orientation) Type() protoreflect.EnumType
type Origin ¶
type Origin int32
const ( Origin_ORIGIN_UNSPECIFIED Origin = 0 Origin_ORIGIN_UPLOAD Origin = 1 Origin_ORIGIN_GUEST Origin = 2 Origin_ORIGIN_GUESTFTP Origin = 3 Origin_ORIGIN_EMAIL Origin = 4 Origin_ORIGIN_IMPORT Origin = 5 Origin_ORIGIN_FTP Origin = 6 Origin_ORIGIN_LTR Origin = 7 Origin_ORIGIN_PS Origin = 8 Origin_ORIGIN_CMS Origin = 9 )
func (Origin) Descriptor ¶
func (Origin) Descriptor() protoreflect.EnumDescriptor
func (Origin) EnumDescriptor
deprecated
func (Origin) Number ¶
func (x Origin) Number() protoreflect.EnumNumber
func (Origin) Type ¶
func (Origin) Type() protoreflect.EnumType
type OriginInfo ¶
type OriginInfo struct {
// Key is the key of the origin.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// Name is the human readable name of the origin.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*OriginInfo) Descriptor
deprecated
func (*OriginInfo) Descriptor() ([]byte, []int)
Deprecated: Use OriginInfo.ProtoReflect.Descriptor instead.
func (*OriginInfo) GetKey ¶
func (x *OriginInfo) GetKey() string
func (*OriginInfo) GetName ¶
func (x *OriginInfo) GetName() string
func (*OriginInfo) ProtoMessage ¶
func (*OriginInfo) ProtoMessage()
func (*OriginInfo) ProtoReflect ¶
func (x *OriginInfo) ProtoReflect() protoreflect.Message
func (*OriginInfo) Reset ¶
func (x *OriginInfo) Reset()
func (*OriginInfo) String ¶
func (x *OriginInfo) String() string
type Page ¶
type Page struct {
Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
Total int32 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"`
// SearchAfter can be used for pagination in search results.
SearchAfter []string `protobuf:"bytes,5,rep,name=search_after,json=searchAfter,proto3" json:"search_after,omitempty"`
// contains filtered or unexported fields
}
func (*Page) Descriptor
deprecated
func (*Page) GetSearchAfter ¶
func (*Page) ProtoMessage ¶
func (*Page) ProtoMessage()
func (*Page) ProtoReflect ¶
func (x *Page) ProtoReflect() protoreflect.Message
type Permissions ¶
type Permissions struct {
// Edit indicates if the user can edit this media.
Edit bool `protobuf:"varint,1,opt,name=edit,proto3" json:"edit,omitempty"`
// Delete indicates if the user can delete this media.
Delete bool `protobuf:"varint,2,opt,name=delete,proto3" json:"delete,omitempty"`
// Download indicates if the user can download this media.
Download bool `protobuf:"varint,3,opt,name=download,proto3" json:"download,omitempty"`
// contains filtered or unexported fields
}
func (*Permissions) Descriptor
deprecated
func (*Permissions) Descriptor() ([]byte, []int)
Deprecated: Use Permissions.ProtoReflect.Descriptor instead.
func (*Permissions) GetDelete ¶
func (x *Permissions) GetDelete() bool
func (*Permissions) GetDownload ¶
func (x *Permissions) GetDownload() bool
func (*Permissions) GetEdit ¶
func (x *Permissions) GetEdit() bool
func (*Permissions) ProtoMessage ¶
func (*Permissions) ProtoMessage()
func (*Permissions) ProtoReflect ¶
func (x *Permissions) ProtoReflect() protoreflect.Message
func (*Permissions) Reset ¶
func (x *Permissions) Reset()
func (*Permissions) String ¶
func (x *Permissions) String() string
type Person ¶
type Person struct {
// PersonName is the name of the person in the image.
PersonName string `protobuf:"bytes,1,opt,name=person_name,json=personName,proto3" json:"person_name,omitempty"`
// PersonDescription is the description of the person, often their title.
PersonDescription string `protobuf:"bytes,2,opt,name=person_description,json=personDescription,proto3" json:"person_description,omitempty"`
// contains filtered or unexported fields
}
func (*Person) Descriptor
deprecated
func (*Person) GetPersonDescription ¶
func (*Person) GetPersonName ¶
func (*Person) ProtoMessage ¶
func (*Person) ProtoMessage()
func (*Person) ProtoReflect ¶
func (x *Person) ProtoReflect() protoreflect.Message
type PreferenceValue ¶ added in v0.5.0
type PreferenceValue struct {
// Types that are valid to be assigned to Value:
//
// *PreferenceValue_Enabled
// *PreferenceValue_Words
Value isPreferenceValue_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}
PreferenceValue represents a language preference setting. It can be a boolean to enable/disable a form, or a list of specific words to include or exclude. Prefix a word with "-" to exclude it from the form.
func (*PreferenceValue) Descriptor
deprecated
added in
v0.5.0
func (*PreferenceValue) Descriptor() ([]byte, []int)
Deprecated: Use PreferenceValue.ProtoReflect.Descriptor instead.
func (*PreferenceValue) GetEnabled ¶ added in v0.5.0
func (x *PreferenceValue) GetEnabled() bool
func (*PreferenceValue) GetValue ¶ added in v0.5.0
func (x *PreferenceValue) GetValue() isPreferenceValue_Value
func (*PreferenceValue) GetWords ¶ added in v0.5.0
func (x *PreferenceValue) GetWords() *StringList
func (*PreferenceValue) ProtoMessage ¶ added in v0.5.0
func (*PreferenceValue) ProtoMessage()
func (*PreferenceValue) ProtoReflect ¶ added in v0.5.0
func (x *PreferenceValue) ProtoReflect() protoreflect.Message
func (*PreferenceValue) Reset ¶ added in v0.5.0
func (x *PreferenceValue) Reset()
func (*PreferenceValue) String ¶ added in v0.5.0
func (x *PreferenceValue) String() string
type PreferenceValue_Enabled ¶ added in v0.5.0
type PreferenceValue_Enabled struct {
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3,oneof"`
}
type PreferenceValue_Words ¶ added in v0.5.0
type PreferenceValue_Words struct {
Words *StringList `protobuf:"bytes,2,opt,name=words,proto3,oneof"`
}
type Preview ¶
type Preview struct {
// Width is the width of the preview image.
Width int32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"`
// Height is the height of the preview image.
Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
// URL is the URL of the preview, can be used to preview the file.
Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
// Type is the media type of the preview.
Type PreviewType `protobuf:"varint,4,opt,name=type,proto3,enum=ttab.ntb.PreviewType" json:"type,omitempty"`
// contains filtered or unexported fields
}
func (*Preview) Descriptor
deprecated
func (*Preview) GetType ¶
func (x *Preview) GetType() PreviewType
func (*Preview) ProtoMessage ¶
func (*Preview) ProtoMessage()
func (*Preview) ProtoReflect ¶
func (x *Preview) ProtoReflect() protoreflect.Message
type PreviewType ¶
type PreviewType int32
const ( PreviewType_PREVIEW_UNKNOWN PreviewType = 0 PreviewType_PREVIEW_IMAGE PreviewType = 1 PreviewType_PREVIEW_VIDEO PreviewType = 2 )
func (PreviewType) Descriptor ¶
func (PreviewType) Descriptor() protoreflect.EnumDescriptor
func (PreviewType) Enum ¶
func (x PreviewType) Enum() *PreviewType
func (PreviewType) EnumDescriptor
deprecated
func (PreviewType) EnumDescriptor() ([]byte, []int)
Deprecated: Use PreviewType.Descriptor instead.
func (PreviewType) Number ¶
func (x PreviewType) Number() protoreflect.EnumNumber
func (PreviewType) String ¶
func (x PreviewType) String() string
func (PreviewType) Type ¶
func (PreviewType) Type() protoreflect.EnumType
type SearchRequest ¶
type SearchRequest struct {
// Archive to search in.
Archive string `protobuf:"bytes,1,opt,name=archive,proto3" json:"archive,omitempty"`
// Search limit, max 200, default: 50.
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
// Offset - search offset, max 10000, default: 0.
Offset int32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
// Sort options to the list.
Sort *Sort `protobuf:"bytes,4,opt,name=sort,proto3" json:"sort,omitempty"`
// Query - freetext query.
Query string `protobuf:"bytes,5,opt,name=query,proto3" json:"query,omitempty"`
// ItemId - filter by the itemId.
ItemId string `protobuf:"bytes,6,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
// City filter.
City string `protobuf:"bytes,7,opt,name=city,proto3" json:"city,omitempty"`
// Country filter.
Country string `protobuf:"bytes,8,opt,name=country,proto3" json:"country,omitempty"`
// Creator filter (photographer).
Creator string `protobuf:"bytes,9,opt,name=creator,proto3" json:"creator,omitempty"`
// Ids filters by asset ids.
Ids []string `protobuf:"bytes,10,rep,name=ids,proto3" json:"ids,omitempty"`
// Keywords filter.
Keywords []string `protobuf:"bytes,11,rep,name=keywords,proto3" json:"keywords,omitempty"`
// Filter on collections.
Collections []int32 `protobuf:"varint,12,rep,packed,name=collections,proto3" json:"collections,omitempty"`
// Filter on albums.
Albums []int32 `protobuf:"varint,13,rep,packed,name=albums,proto3" json:"albums,omitempty"`
// Filter on categories.
Categories []string `protobuf:"bytes,14,rep,name=categories,proto3" json:"categories,omitempty"`
// Include/exclude assets based on location.
Locations string `protobuf:"bytes,15,opt,name=locations,proto3" json:"locations,omitempty"`
// Filter on jobId.
JobId string `protobuf:"bytes,16,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
// Filter on image orientation.
Orientation Orientation `protobuf:"varint,17,opt,name=orientation,proto3,enum=ttab.ntb.Orientation" json:"orientation,omitempty"`
// View results after this point in list.
SearchAfter []string `protobuf:"bytes,18,rep,name=search_after,json=searchAfter,proto3" json:"search_after,omitempty"`
// Filter on origins.
Origins []Origin `protobuf:"varint,19,rep,packed,name=origins,proto3,enum=ttab.ntb.Origin" json:"origins,omitempty"`
// Filter on file type.
FileType FileType `protobuf:"varint,20,opt,name=file_type,json=fileType,proto3,enum=ttab.ntb.FileType" json:"file_type,omitempty"`
// Get assets created on and after the RFC3339 timestamp.
CreatedMin string `protobuf:"bytes,21,opt,name=created_min,json=createdMin,proto3" json:"created_min,omitempty"`
// Get assets created on and before the RFC3339 timestamp.
CreatedMax string `protobuf:"bytes,22,opt,name=created_max,json=createdMax,proto3" json:"created_max,omitempty"`
// Set to true to search against items outside of your subscription agreement.
OutsideSubscription bool `protobuf:"varint,23,opt,name=outside_subscription,json=outsideSubscription,proto3" json:"outside_subscription,omitempty"`
// contains filtered or unexported fields
}
func (*SearchRequest) Descriptor
deprecated
func (*SearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) GetAlbums ¶
func (x *SearchRequest) GetAlbums() []int32
func (*SearchRequest) GetArchive ¶
func (x *SearchRequest) GetArchive() string
func (*SearchRequest) GetCategories ¶
func (x *SearchRequest) GetCategories() []string
func (*SearchRequest) GetCity ¶
func (x *SearchRequest) GetCity() string
func (*SearchRequest) GetCollections ¶
func (x *SearchRequest) GetCollections() []int32
func (*SearchRequest) GetCountry ¶
func (x *SearchRequest) GetCountry() string
func (*SearchRequest) GetCreatedMax ¶
func (x *SearchRequest) GetCreatedMax() string
func (*SearchRequest) GetCreatedMin ¶
func (x *SearchRequest) GetCreatedMin() string
func (*SearchRequest) GetCreator ¶
func (x *SearchRequest) GetCreator() string
func (*SearchRequest) GetFileType ¶
func (x *SearchRequest) GetFileType() FileType
func (*SearchRequest) GetIds ¶
func (x *SearchRequest) GetIds() []string
func (*SearchRequest) GetItemId ¶
func (x *SearchRequest) GetItemId() string
func (*SearchRequest) GetJobId ¶
func (x *SearchRequest) GetJobId() string
func (*SearchRequest) GetKeywords ¶
func (x *SearchRequest) GetKeywords() []string
func (*SearchRequest) GetLimit ¶
func (x *SearchRequest) GetLimit() int32
func (*SearchRequest) GetLocations ¶
func (x *SearchRequest) GetLocations() string
func (*SearchRequest) GetOffset ¶
func (x *SearchRequest) GetOffset() int32
func (*SearchRequest) GetOrientation ¶
func (x *SearchRequest) GetOrientation() Orientation
func (*SearchRequest) GetOrigins ¶
func (x *SearchRequest) GetOrigins() []Origin
func (*SearchRequest) GetOutsideSubscription ¶
func (x *SearchRequest) GetOutsideSubscription() bool
func (*SearchRequest) GetQuery ¶
func (x *SearchRequest) GetQuery() string
func (*SearchRequest) GetSearchAfter ¶
func (x *SearchRequest) GetSearchAfter() []string
func (*SearchRequest) GetSort ¶
func (x *SearchRequest) GetSort() *Sort
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) ProtoReflect ¶
func (x *SearchRequest) ProtoReflect() protoreflect.Message
func (*SearchRequest) Reset ¶
func (x *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (x *SearchRequest) String() string
type SearchResponse ¶
type SearchResponse struct {
Page *Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
Data []*MediaItem `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*SearchResponse) Descriptor
deprecated
func (*SearchResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.
func (*SearchResponse) GetData ¶
func (x *SearchResponse) GetData() []*MediaItem
func (*SearchResponse) GetPage ¶
func (x *SearchResponse) GetPage() *Page
func (*SearchResponse) ProtoMessage ¶
func (*SearchResponse) ProtoMessage()
func (*SearchResponse) ProtoReflect ¶
func (x *SearchResponse) ProtoReflect() protoreflect.Message
func (*SearchResponse) Reset ¶
func (x *SearchResponse) Reset()
func (*SearchResponse) String ¶
func (x *SearchResponse) String() string
type Sort ¶
type Sort struct {
Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
Descending bool `protobuf:"varint,2,opt,name=descending,proto3" json:"descending,omitempty"`
// contains filtered or unexported fields
}
func (*Sort) Descriptor
deprecated
func (*Sort) GetDescending ¶
func (*Sort) ProtoMessage ¶
func (*Sort) ProtoMessage()
func (*Sort) ProtoReflect ¶
func (x *Sort) ProtoReflect() protoreflect.Message
type SortField ¶
type SortField struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*SortField) Descriptor
deprecated
func (*SortField) ProtoMessage ¶
func (*SortField) ProtoMessage()
func (*SortField) ProtoReflect ¶
func (x *SortField) ProtoReflect() protoreflect.Message
type StringList ¶ added in v0.5.0
type StringList struct {
Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
// contains filtered or unexported fields
}
func (*StringList) Descriptor
deprecated
added in
v0.5.0
func (*StringList) Descriptor() ([]byte, []int)
Deprecated: Use StringList.ProtoReflect.Descriptor instead.
func (*StringList) GetValues ¶ added in v0.5.0
func (x *StringList) GetValues() []string
func (*StringList) ProtoMessage ¶ added in v0.5.0
func (*StringList) ProtoMessage()
func (*StringList) ProtoReflect ¶ added in v0.5.0
func (x *StringList) ProtoReflect() protoreflect.Message
func (*StringList) Reset ¶ added in v0.5.0
func (x *StringList) Reset()
func (*StringList) String ¶ added in v0.5.0
func (x *StringList) String() string
type StringMap ¶ added in v0.5.0
type StringMap struct {
Entries map[string]string `` /* 141-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*StringMap) Descriptor
deprecated
added in
v0.5.0
func (*StringMap) GetEntries ¶ added in v0.5.0
func (*StringMap) ProtoMessage ¶ added in v0.5.0
func (*StringMap) ProtoMessage()
func (*StringMap) ProtoReflect ¶ added in v0.5.0
func (x *StringMap) ProtoReflect() protoreflect.Message
type TimestampPrecision ¶
type TimestampPrecision int32
const ( TimestampPrecision_TS_PRECISION_UNKNOWN TimestampPrecision = 0 TimestampPrecision_TS_PRECISION_FULL TimestampPrecision = 1 TimestampPrecision_TS_PRECISION_MINUTE TimestampPrecision = 2 TimestampPrecision_TS_PRECISION_HOUR TimestampPrecision = 3 TimestampPrecision_TS_PRECISION_DAY TimestampPrecision = 4 TimestampPrecision_TS_PRECISION_MONTH TimestampPrecision = 5 TimestampPrecision_TS_PRECISION_YEAR TimestampPrecision = 6 TimestampPrecision_TS_PRECISION_DECADE TimestampPrecision = 7 TimestampPrecision_TS_PRECISION_CENTURY TimestampPrecision = 8 )
func (TimestampPrecision) Descriptor ¶
func (TimestampPrecision) Descriptor() protoreflect.EnumDescriptor
func (TimestampPrecision) Enum ¶
func (x TimestampPrecision) Enum() *TimestampPrecision
func (TimestampPrecision) EnumDescriptor
deprecated
func (TimestampPrecision) EnumDescriptor() ([]byte, []int)
Deprecated: Use TimestampPrecision.Descriptor instead.
func (TimestampPrecision) Number ¶
func (x TimestampPrecision) Number() protoreflect.EnumNumber
func (TimestampPrecision) String ¶
func (x TimestampPrecision) String() string
func (TimestampPrecision) Type ¶
func (TimestampPrecision) Type() protoreflect.EnumType
type TranslateRequest ¶ added in v0.5.0
type TranslateRequest struct {
// The document content to translate.
//
// Types that are valid to be assigned to Document:
//
// *TranslateRequest_Text
// *TranslateRequest_Texts
// *TranslateRequest_TextMap
Document isTranslateRequest_Document `protobuf_oneof:"document"`
// The document format (e.g. "html", "txt", "docx", "json"). Defaults to
// "html".
FileType string `protobuf:"bytes,4,opt,name=file_type,json=fileType,proto3" json:"file_type,omitempty"`
// Controls translation of text inside HTML lang-tagged elements. Only
// applies when file_type is "html".
LangParameterTranslate LangParameterTranslate `` /* 167-byte string literal not displayed */
// A preference template name ("standard", "tradisjonell", or "moderne").
// Can be combined with individual prefs.
PrefsTemplate string `protobuf:"bytes,6,opt,name=prefs_template,json=prefsTemplate,proto3" json:"prefs_template,omitempty"`
// Optional GUID to identify this document for translation tracking. If
// empty, the service generates one.
Guid string `protobuf:"bytes,7,opt,name=guid,proto3" json:"guid,omitempty"`
// Source language as an ISO 639-1 code, optionally with a region subtag
// (e.g. "nb", "nb-no", "nn", "sv", "da"). Defaults to "nb".
SourceLanguage string `protobuf:"bytes,8,opt,name=source_language,json=sourceLanguage,proto3" json:"source_language,omitempty"`
// Target language as an ISO 639-1 code, optionally with a region subtag
// (e.g. "nn", "nb", "sv", "da"). Defaults to "nn".
TargetLanguage string `protobuf:"bytes,9,opt,name=target_language,json=targetLanguage,proto3" json:"target_language,omitempty"`
// Enable AI-assisted post-editing of the translation.
PostEdit bool `protobuf:"varint,10,opt,name=post_edit,json=postEdit,proto3" json:"post_edit,omitempty"`
// Optional language form preferences keyed by form name.
Prefs map[string]*PreferenceValue `` /* 138-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*TranslateRequest) Descriptor
deprecated
added in
v0.5.0
func (*TranslateRequest) Descriptor() ([]byte, []int)
Deprecated: Use TranslateRequest.ProtoReflect.Descriptor instead.
func (*TranslateRequest) GetDocument ¶ added in v0.5.0
func (x *TranslateRequest) GetDocument() isTranslateRequest_Document
func (*TranslateRequest) GetFileType ¶ added in v0.5.0
func (x *TranslateRequest) GetFileType() string
func (*TranslateRequest) GetGuid ¶ added in v0.5.0
func (x *TranslateRequest) GetGuid() string
func (*TranslateRequest) GetLangParameterTranslate ¶ added in v0.5.0
func (x *TranslateRequest) GetLangParameterTranslate() LangParameterTranslate
func (*TranslateRequest) GetPostEdit ¶ added in v0.5.0
func (x *TranslateRequest) GetPostEdit() bool
func (*TranslateRequest) GetPrefs ¶ added in v0.5.0
func (x *TranslateRequest) GetPrefs() map[string]*PreferenceValue
func (*TranslateRequest) GetPrefsTemplate ¶ added in v0.5.0
func (x *TranslateRequest) GetPrefsTemplate() string
func (*TranslateRequest) GetSourceLanguage ¶ added in v0.5.0
func (x *TranslateRequest) GetSourceLanguage() string
func (*TranslateRequest) GetTargetLanguage ¶ added in v0.5.0
func (x *TranslateRequest) GetTargetLanguage() string
func (*TranslateRequest) GetText ¶ added in v0.5.0
func (x *TranslateRequest) GetText() string
func (*TranslateRequest) GetTextMap ¶ added in v0.5.0
func (x *TranslateRequest) GetTextMap() *StringMap
func (*TranslateRequest) GetTexts ¶ added in v0.5.0
func (x *TranslateRequest) GetTexts() *StringList
func (*TranslateRequest) ProtoMessage ¶ added in v0.5.0
func (*TranslateRequest) ProtoMessage()
func (*TranslateRequest) ProtoReflect ¶ added in v0.5.0
func (x *TranslateRequest) ProtoReflect() protoreflect.Message
func (*TranslateRequest) Reset ¶ added in v0.5.0
func (x *TranslateRequest) Reset()
func (*TranslateRequest) String ¶ added in v0.5.0
func (x *TranslateRequest) String() string
type TranslateRequest_Text ¶ added in v0.5.0
type TranslateRequest_Text struct {
// A single document as plain text or base64-encoded binary.
Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof"`
}
type TranslateRequest_TextMap ¶ added in v0.5.0
type TranslateRequest_TextMap struct {
// Multiple document fragments as named key-value pairs.
TextMap *StringMap `protobuf:"bytes,3,opt,name=text_map,json=textMap,proto3,oneof"`
}
type TranslateRequest_Texts ¶ added in v0.5.0
type TranslateRequest_Texts struct {
// Multiple document fragments as a list, translated in order.
Texts *StringList `protobuf:"bytes,2,opt,name=texts,proto3,oneof"`
}
type TranslateResponse ¶ added in v0.5.0
type TranslateResponse struct {
// The translated document in the same format as the request.
//
// Types that are valid to be assigned to Document:
//
// *TranslateResponse_Text
// *TranslateResponse_Texts
// *TranslateResponse_TextMap
Document isTranslateResponse_Document `protobuf_oneof:"document"`
// The GUID associated with this translation.
Guid string `protobuf:"bytes,4,opt,name=guid,proto3" json:"guid,omitempty"`
// contains filtered or unexported fields
}
func (*TranslateResponse) Descriptor
deprecated
added in
v0.5.0
func (*TranslateResponse) Descriptor() ([]byte, []int)
Deprecated: Use TranslateResponse.ProtoReflect.Descriptor instead.
func (*TranslateResponse) GetDocument ¶ added in v0.5.0
func (x *TranslateResponse) GetDocument() isTranslateResponse_Document
func (*TranslateResponse) GetGuid ¶ added in v0.5.0
func (x *TranslateResponse) GetGuid() string
func (*TranslateResponse) GetText ¶ added in v0.5.0
func (x *TranslateResponse) GetText() string
func (*TranslateResponse) GetTextMap ¶ added in v0.5.0
func (x *TranslateResponse) GetTextMap() *StringMap
func (*TranslateResponse) GetTexts ¶ added in v0.5.0
func (x *TranslateResponse) GetTexts() *StringList
func (*TranslateResponse) ProtoMessage ¶ added in v0.5.0
func (*TranslateResponse) ProtoMessage()
func (*TranslateResponse) ProtoReflect ¶ added in v0.5.0
func (x *TranslateResponse) ProtoReflect() protoreflect.Message
func (*TranslateResponse) Reset ¶ added in v0.5.0
func (x *TranslateResponse) Reset()
func (*TranslateResponse) String ¶ added in v0.5.0
func (x *TranslateResponse) String() string
type TranslateResponse_Text ¶ added in v0.5.0
type TranslateResponse_Text struct {
Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof"`
}
type TranslateResponse_TextMap ¶ added in v0.5.0
type TranslateResponse_TextMap struct {
TextMap *StringMap `protobuf:"bytes,3,opt,name=text_map,json=textMap,proto3,oneof"`
}
type TranslateResponse_Texts ¶ added in v0.5.0
type TranslateResponse_Texts struct {
Texts *StringList `protobuf:"bytes,2,opt,name=texts,proto3,oneof"`
}
type TwirpServer ¶
type TwirpServer interface {
http.Handler
// ServiceDescriptor returns gzipped bytes describing the .proto file that
// this service was generated from. Once unzipped, the bytes can be
// unmarshalled as a
// google.golang.org/protobuf/types/descriptorpb.FileDescriptorProto.
//
// The returned integer is the index of this particular service within that
// FileDescriptorProto's 'Service' slice of ServiceDescriptorProtos. This is a
// low-level field, expected to be used for reflection.
ServiceDescriptor() ([]byte, int)
// ProtocGenTwirpVersion is the semantic version string of the version of
// twirp used to generate this file.
ProtocGenTwirpVersion() string
// PathPrefix returns the HTTP URL path prefix for all methods handled by this
// service. This can be used with an HTTP mux to route Twirp requests.
// The path prefix is in the form: "/<prefix>/<package>.<Service>/"
// that is, everything in a Twirp route except for the <Method> at the end.
PathPrefix() string
}
TwirpServer is the interface generated server structs will support: they're HTTP handlers with additional methods for accessing metadata about the service. Those accessors are a low-level API for building reflection tools. Most people can think of TwirpServers as just http.Handlers.
func NewMediaServer ¶
func NewMediaServer(svc Media, opts ...interface{}) TwirpServer
NewMediaServer builds a TwirpServer that can be used as an http.Handler to handle HTTP requests that are routed to the right method in the provided svc implementation. The opts are twirp.ServerOption modifiers, for example twirp.WithServerHooks(hooks).
func NewMetadataServer ¶ added in v0.4.2
func NewMetadataServer(svc Metadata, opts ...interface{}) TwirpServer
NewMetadataServer builds a TwirpServer that can be used as an http.Handler to handle HTTP requests that are routed to the right method in the provided svc implementation. The opts are twirp.ServerOption modifiers, for example twirp.WithServerHooks(hooks).
func NewNynorskServer ¶ added in v0.5.0
func NewNynorskServer(svc Nynorsk, opts ...interface{}) TwirpServer
NewNynorskServer builds a TwirpServer that can be used as an http.Handler to handle HTTP requests that are routed to the right method in the provided svc implementation. The opts are twirp.ServerOption modifiers, for example twirp.WithServerHooks(hooks).