glide up
This commit is contained in:
30
vendor/google.golang.org/genproto/googleapis/cloud/language/v1/language_service.pb.go
generated
vendored
30
vendor/google.golang.org/genproto/googleapis/cloud/language/v1/language_service.pb.go
generated
vendored
@@ -1065,11 +1065,8 @@ type Document struct {
|
||||
// The language of the document (if not specified, the language is
|
||||
// automatically detected). Both ISO and BCP-47 language codes are
|
||||
// accepted.<br>
|
||||
// **Current Language Restrictions:**
|
||||
//
|
||||
// * Only English, Spanish, and Japanese textual content
|
||||
// are supported, with the following additional restriction:
|
||||
// * `analyzeSentiment` only supports English text.
|
||||
// [Language Support](https://cloud.google.com/natural-language/docs/languages)
|
||||
// lists currently supported languages for each API method.
|
||||
// If the language (either specified by the caller or automatically detected)
|
||||
// is not supported by the called API method, an `INVALID_ARGUMENT` error
|
||||
// is returned.
|
||||
@@ -1343,7 +1340,7 @@ type Sentiment struct {
|
||||
// negative).
|
||||
Magnitude float32 `protobuf:"fixed32,2,opt,name=magnitude" json:"magnitude,omitempty"`
|
||||
// Sentiment score between -1.0 (negative sentiment) and 1.0
|
||||
// (positive sentiment.)
|
||||
// (positive sentiment).
|
||||
Score float32 `protobuf:"fixed32,3,opt,name=score" json:"score,omitempty"`
|
||||
}
|
||||
|
||||
@@ -1576,8 +1573,7 @@ func (m *TextSpan) GetBeginOffset() int32 {
|
||||
|
||||
// The sentiment analysis request message.
|
||||
type AnalyzeSentimentRequest struct {
|
||||
// Input document. Currently, `analyzeSentiment` only supports English text
|
||||
// ([Document.language][google.cloud.language.v1.Document.language]="EN").
|
||||
// Input document.
|
||||
Document *Document `protobuf:"bytes,1,opt,name=document" json:"document,omitempty"`
|
||||
// The encoding type used by the API to calculate sentence offsets.
|
||||
EncodingType EncodingType `protobuf:"varint,2,opt,name=encoding_type,json=encodingType,enum=google.cloud.language.v1.EncodingType" json:"encoding_type,omitempty"`
|
||||
@@ -1608,7 +1604,7 @@ type AnalyzeSentimentResponse struct {
|
||||
DocumentSentiment *Sentiment `protobuf:"bytes,1,opt,name=document_sentiment,json=documentSentiment" json:"document_sentiment,omitempty"`
|
||||
// The language of the text, which will be the same as the language specified
|
||||
// in the request or, if not specified, the automatically-detected language.
|
||||
// See `Document.language` field for more details.
|
||||
// See [Document.language][google.cloud.language.v1.Document.language] field for more details.
|
||||
Language string `protobuf:"bytes,2,opt,name=language" json:"language,omitempty"`
|
||||
// The sentiment for all the sentences in the document.
|
||||
Sentences []*Sentence `protobuf:"bytes,3,rep,name=sentences" json:"sentences,omitempty"`
|
||||
@@ -1673,7 +1669,7 @@ type AnalyzeEntitiesResponse struct {
|
||||
Entities []*Entity `protobuf:"bytes,1,rep,name=entities" json:"entities,omitempty"`
|
||||
// The language of the text, which will be the same as the language specified
|
||||
// in the request or, if not specified, the automatically-detected language.
|
||||
// See `Document.language` field for more details.
|
||||
// See [Document.language][google.cloud.language.v1.Document.language] field for more details.
|
||||
Language string `protobuf:"bytes,2,opt,name=language" json:"language,omitempty"`
|
||||
}
|
||||
|
||||
@@ -1731,7 +1727,7 @@ type AnalyzeSyntaxResponse struct {
|
||||
Tokens []*Token `protobuf:"bytes,2,rep,name=tokens" json:"tokens,omitempty"`
|
||||
// The language of the text, which will be the same as the language specified
|
||||
// in the request or, if not specified, the automatically-detected language.
|
||||
// See `Document.language` field for more details.
|
||||
// See [Document.language][google.cloud.language.v1.Document.language] field for more details.
|
||||
Language string `protobuf:"bytes,3,opt,name=language" json:"language,omitempty"`
|
||||
}
|
||||
|
||||
@@ -1855,7 +1851,7 @@ type AnnotateTextResponse struct {
|
||||
DocumentSentiment *Sentiment `protobuf:"bytes,4,opt,name=document_sentiment,json=documentSentiment" json:"document_sentiment,omitempty"`
|
||||
// The language of the text, which will be the same as the language specified
|
||||
// in the request or, if not specified, the automatically-detected language.
|
||||
// See `Document.language` field for more details.
|
||||
// See [Document.language][google.cloud.language.v1.Document.language] field for more details.
|
||||
Language string `protobuf:"bytes,5,opt,name=language" json:"language,omitempty"`
|
||||
}
|
||||
|
||||
@@ -1950,8 +1946,9 @@ const _ = grpc.SupportPackageIsVersion4
|
||||
type LanguageServiceClient interface {
|
||||
// Analyzes the sentiment of the provided text.
|
||||
AnalyzeSentiment(ctx context.Context, in *AnalyzeSentimentRequest, opts ...grpc.CallOption) (*AnalyzeSentimentResponse, error)
|
||||
// Finds named entities (currently finds proper names) in the text,
|
||||
// entity types, salience, mentions for each entity, and other properties.
|
||||
// Finds named entities (currently proper names and common nouns) in the text
|
||||
// along with entity types, salience, mentions for each entity, and
|
||||
// other properties.
|
||||
AnalyzeEntities(ctx context.Context, in *AnalyzeEntitiesRequest, opts ...grpc.CallOption) (*AnalyzeEntitiesResponse, error)
|
||||
// Analyzes the syntax of the text and provides sentence boundaries and
|
||||
// tokenization along with part of speech tags, dependency trees, and other
|
||||
@@ -2011,8 +2008,9 @@ func (c *languageServiceClient) AnnotateText(ctx context.Context, in *AnnotateTe
|
||||
type LanguageServiceServer interface {
|
||||
// Analyzes the sentiment of the provided text.
|
||||
AnalyzeSentiment(context.Context, *AnalyzeSentimentRequest) (*AnalyzeSentimentResponse, error)
|
||||
// Finds named entities (currently finds proper names) in the text,
|
||||
// entity types, salience, mentions for each entity, and other properties.
|
||||
// Finds named entities (currently proper names and common nouns) in the text
|
||||
// along with entity types, salience, mentions for each entity, and
|
||||
// other properties.
|
||||
AnalyzeEntities(context.Context, *AnalyzeEntitiesRequest) (*AnalyzeEntitiesResponse, error)
|
||||
// Analyzes the syntax of the text and provides sentence boundaries and
|
||||
// tokenization along with part of speech tags, dependency trees, and other
|
||||
|
@@ -1065,11 +1065,8 @@ type Document struct {
|
||||
// The language of the document (if not specified, the language is
|
||||
// automatically detected). Both ISO and BCP-47 language codes are
|
||||
// accepted.<br>
|
||||
// **Current Language Restrictions:**
|
||||
//
|
||||
// * Only English, Spanish, and Japanese textual content
|
||||
// are supported, with the following additional restriction:
|
||||
// * `analyzeSentiment` only supports English text.
|
||||
// [Language Support](https://cloud.google.com/natural-language/docs/languages)
|
||||
// lists currently supported languages for each API method.
|
||||
// If the language (either specified by the caller or automatically detected)
|
||||
// is not supported by the called API method, an `INVALID_ARGUMENT` error
|
||||
// is returned.
|
||||
@@ -1347,7 +1344,7 @@ type Sentiment struct {
|
||||
// negative).
|
||||
Magnitude float32 `protobuf:"fixed32,2,opt,name=magnitude" json:"magnitude,omitempty"`
|
||||
// Sentiment score between -1.0 (negative sentiment) and 1.0
|
||||
// (positive sentiment.)
|
||||
// (positive sentiment).
|
||||
Score float32 `protobuf:"fixed32,3,opt,name=score" json:"score,omitempty"`
|
||||
}
|
||||
|
||||
@@ -1583,8 +1580,7 @@ func (m *TextSpan) GetBeginOffset() int32 {
|
||||
|
||||
// The sentiment analysis request message.
|
||||
type AnalyzeSentimentRequest struct {
|
||||
// Input document. Currently, `analyzeSentiment` only supports English text
|
||||
// ([Document.language][google.cloud.language.v1beta1.Document.language]="EN").
|
||||
// Input document.
|
||||
Document *Document `protobuf:"bytes,1,opt,name=document" json:"document,omitempty"`
|
||||
// The encoding type used by the API to calculate sentence offsets for the
|
||||
// sentence sentiment.
|
||||
@@ -1616,6 +1612,7 @@ type AnalyzeSentimentResponse struct {
|
||||
DocumentSentiment *Sentiment `protobuf:"bytes,1,opt,name=document_sentiment,json=documentSentiment" json:"document_sentiment,omitempty"`
|
||||
// The language of the text, which will be the same as the language specified
|
||||
// in the request or, if not specified, the automatically-detected language.
|
||||
// See [Document.language][google.cloud.language.v1beta1.Document.language] field for more details.
|
||||
Language string `protobuf:"bytes,2,opt,name=language" json:"language,omitempty"`
|
||||
// The sentiment for all the sentences in the document.
|
||||
Sentences []*Sentence `protobuf:"bytes,3,rep,name=sentences" json:"sentences,omitempty"`
|
||||
@@ -1957,8 +1954,9 @@ const _ = grpc.SupportPackageIsVersion4
|
||||
type LanguageServiceClient interface {
|
||||
// Analyzes the sentiment of the provided text.
|
||||
AnalyzeSentiment(ctx context.Context, in *AnalyzeSentimentRequest, opts ...grpc.CallOption) (*AnalyzeSentimentResponse, error)
|
||||
// Finds named entities (currently finds proper names) in the text,
|
||||
// entity types, salience, mentions for each entity, and other properties.
|
||||
// Finds named entities (currently proper names and common nouns) in the text
|
||||
// along with entity types, salience, mentions for each entity, and
|
||||
// other properties.
|
||||
AnalyzeEntities(ctx context.Context, in *AnalyzeEntitiesRequest, opts ...grpc.CallOption) (*AnalyzeEntitiesResponse, error)
|
||||
// Analyzes the syntax of the text and provides sentence boundaries and
|
||||
// tokenization along with part of speech tags, dependency trees, and other
|
||||
@@ -2018,8 +2016,9 @@ func (c *languageServiceClient) AnnotateText(ctx context.Context, in *AnnotateTe
|
||||
type LanguageServiceServer interface {
|
||||
// Analyzes the sentiment of the provided text.
|
||||
AnalyzeSentiment(context.Context, *AnalyzeSentimentRequest) (*AnalyzeSentimentResponse, error)
|
||||
// Finds named entities (currently finds proper names) in the text,
|
||||
// entity types, salience, mentions for each entity, and other properties.
|
||||
// Finds named entities (currently proper names and common nouns) in the text
|
||||
// along with entity types, salience, mentions for each entity, and
|
||||
// other properties.
|
||||
AnalyzeEntities(context.Context, *AnalyzeEntitiesRequest) (*AnalyzeEntitiesResponse, error)
|
||||
// Analyzes the syntax of the text and provides sentence boundaries and
|
||||
// tokenization along with part of speech tags, dependency trees, and other
|
||||
|
2441
vendor/google.golang.org/genproto/googleapis/cloud/language/v1beta2/language_service.pb.go
generated
vendored
Normal file
2441
vendor/google.golang.org/genproto/googleapis/cloud/language/v1beta2/language_service.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user