Documentation ¶
Index ¶
- Variables
- func RegisterGenerativeApiServiceServer(s grpc.ServiceRegistrar, srv GenerativeApiServiceServer)
- type GenerateImageRequest
- func (*GenerateImageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateImageRequest) GetPrompt() string
- func (x *GenerateImageRequest) GetStyle() string
- func (*GenerateImageRequest) ProtoMessage()
- func (x *GenerateImageRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateImageRequest) Reset()
- func (x *GenerateImageRequest) String() string
- type GenerateImageResponse
- func (*GenerateImageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateImageResponse) GetImageUrl() string
- func (*GenerateImageResponse) ProtoMessage()
- func (x *GenerateImageResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateImageResponse) Reset()
- func (x *GenerateImageResponse) String() string
- type GenerativeApiServiceClient
- type GenerativeApiServiceServer
- type UnimplementedGenerativeApiServiceServer
- type UnsafeGenerativeApiServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_generative_api_generative_v1_generative_proto protoreflect.FileDescriptor
var GenerativeApiService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "generative.v1.GenerativeApiService", HandlerType: (*GenerativeApiServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GenerateImage", Handler: _GenerativeApiService_GenerateImage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "generative-api/generative/v1/generative.proto", }
GenerativeApiService_ServiceDesc is the grpc.ServiceDesc for GenerativeApiService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGenerativeApiServiceServer ¶
func RegisterGenerativeApiServiceServer(s grpc.ServiceRegistrar, srv GenerativeApiServiceServer)
Types ¶
type GenerateImageRequest ¶
type GenerateImageRequest struct { Style string `protobuf:"bytes,1,opt,name=style,proto3" json:"style,omitempty"` Prompt string `protobuf:"bytes,2,opt,name=prompt,proto3" json:"prompt,omitempty"` // contains filtered or unexported fields }
func (*GenerateImageRequest) Descriptor
deprecated
func (*GenerateImageRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateImageRequest.ProtoReflect.Descriptor instead.
func (*GenerateImageRequest) GetPrompt ¶
func (x *GenerateImageRequest) GetPrompt() string
func (*GenerateImageRequest) GetStyle ¶
func (x *GenerateImageRequest) GetStyle() string
func (*GenerateImageRequest) ProtoMessage ¶
func (*GenerateImageRequest) ProtoMessage()
func (*GenerateImageRequest) ProtoReflect ¶
func (x *GenerateImageRequest) ProtoReflect() protoreflect.Message
func (*GenerateImageRequest) Reset ¶
func (x *GenerateImageRequest) Reset()
func (*GenerateImageRequest) String ¶
func (x *GenerateImageRequest) String() string
type GenerateImageResponse ¶
type GenerateImageResponse struct { ImageUrl string `protobuf:"bytes,1,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"` // contains filtered or unexported fields }
func (*GenerateImageResponse) Descriptor
deprecated
func (*GenerateImageResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateImageResponse.ProtoReflect.Descriptor instead.
func (*GenerateImageResponse) GetImageUrl ¶
func (x *GenerateImageResponse) GetImageUrl() string
func (*GenerateImageResponse) ProtoMessage ¶
func (*GenerateImageResponse) ProtoMessage()
func (*GenerateImageResponse) ProtoReflect ¶
func (x *GenerateImageResponse) ProtoReflect() protoreflect.Message
func (*GenerateImageResponse) Reset ¶
func (x *GenerateImageResponse) Reset()
func (*GenerateImageResponse) String ¶
func (x *GenerateImageResponse) String() string
type GenerativeApiServiceClient ¶
type GenerativeApiServiceClient interface {
GenerateImage(ctx context.Context, in *GenerateImageRequest, opts ...grpc.CallOption) (*GenerateImageResponse, error)
}
GenerativeApiServiceClient is the client API for GenerativeApiService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewGenerativeApiServiceClient ¶
func NewGenerativeApiServiceClient(cc grpc.ClientConnInterface) GenerativeApiServiceClient
type GenerativeApiServiceServer ¶
type GenerativeApiServiceServer interface { GenerateImage(context.Context, *GenerateImageRequest) (*GenerateImageResponse, error) // contains filtered or unexported methods }
GenerativeApiServiceServer is the server API for GenerativeApiService service. All implementations must embed UnimplementedGenerativeApiServiceServer for forward compatibility
type UnimplementedGenerativeApiServiceServer ¶
type UnimplementedGenerativeApiServiceServer struct { }
UnimplementedGenerativeApiServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedGenerativeApiServiceServer) GenerateImage ¶
func (UnimplementedGenerativeApiServiceServer) GenerateImage(context.Context, *GenerateImageRequest) (*GenerateImageResponse, error)
type UnsafeGenerativeApiServiceServer ¶
type UnsafeGenerativeApiServiceServer interface {
// contains filtered or unexported methods
}
UnsafeGenerativeApiServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GenerativeApiServiceServer will result in compilation errors.