proto

package
v0.0.0-...-f17293a Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UploadStatusCode_name = map[int32]string{
		0: "UploadStatusCodeUnknown",
		1: "Ok",
		2: "Failed",
	}
	UploadStatusCode_value = map[string]int32{
		"UploadStatusCodeUnknown": 0,
		"Ok":                      1,
		"Failed":                  2,
	}
)

Enum value maps for UploadStatusCode.

View Source
var (
	DownloadStatusCode_name = map[int32]string{
		0: "DownloadStatusCodeUnknown",
		1: "Download_Ok",
		2: "Download_Failed",
	}
	DownloadStatusCode_value = map[string]int32{
		"DownloadStatusCodeUnknown": 0,
		"Download_Ok":               1,
		"Download_Failed":           2,
	}
)

Enum value maps for DownloadStatusCode.

View Source
var (
	HealthCheckResponse_ServingStatus_name = map[int32]string{
		0: "UNKNOWN",
		1: "SERVING",
		2: "NOT_SERVING",
		3: "SERVICE_UNKNOWN",
	}
	HealthCheckResponse_ServingStatus_value = map[string]int32{
		"UNKNOWN":         0,
		"SERVING":         1,
		"NOT_SERVING":     2,
		"SERVICE_UNKNOWN": 3,
	}
)

Enum value maps for HealthCheckResponse_ServingStatus.

Functions

This section is empty.

Types

type DownloadStatusCode

type DownloadStatusCode int32
const (
	DownloadStatusCode_DownloadStatusCodeUnknown DownloadStatusCode = 0
	DownloadStatusCode_Download_Ok               DownloadStatusCode = 1
	DownloadStatusCode_Download_Failed           DownloadStatusCode = 2
)

func (DownloadStatusCode) Descriptor

func (DownloadStatusCode) Enum

func (DownloadStatusCode) EnumDescriptor deprecated

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

Deprecated: Use DownloadStatusCode.Descriptor instead.

func (DownloadStatusCode) Number

func (DownloadStatusCode) String

func (x DownloadStatusCode) String() string

func (DownloadStatusCode) Type

type ErrorData

type ErrorData struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Code    int32  `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrorData) Descriptor deprecated

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

Deprecated: Use ErrorData.ProtoReflect.Descriptor instead.

func (*ErrorData) GetCode

func (x *ErrorData) GetCode() int32

func (*ErrorData) GetMessage

func (x *ErrorData) GetMessage() string

func (*ErrorData) ProtoMessage

func (*ErrorData) ProtoMessage()

func (*ErrorData) ProtoReflect

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

func (*ErrorData) Reset

func (x *ErrorData) Reset()

func (*ErrorData) String

func (x *ErrorData) String() string

type FileDownloadRequest

type FileDownloadRequest struct {
	MediaId string `protobuf:"bytes,1,opt,name=media_id,json=mediaId,proto3" json:"media_id,omitempty"`
	Token   string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*FileDownloadRequest) Descriptor deprecated

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

Deprecated: Use FileDownloadRequest.ProtoReflect.Descriptor instead.

func (*FileDownloadRequest) GetMediaId

func (x *FileDownloadRequest) GetMediaId() string

func (*FileDownloadRequest) GetToken

func (x *FileDownloadRequest) GetToken() string

func (*FileDownloadRequest) ProtoMessage

func (*FileDownloadRequest) ProtoMessage()

func (*FileDownloadRequest) ProtoReflect

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

func (*FileDownloadRequest) Reset

func (x *FileDownloadRequest) Reset()

func (*FileDownloadRequest) String

func (x *FileDownloadRequest) String() string

type FileDownloadResponse

type FileDownloadResponse struct {
	Info     *MediaInfo         `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	Content  []byte             `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	Message  string             `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	Code     DownloadStatusCode `protobuf:"varint,4,opt,name=code,proto3,enum=proto.DownloadStatusCode" json:"code,omitempty"`
	SavePath string             `protobuf:"bytes,5,opt,name=save_path,proto3" json:"save_path,omitempty"`
	// contains filtered or unexported fields
}

func (*FileDownloadResponse) Descriptor deprecated

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

Deprecated: Use FileDownloadResponse.ProtoReflect.Descriptor instead.

func (*FileDownloadResponse) GetCode

func (*FileDownloadResponse) GetContent

func (x *FileDownloadResponse) GetContent() []byte

func (*FileDownloadResponse) GetInfo

func (x *FileDownloadResponse) GetInfo() *MediaInfo

func (*FileDownloadResponse) GetMessage

func (x *FileDownloadResponse) GetMessage() string

func (*FileDownloadResponse) GetSavePath

func (x *FileDownloadResponse) GetSavePath() string

func (*FileDownloadResponse) ProtoMessage

func (*FileDownloadResponse) ProtoMessage()

func (*FileDownloadResponse) ProtoReflect

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

func (*FileDownloadResponse) Reset

func (x *FileDownloadResponse) Reset()

func (*FileDownloadResponse) String

func (x *FileDownloadResponse) String() string

type FileUploadRequest

type FileUploadRequest struct {
	Content   []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	Filename  string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
	SavePath  string `protobuf:"bytes,3,opt,name=save_path,proto3" json:"save_path,omitempty"`
	Level     int32  `protobuf:"varint,4,opt,name=level,proto3" json:"level,omitempty"`
	OutUserId int64  `protobuf:"varint,5,opt,name=out_user_id,proto3" json:"out_user_id,omitempty"`
	CompanyId int64  `protobuf:"varint,6,opt,name=company_id,proto3" json:"company_id,omitempty"`
	Size      int64  `protobuf:"varint,7,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*FileUploadRequest) Descriptor deprecated

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

Deprecated: Use FileUploadRequest.ProtoReflect.Descriptor instead.

func (*FileUploadRequest) GetCompanyId

func (x *FileUploadRequest) GetCompanyId() int64

func (*FileUploadRequest) GetContent

func (x *FileUploadRequest) GetContent() []byte

func (*FileUploadRequest) GetFilename

func (x *FileUploadRequest) GetFilename() string

func (*FileUploadRequest) GetLevel

func (x *FileUploadRequest) GetLevel() int32

func (*FileUploadRequest) GetOutUserId

func (x *FileUploadRequest) GetOutUserId() int64

func (*FileUploadRequest) GetSavePath

func (x *FileUploadRequest) GetSavePath() string

func (*FileUploadRequest) GetSize

func (x *FileUploadRequest) GetSize() int64

func (*FileUploadRequest) ProtoMessage

func (*FileUploadRequest) ProtoMessage()

func (*FileUploadRequest) ProtoReflect

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

func (*FileUploadRequest) Reset

func (x *FileUploadRequest) Reset()

func (*FileUploadRequest) String

func (x *FileUploadRequest) String() string

type FileUploadResponse

type FileUploadResponse struct {
	Message string           `protobuf:"bytes,1,opt,name=Message,json=message,proto3" json:"Message,omitempty"`
	Media   *MediaInfo       `protobuf:"bytes,3,opt,name=Media,json=media,proto3" json:"Media,omitempty"`
	Code    UploadStatusCode `protobuf:"varint,2,opt,name=Code,json=code,proto3,enum=proto.UploadStatusCode" json:"Code,omitempty"`
	// contains filtered or unexported fields
}

func (*FileUploadResponse) Descriptor deprecated

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

Deprecated: Use FileUploadResponse.ProtoReflect.Descriptor instead.

func (*FileUploadResponse) GetCode

func (x *FileUploadResponse) GetCode() UploadStatusCode

func (*FileUploadResponse) GetMedia

func (x *FileUploadResponse) GetMedia() *MediaInfo

func (*FileUploadResponse) GetMessage

func (x *FileUploadResponse) GetMessage() string

func (*FileUploadResponse) ProtoMessage

func (*FileUploadResponse) ProtoMessage()

func (*FileUploadResponse) ProtoReflect

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

func (*FileUploadResponse) Reset

func (x *FileUploadResponse) Reset()

func (*FileUploadResponse) String

func (x *FileUploadResponse) String() string

type HealthCheckRequest

type HealthCheckRequest struct {
	Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	// contains filtered or unexported fields
}

func (*HealthCheckRequest) Descriptor deprecated

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

Deprecated: Use HealthCheckRequest.ProtoReflect.Descriptor instead.

func (*HealthCheckRequest) GetService

func (x *HealthCheckRequest) GetService() string

func (*HealthCheckRequest) ProtoMessage

func (*HealthCheckRequest) ProtoMessage()

func (*HealthCheckRequest) ProtoReflect

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

func (*HealthCheckRequest) Reset

func (x *HealthCheckRequest) Reset()

func (*HealthCheckRequest) String

func (x *HealthCheckRequest) String() string

type HealthCheckResponse

type HealthCheckResponse struct {
	Status HealthCheckResponse_ServingStatus `protobuf:"varint,2,opt,name=status,proto3,enum=proto.HealthCheckResponse_ServingStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*HealthCheckResponse) Descriptor deprecated

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

Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead.

func (*HealthCheckResponse) GetStatus

func (*HealthCheckResponse) ProtoMessage

func (*HealthCheckResponse) ProtoMessage()

func (*HealthCheckResponse) ProtoReflect

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

func (*HealthCheckResponse) Reset

func (x *HealthCheckResponse) Reset()

func (*HealthCheckResponse) String

func (x *HealthCheckResponse) String() string

type HealthCheckResponse_ServingStatus

type HealthCheckResponse_ServingStatus int32
const (
	HealthCheckResponse_UNKNOWN         HealthCheckResponse_ServingStatus = 0
	HealthCheckResponse_SERVING         HealthCheckResponse_ServingStatus = 1
	HealthCheckResponse_NOT_SERVING     HealthCheckResponse_ServingStatus = 2
	HealthCheckResponse_SERVICE_UNKNOWN HealthCheckResponse_ServingStatus = 3
)

func (HealthCheckResponse_ServingStatus) Descriptor

func (HealthCheckResponse_ServingStatus) Enum

func (HealthCheckResponse_ServingStatus) EnumDescriptor deprecated

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

Deprecated: Use HealthCheckResponse_ServingStatus.Descriptor instead.

func (HealthCheckResponse_ServingStatus) Number

func (HealthCheckResponse_ServingStatus) String

func (HealthCheckResponse_ServingStatus) Type

type HttpBody

type HttpBody struct {

	// The HTTP Content-Type header value specifying the content type of the body.
	ContentType string `protobuf:"bytes,1,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
	// The HTTP request/response body as raw binary.
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// Application specific response metadata. Must be set in the first response
	// for streaming APIs.
	Extensions []*anypb.Any `protobuf:"bytes,3,rep,name=extensions,proto3" json:"extensions,omitempty"`
	// contains filtered or unexported fields
}

func (*HttpBody) Descriptor deprecated

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

Deprecated: Use HttpBody.ProtoReflect.Descriptor instead.

func (*HttpBody) GetContentType

func (x *HttpBody) GetContentType() string

func (*HttpBody) GetData

func (x *HttpBody) GetData() []byte

func (*HttpBody) GetExtensions

func (x *HttpBody) GetExtensions() []*anypb.Any

func (*HttpBody) ProtoMessage

func (*HttpBody) ProtoMessage()

func (*HttpBody) ProtoReflect

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

func (*HttpBody) Reset

func (x *HttpBody) Reset()

func (*HttpBody) String

func (x *HttpBody) String() string

type MediaInfo

type MediaInfo struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Url       string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	Filename  string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"`
	FileClass string `protobuf:"bytes,4,opt,name=file_class,proto3" json:"file_class,omitempty"`
	Ext       string `protobuf:"bytes,5,opt,name=ext,proto3" json:"ext,omitempty"`
	Mime      string `protobuf:"bytes,6,opt,name=mime,proto3" json:"mime,omitempty"`
	Hash      string `protobuf:"bytes,7,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*MediaInfo) Descriptor deprecated

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

Deprecated: Use MediaInfo.ProtoReflect.Descriptor instead.

func (*MediaInfo) GetExt

func (x *MediaInfo) GetExt() string

func (*MediaInfo) GetFileClass

func (x *MediaInfo) GetFileClass() string

func (*MediaInfo) GetFilename

func (x *MediaInfo) GetFilename() string

func (*MediaInfo) GetHash

func (x *MediaInfo) GetHash() string

func (*MediaInfo) GetId

func (x *MediaInfo) GetId() string

func (*MediaInfo) GetMime

func (x *MediaInfo) GetMime() string

func (*MediaInfo) GetUrl

func (x *MediaInfo) GetUrl() string

func (*MediaInfo) ProtoMessage

func (*MediaInfo) ProtoMessage()

func (*MediaInfo) ProtoReflect

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

func (*MediaInfo) Reset

func (x *MediaInfo) Reset()

func (*MediaInfo) String

func (x *MediaInfo) String() string

type StsTokenRequest

type StsTokenRequest struct {
	Ttl       int64    `protobuf:"varint,1,opt,name=ttl,proto3" json:"ttl,omitempty"`
	UserId    int64    `protobuf:"varint,2,opt,name=user_id,proto3" json:"user_id,omitempty"`
	OutUserId int64    `protobuf:"varint,5,opt,name=out_user_id,proto3" json:"out_user_id,omitempty"`
	CompanyId int64    `protobuf:"varint,6,opt,name=company_id,proto3" json:"company_id,omitempty"`
	Resource  []string `protobuf:"bytes,3,rep,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

func (*StsTokenRequest) Descriptor deprecated

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

Deprecated: Use StsTokenRequest.ProtoReflect.Descriptor instead.

func (*StsTokenRequest) GetCompanyId

func (x *StsTokenRequest) GetCompanyId() int64

func (*StsTokenRequest) GetOutUserId

func (x *StsTokenRequest) GetOutUserId() int64

func (*StsTokenRequest) GetResource

func (x *StsTokenRequest) GetResource() []string

func (*StsTokenRequest) GetTtl

func (x *StsTokenRequest) GetTtl() int64

func (*StsTokenRequest) GetUserId

func (x *StsTokenRequest) GetUserId() int64

func (*StsTokenRequest) ProtoMessage

func (*StsTokenRequest) ProtoMessage()

func (*StsTokenRequest) ProtoReflect

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

func (*StsTokenRequest) Reset

func (x *StsTokenRequest) Reset()

func (*StsTokenRequest) String

func (x *StsTokenRequest) String() string

type StsTokenResponse

type StsTokenResponse struct {
	StsToken string `protobuf:"bytes,1,opt,name=sts_token,proto3" json:"sts_token,omitempty"`
	// contains filtered or unexported fields
}

func (*StsTokenResponse) Descriptor deprecated

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

Deprecated: Use StsTokenResponse.ProtoReflect.Descriptor instead.

func (*StsTokenResponse) GetStsToken

func (x *StsTokenResponse) GetStsToken() string

func (*StsTokenResponse) ProtoMessage

func (*StsTokenResponse) ProtoMessage()

func (*StsTokenResponse) ProtoReflect

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

func (*StsTokenResponse) Reset

func (x *StsTokenResponse) Reset()

func (*StsTokenResponse) String

func (x *StsTokenResponse) String() string

type UploadStatusCode

type UploadStatusCode int32
const (
	UploadStatusCode_UploadStatusCodeUnknown UploadStatusCode = 0
	UploadStatusCode_Ok                      UploadStatusCode = 1
	UploadStatusCode_Failed                  UploadStatusCode = 2
)

func (UploadStatusCode) Descriptor

func (UploadStatusCode) Enum

func (UploadStatusCode) EnumDescriptor deprecated

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

Deprecated: Use UploadStatusCode.Descriptor instead.

func (UploadStatusCode) Number

func (UploadStatusCode) String

func (x UploadStatusCode) String() string

func (UploadStatusCode) Type

Jump to

Keyboard shortcuts

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