translation

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CapabilityClient

type CapabilityClient struct {
	// contains filtered or unexported fields
}

CapabilityClient wraps the gRPC CapabilityService client.

func NewCapabilityClient

func NewCapabilityClient(cc grpc.ClientConnInterface) *CapabilityClient

NewCapabilityClient creates a new Capability client.

func (*CapabilityClient) DescribeContents

func (c *CapabilityClient) DescribeContents(ctx context.Context) (int32, error)

DescribeContents calls the DescribeContents RPC.

func (*CapabilityClient) GetSourceSpec

func (c *CapabilityClient) GetSourceSpec(ctx context.Context) (int64, error)

GetSourceSpec calls the GetSourceSpec RPC.

func (*CapabilityClient) GetState

func (c *CapabilityClient) GetState(ctx context.Context) (int32, error)

GetState calls the GetState RPC.

func (*CapabilityClient) GetSupportedTranslationFlags

func (c *CapabilityClient) GetSupportedTranslationFlags(ctx context.Context) (int32, error)

GetSupportedTranslationFlags calls the GetSupportedTranslationFlags RPC.

func (*CapabilityClient) GetTargetSpec

func (c *CapabilityClient) GetTargetSpec(ctx context.Context) (int64, error)

GetTargetSpec calls the GetTargetSpec RPC.

func (*CapabilityClient) IsUiTranslationEnabled

func (c *CapabilityClient) IsUiTranslationEnabled(ctx context.Context) (bool, error)

IsUiTranslationEnabled calls the IsUiTranslationEnabled RPC.

func (*CapabilityClient) ToString

func (c *CapabilityClient) ToString(ctx context.Context) (string, error)

ToString calls the ToString RPC.

func (*CapabilityClient) WriteToParcel

func (c *CapabilityClient) WriteToParcel(ctx context.Context, arg0 int64, arg1 int32) error

WriteToParcel calls the WriteToParcel RPC.

type ContextBuilderClient

type ContextBuilderClient struct {
	// contains filtered or unexported fields
}

ContextBuilderClient wraps the gRPC ContextBuilderService client.

func NewContextBuilderClient

func NewContextBuilderClient(cc grpc.ClientConnInterface) *ContextBuilderClient

NewContextBuilderClient creates a new ContextBuilder client.

func (*ContextBuilderClient) Build

func (c *ContextBuilderClient) Build(ctx context.Context) (int64, error)

Build calls the Build RPC.

func (*ContextBuilderClient) SetTranslationFlags

func (c *ContextBuilderClient) SetTranslationFlags(ctx context.Context, arg0 int32) (int64, error)

SetTranslationFlags calls the SetTranslationFlags RPC.

type ContextClient

type ContextClient struct {
	// contains filtered or unexported fields
}

ContextClient wraps the gRPC ContextService client.

func NewContextClient

func NewContextClient(cc grpc.ClientConnInterface) *ContextClient

NewContextClient creates a new Context client.

func (*ContextClient) DescribeContents

func (c *ContextClient) DescribeContents(ctx context.Context) (int32, error)

DescribeContents calls the DescribeContents RPC.

func (*ContextClient) GetSourceSpec

func (c *ContextClient) GetSourceSpec(ctx context.Context) (int64, error)

GetSourceSpec calls the GetSourceSpec RPC.

func (*ContextClient) GetTargetSpec

func (c *ContextClient) GetTargetSpec(ctx context.Context) (int64, error)

GetTargetSpec calls the GetTargetSpec RPC.

func (*ContextClient) GetTranslationFlags

func (c *ContextClient) GetTranslationFlags(ctx context.Context) (int32, error)

GetTranslationFlags calls the GetTranslationFlags RPC.

func (*ContextClient) ToString

func (c *ContextClient) ToString(ctx context.Context) (string, error)

ToString calls the ToString RPC.

func (*ContextClient) WriteToParcel

func (c *ContextClient) WriteToParcel(ctx context.Context, arg0 int64, arg1 int32) error

WriteToParcel calls the WriteToParcel RPC.

type ManagerClient

type ManagerClient struct {
	// contains filtered or unexported fields
}

ManagerClient wraps the gRPC ManagerService client.

func NewManagerClient

func NewManagerClient(cc grpc.ClientConnInterface) *ManagerClient

NewManagerClient creates a new Manager client.

func (*ManagerClient) GetOnDeviceTranslationCapabilities

func (c *ManagerClient) GetOnDeviceTranslationCapabilities(ctx context.Context, arg0 int32, arg1 int32) (int64, error)

GetOnDeviceTranslationCapabilities calls the GetOnDeviceTranslationCapabilities RPC.

func (*ManagerClient) GetOnDeviceTranslationSettingsActivityIntent

func (c *ManagerClient) GetOnDeviceTranslationSettingsActivityIntent(ctx context.Context) (int64, error)

GetOnDeviceTranslationSettingsActivityIntent calls the GetOnDeviceTranslationSettingsActivityIntent RPC.

type RequestBuilderClient

type RequestBuilderClient struct {
	// contains filtered or unexported fields
}

RequestBuilderClient wraps the gRPC RequestBuilderService client.

func NewRequestBuilderClient

func NewRequestBuilderClient(cc grpc.ClientConnInterface) *RequestBuilderClient

NewRequestBuilderClient creates a new RequestBuilder client.

func (*RequestBuilderClient) Build

func (c *RequestBuilderClient) Build(ctx context.Context) (int64, error)

Build calls the Build RPC.

func (*RequestBuilderClient) SetFlags

func (c *RequestBuilderClient) SetFlags(ctx context.Context, arg0 int32) (int64, error)

SetFlags calls the SetFlags RPC.

type RequestClient

type RequestClient struct {
	// contains filtered or unexported fields
}

RequestClient wraps the gRPC RequestService client.

func NewRequestClient

func NewRequestClient(cc grpc.ClientConnInterface) *RequestClient

NewRequestClient creates a new Request client.

func (*RequestClient) DescribeContents

func (c *RequestClient) DescribeContents(ctx context.Context) (int32, error)

DescribeContents calls the DescribeContents RPC.

func (*RequestClient) GetFlags

func (c *RequestClient) GetFlags(ctx context.Context) (int32, error)

GetFlags calls the GetFlags RPC.

func (*RequestClient) GetTranslationRequestValues

func (c *RequestClient) GetTranslationRequestValues(ctx context.Context) (int64, error)

GetTranslationRequestValues calls the GetTranslationRequestValues RPC.

func (*RequestClient) GetViewTranslationRequests

func (c *RequestClient) GetViewTranslationRequests(ctx context.Context) (int64, error)

GetViewTranslationRequests calls the GetViewTranslationRequests RPC.

func (*RequestClient) ToString

func (c *RequestClient) ToString(ctx context.Context) (string, error)

ToString calls the ToString RPC.

func (*RequestClient) WriteToParcel

func (c *RequestClient) WriteToParcel(ctx context.Context, arg0 int64, arg1 int32) error

WriteToParcel calls the WriteToParcel RPC.

type RequestValueClient

type RequestValueClient struct {
	// contains filtered or unexported fields
}

RequestValueClient wraps the gRPC RequestValueService client.

func NewRequestValueClient

func NewRequestValueClient(cc grpc.ClientConnInterface) *RequestValueClient

NewRequestValueClient creates a new RequestValue client.

func (*RequestValueClient) DescribeContents

func (c *RequestValueClient) DescribeContents(ctx context.Context) (int32, error)

DescribeContents calls the DescribeContents RPC.

func (*RequestValueClient) Equals

func (c *RequestValueClient) Equals(ctx context.Context, arg0 int64) (bool, error)

Equals calls the Equals RPC.

func (*RequestValueClient) ForText

func (c *RequestValueClient) ForText(ctx context.Context, arg0 string) (int64, error)

ForText calls the ForText RPC.

func (*RequestValueClient) GetText

func (c *RequestValueClient) GetText(ctx context.Context) (int64, error)

GetText calls the GetText RPC.

func (*RequestValueClient) HashCode

func (c *RequestValueClient) HashCode(ctx context.Context) (int32, error)

HashCode calls the HashCode RPC.

func (*RequestValueClient) ToString

func (c *RequestValueClient) ToString(ctx context.Context) (string, error)

ToString calls the ToString RPC.

func (*RequestValueClient) WriteToParcel

func (c *RequestValueClient) WriteToParcel(ctx context.Context, arg0 int64, arg1 int32) error

WriteToParcel calls the WriteToParcel RPC.

type ResponseBuilderClient

type ResponseBuilderClient struct {
	// contains filtered or unexported fields
}

ResponseBuilderClient wraps the gRPC ResponseBuilderService client.

func NewResponseBuilderClient

func NewResponseBuilderClient(cc grpc.ClientConnInterface) *ResponseBuilderClient

NewResponseBuilderClient creates a new ResponseBuilder client.

func (*ResponseBuilderClient) Build

func (c *ResponseBuilderClient) Build(ctx context.Context) (int64, error)

Build calls the Build RPC.

func (*ResponseBuilderClient) SetFinalResponse

func (c *ResponseBuilderClient) SetFinalResponse(ctx context.Context, arg0 bool) (int64, error)

SetFinalResponse calls the SetFinalResponse RPC.

func (*ResponseBuilderClient) SetTranslationResponseValue

func (c *ResponseBuilderClient) SetTranslationResponseValue(ctx context.Context, arg0 int32, arg1 int64) (int64, error)

SetTranslationResponseValue calls the SetTranslationResponseValue RPC.

func (*ResponseBuilderClient) SetViewTranslationResponse

func (c *ResponseBuilderClient) SetViewTranslationResponse(ctx context.Context, arg0 int32, arg1 int64) (int64, error)

SetViewTranslationResponse calls the SetViewTranslationResponse RPC.

type ResponseClient

type ResponseClient struct {
	// contains filtered or unexported fields
}

ResponseClient wraps the gRPC ResponseService client.

func NewResponseClient

func NewResponseClient(cc grpc.ClientConnInterface) *ResponseClient

NewResponseClient creates a new Response client.

func (*ResponseClient) DescribeContents

func (c *ResponseClient) DescribeContents(ctx context.Context) (int32, error)

DescribeContents calls the DescribeContents RPC.

func (*ResponseClient) GetTranslationResponseValues

func (c *ResponseClient) GetTranslationResponseValues(ctx context.Context) (int64, error)

GetTranslationResponseValues calls the GetTranslationResponseValues RPC.

func (*ResponseClient) GetTranslationStatus

func (c *ResponseClient) GetTranslationStatus(ctx context.Context) (int32, error)

GetTranslationStatus calls the GetTranslationStatus RPC.

func (*ResponseClient) GetViewTranslationResponses

func (c *ResponseClient) GetViewTranslationResponses(ctx context.Context) (int64, error)

GetViewTranslationResponses calls the GetViewTranslationResponses RPC.

func (*ResponseClient) IsFinalResponse

func (c *ResponseClient) IsFinalResponse(ctx context.Context) (bool, error)

IsFinalResponse calls the IsFinalResponse RPC.

func (*ResponseClient) ToString

func (c *ResponseClient) ToString(ctx context.Context) (string, error)

ToString calls the ToString RPC.

func (*ResponseClient) WriteToParcel

func (c *ResponseClient) WriteToParcel(ctx context.Context, arg0 int64, arg1 int32) error

WriteToParcel calls the WriteToParcel RPC.

type ResponseValueBuilderClient

type ResponseValueBuilderClient struct {
	// contains filtered or unexported fields
}

ResponseValueBuilderClient wraps the gRPC ResponseValueBuilderService client.

func NewResponseValueBuilderClient

func NewResponseValueBuilderClient(cc grpc.ClientConnInterface) *ResponseValueBuilderClient

NewResponseValueBuilderClient creates a new ResponseValueBuilder client.

func (*ResponseValueBuilderClient) Build

Build calls the Build RPC.

func (*ResponseValueBuilderClient) SetExtras

func (c *ResponseValueBuilderClient) SetExtras(ctx context.Context, arg0 int64) (int64, error)

SetExtras calls the SetExtras RPC.

func (*ResponseValueBuilderClient) SetText

func (c *ResponseValueBuilderClient) SetText(ctx context.Context, arg0 string) (int64, error)

SetText calls the SetText RPC.

func (*ResponseValueBuilderClient) SetTransliteration

func (c *ResponseValueBuilderClient) SetTransliteration(ctx context.Context, arg0 string) (int64, error)

SetTransliteration calls the SetTransliteration RPC.

type ResponseValueClient

type ResponseValueClient struct {
	// contains filtered or unexported fields
}

ResponseValueClient wraps the gRPC ResponseValueService client.

func NewResponseValueClient

func NewResponseValueClient(cc grpc.ClientConnInterface) *ResponseValueClient

NewResponseValueClient creates a new ResponseValue client.

func (*ResponseValueClient) DescribeContents

func (c *ResponseValueClient) DescribeContents(ctx context.Context) (int32, error)

DescribeContents calls the DescribeContents RPC.

func (*ResponseValueClient) Equals

func (c *ResponseValueClient) Equals(ctx context.Context, arg0 int64) (bool, error)

Equals calls the Equals RPC.

func (*ResponseValueClient) ForError

func (c *ResponseValueClient) ForError(ctx context.Context) (int64, error)

ForError calls the ForError RPC.

func (*ResponseValueClient) GetExtras

func (c *ResponseValueClient) GetExtras(ctx context.Context) (int64, error)

GetExtras calls the GetExtras RPC.

func (*ResponseValueClient) GetStatusCode

func (c *ResponseValueClient) GetStatusCode(ctx context.Context) (int32, error)

GetStatusCode calls the GetStatusCode RPC.

func (*ResponseValueClient) GetText

func (c *ResponseValueClient) GetText(ctx context.Context) (int64, error)

GetText calls the GetText RPC.

func (*ResponseValueClient) GetTransliteration

func (c *ResponseValueClient) GetTransliteration(ctx context.Context) (int64, error)

GetTransliteration calls the GetTransliteration RPC.

func (*ResponseValueClient) HashCode

func (c *ResponseValueClient) HashCode(ctx context.Context) (int32, error)

HashCode calls the HashCode RPC.

func (*ResponseValueClient) ToString

func (c *ResponseValueClient) ToString(ctx context.Context) (string, error)

ToString calls the ToString RPC.

func (*ResponseValueClient) WriteToParcel

func (c *ResponseValueClient) WriteToParcel(ctx context.Context, arg0 int64, arg1 int32) error

WriteToParcel calls the WriteToParcel RPC.

type SpecClient

type SpecClient struct {
	// contains filtered or unexported fields
}

SpecClient wraps the gRPC SpecService client.

func NewSpecClient

func NewSpecClient(cc grpc.ClientConnInterface) *SpecClient

NewSpecClient creates a new Spec client.

func (*SpecClient) DescribeContents

func (c *SpecClient) DescribeContents(ctx context.Context, handle int64) (int32, error)

DescribeContents calls the DescribeContents RPC.

func (*SpecClient) Equals

func (c *SpecClient) Equals(ctx context.Context, handle int64, arg0 int64) (bool, error)

Equals calls the Equals RPC.

func (*SpecClient) GetDataFormat

func (c *SpecClient) GetDataFormat(ctx context.Context, handle int64) (int32, error)

GetDataFormat calls the GetDataFormat RPC.

func (*SpecClient) GetLocale

func (c *SpecClient) GetLocale(ctx context.Context, handle int64) (int64, error)

GetLocale calls the GetLocale RPC.

func (*SpecClient) HashCode

func (c *SpecClient) HashCode(ctx context.Context, handle int64) (int32, error)

HashCode calls the HashCode RPC.

func (*SpecClient) ToString

func (c *SpecClient) ToString(ctx context.Context, handle int64) (string, error)

ToString calls the ToString RPC.

func (*SpecClient) WriteToParcel

func (c *SpecClient) WriteToParcel(ctx context.Context, handle int64, arg0 int64, arg1 int32) error

WriteToParcel calls the WriteToParcel RPC.

type TranslatorClient

type TranslatorClient struct {
	// contains filtered or unexported fields
}

TranslatorClient wraps the gRPC TranslatorService client.

func NewTranslatorClient

func NewTranslatorClient(cc grpc.ClientConnInterface) *TranslatorClient

NewTranslatorClient creates a new Translator client.

func (*TranslatorClient) Destroy

func (c *TranslatorClient) Destroy(ctx context.Context) error

Destroy calls the Destroy RPC.

func (*TranslatorClient) IsDestroyed

func (c *TranslatorClient) IsDestroyed(ctx context.Context) (bool, error)

IsDestroyed calls the IsDestroyed RPC.

type UiTranslationManagerClient

type UiTranslationManagerClient struct {
	// contains filtered or unexported fields
}

UiTranslationManagerClient wraps the gRPC UiTranslationManagerService client.

func NewUiTranslationManagerClient

func NewUiTranslationManagerClient(cc grpc.ClientConnInterface) *UiTranslationManagerClient

NewUiTranslationManagerClient creates a new UiTranslationManager client.

func (*UiTranslationManagerClient) RegisterUiTranslationStateCallback

func (c *UiTranslationManagerClient) RegisterUiTranslationStateCallback(ctx context.Context, arg0 int64, arg1 int64) error

RegisterUiTranslationStateCallback calls the RegisterUiTranslationStateCallback RPC.

func (*UiTranslationManagerClient) UnregisterUiTranslationStateCallback

func (c *UiTranslationManagerClient) UnregisterUiTranslationStateCallback(ctx context.Context, arg0 int64) error

UnregisterUiTranslationStateCallback calls the UnregisterUiTranslationStateCallback RPC.

type UiTranslationStateCallbackClient

type UiTranslationStateCallbackClient struct {
	// contains filtered or unexported fields
}

UiTranslationStateCallbackClient wraps the gRPC UiTranslationStateCallbackService client.

func NewUiTranslationStateCallbackClient

func NewUiTranslationStateCallbackClient(cc grpc.ClientConnInterface) *UiTranslationStateCallbackClient

NewUiTranslationStateCallbackClient creates a new UiTranslationStateCallback client.

func (*UiTranslationStateCallbackClient) OnFinished

OnFinished calls the OnFinished RPC.

func (*UiTranslationStateCallbackClient) OnPaused

OnPaused calls the OnPaused RPC.

type ViewTranslationCallbackClient

type ViewTranslationCallbackClient struct {
	// contains filtered or unexported fields
}

ViewTranslationCallbackClient wraps the gRPC ViewTranslationCallbackService client.

func NewViewTranslationCallbackClient

func NewViewTranslationCallbackClient(cc grpc.ClientConnInterface) *ViewTranslationCallbackClient

NewViewTranslationCallbackClient creates a new ViewTranslationCallback client.

func (*ViewTranslationCallbackClient) OnClearTranslation

func (c *ViewTranslationCallbackClient) OnClearTranslation(ctx context.Context, arg0 int64) (bool, error)

OnClearTranslation calls the OnClearTranslation RPC.

func (*ViewTranslationCallbackClient) OnHideTranslation

func (c *ViewTranslationCallbackClient) OnHideTranslation(ctx context.Context, arg0 int64) (bool, error)

OnHideTranslation calls the OnHideTranslation RPC.

func (*ViewTranslationCallbackClient) OnShowTranslation

func (c *ViewTranslationCallbackClient) OnShowTranslation(ctx context.Context, arg0 int64) (bool, error)

OnShowTranslation calls the OnShowTranslation RPC.

type ViewTranslationRequestBuilderClient

type ViewTranslationRequestBuilderClient struct {
	// contains filtered or unexported fields
}

ViewTranslationRequestBuilderClient wraps the gRPC ViewTranslationRequestBuilderService client.

func NewViewTranslationRequestBuilderClient

func NewViewTranslationRequestBuilderClient(cc grpc.ClientConnInterface) *ViewTranslationRequestBuilderClient

NewViewTranslationRequestBuilderClient creates a new ViewTranslationRequestBuilder client.

func (*ViewTranslationRequestBuilderClient) Build

Build calls the Build RPC.

func (*ViewTranslationRequestBuilderClient) SetValue

func (c *ViewTranslationRequestBuilderClient) SetValue(ctx context.Context, arg0 string, arg1 int64) (int64, error)

SetValue calls the SetValue RPC.

type ViewTranslationRequestClient

type ViewTranslationRequestClient struct {
	// contains filtered or unexported fields
}

ViewTranslationRequestClient wraps the gRPC ViewTranslationRequestService client.

func NewViewTranslationRequestClient

func NewViewTranslationRequestClient(cc grpc.ClientConnInterface) *ViewTranslationRequestClient

NewViewTranslationRequestClient creates a new ViewTranslationRequest client.

func (*ViewTranslationRequestClient) DescribeContents

func (c *ViewTranslationRequestClient) DescribeContents(ctx context.Context) (int32, error)

DescribeContents calls the DescribeContents RPC.

func (*ViewTranslationRequestClient) Equals

func (c *ViewTranslationRequestClient) Equals(ctx context.Context, arg0 int64) (bool, error)

Equals calls the Equals RPC.

func (*ViewTranslationRequestClient) GetAutofillId

func (c *ViewTranslationRequestClient) GetAutofillId(ctx context.Context) (int64, error)

GetAutofillId calls the GetAutofillId RPC.

func (*ViewTranslationRequestClient) GetKeys

GetKeys calls the GetKeys RPC.

func (*ViewTranslationRequestClient) GetValue

func (c *ViewTranslationRequestClient) GetValue(ctx context.Context, arg0 string) (int64, error)

GetValue calls the GetValue RPC.

func (*ViewTranslationRequestClient) HashCode

HashCode calls the HashCode RPC.

func (*ViewTranslationRequestClient) ToString

ToString calls the ToString RPC.

func (*ViewTranslationRequestClient) WriteToParcel

func (c *ViewTranslationRequestClient) WriteToParcel(ctx context.Context, arg0 int64, arg1 int32) error

WriteToParcel calls the WriteToParcel RPC.

type ViewTranslationResponseBuilderClient

type ViewTranslationResponseBuilderClient struct {
	// contains filtered or unexported fields
}

ViewTranslationResponseBuilderClient wraps the gRPC ViewTranslationResponseBuilderService client.

func NewViewTranslationResponseBuilderClient

func NewViewTranslationResponseBuilderClient(cc grpc.ClientConnInterface) *ViewTranslationResponseBuilderClient

NewViewTranslationResponseBuilderClient creates a new ViewTranslationResponseBuilder client.

func (*ViewTranslationResponseBuilderClient) Build

Build calls the Build RPC.

func (*ViewTranslationResponseBuilderClient) SetValue

SetValue calls the SetValue RPC.

type ViewTranslationResponseClient

type ViewTranslationResponseClient struct {
	// contains filtered or unexported fields
}

ViewTranslationResponseClient wraps the gRPC ViewTranslationResponseService client.

func NewViewTranslationResponseClient

func NewViewTranslationResponseClient(cc grpc.ClientConnInterface) *ViewTranslationResponseClient

NewViewTranslationResponseClient creates a new ViewTranslationResponse client.

func (*ViewTranslationResponseClient) DescribeContents

func (c *ViewTranslationResponseClient) DescribeContents(ctx context.Context) (int32, error)

DescribeContents calls the DescribeContents RPC.

func (*ViewTranslationResponseClient) Equals

func (c *ViewTranslationResponseClient) Equals(ctx context.Context, arg0 int64) (bool, error)

Equals calls the Equals RPC.

func (*ViewTranslationResponseClient) GetAutofillId

func (c *ViewTranslationResponseClient) GetAutofillId(ctx context.Context) (int64, error)

GetAutofillId calls the GetAutofillId RPC.

func (*ViewTranslationResponseClient) GetKeys

GetKeys calls the GetKeys RPC.

func (*ViewTranslationResponseClient) GetValue

func (c *ViewTranslationResponseClient) GetValue(ctx context.Context, arg0 string) (int64, error)

GetValue calls the GetValue RPC.

func (*ViewTranslationResponseClient) HashCode

HashCode calls the HashCode RPC.

func (*ViewTranslationResponseClient) ToString

ToString calls the ToString RPC.

func (*ViewTranslationResponseClient) WriteToParcel

func (c *ViewTranslationResponseClient) WriteToParcel(ctx context.Context, arg0 int64, arg1 int32) error

WriteToParcel calls the WriteToParcel RPC.

Jump to

Keyboard shortcuts

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