Documentation
¶
Overview ¶
Package renderdemo is a generated protocol buffer package.
It is generated from these files:
proto/gifcreator.proto proto/render.proto
It has these top-level messages:
StartJobRequest StartJobResponse GetJobRequest GetJobResponse RenderRequest RenderResponse
Index ¶
- Variables
- func RegisterGifCreatorServer(s *grpc.Server, srv GifCreatorServer)
- func RegisterRenderServer(s *grpc.Server, srv RenderServer)
- type GetJobRequest
- type GetJobResponse
- type GetJobResponse_Status
- type GifCreatorClient
- type GifCreatorServer
- type Product
- type RenderClient
- type RenderRequest
- func (*RenderRequest) Descriptor() ([]byte, []int)
- func (m *RenderRequest) GetAssets() []string
- func (m *RenderRequest) GetGcsOutputBase() string
- func (m *RenderRequest) GetIterations() int32
- func (m *RenderRequest) GetObjPath() string
- func (m *RenderRequest) GetRotation() float32
- func (*RenderRequest) ProtoMessage()
- func (m *RenderRequest) Reset()
- func (m *RenderRequest) String() string
- type RenderResponse
- type RenderServer
- type StartJobRequest
- type StartJobResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var GetJobResponse_Status_name = map[int32]string{
0: "UNKNOWN_STATUS",
1: "PENDING",
2: "DONE",
3: "FAILED",
}
View Source
var GetJobResponse_Status_value = map[string]int32{
"UNKNOWN_STATUS": 0,
"PENDING": 1,
"DONE": 2,
"FAILED": 3,
}
View Source
var Product_name = map[int32]string{
0: "UNKNOWN_PRODUCT",
1: "GRPC",
2: "KUBERNETES",
3: "GO",
}
View Source
var Product_value = map[string]int32{
"UNKNOWN_PRODUCT": 0,
"GRPC": 1,
"KUBERNETES": 2,
"GO": 3,
}
Functions ¶
func RegisterGifCreatorServer ¶
func RegisterGifCreatorServer(s *grpc.Server, srv GifCreatorServer)
func RegisterRenderServer ¶
func RegisterRenderServer(s *grpc.Server, srv RenderServer)
Types ¶
type GetJobRequest ¶
type GetJobRequest struct {
JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId" json:"job_id,omitempty"`
}
func (*GetJobRequest) Descriptor ¶
func (*GetJobRequest) Descriptor() ([]byte, []int)
func (*GetJobRequest) GetJobId ¶
func (m *GetJobRequest) GetJobId() string
func (*GetJobRequest) ProtoMessage ¶
func (*GetJobRequest) ProtoMessage()
func (*GetJobRequest) Reset ¶
func (m *GetJobRequest) Reset()
func (*GetJobRequest) String ¶
func (m *GetJobRequest) String() string
type GetJobResponse ¶
type GetJobResponse struct { Status GetJobResponse_Status `protobuf:"varint,1,opt,name=status,enum=renderdemo.GetJobResponse_Status" json:"status,omitempty"` // World-readable URL for created image. ImageUrl string `protobuf:"bytes,2,opt,name=image_url,json=imageUrl" json:"image_url,omitempty"` }
func (*GetJobResponse) Descriptor ¶
func (*GetJobResponse) Descriptor() ([]byte, []int)
func (*GetJobResponse) GetImageUrl ¶
func (m *GetJobResponse) GetImageUrl() string
func (*GetJobResponse) GetStatus ¶
func (m *GetJobResponse) GetStatus() GetJobResponse_Status
func (*GetJobResponse) ProtoMessage ¶
func (*GetJobResponse) ProtoMessage()
func (*GetJobResponse) Reset ¶
func (m *GetJobResponse) Reset()
func (*GetJobResponse) String ¶
func (m *GetJobResponse) String() string
type GetJobResponse_Status ¶
type GetJobResponse_Status int32
const ( GetJobResponse_UNKNOWN_STATUS GetJobResponse_Status = 0 GetJobResponse_PENDING GetJobResponse_Status = 1 GetJobResponse_DONE GetJobResponse_Status = 2 GetJobResponse_FAILED GetJobResponse_Status = 3 )
func (GetJobResponse_Status) EnumDescriptor ¶
func (GetJobResponse_Status) EnumDescriptor() ([]byte, []int)
func (GetJobResponse_Status) String ¶
func (x GetJobResponse_Status) String() string
type GifCreatorClient ¶
type GifCreatorClient interface { StartJob(ctx context.Context, in *StartJobRequest, opts ...grpc.CallOption) (*StartJobResponse, error) GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*GetJobResponse, error) }
func NewGifCreatorClient ¶
func NewGifCreatorClient(cc *grpc.ClientConn) GifCreatorClient
type GifCreatorServer ¶
type GifCreatorServer interface { StartJob(context.Context, *StartJobRequest) (*StartJobResponse, error) GetJob(context.Context, *GetJobRequest) (*GetJobResponse, error) }
type RenderClient ¶
type RenderClient interface {
RenderFrame(ctx context.Context, in *RenderRequest, opts ...grpc.CallOption) (*RenderResponse, error)
}
func NewRenderClient ¶
func NewRenderClient(cc *grpc.ClientConn) RenderClient
type RenderRequest ¶
type RenderRequest struct { // GCS path to write output image into. GcsOutputBase string `protobuf:"bytes,1,opt,name=gcs_output_base,json=gcsOutputBase" json:"gcs_output_base,omitempty"` // scene object file (in .obj format) GCS path ObjPath string `protobuf:"bytes,2,opt,name=obj_path,json=objPath" json:"obj_path,omitempty"` // assets (like material files and images) to be associated with the object Assets []string `protobuf:"bytes,3,rep,name=assets" json:"assets,omitempty"` // scene rotation (in radians) Rotation float32 `protobuf:"fixed32,4,opt,name=rotation" json:"rotation,omitempty"` // num iterations Iterations int32 `protobuf:"varint,5,opt,name=iterations" json:"iterations,omitempty"` }
func (*RenderRequest) Descriptor ¶
func (*RenderRequest) Descriptor() ([]byte, []int)
func (*RenderRequest) GetAssets ¶
func (m *RenderRequest) GetAssets() []string
func (*RenderRequest) GetGcsOutputBase ¶
func (m *RenderRequest) GetGcsOutputBase() string
func (*RenderRequest) GetIterations ¶
func (m *RenderRequest) GetIterations() int32
func (*RenderRequest) GetObjPath ¶
func (m *RenderRequest) GetObjPath() string
func (*RenderRequest) GetRotation ¶
func (m *RenderRequest) GetRotation() float32
func (*RenderRequest) ProtoMessage ¶
func (*RenderRequest) ProtoMessage()
func (*RenderRequest) Reset ¶
func (m *RenderRequest) Reset()
func (*RenderRequest) String ¶
func (m *RenderRequest) String() string
type RenderResponse ¶
type RenderResponse struct { // GCS path image was written to. GcsOutput string `protobuf:"bytes,1,opt,name=gcs_output,json=gcsOutput" json:"gcs_output,omitempty"` }
func (*RenderResponse) Descriptor ¶
func (*RenderResponse) Descriptor() ([]byte, []int)
func (*RenderResponse) GetGcsOutput ¶
func (m *RenderResponse) GetGcsOutput() string
func (*RenderResponse) ProtoMessage ¶
func (*RenderResponse) ProtoMessage()
func (*RenderResponse) Reset ¶
func (m *RenderResponse) Reset()
func (*RenderResponse) String ¶
func (m *RenderResponse) String() string
type RenderServer ¶
type RenderServer interface {
RenderFrame(context.Context, *RenderRequest) (*RenderResponse, error)
}
type StartJobRequest ¶
type StartJobRequest struct { // TODO(light): what scene parameters do we want to give? Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` ProductToPlug Product `protobuf:"varint,2,opt,name=product_to_plug,json=productToPlug,enum=renderdemo.Product" json:"product_to_plug,omitempty"` }
func (*StartJobRequest) Descriptor ¶
func (*StartJobRequest) Descriptor() ([]byte, []int)
func (*StartJobRequest) GetName ¶
func (m *StartJobRequest) GetName() string
func (*StartJobRequest) GetProductToPlug ¶
func (m *StartJobRequest) GetProductToPlug() Product
func (*StartJobRequest) ProtoMessage ¶
func (*StartJobRequest) ProtoMessage()
func (*StartJobRequest) Reset ¶
func (m *StartJobRequest) Reset()
func (*StartJobRequest) String ¶
func (m *StartJobRequest) String() string
type StartJobResponse ¶
type StartJobResponse struct {
JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId" json:"job_id,omitempty"`
}
func (*StartJobResponse) Descriptor ¶
func (*StartJobResponse) Descriptor() ([]byte, []int)
func (*StartJobResponse) GetJobId ¶
func (m *StartJobResponse) GetJobId() string
func (*StartJobResponse) ProtoMessage ¶
func (*StartJobResponse) ProtoMessage()
func (*StartJobResponse) Reset ¶
func (m *StartJobResponse) Reset()
func (*StartJobResponse) String ¶
func (m *StartJobResponse) String() string
Click to show internal directories.
Click to hide internal directories.