test

package
v0.0.0-...-fbfd164 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Lang_name = map[int32]string{
	0: "en",
	1: "fr",
	2: "es",
	3: "de",
	4: "nl",
}
View Source
var Lang_value = map[string]int32{
	"en": 0,
	"fr": 1,
	"es": 2,
	"de": 3,
	"nl": 4,
}
View Source
var MediaType_name = map[int32]string{
	0:  "unknown",
	10: "dispute_files",
	11: "chat_files",
	12: "photos",
	13: "review_photos",
	14: "avatars",
}
View Source
var MediaType_value = map[string]int32{
	"unknown":       0,
	"dispute_files": 10,
	"chat_files":    11,
	"photos":        12,
	"review_photos": 13,
	"avatars":       14,
}

Functions

This section is empty.

Types

type DisplayLocale

type DisplayLocale struct {
	// lang code according to ISO 639-1
	Lang Lang `protobuf:"varint,1,opt,name=lang,proto3,enum=Lang" json:"lang,omitempty"`
	// region as string
	Region *wrappers.StringValue `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"`
	// desired currency name
	Currency             *wrappers.StringValue `protobuf:"bytes,3,opt,name=currency,proto3" json:"currency,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

DisplayLocale sets user locale preferences, the backend will format responses to match these preferences.

func (*DisplayLocale) Descriptor

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

func (*DisplayLocale) GetCurrency

func (m *DisplayLocale) GetCurrency() *wrappers.StringValue

func (*DisplayLocale) GetLang

func (m *DisplayLocale) GetLang() Lang

func (*DisplayLocale) GetRegion

func (m *DisplayLocale) GetRegion() *wrappers.StringValue

func (*DisplayLocale) ProtoMessage

func (*DisplayLocale) ProtoMessage()

func (*DisplayLocale) Reset

func (m *DisplayLocale) Reset()

func (*DisplayLocale) String

func (m *DisplayLocale) String() string

func (*DisplayLocale) XXX_DiscardUnknown

func (m *DisplayLocale) XXX_DiscardUnknown()

func (*DisplayLocale) XXX_Marshal

func (m *DisplayLocale) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DisplayLocale) XXX_Merge

func (dst *DisplayLocale) XXX_Merge(src proto.Message)

func (*DisplayLocale) XXX_Size

func (m *DisplayLocale) XXX_Size() int

func (*DisplayLocale) XXX_Unmarshal

func (m *DisplayLocale) XXX_Unmarshal(b []byte) error

type File

type File struct {
	// FileID is an unique file hash.
	FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
	// ParentID of the object containing a reference to this file, e.g. a gallery ID.
	ParentId *wrappers.StringValue `protobuf:"bytes,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	// OwnerID is an Account ID of the file owner.
	OwnerId *wrappers.StringValue `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
	// Name is the filename of the uploaded resource.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// SizeBytes is filesize in bytes.
	SizeBytes int64 `protobuf:"varint,5,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
	// MediaType specifies media type of this file
	MediaType MediaType `protobuf:"varint,6,opt,name=media_type,json=mediaType,proto3,enum=MediaType" json:"media_type,omitempty"`
	// ContentType is the standard content type specifier.
	ContentType *wrappers.StringValue `protobuf:"bytes,7,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
	// CreatedAt contains timestamp file has been uploaded on.
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// ContentURL is a link to the original file, if it must not be processed (i.e. document).
	ContentUrl *wrappers.StringValue `protobuf:"bytes,9,opt,name=content_url,json=contentUrl,proto3" json:"content_url,omitempty"`
	// Thumbnails contains a map of resized photo per different photo resolution
	Thumbnails           map[string]string `` /* 162-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

File represents an uploaded file.

func (*File) Descriptor

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

func (*File) GetContentType

func (m *File) GetContentType() *wrappers.StringValue

func (*File) GetContentUrl

func (m *File) GetContentUrl() *wrappers.StringValue

func (*File) GetCreatedAt

func (m *File) GetCreatedAt() *timestamp.Timestamp

func (*File) GetFileId

func (m *File) GetFileId() string

func (*File) GetMediaType

func (m *File) GetMediaType() MediaType

func (*File) GetName

func (m *File) GetName() string

func (*File) GetOwnerId

func (m *File) GetOwnerId() *wrappers.StringValue

func (*File) GetParentId

func (m *File) GetParentId() *wrappers.StringValue

func (*File) GetSizeBytes

func (m *File) GetSizeBytes() int64

func (*File) GetThumbnails

func (m *File) GetThumbnails() map[string]string

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) Reset

func (m *File) Reset()

func (*File) String

func (m *File) String() string

func (*File) XXX_DiscardUnknown

func (m *File) XXX_DiscardUnknown()

func (*File) XXX_Marshal

func (m *File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*File) XXX_Merge

func (dst *File) XXX_Merge(src proto.Message)

func (*File) XXX_Size

func (m *File) XXX_Size() int

func (*File) XXX_Unmarshal

func (m *File) XXX_Unmarshal(b []byte) error

type ID

type ID struct {
	// The string value.
	V                    string   `protobuf:"bytes,1,opt,name=v,proto3" json:"v,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ID is a type that requires a field to have unique value that can later will be used for indexed lookups and aggregations. type string ID;

func (*ID) Descriptor

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

func (*ID) GetV

func (m *ID) GetV() string

func (*ID) ProtoMessage

func (*ID) ProtoMessage()

func (*ID) Reset

func (m *ID) Reset()

func (*ID) String

func (m *ID) String() string

func (*ID) XXX_DiscardUnknown

func (m *ID) XXX_DiscardUnknown()

func (*ID) XXX_Marshal

func (m *ID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ID) XXX_Merge

func (dst *ID) XXX_Merge(src proto.Message)

func (*ID) XXX_Size

func (m *ID) XXX_Size() int

func (*ID) XXX_Unmarshal

func (m *ID) XXX_Unmarshal(b []byte) error

type Lang

type Lang int32

Lang code per ISO 639-1

const (
	// English (default)
	Lang_en Lang = 0
	// French
	Lang_fr Lang = 1
	// Spanish
	Lang_es Lang = 2
	// German
	Lang_de Lang = 3
	// Dutch
	Lang_nl Lang = 4
)

func (Lang) EnumDescriptor

func (Lang) EnumDescriptor() ([]byte, []int)

func (Lang) String

func (x Lang) String() string

type MediaType

type MediaType int32
const (
	MediaType_unknown MediaType = 0
	// `dispute_files` specifies type of file uploads that will be used as attachments
	// in dispute chat messages.
	MediaType_dispute_files MediaType = 10
	// `chat_files` specifies type of file uploads that will be used as attachments
	// in regular host-guest and group chats.
	MediaType_chat_files MediaType = 11
	// `photos` specifies type of file uploads that will be used as gallery items
	// for listing creation.
	MediaType_photos MediaType = 12
	// `review_photos` specifies type of file uploads that will be used as attachments
	// in reviews from guests.
	MediaType_review_photos MediaType = 13
	// `avatars` specifies type of file uploads that will be used as avatar images.
	MediaType_avatars MediaType = 14
)

func (MediaType) EnumDescriptor

func (MediaType) EnumDescriptor() ([]byte, []int)

func (MediaType) String

func (x MediaType) String() string

type PhotoResolution

type PhotoResolution struct {
	// Width of photo, optional
	W *wrappers.Int32Value `protobuf:"bytes,1,opt,name=W,json=w,proto3" json:"W,omitempty"`
	// Height of photo, optional
	H                    *wrappers.Int32Value `protobuf:"bytes,2,opt,name=H,json=h,proto3" json:"H,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

PhotoResolution specifies Width and Height for a photo thumbnail. Must be in WxH format.

func (*PhotoResolution) Descriptor

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

func (*PhotoResolution) GetH

func (m *PhotoResolution) GetH() *wrappers.Int32Value

func (*PhotoResolution) GetW

func (m *PhotoResolution) GetW() *wrappers.Int32Value

func (*PhotoResolution) ProtoMessage

func (*PhotoResolution) ProtoMessage()

func (*PhotoResolution) Reset

func (m *PhotoResolution) Reset()

func (*PhotoResolution) String

func (m *PhotoResolution) String() string

func (*PhotoResolution) XXX_DiscardUnknown

func (m *PhotoResolution) XXX_DiscardUnknown()

func (*PhotoResolution) XXX_Marshal

func (m *PhotoResolution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PhotoResolution) XXX_Merge

func (dst *PhotoResolution) XXX_Merge(src proto.Message)

func (*PhotoResolution) XXX_Size

func (m *PhotoResolution) XXX_Size() int

func (*PhotoResolution) XXX_Unmarshal

func (m *PhotoResolution) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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