Package cloud.google.com/go/translate/apiv3/translatepb (v1.12.6)

Variables

OperationState_name, OperationState_value

var (
	OperationState_name = map[int32]string{
		0: "OPERATION_STATE_UNSPECIFIED",
		1: "OPERATION_STATE_RUNNING",
		2: "OPERATION_STATE_SUCCEEDED",
		3: "OPERATION_STATE_FAILED",
		4: "OPERATION_STATE_CANCELLING",
		5: "OPERATION_STATE_CANCELLED",
	}
	OperationState_value = map[string]int32{
		"OPERATION_STATE_UNSPECIFIED": 0,
		"OPERATION_STATE_RUNNING":     1,
		"OPERATION_STATE_SUCCEEDED":   2,
		"OPERATION_STATE_FAILED":      3,
		"OPERATION_STATE_CANCELLING":  4,
		"OPERATION_STATE_CANCELLED":   5,
	}
)

Enum value maps for OperationState.

BatchTranslateMetadata_State_name, BatchTranslateMetadata_State_value

var (
	BatchTranslateMetadata_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "RUNNING",
		2: "SUCCEEDED",
		3: "FAILED",
		4: "CANCELLING",
		5: "CANCELLED",
	}
	BatchTranslateMetadata_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"RUNNING":           1,
		"SUCCEEDED":         2,
		"FAILED":            3,
		"CANCELLING":        4,
		"CANCELLED":         5,
	}
)

Enum value maps for BatchTranslateMetadata_State.

CreateGlossaryMetadata_State_name, CreateGlossaryMetadata_State_value

var (
	CreateGlossaryMetadata_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "RUNNING",
		2: "SUCCEEDED",
		3: "FAILED",
		4: "CANCELLING",
		5: "CANCELLED",
	}
	CreateGlossaryMetadata_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"RUNNING":           1,
		"SUCCEEDED":         2,
		"FAILED":            3,
		"CANCELLING":        4,
		"CANCELLED":         5,
	}
)

Enum value maps for CreateGlossaryMetadata_State.

UpdateGlossaryMetadata_State_name, UpdateGlossaryMetadata_State_value

var (
	UpdateGlossaryMetadata_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "RUNNING",
		2: "SUCCEEDED",
		3: "FAILED",
		4: "CANCELLING",
		5: "CANCELLED",
	}
	UpdateGlossaryMetadata_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"RUNNING":           1,
		"SUCCEEDED":         2,
		"FAILED":            3,
		"CANCELLING":        4,
		"CANCELLED":         5,
	}
)

Enum value maps for UpdateGlossaryMetadata_State.

DeleteGlossaryMetadata_State_name, DeleteGlossaryMetadata_State_value

var (
	DeleteGlossaryMetadata_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "RUNNING",
		2: "SUCCEEDED",
		3: "FAILED",
		4: "CANCELLING",
		5: "CANCELLED",
	}
	DeleteGlossaryMetadata_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"RUNNING":           1,
		"SUCCEEDED":         2,
		"FAILED":            3,
		"CANCELLING":        4,
		"CANCELLED":         5,
	}
)

Enum value maps for DeleteGlossaryMetadata_State.

BatchTranslateDocumentMetadata_State_name, BatchTranslateDocumentMetadata_State_value

var (
	BatchTranslateDocumentMetadata_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "RUNNING",
		2: "SUCCEEDED",
		3: "FAILED",
		4: "CANCELLING",
		5: "CANCELLED",
	}
	BatchTranslateDocumentMetadata_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"RUNNING":           1,
		"SUCCEEDED":         2,
		"FAILED":            3,
		"CANCELLING":        4,
		"CANCELLED":         5,
	}
)

Enum value maps for BatchTranslateDocumentMetadata_State.

File_google_cloud_translate_v3_adaptive_mt_proto

var File_google_cloud_translate_v3_adaptive_mt_proto protoreflect.FileDescriptor

File_google_cloud_translate_v3_automl_translation_proto

var File_google_cloud_translate_v3_automl_translation_proto protoreflect.FileDescriptor

File_google_cloud_translate_v3_common_proto

var File_google_cloud_translate_v3_common_proto protoreflect.FileDescriptor

File_google_cloud_translate_v3_translation_service_proto

var File_google_cloud_translate_v3_translation_service_proto protoreflect.FileDescriptor

Functions

func RegisterTranslationServiceServer

func RegisterTranslationServiceServer(s *grpc.Server, srv TranslationServiceServer)

AdaptiveMtDataset

type AdaptiveMtDataset struct {

	// Required. The resource name of the dataset, in form of
	// `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The name of the dataset to show in the interface. The name can be
	// up to 32 characters long and can consist only of ASCII Latin letters A-Z
	// and a-z, underscores (_), and ASCII digits 0-9.
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// The BCP-47 language code of the source language.
	SourceLanguageCode string `protobuf:"bytes,3,opt,name=source_language_code,json=sourceLanguageCode,proto3" json:"source_language_code,omitempty"`
	// The BCP-47 language code of the target language.
	TargetLanguageCode string `protobuf:"bytes,4,opt,name=target_language_code,json=targetLanguageCode,proto3" json:"target_language_code,omitempty"`
	// The number of examples in the dataset.
	ExampleCount int32 `protobuf:"varint,5,opt,name=example_count,json=exampleCount,proto3" json:"example_count,omitempty"`
	// Output only. Timestamp when this dataset was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. Timestamp when this dataset was last updated.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

An Adaptive MT Dataset.

func (*AdaptiveMtDataset) Descriptor

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

Deprecated: Use AdaptiveMtDataset.ProtoReflect.Descriptor instead.

func (*AdaptiveMtDataset) GetCreateTime

func (x *AdaptiveMtDataset) GetCreateTime() *timestamppb.Timestamp

func (*AdaptiveMtDataset) GetDisplayName

func (x *AdaptiveMtDataset) GetDisplayName() string

func (*AdaptiveMtDataset) GetExampleCount

func (x *AdaptiveMtDataset) GetExampleCount() int32

func (*AdaptiveMtDataset) GetName

func (x *AdaptiveMtDataset) GetName() string

func (*AdaptiveMtDataset) GetSourceLanguageCode

func (x *AdaptiveMtDataset) GetSourceLanguageCode() string

func (*AdaptiveMtDataset) GetTargetLanguageCode

func (x *AdaptiveMtDataset) GetTargetLanguageCode() string

func (*AdaptiveMtDataset) GetUpdateTime

func (x *AdaptiveMtDataset) GetUpdateTime() *timestamppb.Timestamp

func (*AdaptiveMtDataset) ProtoMessage

func (*AdaptiveMtDataset) ProtoMessage()

func (*AdaptiveMtDataset) ProtoReflect

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

func (*AdaptiveMtDataset) Reset

func (x *AdaptiveMtDataset) Reset()

func (*AdaptiveMtDataset) String

func (x *AdaptiveMtDataset) String() string

AdaptiveMtFile

type AdaptiveMtFile struct {

	// Required. The resource name of the file, in form of
	// `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The file's display name.
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// The number of entries that the file contains.
	EntryCount int32 `protobuf:"varint,3,opt,name=entry_count,json=entryCount,proto3" json:"entry_count,omitempty"`
	// Output only. Timestamp when this file was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. Timestamp when this file was last updated.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

An AdaptiveMtFile.

func (*AdaptiveMtFile) Descriptor

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

Deprecated: Use AdaptiveMtFile.ProtoReflect.Descriptor instead.

func (*AdaptiveMtFile) GetCreateTime

func (x *AdaptiveMtFile) GetCreateTime() *timestamppb.Timestamp

func (*AdaptiveMtFile) GetDisplayName

func (x *AdaptiveMtFile) GetDisplayName() string

func (*AdaptiveMtFile) GetEntryCount

func (x *AdaptiveMtFile) GetEntryCount() int32

func (*AdaptiveMtFile) GetName

func (x *AdaptiveMtFile) GetName() string

func (*AdaptiveMtFile) GetUpdateTime

func (x *AdaptiveMtFile) GetUpdateTime() *timestamppb.Timestamp

func (*AdaptiveMtFile) ProtoMessage

func (*AdaptiveMtFile) ProtoMessage()

func (*AdaptiveMtFile) ProtoReflect

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

func (*AdaptiveMtFile) Reset

func (x *AdaptiveMtFile) Reset()

func (*AdaptiveMtFile) String

func (x *AdaptiveMtFile) String() string

AdaptiveMtSentence

type AdaptiveMtSentence struct {

	// Required. The resource name of the file, in form of
	// `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The source sentence.
	SourceSentence string `protobuf:"bytes,2,opt,name=source_sentence,json=sourceSentence,proto3" json:"source_sentence,omitempty"`
	// Required. The target sentence.
	TargetSentence string `protobuf:"bytes,3,opt,name=target_sentence,json=targetSentence,proto3" json:"target_sentence,omitempty"`
	// Output only. Timestamp when this sentence was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. Timestamp when this sentence was last updated.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

An AdaptiveMt sentence entry.

func (*AdaptiveMtSentence) Descriptor

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

Deprecated: Use AdaptiveMtSentence.ProtoReflect.Descriptor instead.

func (*AdaptiveMtSentence) GetCreateTime

func (x *AdaptiveMtSentence) GetCreateTime() *timestamppb.Timestamp

func (*AdaptiveMtSentence) GetName

func (x *AdaptiveMtSentence) GetName() string

func (*AdaptiveMtSentence) GetSourceSentence

func (x *AdaptiveMtSentence) GetSourceSentence() string

func (*AdaptiveMtSentence) GetTargetSentence

func (x *AdaptiveMtSentence) GetTargetSentence() string

func (*AdaptiveMtSentence) GetUpdateTime

func (x *AdaptiveMtSentence) GetUpdateTime() *timestamppb.Timestamp

func (*AdaptiveMtSentence) ProtoMessage

func (*AdaptiveMtSentence) ProtoMessage()

func (*AdaptiveMtSentence) ProtoReflect

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

func (*AdaptiveMtSentence) Reset

func (x *AdaptiveMtSentence) Reset()

func (*AdaptiveMtSentence) String

func (x *AdaptiveMtSentence) String() string

AdaptiveMtTranslateRequest

type AdaptiveMtTranslateRequest struct {

	// Required. Location to make a regional call.
	//
	// Format: `projects/{project-number-or-id}/locations/{location-id}`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The resource name for the dataset to use for adaptive MT.
	// `projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}`
	Dataset string `protobuf:"bytes,2,opt,name=dataset,proto3" json:"dataset,omitempty"`
	// Required. The content of the input in string format.
	Content []string `protobuf:"bytes,3,rep,name=content,proto3" json:"content,omitempty"`
	// Configuration for caller provided reference sentences.
	ReferenceSentenceConfig *AdaptiveMtTranslateRequest_ReferenceSentenceConfig `protobuf:"bytes,6,opt,name=reference_sentence_config,json=referenceSentenceConfig,proto3,oneof" json:"reference_sentence_config,omitempty"`
	// Optional. Glossary to be applied. The glossary must be
	// within the same region (have the same location-id) as the model, otherwise
	// an INVALID_ARGUMENT (400) error is returned.
	GlossaryConfig *AdaptiveMtTranslateRequest_GlossaryConfig `protobuf:"bytes,7,opt,name=glossary_config,json=glossaryConfig,proto3,oneof" json:"glossary_config,omitempty"`
	// contains filtered or unexported fields
}

The request for sending an AdaptiveMt translation query.

func (*AdaptiveMtTranslateRequest) Descriptor

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

Deprecated: Use AdaptiveMtTranslateRequest.ProtoReflect.Descriptor instead.

func (*AdaptiveMtTranslateRequest) GetContent

func (x *AdaptiveMtTranslateRequest) GetContent() []string

func (*AdaptiveMtTranslateRequest) GetDataset

func (x *AdaptiveMtTranslateRequest) GetDataset() string

func (*AdaptiveMtTranslateRequest) GetGlossaryConfig

func (*AdaptiveMtTranslateRequest) GetParent

func (x *