vendor update for CSI 0.3.0

This commit is contained in:
gman
2018-07-18 16:47:22 +02:00
parent 6f484f92fc
commit 8ea659f0d5
6810 changed files with 438061 additions and 193861 deletions

View File

@ -1,27 +1,15 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/audit/audit_log.proto
/*
Package audit is a generated protocol buffer package.
It is generated from these files:
google/cloud/audit/audit_log.proto
It has these top-level messages:
AuditLog
AuthenticationInfo
AuthorizationInfo
RequestMetadata
*/
package audit
package audit // import "google.golang.org/genproto/googleapis/cloud/audit"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import any "github.com/golang/protobuf/ptypes/any"
import _struct "github.com/golang/protobuf/ptypes/struct"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf1 "github.com/golang/protobuf/ptypes/any"
import google_protobuf2 "github.com/golang/protobuf/ptypes/struct"
import google_rpc "google.golang.org/genproto/googleapis/rpc/status"
import status "google.golang.org/genproto/googleapis/rpc/status"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
@ -38,57 +26,79 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type AuditLog struct {
// The name of the API service performing the operation. For example,
// `"datastore.googleapis.com"`.
ServiceName string `protobuf:"bytes,7,opt,name=service_name,json=serviceName" json:"service_name,omitempty"`
ServiceName string `protobuf:"bytes,7,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
// The name of the service method or operation.
// For API calls, this should be the name of the API method.
// For example,
//
// "google.datastore.v1.Datastore.RunQuery"
// "google.logging.v1.LoggingService.DeleteLog"
MethodName string `protobuf:"bytes,8,opt,name=method_name,json=methodName" json:"method_name,omitempty"`
MethodName string `protobuf:"bytes,8,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"`
// The resource or collection that is the target of the operation.
// The name is a scheme-less URI, not including the API service name.
// For example:
//
// "shelves/SHELF_ID/books"
// "shelves/SHELF_ID/books/BOOK_ID"
ResourceName string `protobuf:"bytes,11,opt,name=resource_name,json=resourceName" json:"resource_name,omitempty"`
ResourceName string `protobuf:"bytes,11,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
// The number of items returned from a List or Query API method,
// if applicable.
NumResponseItems int64 `protobuf:"varint,12,opt,name=num_response_items,json=numResponseItems" json:"num_response_items,omitempty"`
NumResponseItems int64 `protobuf:"varint,12,opt,name=num_response_items,json=numResponseItems,proto3" json:"num_response_items,omitempty"`
// The status of the overall operation.
Status *google_rpc.Status `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"`
Status *status.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
// Authentication information.
AuthenticationInfo *AuthenticationInfo `protobuf:"bytes,3,opt,name=authentication_info,json=authenticationInfo" json:"authentication_info,omitempty"`
AuthenticationInfo *AuthenticationInfo `protobuf:"bytes,3,opt,name=authentication_info,json=authenticationInfo,proto3" json:"authentication_info,omitempty"`
// Authorization information. If there are multiple
// resources or permissions involved, then there is
// one AuthorizationInfo element for each {resource, permission} tuple.
AuthorizationInfo []*AuthorizationInfo `protobuf:"bytes,9,rep,name=authorization_info,json=authorizationInfo" json:"authorization_info,omitempty"`
AuthorizationInfo []*AuthorizationInfo `protobuf:"bytes,9,rep,name=authorization_info,json=authorizationInfo,proto3" json:"authorization_info,omitempty"`
// Metadata about the operation.
RequestMetadata *RequestMetadata `protobuf:"bytes,4,opt,name=request_metadata,json=requestMetadata" json:"request_metadata,omitempty"`
RequestMetadata *RequestMetadata `protobuf:"bytes,4,opt,name=request_metadata,json=requestMetadata,proto3" json:"request_metadata,omitempty"`
// The operation request. This may not include all request parameters,
// such as those that are too large, privacy-sensitive, or duplicated
// elsewhere in the log record.
// It should never include user-generated data, such as file contents.
// When the JSON object represented here has a proto equivalent, the proto
// name will be indicated in the `@type` property.
Request *google_protobuf2.Struct `protobuf:"bytes,16,opt,name=request" json:"request,omitempty"`
Request *_struct.Struct `protobuf:"bytes,16,opt,name=request,proto3" json:"request,omitempty"`
// The operation response. This may not include all response elements,
// such as those that are too large, privacy-sensitive, or duplicated
// elsewhere in the log record.
// It should never include user-generated data, such as file contents.
// When the JSON object represented here has a proto equivalent, the proto
// name will be indicated in the `@type` property.
Response *google_protobuf2.Struct `protobuf:"bytes,17,opt,name=response" json:"response,omitempty"`
Response *_struct.Struct `protobuf:"bytes,17,opt,name=response,proto3" json:"response,omitempty"`
// Other service-specific data about the request, response, and other
// activities.
ServiceData *google_protobuf1.Any `protobuf:"bytes,15,opt,name=service_data,json=serviceData" json:"service_data,omitempty"`
ServiceData *any.Any `protobuf:"bytes,15,opt,name=service_data,json=serviceData,proto3" json:"service_data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AuditLog) Reset() { *m = AuditLog{} }
func (m *AuditLog) String() string { return proto.CompactTextString(m) }
func (*AuditLog) ProtoMessage() {}
func (*AuditLog) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *AuditLog) Reset() { *m = AuditLog{} }
func (m *AuditLog) String() string { return proto.CompactTextString(m) }
func (*AuditLog) ProtoMessage() {}
func (*AuditLog) Descriptor() ([]byte, []int) {
return fileDescriptor_audit_log_394f9970a41d2fd2, []int{0}
}
func (m *AuditLog) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AuditLog.Unmarshal(m, b)
}
func (m *AuditLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AuditLog.Marshal(b, m, deterministic)
}
func (dst *AuditLog) XXX_Merge(src proto.Message) {
xxx_messageInfo_AuditLog.Merge(dst, src)
}
func (m *AuditLog) XXX_Size() int {
return xxx_messageInfo_AuditLog.Size(m)
}
func (m *AuditLog) XXX_DiscardUnknown() {
xxx_messageInfo_AuditLog.DiscardUnknown(m)
}
var xxx_messageInfo_AuditLog proto.InternalMessageInfo
func (m *AuditLog) GetServiceName() string {
if m != nil {
@ -118,7 +128,7 @@ func (m *AuditLog) GetNumResponseItems() int64 {
return 0
}
func (m *AuditLog) GetStatus() *google_rpc.Status {
func (m *AuditLog) GetStatus() *status.Status {
if m != nil {
return m.Status
}
@ -146,21 +156,21 @@ func (m *AuditLog) GetRequestMetadata() *RequestMetadata {
return nil
}
func (m *AuditLog) GetRequest() *google_protobuf2.Struct {
func (m *AuditLog) GetRequest() *_struct.Struct {
if m != nil {
return m.Request
}
return nil
}
func (m *AuditLog) GetResponse() *google_protobuf2.Struct {
func (m *AuditLog) GetResponse() *_struct.Struct {
if m != nil {
return m.Response
}
return nil
}
func (m *AuditLog) GetServiceData() *google_protobuf1.Any {
func (m *AuditLog) GetServiceData() *any.Any {
if m != nil {
return m.ServiceData
}
@ -170,13 +180,35 @@ func (m *AuditLog) GetServiceData() *google_protobuf1.Any {
// Authentication information for the operation.
type AuthenticationInfo struct {
// The email address of the authenticated user making the request.
PrincipalEmail string `protobuf:"bytes,1,opt,name=principal_email,json=principalEmail" json:"principal_email,omitempty"`
PrincipalEmail string `protobuf:"bytes,1,opt,name=principal_email,json=principalEmail,proto3" json:"principal_email,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AuthenticationInfo) Reset() { *m = AuthenticationInfo{} }
func (m *AuthenticationInfo) String() string { return proto.CompactTextString(m) }
func (*AuthenticationInfo) ProtoMessage() {}
func (*AuthenticationInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *AuthenticationInfo) Reset() { *m = AuthenticationInfo{} }
func (m *AuthenticationInfo) String() string { return proto.CompactTextString(m) }
func (*AuthenticationInfo) ProtoMessage() {}
func (*AuthenticationInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_audit_log_394f9970a41d2fd2, []int{1}
}
func (m *AuthenticationInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AuthenticationInfo.Unmarshal(m, b)
}
func (m *AuthenticationInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AuthenticationInfo.Marshal(b, m, deterministic)
}
func (dst *AuthenticationInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_AuthenticationInfo.Merge(dst, src)
}
func (m *AuthenticationInfo) XXX_Size() int {
return xxx_messageInfo_AuthenticationInfo.Size(m)
}
func (m *AuthenticationInfo) XXX_DiscardUnknown() {
xxx_messageInfo_AuthenticationInfo.DiscardUnknown(m)
}
var xxx_messageInfo_AuthenticationInfo proto.InternalMessageInfo
func (m *AuthenticationInfo) GetPrincipalEmail() string {
if m != nil {
@ -190,18 +222,40 @@ type AuthorizationInfo struct {
// The resource being accessed, as a REST-style string. For example:
//
// bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
Resource string `protobuf:"bytes,1,opt,name=resource" json:"resource,omitempty"`
Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
// The required IAM permission.
Permission string `protobuf:"bytes,2,opt,name=permission" json:"permission,omitempty"`
Permission string `protobuf:"bytes,2,opt,name=permission,proto3" json:"permission,omitempty"`
// Whether or not authorization for `resource` and `permission`
// was granted.
Granted bool `protobuf:"varint,3,opt,name=granted" json:"granted,omitempty"`
Granted bool `protobuf:"varint,3,opt,name=granted,proto3" json:"granted,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AuthorizationInfo) Reset() { *m = AuthorizationInfo{} }
func (m *AuthorizationInfo) String() string { return proto.CompactTextString(m) }
func (*AuthorizationInfo) ProtoMessage() {}
func (*AuthorizationInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *AuthorizationInfo) Reset() { *m = AuthorizationInfo{} }
func (m *AuthorizationInfo) String() string { return proto.CompactTextString(m) }
func (*AuthorizationInfo) ProtoMessage() {}
func (*AuthorizationInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_audit_log_394f9970a41d2fd2, []int{2}
}
func (m *AuthorizationInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AuthorizationInfo.Unmarshal(m, b)
}
func (m *AuthorizationInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AuthorizationInfo.Marshal(b, m, deterministic)
}
func (dst *AuthorizationInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_AuthorizationInfo.Merge(dst, src)
}
func (m *AuthorizationInfo) XXX_Size() int {
return xxx_messageInfo_AuthorizationInfo.Size(m)
}
func (m *AuthorizationInfo) XXX_DiscardUnknown() {
xxx_messageInfo_AuthorizationInfo.DiscardUnknown(m)
}
var xxx_messageInfo_AuthorizationInfo proto.InternalMessageInfo
func (m *AuthorizationInfo) GetResource() string {
if m != nil {
@ -227,7 +281,7 @@ func (m *AuthorizationInfo) GetGranted() bool {
// Metadata about the request.
type RequestMetadata struct {
// The IP address of the caller.
CallerIp string `protobuf:"bytes,1,opt,name=caller_ip,json=callerIp" json:"caller_ip,omitempty"`
CallerIp string `protobuf:"bytes,1,opt,name=caller_ip,json=callerIp,proto3" json:"caller_ip,omitempty"`
// The user agent of the caller.
// This information is not authenticated and should be treated accordingly.
// For example:
@ -238,13 +292,35 @@ type RequestMetadata struct {
// The request was made by the Google Cloud SDK CLI (gcloud).
// + `AppEngine-Google; (+http://code.google.com/appengine; appid: s~my-project`:
// The request was made from the `my-project` App Engine app.
CallerSuppliedUserAgent string `protobuf:"bytes,2,opt,name=caller_supplied_user_agent,json=callerSuppliedUserAgent" json:"caller_supplied_user_agent,omitempty"`
CallerSuppliedUserAgent string `protobuf:"bytes,2,opt,name=caller_supplied_user_agent,json=callerSuppliedUserAgent,proto3" json:"caller_supplied_user_agent,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RequestMetadata) Reset() { *m = RequestMetadata{} }
func (m *RequestMetadata) String() string { return proto.CompactTextString(m) }
func (*RequestMetadata) ProtoMessage() {}
func (*RequestMetadata) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *RequestMetadata) Reset() { *m = RequestMetadata{} }
func (m *RequestMetadata) String() string { return proto.CompactTextString(m) }
func (*RequestMetadata) ProtoMessage() {}
func (*RequestMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_audit_log_394f9970a41d2fd2, []int{3}
}
func (m *RequestMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RequestMetadata.Unmarshal(m, b)
}
func (m *RequestMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RequestMetadata.Marshal(b, m, deterministic)
}
func (dst *RequestMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_RequestMetadata.Merge(dst, src)
}
func (m *RequestMetadata) XXX_Size() int {
return xxx_messageInfo_RequestMetadata.Size(m)
}
func (m *RequestMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_RequestMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_RequestMetadata proto.InternalMessageInfo
func (m *RequestMetadata) GetCallerIp() string {
if m != nil {
@ -267,9 +343,11 @@ func init() {
proto.RegisterType((*RequestMetadata)(nil), "google.cloud.audit.RequestMetadata")
}
func init() { proto.RegisterFile("google/cloud/audit/audit_log.proto", fileDescriptor0) }
func init() {
proto.RegisterFile("google/cloud/audit/audit_log.proto", fileDescriptor_audit_log_394f9970a41d2fd2)
}
var fileDescriptor0 = []byte{
var fileDescriptor_audit_log_394f9970a41d2fd2 = []byte{
// 576 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0x5f, 0x6f, 0xd3, 0x30,
0x14, 0xc5, 0x55, 0x36, 0x6d, 0xad, 0xbb, 0xd1, 0xd6, 0x20, 0x1a, 0xca, 0x04, 0xa5, 0x13, 0x50,

View File

@ -0,0 +1,224 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/annotation_payload.proto
package automl // import "google.golang.org/genproto/googleapis/cloud/automl/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Contains annotation information that is relevant to AutoML.
type AnnotationPayload struct {
// Output only . Additional information about the annotation
// specific to the AutoML solution.
//
// Types that are valid to be assigned to Detail:
// *AnnotationPayload_Translation
// *AnnotationPayload_Classification
Detail isAnnotationPayload_Detail `protobuf_oneof:"detail"`
// Output only . The resource ID of the annotation spec that
// this annotation pertains to. The annotation spec comes from either an
// ancestor dataset, or the dataset that was used to train the model in use.
AnnotationSpecId string `protobuf:"bytes,1,opt,name=annotation_spec_id,json=annotationSpecId,proto3" json:"annotation_spec_id,omitempty"`
// Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model
// was trained. Because this field returns a value at model training time,
// for different models trained using the same dataset, the returned value
// could be different as model owner could update the display_name between
// any two model training.
DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AnnotationPayload) Reset() { *m = AnnotationPayload{} }
func (m *AnnotationPayload) String() string { return proto.CompactTextString(m) }
func (*AnnotationPayload) ProtoMessage() {}
func (*AnnotationPayload) Descriptor() ([]byte, []int) {
return fileDescriptor_annotation_payload_ce47679ba5fa3ec6, []int{0}
}
func (m *AnnotationPayload) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AnnotationPayload.Unmarshal(m, b)
}
func (m *AnnotationPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AnnotationPayload.Marshal(b, m, deterministic)
}
func (dst *AnnotationPayload) XXX_Merge(src proto.Message) {
xxx_messageInfo_AnnotationPayload.Merge(dst, src)
}
func (m *AnnotationPayload) XXX_Size() int {
return xxx_messageInfo_AnnotationPayload.Size(m)
}
func (m *AnnotationPayload) XXX_DiscardUnknown() {
xxx_messageInfo_AnnotationPayload.DiscardUnknown(m)
}
var xxx_messageInfo_AnnotationPayload proto.InternalMessageInfo
type isAnnotationPayload_Detail interface {
isAnnotationPayload_Detail()
}
type AnnotationPayload_Translation struct {
Translation *TranslationAnnotation `protobuf:"bytes,2,opt,name=translation,proto3,oneof"`
}
type AnnotationPayload_Classification struct {
Classification *ClassificationAnnotation `protobuf:"bytes,3,opt,name=classification,proto3,oneof"`
}
func (*AnnotationPayload_Translation) isAnnotationPayload_Detail() {}
func (*AnnotationPayload_Classification) isAnnotationPayload_Detail() {}
func (m *AnnotationPayload) GetDetail() isAnnotationPayload_Detail {
if m != nil {
return m.Detail
}
return nil
}
func (m *AnnotationPayload) GetTranslation() *TranslationAnnotation {
if x, ok := m.GetDetail().(*AnnotationPayload_Translation); ok {
return x.Translation
}
return nil
}
func (m *AnnotationPayload) GetClassification() *ClassificationAnnotation {
if x, ok := m.GetDetail().(*AnnotationPayload_Classification); ok {
return x.Classification
}
return nil
}
func (m *AnnotationPayload) GetAnnotationSpecId() string {
if m != nil {
return m.AnnotationSpecId
}
return ""
}
func (m *AnnotationPayload) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*AnnotationPayload) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _AnnotationPayload_OneofMarshaler, _AnnotationPayload_OneofUnmarshaler, _AnnotationPayload_OneofSizer, []interface{}{
(*AnnotationPayload_Translation)(nil),
(*AnnotationPayload_Classification)(nil),
}
}
func _AnnotationPayload_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*AnnotationPayload)
// detail
switch x := m.Detail.(type) {
case *AnnotationPayload_Translation:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Translation); err != nil {
return err
}
case *AnnotationPayload_Classification:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Classification); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("AnnotationPayload.Detail has unexpected type %T", x)
}
return nil
}
func _AnnotationPayload_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*AnnotationPayload)
switch tag {
case 2: // detail.translation
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TranslationAnnotation)
err := b.DecodeMessage(msg)
m.Detail = &AnnotationPayload_Translation{msg}
return true, err
case 3: // detail.classification
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ClassificationAnnotation)
err := b.DecodeMessage(msg)
m.Detail = &AnnotationPayload_Classification{msg}
return true, err
default:
return false, nil
}
}
func _AnnotationPayload_OneofSizer(msg proto.Message) (n int) {
m := msg.(*AnnotationPayload)
// detail
switch x := m.Detail.(type) {
case *AnnotationPayload_Translation:
s := proto.Size(x.Translation)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *AnnotationPayload_Classification:
s := proto.Size(x.Classification)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
func init() {
proto.RegisterType((*AnnotationPayload)(nil), "google.cloud.automl.v1beta1.AnnotationPayload")
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/annotation_payload.proto", fileDescriptor_annotation_payload_ce47679ba5fa3ec6)
}
var fileDescriptor_annotation_payload_ce47679ba5fa3ec6 = []byte{
// 297 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x41, 0x4b, 0x33, 0x31,
0x10, 0x86, 0xbf, 0xed, 0x87, 0x45, 0x53, 0x11, 0xdd, 0xd3, 0x52, 0x05, 0xab, 0xa7, 0x1e, 0x34,
0xb1, 0x55, 0x4f, 0x9e, 0x5a, 0x2f, 0x7a, 0x91, 0x52, 0xc5, 0x83, 0x97, 0x65, 0x9a, 0xa4, 0x21,
0x90, 0xcd, 0x84, 0x26, 0x15, 0xfa, 0x8b, 0xfc, 0x9b, 0x42, 0xb2, 0xd8, 0xad, 0xc8, 0x1e, 0x93,
0x79, 0x9f, 0x67, 0x26, 0x19, 0x72, 0xa7, 0x10, 0x95, 0x91, 0x8c, 0x1b, 0x5c, 0x0b, 0x06, 0xeb,
0x80, 0x95, 0x61, 0x9f, 0xa3, 0x85, 0x0c, 0x30, 0x62, 0x60, 0x2d, 0x06, 0x08, 0x1a, 0x6d, 0xe9,
0x60, 0x63, 0x10, 0x04, 0x75, 0x2b, 0x0c, 0x98, 0x9f, 0x26, 0x8a, 0x46, 0x8a, 0x26, 0x8a, 0xd6,
0x54, 0xff, 0xac, 0x56, 0x82, 0xd3, 0x0d, 0x83, 0x4f, 0x68, 0xff, 0xa6, 0xad, 0x21, 0x37, 0xe0,
0xbd, 0x5e, 0x6a, 0x1e, 0x91, 0x9a, 0xb8, 0x6e, 0x23, 0xc2, 0x0a, 0xac, 0x37, 0x8d, 0xf8, 0xe5,
0x57, 0x87, 0x9c, 0x4c, 0x7e, 0xda, 0xce, 0xd2, 0xdc, 0xf9, 0x3b, 0xe9, 0x35, 0xa2, 0x45, 0x67,
0x90, 0x0d, 0x7b, 0xe3, 0x31, 0x6d, 0x79, 0x07, 0x7d, 0xdb, 0xe6, 0xb7, 0xbe, 0xa7, 0x7f, 0xf3,
0xa6, 0x28, 0x2f, 0xc9, 0xd1, 0xee, 0xd0, 0xc5, 0xff, 0xa8, 0xbe, 0x6f, 0x55, 0x3f, 0xee, 0x20,
0x3b, 0xf6, 0x5f, 0xba, 0xfc, 0x8a, 0xe4, 0x8d, 0x35, 0x78, 0x27, 0x79, 0xa9, 0x45, 0x91, 0x0d,
0xb2, 0xe1, 0xc1, 0xfc, 0x78, 0x5b, 0x79, 0x75, 0x92, 0x3f, 0x8b, 0xfc, 0x82, 0x1c, 0x0a, 0xed,
0x9d, 0x81, 0x4d, 0x69, 0xa1, 0x92, 0xc5, 0x5e, 0xcc, 0xf5, 0xea, 0xbb, 0x17, 0xa8, 0xe4, 0x74,
0x9f, 0x74, 0x85, 0x0c, 0xa0, 0xcd, 0x74, 0x49, 0xce, 0x39, 0x56, 0x6d, 0x83, 0xce, 0xb2, 0x8f,
0x49, 0x5d, 0x56, 0x68, 0xc0, 0x2a, 0x8a, 0x2b, 0xc5, 0x94, 0xb4, 0xf1, 0xab, 0x59, 0x2a, 0x81,
0xd3, 0xfe, 0xcf, 0xe5, 0x3c, 0xa4, 0xe3, 0xa2, 0x1b, 0xd3, 0xb7, 0xdf, 0x01, 0x00, 0x00, 0xff,
0xff, 0x44, 0x63, 0x2f, 0x26, 0x6c, 0x02, 0x00, 0x00,
}

View File

@ -0,0 +1,434 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/classification.proto
package automl // import "google.golang.org/genproto/googleapis/cloud/automl/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Type of the classification problem.
type ClassificationType int32
const (
// Should not be used, an un-set enum has this value by default.
ClassificationType_CLASSIFICATION_TYPE_UNSPECIFIED ClassificationType = 0
// At most one label is allowed per example.
ClassificationType_MULTICLASS ClassificationType = 1
// Multiple labels are allowed for one example.
ClassificationType_MULTILABEL ClassificationType = 2
)
var ClassificationType_name = map[int32]string{
0: "CLASSIFICATION_TYPE_UNSPECIFIED",
1: "MULTICLASS",
2: "MULTILABEL",
}
var ClassificationType_value = map[string]int32{
"CLASSIFICATION_TYPE_UNSPECIFIED": 0,
"MULTICLASS": 1,
"MULTILABEL": 2,
}
func (x ClassificationType) String() string {
return proto.EnumName(ClassificationType_name, int32(x))
}
func (ClassificationType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_classification_e3eb78fdd10472f9, []int{0}
}
// Contains annotation details specific to classification.
type ClassificationAnnotation struct {
// Output only. A confidence estimate between 0.0 and 1.0. A higher value
// means greater confidence that the annotation is positive. If a user
// approves an annotation as negative or positive, the score value remains
// unchanged. If a user creates an annotation, the score is 0 for negative or
// 1 for positive.
Score float32 `protobuf:"fixed32,1,opt,name=score,proto3" json:"score,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClassificationAnnotation) Reset() { *m = ClassificationAnnotation{} }
func (m *ClassificationAnnotation) String() string { return proto.CompactTextString(m) }
func (*ClassificationAnnotation) ProtoMessage() {}
func (*ClassificationAnnotation) Descriptor() ([]byte, []int) {
return fileDescriptor_classification_e3eb78fdd10472f9, []int{0}
}
func (m *ClassificationAnnotation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClassificationAnnotation.Unmarshal(m, b)
}
func (m *ClassificationAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClassificationAnnotation.Marshal(b, m, deterministic)
}
func (dst *ClassificationAnnotation) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClassificationAnnotation.Merge(dst, src)
}
func (m *ClassificationAnnotation) XXX_Size() int {
return xxx_messageInfo_ClassificationAnnotation.Size(m)
}
func (m *ClassificationAnnotation) XXX_DiscardUnknown() {
xxx_messageInfo_ClassificationAnnotation.DiscardUnknown(m)
}
var xxx_messageInfo_ClassificationAnnotation proto.InternalMessageInfo
func (m *ClassificationAnnotation) GetScore() float32 {
if m != nil {
return m.Score
}
return 0
}
// Model evaluation metrics for classification problems.
// Visible only to v1beta1
type ClassificationEvaluationMetrics struct {
// Output only. The Area under precision recall curve metric.
AuPrc float32 `protobuf:"fixed32,1,opt,name=au_prc,json=auPrc,proto3" json:"au_prc,omitempty"`
// Output only. The Area under precision recall curve metric based on priors.
BaseAuPrc float32 `protobuf:"fixed32,2,opt,name=base_au_prc,json=baseAuPrc,proto3" json:"base_au_prc,omitempty"`
// Output only. Metrics that have confidence thresholds.
// Precision-recall curve can be derived from it.
ConfidenceMetricsEntry []*ClassificationEvaluationMetrics_ConfidenceMetricsEntry `protobuf:"bytes,3,rep,name=confidence_metrics_entry,json=confidenceMetricsEntry,proto3" json:"confidence_metrics_entry,omitempty"`
// Output only. Confusion matrix of the evaluation.
// Only set for MULTICLASS classification problems where number
// of labels is no more than 10.
// Only set for model level evaluation, not for evaluation per label.
ConfusionMatrix *ClassificationEvaluationMetrics_ConfusionMatrix `protobuf:"bytes,4,opt,name=confusion_matrix,json=confusionMatrix,proto3" json:"confusion_matrix,omitempty"`
// Output only. The annotation spec ids used for this evaluation.
AnnotationSpecId []string `protobuf:"bytes,5,rep,name=annotation_spec_id,json=annotationSpecId,proto3" json:"annotation_spec_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClassificationEvaluationMetrics) Reset() { *m = ClassificationEvaluationMetrics{} }
func (m *ClassificationEvaluationMetrics) String() string { return proto.CompactTextString(m) }
func (*ClassificationEvaluationMetrics) ProtoMessage() {}
func (*ClassificationEvaluationMetrics) Descriptor() ([]byte, []int) {
return fileDescriptor_classification_e3eb78fdd10472f9, []int{1}
}
func (m *ClassificationEvaluationMetrics) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClassificationEvaluationMetrics.Unmarshal(m, b)
}
func (m *ClassificationEvaluationMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClassificationEvaluationMetrics.Marshal(b, m, deterministic)
}
func (dst *ClassificationEvaluationMetrics) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClassificationEvaluationMetrics.Merge(dst, src)
}
func (m *ClassificationEvaluationMetrics) XXX_Size() int {
return xxx_messageInfo_ClassificationEvaluationMetrics.Size(m)
}
func (m *ClassificationEvaluationMetrics) XXX_DiscardUnknown() {
xxx_messageInfo_ClassificationEvaluationMetrics.DiscardUnknown(m)
}
var xxx_messageInfo_ClassificationEvaluationMetrics proto.InternalMessageInfo
func (m *ClassificationEvaluationMetrics) GetAuPrc() float32 {
if m != nil {
return m.AuPrc
}
return 0
}
func (m *ClassificationEvaluationMetrics) GetBaseAuPrc() float32 {
if m != nil {
return m.BaseAuPrc
}
return 0
}
func (m *ClassificationEvaluationMetrics) GetConfidenceMetricsEntry() []*ClassificationEvaluationMetrics_ConfidenceMetricsEntry {
if m != nil {
return m.ConfidenceMetricsEntry
}
return nil
}
func (m *ClassificationEvaluationMetrics) GetConfusionMatrix() *ClassificationEvaluationMetrics_ConfusionMatrix {
if m != nil {
return m.ConfusionMatrix
}
return nil
}
func (m *ClassificationEvaluationMetrics) GetAnnotationSpecId() []string {
if m != nil {
return m.AnnotationSpecId
}
return nil
}
// Metrics for a single confidence threshold.
type ClassificationEvaluationMetrics_ConfidenceMetricsEntry struct {
// Output only. The confidence threshold value used to compute the metrics.
ConfidenceThreshold float32 `protobuf:"fixed32,1,opt,name=confidence_threshold,json=confidenceThreshold,proto3" json:"confidence_threshold,omitempty"`
// Output only. Recall under the given confidence threshold.
Recall float32 `protobuf:"fixed32,2,opt,name=recall,proto3" json:"recall,omitempty"`
// Output only. Precision under the given confidence threshold.
Precision float32 `protobuf:"fixed32,3,opt,name=precision,proto3" json:"precision,omitempty"`
// Output only. The harmonic mean of recall and precision.
F1Score float32 `protobuf:"fixed32,4,opt,name=f1_score,json=f1Score,proto3" json:"f1_score,omitempty"`
// Output only. The recall when only considering the label that has the
// highest prediction score and not below the confidence threshold for each
// example.
RecallAt1 float32 `protobuf:"fixed32,5,opt,name=recall_at1,json=recallAt1,proto3" json:"recall_at1,omitempty"`
// Output only. The precision when only considering the label that has the
// highest predictionscore and not below the confidence threshold for each
// example.
PrecisionAt1 float32 `protobuf:"fixed32,6,opt,name=precision_at1,json=precisionAt1,proto3" json:"precision_at1,omitempty"`
// Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
F1ScoreAt1 float32 `protobuf:"fixed32,7,opt,name=f1_score_at1,json=f1ScoreAt1,proto3" json:"f1_score_at1,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) Reset() {
*m = ClassificationEvaluationMetrics_ConfidenceMetricsEntry{}
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) String() string {
return proto.CompactTextString(m)
}
func (*ClassificationEvaluationMetrics_ConfidenceMetricsEntry) ProtoMessage() {}
func (*ClassificationEvaluationMetrics_ConfidenceMetricsEntry) Descriptor() ([]byte, []int) {
return fileDescriptor_classification_e3eb78fdd10472f9, []int{1, 0}
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClassificationEvaluationMetrics_ConfidenceMetricsEntry.Unmarshal(m, b)
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClassificationEvaluationMetrics_ConfidenceMetricsEntry.Marshal(b, m, deterministic)
}
func (dst *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClassificationEvaluationMetrics_ConfidenceMetricsEntry.Merge(dst, src)
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) XXX_Size() int {
return xxx_messageInfo_ClassificationEvaluationMetrics_ConfidenceMetricsEntry.Size(m)
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) XXX_DiscardUnknown() {
xxx_messageInfo_ClassificationEvaluationMetrics_ConfidenceMetricsEntry.DiscardUnknown(m)
}
var xxx_messageInfo_ClassificationEvaluationMetrics_ConfidenceMetricsEntry proto.InternalMessageInfo
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetConfidenceThreshold() float32 {
if m != nil {
return m.ConfidenceThreshold
}
return 0
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetRecall() float32 {
if m != nil {
return m.Recall
}
return 0
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetPrecision() float32 {
if m != nil {
return m.Precision
}
return 0
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetF1Score() float32 {
if m != nil {
return m.F1Score
}
return 0
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetRecallAt1() float32 {
if m != nil {
return m.RecallAt1
}
return 0
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetPrecisionAt1() float32 {
if m != nil {
return m.PrecisionAt1
}
return 0
}
func (m *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetF1ScoreAt1() float32 {
if m != nil {
return m.F1ScoreAt1
}
return 0
}
// Confusion matrix of the model running the classification.
type ClassificationEvaluationMetrics_ConfusionMatrix struct {
// Output only. IDs of the annotation specs used in the confusion matrix.
AnnotationSpecId []string `protobuf:"bytes,1,rep,name=annotation_spec_id,json=annotationSpecId,proto3" json:"annotation_spec_id,omitempty"`
// Output only. Rows in the confusion matrix. The number of rows is equal to
// the size of `annotation_spec_id`.
// `row[i].value[j]` is the number of examples that have ground truth of the
// `annotation_spec_id[i]` and are predicted as `annotation_spec_id[j]` by
// the model being evaluated.
Row []*ClassificationEvaluationMetrics_ConfusionMatrix_Row `protobuf:"bytes,2,rep,name=row,proto3" json:"row,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix) Reset() {
*m = ClassificationEvaluationMetrics_ConfusionMatrix{}
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix) String() string {
return proto.CompactTextString(m)
}
func (*ClassificationEvaluationMetrics_ConfusionMatrix) ProtoMessage() {}
func (*ClassificationEvaluationMetrics_ConfusionMatrix) Descriptor() ([]byte, []int) {
return fileDescriptor_classification_e3eb78fdd10472f9, []int{1, 1}
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix.Unmarshal(m, b)
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix.Marshal(b, m, deterministic)
}
func (dst *ClassificationEvaluationMetrics_ConfusionMatrix) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix.Merge(dst, src)
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix) XXX_Size() int {
return xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix.Size(m)
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix) XXX_DiscardUnknown() {
xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix.DiscardUnknown(m)
}
var xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix proto.InternalMessageInfo
func (m *ClassificationEvaluationMetrics_ConfusionMatrix) GetAnnotationSpecId() []string {
if m != nil {
return m.AnnotationSpecId
}
return nil
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix) GetRow() []*ClassificationEvaluationMetrics_ConfusionMatrix_Row {
if m != nil {
return m.Row
}
return nil
}
// Output only. A row in the confusion matrix.
type ClassificationEvaluationMetrics_ConfusionMatrix_Row struct {
// Output only. Value of the specific cell in the confusion matrix.
// The number of values each row is equal to the size of
// annotatin_spec_id.
ExampleCount []int32 `protobuf:"varint,1,rep,packed,name=example_count,json=exampleCount,proto3" json:"example_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix_Row) Reset() {
*m = ClassificationEvaluationMetrics_ConfusionMatrix_Row{}
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix_Row) String() string {
return proto.CompactTextString(m)
}
func (*ClassificationEvaluationMetrics_ConfusionMatrix_Row) ProtoMessage() {}
func (*ClassificationEvaluationMetrics_ConfusionMatrix_Row) Descriptor() ([]byte, []int) {
return fileDescriptor_classification_e3eb78fdd10472f9, []int{1, 1, 0}
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix_Row) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix_Row.Unmarshal(m, b)
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix_Row) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix_Row.Marshal(b, m, deterministic)
}
func (dst *ClassificationEvaluationMetrics_ConfusionMatrix_Row) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix_Row.Merge(dst, src)
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix_Row) XXX_Size() int {
return xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix_Row.Size(m)
}
func (m *ClassificationEvaluationMetrics_ConfusionMatrix_Row) XXX_DiscardUnknown() {
xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix_Row.DiscardUnknown(m)
}
var xxx_messageInfo_ClassificationEvaluationMetrics_ConfusionMatrix_Row proto.InternalMessageInfo
func (m *ClassificationEvaluationMetrics_ConfusionMatrix_Row) GetExampleCount() []int32 {
if m != nil {
return m.ExampleCount
}
return nil
}
func init() {
proto.RegisterType((*ClassificationAnnotation)(nil), "google.cloud.automl.v1beta1.ClassificationAnnotation")
proto.RegisterType((*ClassificationEvaluationMetrics)(nil), "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics")
proto.RegisterType((*ClassificationEvaluationMetrics_ConfidenceMetricsEntry)(nil), "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry")
proto.RegisterType((*ClassificationEvaluationMetrics_ConfusionMatrix)(nil), "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix")
proto.RegisterType((*ClassificationEvaluationMetrics_ConfusionMatrix_Row)(nil), "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row")
proto.RegisterEnum("google.cloud.automl.v1beta1.ClassificationType", ClassificationType_name, ClassificationType_value)
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/classification.proto", fileDescriptor_classification_e3eb78fdd10472f9)
}
var fileDescriptor_classification_e3eb78fdd10472f9 = []byte{
// 583 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xcf, 0x4f, 0xdb, 0x3e,
0x14, 0xff, 0xa6, 0xa5, 0xe5, 0xcb, 0x83, 0x8d, 0xca, 0x30, 0x94, 0x75, 0x6c, 0x54, 0x70, 0xa9,
0xd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@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/data_items.proto
package automl // import "google.golang.org/genproto/googleapis/cloud/automl/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// A representation of an image.
type Image struct {
// Input only. The data representing the image.
// For Predict calls [image_bytes][] must be set, as other options are not
// currently supported by prediction API. You can read the contents of an
// uploaded image by using the [content_uri][] field.
//
// Types that are valid to be assigned to Data:
// *Image_ImageBytes
// *Image_InputConfig
Data isImage_Data `protobuf_oneof:"data"`
// Output only. HTTP URI to the thumbnail image.
ThumbnailUri string `protobuf:"bytes,4,opt,name=thumbnail_uri,json=thumbnailUri,proto3" json:"thumbnail_uri,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Image) Reset() { *m = Image{} }
func (m *Image) String() string { return proto.CompactTextString(m) }
func (*Image) ProtoMessage() {}
func (*Image) Descriptor() ([]byte, []int) {
return fileDescriptor_data_items_6a949c451484ad28, []int{0}
}
func (m *Image) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Image.Unmarshal(m, b)
}
func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Image.Marshal(b, m, deterministic)
}
func (dst *Image) XXX_Merge(src proto.Message) {
xxx_messageInfo_Image.Merge(dst, src)
}
func (m *Image) XXX_Size() int {
return xxx_messageInfo_Image.Size(m)
}
func (m *Image) XXX_DiscardUnknown() {
xxx_messageInfo_Image.DiscardUnknown(m)
}
var xxx_messageInfo_Image proto.InternalMessageInfo
type isImage_Data interface {
isImage_Data()
}
type Image_ImageBytes struct {
ImageBytes []byte `protobuf:"bytes,1,opt,name=image_bytes,json=imageBytes,proto3,oneof"`
}
type Image_InputConfig struct {
InputConfig *InputConfig `protobuf:"bytes,6,opt,name=input_config,json=inputConfig,proto3,oneof"`
}
func (*Image_ImageBytes) isImage_Data() {}
func (*Image_InputConfig) isImage_Data() {}
func (m *Image) GetData() isImage_Data {
if m != nil {
return m.Data
}
return nil
}
func (m *Image) GetImageBytes() []byte {
if x, ok := m.GetData().(*Image_ImageBytes); ok {
return x.ImageBytes
}
return nil
}
func (m *Image) GetInputConfig() *InputConfig {
if x, ok := m.GetData().(*Image_InputConfig); ok {
return x.InputConfig
}
return nil
}
func (m *Image) GetThumbnailUri() string {
if m != nil {
return m.ThumbnailUri
}
return ""
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Image) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Image_OneofMarshaler, _Image_OneofUnmarshaler, _Image_OneofSizer, []interface{}{
(*Image_ImageBytes)(nil),
(*Image_InputConfig)(nil),
}
}
func _Image_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Image)
// data
switch x := m.Data.(type) {
case *Image_ImageBytes:
b.EncodeVarint(1<<3 | proto.WireBytes)
b.EncodeRawBytes(x.ImageBytes)
case *Image_InputConfig:
b.EncodeVarint(6<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.InputConfig); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Image.Data has unexpected type %T", x)
}
return nil
}
func _Image_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Image)
switch tag {
case 1: // data.image_bytes
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.Data = &Image_ImageBytes{x}
return true, err
case 6: // data.input_config
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(InputConfig)
err := b.DecodeMessage(msg)
m.Data = &Image_InputConfig{msg}
return true, err
default:
return false, nil
}
}
func _Image_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Image)
// data
switch x := m.Data.(type) {
case *Image_ImageBytes:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.ImageBytes)))
n += len(x.ImageBytes)
case *Image_InputConfig:
s := proto.Size(x.InputConfig)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// A representation of a text snippet.
type TextSnippet struct {
// Required. The content of the text snippet as a string. Up to 250000
// characters long.
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
// The format of the source text. For example, "text/html" or
// "text/plain". If left blank the format is automatically determined from
// the type of the uploaded content. The default is "text/html". Up to 25000
// characters long.
MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
// Output only. HTTP URI where you can download the content.
ContentUri string `protobuf:"bytes,4,opt,name=content_uri,json=contentUri,proto3" json:"content_uri,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextSnippet) Reset() { *m = TextSnippet{} }
func (m *TextSnippet) String() string { return proto.CompactTextString(m) }
func (*TextSnippet) ProtoMessage() {}
func (*TextSnippet) Descriptor() ([]byte, []int) {
return fileDescriptor_data_items_6a949c451484ad28, []int{1}
}
func (m *TextSnippet) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextSnippet.Unmarshal(m, b)
}
func (m *TextSnippet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextSnippet.Marshal(b, m, deterministic)
}
func (dst *TextSnippet) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextSnippet.Merge(dst, src)
}
func (m *TextSnippet) XXX_Size() int {
return xxx_messageInfo_TextSnippet.Size(m)
}
func (m *TextSnippet) XXX_DiscardUnknown() {
xxx_messageInfo_TextSnippet.DiscardUnknown(m)
}
var xxx_messageInfo_TextSnippet proto.InternalMessageInfo
func (m *TextSnippet) GetContent() string {
if m != nil {
return m.Content
}
return ""
}
func (m *TextSnippet) GetMimeType() string {
if m != nil {
return m.MimeType
}
return ""
}
func (m *TextSnippet) GetContentUri() string {
if m != nil {
return m.ContentUri
}
return ""
}
// Example data used for training or prediction.
type ExamplePayload struct {
// Required. Input only. The example data.
//
// Types that are valid to be assigned to Payload:
// *ExamplePayload_Image
// *ExamplePayload_TextSnippet
Payload isExamplePayload_Payload `protobuf_oneof:"payload"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExamplePayload) Reset() { *m = ExamplePayload{} }
func (m *ExamplePayload) String() string { return proto.CompactTextString(m) }
func (*ExamplePayload) ProtoMessage() {}
func (*ExamplePayload) Descriptor() ([]byte, []int) {
return fileDescriptor_data_items_6a949c451484ad28, []int{2}
}
func (m *ExamplePayload) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExamplePayload.Unmarshal(m, b)
}
func (m *ExamplePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExamplePayload.Marshal(b, m, deterministic)
}
func (dst *ExamplePayload) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExamplePayload.Merge(dst, src)
}
func (m *ExamplePayload) XXX_Size() int {
return xxx_messageInfo_ExamplePayload.Size(m)
}
func (m *ExamplePayload) XXX_DiscardUnknown() {
xxx_messageInfo_ExamplePayload.DiscardUnknown(m)
}
var xxx_messageInfo_ExamplePayload proto.InternalMessageInfo
type isExamplePayload_Payload interface {
isExamplePayload_Payload()
}
type ExamplePayload_Image struct {
Image *Image `protobuf:"bytes,1,opt,name=image,proto3,oneof"`
}
type ExamplePayload_TextSnippet struct {
TextSnippet *TextSnippet `protobuf:"bytes,2,opt,name=text_snippet,json=textSnippet,proto3,oneof"`
}
func (*ExamplePayload_Image) isExamplePayload_Payload() {}
func (*ExamplePayload_TextSnippet) isExamplePayload_Payload() {}
func (m *ExamplePayload) GetPayload() isExamplePayload_Payload {
if m != nil {
return m.Payload
}
return nil
}
func (m *ExamplePayload) GetImage() *Image {
if x, ok := m.GetPayload().(*ExamplePayload_Image); ok {
return x.Image
}
return nil
}
func (m *ExamplePayload) GetTextSnippet() *TextSnippet {
if x, ok := m.GetPayload().(*ExamplePayload_TextSnippet); ok {
return x.TextSnippet
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*ExamplePayload) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _ExamplePayload_OneofMarshaler, _ExamplePayload_OneofUnmarshaler, _ExamplePayload_OneofSizer, []interface{}{
(*ExamplePayload_Image)(nil),
(*ExamplePayload_TextSnippet)(nil),
}
}
func _ExamplePayload_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*ExamplePayload)
// payload
switch x := m.Payload.(type) {
case *ExamplePayload_Image:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Image); err != nil {
return err
}
case *ExamplePayload_TextSnippet:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.TextSnippet); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("ExamplePayload.Payload has unexpected type %T", x)
}
return nil
}
func _ExamplePayload_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*ExamplePayload)
switch tag {
case 1: // payload.image
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Image)
err := b.DecodeMessage(msg)
m.Payload = &ExamplePayload_Image{msg}
return true, err
case 2: // payload.text_snippet
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TextSnippet)
err := b.DecodeMessage(msg)
m.Payload = &ExamplePayload_TextSnippet{msg}
return true, err
default:
return false, nil
}
}
func _ExamplePayload_OneofSizer(msg proto.Message) (n int) {
m := msg.(*ExamplePayload)
// payload
switch x := m.Payload.(type) {
case *ExamplePayload_Image:
s := proto.Size(x.Image)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *ExamplePayload_TextSnippet:
s := proto.Size(x.TextSnippet)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
func init() {
proto.RegisterType((*Image)(nil), "google.cloud.automl.v1beta1.Image")
proto.RegisterType((*TextSnippet)(nil), "google.cloud.automl.v1beta1.TextSnippet")
proto.RegisterType((*ExamplePayload)(nil), "google.cloud.automl.v1beta1.ExamplePayload")
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/data_items.proto", fileDescriptor_data_items_6a949c451484ad28)
}
var fileDescriptor_data_items_6a949c451484ad28 = []byte{
// 381 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x3d, 0xcf, 0xd3, 0x30,
0x14, 0x85, 0x1b, 0xd4, 0x0f, 0xe2, 0x14, 0x06, 0x4f, 0x51, 0x8b, 0xd4, 0x52, 0x18, 0x32, 0xa0,
0x44, 0x2d, 0x1b, 0x4c, 0x04, 0x21, 0xb5, 0x03, 0x52, 0x15, 0xda, 0x85, 0x25, 0x72, 0x52, 0xd7,
0x58, 0x8a, 0x3f, 0x94, 0xdc, 0xa0, 0xe6, 0x0f, 0xf1, 0x3b, 0x91, 0xed, 0x40, 0x3b, 0xbc, 0xca,
0xbb, 0xe5, 0x9e, 0xfb, 0x5c, 0xdf, 0xe3, 0x13, 0xa3, 0x0f, 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x2f, 0x8d, 0x70, 0xea, 0x34, 0xc5, 0x2b, 0x14, 0xf4, 0xdc, 0xc3, 0x42, 0xd4, 0x4b,
0xe7, 0x9a, 0x9b, 0x3c, 0x5e, 0x7f, 0xbb, 0x11, 0xa1, 0x2b, 0x7a, 0x24, 0x5d, 0xa5, 0xc8, 0x05,
0x7f, 0x42, 0x13, 0x9b, 0x81, 0x5d, 0x14, 0xec, 0x36, 0xc3, 0xd7, 0x35, 0xe4, 0x7e, 0x94, 0xb9,
0x11, 0x93, 0x18, 0xd0, 0x1b, 0xe4, 0x8d, 0xb3, 0x6d, 0xfd, 0x3c, 0x97, 0xd8, 0xc3, 0x35, 0x4d,
0x62, 0x70, 0x2f, 0x53, 0x1f, 0xcd, 0xb4, 0x73, 0x95, 0x5e, 0xd1, 0xaa, 0x54, 0x62, 0xe8, 0xa0,
0xa3, 0xf7, 0xf3, 0x4b, 0xdf, 0x66, 0xaa, 0x22, 0x92, 0xc5, 0xaa, 0x66, 0x09, 0xa3, 0xd2, 0xfe,
0xf9, 0xc4, 0xb5, 0x88, 0xe6, 0xcd, 0x93, 0x4f, 0xe4, 0xb3, 0x2b, 0x8b, 0xa9, 0xa5, 0x3f, 0xfe,
0x0d, 0x00, 0x00, 0xff, 0xff, 0xbe, 0xa5, 0xac, 0xba, 0xb8, 0x02, 0x00, 0x00,
}

View File

@ -0,0 +1,283 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/dataset.proto
package automl // import "google.golang.org/genproto/googleapis/cloud/automl/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// A workspace for solving a single, particular machine learning (ML) problem.
// A workspace contains examples that may be annotated.
type Dataset struct {
// Required.
// The dataset metadata that is specific to the problem type.
//
// Types that are valid to be assigned to DatasetMetadata:
// *Dataset_TranslationDatasetMetadata
// *Dataset_ImageClassificationDatasetMetadata
// *Dataset_TextClassificationDatasetMetadata
DatasetMetadata isDataset_DatasetMetadata `protobuf_oneof:"dataset_metadata"`
// Output only. The resource name of the dataset.
// Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. 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"`
// Output only. The number of examples in the dataset.
ExampleCount int32 `protobuf:"varint,21,opt,name=example_count,json=exampleCount,proto3" json:"example_count,omitempty"`
// Output only. Timestamp when this dataset was created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,14,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Dataset) Reset() { *m = Dataset{} }
func (m *Dataset) String() string { return proto.CompactTextString(m) }
func (*Dataset) ProtoMessage() {}
func (*Dataset) Descriptor() ([]byte, []int) {
return fileDescriptor_dataset_a8678ffeb33098d6, []int{0}
}
func (m *Dataset) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Dataset.Unmarshal(m, b)
}
func (m *Dataset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Dataset.Marshal(b, m, deterministic)
}
func (dst *Dataset) XXX_Merge(src proto.Message) {
xxx_messageInfo_Dataset.Merge(dst, src)
}
func (m *Dataset) XXX_Size() int {
return xxx_messageInfo_Dataset.Size(m)
}
func (m *Dataset) XXX_DiscardUnknown() {
xxx_messageInfo_Dataset.DiscardUnknown(m)
}
var xxx_messageInfo_Dataset proto.InternalMessageInfo
type isDataset_DatasetMetadata interface {
isDataset_DatasetMetadata()
}
type Dataset_TranslationDatasetMetadata struct {
TranslationDatasetMetadata *TranslationDatasetMetadata `protobuf:"bytes,23,opt,name=translation_dataset_metadata,json=translationDatasetMetadata,proto3,oneof"`
}
type Dataset_ImageClassificationDatasetMetadata struct {
ImageClassificationDatasetMetadata *ImageClassificationDatasetMetadata `protobuf:"bytes,24,opt,name=image_classification_dataset_metadata,json=imageClassificationDatasetMetadata,proto3,oneof"`
}
type Dataset_TextClassificationDatasetMetadata struct {
TextClassificationDatasetMetadata *TextClassificationDatasetMetadata `protobuf:"bytes,25,opt,name=text_classification_dataset_metadata,json=textClassificationDatasetMetadata,proto3,oneof"`
}
func (*Dataset_TranslationDatasetMetadata) isDataset_DatasetMetadata() {}
func (*Dataset_ImageClassificationDatasetMetadata) isDataset_DatasetMetadata() {}
func (*Dataset_TextClassificationDatasetMetadata) isDataset_DatasetMetadata() {}
func (m *Dataset) GetDatasetMetadata() isDataset_DatasetMetadata {
if m != nil {
return m.DatasetMetadata
}
return nil
}
func (m *Dataset) GetTranslationDatasetMetadata() *TranslationDatasetMetadata {
if x, ok := m.GetDatasetMetadata().(*Dataset_TranslationDatasetMetadata); ok {
return x.TranslationDatasetMetadata
}
return nil
}
func (m *Dataset) GetImageClassificationDatasetMetadata() *ImageClassificationDatasetMetadata {
if x, ok := m.GetDatasetMetadata().(*Dataset_ImageClassificationDatasetMetadata); ok {
return x.ImageClassificationDatasetMetadata
}
return nil
}
func (m *Dataset) GetTextClassificationDatasetMetadata() *TextClassificationDatasetMetadata {
if x, ok := m.GetDatasetMetadata().(*Dataset_TextClassificationDatasetMetadata); ok {
return x.TextClassificationDatasetMetadata
}
return nil
}
func (m *Dataset) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Dataset) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
func (m *Dataset) GetExampleCount() int32 {
if m != nil {
return m.ExampleCount
}
return 0
}
func (m *Dataset) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Dataset) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Dataset_OneofMarshaler, _Dataset_OneofUnmarshaler, _Dataset_OneofSizer, []interface{}{
(*Dataset_TranslationDatasetMetadata)(nil),
(*Dataset_ImageClassificationDatasetMetadata)(nil),
(*Dataset_TextClassificationDatasetMetadata)(nil),
}
}
func _Dataset_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Dataset)
// dataset_metadata
switch x := m.DatasetMetadata.(type) {
case *Dataset_TranslationDatasetMetadata:
b.EncodeVarint(23<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.TranslationDatasetMetadata); err != nil {
return err
}
case *Dataset_ImageClassificationDatasetMetadata:
b.EncodeVarint(24<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ImageClassificationDatasetMetadata); err != nil {
return err
}
case *Dataset_TextClassificationDatasetMetadata:
b.EncodeVarint(25<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.TextClassificationDatasetMetadata); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Dataset.DatasetMetadata has unexpected type %T", x)
}
return nil
}
func _Dataset_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Dataset)
switch tag {
case 23: // dataset_metadata.translation_dataset_metadata
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TranslationDatasetMetadata)
err := b.DecodeMessage(msg)
m.DatasetMetadata = &Dataset_TranslationDatasetMetadata{msg}
return true, err
case 24: // dataset_metadata.image_classification_dataset_metadata
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ImageClassificationDatasetMetadata)
err := b.DecodeMessage(msg)
m.DatasetMetadata = &Dataset_ImageClassificationDatasetMetadata{msg}
return true, err
case 25: // dataset_metadata.text_classification_dataset_metadata
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TextClassificationDatasetMetadata)
err := b.DecodeMessage(msg)
m.DatasetMetadata = &Dataset_TextClassificationDatasetMetadata{msg}
return true, err
default:
return false, nil
}
}
func _Dataset_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Dataset)
// dataset_metadata
switch x := m.DatasetMetadata.(type) {
case *Dataset_TranslationDatasetMetadata:
s := proto.Size(x.TranslationDatasetMetadata)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Dataset_ImageClassificationDatasetMetadata:
s := proto.Size(x.ImageClassificationDatasetMetadata)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Dataset_TextClassificationDatasetMetadata:
s := proto.Size(x.TextClassificationDatasetMetadata)
n += 2 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
func init() {
proto.RegisterType((*Dataset)(nil), "google.cloud.automl.v1beta1.Dataset")
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/dataset.proto", fileDescriptor_dataset_a8678ffeb33098d6)
}
var fileDescriptor_dataset_a8678ffeb33098d6 = []byte{
// 428 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x5d, 0x6b, 0x14, 0x31,
0x14, 0x86, 0x1d, 0xa9, 0x8a, 0xd9, 0x2a, 0x12, 0x10, 0xc7, 0xb1, 0xd0, 0x6d, 0xfd, 0x5a, 0x41,
0x13, 0xaa, 0x82, 0x17, 0x05, 0xc5, 0xd6, 0x0b, 0xbd, 0x50, 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bc, 0x2e, 0xae, 0x06, 0xfa, 0xc5, 0xaf, 0x00,
0x00, 0x00, 0xff, 0xff, 0x84, 0x83, 0x13, 0xa3, 0x3c, 0x04, 0x00, 0x00,
}

View File

@ -0,0 +1,171 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/image.proto
package automl // import "google.golang.org/genproto/googleapis/cloud/automl/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Dataset metadata that is specific to image classification.
type ImageClassificationDatasetMetadata struct {
// Required.
// Type of the classification problem.
ClassificationType ClassificationType `protobuf:"varint,1,opt,name=classification_type,json=classificationType,proto3,enum=google.cloud.automl.v1beta1.ClassificationType" json:"classification_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImageClassificationDatasetMetadata) Reset() { *m = ImageClassificationDatasetMetadata{} }
func (m *ImageClassificationDatasetMetadata) String() string { return proto.CompactTextString(m) }
func (*ImageClassificationDatasetMetadata) ProtoMessage() {}
func (*ImageClassificationDatasetMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_image_154474385dd5e971, []int{0}
}
func (m *ImageClassificationDatasetMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImageClassificationDatasetMetadata.Unmarshal(m, b)
}
func (m *ImageClassificationDatasetMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImageClassificationDatasetMetadata.Marshal(b, m, deterministic)
}
func (dst *ImageClassificationDatasetMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImageClassificationDatasetMetadata.Merge(dst, src)
}
func (m *ImageClassificationDatasetMetadata) XXX_Size() int {
return xxx_messageInfo_ImageClassificationDatasetMetadata.Size(m)
}
func (m *ImageClassificationDatasetMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_ImageClassificationDatasetMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_ImageClassificationDatasetMetadata proto.InternalMessageInfo
func (m *ImageClassificationDatasetMetadata) GetClassificationType() ClassificationType {
if m != nil {
return m.ClassificationType
}
return ClassificationType_CLASSIFICATION_TYPE_UNSPECIFIED
}
// Model metadata for image classification.
type ImageClassificationModelMetadata struct {
// Optional. The ID of the `base` model. If it is specified, the new model
// will be created based on the `base` model. Otherwise, the new model will be
// created from scratch. The `base` model is expected to be in the same
// `project` and `location` as the new model to create.
BaseModelId string `protobuf:"bytes,1,opt,name=base_model_id,json=baseModelId,proto3" json:"base_model_id,omitempty"`
// Required. The train budget of creating this model. The actual
// `train_cost` will be equal or less than this value.
TrainBudget int64 `protobuf:"varint,2,opt,name=train_budget,json=trainBudget,proto3" json:"train_budget,omitempty"`
// Output only. The actual train cost of creating this model. If this
// model is created from a `base` model, the train cost used to create the
// `base` model are not included.
TrainCost int64 `protobuf:"varint,3,opt,name=train_cost,json=trainCost,proto3" json:"train_cost,omitempty"`
// Output only. The reason that this create model operation stopped,
// e.g. BUDGET_REACHED, CONVERGED.
StopReason string `protobuf:"bytes,5,opt,name=stop_reason,json=stopReason,proto3" json:"stop_reason,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImageClassificationModelMetadata) Reset() { *m = ImageClassificationModelMetadata{} }
func (m *ImageClassificationModelMetadata) String() string { return proto.CompactTextString(m) }
func (*ImageClassificationModelMetadata) ProtoMessage() {}
func (*ImageClassificationModelMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_image_154474385dd5e971, []int{1}
}
func (m *ImageClassificationModelMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImageClassificationModelMetadata.Unmarshal(m, b)
}
func (m *ImageClassificationModelMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImageClassificationModelMetadata.Marshal(b, m, deterministic)
}
func (dst *ImageClassificationModelMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImageClassificationModelMetadata.Merge(dst, src)
}
func (m *ImageClassificationModelMetadata) XXX_Size() int {
return xxx_messageInfo_ImageClassificationModelMetadata.Size(m)
}
func (m *ImageClassificationModelMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_ImageClassificationModelMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_ImageClassificationModelMetadata proto.InternalMessageInfo
func (m *ImageClassificationModelMetadata) GetBaseModelId() string {
if m != nil {
return m.BaseModelId
}
return ""
}
func (m *ImageClassificationModelMetadata) GetTrainBudget() int64 {
if m != nil {
return m.TrainBudget
}
return 0
}
func (m *ImageClassificationModelMetadata) GetTrainCost() int64 {
if m != nil {
return m.TrainCost
}
return 0
}
func (m *ImageClassificationModelMetadata) GetStopReason() string {
if m != nil {
return m.StopReason
}
return ""
}
func init() {
proto.RegisterType((*ImageClassificationDatasetMetadata)(nil), "google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata")
proto.RegisterType((*ImageClassificationModelMetadata)(nil), "google.cloud.automl.v1beta1.ImageClassificationModelMetadata")
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/image.proto", fileDescriptor_image_154474385dd5e971)
}
var fileDescriptor_image_154474385dd5e971 = []byte{
// 338 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xb1, 0x6a, 0xe3, 0x40,
0x10, 0x86, 0xd1, 0x99, 0x3b, 0xf0, 0xfa, 0xee, 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e2, 0x5f, 0x0e, 0x4e, 0x65, 0x75, 0x4f, 0x33, 0x53, 0x72, 0x81, 0x71, 0x3a, 0xe9,
0x21, 0x9b, 0x9b, 0x32, 0xbc, 0x11, 0x7f, 0xa9, 0x05, 0xd3, 0x64, 0x79, 0x57, 0x6a, 0x45, 0xd1,
0xaf, 0x79, 0xb0, 0x18, 0xa5, 0x13, 0x66, 0x2b, 0x46, 0xe1, 0xb5, 0x10, 0x5e, 0x29, 0xd0, 0x51,
0x34, 0x62, 0x61, 0xcc, 0x64, 0x8d, 0x8e, 0xc2, 0x99, 0x98, 0x38, 0x42, 0x9b, 0xb5, 0x0a, 0x1c,
0x36, 0xd1, 0x6f, 0xbe, 0x43, 0xf4, 0x28, 0x65, 0xb2, 0x6a, 0xc5, 0xac, 0xc0, 0xfa, 0xdc, 0xd6,
0x2b, 0xc1, 0xbb, 0xec, 0xfa, 0x7f, 0xbc, 0x0b, 0x5e, 0x9f, 0x06, 0x55, 0x63, 0x05, 0x8d, 0x4e,
0xb0, 0xd5, 0x52, 0xab, 0x86, 0x5f, 0x40, 0xfa, 0x4f, 0x60, 0x8d, 0x3b, 0xf9, 0xae, 0x8f, 0xfe,
0x98, 0xff, 0x61, 0xfb, 0xe1, 0x2b, 0x00, 0x00, 0xff, 0xff, 0xde, 0x9b, 0x5b, 0x1e, 0x68, 0x02,
0x00, 0x00,
}

View File

@ -0,0 +1,371 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/io.proto
package automl // import "google.golang.org/genproto/googleapis/cloud/automl/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Input configuration.
type InputConfig struct {
// Required. The source of the input.
//
// Types that are valid to be assigned to Source:
// *InputConfig_GcsSource
Source isInputConfig_Source `protobuf_oneof:"source"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InputConfig) Reset() { *m = InputConfig{} }
func (m *InputConfig) String() string { return proto.CompactTextString(m) }
func (*InputConfig) ProtoMessage() {}
func (*InputConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_io_30049c92fb799bce, []int{0}
}
func (m *InputConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InputConfig.Unmarshal(m, b)
}
func (m *InputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InputConfig.Marshal(b, m, deterministic)
}
func (dst *InputConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_InputConfig.Merge(dst, src)
}
func (m *InputConfig) XXX_Size() int {
return xxx_messageInfo_InputConfig.Size(m)
}
func (m *InputConfig) XXX_DiscardUnknown() {
xxx_messageInfo_InputConfig.DiscardUnknown(m)
}
var xxx_messageInfo_InputConfig proto.InternalMessageInfo
type isInputConfig_Source interface {
isInputConfig_Source()
}
type InputConfig_GcsSource struct {
GcsSource *GcsSource `protobuf:"bytes,1,opt,name=gcs_source,json=gcsSource,proto3,oneof"`
}
func (*InputConfig_GcsSource) isInputConfig_Source() {}
func (m *InputConfig) GetSource() isInputConfig_Source {
if m != nil {
return m.Source
}
return nil
}
func (m *InputConfig) GetGcsSource() *GcsSource {
if x, ok := m.GetSource().(*InputConfig_GcsSource); ok {
return x.GcsSource
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*InputConfig) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _InputConfig_OneofMarshaler, _InputConfig_OneofUnmarshaler, _InputConfig_OneofSizer, []interface{}{
(*InputConfig_GcsSource)(nil),
}
}
func _InputConfig_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*InputConfig)
// source
switch x := m.Source.(type) {
case *InputConfig_GcsSource:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.GcsSource); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("InputConfig.Source has unexpected type %T", x)
}
return nil
}
func _InputConfig_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*InputConfig)
switch tag {
case 1: // source.gcs_source
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(GcsSource)
err := b.DecodeMessage(msg)
m.Source = &InputConfig_GcsSource{msg}
return true, err
default:
return false, nil
}
}
func _InputConfig_OneofSizer(msg proto.Message) (n int) {
m := msg.(*InputConfig)
// source
switch x := m.Source.(type) {
case *InputConfig_GcsSource:
s := proto.Size(x.GcsSource)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Output configuration.
type OutputConfig struct {
// Required. The destination of the output.
//
// Types that are valid to be assigned to Destination:
// *OutputConfig_GcsDestination
Destination isOutputConfig_Destination `protobuf_oneof:"destination"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OutputConfig) Reset() { *m = OutputConfig{} }
func (m *OutputConfig) String() string { return proto.CompactTextString(m) }
func (*OutputConfig) ProtoMessage() {}
func (*OutputConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_io_30049c92fb799bce, []int{1}
}
func (m *OutputConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OutputConfig.Unmarshal(m, b)
}
func (m *OutputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OutputConfig.Marshal(b, m, deterministic)
}
func (dst *OutputConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_OutputConfig.Merge(dst, src)
}
func (m *OutputConfig) XXX_Size() int {
return xxx_messageInfo_OutputConfig.Size(m)
}
func (m *OutputConfig) XXX_DiscardUnknown() {
xxx_messageInfo_OutputConfig.DiscardUnknown(m)
}
var xxx_messageInfo_OutputConfig proto.InternalMessageInfo
type isOutputConfig_Destination interface {
isOutputConfig_Destination()
}
type OutputConfig_GcsDestination struct {
GcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"`
}
func (*OutputConfig_GcsDestination) isOutputConfig_Destination() {}
func (m *OutputConfig) GetDestination() isOutputConfig_Destination {
if m != nil {
return m.Destination
}
return nil
}
func (m *OutputConfig) GetGcsDestination() *GcsDestination {
if x, ok := m.GetDestination().(*OutputConfig_GcsDestination); ok {
return x.GcsDestination
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*OutputConfig) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _OutputConfig_OneofMarshaler, _OutputConfig_OneofUnmarshaler, _OutputConfig_OneofSizer, []interface{}{
(*OutputConfig_GcsDestination)(nil),
}
}
func _OutputConfig_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*OutputConfig)
// destination
switch x := m.Destination.(type) {
case *OutputConfig_GcsDestination:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.GcsDestination); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("OutputConfig.Destination has unexpected type %T", x)
}
return nil
}
func _OutputConfig_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*OutputConfig)
switch tag {
case 1: // destination.gcs_destination
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(GcsDestination)
err := b.DecodeMessage(msg)
m.Destination = &OutputConfig_GcsDestination{msg}
return true, err
default:
return false, nil
}
}
func _OutputConfig_OneofSizer(msg proto.Message) (n int) {
m := msg.(*OutputConfig)
// destination
switch x := m.Destination.(type) {
case *OutputConfig_GcsDestination:
s := proto.Size(x.GcsDestination)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// The GCS location for the input content.
type GcsSource struct {
// Required. Google Cloud Storage URIs to input files, up to 2000 characters
// long. Accepted forms:
// * Full object path: gs://bucket/directory/object.csv
InputUris []string `protobuf:"bytes,1,rep,name=input_uris,json=inputUris,proto3" json:"input_uris,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GcsSource) Reset() { *m = GcsSource{} }
func (m *GcsSource) String() string { return proto.CompactTextString(m) }
func (*GcsSource) ProtoMessage() {}
func (*GcsSource) Descriptor() ([]byte, []int) {
return fileDescriptor_io_30049c92fb799bce, []int{2}
}
func (m *GcsSource) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GcsSource.Unmarshal(m, b)
}
func (m *GcsSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GcsSource.Marshal(b, m, deterministic)
}
func (dst *GcsSource) XXX_Merge(src proto.Message) {
xxx_messageInfo_GcsSource.Merge(dst, src)
}
func (m *GcsSource) XXX_Size() int {
return xxx_messageInfo_GcsSource.Size(m)
}
func (m *GcsSource) XXX_DiscardUnknown() {
xxx_messageInfo_GcsSource.DiscardUnknown(m)
}
var xxx_messageInfo_GcsSource proto.InternalMessageInfo
func (m *GcsSource) GetInputUris() []string {
if m != nil {
return m.InputUris
}
return nil
}
// The GCS location where the output must be written to
type GcsDestination struct {
// Required. Google Cloud Storage URI to output directory, up to 2000
// characters long.
// Accepted forms:
// * Prefix path: gs://bucket/directory
// The requesting user must have write permission to the bucket.
// The directory is created if it doesn't exist.
OutputUriPrefix string `protobuf:"bytes,1,opt,name=output_uri_prefix,json=outputUriPrefix,proto3" json:"output_uri_prefix,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GcsDestination) Reset() { *m = GcsDestination{} }
func (m *GcsDestination) String() string { return proto.CompactTextString(m) }
func (*GcsDestination) ProtoMessage() {}
func (*GcsDestination) Descriptor() ([]byte, []int) {
return fileDescriptor_io_30049c92fb799bce, []int{3}
}
func (m *GcsDestination) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GcsDestination.Unmarshal(m, b)
}
func (m *GcsDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GcsDestination.Marshal(b, m, deterministic)
}
func (dst *GcsDestination) XXX_Merge(src proto.Message) {
xxx_messageInfo_GcsDestination.Merge(dst, src)
}
func (m *GcsDestination) XXX_Size() int {
return xxx_messageInfo_GcsDestination.Size(m)
}
func (m *GcsDestination) XXX_DiscardUnknown() {
xxx_messageInfo_GcsDestination.DiscardUnknown(m)
}
var xxx_messageInfo_GcsDestination proto.InternalMessageInfo
func (m *GcsDestination) GetOutputUriPrefix() string {
if m != nil {
return m.OutputUriPrefix
}
return ""
}
func init() {
proto.RegisterType((*InputConfig)(nil), "google.cloud.automl.v1beta1.InputConfig")
proto.RegisterType((*OutputConfig)(nil), "google.cloud.automl.v1beta1.OutputConfig")
proto.RegisterType((*GcsSource)(nil), "google.cloud.automl.v1beta1.GcsSource")
proto.RegisterType((*GcsDestination)(nil), "google.cloud.automl.v1beta1.GcsDestination")
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/io.proto", fileDescriptor_io_30049c92fb799bce)
}
var fileDescriptor_io_30049c92fb799bce = []byte{
// 300 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x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 0x42, 0xeb, 0x97, 0x67, 0x3a, 0x80, 0xf8, 0xa7, 0x5a, 0x72, 0x06, 0x20, 0xab, 0x5f, 0xce,
0x9d, 0x96, 0xa6, 0x1b, 0xf5, 0xf6, 0xfa, 0x71, 0x16, 0xfb, 0xc9, 0x4c, 0x4b, 0x93, 0xde, 0x41,
0x7b, 0xdb, 0x3e, 0x19, 0xc0, 0x11, 0xfa, 0xd2, 0x95, 0x62, 0x5e, 0x6a, 0xbe, 0x92, 0x9f, 0xbe,
0x66, 0x9c, 0x75, 0xc2, 0x62, 0xa6, 0xe5, 0xd4, 0x8f, 0x47, 0x2b, 0x38, 0xcf, 0x71, 0xbd, 0xab,
0xfc, 0x34, 0x7a, 0xbb, 0xaf, 0xd7, 0x02, 0x0b, 0xa6, 0x04, 0x41, 0x2d, 0xa8, 0xe0, 0xca, 0xdf,
0x80, 0x86, 0x15, 0x2b, 0xa5, 0xf9, 0xf3, 0xce, 0xb7, 0xe1, 0xb9, 0x68, 0x7a, 0xfa, 0xe6, 0x2b,
0x00, 0x00, 0xff, 0xff, 0xe3, 0x87, 0x4d, 0x64, 0x14, 0x02, 0x00, 0x00,
}

View File

@ -0,0 +1,343 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/model.proto
package automl // import "google.golang.org/genproto/googleapis/cloud/automl/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Deployment state of the model.
type Model_DeploymentState int32
const (
// Should not be used, an un-set enum has this value by default.
Model_DEPLOYMENT_STATE_UNSPECIFIED Model_DeploymentState = 0
// Model is deployed.
Model_DEPLOYED Model_DeploymentState = 1
// Model is not deployed.
Model_UNDEPLOYED Model_DeploymentState = 2
)
var Model_DeploymentState_name = map[int32]string{
0: "DEPLOYMENT_STATE_UNSPECIFIED",
1: "DEPLOYED",
2: "UNDEPLOYED",
}
var Model_DeploymentState_value = map[string]int32{
"DEPLOYMENT_STATE_UNSPECIFIED": 0,
"DEPLOYED": 1,
"UNDEPLOYED": 2,
}
func (x Model_DeploymentState) String() string {
return proto.EnumName(Model_DeploymentState_name, int32(x))
}
func (Model_DeploymentState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_model_2836c0ea5c1ddbd5, []int{0, 0}
}
// API proto representing a trained machine learning model.
type Model struct {
// Required.
// The model metadata that is specific to the problem type.
// Must match the metadata type of the dataset used to train the model.
//
// Types that are valid to be assigned to ModelMetadata:
// *Model_ImageClassificationModelMetadata
// *Model_TextClassificationModelMetadata
// *Model_TranslationModelMetadata
ModelMetadata isModel_ModelMetadata `protobuf_oneof:"model_metadata"`
// Output only.
// Resource name of the model.
// Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The name of the model 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"`
// Required.
// The resource ID of the dataset used to create the model. The dataset must
// come from the
// same ancestor project and location.
DatasetId string `protobuf:"bytes,3,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"`
// Output only.
// Timestamp when this model was created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only.
// Timestamp when this model was last updated.
UpdateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. Deployment state of the model.
DeploymentState Model_DeploymentState `protobuf:"varint,8,opt,name=deployment_state,json=deploymentState,proto3,enum=google.cloud.automl.v1beta1.Model_DeploymentState" json:"deployment_state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Model) Reset() { *m = Model{} }
func (m *Model) String() string { return proto.CompactTextString(m) }
func (*Model) ProtoMessage() {}
func (*Model) Descriptor() ([]byte, []int) {
return fileDescriptor_model_2836c0ea5c1ddbd5, []int{0}
}
func (m *Model) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Model.Unmarshal(m, b)
}
func (m *Model) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Model.Marshal(b, m, deterministic)
}
func (dst *Model) XXX_Merge(src proto.Message) {
xxx_messageInfo_Model.Merge(dst, src)
}
func (m *Model) XXX_Size() int {
return xxx_messageInfo_Model.Size(m)
}
func (m *Model) XXX_DiscardUnknown() {
xxx_messageInfo_Model.DiscardUnknown(m)
}
var xxx_messageInfo_Model proto.InternalMessageInfo
type isModel_ModelMetadata interface {
isModel_ModelMetadata()
}
type Model_ImageClassificationModelMetadata struct {
ImageClassificationModelMetadata *ImageClassificationModelMetadata `protobuf:"bytes,13,opt,name=image_classification_model_metadata,json=imageClassificationModelMetadata,proto3,oneof"`
}
type Model_TextClassificationModelMetadata struct {
TextClassificationModelMetadata *TextClassificationModelMetadata `protobuf:"bytes,14,opt,name=text_classification_model_metadata,json=textClassificationModelMetadata,proto3,oneof"`
}
type Model_TranslationModelMetadata struct {
TranslationModelMetadata *TranslationModelMetadata `protobuf:"bytes,15,opt,name=translation_model_metadata,json=translationModelMetadata,proto3,oneof"`
}
func (*Model_ImageClassificationModelMetadata) isModel_ModelMetadata() {}
func (*Model_TextClassificationModelMetadata) isModel_ModelMetadata() {}
func (*Model_TranslationModelMetadata) isModel_ModelMetadata() {}
func (m *Model) GetModelMetadata() isModel_ModelMetadata {
if m != nil {
return m.ModelMetadata
}
return nil
}
func (m *Model) GetImageClassificationModelMetadata() *ImageClassificationModelMetadata {
if x, ok := m.GetModelMetadata().(*Model_ImageClassificationModelMetadata); ok {
return x.ImageClassificationModelMetadata
}
return nil
}
func (m *Model) GetTextClassificationModelMetadata() *TextClassificationModelMetadata {
if x, ok := m.GetModelMetadata().(*Model_TextClassificationModelMetadata); ok {
return x.TextClassificationModelMetadata
}
return nil
}
func (m *Model) GetTranslationModelMetadata() *TranslationModelMetadata {
if x, ok := m.GetModelMetadata().(*Model_TranslationModelMetadata); ok {
return x.TranslationModelMetadata
}
return nil
}
func (m *Model) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Model) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
func (m *Model) GetDatasetId() string {
if m != nil {
return m.DatasetId
}
return ""
}
func (m *Model) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *Model) GetUpdateTime() *timestamp.Timestamp {
if m != nil {
return m.UpdateTime
}
return nil
}
func (m *Model) GetDeploymentState() Model_DeploymentState {
if m != nil {
return m.DeploymentState
}
return Model_DEPLOYMENT_STATE_UNSPECIFIED
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Model) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Model_OneofMarshaler, _Model_OneofUnmarshaler, _Model_OneofSizer, []interface{}{
(*Model_ImageClassificationModelMetadata)(nil),
(*Model_TextClassificationModelMetadata)(nil),
(*Model_TranslationModelMetadata)(nil),
}
}
func _Model_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Model)
// model_metadata
switch x := m.ModelMetadata.(type) {
case *Model_ImageClassificationModelMetadata:
b.EncodeVarint(13<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ImageClassificationModelMetadata); err != nil {
return err
}
case *Model_TextClassificationModelMetadata:
b.EncodeVarint(14<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.TextClassificationModelMetadata); err != nil {
return err
}
case *Model_TranslationModelMetadata:
b.EncodeVarint(15<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.TranslationModelMetadata); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Model.ModelMetadata has unexpected type %T", x)
}
return nil
}
func _Model_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Model)
switch tag {
case 13: // model_metadata.image_classification_model_metadata
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ImageClassificationModelMetadata)
err := b.DecodeMessage(msg)
m.ModelMetadata = &Model_ImageClassificationModelMetadata{msg}
return true, err
case 14: // model_metadata.text_classification_model_metadata
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TextClassificationModelMetadata)
err := b.DecodeMessage(msg)
m.ModelMetadata = &Model_TextClassificationModelMetadata{msg}
return true, err
case 15: // model_metadata.translation_model_metadata
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TranslationModelMetadata)
err := b.DecodeMessage(msg)
m.ModelMetadata = &Model_TranslationModelMetadata{msg}
return true, err
default:
return false, nil
}
}
func _Model_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Model)
// model_metadata
switch x := m.ModelMetadata.(type) {
case *Model_ImageClassificationModelMetadata:
s := proto.Size(x.ImageClassificationModelMetadata)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Model_TextClassificationModelMetadata:
s := proto.Size(x.TextClassificationModelMetadata)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Model_TranslationModelMetadata:
s := proto.Size(x.TranslationModelMetadata)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
func init() {
proto.RegisterType((*Model)(nil), "google.cloud.automl.v1beta1.Model")
proto.RegisterEnum("google.cloud.automl.v1beta1.Model_DeploymentState", Model_DeploymentState_name, Model_DeploymentState_value)
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/model.proto", fileDescriptor_model_2836c0ea5c1ddbd5)
}
var fileDescriptor_model_2836c0ea5c1ddbd5 = []byte{
// 501 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xd1, 0x6e, 0xd3, 0x30,
0x14, 0x86, 0x97, 0x01, 0x63, 0x3b, 0x1d, 0x6d, 0xe5, 0xab, 0xa8, 0x0c, 0x35, 0x14, 0x09, 0x7a,
0x43, 0xa2, 0x15, 0x71, 0x35, 0xb8, 0xd8, 0xd6, 0x20, 0x2a, 0xd1, 0x52, 0xda, 0xec, 0x02, 0x24,
0x14, 0xb9, 0x89, 0x1b, 0x59, 0x4a, 0xe2, 0xa8, 0x39, 0x41, 0xdb, 0x33, 0x20, 0xf1, 0x2e, 0xbc,
0x21, 0x8a, 0xed, 0x16, 0x5a, 0x31, 0xf7, 0xae, 0x3e, 0xe7, 0xfb, 0x8f, 0x7f, 0xff, 0x3d, 0x81,
0x57, 0x89, 0x10, 0x49, 0xca, 0xbc, 0x28, 0x15, 0x55, 0xec, 0xd1, 0x0a, 0x45, 0x96, 0x7a, 0x3f,
0xce, 0x17, 0x0c, 0xe9, 0xb9, 0x97, 0x89, 0x98, 0xa5, 0x6e, 0xb1, 0x12, 0x28, 0xc8, 0x53, 0x05,
0xba, 0x12, 0x74, 0x15, 0xe8, 0x6a, 0xb0, 0x73, 0xa6, 0xa7, 0xd0, 0x82, 0x7b, 0x34, 0xcf, 0x05,
0x52, 0xe4, 0x22, 0x2f, 0x95, 0xb4, 0x63, 0xbc, 0x83, 0x67, 0x34, 0x61, 0x1a, 0x7c, 0x69, 0x02,
0x91, 0xdd, 0xa2, 0xe6, 0x5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0xed, 0x7e,
0xbd, 0x2c, 0x6e, 0xb0, 0x5e, 0x96, 0x19, 0x28, 0xbc, 0x2e, 0xd4, 0xe2, 0xaa, 0x88, 0x37, 0xe2,
0xc6, 0x7e, 0xb1, 0xc2, 0xa5, 0xf8, 0x3b, 0xb4, 0x63, 0x56, 0xa4, 0xe2, 0x2e, 0x63, 0x39, 0x86,
0x25, 0x52, 0x64, 0xf6, 0xb1, 0x63, 0xf5, 0x9b, 0x83, 0x81, 0x31, 0x3c, 0x99, 0x8a, 0x3b, 0xdc,
0x48, 0xe7, 0xb5, 0x72, 0xd6, 0x8a, 0xb7, 0x0b, 0xbd, 0x2f, 0xd0, 0xda, 0x61, 0x88, 0x03, 0x67,
0x43, 0x7f, 0xfa, 0xe9, 0xf3, 0xd7, 0xb1, 0x3f, 0x09, 0xc2, 0x79, 0x70, 0x19, 0xf8, 0xe1, 0xcd,
0x64, 0x3e, 0xf5, 0xaf, 0x47, 0x1f, 0x46, 0xfe, 0xb0, 0x7d, 0x40, 0x4e, 0xe1, 0x58, 0x11, 0xfe,
0xb0, 0x6d, 0x91, 0x26, 0xc0, 0xcd, 0x64, 0x73, 0x3e, 0xbc, 0x6a, 0x43, 0x73, 0xfb, 0xcf, 0xbe,
0x5a, 0x42, 0x37, 0x12, 0x99, 0xc9, 0xee, 0xd4, 0xfa, 0x76, 0xa9, 0xdb, 0x89, 0x48, 0x69, 0x9e,
0xb8, 0x62, 0x95, 0x78, 0x09, 0xcb, 0x65, 0x3a, 0x9e, 0x6a, 0xd1, 0x82, 0x97, 0xff, 0xfd, 0x8e,
0x2f, 0xd4, 0x71, 0x71, 0x24, 0xe9, 0x37, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xf0, 0x10, 0xe2,
0xaa, 0xa9, 0x04, 0x00, 0x00,
}

View File

@ -0,0 +1,252 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/model_evaluation.proto
package automl // import "google.golang.org/genproto/googleapis/cloud/automl/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Evaluation results of a model.
type ModelEvaluation struct {
// Output only. Problem type specific evaluation metrics.
//
// Types that are valid to be assigned to Metrics:
// *ModelEvaluation_ClassificationEvaluationMetrics
// *ModelEvaluation_TranslationEvaluationMetrics
Metrics isModelEvaluation_Metrics `protobuf_oneof:"metrics"`
// Output only.
// Resource name of the model evaluation.
// Format:
//
// `projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only.
// The ID of the annotation spec that the model evaluation applies to. The
// ID is empty for overall model evaluation.
// NOTE: Currently there is no way to obtain the display_name of the
// annotation spec from its ID. To see the display_names, review the model
// evaluations in the UI.
AnnotationSpecId string `protobuf:"bytes,2,opt,name=annotation_spec_id,json=annotationSpecId,proto3" json:"annotation_spec_id,omitempty"`
// Output only.
// Timestamp when this model evaluation was created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The number of examples used for model evaluation.
EvaluatedExampleCount int32 `protobuf:"varint,6,opt,name=evaluated_example_count,json=evaluatedExampleCount,proto3" json:"evaluated_example_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ModelEvaluation) Reset() { *m = ModelEvaluation{} }
func (m *ModelEvaluation) String() string { return proto.CompactTextString(m) }
func (*ModelEvaluation) ProtoMessage() {}
func (*ModelEvaluation) Descriptor() ([]byte, []int) {
return fileDescriptor_model_evaluation_77eb85cbfb723c98, []int{0}
}
func (m *ModelEvaluation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ModelEvaluation.Unmarshal(m, b)
}
func (m *ModelEvaluation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ModelEvaluation.Marshal(b, m, deterministic)
}
func (dst *ModelEvaluation) XXX_Merge(src proto.Message) {
xxx_messageInfo_ModelEvaluation.Merge(dst, src)
}
func (m *ModelEvaluation) XXX_Size() int {
return xxx_messageInfo_ModelEvaluation.Size(m)
}
func (m *ModelEvaluation) XXX_DiscardUnknown() {
xxx_messageInfo_ModelEvaluation.DiscardUnknown(m)
}
var xxx_messageInfo_ModelEvaluation proto.InternalMessageInfo
type isModelEvaluation_Metrics interface {
isModelEvaluation_Metrics()
}
type ModelEvaluation_ClassificationEvaluationMetrics struct {
ClassificationEvaluationMetrics *ClassificationEvaluationMetrics `protobuf:"bytes,8,opt,name=classification_evaluation_metrics,json=classificationEvaluationMetrics,proto3,oneof"`
}
type ModelEvaluation_TranslationEvaluationMetrics struct {
TranslationEvaluationMetrics *TranslationEvaluationMetrics `protobuf:"bytes,9,opt,name=translation_evaluation_metrics,json=translationEvaluationMetrics,proto3,oneof"`
}
func (*ModelEvaluation_ClassificationEvaluationMetrics) isModelEvaluation_Metrics() {}
func (*ModelEvaluation_TranslationEvaluationMetrics) isModelEvaluation_Metrics() {}
func (m *ModelEvaluation) GetMetrics() isModelEvaluation_Metrics {
if m != nil {
return m.Metrics
}
return nil
}
func (m *ModelEvaluation) GetClassificationEvaluationMetrics() *ClassificationEvaluationMetrics {
if x, ok := m.GetMetrics().(*ModelEvaluation_ClassificationEvaluationMetrics); ok {
return x.ClassificationEvaluationMetrics
}
return nil
}
func (m *ModelEvaluation) GetTranslationEvaluationMetrics() *TranslationEvaluationMetrics {
if x, ok := m.GetMetrics().(*ModelEvaluation_TranslationEvaluationMetrics); ok {
return x.TranslationEvaluationMetrics
}
return nil
}
func (m *ModelEvaluation) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ModelEvaluation) GetAnnotationSpecId() string {
if m != nil {
return m.AnnotationSpecId
}
return ""
}
func (m *ModelEvaluation) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *ModelEvaluation) GetEvaluatedExampleCount() int32 {
if m != nil {
return m.EvaluatedExampleCount
}
return 0
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*ModelEvaluation) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _ModelEvaluation_OneofMarshaler, _ModelEvaluation_OneofUnmarshaler, _ModelEvaluation_OneofSizer, []interface{}{
(*ModelEvaluation_ClassificationEvaluationMetrics)(nil),
(*ModelEvaluation_TranslationEvaluationMetrics)(nil),
}
}
func _ModelEvaluation_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*ModelEvaluation)
// metrics
switch x := m.Metrics.(type) {
case *ModelEvaluation_ClassificationEvaluationMetrics:
b.EncodeVarint(8<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ClassificationEvaluationMetrics); err != nil {
return err
}
case *ModelEvaluation_TranslationEvaluationMetrics:
b.EncodeVarint(9<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.TranslationEvaluationMetrics); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("ModelEvaluation.Metrics has unexpected type %T", x)
}
return nil
}
func _ModelEvaluation_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*ModelEvaluation)
switch tag {
case 8: // metrics.classification_evaluation_metrics
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ClassificationEvaluationMetrics)
err := b.DecodeMessage(msg)
m.Metrics = &ModelEvaluation_ClassificationEvaluationMetrics{msg}
return true, err
case 9: // metrics.translation_evaluation_metrics
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TranslationEvaluationMetrics)
err := b.DecodeMessage(msg)
m.Metrics = &ModelEvaluation_TranslationEvaluationMetrics{msg}
return true, err
default:
return false, nil
}
}
func _ModelEvaluation_OneofSizer(msg proto.Message) (n int) {
m := msg.(*ModelEvaluation)
// metrics
switch x := m.Metrics.(type) {
case *ModelEvaluation_ClassificationEvaluationMetrics:
s := proto.Size(x.ClassificationEvaluationMetrics)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *ModelEvaluation_TranslationEvaluationMetrics:
s := proto.Size(x.TranslationEvaluationMetrics)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
func init() {
proto.RegisterType((*ModelEvaluation)(nil), "google.cloud.automl.v1beta1.ModelEvaluation")
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/model_evaluation.proto", fileDescriptor_model_evaluation_77eb85cbfb723c98)
}
var fileDescriptor_model_evaluation_77eb85cbfb723c98 = []byte{
// 388 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x52, 0x4f, 0x6b, 0xdb, 0x30,
0x1c, 0x9d, 0xb7, 0x25, 0x5b, 0x94, 0xc3, 0x86, 0x60, 0xcc, 0x78, 0x61, 0xc9, 0x76, 0xca, 0x61,
0x93, 0x96, 0x0c, 0x06, 0x23, 0xbd, 0x34, 0x21, 0xd0, 0x1e, 0x02, 0xc5, 0xcd, 0xa9, 0x17, 0xa3,
0xc8, 0x8a, 0x11, 0xe8, 0x8f, 0xb1, 0xe4, 0xd0, 0x6b, 0xaf, 0xfd, 0x9c, 0xfd, 0x20, 0xc5, 0x92,
0x13, 0x3b, 0x10, 0x7c, 0xb3, 0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 0x0b, 0xc0,
0xa6, 0xcf, 0xc4, 0xe4, 0x8c, 0x26, 0x3c, 0x0d, 0xdf, 0x3a, 0xc6, 0xe7, 0x06, 0xb9, 0xcf, 0x19,
0xbd, 0x4d, 0xe1, 0x02, 0x0c, 0x69, 0xc1, 0x88, 0x65, 0x49, 0x55, 0x40, 0xd8, 0x73, 0x8e, 0xa3,
0xa3, 0xe3, 0x63, 0x3b, 0x68, 0x7b, 0x6c, 0x27, 0x06, 0x9e, 0x5e, 0xfd, 0x80, 0xff, 0xc0, 0xd7,
0x3a, 0x35, 0x4b, 0x13, 0xf6, 0x48, 0x64, 0x2e, 0x58, 0x42, 0x75, 0xa9, 0x6c, 0xd8, 0x9f, 0x04,
0xd3, 0x5e, 0xfc, 0xe5, 0x04, 0xaf, 0x3d, 0xba, 0xaa, 0xc0, 0xe5, 0x00, 0x7c, 0xa8, 0xaf, 0x68,
0xb9, 0x07, 0x63, 0xaa, 0x65, 0xd7, 0x0d, 0xdd, 0x05, 0x0f, 0xd7, 0x35, 0x9c, 0x69, 0x41, 0x54,
0x86, 0x74, 0x91, 0xe1, 0x8c, 0x29, 0x67, 0x0e, 0x7b, 0x88, 0xe4, 0xdc, 0x5c, 0x7c, 0x7a, 0x0b,
0x7f, 0xdc, 0xf5, 0x1d, 0xfb, 0xef, 0x6b, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd0, 0x78, 0x76, 0xc2,
0x48, 0x03, 0x00, 0x00,
}

View File

@ -0,0 +1,246 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/operations.proto
package automl // import "google.golang.org/genproto/googleapis/cloud/automl/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/golang/protobuf/ptypes/empty"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import status "google.golang.org/genproto/googleapis/rpc/status"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Metadata used across all long running operations returned by AutoML API.
type OperationMetadata struct {
// Ouptut only. Details of specific operation. Even if this field is empty,
// the presence allows to distinguish different types of operations.
//
// Types that are valid to be assigned to Details:
// *OperationMetadata_CreateModelDetails
Details isOperationMetadata_Details `protobuf_oneof:"details"`
// Output only. Progress of operation. Range: [0, 100].
ProgressPercent int32 `protobuf:"varint,13,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"`
// Output only. Partial failures encountered.
// E.g. single files that couldn't be read.
// This field should never exceed 20 entries.
// Status details field will contain standard GCP error details.
PartialFailures []*status.Status `protobuf:"bytes,2,rep,name=partial_failures,json=partialFailures,proto3" json:"partial_failures,omitempty"`
// Output only. Time when the operation was created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Time when the operation was updated for the last time.
UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OperationMetadata) Reset() { *m = OperationMetadata{} }
func (m *OperationMetadata) String() string { return proto.CompactTextString(m) }
func (*OperationMetadata) ProtoMessage() {}
func (*OperationMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_operations_8f7a4667c678e484, []int{0}
}
func (m *OperationMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OperationMetadata.Unmarshal(m, b)
}
func (m *OperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OperationMetadata.Marshal(b, m, deterministic)
}
func (dst *OperationMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_OperationMetadata.Merge(dst, src)
}
func (m *OperationMetadata) XXX_Size() int {
return xxx_messageInfo_OperationMetadata.Size(m)
}
func (m *OperationMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_OperationMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_OperationMetadata proto.InternalMessageInfo
type isOperationMetadata_Details interface {
isOperationMetadata_Details()
}
type OperationMetadata_CreateModelDetails struct {
CreateModelDetails *CreateModelOperationMetadata `protobuf:"bytes,10,opt,name=create_model_details,json=createModelDetails,proto3,oneof"`
}
func (*OperationMetadata_CreateModelDetails) isOperationMetadata_Details() {}
func (m *OperationMetadata) GetDetails() isOperationMetadata_Details {
if m != nil {
return m.Details
}
return nil
}
func (m *OperationMetadata) GetCreateModelDetails() *CreateModelOperationMetadata {
if x, ok := m.GetDetails().(*OperationMetadata_CreateModelDetails); ok {
return x.CreateModelDetails
}
return nil
}
func (m *OperationMetadata) GetProgressPercent() int32 {
if m != nil {
return m.ProgressPercent
}
return 0
}
func (m *OperationMetadata) GetPartialFailures() []*status.Status {
if m != nil {
return m.PartialFailures
}
return nil
}
func (m *OperationMetadata) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *OperationMetadata) GetUpdateTime() *timestamp.Timestamp {
if m != nil {
return m.UpdateTime
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*OperationMetadata) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _OperationMetadata_OneofMarshaler, _OperationMetadata_OneofUnmarshaler, _OperationMetadata_OneofSizer, []interface{}{
(*OperationMetadata_CreateModelDetails)(nil),
}
}
func _OperationMetadata_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*OperationMetadata)
// details
switch x := m.Details.(type) {
case *OperationMetadata_CreateModelDetails:
b.EncodeVarint(10<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.CreateModelDetails); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("OperationMetadata.Details has unexpected type %T", x)
}
return nil
}
func _OperationMetadata_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*OperationMetadata)
switch tag {
case 10: // details.create_model_details
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CreateModelOperationMetadata)
err := b.DecodeMessage(msg)
m.Details = &OperationMetadata_CreateModelDetails{msg}
return true, err
default:
return false, nil
}
}
func _OperationMetadata_OneofSizer(msg proto.Message) (n int) {
m := msg.(*OperationMetadata)
// details
switch x := m.Details.(type) {
case *OperationMetadata_CreateModelDetails:
s := proto.Size(x.CreateModelDetails)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Details of CreateModel operation.
type CreateModelOperationMetadata struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateModelOperationMetadata) Reset() { *m = CreateModelOperationMetadata{} }
func (m *CreateModelOperationMetadata) String() string { return proto.CompactTextString(m) }
func (*CreateModelOperationMetadata) ProtoMessage() {}
func (*CreateModelOperationMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_operations_8f7a4667c678e484, []int{1}
}
func (m *CreateModelOperationMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateModelOperationMetadata.Unmarshal(m, b)
}
func (m *CreateModelOperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateModelOperationMetadata.Marshal(b, m, deterministic)
}
func (dst *CreateModelOperationMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateModelOperationMetadata.Merge(dst, src)
}
func (m *CreateModelOperationMetadata) XXX_Size() int {
return xxx_messageInfo_CreateModelOperationMetadata.Size(m)
}
func (m *CreateModelOperationMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_CreateModelOperationMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_CreateModelOperationMetadata proto.InternalMessageInfo
func init() {
proto.RegisterType((*OperationMetadata)(nil), "google.cloud.automl.v1beta1.OperationMetadata")
proto.RegisterType((*CreateModelOperationMetadata)(nil), "google.cloud.automl.v1beta1.CreateModelOperationMetadata")
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/operations.proto", fileDescriptor_operations_8f7a4667c678e484)
}
var fileDescriptor_operations_8f7a4667c678e484 = []byte{
// 383 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x4f, 0xab, 0xd3, 0x40,
0x14, 0xc5, 0x6d, 0xeb, 0x1f, 0x9c, 0x22, 0xad, 0x41, 0x30, 0xd4, 0x62, 0x4b, 0x37, 0x56, 0x90,
0x19, 0x5a, 0x57, 0x52, 0x5c, 0x58, 0x45, 0xdc, 0x14, 0x4b, 0x74, 0xe5, 0x26, 0xdc, 0x26, 0xb7,
0x21, 0x30, 0xc9, 0x0c, 0x33, 0x37, 0x05, 0x3f, 0xb6, 0xdf, 0x40, 0x32, 0x33, 0xd1, 0xc7, 0x7b,
0x8f, 0x74, 0x39, 0xf7, 0xfc, 0xce, 0xcd, 0xb9, 0x87, 0xb0, 0x77, 0x85, 0x52, 0x85, 0x44, 0x91,
0x49, 0xd5, 0xe4, 0x02, 0x1a, 0x52, 0x95, 0x14, 0x97, 0xcd, 0x09, 0x09, 0x36, 0x42, 0x69, 0x34,
0x40, 0xa5, 0xaa, 0x2d, 0xd7, 0x46, 0x91, 0x8a, 0x5e, 0x79, 0x9a, 0x3b, 0x9a, 0x7b, 0x9a, 0x07,
0x7a, 0x36, 0x0f, 0xab, 0x40, 0x97, 0x02, 0xea, 0x5a, 0xd1, 0x4d, 0xeb, 0xec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, 0x6e, 0x74, 0xfe, 0xcf, 0xfc, 0xf0, 0xba, 0xd9, 0xe3, 0xed, 0x60,
0xff, 0x94, 0x3d, 0x09, 0x2d, 0xae, 0x5e, 0xb3, 0x79, 0x5f, 0x49, 0xfb, 0x33, 0x5b, 0x64, 0xaa,
0xea, 0x2b, 0xf9, 0x38, 0xf8, 0xf5, 0x29, 0xc8, 0x85, 0x92, 0x50, 0x17, 0x5c, 0x99, 0x42, 0x14,
0x58, 0xbb, 0x10, 0xc2, 0x4b, 0xa0, 0x4b, 0x7b, 0xef, 0x2f, 0xb6, 0xf3, 0xcf, 0xd3, 0x63, 0x47,
0xbf, 0xff, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xa3, 0x7b, 0xa7, 0x51, 0x21, 0x03, 0x00, 0x00,
}

View File

@ -0,0 +1,264 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/prediction_service.proto
package automl // import "google.golang.org/genproto/googleapis/cloud/automl/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Request message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
type PredictRequest struct {
// Name of the model requested to serve the prediction.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required.
// Payload to perform a prediction on. The payload must match the
// problem type that the model was trained to solve.
Payload *ExamplePayload `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
// Additional domain-specific parameters, any string must be up to 25000
// characters long.
//
// * For Image Classification:
//
// `score_threshold` - (float) A value from 0.0 to 1.0. When the model
// makes predictions for an
// image, it will only produce results that have at least this confidence
// score threshold. The default is 0.5.
Params map[string]string `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PredictRequest) Reset() { *m = PredictRequest{} }
func (m *PredictRequest) String() string { return proto.CompactTextString(m) }
func (*PredictRequest) ProtoMessage() {}
func (*PredictRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_prediction_service_1b71b7f556fd7159, []int{0}
}
func (m *PredictRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PredictRequest.Unmarshal(m, b)
}
func (m *PredictRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PredictRequest.Marshal(b, m, deterministic)
}
func (dst *PredictRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PredictRequest.Merge(dst, src)
}
func (m *PredictRequest) XXX_Size() int {
return xxx_messageInfo_PredictRequest.Size(m)
}
func (m *PredictRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PredictRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PredictRequest proto.InternalMessageInfo
func (m *PredictRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *PredictRequest) GetPayload() *ExamplePayload {
if m != nil {
return m.Payload
}
return nil
}
func (m *PredictRequest) GetParams() map[string]string {
if m != nil {
return m.Params
}
return nil
}
// Response message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
//
// Currently, this is only
// used to return an image recognition prediction result. More prediction
// output metadata might be introduced in the future.
type PredictResponse struct {
// Prediction result.
Payload []*AnnotationPayload `protobuf:"bytes,1,rep,name=payload,proto3" json:"payload,omitempty"`
// Additional domain-specific prediction response metadata.
Metadata map[string]string `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PredictResponse) Reset() { *m = PredictResponse{} }
func (m *PredictResponse) String() string { return proto.CompactTextString(m) }
func (*PredictResponse) ProtoMessage() {}
func (*PredictResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_prediction_service_1b71b7f556fd7159, []int{1}
}
func (m *PredictResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PredictResponse.Unmarshal(m, b)
}
func (m *PredictResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PredictResponse.Marshal(b, m, deterministic)
}
func (dst *PredictResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PredictResponse.Merge(dst, src)
}
func (m *PredictResponse) XXX_Size() int {
return xxx_messageInfo_PredictResponse.Size(m)
}
func (m *PredictResponse) XXX_DiscardUnknown() {
xxx_messageInfo_PredictResponse.DiscardUnknown(m)
}
var xxx_messageInfo_PredictResponse proto.InternalMessageInfo
func (m *PredictResponse) GetPayload() []*AnnotationPayload {
if m != nil {
return m.Payload
}
return nil
}
func (m *PredictResponse) GetMetadata() map[string]string {
if m != nil {
return m.Metadata
}
return nil
}
func init() {
proto.RegisterType((*PredictRequest)(nil), "google.cloud.automl.v1beta1.PredictRequest")
proto.RegisterMapType((map[string]string)(nil), "google.cloud.automl.v1beta1.PredictRequest.ParamsEntry")
proto.RegisterType((*PredictResponse)(nil), "google.cloud.automl.v1beta1.PredictResponse")
proto.RegisterMapType((map[string]string)(nil), "google.cloud.automl.v1beta1.PredictResponse.MetadataEntry")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// PredictionServiceClient is the client API for PredictionService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type PredictionServiceClient interface {
// Perform a prediction.
Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*PredictResponse, error)
}
type predictionServiceClient struct {
cc *grpc.ClientConn
}
func NewPredictionServiceClient(cc *grpc.ClientConn) PredictionServiceClient {
return &predictionServiceClient{cc}
}
func (c *predictionServiceClient) Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*PredictResponse, error) {
out := new(PredictResponse)
err := c.cc.Invoke(ctx, "/google.cloud.automl.v1beta1.PredictionService/Predict", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// PredictionServiceServer is the server API for PredictionService service.
type PredictionServiceServer interface {
// Perform a prediction.
Predict(context.Context, *PredictRequest) (*PredictResponse, error)
}
func RegisterPredictionServiceServer(s *grpc.Server, srv PredictionServiceServer) {
s.RegisterService(&_PredictionService_serviceDesc, srv)
}
func _PredictionService_Predict_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PredictRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PredictionServiceServer).Predict(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.automl.v1beta1.PredictionService/Predict",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PredictionServiceServer).Predict(ctx, req.(*PredictRequest))
}
return interceptor(ctx, in, info, handler)
}
var _PredictionService_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.automl.v1beta1.PredictionService",
HandlerType: (*PredictionServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Predict",
Handler: _PredictionService_Predict_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/automl/v1beta1/prediction_service.proto",
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/prediction_service.proto", fileDescriptor_prediction_service_1b71b7f556fd7159)
}
var fileDescriptor_prediction_service_1b71b7f556fd7159 = []byte{
// 462 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xdf, 0x8a, 0xd3, 0x40,
0x14, 0xc6, 0x99, 0x56, 0x77, 0xdd, 0x29, 0xfe, 0x1b, 0x44, 0x4a, 0x14, 0x2c, 0xbd, 0x2a, 0xdd,
0x65, 0x86, 0xad, 0xc2, 0x6a, 0x57, 0x2f, 0xb6, 0x50, 0xf0, 0x46, 0x0c, 0x11, 0xbc, 0xf0, 0xa6,
0x9c, 0x4d, 0x0e, 0x21, 0x3a, 0xc9, 0x8c, 0x99, 0x49, 0xb1, 0x88, 0x5e, 0xf8, 0x0a, 0xbe, 0x84,
0x4f, 0xe1, 0x4b, 0xf8, 0x0a, 0x3e, 0x80, 0x77, 0xde, 0x4a, 0x32, 0x63, 0xd6, 0x65, 0x25, 0x6c,
0xef, 0x32, 0x7f, 0x7e, 0xdf, 0xf9, 0xbe, 0xcc, 0x39, 0xf4, 0x51, 0xaa, 0x54, 0x2a, 0x51, 0xc4,
0x52, 0x55, 0x89, 0x80, 0xca, 0xaa, 0x5c, 0x8a, 0xf5, 0xe1, 0x29, 0x5a, 0x38, 0x14, 0xba, 0xc4,
0x24, 0x8b, 0x6d, 0xa6, 0x8a, 0x95, 0xc1, 0x72, 0x9d, 0xc5, 0xc8, 0x75, 0xa9, 0xac, 0x62, 0xf7,
0x1c, 0xc5, 0x1b, 0x8a, 0x3b, 0x8a, 0x7b, 0x2a, 0xb8, 0xef, 0x25, 0x41, 0x67, 0x02, 0x8a, 0x42,
0x59, 0xa8, 0x15, 0x8c, 0x43, 0x83, 0xce, 0x82, 0x67, 0xd7, 0x57, 0x1a, 0x36, 0x52, 0x41, 0xe2,
0xa9, 0x83, 0x2e, 0x2a, 0x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e8, 0xae, 0xdf, 0x65, 0xfb,
0x5b, 0x3c, 0x48, 0x70, 0xb0, 0x4d, 0xa2, 0xf1, 0xe2, 0xcb, 0x8f, 0x9f, 0x5f, 0x7b, 0x4f, 0xc7,
0x47, 0x6d, 0x33, 0x7e, 0xac, 0x5b, 0xeb, 0x99, 0x2e, 0xd5, 0x5b, 0x8c, 0xad, 0x11, 0x53, 0x21,
0x55, 0xec, 0x06, 0x40, 0x4c, 0x45, 0xae, 0x12, 0x94, 0x46, 0x4c, 0x3f, 0xcd, 0xfd, 0x68, 0xcd,
0xc9, 0x74, 0xf1, 0x99, 0x3e, 0x88, 0x55, 0xde, 0x55, 0x76, 0x71, 0xf7, 0x42, 0xc0, 0xb0, 0x6e,
0xf4, 0x90, 0xbc, 0x39, 0xf1, 0x58, 0xaa, 0x24, 0x14, 0x29, 0x57, 0x65, 0x2a, 0x52, 0x2c, 0x9a,
0x31, 0x10, 0xee, 0x08, 0x74, 0x66, 0xfe, 0x3b, 0x37, 0xc7, 0x6e, 0x79, 0xba, 0xd3, 0xdc, 0x7e,
0xf8, 0x27, 0x00, 0x00, 0xff, 0xff, 0xb5, 0xb3, 0x24, 0x52, 0x0b, 0x04, 0x00, 0x00,
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,120 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/text.proto
package automl // import "google.golang.org/genproto/googleapis/cloud/automl/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Dataset metadata for classification.
type TextClassificationDatasetMetadata struct {
// Required.
// Type of the classification problem.
ClassificationType ClassificationType `protobuf:"varint,1,opt,name=classification_type,json=classificationType,proto3,enum=google.cloud.automl.v1beta1.ClassificationType" json:"classification_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextClassificationDatasetMetadata) Reset() { *m = TextClassificationDatasetMetadata{} }
func (m *TextClassificationDatasetMetadata) String() string { return proto.CompactTextString(m) }
func (*TextClassificationDatasetMetadata) ProtoMessage() {}
func (*TextClassificationDatasetMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_text_1fb9d74955be1951, []int{0}
}
func (m *TextClassificationDatasetMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextClassificationDatasetMetadata.Unmarshal(m, b)
}
func (m *TextClassificationDatasetMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextClassificationDatasetMetadata.Marshal(b, m, deterministic)
}
func (dst *TextClassificationDatasetMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextClassificationDatasetMetadata.Merge(dst, src)
}
func (m *TextClassificationDatasetMetadata) XXX_Size() int {
return xxx_messageInfo_TextClassificationDatasetMetadata.Size(m)
}
func (m *TextClassificationDatasetMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_TextClassificationDatasetMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_TextClassificationDatasetMetadata proto.InternalMessageInfo
func (m *TextClassificationDatasetMetadata) GetClassificationType() ClassificationType {
if m != nil {
return m.ClassificationType
}
return ClassificationType_CLASSIFICATION_TYPE_UNSPECIFIED
}
// Model metadata that is specific to text classification.
type TextClassificationModelMetadata struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextClassificationModelMetadata) Reset() { *m = TextClassificationModelMetadata{} }
func (m *TextClassificationModelMetadata) String() string { return proto.CompactTextString(m) }
func (*TextClassificationModelMetadata) ProtoMessage() {}
func (*TextClassificationModelMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_text_1fb9d74955be1951, []int{1}
}
func (m *TextClassificationModelMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextClassificationModelMetadata.Unmarshal(m, b)
}
func (m *TextClassificationModelMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextClassificationModelMetadata.Marshal(b, m, deterministic)
}
func (dst *TextClassificationModelMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextClassificationModelMetadata.Merge(dst, src)
}
func (m *TextClassificationModelMetadata) XXX_Size() int {
return xxx_messageInfo_TextClassificationModelMetadata.Size(m)
}
func (m *TextClassificationModelMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_TextClassificationModelMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_TextClassificationModelMetadata proto.InternalMessageInfo
func init() {
proto.RegisterType((*TextClassificationDatasetMetadata)(nil), "google.cloud.automl.v1beta1.TextClassificationDatasetMetadata")
proto.RegisterType((*TextClassificationModelMetadata)(nil), "google.cloud.automl.v1beta1.TextClassificationModelMetadata")
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/text.proto", fileDescriptor_text_1fb9d74955be1951)
}
var fileDescriptor_text_1fb9d74955be1951 = []byte{
// 240 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0x31, 0x4f, 0x03, 0x31,
0x0c, 0x85, 0x75, 0x0b, 0x12, 0x19, 0x18, 0x8e, 0x05, 0x15, 0xa4, 0xd2, 0x0e, 0x88, 0x29, 0xa6,
0x30, 0x32, 0x51, 0x58, 0x2b, 0x55, 0xa8, 0x13, 0x0b, 0xb8, 0x39, 0x13, 0x45, 0x4a, 0xe3, 0xd0,
0xb8, 0xa8, 0xfd, 0x01, 0xfc, 0x6f, 0xd4, 0xe4, 0x18,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0 +1,260 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/translation.proto
package automl // import "google.golang.org/genproto/googleapis/cloud/automl/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Dataset metadata that is specific to translation.
type TranslationDatasetMetadata struct {
// Required. The BCP-47 language code of the source language.
SourceLanguageCode string `protobuf:"bytes,1,opt,name=source_language_code,json=sourceLanguageCode,proto3" json:"source_language_code,omitempty"`
// Required. The BCP-47 language code of the target language.
TargetLanguageCode string `protobuf:"bytes,2,opt,name=target_language_code,json=targetLanguageCode,proto3" json:"target_language_code,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TranslationDatasetMetadata) Reset() { *m = TranslationDatasetMetadata{} }
func (m *TranslationDatasetMetadata) String() string { return proto.CompactTextString(m) }
func (*TranslationDatasetMetadata) ProtoMessage() {}
func (*TranslationDatasetMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_translation_23667d09236b8210, []int{0}
}
func (m *TranslationDatasetMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TranslationDatasetMetadata.Unmarshal(m, b)
}
func (m *TranslationDatasetMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TranslationDatasetMetadata.Marshal(b, m, deterministic)
}
func (dst *TranslationDatasetMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_TranslationDatasetMetadata.Merge(dst, src)
}
func (m *TranslationDatasetMetadata) XXX_Size() int {
return xxx_messageInfo_TranslationDatasetMetadata.Size(m)
}
func (m *TranslationDatasetMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_TranslationDatasetMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_TranslationDatasetMetadata proto.InternalMessageInfo
func (m *TranslationDatasetMetadata) GetSourceLanguageCode() string {
if m != nil {
return m.SourceLanguageCode
}
return ""
}
func (m *TranslationDatasetMetadata) GetTargetLanguageCode() string {
if m != nil {
return m.TargetLanguageCode
}
return ""
}
// Evaluation metrics for the dataset.
type TranslationEvaluationMetrics struct {
// Output only. BLEU score.
BleuScore float64 `protobuf:"fixed64,1,opt,name=bleu_score,json=bleuScore,proto3" json:"bleu_score,omitempty"`
// Output only. BLEU score for base model.
BaseBleuScore float64 `protobuf:"fixed64,2,opt,name=base_bleu_score,json=baseBleuScore,proto3" json:"base_bleu_score,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TranslationEvaluationMetrics) Reset() { *m = TranslationEvaluationMetrics{} }
func (m *TranslationEvaluationMetrics) String() string { return proto.CompactTextString(m) }
func (*TranslationEvaluationMetrics) ProtoMessage() {}
func (*TranslationEvaluationMetrics) Descriptor() ([]byte, []int) {
return fileDescriptor_translation_23667d09236b8210, []int{1}
}
func (m *TranslationEvaluationMetrics) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TranslationEvaluationMetrics.Unmarshal(m, b)
}
func (m *TranslationEvaluationMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TranslationEvaluationMetrics.Marshal(b, m, deterministic)
}
func (dst *TranslationEvaluationMetrics) XXX_Merge(src proto.Message) {
xxx_messageInfo_TranslationEvaluationMetrics.Merge(dst, src)
}
func (m *TranslationEvaluationMetrics) XXX_Size() int {
return xxx_messageInfo_TranslationEvaluationMetrics.Size(m)
}
func (m *TranslationEvaluationMetrics) XXX_DiscardUnknown() {
xxx_messageInfo_TranslationEvaluationMetrics.DiscardUnknown(m)
}
var xxx_messageInfo_TranslationEvaluationMetrics proto.InternalMessageInfo
func (m *TranslationEvaluationMetrics) GetBleuScore() float64 {
if m != nil {
return m.BleuScore
}
return 0
}
func (m *TranslationEvaluationMetrics) GetBaseBleuScore() float64 {
if m != nil {
return m.BaseBleuScore
}
return 0
}
// Model metadata that is specific to translation.
type TranslationModelMetadata struct {
// The resource name of the model to use as a baseline to train the custom
// model. If unset, we use the default base model provided by Google
// Translate. Format:
// `projects/{project_id}/locations/{location_id}/models/{model_id}`
BaseModel string `protobuf:"bytes,1,opt,name=base_model,json=baseModel,proto3" json:"base_model,omitempty"`
// Output only. Inferred from the dataset.
// The source languge (The BCP-47 language code) that is used for training.
SourceLanguageCode string `protobuf:"bytes,2,opt,name=source_language_code,json=sourceLanguageCode,proto3" json:"source_language_code,omitempty"`
// Output only. The target languge (The BCP-47 language code) that is used for
// training.
TargetLanguageCode string `protobuf:"bytes,3,opt,name=target_language_code,json=targetLanguageCode,proto3" json:"target_language_code,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TranslationModelMetadata) Reset() { *m = TranslationModelMetadata{} }
func (m *TranslationModelMetadata) String() string { return proto.CompactTextString(m) }
func (*TranslationModelMetadata) ProtoMessage() {}
func (*TranslationModelMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_translation_23667d09236b8210, []int{2}
}
func (m *TranslationModelMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TranslationModelMetadata.Unmarshal(m, b)
}
func (m *TranslationModelMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TranslationModelMetadata.Marshal(b, m, deterministic)
}
func (dst *TranslationModelMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_TranslationModelMetadata.Merge(dst, src)
}
func (m *TranslationModelMetadata) XXX_Size() int {
return xxx_messageInfo_TranslationModelMetadata.Size(m)
}
func (m *TranslationModelMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_TranslationModelMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_TranslationModelMetadata proto.InternalMessageInfo
func (m *TranslationModelMetadata) GetBaseModel() string {
if m != nil {
return m.BaseModel
}
return ""
}
func (m *TranslationModelMetadata) GetSourceLanguageCode() string {
if m != nil {
return m.SourceLanguageCode
}
return ""
}
func (m *TranslationModelMetadata) GetTargetLanguageCode() string {
if m != nil {
return m.TargetLanguageCode
}
return ""
}
// Annotation details specific to translation.
type TranslationAnnotation struct {
// Output only . The translated content.
TranslatedContent *TextSnippet `protobuf:"bytes,1,opt,name=translated_content,json=translatedContent,proto3" json:"translated_content,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TranslationAnnotation) Reset() { *m = TranslationAnnotation{} }
func (m *TranslationAnnotation) String() string { return proto.CompactTextString(m) }
func (*TranslationAnnotation) ProtoMessage() {}
func (*TranslationAnnotation) Descriptor() ([]byte, []int) {
return fileDescriptor_translation_23667d09236b8210, []int{3}
}
func (m *TranslationAnnotation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TranslationAnnotation.Unmarshal(m, b)
}
func (m *TranslationAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TranslationAnnotation.Marshal(b, m, deterministic)
}
func (dst *TranslationAnnotation) XXX_Merge(src proto.Message) {
xxx_messageInfo_TranslationAnnotation.Merge(dst, src)
}
func (m *TranslationAnnotation) XXX_Size() int {
return xxx_messageInfo_TranslationAnnotation.Size(m)
}
func (m *TranslationAnnotation) XXX_DiscardUnknown() {
xxx_messageInfo_TranslationAnnotation.DiscardUnknown(m)
}
var xxx_messageInfo_TranslationAnnotation proto.InternalMessageInfo
func (m *TranslationAnnotation) GetTranslatedContent() *TextSnippet {
if m != nil {
return m.TranslatedContent
}
return nil
}
func init() {
proto.RegisterType((*TranslationDatasetMetadata)(nil), "google.cloud.automl.v1beta1.TranslationDatasetMetadata")
proto.RegisterType((*TranslationEvaluationMetrics)(nil), "google.cloud.automl.v1beta1.TranslationEvaluationMetrics")
proto.RegisterType((*TranslationModelMetadata)(nil), "google.cloud.automl.v1beta1.TranslationModelMetadata")
proto.RegisterType((*TranslationAnnotation)(nil), "google.cloud.automl.v1beta1.TranslationAnnotation")
}
func init() {
proto.RegisterFile("google/cloud/automl/v1beta1/translation.proto", fileDescriptor_translation_23667d09236b8210)
}
var fileDescriptor_translation_23667d09236b8210 = []byte{
// 377 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xcf, 0x6a, 0xdb, 0x40,
0x10, 0xc6, 0x91, 0x0b, 0x05, 0x6f, 0x29, 0x6d, 0x45, 0x0b, 0xc6, 0x75, 0x69, 0xf1, 0xa1, 0xf8,
0xd0, 0x4a, 0x75, 0x73, 0xcc, 0xc9, 0x76, 0x72, 0x8b, 0xc1, 0xd8, 0x86, 0x40, 0x2e, 0x62, 0x24,
0x0d, 0x8b, 0x60, 0xb5, 0x23, 0xb4, 0x23, 0xe3, 0x63, 0x5e, 0x24, 0xef, 0x1a, 0x76, 0x57, 0xb6,
0x45, 0x88, 0x0d, 0xb9, 0x49, 0x33, 0xbf, 0x6f, 0xfe, 0xed, 0x27, 0xfe, 0x4a, 0x22, 0xa9, 0x30,
0xce, 0x14, 0x35, 0x79, 0x0c, 0x0d, 0x53, 0xa9, 0xe2, 0xdd, 0x34, 0x45, 0x86, 0x69, 0xcc, 0x35,
0x68, 0xa3, 0x80, 0x0b, 0xd2, 0x51, 0x55, 0x13, 0x53, 0xf8, 0xdd, 0xe3, 0x91, 0xc3, 0x23, 0x8f,
0x47, 0x2d, 0x3e, 0x1c, 0xb5, 0xb5, 0xa0, 0x2a, 0x62, 0xd0, 0x9a, 0xd8, 0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8b, 0xaa, 0x42, 0x5e, 0x7f, 0x39, 0xd5, 0x58, 0xf8, 0x12, 0xf3,
0xbd, 0xf8, 0x99, 0x51, 0x79, 0xa9, 0xc2, 0xfc, 0x73, 0x67, 0xa4, 0x95, 0x35, 0xcc, 0x2a, 0x78,
0x98, 0xb5, 0x02, 0x49, 0x76, 0xb5, 0x88, 0x6a, 0x19, 0x4b, 0xd4, 0xce, 0x4e, 0xb1, 0x4f, 0x41,
0x55, 0x98, 0x57, 0xfd, 0x77, 0xed, 0x7f, 0xd3, 0xf7, 0x8e, 0xbe, 0x7a, 0x0e, 0x00, 0x00, 0xff,
0xff, 0xfb, 0xc7, 0xb3, 0x37, 0x16, 0x03, 0x00, 0x00,
}

View File

@ -1,22 +1,28 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/bigquery/datatransfer/v1/transfer.proto
package datatransfer
package datatransfer // import "google.golang.org/genproto/googleapis/cloud/bigquery/datatransfer/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _struct "github.com/golang/protobuf/ptypes/struct"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf1 "github.com/golang/protobuf/ptypes/struct"
import google_protobuf2 "github.com/golang/protobuf/ptypes/timestamp"
import google_rpc "google.golang.org/genproto/googleapis/rpc/status"
import status "google.golang.org/genproto/googleapis/rpc/status"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// Represents data transfer type.
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// DEPRECATED. Represents data transfer type.
type TransferType int32
const (
@ -43,7 +49,9 @@ var TransferType_value = map[string]int32{
func (x TransferType) String() string {
return proto.EnumName(TransferType_name, int32(x))
}
func (TransferType) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (TransferType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_transfer_b655bdd8f06d7255, []int{0}
}
// Represents data transfer run state.
type TransferState int32
@ -84,7 +92,9 @@ var TransferState_value = map[string]int32{
func (x TransferState) String() string {
return proto.EnumName(TransferState_name, int32(x))
}
func (TransferState) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
func (TransferState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_transfer_b655bdd8f06d7255, []int{1}
}
// Represents data transfer user facing message severity.
type TransferMessage_MessageSeverity int32
@ -108,16 +118,16 @@ var TransferMessage_MessageSeverity_name = map[int32]string{
}
var TransferMessage_MessageSeverity_value = map[string]int32{
"MESSAGE_SEVERITY_UNSPECIFIED": 0,
"INFO": 1,
"WARNING": 2,
"ERROR": 3,
"INFO": 1,
"WARNING": 2,
"ERROR": 3,
}
func (x TransferMessage_MessageSeverity) String() string {
return proto.EnumName(TransferMessage_MessageSeverity_name, int32(x))
}
func (TransferMessage_MessageSeverity) EnumDescriptor() ([]byte, []int) {
return fileDescriptor1, []int{2, 0}
return fileDescriptor_transfer_b655bdd8f06d7255, []int{2, 0}
}
// Represents a data transfer configuration. A transfer configuration
@ -126,7 +136,6 @@ func (TransferMessage_MessageSeverity) EnumDescriptor() ([]byte, []int) {
// When a new transfer configuration is created, the specified
// `destination_dataset_id` is created when needed and shared with the
// appropriate data source service account.
// Next id: 20
type TransferConfig struct {
// The resource name of the transfer config.
// Transfer config names have the form
@ -134,15 +143,15 @@ type TransferConfig struct {
// Where `config_id` is usually a uuid, even though it is not
// guaranteed or required. The name is ignored when creating a transfer
// config.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The BigQuery target dataset id.
DestinationDatasetId string `protobuf:"bytes,2,opt,name=destination_dataset_id,json=destinationDatasetId" json:"destination_dataset_id,omitempty"`
DestinationDatasetId string `protobuf:"bytes,2,opt,name=destination_dataset_id,json=destinationDatasetId,proto3" json:"destination_dataset_id,omitempty"`
// User specified display name for the data transfer.
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Data source id. Cannot be changed once data transfer is created.
DataSourceId string `protobuf:"bytes,5,opt,name=data_source_id,json=dataSourceId" json:"data_source_id,omitempty"`
DataSourceId string `protobuf:"bytes,5,opt,name=data_source_id,json=dataSourceId,proto3" json:"data_source_id,omitempty"`
// Data transfer specific parameters.
Params *google_protobuf1.Struct `protobuf:"bytes,9,opt,name=params" json:"params,omitempty"`
Params *_struct.Struct `protobuf:"bytes,9,opt,name=params,proto3" json:"params,omitempty"`
// Data transfer schedule.
// If the data source does not support a custom schedule, this should be
// empty. If it is empty, the default value for the data source will be
@ -155,37 +164,59 @@ type TransferConfig struct {
// See more explanation about the format here:
// https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format
// NOTE: the granularity should be at least 8 hours, or less frequent.
Schedule string `protobuf:"bytes,7,opt,name=schedule" json:"schedule,omitempty"`
Schedule string `protobuf:"bytes,7,opt,name=schedule,proto3" json:"schedule,omitempty"`
// The number of days to look back to automatically refresh the data.
// For example, if `data_refresh_window_days = 10`, then every day
// BigQuery reingests data for [today-10, today-1], rather than ingesting data
// for just [today-1].
// Only valid if the data source supports the feature. Set the value to 0
// to use the default value.
DataRefreshWindowDays int32 `protobuf:"varint,12,opt,name=data_refresh_window_days,json=dataRefreshWindowDays" json:"data_refresh_window_days,omitempty"`
DataRefreshWindowDays int32 `protobuf:"varint,12,opt,name=data_refresh_window_days,json=dataRefreshWindowDays,proto3" json:"data_refresh_window_days,omitempty"`
// Is this config disabled. When set to true, no runs are scheduled
// for a given transfer.
Disabled bool `protobuf:"varint,13,opt,name=disabled" json:"disabled,omitempty"`
Disabled bool `protobuf:"varint,13,opt,name=disabled,proto3" json:"disabled,omitempty"`
// Output only. Data transfer modification time. Ignored by server on input.
UpdateTime *google_protobuf2.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime" json:"update_time,omitempty"`
UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. Next time when data transfer will run.
NextRunTime *google_protobuf2.Timestamp `protobuf:"bytes,8,opt,name=next_run_time,json=nextRunTime" json:"next_run_time,omitempty"`
NextRunTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=next_run_time,json=nextRunTime,proto3" json:"next_run_time,omitempty"`
// Output only. State of the most recently updated transfer run.
State TransferState `protobuf:"varint,10,opt,name=state,enum=google.cloud.bigquery.datatransfer.v1.TransferState" json:"state,omitempty"`
State TransferState `protobuf:"varint,10,opt,name=state,proto3,enum=google.cloud.bigquery.datatransfer.v1.TransferState" json:"state,omitempty"`
// Output only. Unique ID of the user on whose behalf transfer is done.
// Applicable only to data sources that do not support service accounts.
// When set to 0, the data source service account credentials are used.
// May be negative. Note, that this identifier is not stable.
// It may change over time even for the same user.
UserId int64 `protobuf:"varint,11,opt,name=user_id,json=userId" json:"user_id,omitempty"`
UserId int64 `protobuf:"varint,11,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// Output only. Region in which BigQuery dataset is located.
DatasetRegion string `protobuf:"bytes,14,opt,name=dataset_region,json=datasetRegion" json:"dataset_region,omitempty"`
DatasetRegion string `protobuf:"bytes,14,opt,name=dataset_region,json=datasetRegion,proto3" json:"dataset_region,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TransferConfig) Reset() { *m = TransferConfig{} }
func (m *TransferConfig) String() string { return proto.CompactTextString(m) }
func (*TransferConfig) ProtoMessage() {}
func (*TransferConfig) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (m *TransferConfig) Reset() { *m = TransferConfig{} }
func (m *TransferConfig) String() string { return proto.CompactTextString(m) }
func (*TransferConfig) ProtoMessage() {}
func (*TransferConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_transfer_b655bdd8f06d7255, []int{0}
}
func (m *TransferConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TransferConfig.Unmarshal(m, b)
}
func (m *TransferConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TransferConfig.Marshal(b, m, deterministic)
}
func (dst *TransferConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_TransferConfig.Merge(dst, src)
}
func (m *TransferConfig) XXX_Size() int {
return xxx_messageInfo_TransferConfig.Size(m)
}
func (m *TransferConfig) XXX_DiscardUnknown() {
xxx_messageInfo_TransferConfig.DiscardUnknown(m)
}
var xxx_messageInfo_TransferConfig proto.InternalMessageInfo
func (m *TransferConfig) GetName() string {
if m != nil {
@ -215,7 +246,7 @@ func (m *TransferConfig) GetDataSourceId() string {
return ""
}
func (m *TransferConfig) GetParams() *google_protobuf1.Struct {
func (m *TransferConfig) GetParams() *_struct.Struct {
if m != nil {
return m.Params
}
@ -243,14 +274,14 @@ func (m *TransferConfig) GetDisabled() bool {
return false
}
func (m *TransferConfig) GetUpdateTime() *google_protobuf2.Timestamp {
func (m *TransferConfig) GetUpdateTime() *timestamp.Timestamp {
if m != nil {
return m.UpdateTime
}
return nil
}
func (m *TransferConfig) GetNextRunTime() *google_protobuf2.Timestamp {
func (m *TransferConfig) GetNextRunTime() *timestamp.Timestamp {
if m != nil {
return m.NextRunTime
}
@ -279,54 +310,75 @@ func (m *TransferConfig) GetDatasetRegion() string {
}
// Represents a data transfer run.
// Next id: 27
type TransferRun struct {
// The resource name of the transfer run.
// Transfer run names have the form
// `projects/{project_id}/locations/{location}/transferConfigs/{config_id}/runs/{run_id}`.
// The name is ignored when creating a transfer run.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Minimum time after which a transfer run can be started.
ScheduleTime *google_protobuf2.Timestamp `protobuf:"bytes,3,opt,name=schedule_time,json=scheduleTime" json:"schedule_time,omitempty"`
ScheduleTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"`
// For batch transfer runs, specifies the date and time that
// data should be ingested.
RunTime *google_protobuf2.Timestamp `protobuf:"bytes,10,opt,name=run_time,json=runTime" json:"run_time,omitempty"`
RunTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=run_time,json=runTime,proto3" json:"run_time,omitempty"`
// Status of the transfer run.
ErrorStatus *google_rpc.Status `protobuf:"bytes,21,opt,name=error_status,json=errorStatus" json:"error_status,omitempty"`
ErrorStatus *status.Status `protobuf:"bytes,21,opt,name=error_status,json=errorStatus,proto3" json:"error_status,omitempty"`
// Output only. Time when transfer run was started.
// Parameter ignored by server for input requests.
StartTime *google_protobuf2.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
StartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// Output only. Time when transfer run ended.
// Parameter ignored by server for input requests.
EndTime *google_protobuf2.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
EndTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Output only. Last time the data transfer run state was updated.
UpdateTime *google_protobuf2.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime" json:"update_time,omitempty"`
UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. Data transfer specific parameters.
Params *google_protobuf1.Struct `protobuf:"bytes,9,opt,name=params" json:"params,omitempty"`
Params *_struct.Struct `protobuf:"bytes,9,opt,name=params,proto3" json:"params,omitempty"`
// Output only. The BigQuery target dataset id.
DestinationDatasetId string `protobuf:"bytes,2,opt,name=destination_dataset_id,json=destinationDatasetId" json:"destination_dataset_id,omitempty"`
DestinationDatasetId string `protobuf:"bytes,2,opt,name=destination_dataset_id,json=destinationDatasetId,proto3" json:"destination_dataset_id,omitempty"`
// Output only. Data source id.
DataSourceId string `protobuf:"bytes,7,opt,name=data_source_id,json=dataSourceId" json:"data_source_id,omitempty"`
DataSourceId string `protobuf:"bytes,7,opt,name=data_source_id,json=dataSourceId,proto3" json:"data_source_id,omitempty"`
// Data transfer run state. Ignored for input requests.
State TransferState `protobuf:"varint,8,opt,name=state,enum=google.cloud.bigquery.datatransfer.v1.TransferState" json:"state,omitempty"`
State TransferState `protobuf:"varint,8,opt,name=state,proto3,enum=google.cloud.bigquery.datatransfer.v1.TransferState" json:"state,omitempty"`
// Output only. Unique ID of the user on whose behalf transfer is done.
// Applicable only to data sources that do not support service accounts.
// When set to 0, the data source service account credentials are used.
// May be negative. Note, that this identifier is not stable.
// It may change over time even for the same user.
UserId int64 `protobuf:"varint,11,opt,name=user_id,json=userId" json:"user_id,omitempty"`
UserId int64 `protobuf:"varint,11,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// Output only. Describes the schedule of this transfer run if it was
// created as part of a regular schedule. For batch transfer runs that are
// scheduled manually, this is empty.
// NOTE: the system might choose to delay the schedule depending on the
// current load, so `schedule_time` doesn't always matches this.
Schedule string `protobuf:"bytes,12,opt,name=schedule" json:"schedule,omitempty"`
Schedule string `protobuf:"bytes,12,opt,name=schedule,proto3" json:"schedule,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TransferRun) Reset() { *m = TransferRun{} }
func (m *TransferRun) String() string { return proto.CompactTextString(m) }
func (*TransferRun) ProtoMessage() {}
func (*TransferRun) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
func (m *TransferRun) Reset() { *m = TransferRun{} }
func (m *TransferRun) String() string { return proto.CompactTextString(m) }
func (*TransferRun) ProtoMessage() {}
func (*TransferRun) Descriptor() ([]byte, []int) {
return fileDescriptor_transfer_b655bdd8f06d7255, []int{1}
}
func (m *TransferRun) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TransferRun.Unmarshal(m, b)
}
func (m *TransferRun) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TransferRun.Marshal(b, m, deterministic)
}
func (dst *TransferRun) XXX_Merge(src proto.Message) {
xxx_messageInfo_TransferRun.Merge(dst, src)
}
func (m *TransferRun) XXX_Size() int {
return xxx_messageInfo_TransferRun.Size(m)
}
func (m *TransferRun) XXX_DiscardUnknown() {
xxx_messageInfo_TransferRun.DiscardUnknown(m)
}
var xxx_messageInfo_TransferRun proto.InternalMessageInfo
func (m *TransferRun) GetName() string {
if m != nil {
@ -335,49 +387,49 @@ func (m *TransferRun) GetName() string {
return ""
}
func (m *TransferRun) GetScheduleTime() *google_protobuf2.Timestamp {
func (m *TransferRun) GetScheduleTime() *timestamp.Timestamp {
if m != nil {
return m.ScheduleTime
}
return nil
}
func (m *TransferRun) GetRunTime() *google_protobuf2.Timestamp {
func (m *TransferRun) GetRunTime() *timestamp.Timestamp {
if m != nil {
return m.RunTime
}
return nil
}
func (m *TransferRun) GetErrorStatus() *google_rpc.Status {
func (m *TransferRun) GetErrorStatus() *status.Status {
if m != nil {
return m.ErrorStatus
}
return nil
}
func (m *TransferRun) GetStartTime() *google_protobuf2.Timestamp {
func (m *TransferRun) GetStartTime() *timestamp.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *TransferRun) GetEndTime() *google_protobuf2.Timestamp {
func (m *TransferRun) GetEndTime() *timestamp.Timestamp {
if m != nil {
return m.EndTime
}
return nil
}
func (m *TransferRun) GetUpdateTime() *google_protobuf2.Timestamp {
func (m *TransferRun) GetUpdateTime() *timestamp.Timestamp {
if m != nil {
return m.UpdateTime
}
return nil
}
func (m *TransferRun) GetParams() *google_protobuf1.Struct {
func (m *TransferRun) GetParams() *_struct.Struct {
if m != nil {
return m.Params
}
@ -422,19 +474,41 @@ func (m *TransferRun) GetSchedule() string {
// Represents a user facing message for a particular data transfer run.
type TransferMessage struct {
// Time when message was logged.
MessageTime *google_protobuf2.Timestamp `protobuf:"bytes,1,opt,name=message_time,json=messageTime" json:"message_time,omitempty"`
MessageTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=message_time,json=messageTime,proto3" json:"message_time,omitempty"`
// Message severity.
Severity TransferMessage_MessageSeverity `protobuf:"varint,2,opt,name=severity,enum=google.cloud.bigquery.datatransfer.v1.TransferMessage_MessageSeverity" json:"severity,omitempty"`
Severity TransferMessage_MessageSeverity `protobuf:"varint,2,opt,name=severity,proto3,enum=google.cloud.bigquery.datatransfer.v1.TransferMessage_MessageSeverity" json:"severity,omitempty"`
// Message text.
MessageText string `protobuf:"bytes,3,opt,name=message_text,json=messageText" json:"message_text,omitempty"`
MessageText string `protobuf:"bytes,3,opt,name=message_text,json=messageText,proto3" json:"message_text,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TransferMessage) Reset() { *m = TransferMessage{} }
func (m *TransferMessage) String() string { return proto.CompactTextString(m) }
func (*TransferMessage) ProtoMessage() {}
func (*TransferMessage) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
func (m *TransferMessage) Reset() { *m = TransferMessage{} }
func (m *TransferMessage) String() string { return proto.CompactTextString(m) }
func (*TransferMessage) ProtoMessage() {}
func (*TransferMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_transfer_b655bdd8f06d7255, []int{2}
}
func (m *TransferMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TransferMessage.Unmarshal(m, b)
}
func (m *TransferMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TransferMessage.Marshal(b, m, deterministic)
}
func (dst *TransferMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_TransferMessage.Merge(dst, src)
}
func (m *TransferMessage) XXX_Size() int {
return xxx_messageInfo_TransferMessage.Size(m)
}
func (m *TransferMessage) XXX_DiscardUnknown() {
xxx_messageInfo_TransferMessage.DiscardUnknown(m)
}
func (m *TransferMessage) GetMessageTime() *google_protobuf2.Timestamp {
var xxx_messageInfo_TransferMessage proto.InternalMessageInfo
func (m *TransferMessage) GetMessageTime() *timestamp.Timestamp {
if m != nil {
return m.MessageTime
}
@ -465,10 +539,10 @@ func init() {
}
func init() {
proto.RegisterFile("google/cloud/bigquery/datatransfer/v1/transfer.proto", fileDescriptor1)
proto.RegisterFile("google/cloud/bigquery/datatransfer/v1/transfer.proto", fileDescriptor_transfer_b655bdd8f06d7255)
}
var fileDescriptor1 = []byte{
var fileDescriptor_transfer_b655bdd8f06d7255 = []byte{
// 922 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xdd, 0x6e, 0xe3, 0x44,
0x14, 0xc6, 0xf9, 0xcf, 0x71, 0x92, 0x8d, 0x46, 0x2c, 0x35, 0xd5, 0x02, 0xa1, 0xa2, 0x52, 0xd8,

File diff suppressed because it is too large Load Diff

View File

@ -1,24 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/billing/v1/cloud_billing.proto
/*
Package billing is a generated protocol buffer package.
It is generated from these files:
google/cloud/billing/v1/cloud_billing.proto
It has these top-level messages:
BillingAccount
ProjectBillingInfo
GetBillingAccountRequest
ListBillingAccountsRequest
ListBillingAccountsResponse
ListProjectBillingInfoRequest
ListProjectBillingInfoResponse
GetProjectBillingInfoRequest
UpdateProjectBillingInfoRequest
*/
package billing
package billing // import "google.golang.org/genproto/googleapis/cloud/billing/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -49,20 +32,42 @@ type BillingAccount struct {
// `billingAccounts/{billing_account_id}`. For example,
// `billingAccounts/012345-567890-ABCDEF` would be the resource name for
// billing account `012345-567890-ABCDEF`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// True if the billing account is open, and will therefore be charged for any
// usage on associated projects. False if the billing account is closed, and
// therefore projects associated with it will be unable to use paid services.
Open bool `protobuf:"varint,2,opt,name=open" json:"open,omitempty"`
Open bool `protobuf:"varint,2,opt,name=open,proto3" json:"open,omitempty"`
// The display name given to the billing account, such as `My Billing
// Account`. This name is displayed in the Google Cloud Console.
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BillingAccount) Reset() { *m = BillingAccount{} }
func (m *BillingAccount) String() string { return proto.CompactTextString(m) }
func (*BillingAccount) ProtoMessage() {}
func (*BillingAccount) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *BillingAccount) Reset() { *m = BillingAccount{} }
func (m *BillingAccount) String() string { return proto.CompactTextString(m) }
func (*BillingAccount) ProtoMessage() {}
func (*BillingAccount) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_billing_868724f2532f6f7f, []int{0}
}
func (m *BillingAccount) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BillingAccount.Unmarshal(m, b)
}
func (m *BillingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BillingAccount.Marshal(b, m, deterministic)
}
func (dst *BillingAccount) XXX_Merge(src proto.Message) {
xxx_messageInfo_BillingAccount.Merge(dst, src)
}
func (m *BillingAccount) XXX_Size() int {
return xxx_messageInfo_BillingAccount.Size(m)
}
func (m *BillingAccount) XXX_DiscardUnknown() {
xxx_messageInfo_BillingAccount.DiscardUnknown(m)
}
var xxx_messageInfo_BillingAccount proto.InternalMessageInfo
func (m *BillingAccount) GetName() string {
if m != nil {
@ -93,25 +98,47 @@ type ProjectBillingInfo struct {
// `projects/{project_id}/billingInfo`. For example, the resource name for the
// billing information for project `tokyo-rain-123` would be
// `projects/tokyo-rain-123/billingInfo`. This field is read-only.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The ID of the project that this `ProjectBillingInfo` represents, such as
// `tokyo-rain-123`. This is a convenience field so that you don't need to
// parse the `name` field to obtain a project ID. This field is read-only.
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// The resource name of the billing account associated with the project, if
// any. For example, `billingAccounts/012345-567890-ABCDEF`.
BillingAccountName string `protobuf:"bytes,3,opt,name=billing_account_name,json=billingAccountName" json:"billing_account_name,omitempty"`
BillingAccountName string `protobuf:"bytes,3,opt,name=billing_account_name,json=billingAccountName,proto3" json:"billing_account_name,omitempty"`
// True if the project is associated with an open billing account, to which
// usage on the project is charged. False if the project is associated with a
// closed billing account, or no billing account at all, and therefore cannot
// use paid services. This field is read-only.
BillingEnabled bool `protobuf:"varint,4,opt,name=billing_enabled,json=billingEnabled" json:"billing_enabled,omitempty"`
BillingEnabled bool `protobuf:"varint,4,opt,name=billing_enabled,json=billingEnabled,proto3" json:"billing_enabled,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProjectBillingInfo) Reset() { *m = ProjectBillingInfo{} }
func (m *ProjectBillingInfo) String() string { return proto.CompactTextString(m) }
func (*ProjectBillingInfo) ProtoMessage() {}
func (*ProjectBillingInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *ProjectBillingInfo) Reset() { *m = ProjectBillingInfo{} }
func (m *ProjectBillingInfo) String() string { return proto.CompactTextString(m) }
func (*ProjectBillingInfo) ProtoMessage() {}
func (*ProjectBillingInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_billing_868724f2532f6f7f, []int{1}
}
func (m *ProjectBillingInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProjectBillingInfo.Unmarshal(m, b)
}
func (m *ProjectBillingInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProjectBillingInfo.Marshal(b, m, deterministic)
}
func (dst *ProjectBillingInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProjectBillingInfo.Merge(dst, src)
}
func (m *ProjectBillingInfo) XXX_Size() int {
return xxx_messageInfo_ProjectBillingInfo.Size(m)
}
func (m *ProjectBillingInfo) XXX_DiscardUnknown() {
xxx_messageInfo_ProjectBillingInfo.DiscardUnknown(m)
}
var xxx_messageInfo_ProjectBillingInfo proto.InternalMessageInfo
func (m *ProjectBillingInfo) GetName() string {
if m != nil {
@ -145,13 +172,35 @@ func (m *ProjectBillingInfo) GetBillingEnabled() bool {
type GetBillingAccountRequest struct {
// The resource name of the billing account to retrieve. For example,
// `billingAccounts/012345-567890-ABCDEF`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetBillingAccountRequest) Reset() { *m = GetBillingAccountRequest{} }
func (m *GetBillingAccountRequest) String() string { return proto.CompactTextString(m) }
func (*GetBillingAccountRequest) ProtoMessage() {}
func (*GetBillingAccountRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *GetBillingAccountRequest) Reset() { *m = GetBillingAccountRequest{} }
func (m *GetBillingAccountRequest) String() string { return proto.CompactTextString(m) }
func (*GetBillingAccountRequest) ProtoMessage() {}
func (*GetBillingAccountRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_billing_868724f2532f6f7f, []int{2}
}
func (m *GetBillingAccountRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetBillingAccountRequest.Unmarshal(m, b)
}
func (m *GetBillingAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetBillingAccountRequest.Marshal(b, m, deterministic)
}
func (dst *GetBillingAccountRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetBillingAccountRequest.Merge(dst, src)
}
func (m *GetBillingAccountRequest) XXX_Size() int {
return xxx_messageInfo_GetBillingAccountRequest.Size(m)
}
func (m *GetBillingAccountRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetBillingAccountRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetBillingAccountRequest proto.InternalMessageInfo
func (m *GetBillingAccountRequest) GetName() string {
if m != nil {
@ -164,17 +213,39 @@ func (m *GetBillingAccountRequest) GetName() string {
type ListBillingAccountsRequest struct {
// Requested page size. The maximum page size is 100; this is also the
// default.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A token identifying a page of results to return. This should be a
// `next_page_token` value returned from a previous `ListBillingAccounts`
// call. If unspecified, the first page of results is returned.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListBillingAccountsRequest) Reset() { *m = ListBillingAccountsRequest{} }
func (m *ListBillingAccountsRequest) String() string { return proto.CompactTextString(m) }
func (*ListBillingAccountsRequest) ProtoMessage() {}
func (*ListBillingAccountsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *ListBillingAccountsRequest) Reset() { *m = ListBillingAccountsRequest{} }
func (m *ListBillingAccountsRequest) String() string { return proto.CompactTextString(m) }
func (*ListBillingAccountsRequest) ProtoMessage() {}
func (*ListBillingAccountsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_billing_868724f2532f6f7f, []int{3}
}
func (m *ListBillingAccountsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListBillingAccountsRequest.Unmarshal(m, b)
}
func (m *ListBillingAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListBillingAccountsRequest.Marshal(b, m, deterministic)
}
func (dst *ListBillingAccountsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListBillingAccountsRequest.Merge(dst, src)
}
func (m *ListBillingAccountsRequest) XXX_Size() int {
return xxx_messageInfo_ListBillingAccountsRequest.Size(m)
}
func (m *ListBillingAccountsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListBillingAccountsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListBillingAccountsRequest proto.InternalMessageInfo
func (m *ListBillingAccountsRequest) GetPageSize() int32 {
if m != nil {
@ -193,17 +264,39 @@ func (m *ListBillingAccountsRequest) GetPageToken() string {
// Response message for `ListBillingAccounts`.
type ListBillingAccountsResponse struct {
// A list of billing accounts.
BillingAccounts []*BillingAccount `protobuf:"bytes,1,rep,name=billing_accounts,json=billingAccounts" json:"billing_accounts,omitempty"`
BillingAccounts []*BillingAccount `protobuf:"bytes,1,rep,name=billing_accounts,json=billingAccounts,proto3" json:"billing_accounts,omitempty"`
// A token to retrieve the next page of results. To retrieve the next page,
// call `ListBillingAccounts` again with the `page_token` field set to this
// value. This field is empty if there are no more results to retrieve.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListBillingAccountsResponse) Reset() { *m = ListBillingAccountsResponse{} }
func (m *ListBillingAccountsResponse) String() string { return proto.CompactTextString(m) }
func (*ListBillingAccountsResponse) ProtoMessage() {}
func (*ListBillingAccountsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *ListBillingAccountsResponse) Reset() { *m = ListBillingAccountsResponse{} }
func (m *ListBillingAccountsResponse) String() string { return proto.CompactTextString(m) }
func (*ListBillingAccountsResponse) ProtoMessage() {}
func (*ListBillingAccountsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_billing_868724f2532f6f7f, []int{4}
}
func (m *ListBillingAccountsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListBillingAccountsResponse.Unmarshal(m, b)
}
func (m *ListBillingAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListBillingAccountsResponse.Marshal(b, m, deterministic)
}
func (dst *ListBillingAccountsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListBillingAccountsResponse.Merge(dst, src)
}
func (m *ListBillingAccountsResponse) XXX_Size() int {
return xxx_messageInfo_ListBillingAccountsResponse.Size(m)
}
func (m *ListBillingAccountsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListBillingAccountsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListBillingAccountsResponse proto.InternalMessageInfo
func (m *ListBillingAccountsResponse) GetBillingAccounts() []*BillingAccount {
if m != nil {
@ -223,20 +316,42 @@ func (m *ListBillingAccountsResponse) GetNextPageToken() string {
type ListProjectBillingInfoRequest struct {
// The resource name of the billing account associated with the projects that
// you want to list. For example, `billingAccounts/012345-567890-ABCDEF`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Requested page size. The maximum page size is 100; this is also the
// default.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A token identifying a page of results to be returned. This should be a
// `next_page_token` value returned from a previous `ListProjectBillingInfo`
// call. If unspecified, the first page of results is returned.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListProjectBillingInfoRequest) Reset() { *m = ListProjectBillingInfoRequest{} }
func (m *ListProjectBillingInfoRequest) String() string { return proto.CompactTextString(m) }
func (*ListProjectBillingInfoRequest) ProtoMessage() {}
func (*ListProjectBillingInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *ListProjectBillingInfoRequest) Reset() { *m = ListProjectBillingInfoRequest{} }
func (m *ListProjectBillingInfoRequest) String() string { return proto.CompactTextString(m) }
func (*ListProjectBillingInfoRequest) ProtoMessage() {}
func (*ListProjectBillingInfoRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_billing_868724f2532f6f7f, []int{5}
}
func (m *ListProjectBillingInfoRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListProjectBillingInfoRequest.Unmarshal(m, b)
}
func (m *ListProjectBillingInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListProjectBillingInfoRequest.Marshal(b, m, deterministic)
}
func (dst *ListProjectBillingInfoRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListProjectBillingInfoRequest.Merge(dst, src)
}
func (m *ListProjectBillingInfoRequest) XXX_Size() int {
return xxx_messageInfo_ListProjectBillingInfoRequest.Size(m)
}
func (m *ListProjectBillingInfoRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListProjectBillingInfoRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListProjectBillingInfoRequest proto.InternalMessageInfo
func (m *ListProjectBillingInfoRequest) GetName() string {
if m != nil {
@ -263,17 +378,39 @@ func (m *ListProjectBillingInfoRequest) GetPageToken() string {
type ListProjectBillingInfoResponse struct {
// A list of `ProjectBillingInfo` resources representing the projects
// associated with the billing account.
ProjectBillingInfo []*ProjectBillingInfo `protobuf:"bytes,1,rep,name=project_billing_info,json=projectBillingInfo" json:"project_billing_info,omitempty"`
ProjectBillingInfo []*ProjectBillingInfo `protobuf:"bytes,1,rep,name=project_billing_info,json=projectBillingInfo,proto3" json:"project_billing_info,omitempty"`
// A token to retrieve the next page of results. To retrieve the next page,
// call `ListProjectBillingInfo` again with the `page_token` field set to this
// value. This field is empty if there are no more results to retrieve.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListProjectBillingInfoResponse) Reset() { *m = ListProjectBillingInfoResponse{} }
func (m *ListProjectBillingInfoResponse) String() string { return proto.CompactTextString(m) }
func (*ListProjectBillingInfoResponse) ProtoMessage() {}
func (*ListProjectBillingInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *ListProjectBillingInfoResponse) Reset() { *m = ListProjectBillingInfoResponse{} }
func (m *ListProjectBillingInfoResponse) String() string { return proto.CompactTextString(m) }
func (*ListProjectBillingInfoResponse) ProtoMessage() {}
func (*ListProjectBillingInfoResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_billing_868724f2532f6f7f, []int{6}
}
func (m *ListProjectBillingInfoResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListProjectBillingInfoResponse.Unmarshal(m, b)
}
func (m *ListProjectBillingInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListProjectBillingInfoResponse.Marshal(b, m, deterministic)
}
func (dst *ListProjectBillingInfoResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListProjectBillingInfoResponse.Merge(dst, src)
}
func (m *ListProjectBillingInfoResponse) XXX_Size() int {
return xxx_messageInfo_ListProjectBillingInfoResponse.Size(m)
}
func (m *ListProjectBillingInfoResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListProjectBillingInfoResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListProjectBillingInfoResponse proto.InternalMessageInfo
func (m *ListProjectBillingInfoResponse) GetProjectBillingInfo() []*ProjectBillingInfo {
if m != nil {
@ -293,13 +430,35 @@ func (m *ListProjectBillingInfoResponse) GetNextPageToken() string {
type GetProjectBillingInfoRequest struct {
// The resource name of the project for which billing information is
// retrieved. For example, `projects/tokyo-rain-123`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetProjectBillingInfoRequest) Reset() { *m = GetProjectBillingInfoRequest{} }
func (m *GetProjectBillingInfoRequest) String() string { return proto.CompactTextString(m) }
func (*GetProjectBillingInfoRequest) ProtoMessage() {}
func (*GetProjectBillingInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *GetProjectBillingInfoRequest) Reset() { *m = GetProjectBillingInfoRequest{} }
func (m *GetProjectBillingInfoRequest) String() string { return proto.CompactTextString(m) }
func (*GetProjectBillingInfoRequest) ProtoMessage() {}
func (*GetProjectBillingInfoRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_billing_868724f2532f6f7f, []int{7}
}
func (m *GetProjectBillingInfoRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetProjectBillingInfoRequest.Unmarshal(m, b)
}
func (m *GetProjectBillingInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetProjectBillingInfoRequest.Marshal(b, m, deterministic)
}
func (dst *GetProjectBillingInfoRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetProjectBillingInfoRequest.Merge(dst, src)
}
func (m *GetProjectBillingInfoRequest) XXX_Size() int {
return xxx_messageInfo_GetProjectBillingInfoRequest.Size(m)
}
func (m *GetProjectBillingInfoRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetProjectBillingInfoRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetProjectBillingInfoRequest proto.InternalMessageInfo
func (m *GetProjectBillingInfoRequest) GetName() string {
if m != nil {
@ -312,16 +471,38 @@ func (m *GetProjectBillingInfoRequest) GetName() string {
type UpdateProjectBillingInfoRequest struct {
// The resource name of the project associated with the billing information
// that you want to update. For example, `projects/tokyo-rain-123`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The new billing information for the project. Read-only fields are ignored;
// thus, you may leave empty all fields except `billing_account_name`.
ProjectBillingInfo *ProjectBillingInfo `protobuf:"bytes,2,opt,name=project_billing_info,json=projectBillingInfo" json:"project_billing_info,omitempty"`
ProjectBillingInfo *ProjectBillingInfo `protobuf:"bytes,2,opt,name=project_billing_info,json=projectBillingInfo,proto3" json:"project_billing_info,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateProjectBillingInfoRequest) Reset() { *m = UpdateProjectBillingInfoRequest{} }
func (m *UpdateProjectBillingInfoRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateProjectBillingInfoRequest) ProtoMessage() {}
func (*UpdateProjectBillingInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
func (m *UpdateProjectBillingInfoRequest) Reset() { *m = UpdateProjectBillingInfoRequest{} }
func (m *UpdateProjectBillingInfoRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateProjectBillingInfoRequest) ProtoMessage() {}
func (*UpdateProjectBillingInfoRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_billing_868724f2532f6f7f, []int{8}
}
func (m *UpdateProjectBillingInfoRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateProjectBillingInfoRequest.Unmarshal(m, b)
}
func (m *UpdateProjectBillingInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateProjectBillingInfoRequest.Marshal(b, m, deterministic)
}
func (dst *UpdateProjectBillingInfoRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateProjectBillingInfoRequest.Merge(dst, src)
}
func (m *UpdateProjectBillingInfoRequest) XXX_Size() int {
return xxx_messageInfo_UpdateProjectBillingInfoRequest.Size(m)
}
func (m *UpdateProjectBillingInfoRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateProjectBillingInfoRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateProjectBillingInfoRequest proto.InternalMessageInfo
func (m *UpdateProjectBillingInfoRequest) GetName() string {
if m != nil {
@ -357,8 +538,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for CloudBilling service
// CloudBillingClient is the client API for CloudBilling service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CloudBillingClient interface {
// Gets information about a billing account. The current authenticated user
// must be an [owner of the billing
@ -420,7 +602,7 @@ func NewCloudBillingClient(cc *grpc.ClientConn) CloudBillingClient {
func (c *cloudBillingClient) GetBillingAccount(ctx context.Context, in *GetBillingAccountRequest, opts ...grpc.CallOption) (*BillingAccount, error) {
out := new(BillingAccount)
err := grpc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/GetBillingAccount", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/GetBillingAccount", in, out, opts...)
if err != nil {
return nil, err
}
@ -429,7 +611,7 @@ func (c *cloudBillingClient) GetBillingAccount(ctx context.Context, in *GetBilli
func (c *cloudBillingClient) ListBillingAccounts(ctx context.Context, in *ListBillingAccountsRequest, opts ...grpc.CallOption) (*ListBillingAccountsResponse, error) {
out := new(ListBillingAccountsResponse)
err := grpc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/ListBillingAccounts", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/ListBillingAccounts", in, out, opts...)
if err != nil {
return nil, err
}
@ -438,7 +620,7 @@ func (c *cloudBillingClient) ListBillingAccounts(ctx context.Context, in *ListBi
func (c *cloudBillingClient) ListProjectBillingInfo(ctx context.Context, in *ListProjectBillingInfoRequest, opts ...grpc.CallOption) (*ListProjectBillingInfoResponse, error) {
out := new(ListProjectBillingInfoResponse)
err := grpc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/ListProjectBillingInfo", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/ListProjectBillingInfo", in, out, opts...)
if err != nil {
return nil, err
}
@ -447,7 +629,7 @@ func (c *cloudBillingClient) ListProjectBillingInfo(ctx context.Context, in *Lis
func (c *cloudBillingClient) GetProjectBillingInfo(ctx context.Context, in *GetProjectBillingInfoRequest, opts ...grpc.CallOption) (*ProjectBillingInfo, error) {
out := new(ProjectBillingInfo)
err := grpc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/GetProjectBillingInfo", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/GetProjectBillingInfo", in, out, opts...)
if err != nil {
return nil, err
}
@ -456,15 +638,14 @@ func (c *cloudBillingClient) GetProjectBillingInfo(ctx context.Context, in *GetP
func (c *cloudBillingClient) UpdateProjectBillingInfo(ctx context.Context, in *UpdateProjectBillingInfoRequest, opts ...grpc.CallOption) (*ProjectBillingInfo, error) {
out := new(ProjectBillingInfo)
err := grpc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/UpdateProjectBillingInfo", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.billing.v1.CloudBilling/UpdateProjectBillingInfo", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for CloudBilling service
// CloudBillingServer is the server API for CloudBilling service.
type CloudBillingServer interface {
// Gets information about a billing account. The current authenticated user
// must be an [owner of the billing
@ -639,9 +820,11 @@ var _CloudBilling_serviceDesc = grpc.ServiceDesc{
Metadata: "google/cloud/billing/v1/cloud_billing.proto",
}
func init() { proto.RegisterFile("google/cloud/billing/v1/cloud_billing.proto", fileDescriptor0) }
func init() {
proto.RegisterFile("google/cloud/billing/v1/cloud_billing.proto", fileDescriptor_cloud_billing_868724f2532f6f7f)
}
var fileDescriptor0 = []byte{
var fileDescriptor_cloud_billing_868724f2532f6f7f = []byte{
// 667 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xdd, 0x4e, 0xd4, 0x40,
0x14, 0xce, 0x00, 0x12, 0xf6, 0x80, 0x20, 0x03, 0xe8, 0x66, 0x17, 0x10, 0xea, 0x0f, 0x28, 0xb1,

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,21 +1,27 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/dataproc/v1/operations.proto
package dataproc
package dataproc // import "google.golang.org/genproto/googleapis/cloud/dataproc/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/golang/protobuf/ptypes/empty"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import _ "google.golang.org/genproto/googleapis/longrunning"
import _ "github.com/golang/protobuf/ptypes/empty"
import google_protobuf3 "github.com/golang/protobuf/ptypes/timestamp"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The operation state.
type ClusterOperationStatus_State int32
@ -47,25 +53,47 @@ func (x ClusterOperationStatus_State) String() string {
return proto.EnumName(ClusterOperationStatus_State_name, int32(x))
}
func (ClusterOperationStatus_State) EnumDescriptor() ([]byte, []int) {
return fileDescriptor2, []int{0, 0}
return fileDescriptor_operations_7be03f6a43d7bf8b, []int{0, 0}
}
// The status of the operation.
type ClusterOperationStatus struct {
// Output-only. A message containing the operation state.
State ClusterOperationStatus_State `protobuf:"varint,1,opt,name=state,enum=google.cloud.dataproc.v1.ClusterOperationStatus_State" json:"state,omitempty"`
State ClusterOperationStatus_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.dataproc.v1.ClusterOperationStatus_State" json:"state,omitempty"`
// Output-only. A message containing the detailed operation state.
InnerState string `protobuf:"bytes,2,opt,name=inner_state,json=innerState" json:"inner_state,omitempty"`
InnerState string `protobuf:"bytes,2,opt,name=inner_state,json=innerState,proto3" json:"inner_state,omitempty"`
// Output-only.A message containing any operation metadata details.
Details string `protobuf:"bytes,3,opt,name=details" json:"details,omitempty"`
Details string `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"`
// Output-only. The time this state was entered.
StateStartTime *google_protobuf3.Timestamp `protobuf:"bytes,4,opt,name=state_start_time,json=stateStartTime" json:"state_start_time,omitempty"`
StateStartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=state_start_time,json=stateStartTime,proto3" json:"state_start_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClusterOperationStatus) Reset() { *m = ClusterOperationStatus{} }
func (m *ClusterOperationStatus) String() string { return proto.CompactTextString(m) }
func (*ClusterOperationStatus) ProtoMessage() {}
func (*ClusterOperationStatus) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
func (m *ClusterOperationStatus) Reset() { *m = ClusterOperationStatus{} }
func (m *ClusterOperationStatus) String() string { return proto.CompactTextString(m) }
func (*ClusterOperationStatus) ProtoMessage() {}
func (*ClusterOperationStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_operations_7be03f6a43d7bf8b, []int{0}
}
func (m *ClusterOperationStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClusterOperationStatus.Unmarshal(m, b)
}
func (m *ClusterOperationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClusterOperationStatus.Marshal(b, m, deterministic)
}
func (dst *ClusterOperationStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClusterOperationStatus.Merge(dst, src)
}
func (m *ClusterOperationStatus) XXX_Size() int {
return xxx_messageInfo_ClusterOperationStatus.Size(m)
}
func (m *ClusterOperationStatus) XXX_DiscardUnknown() {
xxx_messageInfo_ClusterOperationStatus.DiscardUnknown(m)
}
var xxx_messageInfo_ClusterOperationStatus proto.InternalMessageInfo
func (m *ClusterOperationStatus) GetState() ClusterOperationStatus_State {
if m != nil {
@ -88,7 +116,7 @@ func (m *ClusterOperationStatus) GetDetails() string {
return ""
}
func (m *ClusterOperationStatus) GetStateStartTime() *google_protobuf3.Timestamp {
func (m *ClusterOperationStatus) GetStateStartTime() *timestamp.Timestamp {
if m != nil {
return m.StateStartTime
}
@ -98,27 +126,49 @@ func (m *ClusterOperationStatus) GetStateStartTime() *google_protobuf3.Timestamp
// Metadata describing the operation.
type ClusterOperationMetadata struct {
// Output-only. Name of the cluster for the operation.
ClusterName string `protobuf:"bytes,7,opt,name=cluster_name,json=clusterName" json:"cluster_name,omitempty"`
ClusterName string `protobuf:"bytes,7,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"`
// Output-only. Cluster UUID for the operation.
ClusterUuid string `protobuf:"bytes,8,opt,name=cluster_uuid,json=clusterUuid" json:"cluster_uuid,omitempty"`
ClusterUuid string `protobuf:"bytes,8,opt,name=cluster_uuid,json=clusterUuid,proto3" json:"cluster_uuid,omitempty"`
// Output-only. Current operation status.
Status *ClusterOperationStatus `protobuf:"bytes,9,opt,name=status" json:"status,omitempty"`
Status *ClusterOperationStatus `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"`
// Output-only. The previous operation status.
StatusHistory []*ClusterOperationStatus `protobuf:"bytes,10,rep,name=status_history,json=statusHistory" json:"status_history,omitempty"`
StatusHistory []*ClusterOperationStatus `protobuf:"bytes,10,rep,name=status_history,json=statusHistory,proto3" json:"status_history,omitempty"`
// Output-only. The operation type.
OperationType string `protobuf:"bytes,11,opt,name=operation_type,json=operationType" json:"operation_type,omitempty"`
OperationType string `protobuf:"bytes,11,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"`
// Output-only. Short description of operation.
Description string `protobuf:"bytes,12,opt,name=description" json:"description,omitempty"`
Description string `protobuf:"bytes,12,opt,name=description,proto3" json:"description,omitempty"`
// Output-only. Labels associated with the operation
Labels map[string]string `protobuf:"bytes,13,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
Labels map[string]string `protobuf:"bytes,13,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Output-only. Errors encountered during operation execution.
Warnings []string `protobuf:"bytes,14,rep,name=warnings" json:"warnings,omitempty"`
Warnings []string `protobuf:"bytes,14,rep,name=warnings,proto3" json:"warnings,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClusterOperationMetadata) Reset() { *m = ClusterOperationMetadata{} }
func (m *ClusterOperationMetadata) String() string { return proto.CompactTextString(m) }
func (*ClusterOperationMetadata) ProtoMessage() {}
func (*ClusterOperationMetadata) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
func (m *ClusterOperationMetadata) Reset() { *m = ClusterOperationMetadata{} }
func (m *ClusterOperationMetadata) String() string { return proto.CompactTextString(m) }
func (*ClusterOperationMetadata) ProtoMessage() {}
func (*ClusterOperationMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_operations_7be03f6a43d7bf8b, []int{1}
}
func (m *ClusterOperationMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClusterOperationMetadata.Unmarshal(m, b)
}
func (m *ClusterOperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClusterOperationMetadata.Marshal(b, m, deterministic)
}
func (dst *ClusterOperationMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClusterOperationMetadata.Merge(dst, src)
}
func (m *ClusterOperationMetadata) XXX_Size() int {
return xxx_messageInfo_ClusterOperationMetadata.Size(m)
}
func (m *ClusterOperationMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_ClusterOperationMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_ClusterOperationMetadata proto.InternalMessageInfo
func (m *ClusterOperationMetadata) GetClusterName() string {
if m != nil {
@ -179,12 +229,15 @@ func (m *ClusterOperationMetadata) GetWarnings() []string {
func init() {
proto.RegisterType((*ClusterOperationStatus)(nil), "google.cloud.dataproc.v1.ClusterOperationStatus")
proto.RegisterType((*ClusterOperationMetadata)(nil), "google.cloud.dataproc.v1.ClusterOperationMetadata")
proto.RegisterMapType((map[string]string)(nil), "google.cloud.dataproc.v1.ClusterOperationMetadata.LabelsEntry")
proto.RegisterEnum("google.cloud.dataproc.v1.ClusterOperationStatus_State", ClusterOperationStatus_State_name, ClusterOperationStatus_State_value)
}
func init() { proto.RegisterFile("google/cloud/dataproc/v1/operations.proto", fileDescriptor2) }
func init() {
proto.RegisterFile("google/cloud/dataproc/v1/operations.proto", fileDescriptor_operations_7be03f6a43d7bf8b)
}
var fileDescriptor2 = []byte{
var fileDescriptor_operations_7be03f6a43d7bf8b = []byte{
// 553 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x61, 0x6b, 0xd3, 0x40,
0x18, 0x36, 0xcd, 0xb6, 0xb6, 0x97, 0xb5, 0x96, 0x43, 0xe4, 0x88, 0x83, 0xc5, 0x8a, 0x50, 0xbf,

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,19 +1,25 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/dataproc/v1beta2/operations.proto
package dataproc
package dataproc // import "google.golang.org/genproto/googleapis/cloud/dataproc/v1beta2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf5 "github.com/golang/protobuf/ptypes/timestamp"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The operation state.
type ClusterOperationStatus_State int32
@ -45,25 +51,47 @@ func (x ClusterOperationStatus_State) String() string {
return proto.EnumName(ClusterOperationStatus_State_name, int32(x))
}
func (ClusterOperationStatus_State) EnumDescriptor() ([]byte, []int) {
return fileDescriptor2, []int{0, 0}
return fileDescriptor_operations_c7679a03af3a5604, []int{0, 0}
}
// The status of the operation.
type ClusterOperationStatus struct {
// Output-only. A message containing the operation state.
State ClusterOperationStatus_State `protobuf:"varint,1,opt,name=state,enum=google.cloud.dataproc.v1beta2.ClusterOperationStatus_State" json:"state,omitempty"`
// Output-only. A message containing the detailed operation state.
InnerState string `protobuf:"bytes,2,opt,name=inner_state,json=innerState" json:"inner_state,omitempty"`
// Output-only.A message containing any operation metadata details.
Details string `protobuf:"bytes,3,opt,name=details" json:"details,omitempty"`
// Output-only. The time this state was entered.
StateStartTime *google_protobuf5.Timestamp `protobuf:"bytes,4,opt,name=state_start_time,json=stateStartTime" json:"state_start_time,omitempty"`
// Output only. A message containing the operation state.
State ClusterOperationStatus_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.dataproc.v1beta2.ClusterOperationStatus_State" json:"state,omitempty"`
// Output only. A message containing the detailed operation state.
InnerState string `protobuf:"bytes,2,opt,name=inner_state,json=innerState,proto3" json:"inner_state,omitempty"`
// Output only. A message containing any operation metadata details.
Details string `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"`
// Output only. The time this state was entered.
StateStartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=state_start_time,json=stateStartTime,proto3" json:"state_start_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClusterOperationStatus) Reset() { *m = ClusterOperationStatus{} }
func (m *ClusterOperationStatus) String() string { return proto.CompactTextString(m) }
func (*ClusterOperationStatus) ProtoMessage() {}
func (*ClusterOperationStatus) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
func (m *ClusterOperationStatus) Reset() { *m = ClusterOperationStatus{} }
func (m *ClusterOperationStatus) String() string { return proto.CompactTextString(m) }
func (*ClusterOperationStatus) ProtoMessage() {}
func (*ClusterOperationStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_operations_c7679a03af3a5604, []int{0}
}
func (m *ClusterOperationStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClusterOperationStatus.Unmarshal(m, b)
}
func (m *ClusterOperationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClusterOperationStatus.Marshal(b, m, deterministic)
}
func (dst *ClusterOperationStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClusterOperationStatus.Merge(dst, src)
}
func (m *ClusterOperationStatus) XXX_Size() int {
return xxx_messageInfo_ClusterOperationStatus.Size(m)
}
func (m *ClusterOperationStatus) XXX_DiscardUnknown() {
xxx_messageInfo_ClusterOperationStatus.DiscardUnknown(m)
}
var xxx_messageInfo_ClusterOperationStatus proto.InternalMessageInfo
func (m *ClusterOperationStatus) GetState() ClusterOperationStatus_State {
if m != nil {
@ -86,7 +114,7 @@ func (m *ClusterOperationStatus) GetDetails() string {
return ""
}
func (m *ClusterOperationStatus) GetStateStartTime() *google_protobuf5.Timestamp {
func (m *ClusterOperationStatus) GetStateStartTime() *timestamp.Timestamp {
if m != nil {
return m.StateStartTime
}
@ -95,28 +123,50 @@ func (m *ClusterOperationStatus) GetStateStartTime() *google_protobuf5.Timestamp
// Metadata describing the operation.
type ClusterOperationMetadata struct {
// Output-only. Name of the cluster for the operation.
ClusterName string `protobuf:"bytes,7,opt,name=cluster_name,json=clusterName" json:"cluster_name,omitempty"`
// Output-only. Cluster UUID for the operation.
ClusterUuid string `protobuf:"bytes,8,opt,name=cluster_uuid,json=clusterUuid" json:"cluster_uuid,omitempty"`
// Output-only. Current operation status.
Status *ClusterOperationStatus `protobuf:"bytes,9,opt,name=status" json:"status,omitempty"`
// Output-only. The previous operation status.
StatusHistory []*ClusterOperationStatus `protobuf:"bytes,10,rep,name=status_history,json=statusHistory" json:"status_history,omitempty"`
// Output-only. The operation type.
OperationType string `protobuf:"bytes,11,opt,name=operation_type,json=operationType" json:"operation_type,omitempty"`
// Output-only. Short description of operation.
Description string `protobuf:"bytes,12,opt,name=description" json:"description,omitempty"`
// Output-only. Labels associated with the operation
Labels map[string]string `protobuf:"bytes,13,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// Output-only. Errors encountered during operation execution.
Warnings []string `protobuf:"bytes,14,rep,name=warnings" json:"warnings,omitempty"`
// Output only. Name of the cluster for the operation.
ClusterName string `protobuf:"bytes,7,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"`
// Output only. Cluster UUID for the operation.
ClusterUuid string `protobuf:"bytes,8,opt,name=cluster_uuid,json=clusterUuid,proto3" json:"cluster_uuid,omitempty"`
// Output only. Current operation status.
Status *ClusterOperationStatus `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"`
// Output only. The previous operation status.
StatusHistory []*ClusterOperationStatus `protobuf:"bytes,10,rep,name=status_history,json=statusHistory,proto3" json:"status_history,omitempty"`
// Output only. The operation type.
OperationType string `protobuf:"bytes,11,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"`
// Output only. Short description of operation.
Description string `protobuf:"bytes,12,opt,name=description,proto3" json:"description,omitempty"`
// Output only. Labels associated with the operation
Labels map[string]string `protobuf:"bytes,13,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Output only. Errors encountered during operation execution.
Warnings []string `protobuf:"bytes,14,rep,name=warnings,proto3" json:"warnings,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClusterOperationMetadata) Reset() { *m = ClusterOperationMetadata{} }
func (m *ClusterOperationMetadata) String() string { return proto.CompactTextString(m) }
func (*ClusterOperationMetadata) ProtoMessage() {}
func (*ClusterOperationMetadata) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
func (m *ClusterOperationMetadata) Reset() { *m = ClusterOperationMetadata{} }
func (m *ClusterOperationMetadata) String() string { return proto.CompactTextString(m) }
func (*ClusterOperationMetadata) ProtoMessage() {}
func (*ClusterOperationMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_operations_c7679a03af3a5604, []int{1}
}
func (m *ClusterOperationMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClusterOperationMetadata.Unmarshal(m, b)
}
func (m *ClusterOperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClusterOperationMetadata.Marshal(b, m, deterministic)
}
func (dst *ClusterOperationMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClusterOperationMetadata.Merge(dst, src)
}
func (m *ClusterOperationMetadata) XXX_Size() int {
return xxx_messageInfo_ClusterOperationMetadata.Size(m)
}
func (m *ClusterOperationMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_ClusterOperationMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_ClusterOperationMetadata proto.InternalMessageInfo
func (m *ClusterOperationMetadata) GetClusterName() string {
if m != nil {
@ -177,12 +227,15 @@ func (m *ClusterOperationMetadata) GetWarnings() []string {
func init() {
proto.RegisterType((*ClusterOperationStatus)(nil), "google.cloud.dataproc.v1beta2.ClusterOperationStatus")
proto.RegisterType((*ClusterOperationMetadata)(nil), "google.cloud.dataproc.v1beta2.ClusterOperationMetadata")
proto.RegisterMapType((map[string]string)(nil), "google.cloud.dataproc.v1beta2.ClusterOperationMetadata.LabelsEntry")
proto.RegisterEnum("google.cloud.dataproc.v1beta2.ClusterOperationStatus_State", ClusterOperationStatus_State_name, ClusterOperationStatus_State_value)
}
func init() { proto.RegisterFile("google/cloud/dataproc/v1beta2/operations.proto", fileDescriptor2) }
func init() {
proto.RegisterFile("google/cloud/dataproc/v1beta2/operations.proto", fileDescriptor_operations_c7679a03af3a5604)
}
var fileDescriptor2 = []byte{
var fileDescriptor_operations_c7679a03af3a5604 = []byte{
// 537 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x5f, 0x8b, 0xd3, 0x4e,
0x14, 0xfd, 0xa5, 0xff, 0x7b, 0xb3, 0xed, 0xaf, 0x0c, 0x22, 0x43, 0x51, 0x36, 0x5b, 0x10, 0xfa,

View File

@ -0,0 +1,38 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/dataproc/v1beta2/shared.proto
package dataproc // import "google.golang.org/genproto/googleapis/cloud/dataproc/v1beta2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
func init() {
proto.RegisterFile("google/cloud/dataproc/v1beta2/shared.proto", fileDescriptor_shared_1a90796f4cca9aae)
}
var fileDescriptor_shared_1a90796f4cca9aae = []byte{
// 157 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x8e, 0xa1, 0x0e, 0x02, 0x31,
0x0c, 0x40, 0x83, 0x41, 0x1c, 0x0e, 0x49, 0x40, 0x60, 0x11, 0x6d, 0x00, 0x89, 0xbb, 0x04, 0x7f,
0x09, 0x0e, 0xd7, 0xdb, 0x96, 0xb2, 0x64, 0xac, 0xcb, 0x36, 0x48, 0xf8, 0x7b, 0xc2, 0xb6, 0x93,
0x9c, 0x6d, 0xdf, 0x7b, 0x6d, 0x77, 0x60, 0x11, 0x76, 0x06, 0x95, 0x93, 0x97, 0x46, 0x4d, 0x99,
0x42, 0x14, 0x85, 0xef, 0xe3, 0x68, 0x32, 0x9d, 0x30, 0x3d, 0x28, 0x1a, 0x0d, 0x21, 0x4a, 0x96,
0xf5, 0xae, 0xb2, 0x50, 0x58, 0x98, 0x58, 0x68, 0xec, 0x66, 0xdb, 0x52, 0x14, 0x2c, 0x92, 0xf7,
0x92, 0x29, 0x5b, 0xf1, 0xa9, 0xca, 0xfd, 0xa7, 0xdb, 0x2b, 0x79, 0xc2, 0x6c, 0xa2, 0x5f, 0xdd,
0xca, 0xbd, 0xe1, 0x67, 0x0c, 0x8b, 0xfb, 0xb5, 0xd1, 0x2c, 0x8e, 0x3c, 0x83, 0x44, 0x46, 0x36,
0xbe, 0xf4, 0xb0, 0xae, 0x28, 0xd8, 0xf4, 0xe7, 0xf7, 0xcb, 0x34, 0x18, 0x97, 0xc5, 0x38, 0x7f,
0x03, 0x00, 0x00, 0xff, 0xff, 0x63, 0xea, 0xb3, 0xa5, 0xec, 0x00, 0x00, 0x00,
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,738 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/dialogflow/v2/context.proto
package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import empty "github.com/golang/protobuf/ptypes/empty"
import _struct "github.com/golang/protobuf/ptypes/struct"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import field_mask "google.golang.org/genproto/protobuf/field_mask"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Represents a context.
type Context struct {
// Required. The unique identifier of the context. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The number of conversational query requests after which the
// context expires. If set to `0` (the default) the context expires
// immediately. Contexts expire automatically after 10 minutes even if there
// are no matching queries.
LifespanCount int32 `protobuf:"varint,2,opt,name=lifespan_count,json=lifespanCount,proto3" json:"lifespan_count,omitempty"`
// Optional. The collection of parameters associated with this context.
// Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for
// syntax.
Parameters *_struct.Struct `protobuf:"bytes,3,opt,name=parameters,proto3" json:"parameters,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Context) Reset() { *m = Context{} }
func (m *Context) String() string { return proto.CompactTextString(m) }
func (*Context) ProtoMessage() {}
func (*Context) Descriptor() ([]byte, []int) {
return fileDescriptor_context_81c56ca1e96cd61f, []int{0}
}
func (m *Context) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Context.Unmarshal(m, b)
}
func (m *Context) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Context.Marshal(b, m, deterministic)
}
func (dst *Context) XXX_Merge(src proto.Message) {
xxx_messageInfo_Context.Merge(dst, src)
}
func (m *Context) XXX_Size() int {
return xxx_messageInfo_Context.Size(m)
}
func (m *Context) XXX_DiscardUnknown() {
xxx_messageInfo_Context.DiscardUnknown(m)
}
var xxx_messageInfo_Context proto.InternalMessageInfo
func (m *Context) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Context) GetLifespanCount() int32 {
if m != nil {
return m.LifespanCount
}
return 0
}
func (m *Context) GetParameters() *_struct.Struct {
if m != nil {
return m.Parameters
}
return nil
}
// The request message for [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts].
type ListContextsRequest struct {
// Required. The session to list all contexts from.
// Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of items to return in a single page. By
// default 100 and at most 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The next_page_token value returned from a previous list request.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListContextsRequest) Reset() { *m = ListContextsRequest{} }
func (m *ListContextsRequest) String() string { return proto.CompactTextString(m) }
func (*ListContextsRequest) ProtoMessage() {}
func (*ListContextsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_context_81c56ca1e96cd61f, []int{1}
}
func (m *ListContextsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListContextsRequest.Unmarshal(m, b)
}
func (m *ListContextsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListContextsRequest.Marshal(b, m, deterministic)
}
func (dst *ListContextsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListContextsRequest.Merge(dst, src)
}
func (m *ListContextsRequest) XXX_Size() int {
return xxx_messageInfo_ListContextsRequest.Size(m)
}
func (m *ListContextsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListContextsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListContextsRequest proto.InternalMessageInfo
func (m *ListContextsRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *ListContextsRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *ListContextsRequest) GetPageToken() string {
if m != nil {
return m.PageToken
}
return ""
}
// The response message for [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts].
type ListContextsResponse struct {
// The list of contexts. There will be a maximum number of items
// returned based on the page_size field in the request.
Contexts []*Context `protobuf:"bytes,1,rep,name=contexts,proto3" json:"contexts,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListContextsResponse) Reset() { *m = ListContextsResponse{} }
func (m *ListContextsResponse) String() string { return proto.CompactTextString(m) }
func (*ListContextsResponse) ProtoMessage() {}
func (*ListContextsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_context_81c56ca1e96cd61f, []int{2}
}
func (m *ListContextsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListContextsResponse.Unmarshal(m, b)
}
func (m *ListContextsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListContextsResponse.Marshal(b, m, deterministic)
}
func (dst *ListContextsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListContextsResponse.Merge(dst, src)
}
func (m *ListContextsResponse) XXX_Size() int {
return xxx_messageInfo_ListContextsResponse.Size(m)
}
func (m *ListContextsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListContextsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListContextsResponse proto.InternalMessageInfo
func (m *ListContextsResponse) GetContexts() []*Context {
if m != nil {
return m.Contexts
}
return nil
}
func (m *ListContextsResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
}
return ""
}
// The request message for [Contexts.GetContext][google.cloud.dialogflow.v2.Contexts.GetContext].
type GetContextRequest struct {
// Required. The name of the context. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetContextRequest) Reset() { *m = GetContextRequest{} }
func (m *GetContextRequest) String() string { return proto.CompactTextString(m) }
func (*GetContextRequest) ProtoMessage() {}
func (*GetContextRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_context_81c56ca1e96cd61f, []int{3}
}
func (m *GetContextRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetContextRequest.Unmarshal(m, b)
}
func (m *GetContextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetContextRequest.Marshal(b, m, deterministic)
}
func (dst *GetContextRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetContextRequest.Merge(dst, src)
}
func (m *GetContextRequest) XXX_Size() int {
return xxx_messageInfo_GetContextRequest.Size(m)
}
func (m *GetContextRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetContextRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetContextRequest proto.InternalMessageInfo
func (m *GetContextRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// The request message for [Contexts.CreateContext][google.cloud.dialogflow.v2.Contexts.CreateContext].
type CreateContextRequest struct {
// Required. The session to create a context for.
// Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The context to create.
Context *Context `protobuf:"bytes,2,opt,name=context,proto3" json:"context,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateContextRequest) Reset() { *m = CreateContextRequest{} }
func (m *CreateContextRequest) String() string { return proto.CompactTextString(m) }
func (*CreateContextRequest) ProtoMessage() {}
func (*CreateContextRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_context_81c56ca1e96cd61f, []int{4}
}
func (m *CreateContextRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateContextRequest.Unmarshal(m, b)
}
func (m *CreateContextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateContextRequest.Marshal(b, m, deterministic)
}
func (dst *CreateContextRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateContextRequest.Merge(dst, src)
}
func (m *CreateContextRequest) XXX_Size() int {
return xxx_messageInfo_CreateContextRequest.Size(m)
}
func (m *CreateContextRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateContextRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateContextRequest proto.InternalMessageInfo
func (m *CreateContextRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *CreateContextRequest) GetContext() *Context {
if m != nil {
return m.Context
}
return nil
}
// The request message for [Contexts.UpdateContext][google.cloud.dialogflow.v2.Contexts.UpdateContext].
type UpdateContextRequest struct {
// Required. The context to update.
Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
// Optional. The mask to control which fields get updated.
UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateContextRequest) Reset() { *m = UpdateContextRequest{} }
func (m *UpdateContextRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateContextRequest) ProtoMessage() {}
func (*UpdateContextRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_context_81c56ca1e96cd61f, []int{5}
}
func (m *UpdateContextRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateContextRequest.Unmarshal(m, b)
}
func (m *UpdateContextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateContextRequest.Marshal(b, m, deterministic)
}
func (dst *UpdateContextRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateContextRequest.Merge(dst, src)
}
func (m *UpdateContextRequest) XXX_Size() int {
return xxx_messageInfo_UpdateContextRequest.Size(m)
}
func (m *UpdateContextRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateContextRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateContextRequest proto.InternalMessageInfo
func (m *UpdateContextRequest) GetContext() *Context {
if m != nil {
return m.Context
}
return nil
}
func (m *UpdateContextRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
return nil
}
// The request message for [Contexts.DeleteContext][google.cloud.dialogflow.v2.Contexts.DeleteContext].
type DeleteContextRequest struct {
// Required. The name of the context to delete. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteContextRequest) Reset() { *m = DeleteContextRequest{} }
func (m *DeleteContextRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteContextRequest) ProtoMessage() {}
func (*DeleteContextRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_context_81c56ca1e96cd61f, []int{6}
}
func (m *DeleteContextRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteContextRequest.Unmarshal(m, b)
}
func (m *DeleteContextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteContextRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteContextRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteContextRequest.Merge(dst, src)
}
func (m *DeleteContextRequest) XXX_Size() int {
return xxx_messageInfo_DeleteContextRequest.Size(m)
}
func (m *DeleteContextRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteContextRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteContextRequest proto.InternalMessageInfo
func (m *DeleteContextRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// The request message for [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2.Contexts.DeleteAllContexts].
type DeleteAllContextsRequest struct {
// Required. The name of the session to delete all contexts from. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteAllContextsRequest) Reset() { *m = DeleteAllContextsRequest{} }
func (m *DeleteAllContextsRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteAllContextsRequest) ProtoMessage() {}
func (*DeleteAllContextsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_context_81c56ca1e96cd61f, []int{7}
}
func (m *DeleteAllContextsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteAllContextsRequest.Unmarshal(m, b)
}
func (m *DeleteAllContextsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteAllContextsRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteAllContextsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteAllContextsRequest.Merge(dst, src)
}
func (m *DeleteAllContextsRequest) XXX_Size() int {
return xxx_messageInfo_DeleteAllContextsRequest.Size(m)
}
func (m *DeleteAllContextsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteAllContextsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteAllContextsRequest proto.InternalMessageInfo
func (m *DeleteAllContextsRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func init() {
proto.RegisterType((*Context)(nil), "google.cloud.dialogflow.v2.Context")
proto.RegisterType((*ListContextsRequest)(nil), "google.cloud.dialogflow.v2.ListContextsRequest")
proto.RegisterType((*ListContextsResponse)(nil), "google.cloud.dialogflow.v2.ListContextsResponse")
proto.RegisterType((*GetContextRequest)(nil), "google.cloud.dialogflow.v2.GetContextRequest")
proto.RegisterType((*CreateContextRequest)(nil), "google.cloud.dialogflow.v2.CreateContextRequest")
proto.RegisterType((*UpdateContextRequest)(nil), "google.cloud.dialogflow.v2.UpdateContextRequest")
proto.RegisterType((*DeleteContextRequest)(nil), "google.cloud.dialogflow.v2.DeleteContextRequest")
proto.RegisterType((*DeleteAllContextsRequest)(nil), "google.cloud.dialogflow.v2.DeleteAllContextsRequest")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// ContextsClient is the client API for Contexts service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ContextsClient interface {
// Returns the list of all contexts in the specified session.
ListContexts(ctx context.Context, in *ListContextsRequest, opts ...grpc.CallOption) (*ListContextsResponse, error)
// Retrieves the specified context.
GetContext(ctx context.Context, in *GetContextRequest, opts ...grpc.CallOption) (*Context, error)
// Creates a context.
CreateContext(ctx context.Context, in *CreateContextRequest, opts ...grpc.CallOption) (*Context, error)
// Updates the specified context.
UpdateContext(ctx context.Context, in *UpdateContextRequest, opts ...grpc.CallOption) (*Context, error)
// Deletes the specified context.
DeleteContext(ctx context.Context, in *DeleteContextRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// Deletes all active contexts in the specified session.
DeleteAllContexts(ctx context.Context, in *DeleteAllContextsRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}
type contextsClient struct {
cc *grpc.ClientConn
}
func NewContextsClient(cc *grpc.ClientConn) ContextsClient {
return &contextsClient{cc}
}
func (c *contextsClient) ListContexts(ctx context.Context, in *ListContextsRequest, opts ...grpc.CallOption) (*ListContextsResponse, error) {
out := new(ListContextsResponse)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Contexts/ListContexts", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *contextsClient) GetContext(ctx context.Context, in *GetContextRequest, opts ...grpc.CallOption) (*Context, error) {
out := new(Context)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Contexts/GetContext", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *contextsClient) CreateContext(ctx context.Context, in *CreateContextRequest, opts ...grpc.CallOption) (*Context, error) {
out := new(Context)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Contexts/CreateContext", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *contextsClient) UpdateContext(ctx context.Context, in *UpdateContextRequest, opts ...grpc.CallOption) (*Context, error) {
out := new(Context)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Contexts/UpdateContext", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *contextsClient) DeleteContext(ctx context.Context, in *DeleteContextRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Contexts/DeleteContext", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *contextsClient) DeleteAllContexts(ctx context.Context, in *DeleteAllContextsRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Contexts/DeleteAllContexts", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ContextsServer is the server API for Contexts service.
type ContextsServer interface {
// Returns the list of all contexts in the specified session.
ListContexts(context.Context, *ListContextsRequest) (*ListContextsResponse, error)
// Retrieves the specified context.
GetContext(context.Context, *GetContextRequest) (*Context, error)
// Creates a context.
CreateContext(context.Context, *CreateContextRequest) (*Context, error)
// Updates the specified context.
UpdateContext(context.Context, *UpdateContextRequest) (*Context, error)
// Deletes the specified context.
DeleteContext(context.Context, *DeleteContextRequest) (*empty.Empty, error)
// Deletes all active contexts in the specified session.
DeleteAllContexts(context.Context, *DeleteAllContextsRequest) (*empty.Empty, error)
}
func RegisterContextsServer(s *grpc.Server, srv ContextsServer) {
s.RegisterService(&_Contexts_serviceDesc, srv)
}
func _Contexts_ListContexts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListContextsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ContextsServer).ListContexts(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.dialogflow.v2.Contexts/ListContexts",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ContextsServer).ListContexts(ctx, req.(*ListContextsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Contexts_GetContext_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetContextRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ContextsServer).GetContext(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.dialogflow.v2.Contexts/GetContext",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ContextsServer).GetContext(ctx, req.(*GetContextRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Contexts_CreateContext_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateContextRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ContextsServer).CreateContext(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.dialogflow.v2.Contexts/CreateContext",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ContextsServer).CreateContext(ctx, req.(*CreateContextRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Contexts_UpdateContext_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateContextRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ContextsServer).UpdateContext(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.dialogflow.v2.Contexts/UpdateContext",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ContextsServer).UpdateContext(ctx, req.(*UpdateContextRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Contexts_DeleteContext_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteContextRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ContextsServer).DeleteContext(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.dialogflow.v2.Contexts/DeleteContext",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ContextsServer).DeleteContext(ctx, req.(*DeleteContextRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Contexts_DeleteAllContexts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteAllContextsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ContextsServer).DeleteAllContexts(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.dialogflow.v2.Contexts/DeleteAllContexts",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ContextsServer).DeleteAllContexts(ctx, req.(*DeleteAllContextsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Contexts_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2.Contexts",
HandlerType: (*ContextsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListContexts",
Handler: _Contexts_ListContexts_Handler,
},
{
MethodName: "GetContext",
Handler: _Contexts_GetContext_Handler,
},
{
MethodName: "CreateContext",
Handler: _Contexts_CreateContext_Handler,
},
{
MethodName: "UpdateContext",
Handler: _Contexts_UpdateContext_Handler,
},
{
MethodName: "DeleteContext",
Handler: _Contexts_DeleteContext_Handler,
},
{
MethodName: "DeleteAllContexts",
Handler: _Contexts_DeleteAllContexts_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/dialogflow/v2/context.proto",
}
func init() {
proto.RegisterFile("google/cloud/dialogflow/v2/context.proto", fileDescriptor_context_81c56ca1e96cd61f)
}
var fileDescriptor_context_81c56ca1e96cd61f = []byte{
// 715 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x95, 0x4f, 0x6f, 0xd3, 0x30,
0x18, 0xc6, 0xe5, 0x0e, 0xf6, 0xe7, 0xdd, 0x0a, 0x9a, 0xa9, 0x46, 0x95, 0x0d, 0x54, 0x05, 0x01,
0x55, 0x25, 0x62, 0xc8, 0x90, 0xd0, 0x18, 0x13, 0x62, 0x2d, 0x9b, 0x84, 0x40, 0x9a, 0x3a, 0xe0,
0xc0, 0xa5, 0xf2, 0x5a, 0x37, 0x0a, 0x4b, 0xe3, 0x10, 0xbb, 0x63, 0x0c, 0x4d, 0x48, 0x7c, 0x04,
0xe0, 0x36, 0x4e, 0x1c, 0x27, 0x4e, 0x7c, 0x15, 0xbe, 0x02, 0x77, 0xae, 0x1c, 0x51, 0x1c, 0xa7,
0xff, 0x57, 0x52, 0x6e, 0x89, 0xfd, 0xd8, 0xcf, 0xcf, 0xaf, 0x9f, 0x37, 0x81, 0xa2, 0xc3, 0xb9,
0xe3, 0x31, 0x52, 0xf7, 0x78, 0xbb, 0x41, 0x1a, 0x2e, 0xf5, 0xb8, 0xd3, 0xf4, 0xf8, 0x5b, 0x72,
0x60, 0x93, 0x3a, 0xf7, 0x25, 0x3b, 0x94, 0x56, 0x10, 0x72, 0xc9, 0xb1, 0x11, 0x2b, 0x2d, 0xa5,
0xb4, 0xba, 0x4a, 0xeb, 0xc0, 0x36, 0x56, 0xf4, 0x2e, 0x34, 0x70, 0x09, 0xf5, 0x7d,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0xe9, 0x5a, 0xbf, 0xb4, 0xf7, 0xa6, 0xd5, 0xae, 0xab, 0x7f, 0x03, 0x00,
0x00, 0xff, 0xff, 0xb8, 0xb1, 0x2f, 0xbf, 0x51, 0x08, 0x00, 0x00,
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,710 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/dialogflow/v2/session_entity_type.proto
package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import empty "github.com/golang/protobuf/ptypes/empty"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import field_mask "google.golang.org/genproto/protobuf/field_mask"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The types of modifications for a session entity type.
type SessionEntityType_EntityOverrideMode int32
const (
// Not specified. This value should be never used.
SessionEntityType_ENTITY_OVERRIDE_MODE_UNSPECIFIED SessionEntityType_EntityOverrideMode = 0
// The collection of session entities overrides the collection of entities
// in the corresponding developer entity type.
SessionEntityType_ENTITY_OVERRIDE_MODE_OVERRIDE SessionEntityType_EntityOverrideMode = 1
// The collection of session entities extends the collection of entities in
// the corresponding developer entity type.
// Calls to `ListSessionEntityTypes`, `GetSessionEntityType`,
// `CreateSessionEntityType` and `UpdateSessionEntityType` return the full
// collection of entities from the developer entity type in the agent's
// default language and the session entity type.
SessionEntityType_ENTITY_OVERRIDE_MODE_SUPPLEMENT SessionEntityType_EntityOverrideMode = 2
)
var SessionEntityType_EntityOverrideMode_name = map[int32]string{
0: "ENTITY_OVERRIDE_MODE_UNSPECIFIED",
1: "ENTITY_OVERRIDE_MODE_OVERRIDE",
2: "ENTITY_OVERRIDE_MODE_SUPPLEMENT",
}
var SessionEntityType_EntityOverrideMode_value = map[string]int32{
"ENTITY_OVERRIDE_MODE_UNSPECIFIED": 0,
"ENTITY_OVERRIDE_MODE_OVERRIDE": 1,
"ENTITY_OVERRIDE_MODE_SUPPLEMENT": 2,
}
func (x SessionEntityType_EntityOverrideMode) String() string {
return proto.EnumName(SessionEntityType_EntityOverrideMode_name, int32(x))
}
func (SessionEntityType_EntityOverrideMode) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_session_entity_type_f014f04ccf41506d, []int{0, 0}
}
// Represents a session entity type.
//
// Extends or replaces a developer entity type at the user session level (we
// refer to the entity types defined at the agent level as "developer entity
// types").
//
// Note: session entity types apply to all queries, regardless of the language.
type SessionEntityType struct {
// Required. The unique identifier of this session entity type. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
// Display Name>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Indicates whether the additional data should override or
// supplement the developer entity type definition.
EntityOverrideMode SessionEntityType_EntityOverrideMode `protobuf:"varint,2,opt,name=entity_override_mode,json=entityOverrideMode,proto3,enum=google.cloud.dialogflow.v2.SessionEntityType_EntityOverrideMode" json:"entity_override_mode,omitempty"`
// Required. The collection of entities associated with this session entity
// type.
Entities []*EntityType_Entity `protobuf:"bytes,3,rep,name=entities,proto3" json:"entities,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SessionEntityType) Reset() { *m = SessionEntityType{} }
func (m *SessionEntityType) String() string { return proto.CompactTextString(m) }
func (*SessionEntityType) ProtoMessage() {}
func (*SessionEntityType) Descriptor() ([]byte, []int) {
return fileDescriptor_session_entity_type_f014f04ccf41506d, []int{0}
}
func (m *SessionEntityType) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SessionEntityType.Unmarshal(m, b)
}
func (m *SessionEntityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SessionEntityType.Marshal(b, m, deterministic)
}
func (dst *SessionEntityType) XXX_Merge(src proto.Message) {
xxx_messageInfo_SessionEntityType.Merge(dst, src)
}
func (m *SessionEntityType) XXX_Size() int {
return xxx_messageInfo_SessionEntityType.Size(m)
}
func (m *SessionEntityType) XXX_DiscardUnknown() {
xxx_messageInfo_SessionEntityType.DiscardUnknown(m)
}
var xxx_messageInfo_SessionEntityType proto.InternalMessageInfo
func (m *SessionEntityType) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *SessionEntityType) GetEntityOverrideMode() SessionEntityType_EntityOverrideMode {
if m != nil {
return m.EntityOverrideMode
}
return SessionEntityType_ENTITY_OVERRIDE_MODE_UNSPECIFIED
}
func (m *SessionEntityType) GetEntities() []*EntityType_Entity {
if m != nil {
return m.Entities
}
return nil
}
// The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].
type ListSessionEntityTypesRequest struct {
// Required. The session to list all session entity types from.
// Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of items to return in a single page. By
// default 100 and at most 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The next_page_token value returned from a previous list request.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListSessionEntityTypesRequest) Reset() { *m = ListSessionEntityTypesRequest{} }
func (m *ListSessionEntityTypesRequest) String() string { return proto.CompactTextString(m) }
func (*ListSessionEntityTypesRequest) ProtoMessage() {}
func (*ListSessionEntityTypesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_session_entity_type_f014f04ccf41506d, []int{1}
}
func (m *ListSessionEntityTypesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListSessionEntityTypesRequest.Unmarshal(m, b)
}
func (m *ListSessionEntityTypesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListSessionEntityTypesRequest.Marshal(b, m, deterministic)
}
func (dst *ListSessionEntityTypesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListSessionEntityTypesRequest.Merge(dst, src)
}
func (m *ListSessionEntityTypesRequest) XXX_Size() int {
return xxx_messageInfo_ListSessionEntityTypesRequest.Size(m)
}
func (m *ListSessionEntityTypesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListSessionEntityTypesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListSessionEntityTypesRequest proto.InternalMessageInfo
func (m *ListSessionEntityTypesRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *ListSessionEntityTypesRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *ListSessionEntityTypesRequest) GetPageToken() string {
if m != nil {
return m.PageToken
}
return ""
}
// The response message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].
type ListSessionEntityTypesResponse struct {
// The list of session entity types. There will be a maximum number of items
// returned based on the page_size field in the request.
SessionEntityTypes []*SessionEntityType `protobuf:"bytes,1,rep,name=session_entity_types,json=sessionEntityTypes,proto3" json:"session_entity_types,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListSessionEntityTypesResponse) Reset() { *m = ListSessionEntityTypesResponse{} }
func (m *ListSessionEntityTypesResponse) String() string { return proto.CompactTextString(m) }
func (*ListSessionEntityTypesResponse) ProtoMessage() {}
func (*ListSessionEntityTypesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_session_entity_type_f014f04ccf41506d, []int{2}
}
func (m *ListSessionEntityTypesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListSessionEntityTypesResponse.Unmarshal(m, b)
}
func (m *ListSessionEntityTypesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListSessionEntityTypesResponse.Marshal(b, m, deterministic)
}
func (dst *ListSessionEntityTypesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListSessionEntityTypesResponse.Merge(dst, src)
}
func (m *ListSessionEntityTypesResponse) XXX_Size() int {
return xxx_messageInfo_ListSessionEntityTypesResponse.Size(m)
}
func (m *ListSessionEntityTypesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListSessionEntityTypesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListSessionEntityTypesResponse proto.InternalMessageInfo
func (m *ListSessionEntityTypesResponse) GetSessionEntityTypes() []*SessionEntityType {
if m != nil {
return m.SessionEntityTypes
}
return nil
}
func (m *ListSessionEntityTypesResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
}
return ""
}
// The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.GetSessionEntityType].
type GetSessionEntityTypeRequest struct {
// Required. The name of the session entity type. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
// Display Name>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetSessionEntityTypeRequest) Reset() { *m = GetSessionEntityTypeRequest{} }
func (m *GetSessionEntityTypeRequest) String() string { return proto.CompactTextString(m) }
func (*GetSessionEntityTypeRequest) ProtoMessage() {}
func (*GetSessionEntityTypeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_session_entity_type_f014f04ccf41506d, []int{3}
}
func (m *GetSessionEntityTypeRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetSessionEntityTypeRequest.Unmarshal(m, b)
}
func (m *GetSessionEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetSessionEntityTypeRequest.Marshal(b, m, deterministic)
}
func (dst *GetSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetSessionEntityTypeRequest.Merge(dst, src)
}
func (m *GetSessionEntityTypeRequest) XXX_Size() int {
return xxx_messageInfo_GetSessionEntityTypeRequest.Size(m)
}
func (m *GetSessionEntityTypeRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetSessionEntityTypeRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetSessionEntityTypeRequest proto.InternalMessageInfo
func (m *GetSessionEntityTypeRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// The request message for [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.CreateSessionEntityType].
type CreateSessionEntityTypeRequest struct {
// Required. The session to create a session entity type for.
// Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The session entity type to create.
SessionEntityType *SessionEntityType `protobuf:"bytes,2,opt,name=session_entity_type,json=sessionEntityType,proto3" json:"session_entity_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateSessionEntityTypeRequest) Reset() { *m = CreateSessionEntityTypeRequest{} }
func (m *CreateSessionEntityTypeRequest) String() string { return proto.CompactTextString(m) }
func (*CreateSessionEntityTypeRequest) ProtoMessage() {}
func (*CreateSessionEntityTypeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_session_entity_type_f014f04ccf41506d, []int{4}
}
func (m *CreateSessionEntityTypeRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateSessionEntityTypeRequest.Unmarshal(m, b)
}
func (m *CreateSessionEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateSessionEntityTypeRequest.Marshal(b, m, deterministic)
}
func (dst *CreateSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateSessionEntityTypeRequest.Merge(dst, src)
}
func (m *CreateSessionEntityTypeRequest) XXX_Size() int {
return xxx_messageInfo_CreateSessionEntityTypeRequest.Size(m)
}
func (m *CreateSessionEntityTypeRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateSessionEntityTypeRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateSessionEntityTypeRequest proto.InternalMessageInfo
func (m *CreateSessionEntityTypeRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *CreateSessionEntityTypeRequest) GetSessionEntityType() *SessionEntityType {
if m != nil {
return m.SessionEntityType
}
return nil
}
// The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.UpdateSessionEntityType].
type UpdateSessionEntityTypeRequest struct {
// Required. The entity type to update. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
// Display Name>`.
SessionEntityType *SessionEntityType `protobuf:"bytes,1,opt,name=session_entity_type,json=sessionEntityType,proto3" json:"session_entity_type,omitempty"`
// Optional. The mask to control which fields get updated.
UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateSessionEntityTypeRequest) Reset() { *m = UpdateSessionEntityTypeRequest{} }
func (m *UpdateSessionEntityTypeRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateSessionEntityTypeRequest) ProtoMessage() {}
func (*UpdateSessionEntityTypeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_session_entity_type_f014f04ccf41506d, []int{5}
}
func (m *UpdateSessionEntityTypeRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateSessionEntityTypeRequest.Unmarshal(m, b)
}
func (m *UpdateSessionEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateSessionEntityTypeRequest.Marshal(b, m, deterministic)
}
func (dst *UpdateSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateSessionEntityTypeRequest.Merge(dst, src)
}
func (m *UpdateSessionEntityTypeRequest) XXX_Size() int {
return xxx_messageInfo_UpdateSessionEntityTypeRequest.Size(m)
}
func (m *UpdateSessionEntityTypeRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateSessionEntityTypeRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateSessionEntityTypeRequest proto.InternalMessageInfo
func (m *UpdateSessionEntityTypeRequest) GetSessionEntityType() *SessionEntityType {
if m != nil {
return m.SessionEntityType
}
return nil
}
func (m *UpdateSessionEntityTypeRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
return nil
}
// The request message for [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.DeleteSessionEntityType].
type DeleteSessionEntityTypeRequest struct {
// Required. The name of the entity type to delete. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
// Display Name>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteSessionEntityTypeRequest) Reset() { *m = DeleteSessionEntityTypeRequest{} }
func (m *DeleteSessionEntityTypeRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteSessionEntityTypeRequest) ProtoMessage() {}
func (*DeleteSessionEntityTypeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_session_entity_type_f014f04ccf41506d, []int{6}
}
func (m *DeleteSessionEntityTypeRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteSessionEntityTypeRequest.Unmarshal(m, b)
}
func (m *DeleteSessionEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteSessionEntityTypeRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteSessionEntityTypeRequest.Merge(dst, src)
}
func (m *DeleteSessionEntityTypeRequest) XXX_Size() int {
return xxx_messageInfo_DeleteSessionEntityTypeRequest.Size(m)
}
func (m *DeleteSessionEntityTypeRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteSessionEntityTypeRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteSessionEntityTypeRequest proto.InternalMessageInfo
func (m *DeleteSessionEntityTypeRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func init() {
proto.RegisterType((*SessionEntityType)(nil), "google.cloud.dialogflow.v2.SessionEntityType")
proto.RegisterType((*ListSessionEntityTypesRequest)(nil), "google.cloud.dialogflow.v2.ListSessionEntityTypesRequest")
proto.RegisterType((*ListSessionEntityTypesResponse)(nil), "google.cloud.dialogflow.v2.ListSessionEntityTypesResponse")
proto.RegisterType((*GetSessionEntityTypeRequest)(nil), "google.cloud.dialogflow.v2.GetSessionEntityTypeRequest")
proto.RegisterType((*CreateSessionEntityTypeRequest)(nil), "google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest")
proto.RegisterType((*UpdateSessionEntityTypeRequest)(nil), "google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest")
proto.RegisterType((*DeleteSessionEntityTypeRequest)(nil), "google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest")
proto.RegisterEnum("google.cloud.dialogflow.v2.SessionEntityType_EntityOverrideMode", SessionEntityType_EntityOverrideMode_name, SessionEntityType_EntityOverrideMode_value)
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// SessionEntityTypesClient is the client API for SessionEntityTypes service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type SessionEntityTypesClient interface {
// Returns the list of all session entity types in the specified session.
ListSessionEntityTypes(ctx context.Context, in *ListSessionEntityTypesRequest, opts ...grpc.CallOption) (*ListSessionEntityTypesResponse, error)
// Retrieves the specified session entity type.
GetSessionEntityType(ctx context.Context, in *GetSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error)
// Creates a session entity type.
CreateSessionEntityType(ctx context.Context, in *CreateSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error)
// Updates the specified session entity type.
UpdateSessionEntityType(ctx context.Context, in *UpdateSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error)
// Deletes the specified session entity type.
DeleteSessionEntityType(ctx context.Context, in *DeleteSessionEntityTypeRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}
type sessionEntityTypesClient struct {
cc *grpc.ClientConn
}
func NewSessionEntityTypesClient(cc *grpc.ClientConn) SessionEntityTypesClient {
return &sessionEntityTypesClient{cc}
}
func (c *sessionEntityTypesClient) ListSessionEntityTypes(ctx context.Context, in *ListSessionEntityTypesRequest, opts ...grpc.CallOption) (*ListSessionEntityTypesResponse, error) {
out := new(ListSessionEntityTypesResponse)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.SessionEntityTypes/ListSessionEntityTypes", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *sessionEntityTypesClient) GetSessionEntityType(ctx context.Context, in *GetSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error) {
out := new(SessionEntityType)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.SessionEntityTypes/GetSessionEntityType", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *sessionEntityTypesClient) CreateSessionEntityType(ctx context.Context, in *CreateSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error) {
out := new(SessionEntityType)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.SessionEntityTypes/CreateSessionEntityType", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *sessionEntityTypesClient) UpdateSessionEntityType(ctx context.Context, in *UpdateSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error) {
out := new(SessionEntityType)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.SessionEntityTypes/UpdateSessionEntityType", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *sessionEntityTypesClient) DeleteSessionEntityType(ctx context.Context, in *DeleteSessionEntityTypeRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.SessionEntityTypes/DeleteSessionEntityType", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// SessionEntityTypesServer is the server API for SessionEntityTypes service.
type SessionEntityTypesServer interface {
// Returns the list of all session entity types in the specified session.
ListSessionEntityTypes(context.Context, *ListSessionEntityTypesRequest) (*ListSessionEntityTypesResponse, error)
// Retrieves the specified session entity type.
GetSessionEntityType(context.Context, *GetSessionEntityTypeRequest) (*SessionEntityType, error)
// Creates a session entity type.
CreateSessionEntityType(context.Context, *CreateSessionEntityTypeRequest) (*SessionEntityType, error)
// Updates the specified session entity type.
UpdateSessionEntityType(context.Context, *UpdateSessionEntityTypeRequest) (*SessionEntityType, error)
// Deletes the specified session entity type.
DeleteSessionEntityType(context.Context, *DeleteSessionEntityTypeRequest) (*empty.Empty, error)
}
func RegisterSessionEntityTypesServer(s *grpc.Server, srv SessionEntityTypesServer) {
s.RegisterService(&_SessionEntityTypes_serviceDesc, srv)
}
func _SessionEntityTypes_ListSessionEntityTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListSessionEntityTypesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SessionEntityTypesServer).ListSessionEntityTypes(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.dialogflow.v2.SessionEntityTypes/ListSessionEntityTypes",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SessionEntityTypesServer).ListSessionEntityTypes(ctx, req.(*ListSessionEntityTypesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SessionEntityTypes_GetSessionEntityType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetSessionEntityTypeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SessionEntityTypesServer).GetSessionEntityType(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.dialogflow.v2.SessionEntityTypes/GetSessionEntityType",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SessionEntityTypesServer).GetSessionEntityType(ctx, req.(*GetSessionEntityTypeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SessionEntityTypes_CreateSessionEntityType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateSessionEntityTypeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SessionEntityTypesServer).CreateSessionEntityType(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.dialogflow.v2.SessionEntityTypes/CreateSessionEntityType",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SessionEntityTypesServer).CreateSessionEntityType(ctx, req.(*CreateSessionEntityTypeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SessionEntityTypes_UpdateSessionEntityType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateSessionEntityTypeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SessionEntityTypesServer).UpdateSessionEntityType(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.dialogflow.v2.SessionEntityTypes/UpdateSessionEntityType",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SessionEntityTypesServer).UpdateSessionEntityType(ctx, req.(*UpdateSessionEntityTypeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SessionEntityTypes_DeleteSessionEntityType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteSessionEntityTypeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SessionEntityTypesServer).DeleteSessionEntityType(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.dialogflow.v2.SessionEntityTypes/DeleteSessionEntityType",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SessionEntityTypesServer).DeleteSessionEntityType(ctx, req.(*DeleteSessionEntityTypeRequest))
}
return interceptor(ctx, in, info, handler)
}
var _SessionEntityTypes_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2.SessionEntityTypes",
HandlerType: (*SessionEntityTypesServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListSessionEntityTypes",
Handler: _SessionEntityTypes_ListSessionEntityTypes_Handler,
},
{
MethodName: "GetSessionEntityType",
Handler: _SessionEntityTypes_GetSessionEntityType_Handler,
},
{
MethodName: "CreateSessionEntityType",
Handler: _SessionEntityTypes_CreateSessionEntityType_Handler,
},
{
MethodName: "UpdateSessionEntityType",
Handler: _SessionEntityTypes_UpdateSessionEntityType_Handler,
},
{
MethodName: "DeleteSessionEntityType",
Handler: _SessionEntityTypes_DeleteSessionEntityType_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/dialogflow/v2/session_entity_type.proto",
}
func init() {
proto.RegisterFile("google/cloud/dialogflow/v2/session_entity_type.proto", fileDescriptor_session_entity_type_f014f04ccf41506d)
}
var fileDescriptor_session_entity_type_f014f04ccf41506d = []byte{
// 793 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdf, 0x4e, 0xd4, 0x4a,
0x18, 0x3f, 0x53, 0xce, 0x21, 0x30, 0xe4, 0x9c, 0x03, 0x73, 0xc8, 0xb2, 0x29, 0x87, 0x75, 0xad,
0xc6, 0x90, 0x8d, 0xb6, 0x71, 0x25, 0x1a, 0x41, 0x13, 0x03, 0x5b, 0x70, 0x23, 0x0b, 0x6b, 0x77,
0x21, 0xd1, 0xc4, 0x34, 0x85, 0xfd, 0x68, 0x2a, 0xbb, 0x9d, 0xda, 0xe9, 0xa2, 0x8b, 0xe1, 0x86,
0x57, 0xf0, 0xc2, 0x78, 0x6b, 0xe2, 0x85, 0xfa, 0x0a, 0xbc, 0x82, 0x57, 0x5e, 0xf8, 0x02, 0xde,
0xf1, 0x02, 0x5e, 0x9a, 0x4e, 0xbb, 0x40, 0x68, 0x3b, 0x66, 0x89, 0x77, 0xf3, 0xe7, 0xfb, 0xf3,
0xfb, 0x7d, 0xf3, 0xfb, 0xbe, 0x0c, 0x9e, 0xb3, 0x29, 0xb5, 0xdb, 0xa0, 0x6d, 0xb7, 0x69, 0xb7,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 0xc4, 0xcc, 0xc4, 0x9d, 0x3a, 0x28,
0x33, 0xe0, 0xcc, 0xcc, 0xf2, 0x43, 0xce, 0x2c, 0xed, 0x9b, 0x30, 0xe0, 0x93, 0xa5, 0xb3, 0xfd,
0x8c, 0xf0, 0x54, 0x46, 0x93, 0x8a, 0xd9, 0x8a, 0x3b, 0x5b, 0xce, 0x25, 0x66, 0x84, 0x1e, 0x7e,
0x2b, 0xfa, 0xaa, 0x2b, 0x5d, 0x48, 0x75, 0x8b, 0x1f, 0x10, 0x2e, 0x6c, 0xd3, 0x8e, 0x00, 0xd7,
0x62, 0x2e, 0x01, 0xa9, 0x1e, 0x22, 0xa8, 0xa3, 0xa7, 0x95, 0xd8, 0xcb, 0xa6, 0x6d, 0xcb, 0xb5,
0x55, 0xea, 0xdb, 0x9a, 0x0d, 0x2e, 0xc7, 0xa7, 0x45, 0x57, 0x96, 0xe7, 0xb0, 0xb4, 0x5f, 0xd3,
0xc2, 0xe9, 0xee, 0x07, 0x42, 0xef, 0x25, 0xa9, 0xb2, 0xfc, 0x49, 0x92, 0x57, 0xa2, 0x70, 0x4b,
0x1c, 0x44, 0xe5, 0x14, 0xc4, 0x66, 0x79, 0x6b, 0x98, 0x47, 0xbd, 0xf5, 0x33, 0x00, 0x00, 0xff,
0xff, 0x3d, 0x82, 0x36, 0x5e, 0xfa, 0x09, 0x00, 0x00,
}

View File

@ -0,0 +1,304 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/dialogflow/v2/webhook.proto
package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _struct "github.com/golang/protobuf/ptypes/struct"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The request message for a webhook call.
type WebhookRequest struct {
// The unique identifier of detectIntent request session.
// Can be used to identify end-user inside webhook implementation.
// Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
Session string `protobuf:"bytes,4,opt,name=session,proto3" json:"session,omitempty"`
// The unique identifier of the response. Contains the same value as
// `[Streaming]DetectIntentResponse.response_id`.
ResponseId string `protobuf:"bytes,1,opt,name=response_id,json=responseId,proto3" json:"response_id,omitempty"`
// The result of the conversational query or event processing. Contains the
// same value as `[Streaming]DetectIntentResponse.query_result`.
QueryResult *QueryResult `protobuf:"bytes,2,opt,name=query_result,json=queryResult,proto3" json:"query_result,omitempty"`
// Optional. The contents of the original request that was passed to
// `[Streaming]DetectIntent` call.
OriginalDetectIntentRequest *OriginalDetectIntentRequest `protobuf:"bytes,3,opt,name=original_detect_intent_request,json=originalDetectIntentRequest,proto3" json:"original_detect_intent_request,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebhookRequest) Reset() { *m = WebhookRequest{} }
func (m *WebhookRequest) String() string { return proto.CompactTextString(m) }
func (*WebhookRequest) ProtoMessage() {}
func (*WebhookRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_webhook_d01678681840ffff, []int{0}
}
func (m *WebhookRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebhookRequest.Unmarshal(m, b)
}
func (m *WebhookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebhookRequest.Marshal(b, m, deterministic)
}
func (dst *WebhookRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebhookRequest.Merge(dst, src)
}
func (m *WebhookRequest) XXX_Size() int {
return xxx_messageInfo_WebhookRequest.Size(m)
}
func (m *WebhookRequest) XXX_DiscardUnknown() {
xxx_messageInfo_WebhookRequest.DiscardUnknown(m)
}
var xxx_messageInfo_WebhookRequest proto.InternalMessageInfo
func (m *WebhookRequest) GetSession() string {
if m != nil {
return m.Session
}
return ""
}
func (m *WebhookRequest) GetResponseId() string {
if m != nil {
return m.ResponseId
}
return ""
}
func (m *WebhookRequest) GetQueryResult() *QueryResult {
if m != nil {
return m.QueryResult
}
return nil
}
func (m *WebhookRequest) GetOriginalDetectIntentRequest() *OriginalDetectIntentRequest {
if m != nil {
return m.OriginalDetectIntentRequest
}
return nil
}
// The response message for a webhook call.
type WebhookResponse struct {
// Optional. The text to be shown on the screen. This value is passed directly
// to `QueryResult.fulfillment_text`.
FulfillmentText string `protobuf:"bytes,1,opt,name=fulfillment_text,json=fulfillmentText,proto3" json:"fulfillment_text,omitempty"`
// Optional. The collection of rich messages to present to the user. This
// value is passed directly to `QueryResult.fulfillment_messages`.
FulfillmentMessages []*Intent_Message `protobuf:"bytes,2,rep,name=fulfillment_messages,json=fulfillmentMessages,proto3" json:"fulfillment_messages,omitempty"`
// Optional. This value is passed directly to `QueryResult.webhook_source`.
Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
// Optional. This value is passed directly to `QueryResult.webhook_payload`.
// See the related `fulfillment_messages[i].payload field`, which may be used
// as an alternative to this field.
//
// This field can be used for Actions on Google responses.
// It should have a structure similar to the JSON message shown here. For more
// information, see
// [Actions on Google Webhook
// Format](https://developers.google.com/actions/dialogflow/webhook)
// <pre>{
// "google": {
// "expectUserResponse": true,
// "richResponse": {
// "items": [
// {
// "simpleResponse": {
// "textToSpeech": "this is a simple response"
// }
// }
// ]
// }
// }
// }</pre>
Payload *_struct.Struct `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
// Optional. The collection of output contexts. This value is passed directly
// to `QueryResult.output_contexts`.
OutputContexts []*Context `protobuf:"bytes,5,rep,name=output_contexts,json=outputContexts,proto3" json:"output_contexts,omitempty"`
// Optional. Makes the platform immediately invoke another `DetectIntent` call
// internally with the specified event as input.
FollowupEventInput *EventInput `protobuf:"bytes,6,opt,name=followup_event_input,json=followupEventInput,proto3" json:"followup_event_input,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebhookResponse) Reset() { *m = WebhookResponse{} }
func (m *WebhookResponse) String() string { return proto.CompactTextString(m) }
func (*WebhookResponse) ProtoMessage() {}
func (*WebhookResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_webhook_d01678681840ffff, []int{1}
}
func (m *WebhookResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebhookResponse.Unmarshal(m, b)
}
func (m *WebhookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebhookResponse.Marshal(b, m, deterministic)
}
func (dst *WebhookResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebhookResponse.Merge(dst, src)
}
func (m *WebhookResponse) XXX_Size() int {
return xxx_messageInfo_WebhookResponse.Size(m)
}
func (m *WebhookResponse) XXX_DiscardUnknown() {
xxx_messageInfo_WebhookResponse.DiscardUnknown(m)
}
var xxx_messageInfo_WebhookResponse proto.InternalMessageInfo
func (m *WebhookResponse) GetFulfillmentText() string {
if m != nil {
return m.FulfillmentText
}
return ""
}
func (m *WebhookResponse) GetFulfillmentMessages() []*Intent_Message {
if m != nil {
return m.FulfillmentMessages
}
return nil
}
func (m *WebhookResponse) GetSource() string {
if m != nil {
return m.Source
}
return ""
}
func (m *WebhookResponse) GetPayload() *_struct.Struct {
if m != nil {
return m.Payload
}
return nil
}
func (m *WebhookResponse) GetOutputContexts() []*Context {
if m != nil {
return m.OutputContexts
}
return nil
}
func (m *WebhookResponse) GetFollowupEventInput() *EventInput {
if m != nil {
return m.FollowupEventInput
}
return nil
}
// Represents the contents of the original request that was passed to
// the `[Streaming]DetectIntent` call.
type OriginalDetectIntentRequest struct {
// The source of this request, e.g., `google`, `facebook`, `slack`. It is set
// by Dialogflow-owned servers.
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
// Optional. This field is set to the value of `QueryParameters.payload` field
// passed in the request.
Payload *_struct.Struct `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OriginalDetectIntentRequest) Reset() { *m = OriginalDetectIntentRequest{} }
func (m *OriginalDetectIntentRequest) String() string { return proto.CompactTextString(m) }
func (*OriginalDetectIntentRequest) ProtoMessage() {}
func (*OriginalDetectIntentRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_webhook_d01678681840ffff, []int{2}
}
func (m *OriginalDetectIntentRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OriginalDetectIntentRequest.Unmarshal(m, b)
}
func (m *OriginalDetectIntentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OriginalDetectIntentRequest.Marshal(b, m, deterministic)
}
func (dst *OriginalDetectIntentRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_OriginalDetectIntentRequest.Merge(dst, src)
}
func (m *OriginalDetectIntentRequest) XXX_Size() int {
return xxx_messageInfo_OriginalDetectIntentRequest.Size(m)
}
func (m *OriginalDetectIntentRequest) XXX_DiscardUnknown() {
xxx_messageInfo_OriginalDetectIntentRequest.DiscardUnknown(m)
}
var xxx_messageInfo_OriginalDetectIntentRequest proto.InternalMessageInfo
func (m *OriginalDetectIntentRequest) GetSource() string {
if m != nil {
return m.Source
}
return ""
}
func (m *OriginalDetectIntentRequest) GetPayload() *_struct.Struct {
if m != nil {
return m.Payload
}
return nil
}
func init() {
proto.RegisterType((*WebhookRequest)(nil), "google.cloud.dialogflow.v2.WebhookRequest")
proto.RegisterType((*WebhookResponse)(nil), "google.cloud.dialogflow.v2.WebhookResponse")
proto.RegisterType((*OriginalDetectIntentRequest)(nil), "google.cloud.dialogflow.v2.OriginalDetectIntentRequest")
}
func init() {
proto.RegisterFile("google/cloud/dialogflow/v2/webhook.proto", fileDescriptor_webhook_d01678681840ffff)
}
var fileDescriptor_webhook_d01678681840ffff = []byte{
// 536 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xc1, 0x6f, 0xd3, 0x30,
0x14, 0xc6, 0x95, 0x14, 0x3a, 0xcd, 0x9d, 0x56, 0x64, 0x26, 0x88, 0x3a, 0x34, 0xaa, 0x22, 0xb1,
0xc2, 0x21, 0x11, 0xe1, 0xc0, 0x81, 0xdb, 0x56, 0x40, 0x45, 0x20, 0x46, 0x40, 0x80, 0x90, 0x50,
0x94, 0x26, 0x6e, 0x66, 0xe1, 0xfa, 0xa5, 0xb1, 0xdd, 0x6e, 0x12, 0x7f, 0x03, 0x37, 0x4e, 0xdc,
0x38, 0xf2, 0x17, 0x72, 0x44, 0xb1, 0x1d, 0xd2, 0x03, 0x8d, 0x76, 0x7c, 0xf6, 0xe7, 0xdf, 0xfb,
0xde, 0xf7, 0x12, 0x34, 0xce, 0x01, 0x72, 0x46, 0x82, 0x94, 0x81, 0xca, 0x82, 0x8c, 0x26, 0x0c,
0xf2, 0x39, 0x83, 0x75, 0xb0, 0x0a, 0x83, 0x35, 0x99, 0x9d, 0x03, 0x7c, 0xf5, 0x8b, 0x12, 0x24,
0xe0, 0x81, 0x51, 0xfa, 0x5a, 0xe9, 0x37, 0x4a, 0x7f, 0x15, 0x0e, 0xee, 0x58, 0x4a, 0x52, 0xd0,
0x20, 0xe1, 0x1c, 0x64, 0x22, 0x29, 0x70, 0x61, 0x5e, 0x0e, 0xda, 0x7a, 0xa4, 0xc0, 0x25, 0xb9,
0x90, 0x56, 0x79, 0xdc, 0xa2, 0xa4, 0x5c, 0x12, 0x2e, 0xaf, 0x80, 0x14, 0x44, 0x08, 0x0a, 0xdc,
0x2a, 0x6b, 0x6b, 0xba, 0x9a, 0xa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x00,
}

View File

@ -1,93 +1,16 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/dialogflow/v2beta1/agent.proto
/*
Package dialogflow is a generated protocol buffer package.
It is generated from these files:
google/cloud/dialogflow/v2beta1/agent.proto
google/cloud/dialogflow/v2beta1/context.proto
google/cloud/dialogflow/v2beta1/entity_type.proto
google/cloud/dialogflow/v2beta1/intent.proto
google/cloud/dialogflow/v2beta1/session.proto
google/cloud/dialogflow/v2beta1/session_entity_type.proto
google/cloud/dialogflow/v2beta1/webhook.proto
It has these top-level messages:
Agent
GetAgentRequest
SearchAgentsRequest
SearchAgentsResponse
TrainAgentRequest
ExportAgentRequest
ExportAgentResponse
ImportAgentRequest
RestoreAgentRequest
Context
ListContextsRequest
ListContextsResponse
GetContextRequest
CreateContextRequest
UpdateContextRequest
DeleteContextRequest
DeleteAllContextsRequest
EntityType
ListEntityTypesRequest
ListEntityTypesResponse
GetEntityTypeRequest
CreateEntityTypeRequest
UpdateEntityTypeRequest
DeleteEntityTypeRequest
BatchUpdateEntityTypesRequest
BatchUpdateEntityTypesResponse
BatchDeleteEntityTypesRequest
BatchCreateEntitiesRequest
BatchUpdateEntitiesRequest
BatchDeleteEntitiesRequest
EntityTypeBatch
Intent
ListIntentsRequest
ListIntentsResponse
GetIntentRequest
CreateIntentRequest
UpdateIntentRequest
DeleteIntentRequest
BatchUpdateIntentsRequest
BatchUpdateIntentsResponse
BatchDeleteIntentsRequest
IntentBatch
DetectIntentRequest
DetectIntentResponse
QueryParameters
QueryInput
QueryResult
StreamingDetectIntentRequest
StreamingDetectIntentResponse
StreamingRecognitionResult
InputAudioConfig
TextInput
EventInput
SessionEntityType
ListSessionEntityTypesRequest
ListSessionEntityTypesResponse
GetSessionEntityTypeRequest
CreateSessionEntityTypeRequest
UpdateSessionEntityTypeRequest
DeleteSessionEntityTypeRequest
WebhookRequest
WebhookResponse
OriginalDetectIntentRequest
*/
package dialogflow
package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_longrunning "google.golang.org/genproto/googleapis/longrunning"
import _ "github.com/golang/protobuf/ptypes/empty"
import _ "google.golang.org/genproto/protobuf/field_mask"
import _ "github.com/golang/protobuf/ptypes/struct"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import longrunning "google.golang.org/genproto/googleapis/longrunning"
import _ "google.golang.org/genproto/protobuf/field_mask"
import (
context "golang.org/x/net/context"
@ -133,38 +56,40 @@ var Agent_MatchMode_value = map[string]int32{
func (x Agent_MatchMode) String() string {
return proto.EnumName(Agent_MatchMode_name, int32(x))
}
func (Agent_MatchMode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
func (Agent_MatchMode) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_agent_d116f64d830b765d, []int{0, 0}
}
// Represents a conversational agent.
type Agent struct {
// Required. The project of this agent.
// Format: `projects/<Project ID>`.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The name of this agent.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Required. The default language of the agent as a language tag. See
// [Language Support](https://dialogflow.com/docs/reference/language) for a
// list of the currently supported language codes.
// This field cannot be set by the `Update` method.
DefaultLanguageCode string `protobuf:"bytes,3,opt,name=default_language_code,json=defaultLanguageCode" json:"default_language_code,omitempty"`
DefaultLanguageCode string `protobuf:"bytes,3,opt,name=default_language_code,json=defaultLanguageCode,proto3" json:"default_language_code,omitempty"`
// Optional. The list of all languages supported by this agent (except for the
// `default_language_code`).
SupportedLanguageCodes []string `protobuf:"bytes,4,rep,name=supported_language_codes,json=supportedLanguageCodes" json:"supported_language_codes,omitempty"`
SupportedLanguageCodes []string `protobuf:"bytes,4,rep,name=supported_language_codes,json=supportedLanguageCodes,proto3" json:"supported_language_codes,omitempty"`
// Required. The time zone of this agent from the
// [time zone database](https://www.iana.org/time-zones), e.g.,
// America/New_York, Europe/Paris.
TimeZone string `protobuf:"bytes,5,opt,name=time_zone,json=timeZone" json:"time_zone,omitempty"`
TimeZone string `protobuf:"bytes,5,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
// Optional. The description of this agent.
// The maximum length is 500 characters. If exceeded, the request is rejected.
Description string `protobuf:"bytes,6,opt,name=description" json:"description,omitempty"`
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
// Optional. The URI of the agent's avatar.
// Avatars are used throughout API.AI console and in the self-hosted
// Avatars are used throughout the Dialogflow console and in the self-hosted
// [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
AvatarUri string `protobuf:"bytes,7,opt,name=avatar_uri,json=avatarUri" json:"avatar_uri,omitempty"`
AvatarUri string `protobuf:"bytes,7,opt,name=avatar_uri,json=avatarUri,proto3" json:"avatar_uri,omitempty"`
// Optional. Determines whether this agent should log conversation queries.
EnableLogging bool `protobuf:"varint,8,opt,name=enable_logging,json=enableLogging" json:"enable_logging,omitempty"`
EnableLogging bool `protobuf:"varint,8,opt,name=enable_logging,json=enableLogging,proto3" json:"enable_logging,omitempty"`
// Optional. Determines how intents are detected from user queries.
MatchMode Agent_MatchMode `protobuf:"varint,9,opt,name=match_mode,json=matchMode,enum=google.cloud.dialogflow.v2beta1.Agent_MatchMode" json:"match_mode,omitempty"`
MatchMode Agent_MatchMode `protobuf:"varint,9,opt,name=match_mode,json=matchMode,proto3,enum=google.cloud.dialogflow.v2beta1.Agent_MatchMode" json:"match_mode,omitempty"`
// Optional. To filter out false positive results and still get variety in
// matched natural language inputs for your agent, you can tune the machine
// learning classification threshold. If the returned score value is less than
@ -172,13 +97,35 @@ type Agent struct {
// are no fallback intents defined, no intent will be triggered. The score
// values range from 0.0 (completely uncertain) to 1.0 (completely certain).
// If set to 0.0, the default of 0.3 is used.
ClassificationThreshold float32 `protobuf:"fixed32,10,opt,name=classification_threshold,json=classificationThreshold" json:"classification_threshold,omitempty"`
ClassificationThreshold float32 `protobuf:"fixed32,10,opt,name=classification_threshold,json=classificationThreshold,proto3" json:"classification_threshold,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Agent) Reset() { *m = Agent{} }
func (m *Agent) String() string { return proto.CompactTextString(m) }
func (*Agent) ProtoMessage() {}
func (*Agent) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *Agent) Reset() { *m = Agent{} }
func (m *Agent) String() string { return proto.CompactTextString(m) }
func (*Agent) ProtoMessage() {}
func (*Agent) Descriptor() ([]byte, []int) {
return fileDescriptor_agent_d116f64d830b765d, []int{0}
}
func (m *Agent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Agent.Unmarshal(m, b)
}
func (m *Agent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Agent.Marshal(b, m, deterministic)
}
func (dst *Agent) XXX_Merge(src proto.Message) {
xxx_messageInfo_Agent.Merge(dst, src)
}
func (m *Agent) XXX_Size() int {
return xxx_messageInfo_Agent.Size(m)
}
func (m *Agent) XXX_DiscardUnknown() {
xxx_messageInfo_Agent.DiscardUnknown(m)
}
var xxx_messageInfo_Agent proto.InternalMessageInfo
func (m *Agent) GetParent() string {
if m != nil {
@ -254,13 +201,35 @@ func (m *Agent) GetClassificationThreshold() float32 {
type GetAgentRequest struct {
// Required. The project that the agent to fetch is associated with.
// Format: `projects/<Project ID>`.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetAgentRequest) Reset() { *m = GetAgentRequest{} }
func (m *GetAgentRequest) String() string { return proto.CompactTextString(m) }
func (*GetAgentRequest) ProtoMessage() {}
func (*GetAgentRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *GetAgentRequest) Reset() { *m = GetAgentRequest{} }
func (m *GetAgentRequest) String() string { return proto.CompactTextString(m) }
func (*GetAgentRequest) ProtoMessage() {}
func (*GetAgentRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_agent_d116f64d830b765d, []int{1}
}
func (m *GetAgentRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetAgentRequest.Unmarshal(m, b)
}
func (m *GetAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetAgentRequest.Marshal(b, m, deterministic)
}
func (dst *GetAgentRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetAgentRequest.Merge(dst, src)
}
func (m *GetAgentRequest) XXX_Size() int {
return xxx_messageInfo_GetAgentRequest.Size(m)
}
func (m *GetAgentRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetAgentRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetAgentRequest proto.InternalMessageInfo
func (m *GetAgentRequest) GetParent() string {
if m != nil {
@ -273,18 +242,40 @@ func (m *GetAgentRequest) GetParent() string {
type SearchAgentsRequest struct {
// Required. The project to list agents from.
// Format: `projects/<Project ID or '-'>`.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of items to return in a single page. By
// default 100 and at most 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The next_page_token value returned from a previous list request.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SearchAgentsRequest) Reset() { *m = SearchAgentsRequest{} }
func (m *SearchAgentsRequest) String() string { return proto.CompactTextString(m) }
func (*SearchAgentsRequest) ProtoMessage() {}
func (*SearchAgentsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *SearchAgentsRequest) Reset() { *m = SearchAgentsRequest{} }
func (m *SearchAgentsRequest) String() string { return proto.CompactTextString(m) }
func (*SearchAgentsRequest) ProtoMessage() {}
func (*SearchAgentsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_agent_d116f64d830b765d, []int{2}
}
func (m *SearchAgentsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SearchAgentsRequest.Unmarshal(m, b)
}
func (m *SearchAgentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SearchAgentsRequest.Marshal(b, m, deterministic)
}
func (dst *SearchAgentsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SearchAgentsRequest.Merge(dst, src)
}
func (m *SearchAgentsRequest) XXX_Size() int {
return xxx_messageInfo_SearchAgentsRequest.Size(m)
}
func (m *SearchAgentsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SearchAgentsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SearchAgentsRequest proto.InternalMessageInfo
func (m *SearchAgentsRequest) GetParent() string {
if m != nil {
@ -311,16 +302,38 @@ func (m *SearchAgentsRequest) GetPageToken() string {
type SearchAgentsResponse struct {
// The list of agents. There will be a maximum number of items returned based
// on the page_size field in the request.
Agents []*Agent `protobuf:"bytes,1,rep,name=agents" json:"agents,omitempty"`
Agents []*Agent `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SearchAgentsResponse) Reset() { *m = SearchAgentsResponse{} }
func (m *SearchAgentsResponse) String() string { return proto.CompactTextString(m) }
func (*SearchAgentsResponse) ProtoMessage() {}
func (*SearchAgentsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *SearchAgentsResponse) Reset() { *m = SearchAgentsResponse{} }
func (m *SearchAgentsResponse) String() string { return proto.CompactTextString(m) }
func (*SearchAgentsResponse) ProtoMessage() {}
func (*SearchAgentsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_agent_d116f64d830b765d, []int{3}
}
func (m *SearchAgentsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SearchAgentsResponse.Unmarshal(m, b)
}
func (m *SearchAgentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SearchAgentsResponse.Marshal(b, m, deterministic)
}
func (dst *SearchAgentsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SearchAgentsResponse.Merge(dst, src)
}
func (m *SearchAgentsResponse) XXX_Size() int {
return xxx_messageInfo_SearchAgentsResponse.Size(m)
}
func (m *SearchAgentsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SearchAgentsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SearchAgentsResponse proto.InternalMessageInfo
func (m *SearchAgentsResponse) GetAgents() []*Agent {
if m != nil {
@ -340,13 +353,35 @@ func (m *SearchAgentsResponse) GetNextPageToken() string {
type TrainAgentRequest struct {
// Required. The project that the agent to train is associated with.
// Format: `projects/<Project ID>`.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TrainAgentRequest) Reset() { *m = TrainAgentRequest{} }
func (m *TrainAgentRequest) String() string { return proto.CompactTextString(m) }
func (*TrainAgentRequest) ProtoMessage() {}
func (*TrainAgentRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *TrainAgentRequest) Reset() { *m = TrainAgentRequest{} }
func (m *TrainAgentRequest) String() string { return proto.CompactTextString(m) }
func (*TrainAgentRequest) ProtoMessage() {}
func (*TrainAgentRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_agent_d116f64d830b765d, []int{4}
}
func (m *TrainAgentRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TrainAgentRequest.Unmarshal(m, b)
}
func (m *TrainAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TrainAgentRequest.Marshal(b, m, deterministic)
}
func (dst *TrainAgentRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_TrainAgentRequest.Merge(dst, src)
}
func (m *TrainAgentRequest) XXX_Size() int {
return xxx_messageInfo_TrainAgentRequest.Size(m)
}
func (m *TrainAgentRequest) XXX_DiscardUnknown() {
xxx_messageInfo_TrainAgentRequest.DiscardUnknown(m)
}
var xxx_messageInfo_TrainAgentRequest proto.InternalMessageInfo
func (m *TrainAgentRequest) GetParent() string {
if m != nil {
@ -359,17 +394,41 @@ func (m *TrainAgentRequest) GetParent() string {
type ExportAgentRequest struct {
// Required. The project that the agent to export is associated with.
// Format: `projects/<Project ID>`.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
// Optional. The Google Cloud Storage URI to export the agent to.
// Note: The URI must start with
// "gs://". If left unspecified, the serialized agent is returned inline.
AgentUri string `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri" json:"agent_uri,omitempty"`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The
// [Google Cloud Storage](https://cloud.google.com/storage/docs/)
// URI to export the agent to.
// The format of this URI must be `gs://<bucket-name>/<object-name>`.
// If left unspecified, the serialized agent is returned inline.
AgentUri string `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri,proto3" json:"agent_uri,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExportAgentRequest) Reset() { *m = ExportAgentRequest{} }
func (m *ExportAgentRequest) String() string { return proto.CompactTextString(m) }
func (*ExportAgentRequest) ProtoMessage() {}
func (*ExportAgentRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *ExportAgentRequest) Reset() { *m = ExportAgentRequest{} }
func (m *ExportAgentRequest) String() string { return proto.CompactTextString(m) }
func (*ExportAgentRequest) ProtoMessage() {}
func (*ExportAgentRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_agent_d116f64d830b765d, []int{5}
}
func (m *ExportAgentRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExportAgentRequest.Unmarshal(m, b)
}
func (m *ExportAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExportAgentRequest.Marshal(b, m, deterministic)
}
func (dst *ExportAgentRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExportAgentRequest.Merge(dst, src)
}
func (m *ExportAgentRequest) XXX_Size() int {
return xxx_messageInfo_ExportAgentRequest.Size(m)
}
func (m *ExportAgentRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ExportAgentRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ExportAgentRequest proto.InternalMessageInfo
func (m *ExportAgentRequest) GetParent() string {
if m != nil {
@ -392,26 +451,50 @@ type ExportAgentResponse struct {
// Types that are valid to be assigned to Agent:
// *ExportAgentResponse_AgentUri
// *ExportAgentResponse_AgentContent
Agent isExportAgentResponse_Agent `protobuf_oneof:"agent"`
Agent isExportAgentResponse_Agent `protobuf_oneof:"agent"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExportAgentResponse) Reset() { *m = ExportAgentResponse{} }
func (m *ExportAgentResponse) String() string { return proto.CompactTextString(m) }
func (*ExportAgentResponse) ProtoMessage() {}
func (*ExportAgentResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *ExportAgentResponse) Reset() { *m = ExportAgentResponse{} }
func (m *ExportAgentResponse) String() string { return proto.CompactTextString(m) }
func (*ExportAgentResponse) ProtoMessage() {}
func (*ExportAgentResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_agent_d116f64d830b765d, []int{6}
}
func (m *ExportAgentResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExportAgentResponse.Unmarshal(m, b)
}
func (m *ExportAgentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExportAgentResponse.Marshal(b, m, deterministic)
}
func (dst *ExportAgentResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExportAgentResponse.Merge(dst, src)
}
func (m *ExportAgentResponse) XXX_Size() int {
return xxx_messageInfo_ExportAgentResponse.Size(m)
}
func (m *ExportAgentResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ExportAgentResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ExportAgentResponse proto.InternalMessageInfo
type isExportAgentResponse_Agent interface {
isExportAgentResponse_Agent()
}
type ExportAgentResponse_AgentUri struct {
AgentUri string `protobuf:"bytes,1,opt,name=agent_uri,json=agentUri,oneof"`
AgentUri string `protobuf:"bytes,1,opt,name=agent_uri,json=agentUri,proto3,oneof"`
}
type ExportAgentResponse_AgentContent struct {
AgentContent []byte `protobuf:"bytes,2,opt,name=agent_content,json=agentContent,proto3,oneof"`
}
func (*ExportAgentResponse_AgentUri) isExportAgentResponse_Agent() {}
func (*ExportAgentResponse_AgentUri) isExportAgentResponse_Agent() {}
func (*ExportAgentResponse_AgentContent) isExportAgentResponse_Agent() {}
func (m *ExportAgentResponse) GetAgent() isExportAgentResponse_Agent {
@ -487,11 +570,11 @@ func _ExportAgentResponse_OneofSizer(msg proto.Message) (n int) {
// agent
switch x := m.Agent.(type) {
case *ExportAgentResponse_AgentUri:
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.AgentUri)))
n += len(x.AgentUri)
case *ExportAgentResponse_AgentContent:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.AgentContent)))
n += len(x.AgentContent)
case nil:
@ -505,32 +588,63 @@ func _ExportAgentResponse_OneofSizer(msg proto.Message) (n int) {
type ImportAgentRequest struct {
// Required. The project that the agent to import is associated with.
// Format: `projects/<Project ID>`.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The agent to import.
//
// Types that are valid to be assigned to Agent:
// *ImportAgentRequest_AgentUri
// *ImportAgentRequest_AgentContent
Agent isImportAgentRequest_Agent `protobuf_oneof:"agent"`
Agent isImportAgentRequest_Agent `protobuf_oneof:"agent"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImportAgentRequest) Reset() { *m = ImportAgentRequest{} }
func (m *ImportAgentRequest) String() string { return proto.CompactTextString(m) }
func (*ImportAgentRequest) ProtoMessage() {}
func (*ImportAgentRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *ImportAgentRequest) Reset() { *m = ImportAgentRequest{} }
func (m *ImportAgentRequest) String() string { return proto.CompactTextString(m) }
func (*ImportAgentRequest) ProtoMessage() {}
func (*ImportAgentRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_agent_d116f64d830b765d, []int{7}
}
func (m *ImportAgentRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImportAgentRequest.Unmarshal(m, b)
}
func (m *ImportAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImportAgentRequest.Marshal(b, m, deterministic)
}
func (dst *ImportAgentRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImportAgentRequest.Merge(dst, src)
}
func (m *ImportAgentRequest) XXX_Size() int {
return xxx_messageInfo_ImportAgentRequest.Size(m)
}
func (m *ImportAgentRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ImportAgentRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ImportAgentRequest proto.InternalMessageInfo
func (m *ImportAgentRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
type isImportAgentRequest_Agent interface {
isImportAgentRequest_Agent()
}
type ImportAgentRequest_AgentUri struct {
AgentUri string `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri,oneof"`
AgentUri string `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri,proto3,oneof"`
}
type ImportAgentRequest_AgentContent struct {
AgentContent []byte `protobuf:"bytes,3,opt,name=agent_content,json=agentContent,proto3,oneof"`
}
func (*ImportAgentRequest_AgentUri) isImportAgentRequest_Agent() {}
func (*ImportAgentRequest_AgentUri) isImportAgentRequest_Agent() {}
func (*ImportAgentRequest_AgentContent) isImportAgentRequest_Agent() {}
func (m *ImportAgentRequest) GetAgent() isImportAgentRequest_Agent {
@ -540,13 +654,6 @@ func (m *ImportAgentRequest) GetAgent() isImportAgentRequest_Agent {
return nil
}
func (m *ImportAgentRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *ImportAgentRequest) GetAgentUri() string {
if x, ok := m.GetAgent().(*ImportAgentRequest_AgentUri); ok {
return x.AgentUri
@ -613,11 +720,11 @@ func _ImportAgentRequest_OneofSizer(msg proto.Message) (n int) {
// agent
switch x := m.Agent.(type) {
case *ImportAgentRequest_AgentUri:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.AgentUri)))
n += len(x.AgentUri)
case *ImportAgentRequest_AgentContent:
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.AgentContent)))
n += len(x.AgentContent)
case nil:
@ -631,32 +738,63 @@ func _ImportAgentRequest_OneofSizer(msg proto.Message) (n int) {
type RestoreAgentRequest struct {
// Required. The project that the agent to restore is associated with.
// Format: `projects/<Project ID>`.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The agent to restore.
//
// Types that are valid to be assigned to Agent:
// *RestoreAgentRequest_AgentUri
// *RestoreAgentRequest_AgentContent
Agent isRestoreAgentRequest_Agent `protobuf_oneof:"agent"`
Agent isRestoreAgentRequest_Agent `protobuf_oneof:"agent"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RestoreAgentRequest) Reset() { *m = RestoreAgentRequest{} }
func (m *RestoreAgentRequest) String() string { return proto.CompactTextString(m) }
func (*RestoreAgentRequest) ProtoMessage() {}
func (*RestoreAgentRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
func (m *RestoreAgentRequest) Reset() { *m = RestoreAgentRequest{} }
func (m *RestoreAgentRequest) String() string { return proto.CompactTextString(m) }
func (*RestoreAgentRequest) ProtoMessage() {}
func (*RestoreAgentRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_agent_d116f64d830b765d, []int{8}
}
func (m *RestoreAgentRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RestoreAgentRequest.Unmarshal(m, b)
}
func (m *RestoreAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RestoreAgentRequest.Marshal(b, m, deterministic)
}
func (dst *RestoreAgentRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RestoreAgentRequest.Merge(dst, src)
}
func (m *RestoreAgentRequest) XXX_Size() int {
return xxx_messageInfo_RestoreAgentRequest.Size(m)
}
func (m *RestoreAgentRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RestoreAgentRequest.DiscardUnknown(m)
}
var xxx_messageInfo_RestoreAgentRequest proto.InternalMessageInfo
func (m *RestoreAgentRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
type isRestoreAgentRequest_Agent interface {
isRestoreAgentRequest_Agent()
}
type RestoreAgentRequest_AgentUri struct {
AgentUri string `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri,oneof"`
AgentUri string `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri,proto3,oneof"`
}
type RestoreAgentRequest_AgentContent struct {
AgentContent []byte `protobuf:"bytes,3,opt,name=agent_content,json=agentContent,proto3,oneof"`
}
func (*RestoreAgentRequest_AgentUri) isRestoreAgentRequest_Agent() {}
func (*RestoreAgentRequest_AgentUri) isRestoreAgentRequest_Agent() {}
func (*RestoreAgentRequest_AgentContent) isRestoreAgentRequest_Agent() {}
func (m *RestoreAgentRequest) GetAgent() isRestoreAgentRequest_Agent {
@ -666,13 +804,6 @@ func (m *RestoreAgentRequest) GetAgent() isRestoreAgentRequest_Agent {
return nil
}
func (m *RestoreAgentRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *RestoreAgentRequest) GetAgentUri() string {
if x, ok := m.GetAgent().(*RestoreAgentRequest_AgentUri); ok {
return x.AgentUri
@ -739,11 +870,11 @@ func _RestoreAgentRequest_OneofSizer(msg proto.Message) (n int) {
// agent
switch x := m.Agent.(type) {
case *RestoreAgentRequest_AgentUri:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.AgentUri)))
n += len(x.AgentUri)
case *RestoreAgentRequest_AgentContent:
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.AgentContent)))
n += len(x.AgentContent)
case nil:
@ -774,8 +905,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for Agents service
// AgentsClient is the client API for Agents service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type AgentsClient interface {
// Retrieves the specified agent.
GetAgent(ctx context.Context, in *GetAgentRequest, opts ...grpc.CallOption) (*Agent, error)
@ -792,13 +924,13 @@ type AgentsClient interface {
//
// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
// metadata: [google.protobuf.Struct][google.protobuf.Struct]>
TrainAgent(ctx context.Context, in *TrainAgentRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
TrainAgent(ctx context.Context, in *TrainAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Exports the specified agent to a ZIP file.
//
//
// Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse],
// metadata: [google.protobuf.Struct][google.protobuf.Struct]>
ExportAgent(ctx context.Context, in *ExportAgentRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
ExportAgent(ctx context.Context, in *ExportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Imports the specified agent from a ZIP file.
//
// Uploads new intents and entity types without deleting the existing ones.
@ -808,7 +940,7 @@ type AgentsClient interface {
//
// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
// metadata: [google.protobuf.Struct][google.protobuf.Struct]>
ImportAgent(ctx context.Context, in *ImportAgentRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
ImportAgent(ctx context.Context, in *ImportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Restores the specified agent from a ZIP file.
//
// Replaces the current agent version with a new one. All the intents and
@ -817,7 +949,7 @@ type AgentsClient interface {
//
// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
// metadata: [google.protobuf.Struct][google.protobuf.Struct]>
RestoreAgent(ctx context.Context, in *RestoreAgentRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
RestoreAgent(ctx context.Context, in *RestoreAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
}
type agentsClient struct {
@ -830,7 +962,7 @@ func NewAgentsClient(cc *grpc.ClientConn) AgentsClient {
func (c *agentsClient) GetAgent(ctx context.Context, in *GetAgentRequest, opts ...grpc.CallOption) (*Agent, error) {
out := new(Agent)
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/GetAgent", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/GetAgent", in, out, opts...)
if err != nil {
return nil, err
}
@ -839,51 +971,50 @@ func (c *agentsClient) GetAgent(ctx context.Context, in *GetAgentRequest, opts .
func (c *agentsClient) SearchAgents(ctx context.Context, in *SearchAgentsRequest, opts ...grpc.CallOption) (*SearchAgentsResponse, error) {
out := new(SearchAgentsResponse)
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/SearchAgents", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/SearchAgents", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *agentsClient) TrainAgent(ctx context.Context, in *TrainAgentRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/TrainAgent", in, out, c.cc, opts...)
func (c *agentsClient) TrainAgent(ctx context.Context, in *TrainAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
out := new(longrunning.Operation)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/TrainAgent", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *agentsClient) ExportAgent(ctx context.Context, in *ExportAgentRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/ExportAgent", in, out, c.cc, opts...)
func (c *agentsClient) ExportAgent(ctx context.Context, in *ExportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
out := new(longrunning.Operation)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/ExportAgent", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *agentsClient) ImportAgent(ctx context.Context, in *ImportAgentRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/ImportAgent", in, out, c.cc, opts...)
func (c *agentsClient) ImportAgent(ctx context.Context, in *ImportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
out := new(longrunning.Operation)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/ImportAgent", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *agentsClient) RestoreAgent(ctx context.Context, in *RestoreAgentRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/RestoreAgent", in, out, c.cc, opts...)
func (c *agentsClient) RestoreAgent(ctx context.Context, in *RestoreAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
out := new(longrunning.Operation)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/RestoreAgent", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Agents service
// AgentsServer is the server API for Agents service.
type AgentsServer interface {
// Retrieves the specified agent.
GetAgent(context.Context, *GetAgentRequest) (*Agent, error)
@ -900,13 +1031,13 @@ type AgentsServer interface {
//
// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
// metadata: [google.protobuf.Struct][google.protobuf.Struct]>
TrainAgent(context.Context, *TrainAgentRequest) (*google_longrunning.Operation, error)
TrainAgent(context.Context, *TrainAgentRequest) (*longrunning.Operation, error)
// Exports the specified agent to a ZIP file.
//
//
// Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse],
// metadata: [google.protobuf.Struct][google.protobuf.Struct]>
ExportAgent(context.Context, *ExportAgentRequest) (*google_longrunning.Operation, error)
ExportAgent(context.Context, *ExportAgentRequest) (*longrunning.Operation, error)
// Imports the specified agent from a ZIP file.
//
// Uploads new intents and entity types without deleting the existing ones.
@ -916,7 +1047,7 @@ type AgentsServer interface {
//
// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
// metadata: [google.protobuf.Struct][google.protobuf.Struct]>
ImportAgent(context.Context, *ImportAgentRequest) (*google_longrunning.Operation, error)
ImportAgent(context.Context, *ImportAgentRequest) (*longrunning.Operation, error)
// Restores the specified agent from a ZIP file.
//
// Replaces the current agent version with a new one. All the intents and
@ -925,7 +1056,7 @@ type AgentsServer interface {
//
// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
// metadata: [google.protobuf.Struct][google.protobuf.Struct]>
RestoreAgent(context.Context, *RestoreAgentRequest) (*google_longrunning.Operation, error)
RestoreAgent(context.Context, *RestoreAgentRequest) (*longrunning.Operation, error)
}
func RegisterAgentsServer(s *grpc.Server, srv AgentsServer) {
@ -1073,9 +1204,11 @@ var _Agents_serviceDesc = grpc.ServiceDesc{
Metadata: "google/cloud/dialogflow/v2beta1/agent.proto",
}
func init() { proto.RegisterFile("google/cloud/dialogflow/v2beta1/agent.proto", fileDescriptor0) }
func init() {
proto.RegisterFile("google/cloud/dialogflow/v2beta1/agent.proto", fileDescriptor_agent_d116f64d830b765d)
}
var fileDescriptor0 = []byte{
var fileDescriptor_agent_d116f64d830b765d = []byte{
// 975 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0x41, 0x6f, 0xdc, 0x44,
0x14, 0xae, 0x37, 0x4d, 0xb2, 0xfb, 0x92, 0xb4, 0xe9, 0x84, 0x06, 0x6b, 0xdb, 0xa8, 0x8b, 0x4b,

View File

@ -0,0 +1,357 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/dialogflow/v2beta1/audio_config.proto
package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Gender of the voice as described in
// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
type SsmlVoiceGender int32
const (
// An unspecified gender, which means that the client doesn't care which
// gender the selected voice will have.
SsmlVoiceGender_SSML_VOICE_GENDER_UNSPECIFIED SsmlVoiceGender = 0
// A male voice.
SsmlVoiceGender_SSML_VOICE_GENDER_MALE SsmlVoiceGender = 1
// A female voice.
SsmlVoiceGender_SSML_VOICE_GENDER_FEMALE SsmlVoiceGender = 2
// A gender-neutral voice.
SsmlVoiceGender_SSML_VOICE_GENDER_NEUTRAL SsmlVoiceGender = 3
)
var SsmlVoiceGender_name = map[int32]string{
0: "SSML_VOICE_GENDER_UNSPECIFIED",
1: "SSML_VOICE_GENDER_MALE",
2: "SSML_VOICE_GENDER_FEMALE",
3: "SSML_VOICE_GENDER_NEUTRAL",
}
var SsmlVoiceGender_value = map[string]int32{
"SSML_VOICE_GENDER_UNSPECIFIED": 0,
"SSML_VOICE_GENDER_MALE": 1,
"SSML_VOICE_GENDER_FEMALE": 2,
"SSML_VOICE_GENDER_NEUTRAL": 3,
}
func (x SsmlVoiceGender) String() string {
return proto.EnumName(SsmlVoiceGender_name, int32(x))
}
func (SsmlVoiceGender) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_audio_config_b255710fcad33f7d, []int{0}
}
// Audio encoding of the output audio format in Text-To-Speech.
type OutputAudioEncoding int32
const (
// Not specified.
OutputAudioEncoding_OUTPUT_AUDIO_ENCODING_UNSPECIFIED OutputAudioEncoding = 0
// Uncompressed 16-bit signed little-endian samples (Linear PCM).
// Audio content returned as LINEAR16 also contains a WAV header.
OutputAudioEncoding_OUTPUT_AUDIO_ENCODING_LINEAR_16 OutputAudioEncoding = 1
// MP3 audio.
OutputAudioEncoding_OUTPUT_AUDIO_ENCODING_MP3 OutputAudioEncoding = 2
// Opus encoded audio wrapped in an ogg container. The result will be a
// file which can be played natively on Android, and in browsers (at least
// Chrome and Firefox). The quality of the encoding is considerably higher
// than MP3 while using approximately the same bitrate.
OutputAudioEncoding_OUTPUT_AUDIO_ENCODING_OGG_OPUS OutputAudioEncoding = 3
)
var OutputAudioEncoding_name = map[int32]string{
0: "OUTPUT_AUDIO_ENCODING_UNSPECIFIED",
1: "OUTPUT_AUDIO_ENCODING_LINEAR_16",
2: "OUTPUT_AUDIO_ENCODING_MP3",
3: "OUTPUT_AUDIO_ENCODING_OGG_OPUS",
}
var OutputAudioEncoding_value = map[string]int32{
"OUTPUT_AUDIO_ENCODING_UNSPECIFIED": 0,
"OUTPUT_AUDIO_ENCODING_LINEAR_16": 1,
"OUTPUT_AUDIO_ENCODING_MP3": 2,
"OUTPUT_AUDIO_ENCODING_OGG_OPUS": 3,
}
func (x OutputAudioEncoding) String() string {
return proto.EnumName(OutputAudioEncoding_name, int32(x))
}
func (OutputAudioEncoding) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_audio_config_b255710fcad33f7d, []int{1}
}
// Description of which voice to use for speech synthesis.
type VoiceSelectionParams struct {
// Optional. The name of the voice. If not set, the service will choose a
// voice based on the other parameters such as language_code and gender.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The preferred gender of the voice. If not set, the service will
// choose a voice based on the other parameters such as language_code and
// name. Note that this is only a preference, not requirement. If a
// voice of the appropriate gender is not available, the synthesizer should
// substitute a voice with a different gender rather than failing the request.
SsmlGender SsmlVoiceGender `protobuf:"varint,2,opt,name=ssml_gender,json=ssmlGender,proto3,enum=google.cloud.dialogflow.v2beta1.SsmlVoiceGender" json:"ssml_gender,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VoiceSelectionParams) Reset() { *m = VoiceSelectionParams{} }
func (m *VoiceSelectionParams) String() string { return proto.CompactTextString(m) }
func (*VoiceSelectionParams) ProtoMessage() {}
func (*VoiceSelectionParams) Descriptor() ([]byte, []int) {
return fileDescriptor_audio_config_b255710fcad33f7d, []int{0}
}
func (m *VoiceSelectionParams) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VoiceSelectionParams.Unmarshal(m, b)
}
func (m *VoiceSelectionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VoiceSelectionParams.Marshal(b, m, deterministic)
}
func (dst *VoiceSelectionParams) XXX_Merge(src proto.Message) {
xxx_messageInfo_VoiceSelectionParams.Merge(dst, src)
}
func (m *VoiceSelectionParams) XXX_Size() int {
return xxx_messageInfo_VoiceSelectionParams.Size(m)
}
func (m *VoiceSelectionParams) XXX_DiscardUnknown() {
xxx_messageInfo_VoiceSelectionParams.DiscardUnknown(m)
}
var xxx_messageInfo_VoiceSelectionParams proto.InternalMessageInfo
func (m *VoiceSelectionParams) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *VoiceSelectionParams) GetSsmlGender() SsmlVoiceGender {
if m != nil {
return m.SsmlGender
}
return SsmlVoiceGender_SSML_VOICE_GENDER_UNSPECIFIED
}
// Configuration of how speech should be synthesized.
type SynthesizeSpeechConfig struct {
// Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
// native speed supported by the specific voice. 2.0 is twice as fast, and
// 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
// other values < 0.25 or > 4.0 will return an error.
SpeakingRate float64 `protobuf:"fixed64,1,opt,name=speaking_rate,json=speakingRate,proto3" json:"speaking_rate,omitempty"`
// Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20
// semitones from the original pitch. -20 means decrease 20 semitones from the
// original pitch.
Pitch float64 `protobuf:"fixed64,2,opt,name=pitch,proto3" json:"pitch,omitempty"`
// Optional. Volume gain (in dB) of the normal native volume supported by the
// specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
// 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
// will play at approximately half the amplitude of the normal native signal
// amplitude. A value of +6.0 (dB) will play at approximately twice the
// amplitude of the normal native signal amplitude. We strongly recommend not
// to exceed +10 (dB) as there's usually no effective increase in loudness for
// any value greater than that.
VolumeGainDb float64 `protobuf:"fixed64,3,opt,name=volume_gain_db,json=volumeGainDb,proto3" json:"volume_gain_db,omitempty"`
// Optional. An identifier which selects 'audio effects' profiles that are
// applied on (post synthesized) text to speech. Effects are applied on top of
// each other in the order they are given.
EffectsProfileId []string `protobuf:"bytes,5,rep,name=effects_profile_id,json=effectsProfileId,proto3" json:"effects_profile_id,omitempty"`
// Optional. The desired voice of the synthesized audio.
Voice *VoiceSelectionParams `protobuf:"bytes,4,opt,name=voice,proto3" json:"voice,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SynthesizeSpeechConfig) Reset() { *m = SynthesizeSpeechConfig{} }
func (m *SynthesizeSpeechConfig) String() string { return proto.CompactTextString(m) }
func (*SynthesizeSpeechConfig) ProtoMessage() {}
func (*SynthesizeSpeechConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_audio_config_b255710fcad33f7d, []int{1}
}
func (m *SynthesizeSpeechConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SynthesizeSpeechConfig.Unmarshal(m, b)
}
func (m *SynthesizeSpeechConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SynthesizeSpeechConfig.Marshal(b, m, deterministic)
}
func (dst *SynthesizeSpeechConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_SynthesizeSpeechConfig.Merge(dst, src)
}
func (m *SynthesizeSpeechConfig) XXX_Size() int {
return xxx_messageInfo_SynthesizeSpeechConfig.Size(m)
}
func (m *SynthesizeSpeechConfig) XXX_DiscardUnknown() {
xxx_messageInfo_SynthesizeSpeechConfig.DiscardUnknown(m)
}
var xxx_messageInfo_SynthesizeSpeechConfig proto.InternalMessageInfo
func (m *SynthesizeSpeechConfig) GetSpeakingRate() float64 {
if m != nil {
return m.SpeakingRate
}
return 0
}
func (m *SynthesizeSpeechConfig) GetPitch() float64 {
if m != nil {
return m.Pitch
}
return 0
}
func (m *SynthesizeSpeechConfig) GetVolumeGainDb() float64 {
if m != nil {
return m.VolumeGainDb
}
return 0
}
func (m *SynthesizeSpeechConfig) GetEffectsProfileId() []string {
if m != nil {
return m.EffectsProfileId
}
return nil
}
func (m *SynthesizeSpeechConfig) GetVoice() *VoiceSelectionParams {
if m != nil {
return m.Voice
}
return nil
}
// Instructs the speech synthesizer how to generate the output audio content.
type OutputAudioConfig struct {
// Required. Audio encoding of the synthesized audio content.
AudioEncoding OutputAudioEncoding `protobuf:"varint,1,opt,name=audio_encoding,json=audioEncoding,proto3,enum=google.cloud.dialogflow.v2beta1.OutputAudioEncoding" json:"audio_encoding,omitempty"`
// Optional. The synthesis sample rate (in hertz) for this audio. If not
// provided, then the synthesizer will use the default sample rate based on
// the audio encoding. If this is different from the voice's natural sample
// rate, then the synthesizer will honor this request by converting to the
// desired sample rate (which might result in worse audio quality).
SampleRateHertz int32 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"`
// Optional. Configuration of how speech should be synthesized.
SynthesizeSpeechConfig *SynthesizeSpeechConfig `protobuf:"bytes,3,opt,name=synthesize_speech_config,json=synthesizeSpeechConfig,proto3" json:"synthesize_speech_config,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OutputAudioConfig) Reset() { *m = OutputAudioConfig{} }
func (m *OutputAudioConfig) String() string { return proto.CompactTextString(m) }
func (*OutputAudioConfig) ProtoMessage() {}
func (*OutputAudioConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_audio_config_b255710fcad33f7d, []int{2}
}
func (m *OutputAudioConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OutputAudioConfig.Unmarshal(m, b)
}
func (m *OutputAudioConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OutputAudioConfig.Marshal(b, m, deterministic)
}
func (dst *OutputAudioConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_OutputAudioConfig.Merge(dst, src)
}
func (m *OutputAudioConfig) XXX_Size() int {
return xxx_messageInfo_OutputAudioConfig.Size(m)
}
func (m *OutputAudioConfig) XXX_DiscardUnknown() {
xxx_messageInfo_OutputAudioConfig.DiscardUnknown(m)
}
var xxx_messageInfo_OutputAudioConfig proto.InternalMessageInfo
func (m *OutputAudioConfig) GetAudioEncoding() OutputAudioEncoding {
if m != nil {
return m.AudioEncoding
}
return OutputAudioEncoding_OUTPUT_AUDIO_ENCODING_UNSPECIFIED
}
func (m *OutputAudioConfig) GetSampleRateHertz() int32 {
if m != nil {
return m.SampleRateHertz
}
return 0
}
func (m *OutputAudioConfig) GetSynthesizeSpeechConfig() *SynthesizeSpeechConfig {
if m != nil {
return m.SynthesizeSpeechConfig
}
return nil
}
func init() {
proto.RegisterType((*VoiceSelectionParams)(nil), "google.cloud.dialogflow.v2beta1.VoiceSelectionParams")
proto.RegisterType((*SynthesizeSpeechConfig)(nil), "google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig")
proto.RegisterType((*OutputAudioConfig)(nil), "google.cloud.dialogflow.v2beta1.OutputAudioConfig")
proto.RegisterEnum("google.cloud.dialogflow.v2beta1.SsmlVoiceGender", SsmlVoiceGender_name, SsmlVoiceGender_value)
proto.RegisterEnum("google.cloud.dialogflow.v2beta1.OutputAudioEncoding", OutputAudioEncoding_name, OutputAudioEncoding_value)
}
func init() {
proto.RegisterFile("google/cloud/dialogflow/v2beta1/audio_config.proto", fileDescriptor_audio_config_b255710fcad33f7d)
}
var fileDescriptor_audio_config_b255710fcad33f7d = []byte{
// 647 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0x4f, 0x6f, 0xd3, 0x3e,
0x18, 0xfe, 0xb9, 0x5d, 0x7f, 0xd2, 0x3c, 0xd6, 0x65, 0x66, 0x9a, 0xca, 0xb4, 0xb1, 0xae, 0x03,
0xa9, 0x9a, 0x50, 0xcb, 0x3a, 0xfe, 0x1c, 0x38, 0x75, 0x6d, 0x56, 0x22, 0xba, 0x26, 0x24, 0xeb,
0x0e, 0x70, 0xb0, 0xdc, 0xc4, 0x4d, 0x2d, 0x12, 0x3b, 0x24, 0xe9, 0x10, 0x93, 0xf8, 0x08, 0x88,
0xef, 0x80, 0x38, 0x71, 0xe0, 0xd3, 0x71, 0xe0, 0x88, 0x62, 0x07, 0x36, 0x6d, 0x41, 0xbd, 0xc5,
0xef, 0xe3, 0xe7, 0xf5, 0xf3, 0x3e, 0x8f, 0x63, 0xd8, 0xf1, 0x85, 0xf0, 0x03, 0xda, 0x76, 0x03,
0x31, 0xf7, 0xda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xf3, 0xf6, 0x96, 0xd3, 0xee, 0x50, 0xd7, 0x00, 0xda, 0x86, 0xb5, 0xdb,
0xd8, 0x89, 0x2e, 0xd1, 0x12, 0xda, 0x81, 0xf7, 0x6e, 0xa3, 0x23, 0x7d, 0x7c, 0x66, 0x77, 0x87,
0x5a, 0xf9, 0xe0, 0x1b, 0x80, 0x77, 0x0b, 0x5c, 0x45, 0x0f, 0xe1, 0x9e, 0x39, 0x3e, 0xb3, 0xc6,
0x67, 0xb8, 0x3b, 0xee, 0x1b, 0x26, 0xd6, 0x47, 0x3d, 0xb3, 0x6f, 0x8c, 0x06, 0x37, 0x74, 0xed,
0xc3, 0xdd, 0xe2, 0x6d, 0x43, 0x63, 0xa4, 0x77, 0x6d, 0x7c, 0xf8, 0x4c, 0x03, 0x99, 0x84, 0xe2,
0x4d, 0xa7, 0xd6, 0x91, 0x56, 0x42, 0x0d, 0x78, 0xbf, 0x18, 0x36, 0x07, 0x03, 0x6c, 0x5a, 0x63,
0x47, 0x2b, 0x1f, 0xff, 0x00, 0x70, 0xdf, 0x15, 0xe1, 0xa2, 0x34, 0x8e, 0xb5, 0x6b, 0xf7, 0xcc,
0xca, 0x7e, 0x7c, 0x0b, 0xbc, 0x31, 0x72, 0x92, 0x2f, 0x02, 0xc2, 0xfd, 0x96, 0x88, 0xfd, 0xb6,
0x4f, 0xb9, 0x7c, 0x16, 0xda, 0x0a, 0x22, 0x11, 0x4b, 0xfe, 0xf9, 0x18, 0xbd, 0xb8, 0x2a, 0xfd,
0x02, 0xe0, 0x6b, 0xa9, 0xd4, 0x3f, 0xf9, 0x5e, 0xda, 0x1d, 0xa8, 0x9e, 0x3d, 0x29, 0xa4, 0x7f,
0x25, 0xe4, 0x5c, 0x91, 0x26, 0xff, 0xcb, 0xfe, 0x47, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x18,
0xb5, 0x45, 0x5e, 0xeb, 0x04, 0x00, 0x00,
}

View File

@ -1,15 +1,15 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/dialogflow/v2beta1/context.proto
package dialogflow
package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import empty "github.com/golang/protobuf/ptypes/empty"
import _struct "github.com/golang/protobuf/ptypes/struct"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf2 "github.com/golang/protobuf/ptypes/empty"
import google_protobuf3 "google.golang.org/genproto/protobuf/field_mask"
import google_protobuf4 "github.com/golang/protobuf/ptypes/struct"
import field_mask "google.golang.org/genproto/protobuf/field_mask"
import (
context "golang.org/x/net/context"
@ -21,32 +21,59 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Represents a context.
type Context struct {
// Required. The unique identifier of the context. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
// or
// `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session
// ID>/contexts/<Context ID>`.
// Note: Runtimes are under construction and will be available soon.
// The Context ID is always converted to lowercase.
// If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
// ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is
// always converted to lowercase. If `Environment ID` is not specified, we
// assume default 'draft' environment. If `User ID` is not specified, we
// assume default '-' user.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The number of conversational query requests after which the
// context expires. If set to `0` (the default) the context expires
// immediately. Contexts expire automatically after 10 minutes even if there
// are no matching queries.
LifespanCount int32 `protobuf:"varint,2,opt,name=lifespan_count,json=lifespanCount" json:"lifespan_count,omitempty"`
LifespanCount int32 `protobuf:"varint,2,opt,name=lifespan_count,json=lifespanCount,proto3" json:"lifespan_count,omitempty"`
// Optional. The collection of parameters associated with this context.
// Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for
// syntax.
Parameters *google_protobuf4.Struct `protobuf:"bytes,3,opt,name=parameters" json:"parameters,omitempty"`
Parameters *_struct.Struct `protobuf:"bytes,3,opt,name=parameters,proto3" json:"parameters,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Context) Reset() { *m = Context{} }
func (m *Context) String() string { return proto.CompactTextString(m) }
func (*Context) ProtoMessage() {}
func (*Context) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (m *Context) Reset() { *m = Context{} }
func (m *Context) String() string { return proto.CompactTextString(m) }
func (*Context) ProtoMessage() {}
func (*Context) Descriptor() ([]byte, []int) {
return fileDescriptor_context_1af894e4ed9b5507, []int{0}
}
func (m *Context) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Context.Unmarshal(m, b)
}
func (m *Context) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Context.Marshal(b, m, deterministic)
}
func (dst *Context) XXX_Merge(src proto.Message) {
xxx_messageInfo_Context.Merge(dst, src)
}
func (m *Context) XXX_Size() int {
return xxx_messageInfo_Context.Size(m)
}
func (m *Context) XXX_DiscardUnknown() {
xxx_messageInfo_Context.DiscardUnknown(m)
}
var xxx_messageInfo_Context proto.InternalMessageInfo
func (m *Context) GetName() string {
if m != nil {
@ -62,7 +89,7 @@ func (m *Context) GetLifespanCount() int32 {
return 0
}
func (m *Context) GetParameters() *google_protobuf4.Struct {
func (m *Context) GetParameters() *_struct.Struct {
if m != nil {
return m.Parameters
}
@ -73,21 +100,44 @@ func (m *Context) GetParameters() *google_protobuf4.Struct {
type ListContextsRequest struct {
// Required. The session to list all contexts from.
// Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
// `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`.
// Note: Runtimes are under construction and will be available soon.
// If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
// `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
// ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
// default 'draft' environment. If `User ID` is not specified, we assume
// default '-' user.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of items to return in a single page. By
// default 100 and at most 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The next_page_token value returned from a previous list request.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListContextsRequest) Reset() { *m = ListContextsRequest{} }
func (m *ListContextsRequest) String() string { return proto.CompactTextString(m) }
func (*ListContextsRequest) ProtoMessage() {}
func (*ListContextsRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
func (m *ListContextsRequest) Reset() { *m = ListContextsRequest{} }
func (m *ListContextsRequest) String() string { return proto.CompactTextString(m) }
func (*ListContextsRequest) ProtoMessage() {}
func (*ListContextsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_context_1af894e4ed9b5507, []int{1}
}
func (m *ListContextsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListContextsRequest.Unmarshal(m, b)
}
func (m *ListContextsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListContextsRequest.Marshal(b, m, deterministic)
}
func (dst *ListContextsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListContextsRequest.Merge(dst, src)
}
func (m *ListContextsRequest) XXX_Size() int {
return xxx_messageInfo_ListContextsRequest.Size(m)
}
func (m *ListContextsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListContextsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListContextsRequest proto.InternalMessageInfo
func (m *ListContextsRequest) GetParent() string {
if m != nil {
@ -114,16 +164,38 @@ func (m *ListContextsRequest) GetPageToken() string {
type ListContextsResponse struct {
// The list of contexts. There will be a maximum number of items
// returned based on the page_size field in the request.
Contexts []*Context `protobuf:"bytes,1,rep,name=contexts" json:"contexts,omitempty"`
Contexts []*Context `protobuf:"bytes,1,rep,name=contexts,proto3" json:"contexts,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListContextsResponse) Reset() { *m = ListContextsResponse{} }
func (m *ListContextsResponse) String() string { return proto.CompactTextString(m) }
func (*ListContextsResponse) ProtoMessage() {}
func (*ListContextsResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
func (m *ListContextsResponse) Reset() { *m = ListContextsResponse{} }
func (m *ListContextsResponse) String() string { return proto.CompactTextString(m) }
func (*ListContextsResponse) ProtoMessage() {}
func (*ListContextsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_context_1af894e4ed9b5507, []int{2}
}
func (m *ListContextsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListContextsResponse.Unmarshal(m, b)
}
func (m *ListContextsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListContextsResponse.Marshal(b, m, deterministic)
}
func (dst *ListContextsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListContextsResponse.Merge(dst, src)
}
func (m *ListContextsResponse) XXX_Size() int {
return xxx_messageInfo_ListContextsResponse.Size(m)
}
func (m *ListContextsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListContextsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListContextsResponse proto.InternalMessageInfo
func (m *ListContextsResponse) GetContexts() []*Context {
if m != nil {
@ -143,17 +215,39 @@ func (m *ListContextsResponse) GetNextPageToken() string {
type GetContextRequest struct {
// Required. The name of the context. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
// or `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session
// ID>/contexts/<Context ID>`. Note: Runtimes are under construction and will
// be available soon. If <Runtime ID> is not specified, we assume default
// 'sandbox' runtime.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
// ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
// not specified, we assume default 'draft' environment. If `User ID` is not
// specified, we assume default '-' user.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetContextRequest) Reset() { *m = GetContextRequest{} }
func (m *GetContextRequest) String() string { return proto.CompactTextString(m) }
func (*GetContextRequest) ProtoMessage() {}
func (*GetContextRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
func (m *GetContextRequest) Reset() { *m = GetContextRequest{} }
func (m *GetContextRequest) String() string { return proto.CompactTextString(m) }
func (*GetContextRequest) ProtoMessage() {}
func (*GetContextRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_context_1af894e4ed9b5507, []int{3}
}
func (m *GetContextRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetContextRequest.Unmarshal(m, b)
}
func (m *GetContextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetContextRequest.Marshal(b, m, deterministic)
}
func (dst *GetContextRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetContextRequest.Merge(dst, src)
}
func (m *GetContextRequest) XXX_Size() int {
return xxx_messageInfo_GetContextRequest.Size(m)
}
func (m *GetContextRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetContextRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetContextRequest proto.InternalMessageInfo
func (m *GetContextRequest) GetName() string {
if m != nil {
@ -166,18 +260,41 @@ func (m *GetContextRequest) GetName() string {
type CreateContextRequest struct {
// Required. The session to create a context for.
// Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
// `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`.
// Note: Runtimes are under construction and will be available soon.
// If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
// `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
// ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
// default 'draft' environment. If `User ID` is not specified, we assume
// default '-' user.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The context to create.
Context *Context `protobuf:"bytes,2,opt,name=context" json:"context,omitempty"`
Context *Context `protobuf:"bytes,2,opt,name=context,proto3" json:"context,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateContextRequest) Reset() { *m = CreateContextRequest{} }
func (m *CreateContextRequest) String() string { return proto.CompactTextString(m) }
func (*CreateContextRequest) ProtoMessage() {}
func (*CreateContextRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
func (m *CreateContextRequest) Reset() { *m = CreateContextRequest{} }
func (m *CreateContextRequest) String() string { return proto.CompactTextString(m) }
func (*CreateContextRequest) ProtoMessage() {}
func (*CreateContextRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_context_1af894e4ed9b5507, []int{4}
}
func (m *CreateContextRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateContextRequest.Unmarshal(m, b)
}
func (m *CreateContextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateContextRequest.Marshal(b, m, deterministic)
}
func (dst *CreateContextRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateContextRequest.Merge(dst, src)
}
func (m *CreateContextRequest) XXX_Size() int {
return xxx_messageInfo_CreateContextRequest.Size(m)
}
func (m *CreateContextRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateContextRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateContextRequest proto.InternalMessageInfo
func (m *CreateContextRequest) GetParent() string {
if m != nil {
@ -196,15 +313,37 @@ func (m *CreateContextRequest) GetContext() *Context {
// The request message for [Contexts.UpdateContext][google.cloud.dialogflow.v2beta1.Contexts.UpdateContext].
type UpdateContextRequest struct {
// Required. The context to update.
Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"`
Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
// Optional. The mask to control which fields get updated.
UpdateMask *google_protobuf3.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateContextRequest) Reset() { *m = UpdateContextRequest{} }
func (m *UpdateContextRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateContextRequest) ProtoMessage() {}
func (*UpdateContextRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
func (m *UpdateContextRequest) Reset() { *m = UpdateContextRequest{} }
func (m *UpdateContextRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateContextRequest) ProtoMessage() {}
func (*UpdateContextRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_context_1af894e4ed9b5507, []int{5}
}
func (m *UpdateContextRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateContextRequest.Unmarshal(m, b)
}
func (m *UpdateContextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateContextRequest.Marshal(b, m, deterministic)
}
func (dst *UpdateContextRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateContextRequest.Merge(dst, src)
}
func (m *UpdateContextRequest) XXX_Size() int {
return xxx_messageInfo_UpdateContextRequest.Size(m)
}
func (m *UpdateContextRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateContextRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateContextRequest proto.InternalMessageInfo
func (m *UpdateContextRequest) GetContext() *Context {
if m != nil {
@ -213,7 +352,7 @@ func (m *UpdateContextRequest) GetContext() *Context {
return nil
}
func (m *UpdateContextRequest) GetUpdateMask() *google_protobuf3.FieldMask {
func (m *UpdateContextRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
@ -224,17 +363,39 @@ func (m *UpdateContextRequest) GetUpdateMask() *google_protobuf3.FieldMask {
type DeleteContextRequest struct {
// Required. The name of the context to delete. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
// or `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session
// ID>/contexts/<Context ID>`. Note: Runtimes are under construction and will
// be available soon. If <Runtime ID> is not specified, we assume default
// 'sandbox' runtime.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
// ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
// not specified, we assume default 'draft' environment. If `User ID` is not
// specified, we assume default '-' user.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteContextRequest) Reset() { *m = DeleteContextRequest{} }
func (m *DeleteContextRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteContextRequest) ProtoMessage() {}
func (*DeleteContextRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} }
func (m *DeleteContextRequest) Reset() { *m = DeleteContextRequest{} }
func (m *DeleteContextRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteContextRequest) ProtoMessage() {}
func (*DeleteContextRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_context_1af894e4ed9b5507, []int{6}
}
func (m *DeleteContextRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteContextRequest.Unmarshal(m, b)
}
func (m *DeleteContextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteContextRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteContextRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteContextRequest.Merge(dst, src)
}
func (m *DeleteContextRequest) XXX_Size() int {
return xxx_messageInfo_DeleteContextRequest.Size(m)
}
func (m *DeleteContextRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteContextRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteContextRequest proto.InternalMessageInfo
func (m *DeleteContextRequest) GetName() string {
if m != nil {
@ -247,16 +408,38 @@ func (m *DeleteContextRequest) GetName() string {
type DeleteAllContextsRequest struct {
// Required. The name of the session to delete all contexts from. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
// ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`. Note: Runtimes are
// under construction and will be available soon. If <Runtime ID> is not
// specified we assume default 'sandbox' runtime.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
// ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
// ID>`. If `Environment ID` is not specified we assume default 'draft'
// environment. If `User ID` is not specified, we assume default '-' user.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteAllContextsRequest) Reset() { *m = DeleteAllContextsRequest{} }
func (m *DeleteAllContextsRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteAllContextsRequest) ProtoMessage() {}
func (*DeleteAllContextsRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{7} }
func (m *DeleteAllContextsRequest) Reset() { *m = DeleteAllContextsRequest{} }
func (m *DeleteAllContextsRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteAllContextsRequest) ProtoMessage() {}
func (*DeleteAllContextsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_context_1af894e4ed9b5507, []int{7}
}
func (m *DeleteAllContextsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteAllContextsRequest.Unmarshal(m, b)
}
func (m *DeleteAllContextsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteAllContextsRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteAllContextsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteAllContextsRequest.Merge(dst, src)
}
func (m *DeleteAllContextsRequest) XXX_Size() int {
return xxx_messageInfo_DeleteAllContextsRequest.Size(m)
}
func (m *DeleteAllContextsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteAllContextsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteAllContextsRequest proto.InternalMessageInfo
func (m *DeleteAllContextsRequest) GetParent() string {
if m != nil {
@ -284,8 +467,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for Contexts service
// ContextsClient is the client API for Contexts service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ContextsClient interface {
// Returns the list of all contexts in the specified session.
ListContexts(ctx context.Context, in *ListContextsRequest, opts ...grpc.CallOption) (*ListContextsResponse, error)
@ -296,9 +480,9 @@ type ContextsClient interface {
// Updates the specified context.
UpdateContext(ctx context.Context, in *UpdateContextRequest, opts ...grpc.CallOption) (*Context, error)
// Deletes the specified context.
DeleteContext(ctx context.Context, in *DeleteContextRequest, opts ...grpc.CallOption) (*google_protobuf2.Empty, error)
DeleteContext(ctx context.Context, in *DeleteContextRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// Deletes all active contexts in the specified session.
DeleteAllContexts(ctx context.Context, in *DeleteAllContextsRequest, opts ...grpc.CallOption) (*google_protobuf2.Empty, error)
DeleteAllContexts(ctx context.Context, in *DeleteAllContextsRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}
type contextsClient struct {
@ -311,7 +495,7 @@ func NewContextsClient(cc *grpc.ClientConn) ContextsClient {
func (c *contextsClient) ListContexts(ctx context.Context, in *ListContextsRequest, opts ...grpc.CallOption) (*ListContextsResponse, error) {
out := new(ListContextsResponse)
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/ListContexts", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/ListContexts", in, out, opts...)
if err != nil {
return nil, err
}
@ -320,7 +504,7 @@ func (c *contextsClient) ListContexts(ctx context.Context, in *ListContextsReque
func (c *contextsClient) GetContext(ctx context.Context, in *GetContextRequest, opts ...grpc.CallOption) (*Context, error) {
out := new(Context)
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/GetContext", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/GetContext", in, out, opts...)
if err != nil {
return nil, err
}
@ -329,7 +513,7 @@ func (c *contextsClient) GetContext(ctx context.Context, in *GetContextRequest,
func (c *contextsClient) CreateContext(ctx context.Context, in *CreateContextRequest, opts ...grpc.CallOption) (*Context, error) {
out := new(Context)
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/CreateContext", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/CreateContext", in, out, opts...)
if err != nil {
return nil, err
}
@ -338,33 +522,32 @@ func (c *contextsClient) CreateContext(ctx context.Context, in *CreateContextReq
func (c *contextsClient) UpdateContext(ctx context.Context, in *UpdateContextRequest, opts ...grpc.CallOption) (*Context, error) {
out := new(Context)
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/UpdateContext", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/UpdateContext", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *contextsClient) DeleteContext(ctx context.Context, in *DeleteContextRequest, opts ...grpc.CallOption) (*google_protobuf2.Empty, error) {
out := new(google_protobuf2.Empty)
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/DeleteContext", in, out, c.cc, opts...)
func (c *contextsClient) DeleteContext(ctx context.Context, in *DeleteContextRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/DeleteContext", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *contextsClient) DeleteAllContexts(ctx context.Context, in *DeleteAllContextsRequest, opts ...grpc.CallOption) (*google_protobuf2.Empty, error) {
out := new(google_protobuf2.Empty)
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/DeleteAllContexts", in, out, c.cc, opts...)
func (c *contextsClient) DeleteAllContexts(ctx context.Context, in *DeleteAllContextsRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/DeleteAllContexts", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Contexts service
// ContextsServer is the server API for Contexts service.
type ContextsServer interface {
// Returns the list of all contexts in the specified session.
ListContexts(context.Context, *ListContextsRequest) (*ListContextsResponse, error)
@ -375,9 +558,9 @@ type ContextsServer interface {
// Updates the specified context.
UpdateContext(context.Context, *UpdateContextRequest) (*Context, error)
// Deletes the specified context.
DeleteContext(context.Context, *DeleteContextRequest) (*google_protobuf2.Empty, error)
DeleteContext(context.Context, *DeleteContextRequest) (*empty.Empty, error)
// Deletes all active contexts in the specified session.
DeleteAllContexts(context.Context, *DeleteAllContextsRequest) (*google_protobuf2.Empty, error)
DeleteAllContexts(context.Context, *DeleteAllContextsRequest) (*empty.Empty, error)
}
func RegisterContextsServer(s *grpc.Server, srv ContextsServer) {
@ -525,58 +708,61 @@ var _Contexts_serviceDesc = grpc.ServiceDesc{
Metadata: "google/cloud/dialogflow/v2beta1/context.proto",
}
func init() { proto.RegisterFile("google/cloud/dialogflow/v2beta1/context.proto", fileDescriptor1) }
var fileDescriptor1 = []byte{
// 793 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcd, 0x6f, 0xd3, 0x48,
0x14, 0xd7, 0xb8, 0xbb, 0xfd, 0x98, 0x34, 0xbb, 0xea, 0x6c, 0xd4, 0x8d, 0xd2, 0xae, 0x1a, 0x79,
0xb5, 0x4b, 0x14, 0x09, 0x5b, 0x98, 0x2f, 0x41, 0x05, 0x52, 0x9b, 0xd0, 0xaa, 0x52, 0x91, 0xaa,
0xb4, 0x70, 0xe8, 0x25, 0x9a, 0x26, 0x2f, 0x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egisterFile("google/cloud/dialogflow/v2beta1/context.proto", fileDescriptor_context_1af894e4ed9b5507)
}
var fileDescriptor_context_1af894e4ed9b5507 = []byte{
// 807 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcf, 0x6b, 0xdb, 0x48,
0x14, 0x66, 0x94, 0xdd, 0xfc, 0x98, 0xc4, 0xbb, 0x64, 0xd6, 0x64, 0x8d, 0x93, 0x25, 0x46, 0xcb,
0xee, 0x1a, 0xc3, 0x4a, 0xac, 0xf6, 0x17, 0xbb, 0x61, 0x17, 0x1a, 0xbb, 0x09, 0x85, 0x86, 0x06,
0xa7, 0x29, 0x25, 0x17, 0x77, 0x62, 0x3f, 0x0b, 0x35, 0xf2, 0x8c, 0xaa, 0x19, 0xa7, 0x69, 0x4a,
0x2e, 0xa5, 0x97, 0x5e, 0x4a, 0xa1, 0x94, 0x1e, 0x7a, 0x0b, 0xf4, 0x92, 0xde, 0xfa, 0x6f, 0xf4,
0xd8, 0x7f, 0xa1, 0xff, 0x40, 0x6f, 0xed, 0xa1, 0x50, 0x24, 0x8d, 0x2c, 0x3b, 0x56, 0x6a, 0x2b,
0xe4, 0x64, 0x69, 0xe6, 0x7b, 0x6f, 0xbe, 0xef, 0xcd, 0xf7, 0x9e, 0x85, 0x7f, 0xb5, 0x39, 0xb7,
0x5d, 0x30, 0x9b, 0x2e, 0xef, 0xb6, 0xcc, 0x96, 0x43, 0x5d, 0x6e, 0xb7, 0x5d, 0x7e, 0xd7, 0xdc,
0xb7, 0x76, 0x41, 0xd2, 0xdf, 0xcc, 0x26, 0x67, 0x12, 0x0e, 0xa4, 0xe1, 0xf9, 0x5c, 0x72, 0xb2,
0x1c, 0xc1, 0x8d, 0x10, 0x6e, 0x24, 0x70, 0x43, 0xc1, 0x8b, 0x4b, 0x2a, 0x1f, 0xf5, 0x1c, 0x93,
0x32, 0xc6, 0x25, 0x95, 0x0e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5e, 0x56,
0x2e, 0xb6, 0x41, 0x56, 0x4f, 0x10, 0xfe, 0xb1, 0xc9, 0x3b, 0xa3, 0xb4, 0xae, 0xce, 0x29, 0x8d,
0x9b, 0x81, 0xa2, 0x4d, 0xb4, 0x73, 0x45, 0x05, 0xd8, 0xdc, 0xa5, 0xcc, 0x36, 0xb8, 0x6f, 0x9b,
0x36, 0xb0, 0x50, 0xaf, 0x19, 0x6d, 0x51, 0xcf, 0x11, 0x67, 0x7e, 0x77, 0xae, 0x24, 0x4b, 0x1f,
0x10, 0x3a, 0xd6, 0xb4, 0xda, 0xda, 0x89, 0xb6, 0xbc, 0x1e, 0xe5, 0xac, 0x86, 0x24, 0x6a, 0x09,
0x89, 0x1b, 0x51, 0xd0, 0xee, 0x64, 0x98, 0xff, 0xf7, 0xcf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x48,
0x77, 0xb8, 0xb5, 0xd6, 0x0a, 0x00, 0x00,
}

View File

@ -0,0 +1,830 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/dialogflow/v2beta1/document.proto
package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/golang/protobuf/ptypes/empty"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import longrunning "google.golang.org/genproto/googleapis/longrunning"
import _ "google.golang.org/genproto/protobuf/field_mask"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The knowledge type of document content.
type Document_KnowledgeType int32
const (
// The type is unspecified or arbitrary.
Document_KNOWLEDGE_TYPE_UNSPECIFIED Document_KnowledgeType = 0
// The document content contains question and answer pairs as either HTML or
// CSV. Typical FAQ HTML formats are parsed accurately, but unusual formats
// may fail to be parsed.
//
// CSV must have questions in the first column and answers in the second,
// with no header. Because of this explicit format, they are always parsed
// accurately.
Document_FAQ Document_KnowledgeType = 1
// Documents for which unstructured text is extracted and used for
// question answering.
Document_EXTRACTIVE_QA Document_KnowledgeType = 2
)
var Document_KnowledgeType_name = map[int32]string{
0: "KNOWLEDGE_TYPE_UNSPECIFIED",
1: "FAQ",
2: "EXTRACTIVE_QA",
}
var Document_KnowledgeType_value = map[string]int32{
"KNOWLEDGE_TYPE_UNSPECIFIED": 0,
"FAQ": 1,
"EXTRACTIVE_QA": 2,
}
func (x Document_KnowledgeType) String() string {
return proto.EnumName(Document_KnowledgeType_name, int32(x))
}
func (Document_KnowledgeType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_document_3131c12790f8bf44, []int{0, 0}
}
// States of the operation.
type KnowledgeOperationMetadata_State int32
const (
// State unspecified.
KnowledgeOperationMetadata_STATE_UNSPECIFIED KnowledgeOperationMetadata_State = 0
// The operation has been created.
KnowledgeOperationMetadata_PENDING KnowledgeOperationMetadata_State = 1
// The operation is currently running.
KnowledgeOperationMetadata_RUNNING KnowledgeOperationMetadata_State = 2
// The operation is done, either cancelled or completed.
KnowledgeOperationMetadata_DONE KnowledgeOperationMetadata_State = 3
)
var KnowledgeOperationMetadata_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "PENDING",
2: "RUNNING",
3: "DONE",
}
var KnowledgeOperationMetadata_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"PENDING": 1,
"RUNNING": 2,
"DONE": 3,
}
func (x KnowledgeOperationMetadata_State) String() string {
return proto.EnumName(KnowledgeOperationMetadata_State_name, int32(x))
}
func (KnowledgeOperationMetadata_State) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_document_3131c12790f8bf44, []int{6, 0}
}
// A document resource.
type Document struct {
// The document resource name.
// The name must be empty when creating a document.
// Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
// ID>/documents/<Document ID>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The display name of the document. The name must be 1024 bytes or
// less; otherwise, the creation request fails.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Required. The MIME type of this document.
MimeType string `protobuf:"bytes,3,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
// Required. The knowledge type of document content.
KnowledgeTypes []Document_KnowledgeType `protobuf:"varint,4,rep,packed,name=knowledge_types,json=knowledgeTypes,proto3,enum=google.cloud.dialogflow.v2beta1.Document_KnowledgeType" json:"knowledge_types,omitempty"`
// Required. The source of this document.
//
// Types that are valid to be assigned to Source:
// *Document_ContentUri
// *Document_Content
Source isDocument_Source `protobuf_oneof:"source"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Document) Reset() { *m = Document{} }
func (m *Document) String() string { return proto.CompactTextString(m) }
func (*Document) ProtoMessage() {}
func (*Document) Descriptor() ([]byte, []int) {
return fileDescriptor_document_3131c12790f8bf44, []int{0}
}
func (m *Document) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Document.Unmarshal(m, b)
}
func (m *Document) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Document.Marshal(b, m, deterministic)
}
func (dst *Document) XXX_Merge(src proto.Message) {
xxx_messageInfo_Document.Merge(dst, src)
}
func (m *Document) XXX_Size() int {
return xxx_messageInfo_Document.Size(m)
}
func (m *Document) XXX_DiscardUnknown() {
xxx_messageInfo_Document.DiscardUnknown(m)
}
var xxx_messageInfo_Document proto.InternalMessageInfo
func (m *Document) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Document) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
func (m *Document) GetMimeType() string {
if m != nil {
return m.MimeType
}
return ""
}
func (m *Document) GetKnowledgeTypes() []Document_KnowledgeType {
if m != nil {
return m.KnowledgeTypes
}
return nil
}
type isDocument_Source interface {
isDocument_Source()
}
type Document_ContentUri struct {
ContentUri string `protobuf:"bytes,5,opt,name=content_uri,json=contentUri,proto3,oneof"`
}
type Document_Content struct {
Content string `protobuf:"bytes,6,opt,name=content,proto3,oneof"`
}
func (*Document_ContentUri) isDocument_Source() {}
func (*Document_Content) isDocument_Source() {}
func (m *Document) GetSource() isDocument_Source {
if m != nil {
return m.Source
}
return nil
}
func (m *Document) GetContentUri() string {
if x, ok := m.GetSource().(*Document_ContentUri); ok {
return x.ContentUri
}
return ""
}
func (m *Document) GetContent() string {
if x, ok := m.GetSource().(*Document_Content); ok {
return x.Content
}
return ""
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Document) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Document_OneofMarshaler, _Document_OneofUnmarshaler, _Document_OneofSizer, []interface{}{
(*Document_ContentUri)(nil),
(*Document_Content)(nil),
}
}
func _Document_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Document)
// source
switch x := m.Source.(type) {
case *Document_ContentUri:
b.EncodeVarint(5<<3 | proto.WireBytes)
b.EncodeStringBytes(x.ContentUri)
case *Document_Content:
b.EncodeVarint(6<<3 | proto.WireBytes)
b.EncodeStringBytes(x.Content)
case nil:
default:
return fmt.Errorf("Document.Source has unexpected type %T", x)
}
return nil
}
func _Document_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Document)
switch tag {
case 5: // source.content_uri
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Source = &Document_ContentUri{x}
return true, err
case 6: // source.content
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Source = &Document_Content{x}
return true, err
default:
return false, nil
}
}
func _Document_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Document)
// source
switch x := m.Source.(type) {
case *Document_ContentUri:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.ContentUri)))
n += len(x.ContentUri)
case *Document_Content:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.Content)))
n += len(x.Content)
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Request message for [Documents.ListDocuments][google.cloud.dialogflow.v2beta1.Documents.ListDocuments].
type ListDocumentsRequest struct {
// Required. The knowledge base to list all documents for.
// Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of items to return in a single page. By
// default 10 and at most 100.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The next_page_token value returned from a previous list request.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListDocumentsRequest) Reset() { *m = ListDocumentsRequest{} }
func (m *ListDocumentsRequest) String() string { return proto.CompactTextString(m) }
func (*ListDocumentsRequest) ProtoMessage() {}
func (*ListDocumentsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_document_3131c12790f8bf44, []int{1}
}
func (m *ListDocumentsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListDocumentsRequest.Unmarshal(m, b)
}
func (m *ListDocumentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListDocumentsRequest.Marshal(b, m, deterministic)
}
func (dst *ListDocumentsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListDocumentsRequest.Merge(dst, src)
}
func (m *ListDocumentsRequest) XXX_Size() int {
return xxx_messageInfo_ListDocumentsRequest.Size(m)
}
func (m *ListDocumentsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListDocumentsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListDocumentsRequest proto.InternalMessageInfo
func (m *ListDocumentsRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *ListDocumentsRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *ListDocumentsRequest) GetPageToken() string {
if m != nil {
return m.PageToken
}
return ""
}
// Response message for [Documents.ListDocuments][google.cloud.dialogflow.v2beta1.Documents.ListDocuments].
type ListDocumentsResponse struct {
// The list of documents.
Documents []*Document `protobuf:"bytes,1,rep,name=documents,proto3" json:"documents,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListDocumentsResponse) Reset() { *m = ListDocumentsResponse{} }
func (m *ListDocumentsResponse) String() string { return proto.CompactTextString(m) }
func (*ListDocumentsResponse) ProtoMessage() {}
func (*ListDocumentsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_document_3131c12790f8bf44, []int{2}
}
func (m *ListDocumentsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListDocumentsResponse.Unmarshal(m, b)
}
func (m *ListDocumentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListDocumentsResponse.Marshal(b, m, deterministic)
}
func (dst *ListDocumentsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListDocumentsResponse.Merge(dst, src)
}
func (m *ListDocumentsResponse) XXX_Size() int {
return xxx_messageInfo_ListDocumentsResponse.Size(m)
}
func (m *ListDocumentsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListDocumentsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListDocumentsResponse proto.InternalMessageInfo
func (m *ListDocumentsResponse) GetDocuments() []*Document {
if m != nil {
return m.Documents
}
return nil
}
func (m *ListDocumentsResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
}
return ""
}
// Request message for [Documents.GetDocument][google.cloud.dialogflow.v2beta1.Documents.GetDocument].
type GetDocumentRequest struct {
// Required. The name of the document to retrieve.
// Format `projects/<Project ID>/knowledgeBases/<Knowledge Base
// ID>/documents/<Document ID>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetDocumentRequest) Reset() { *m = GetDocumentRequest{} }
func (m *GetDocumentRequest) String() string { return proto.CompactTextString(m) }
func (*GetDocumentRequest) ProtoMessage() {}
func (*GetDocumentRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_document_3131c12790f8bf44, []int{3}
}
func (m *GetDocumentRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetDocumentRequest.Unmarshal(m, b)
}
func (m *GetDocumentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetDocumentRequest.Marshal(b, m, deterministic)
}
func (dst *GetDocumentRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetDocumentRequest.Merge(dst, src)
}
func (m *GetDocumentRequest) XXX_Size() int {
return xxx_messageInfo_GetDocumentRequest.Size(m)
}
func (m *GetDocumentRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetDocumentRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetDocumentRequest proto.InternalMessageInfo
func (m *GetDocumentRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// Request message for [Documents.CreateDocument][google.cloud.dialogflow.v2beta1.Documents.CreateDocument].
type CreateDocumentRequest struct {
// Required. The knoweldge base to create a document for.
// Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The document to create.
Document *Document `protobuf:"bytes,2,opt,name=document,proto3" json:"document,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateDocumentRequest) Reset() { *m = CreateDocumentRequest{} }
func (m *CreateDocumentRequest) String() string { return proto.CompactTextString(m) }
func (*CreateDocumentRequest) ProtoMessage() {}
func (*CreateDocumentRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_document_3131c12790f8bf44, []int{4}
}
func (m *CreateDocumentRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateDocumentRequest.Unmarshal(m, b)
}
func (m *CreateDocumentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateDocumentRequest.Marshal(b, m, deterministic)
}
func (dst *CreateDocumentRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateDocumentRequest.Merge(dst, src)
}
func (m *CreateDocumentRequest) XXX_Size() int {
return xxx_messageInfo_CreateDocumentRequest.Size(m)
}
func (m *CreateDocumentRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateDocumentRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateDocumentRequest proto.InternalMessageInfo
func (m *CreateDocumentRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *CreateDocumentRequest) GetDocument() *Document {
if m != nil {
return m.Document
}
return nil
}
// Request message for [Documents.DeleteDocument][google.cloud.dialogflow.v2beta1.Documents.DeleteDocument].
type DeleteDocumentRequest struct {
// The name of the document to delete.
// Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
// ID>/documents/<Document ID>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteDocumentRequest) Reset() { *m = DeleteDocumentRequest{} }
func (m *DeleteDocumentRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteDocumentRequest) ProtoMessage() {}
func (*DeleteDocumentRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_document_3131c12790f8bf44, []int{5}
}
func (m *DeleteDocumentRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteDocumentRequest.Unmarshal(m, b)
}
func (m *DeleteDocumentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteDocumentRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteDocumentRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteDocumentRequest.Merge(dst, src)
}
func (m *DeleteDocumentRequest) XXX_Size() int {
return xxx_messageInfo_DeleteDocumentRequest.Size(m)
}
func (m *DeleteDocumentRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteDocumentRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteDocumentRequest proto.InternalMessageInfo
func (m *DeleteDocumentRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// Metadata in google::longrunning::Operation for Knowledge operations.
type KnowledgeOperationMetadata struct {
// Required. The current state of this operation.
State KnowledgeOperationMetadata_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata_State" json:"state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *KnowledgeOperationMetadata) Reset() { *m = KnowledgeOperationMetadata{} }
func (m *KnowledgeOperationMetadata) String() string { return proto.CompactTextString(m) }
func (*KnowledgeOperationMetadata) ProtoMessage() {}
func (*KnowledgeOperationMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_document_3131c12790f8bf44, []int{6}
}
func (m *KnowledgeOperationMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KnowledgeOperationMetadata.Unmarshal(m, b)
}
func (m *KnowledgeOperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KnowledgeOperationMetadata.Marshal(b, m, deterministic)
}
func (dst *KnowledgeOperationMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_KnowledgeOperationMetadata.Merge(dst, src)
}
func (m *KnowledgeOperationMetadata) XXX_Size() int {
return xxx_messageInfo_KnowledgeOperationMetadata.Size(m)
}
func (m *KnowledgeOperationMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_KnowledgeOperationMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_KnowledgeOperationMetadata proto.InternalMessageInfo
func (m *KnowledgeOperationMetadata) GetState() KnowledgeOperationMetadata_State {
if m != nil {
return m.State
}
return KnowledgeOperationMetadata_STATE_UNSPECIFIED
}
func init() {
proto.RegisterType((*Document)(nil), "google.cloud.dialogflow.v2beta1.Document")
proto.RegisterType((*ListDocumentsRequest)(nil), "google.cloud.dialogflow.v2beta1.ListDocumentsRequest")
proto.RegisterType((*ListDocumentsResponse)(nil), "google.cloud.dialogflow.v2beta1.ListDocumentsResponse")
proto.RegisterType((*GetDocumentRequest)(nil), "google.cloud.dialogflow.v2beta1.GetDocumentRequest")
proto.RegisterType((*CreateDocumentRequest)(nil), "google.cloud.dialogflow.v2beta1.CreateDocumentRequest")
proto.RegisterType((*DeleteDocumentRequest)(nil), "google.cloud.dialogflow.v2beta1.DeleteDocumentRequest")
proto.RegisterType((*KnowledgeOperationMetadata)(nil), "google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata")
proto.RegisterEnum("google.cloud.dialogflow.v2beta1.Document_KnowledgeType", Document_KnowledgeType_name, Document_KnowledgeType_value)
proto.RegisterEnum("google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata_State", KnowledgeOperationMetadata_State_name, KnowledgeOperationMetadata_State_value)
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// DocumentsClient is the client API for Documents service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type DocumentsClient interface {
// Returns the list of all documents of the knowledge base.
ListDocuments(ctx context.Context, in *ListDocumentsRequest, opts ...grpc.CallOption) (*ListDocumentsResponse, error)
// Retrieves the specified document.
GetDocument(ctx context.Context, in *GetDocumentRequest, opts ...grpc.CallOption) (*Document, error)
// Creates a new document.
//
// Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document],
// metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]>
CreateDocument(ctx context.Context, in *CreateDocumentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Deletes the specified document.
//
// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
// metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]>
DeleteDocument(ctx context.Context, in *DeleteDocumentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
}
type documentsClient struct {
cc *grpc.ClientConn
}
func NewDocumentsClient(cc *grpc.ClientConn) DocumentsClient {
return &documentsClient{cc}
}
func (c *documentsClient) ListDocuments(ctx context.Context, in *ListDocumentsRequest, opts ...grpc.CallOption) (*ListDocumentsResponse, error) {
out := new(ListDocumentsResponse)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Documents/ListDocuments", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *documentsClient) GetDocument(ctx context.Context, in *GetDocumentRequest, opts ...grpc.CallOption) (*Document, error) {
out := new(Document)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Documents/GetDocument", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *documentsClient) CreateDocument(ctx context.Context, in *CreateDocumentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
out := new(longrunning.Operation)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Documents/CreateDocument", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *documentsClient) DeleteDocument(ctx context.Context, in *DeleteDocumentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
out := new(longrunning.Operation)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Documents/DeleteDocument", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// DocumentsServer is the server API for Documents service.
type DocumentsServer interface {
// Returns the list of all documents of the knowledge base.
ListDocuments(context.Context, *ListDocumentsRequest) (*ListDocumentsResponse, error)
// Retrieves the specified document.
GetDocument(context.Context, *GetDocumentRequest) (*Document, error)
// Creates a new document.
//
// Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document],
// metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]>
CreateDocument(context.Context, *CreateDocumentRequest) (*longrunning.Operation, error)
// Deletes the specified document.
//
// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
// metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]>
DeleteDocument(context.Context, *DeleteDocumentRequest) (*longrunning.Operation, error)
}
func RegisterDocumentsServer(s *grpc.Server, srv DocumentsServer) {
s.RegisterService(&_Documents_serviceDesc, srv)
}
func _Documents_ListDocuments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListDocumentsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DocumentsServer).ListDocuments(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.dialogflow.v2beta1.Documents/ListDocuments",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DocumentsServer).ListDocuments(ctx, req.(*ListDocumentsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Documents_GetDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetDocumentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DocumentsServer).GetDocument(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.dialogflow.v2beta1.Documents/GetDocument",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DocumentsServer).GetDocument(ctx, req.(*GetDocumentRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Documents_CreateDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateDocumentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DocumentsServer).CreateDocument(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.dialogflow.v2beta1.Documents/CreateDocument",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DocumentsServer).CreateDocument(ctx, req.(*CreateDocumentRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Documents_DeleteDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteDocumentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DocumentsServer).DeleteDocument(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.dialogflow.v2beta1.Documents/DeleteDocument",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DocumentsServer).DeleteDocument(ctx, req.(*DeleteDocumentRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Documents_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2beta1.Documents",
HandlerType: (*DocumentsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListDocuments",
Handler: _Documents_ListDocuments_Handler,
},
{
MethodName: "GetDocument",
Handler: _Documents_GetDocument_Handler,
},
{
MethodName: "CreateDocument",
Handler: _Documents_CreateDocument_Handler,
},
{
MethodName: "DeleteDocument",
Handler: _Documents_DeleteDocument_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/dialogflow/v2beta1/document.proto",
}
func init() {
proto.RegisterFile("google/cloud/dialogflow/v2beta1/document.proto", fileDescriptor_document_3131c12790f8bf44)
}
var fileDescriptor_document_3131c12790f8bf44 = []byte{
// 885 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xcd, 0x6e, 0x1b, 0x55,
0x14, 0xee, 0x1d, 0xe7, 0xc7, 0x39, 0xc6, 0xae, 0x7b, 0x45, 0x90, 0xe5, 0x52, 0x9a, 0x4e, 0x25,
0x14, 0x8c, 0x34, 0x23, 0x5c, 0x41, 0x25, 0x50, 0x85, 0xec, 0xcc, 0xc4, 0x58, 0x29, 0x13, 0x77,
0xe2, 0xb4, 0x90, 0xcd, 0x70, 0x63, 0xdf, 0x8c, 0xa6, 0x19, 0xdf, 0x3b, 0xcc, 0xbd, 0x6e, 0x49,
0x50, 0x25, 0x60, 0xc5, 0x8a, 0x0d, 0xe2, 0x05, 0x58, 0xc2, 0x13, 0xf0, 0x1c, 0x48, 0x3c, 0x01,
0x2b, 0x56, 0xb0, 0x63, 0x07, 0x9a, 0x5f, 0xc7, 0xae, 0x13, 0xa7, 0xed, 0xce, 0xe7, 0xef, 0x9b,
0xef, 0x9c, 0xf3, 0x9d, 0xf1, 0x80, 0xe6, 0x72, 0xee, 0xfa, 0x54, 0x1f, 0xf8, 0x7c, 0x3c, 0xd4,
0x87, 0x1e, 0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b, 0x8a, 0xb1, 0xfd, 0x8b, 0x72, 0xb3, 0x93, 0x60, 0x6e, 0xc5, 0x2c, 0x8c, 0x09, 0x8b, 0x87,
0x49, 0xd1, 0xe1, 0x4a, 0x8c, 0x7f, 0xe7, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8d, 0xc6, 0x50,
0x98, 0x58, 0x09, 0x00, 0x00,
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,567 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/dialogflow/v2beta1/knowledge_base.proto
package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import empty "github.com/golang/protobuf/ptypes/empty"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import _ "google.golang.org/genproto/protobuf/field_mask"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Represents knowledge base resource.
type KnowledgeBase struct {
// The knowledge base resource name.
// The name must be empty when creating a knowledge base.
// Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The display name of the knowledge base. The name must be 1024
// bytes or less; otherwise, the creation request fails.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *KnowledgeBase) Reset() { *m = KnowledgeBase{} }
func (m *KnowledgeBase) String() string { return proto.CompactTextString(m) }
func (*KnowledgeBase) ProtoMessage() {}
func (*KnowledgeBase) Descriptor() ([]byte, []int) {
return fileDescriptor_knowledge_base_5078794a2722dd36, []int{0}
}
func (m *KnowledgeBase) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KnowledgeBase.Unmarshal(m, b)
}
func (m *KnowledgeBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KnowledgeBase.Marshal(b, m, deterministic)
}
func (dst *KnowledgeBase) XXX_Merge(src proto.Message) {
xxx_messageInfo_KnowledgeBase.Merge(dst, src)
}
func (m *KnowledgeBase) XXX_Size() int {
return xxx_messageInfo_KnowledgeBase.Size(m)
}
func (m *KnowledgeBase) XXX_DiscardUnknown() {
xxx_messageInfo_KnowledgeBase.DiscardUnknown(m)
}
var xxx_messageInfo_KnowledgeBase proto.InternalMessageInfo
func (m *KnowledgeBase) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *KnowledgeBase) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
// Request message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases].
type ListKnowledgeBasesRequest struct {
// Required. The agent to list of knowledge bases for.
// Format: `projects/<Project ID>/agent`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of items to return in a single page. By
// default 10 and at most 100.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The next_page_token value returned from a previous list request.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListKnowledgeBasesRequest) Reset() { *m = ListKnowledgeBasesRequest{} }
func (m *ListKnowledgeBasesRequest) String() string { return proto.CompactTextString(m) }
func (*ListKnowledgeBasesRequest) ProtoMessage() {}
func (*ListKnowledgeBasesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_knowledge_base_5078794a2722dd36, []int{1}
}
func (m *ListKnowledgeBasesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListKnowledgeBasesRequest.Unmarshal(m, b)
}
func (m *ListKnowledgeBasesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListKnowledgeBasesRequest.Marshal(b, m, deterministic)
}
func (dst *ListKnowledgeBasesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListKnowledgeBasesRequest.Merge(dst, src)
}
func (m *ListKnowledgeBasesRequest) XXX_Size() int {
return xxx_messageInfo_ListKnowledgeBasesRequest.Size(m)
}
func (m *ListKnowledgeBasesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListKnowledgeBasesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListKnowledgeBasesRequest proto.InternalMessageInfo
func (m *ListKnowledgeBasesRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *ListKnowledgeBasesRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *ListKnowledgeBasesRequest) GetPageToken() string {
if m != nil {
return m.PageToken
}
return ""
}
// Response message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases].
type ListKnowledgeBasesResponse struct {
// The list of knowledge bases.
KnowledgeBases []*KnowledgeBase `protobuf:"bytes,1,rep,name=knowledge_bases,json=knowledgeBases,proto3" json:"knowledge_bases,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListKnowledgeBasesResponse) Reset() { *m = ListKnowledgeBasesResponse{} }
func (m *ListKnowledgeBasesResponse) String() string { return proto.CompactTextString(m) }
func (*ListKnowledgeBasesResponse) ProtoMessage() {}
func (*ListKnowledgeBasesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_knowledge_base_5078794a2722dd36, []int{2}
}
func (m *ListKnowledgeBasesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListKnowledgeBasesResponse.Unmarshal(m, b)
}
func (m *ListKnowledgeBasesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListKnowledgeBasesResponse.Marshal(b, m, deterministic)
}
func (dst *ListKnowledgeBasesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListKnowledgeBasesResponse.Merge(dst, src)
}
func (m *ListKnowledgeBasesResponse) XXX_Size() int {
return xxx_messageInfo_ListKnowledgeBasesResponse.Size(m)
}
func (m *ListKnowledgeBasesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListKnowledgeBasesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListKnowledgeBasesResponse proto.InternalMessageInfo
func (m *ListKnowledgeBasesResponse) GetKnowledgeBases() []*KnowledgeBase {
if m != nil {
return m.KnowledgeBases
}
return nil
}
func (m *ListKnowledgeBasesResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
}
return ""
}
// Request message for [KnowledgeBase.GetDocument][].
type GetKnowledgeBaseRequest struct {
// Required. The name of the knowledge base to retrieve.
// Format `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetKnowledgeBaseRequest) Reset() { *m = GetKnowledgeBaseRequest{} }
func (m *GetKnowledgeBaseRequest) String() string { return proto.CompactTextString(m) }
func (*GetKnowledgeBaseRequest) ProtoMessage() {}
func (*GetKnowledgeBaseRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_knowledge_base_5078794a2722dd36, []int{3}
}
func (m *GetKnowledgeBaseRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetKnowledgeBaseRequest.Unmarshal(m, b)
}
func (m *GetKnowledgeBaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetKnowledgeBaseRequest.Marshal(b, m, deterministic)
}
func (dst *GetKnowledgeBaseRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetKnowledgeBaseRequest.Merge(dst, src)
}
func (m *GetKnowledgeBaseRequest) XXX_Size() int {
return xxx_messageInfo_GetKnowledgeBaseRequest.Size(m)
}
func (m *GetKnowledgeBaseRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetKnowledgeBaseRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetKnowledgeBaseRequest proto.InternalMessageInfo
func (m *GetKnowledgeBaseRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// Request message for [KnowledgeBases.CreateKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.CreateKnowledgeBase].
type CreateKnowledgeBaseRequest struct {
// Required. The agent to create a knowledge base for.
// Format: `projects/<Project ID>/agent`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The knowledge base to create.
KnowledgeBase *KnowledgeBase `protobuf:"bytes,2,opt,name=knowledge_base,json=knowledgeBase,proto3" json:"knowledge_base,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateKnowledgeBaseRequest) Reset() { *m = CreateKnowledgeBaseRequest{} }
func (m *CreateKnowledgeBaseRequest) String() string { return proto.CompactTextString(m) }
func (*CreateKnowledgeBaseRequest) ProtoMessage() {}
func (*CreateKnowledgeBaseRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_knowledge_base_5078794a2722dd36, []int{4}
}
func (m *CreateKnowledgeBaseRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateKnowledgeBaseRequest.Unmarshal(m, b)
}
func (m *CreateKnowledgeBaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateKnowledgeBaseRequest.Marshal(b, m, deterministic)
}
func (dst *CreateKnowledgeBaseRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateKnowledgeBaseRequest.Merge(dst, src)
}
func (m *CreateKnowledgeBaseRequest) XXX_Size() int {
return xxx_messageInfo_CreateKnowledgeBaseRequest.Size(m)
}
func (m *CreateKnowledgeBaseRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateKnowledgeBaseRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateKnowledgeBaseRequest proto.InternalMessageInfo
func (m *CreateKnowledgeBaseRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *CreateKnowledgeBaseRequest) GetKnowledgeBase() *KnowledgeBase {
if m != nil {
return m.KnowledgeBase
}
return nil
}
// Request message for [KnowledgeBases.DeleteKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.DeleteKnowledgeBase].
type DeleteKnowledgeBaseRequest struct {
// Required. The name of the knowledge base to delete.
// Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. Force deletes the knowledge base. When set to true, any documents
// in the knowledge base are also deleted.
Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteKnowledgeBaseRequest) Reset() { *m = DeleteKnowledgeBaseRequest{} }
func (m *DeleteKnowledgeBaseRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteKnowledgeBaseRequest) ProtoMessage() {}
func (*DeleteKnowledgeBaseRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_knowledge_base_5078794a2722dd36, []int{5}
}
func (m *DeleteKnowledgeBaseRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteKnowledgeBaseRequest.Unmarshal(m, b)
}
func (m *DeleteKnowledgeBaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteKnowledgeBaseRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteKnowledgeBaseRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteKnowledgeBaseRequest.Merge(dst, src)
}
func (m *DeleteKnowledgeBaseRequest) XXX_Size() int {
return xxx_messageInfo_DeleteKnowledgeBaseRequest.Size(m)
}
func (m *DeleteKnowledgeBaseRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteKnowledgeBaseRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteKnowledgeBaseRequest proto.InternalMessageInfo
func (m *DeleteKnowledgeBaseRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *DeleteKnowledgeBaseRequest) GetForce() bool {
if m != nil {
return m.Force
}
return false
}
func init() {
proto.RegisterType((*KnowledgeBase)(nil), "google.cloud.dialogflow.v2beta1.KnowledgeBase")
proto.RegisterType((*ListKnowledgeBasesRequest)(nil), "google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest")
proto.RegisterType((*ListKnowledgeBasesResponse)(nil), "google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse")
proto.RegisterType((*GetKnowledgeBaseRequest)(nil), "google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest")
proto.RegisterType((*CreateKnowledgeBaseRequest)(nil), "google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest")
proto.RegisterType((*DeleteKnowledgeBaseRequest)(nil), "google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// KnowledgeBasesClient is the client API for KnowledgeBases service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type KnowledgeBasesClient interface {
// Returns the list of all knowledge bases of the specified agent.
ListKnowledgeBases(ctx context.Context, in *ListKnowledgeBasesRequest, opts ...grpc.CallOption) (*ListKnowledgeBasesResponse, error)
// Retrieves the specified knowledge base.
GetKnowledgeBase(ctx context.Context, in *GetKnowledgeBaseRequest, opts ...grpc.CallOption) (*KnowledgeBase, error)
// Creates a knowledge base.
CreateKnowledgeBase(ctx context.Context, in *CreateKnowledgeBaseRequest, opts ...grpc.CallOption) (*KnowledgeBase, error)
// Deletes the specified knowledge base.
DeleteKnowledgeBase(ctx context.Context, in *DeleteKnowledgeBaseRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}
type knowledgeBasesClient struct {
cc *grpc.ClientConn
}
func NewKnowledgeBasesClient(cc *grpc.ClientConn) KnowledgeBasesClient {
return &knowledgeBasesClient{cc}
}
func (c *knowledgeBasesClient) ListKnowledgeBases(ctx context.Context, in *ListKnowledgeBasesRequest, opts ...grpc.CallOption) (*ListKnowledgeBasesResponse, error) {
out := new(ListKnowledgeBasesResponse)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.KnowledgeBases/ListKnowledgeBases", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *knowledgeBasesClient) GetKnowledgeBase(ctx context.Context, in *GetKnowledgeBaseRequest, opts ...grpc.CallOption) (*KnowledgeBase, error) {
out := new(KnowledgeBase)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.KnowledgeBases/GetKnowledgeBase", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *knowledgeBasesClient) CreateKnowledgeBase(ctx context.Context, in *CreateKnowledgeBaseRequest, opts ...grpc.CallOption) (*KnowledgeBase, error) {
out := new(KnowledgeBase)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.KnowledgeBases/CreateKnowledgeBase", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *knowledgeBasesClient) DeleteKnowledgeBase(ctx context.Context, in *DeleteKnowledgeBaseRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.KnowledgeBases/DeleteKnowledgeBase", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// KnowledgeBasesServer is the server API for KnowledgeBases service.
type KnowledgeBasesServer interface {
// Returns the list of all knowledge bases of the specified agent.
ListKnowledgeBases(context.Context, *ListKnowledgeBasesRequest) (*ListKnowledgeBasesResponse, error)
// Retrieves the specified knowledge base.
GetKnowledgeBase(context.Context, *GetKnowledgeBaseRequest) (*KnowledgeBase, error)
// Creates a knowledge base.
CreateKnowledgeBase(context.Context, *CreateKnowledgeBaseRequest) (*KnowledgeBase, error)
// Deletes the specified knowledge base.
DeleteKnowledgeBase(context.Context, *DeleteKnowledgeBaseRequest) (*empty.Empty, error)
}
func RegisterKnowledgeBasesServer(s *grpc.Server, srv KnowledgeBasesServer) {
s.RegisterService(&_KnowledgeBases_serviceDesc, srv)
}
func _KnowledgeBases_ListKnowledgeBases_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListKnowledgeBasesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(KnowledgeBasesServer).ListKnowledgeBases(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.dialogflow.v2beta1.KnowledgeBases/ListKnowledgeBases",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(KnowledgeBasesServer).ListKnowledgeBases(ctx, req.(*ListKnowledgeBasesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _KnowledgeBases_GetKnowledgeBase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetKnowledgeBaseRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(KnowledgeBasesServer).GetKnowledgeBase(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.dialogflow.v2beta1.KnowledgeBases/GetKnowledgeBase",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(KnowledgeBasesServer).GetKnowledgeBase(ctx, req.(*GetKnowledgeBaseRequest))
}
return interceptor(ctx, in, info, handler)
}
func _KnowledgeBases_CreateKnowledgeBase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateKnowledgeBaseRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(KnowledgeBasesServer).CreateKnowledgeBase(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.dialogflow.v2beta1.KnowledgeBases/CreateKnowledgeBase",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(KnowledgeBasesServer).CreateKnowledgeBase(ctx, req.(*CreateKnowledgeBaseRequest))
}
return interceptor(ctx, in, info, handler)
}
func _KnowledgeBases_DeleteKnowledgeBase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteKnowledgeBaseRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(KnowledgeBasesServer).DeleteKnowledgeBase(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.dialogflow.v2beta1.KnowledgeBases/DeleteKnowledgeBase",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(KnowledgeBasesServer).DeleteKnowledgeBase(ctx, req.(*DeleteKnowledgeBaseRequest))
}
return interceptor(ctx, in, info, handler)
}
var _KnowledgeBases_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.dialogflow.v2beta1.KnowledgeBases",
HandlerType: (*KnowledgeBasesServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListKnowledgeBases",
Handler: _KnowledgeBases_ListKnowledgeBases_Handler,
},
{
MethodName: "GetKnowledgeBase",
Handler: _KnowledgeBases_GetKnowledgeBase_Handler,
},
{
MethodName: "CreateKnowledgeBase",
Handler: _KnowledgeBases_CreateKnowledgeBase_Handler,
},
{
MethodName: "DeleteKnowledgeBase",
Handler: _KnowledgeBases_DeleteKnowledgeBase_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/dialogflow/v2beta1/knowledge_base.proto",
}
func init() {
proto.RegisterFile("google/cloud/dialogflow/v2beta1/knowledge_base.proto", fileDescriptor_knowledge_base_5078794a2722dd36)
}
var fileDescriptor_knowledge_base_5078794a2722dd36 = []byte{
// 639 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xcf, 0x4f, 0xd4, 0x40,
0x14, 0xce, 0x2c, 0x82, 0x30, 0x08, 0x98, 0xc1, 0x20, 0x16, 0x0d, 0x58, 0x13, 0x43, 0xd6, 0xd8,
0x09, 0xe0, 0xc1, 0x40, 0xbc, 0x00, 0x42, 0x8c, 0xc6, 0x90, 0xf5, 0x57, 0xc2, 0x65, 0x33, 0xbb,
0xfb, 0xb6, 0xd6, 0xed, 0xce, 0xd4, 0xce, 0x20, 0x82, 0xe1, 0xc2, 0xcd, 0x98, 0x78, 0xf1, 0xec,
0xc5, 0xa3, 0x27, 0xff, 0x17, 0xbd, 0x79, 0x35, 0xfe, 0x0b, 0x7a, 0x34, 0x9d, 0xe9, 0x02, 0x53,
0x5a, 0xd7, 0x7a, 0xdb, 0x79, 0x6f, 0xbe, 0x37,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diff suppressed because it is too large Load Diff

View File

@ -1,14 +1,14 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/dialogflow/v2beta1/session_entity_type.proto
package dialogflow
package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import empty "github.com/golang/protobuf/ptypes/empty"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf2 "github.com/golang/protobuf/ptypes/empty"
import google_protobuf3 "google.golang.org/genproto/protobuf/field_mask"
import field_mask "google.golang.org/genproto/protobuf/field_mask"
import (
context "golang.org/x/net/context"
@ -20,6 +20,12 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The types of modifications for a session entity type.
type SessionEntityType_EntityOverrideMode int32
@ -53,7 +59,7 @@ func (x SessionEntityType_EntityOverrideMode) String() string {
return proto.EnumName(SessionEntityType_EntityOverrideMode_name, int32(x))
}
func (SessionEntityType_EntityOverrideMode) EnumDescriptor() ([]byte, []int) {
return fileDescriptor5, []int{0, 0}
return fileDescriptor_session_entity_type_0a5ede95d4809454, []int{0, 0}
}
// Represents a session entity type.
@ -67,23 +73,45 @@ type SessionEntityType struct {
// Required. The unique identifier of this session entity type. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
// Display Name>`, or
// `projects/<Project ID>/agent/runtimes/<Runtime ID>sessions/<Session
// ID>/entityTypes/<Entity Type Display Name>`.
// Note: Runtimes are under construction and will be available soon.
// If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
// ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`.
// If `Environment ID` is not specified, we assume default 'draft'
// environment. If `User ID` is not specified, we assume default '-' user.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Indicates whether the additional data should override or
// supplement the developer entity type definition.
EntityOverrideMode SessionEntityType_EntityOverrideMode `protobuf:"varint,2,opt,name=entity_override_mode,json=entityOverrideMode,enum=google.cloud.dialogflow.v2beta1.SessionEntityType_EntityOverrideMode" json:"entity_override_mode,omitempty"`
EntityOverrideMode SessionEntityType_EntityOverrideMode `protobuf:"varint,2,opt,name=entity_override_mode,json=entityOverrideMode,proto3,enum=google.cloud.dialogflow.v2beta1.SessionEntityType_EntityOverrideMode" json:"entity_override_mode,omitempty"`
// Required. The collection of entities associated with this session entity
// type.
Entities []*EntityType_Entity `protobuf:"bytes,3,rep,name=entities" json:"entities,omitempty"`
Entities []*EntityType_Entity `protobuf:"bytes,3,rep,name=entities,proto3" json:"entities,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SessionEntityType) Reset() { *m = SessionEntityType{} }
func (m *SessionEntityType) String() string { return proto.CompactTextString(m) }
func (*SessionEntityType) ProtoMessage() {}
func (*SessionEntityType) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{0} }
func (m *SessionEntityType) Reset() { *m = SessionEntityType{} }
func (m *SessionEntityType) String() string { return proto.CompactTextString(m) }
func (*SessionEntityType) ProtoMessage() {}
func (*SessionEntityType) Descriptor() ([]byte, []int) {
return fileDescriptor_session_entity_type_0a5ede95d4809454, []int{0}
}
func (m *SessionEntityType) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SessionEntityType.Unmarshal(m, b)
}
func (m *SessionEntityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SessionEntityType.Marshal(b, m, deterministic)
}
func (dst *SessionEntityType) XXX_Merge(src proto.Message) {
xxx_messageInfo_SessionEntityType.Merge(dst, src)
}
func (m *SessionEntityType) XXX_Size() int {
return xxx_messageInfo_SessionEntityType.Size(m)
}
func (m *SessionEntityType) XXX_DiscardUnknown() {
xxx_messageInfo_SessionEntityType.DiscardUnknown(m)
}
var xxx_messageInfo_SessionEntityType proto.InternalMessageInfo
func (m *SessionEntityType) GetName() string {
if m != nil {
@ -110,21 +138,44 @@ func (m *SessionEntityType) GetEntities() []*EntityType_Entity {
type ListSessionEntityTypesRequest struct {
// Required. The session to list all session entity types from.
// Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
// `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`.
// Note: Runtimes are under construction and will be available soon.
// If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
// `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
// sessions/<Session ID>`.
// If `Environment ID` is not specified, we assume default 'draft'
// environment. If `User ID` is not specified, we assume default '-' user.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of items to return in a single page. By
// default 100 and at most 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The next_page_token value returned from a previous list request.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListSessionEntityTypesRequest) Reset() { *m = ListSessionEntityTypesRequest{} }
func (m *ListSessionEntityTypesRequest) String() string { return proto.CompactTextString(m) }
func (*ListSessionEntityTypesRequest) ProtoMessage() {}
func (*ListSessionEntityTypesRequest) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{1} }
func (m *ListSessionEntityTypesRequest) Reset() { *m = ListSessionEntityTypesRequest{} }
func (m *ListSessionEntityTypesRequest) String() string { return proto.CompactTextString(m) }
func (*ListSessionEntityTypesRequest) ProtoMessage() {}
func (*ListSessionEntityTypesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_session_entity_type_0a5ede95d4809454, []int{1}
}
func (m *ListSessionEntityTypesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListSessionEntityTypesRequest.Unmarshal(m, b)
}
func (m *ListSessionEntityTypesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListSessionEntityTypesRequest.Marshal(b, m, deterministic)
}
func (dst *ListSessionEntityTypesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListSessionEntityTypesRequest.Merge(dst, src)
}
func (m *ListSessionEntityTypesRequest) XXX_Size() int {
return xxx_messageInfo_ListSessionEntityTypesRequest.Size(m)
}
func (m *ListSessionEntityTypesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListSessionEntityTypesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListSessionEntityTypesRequest proto.InternalMessageInfo
func (m *ListSessionEntityTypesRequest) GetParent() string {
if m != nil {
@ -151,16 +202,38 @@ func (m *ListSessionEntityTypesRequest) GetPageToken() string {
type ListSessionEntityTypesResponse struct {
// The list of session entity types. There will be a maximum number of items
// returned based on the page_size field in the request.
SessionEntityTypes []*SessionEntityType `protobuf:"bytes,1,rep,name=session_entity_types,json=sessionEntityTypes" json:"session_entity_types,omitempty"`
SessionEntityTypes []*SessionEntityType `protobuf:"bytes,1,rep,name=session_entity_types,json=sessionEntityTypes,proto3" json:"session_entity_types,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListSessionEntityTypesResponse) Reset() { *m = ListSessionEntityTypesResponse{} }
func (m *ListSessionEntityTypesResponse) String() string { return proto.CompactTextString(m) }
func (*ListSessionEntityTypesResponse) ProtoMessage() {}
func (*ListSessionEntityTypesResponse) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{2} }
func (m *ListSessionEntityTypesResponse) Reset() { *m = ListSessionEntityTypesResponse{} }
func (m *ListSessionEntityTypesResponse) String() string { return proto.CompactTextString(m) }
func (*ListSessionEntityTypesResponse) ProtoMessage() {}
func (*ListSessionEntityTypesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_session_entity_type_0a5ede95d4809454, []int{2}
}
func (m *ListSessionEntityTypesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListSessionEntityTypesResponse.Unmarshal(m, b)
}
func (m *ListSessionEntityTypesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListSessionEntityTypesResponse.Marshal(b, m, deterministic)
}
func (dst *ListSessionEntityTypesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListSessionEntityTypesResponse.Merge(dst, src)
}
func (m *ListSessionEntityTypesResponse) XXX_Size() int {
return xxx_messageInfo_ListSessionEntityTypesResponse.Size(m)
}
func (m *ListSessionEntityTypesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListSessionEntityTypesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListSessionEntityTypesResponse proto.InternalMessageInfo
func (m *ListSessionEntityTypesResponse) GetSessionEntityTypes() []*SessionEntityType {
if m != nil {
@ -180,17 +253,39 @@ func (m *ListSessionEntityTypesResponse) GetNextPageToken() string {
type GetSessionEntityTypeRequest struct {
// Required. The name of the session entity type. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
// Display Name>` or `projects/<Project ID>/agent/runtimes/<Runtime
// ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`. Note:
// Runtimes are under construction and will be available soon. If <Runtime ID>
// is not specified, we assume default 'sandbox' runtime.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// Display Name>` or `projects/<Project ID>/agent/environments/<Environment
// ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
// Name>`. If `Environment ID` is not specified, we assume default 'draft'
// environment. If `User ID` is not specified, we assume default '-' user.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetSessionEntityTypeRequest) Reset() { *m = GetSessionEntityTypeRequest{} }
func (m *GetSessionEntityTypeRequest) String() string { return proto.CompactTextString(m) }
func (*GetSessionEntityTypeRequest) ProtoMessage() {}
func (*GetSessionEntityTypeRequest) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{3} }
func (m *GetSessionEntityTypeRequest) Reset() { *m = GetSessionEntityTypeRequest{} }
func (m *GetSessionEntityTypeRequest) String() string { return proto.CompactTextString(m) }
func (*GetSessionEntityTypeRequest) ProtoMessage() {}
func (*GetSessionEntityTypeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_session_entity_type_0a5ede95d4809454, []int{3}
}
func (m *GetSessionEntityTypeRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetSessionEntityTypeRequest.Unmarshal(m, b)
}
func (m *GetSessionEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetSessionEntityTypeRequest.Marshal(b, m, deterministic)
}
func (dst *GetSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetSessionEntityTypeRequest.Merge(dst, src)
}
func (m *GetSessionEntityTypeRequest) XXX_Size() int {
return xxx_messageInfo_GetSessionEntityTypeRequest.Size(m)
}
func (m *GetSessionEntityTypeRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetSessionEntityTypeRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetSessionEntityTypeRequest proto.InternalMessageInfo
func (m *GetSessionEntityTypeRequest) GetName() string {
if m != nil {
@ -203,18 +298,41 @@ func (m *GetSessionEntityTypeRequest) GetName() string {
type CreateSessionEntityTypeRequest struct {
// Required. The session to create a session entity type for.
// Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
// `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`.
// Note: Runtimes are under construction and will be available soon.
// If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
// `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
// sessions/<Session ID>`. If `Environment ID` is not specified, we assume
// default 'draft' environment. If `User ID` is not specified, we assume
// default '-' user.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The session entity type to create.
SessionEntityType *SessionEntityType `protobuf:"bytes,2,opt,name=session_entity_type,json=sessionEntityType" json:"session_entity_type,omitempty"`
SessionEntityType *SessionEntityType `protobuf:"bytes,2,opt,name=session_entity_type,json=sessionEntityType,proto3" json:"session_entity_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateSessionEntityTypeRequest) Reset() { *m = CreateSessionEntityTypeRequest{} }
func (m *CreateSessionEntityTypeRequest) String() string { return proto.CompactTextString(m) }
func (*CreateSessionEntityTypeRequest) ProtoMessage() {}
func (*CreateSessionEntityTypeRequest) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{4} }
func (m *CreateSessionEntityTypeRequest) Reset() { *m = CreateSessionEntityTypeRequest{} }
func (m *CreateSessionEntityTypeRequest) String() string { return proto.CompactTextString(m) }
func (*CreateSessionEntityTypeRequest) ProtoMessage() {}
func (*CreateSessionEntityTypeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_session_entity_type_0a5ede95d4809454, []int{4}
}
func (m *CreateSessionEntityTypeRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateSessionEntityTypeRequest.Unmarshal(m, b)
}
func (m *CreateSessionEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateSessionEntityTypeRequest.Marshal(b, m, deterministic)
}
func (dst *CreateSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateSessionEntityTypeRequest.Merge(dst, src)
}
func (m *CreateSessionEntityTypeRequest) XXX_Size() int {
return xxx_messageInfo_CreateSessionEntityTypeRequest.Size(m)
}
func (m *CreateSessionEntityTypeRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateSessionEntityTypeRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateSessionEntityTypeRequest proto.InternalMessageInfo
func (m *CreateSessionEntityTypeRequest) GetParent() string {
if m != nil {
@ -234,19 +352,41 @@ func (m *CreateSessionEntityTypeRequest) GetSessionEntityType() *SessionEntityTy
type UpdateSessionEntityTypeRequest struct {
// Required. The entity type to update. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
// Display Name>` or `projects/<Project ID>/agent/runtimes/<Runtime
// ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`. Note:
// Runtimes are under construction and will be available soon. If <Runtime ID>
// is not specified, we assume default 'sandbox' runtime.
SessionEntityType *SessionEntityType `protobuf:"bytes,1,opt,name=session_entity_type,json=sessionEntityType" json:"session_entity_type,omitempty"`
// Display Name>` or `projects/<Project ID>/agent/environments/<Environment
// ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
// Name>`. If `Environment ID` is not specified, we assume default 'draft'
// environment. If `User ID` is not specified, we assume default '-' user.
SessionEntityType *SessionEntityType `protobuf:"bytes,1,opt,name=session_entity_type,json=sessionEntityType,proto3" json:"session_entity_type,omitempty"`
// Optional. The mask to control which fields get updated.
UpdateMask *google_protobuf3.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateSessionEntityTypeRequest) Reset() { *m = UpdateSessionEntityTypeRequest{} }
func (m *UpdateSessionEntityTypeRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateSessionEntityTypeRequest) ProtoMessage() {}
func (*UpdateSessionEntityTypeRequest) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{5} }
func (m *UpdateSessionEntityTypeRequest) Reset() { *m = UpdateSessionEntityTypeRequest{} }
func (m *UpdateSessionEntityTypeRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateSessionEntityTypeRequest) ProtoMessage() {}
func (*UpdateSessionEntityTypeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_session_entity_type_0a5ede95d4809454, []int{5}
}
func (m *UpdateSessionEntityTypeRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateSessionEntityTypeRequest.Unmarshal(m, b)
}
func (m *UpdateSessionEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateSessionEntityTypeRequest.Marshal(b, m, deterministic)
}
func (dst *UpdateSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateSessionEntityTypeRequest.Merge(dst, src)
}
func (m *UpdateSessionEntityTypeRequest) XXX_Size() int {
return xxx_messageInfo_UpdateSessionEntityTypeRequest.Size(m)
}
func (m *UpdateSessionEntityTypeRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateSessionEntityTypeRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateSessionEntityTypeRequest proto.InternalMessageInfo
func (m *UpdateSessionEntityTypeRequest) GetSessionEntityType() *SessionEntityType {
if m != nil {
@ -255,7 +395,7 @@ func (m *UpdateSessionEntityTypeRequest) GetSessionEntityType() *SessionEntityTy
return nil
}
func (m *UpdateSessionEntityTypeRequest) GetUpdateMask() *google_protobuf3.FieldMask {
func (m *UpdateSessionEntityTypeRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
@ -266,17 +406,39 @@ func (m *UpdateSessionEntityTypeRequest) GetUpdateMask() *google_protobuf3.Field
type DeleteSessionEntityTypeRequest struct {
// Required. The name of the entity type to delete. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
// Display Name>` or `projects/<Project ID>/agent/runtimes/<Runtime
// ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`. Note:
// Runtimes are under construction and will be available soon. If <Runtime ID>
// is not specified, we assume default 'sandbox' runtime.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// Display Name>` or `projects/<Project ID>/agent/environments/<Environment
// ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
// Name>`. If `Environment ID` is not specified, we assume default 'draft'
// environment. If `User ID` is not specified, we assume default '-' user.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteSessionEntityTypeRequest) Reset() { *m = DeleteSessionEntityTypeRequest{} }
func (m *DeleteSessionEntityTypeRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteSessionEntityTypeRequest) ProtoMessage() {}
func (*DeleteSessionEntityTypeRequest) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{6} }
func (m *DeleteSessionEntityTypeRequest) Reset() { *m = DeleteSessionEntityTypeRequest{} }
func (m *DeleteSessionEntityTypeRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteSessionEntityTypeRequest) ProtoMessage() {}
func (*DeleteSessionEntityTypeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_session_entity_type_0a5ede95d4809454, []int{6}
}
func (m *DeleteSessionEntityTypeRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteSessionEntityTypeRequest.Unmarshal(m, b)
}
func (m *DeleteSessionEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteSessionEntityTypeRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteSessionEntityTypeRequest.Merge(dst, src)
}
func (m *DeleteSessionEntityTypeRequest) XXX_Size() int {
return xxx_messageInfo_DeleteSessionEntityTypeRequest.Size(m)
}
func (m *DeleteSessionEntityTypeRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteSessionEntityTypeRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteSessionEntityTypeRequest proto.InternalMessageInfo
func (m *DeleteSessionEntityTypeRequest) GetName() string {
if m != nil {
@ -304,8 +466,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for SessionEntityTypes service
// SessionEntityTypesClient is the client API for SessionEntityTypes service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type SessionEntityTypesClient interface {
// Returns the list of all session entity types in the specified session.
ListSessionEntityTypes(ctx context.Context, in *ListSessionEntityTypesRequest, opts ...grpc.CallOption) (*ListSessionEntityTypesResponse, error)
@ -316,7 +479,7 @@ type SessionEntityTypesClient interface {
// Updates the specified session entity type.
UpdateSessionEntityType(ctx context.Context, in *UpdateSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error)
// Deletes the specified session entity type.
DeleteSessionEntityType(ctx context.Context, in *DeleteSessionEntityTypeRequest, opts ...grpc.CallOption) (*google_protobuf2.Empty, error)
DeleteSessionEntityType(ctx context.Context, in *DeleteSessionEntityTypeRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}
type sessionEntityTypesClient struct {
@ -329,7 +492,7 @@ func NewSessionEntityTypesClient(cc *grpc.ClientConn) SessionEntityTypesClient {
func (c *sessionEntityTypesClient) ListSessionEntityTypes(ctx context.Context, in *ListSessionEntityTypesRequest, opts ...grpc.CallOption) (*ListSessionEntityTypesResponse, error) {
out := new(ListSessionEntityTypesResponse)
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/ListSessionEntityTypes", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/ListSessionEntityTypes", in, out, opts...)
if err != nil {
return nil, err
}
@ -338,7 +501,7 @@ func (c *sessionEntityTypesClient) ListSessionEntityTypes(ctx context.Context, i
func (c *sessionEntityTypesClient) GetSessionEntityType(ctx context.Context, in *GetSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error) {
out := new(SessionEntityType)
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/GetSessionEntityType", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/GetSessionEntityType", in, out, opts...)
if err != nil {
return nil, err
}
@ -347,7 +510,7 @@ func (c *sessionEntityTypesClient) GetSessionEntityType(ctx context.Context, in
func (c *sessionEntityTypesClient) CreateSessionEntityType(ctx context.Context, in *CreateSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error) {
out := new(SessionEntityType)
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/CreateSessionEntityType", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/CreateSessionEntityType", in, out, opts...)
if err != nil {
return nil, err
}
@ -356,24 +519,23 @@ func (c *sessionEntityTypesClient) CreateSessionEntityType(ctx context.Context,
func (c *sessionEntityTypesClient) UpdateSessionEntityType(ctx context.Context, in *UpdateSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error) {
out := new(SessionEntityType)
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/UpdateSessionEntityType", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/UpdateSessionEntityType", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *sessionEntityTypesClient) DeleteSessionEntityType(ctx context.Context, in *DeleteSessionEntityTypeRequest, opts ...grpc.CallOption) (*google_protobuf2.Empty, error) {
out := new(google_protobuf2.Empty)
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/DeleteSessionEntityType", in, out, c.cc, opts...)
func (c *sessionEntityTypesClient) DeleteSessionEntityType(ctx context.Context, in *DeleteSessionEntityTypeRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/DeleteSessionEntityType", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for SessionEntityTypes service
// SessionEntityTypesServer is the server API for SessionEntityTypes service.
type SessionEntityTypesServer interface {
// Returns the list of all session entity types in the specified session.
ListSessionEntityTypes(context.Context, *ListSessionEntityTypesRequest) (*ListSessionEntityTypesResponse, error)
@ -384,7 +546,7 @@ type SessionEntityTypesServer interface {
// Updates the specified session entity type.
UpdateSessionEntityType(context.Context, *UpdateSessionEntityTypeRequest) (*SessionEntityType, error)
// Deletes the specified session entity type.
DeleteSessionEntityType(context.Context, *DeleteSessionEntityTypeRequest) (*google_protobuf2.Empty, error)
DeleteSessionEntityType(context.Context, *DeleteSessionEntityTypeRequest) (*empty.Empty, error)
}
func RegisterSessionEntityTypesServer(s *grpc.Server, srv SessionEntityTypesServer) {
@ -511,63 +673,64 @@ var _SessionEntityTypes_serviceDesc = grpc.ServiceDesc{
}
func init() {
proto.RegisterFile("google/cloud/dialogflow/v2beta1/session_entity_type.proto", fileDescriptor5)
proto.RegisterFile("google/cloud/dialogflow/v2beta1/session_entity_type.proto", fileDescriptor_session_entity_type_0a5ede95d4809454)
}
var fileDescriptor5 = []byte{
// 863 bytes of a gzipped FileDescriptorProto
var fileDescriptor_session_entity_type_0a5ede95d4809454 = []byte{
// 870 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcf, 0x6f, 0xe3, 0x44,
0x14, 0x66, 0x5c, 0x58, 0xed, 0xce, 0xf2, 0xa3, 0x3b, 0x54, 0x69, 0x94, 0xd2, 0x34, 0x78, 0x11,
0xaa, 0x72, 0xb0, 0xd5, 0xc0, 0x65, 0x59, 0x7e, 0x48, 0xdb, 0x38, 0xab, 0x48, 0x9b, 0x34, 0x72,
0xd2, 0x15, 0x94, 0x83, 0xe5, 0xd4, 0xaf, 0x96, 0x69, 0xe2, 0x31, 0x9e, 0xc9, 0x2e, 0x29, 0xea,
0xa5, 0xdc, 0xb8, 0x70, 0x40, 0xdc, 0x38, 0x71, 0xe0, 0x80, 0x04, 0xa7, 0xfe, 0x03, 0x1c, 0xf8,
0x0b, 0x10, 0x37, 0x8e, 0x5c, 0x39, 0x22, 0x71, 0x03, 0x79, 0xec, 0x34, 0xa5, 0x1e, 0xdb, 0x21,
0xdb, 0x9b, 0xe7, 0xcd, 0x7c, 0xef, 0xbd, 0xef, 0x9b, 0xf7, 0x9e, 0x07, 0xdf, 0x73, 0x29, 0x75,
0x47, 0xa0, 0x1f, 0x8e, 0xe8, 0xc4, 0xd1, 0x1d, 0xcf, 0x1e, 0x51, 0xf7, 0x68, 0x44, 0x9f, 0xea,
0x4f, 0x1a, 0x43, 0xe0, 0x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, 0xc2, 0xcf, 0xc8, 0xd9, 0x76, 0xd7, 0x9f, 0x67, 0xbb, 0xeb, 0xb7, 0xbe,
0xdd, 0x4f, 0x7e, 0x44, 0xf8, 0xe1, 0x3e, 0x1b, 0x15, 0xf1, 0x7e, 0x52, 0x4a, 0x50, 0xee, 0x86,
0x0c, 0xbb, 0x68, 0xaf, 0x15, 0x43, 0x5d, 0x36, 0xb4, 0xa9, 0xab, 0xb1, 0xc0, 0xd5, 0x5d, 0xa0,
0x92, 0xbf, 0x1e, 0x3d, 0xb2, 0x7d, 0x8f, 0x67, 0x7e, 0x8a, 0x3f, 0x9e, 0x85, 0xfe, 0x41, 0xe8,
0x5b, 0x45, 0x69, 0x6e, 0x7d, 0xa7, 0xac, 0x3d, 0x8d, 0x72, 0x6e, 0xca, 0x76, 0x9a, 0xb3, 0x76,
0x76, 0x23, 0xd0, 0xe0, 0x8e, 0xcc, 0xff, 0xce, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xdc, 0xc9,
0xd4, 0x00, 0x63, 0x0c, 0x00, 0x00,
}

View File

@ -1,40 +1,70 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/dialogflow/v2beta1/webhook.proto
package dialogflow
package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _struct "github.com/golang/protobuf/ptypes/struct"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf4 "github.com/golang/protobuf/ptypes/struct"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The request message for a webhook call.
type WebhookRequest struct {
// The unique identifier of detectIntent request session.
// Can be used to identify end-user inside webhook implementation.
// Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
Session string `protobuf:"bytes,4,opt,name=session" json:"session,omitempty"`
Session string `protobuf:"bytes,4,opt,name=session,proto3" json:"session,omitempty"`
// The unique identifier of the response. Contains the same value as
// `[Streaming]DetectIntentResponse.response_id`.
ResponseId string `protobuf:"bytes,1,opt,name=response_id,json=responseId" json:"response_id,omitempty"`
ResponseId string `protobuf:"bytes,1,opt,name=response_id,json=responseId,proto3" json:"response_id,omitempty"`
// The result of the conversational query or event processing. Contains the
// same value as `[Streaming]DetectIntentResponse.query_result`.
QueryResult *QueryResult `protobuf:"bytes,2,opt,name=query_result,json=queryResult" json:"query_result,omitempty"`
QueryResult *QueryResult `protobuf:"bytes,2,opt,name=query_result,json=queryResult,proto3" json:"query_result,omitempty"`
// Alternative query results from KnowledgeService.
AlternativeQueryResults []*QueryResult `protobuf:"bytes,5,rep,name=alternative_query_results,json=alternativeQueryResults,proto3" json:"alternative_query_results,omitempty"`
// Optional. The contents of the original request that was passed to
// `[Streaming]DetectIntent` call.
OriginalDetectIntentRequest *OriginalDetectIntentRequest `protobuf:"bytes,3,opt,name=original_detect_intent_request,json=originalDetectIntentRequest" json:"original_detect_intent_request,omitempty"`
OriginalDetectIntentRequest *OriginalDetectIntentRequest `protobuf:"bytes,3,opt,name=original_detect_intent_request,json=originalDetectIntentRequest,proto3" json:"original_detect_intent_request,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebhookRequest) Reset() { *m = WebhookRequest{} }
func (m *WebhookRequest) String() string { return proto.CompactTextString(m) }
func (*WebhookRequest) ProtoMessage() {}
func (*WebhookRequest) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{0} }
func (m *WebhookRequest) Reset() { *m = WebhookRequest{} }
func (m *WebhookRequest) String() string { return proto.CompactTextString(m) }
func (*WebhookRequest) ProtoMessage() {}
func (*WebhookRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_webhook_d5d0c4a657643b71, []int{0}
}
func (m *WebhookRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebhookRequest.Unmarshal(m, b)
}
func (m *WebhookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebhookRequest.Marshal(b, m, deterministic)
}
func (dst *WebhookRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebhookRequest.Merge(dst, src)
}
func (m *WebhookRequest) XXX_Size() int {
return xxx_messageInfo_WebhookRequest.Size(m)
}
func (m *WebhookRequest) XXX_DiscardUnknown() {
xxx_messageInfo_WebhookRequest.DiscardUnknown(m)
}
var xxx_messageInfo_WebhookRequest proto.InternalMessageInfo
func (m *WebhookRequest) GetSession() string {
if m != nil {
@ -57,6 +87,13 @@ func (m *WebhookRequest) GetQueryResult() *QueryResult {
return nil
}
func (m *WebhookRequest) GetAlternativeQueryResults() []*QueryResult {
if m != nil {
return m.AlternativeQueryResults
}
return nil
}
func (m *WebhookRequest) GetOriginalDetectIntentRequest() *OriginalDetectIntentRequest {
if m != nil {
return m.OriginalDetectIntentRequest
@ -68,26 +105,74 @@ func (m *WebhookRequest) GetOriginalDetectIntentRequest() *OriginalDetectIntentR
type WebhookResponse struct {
// Optional. The text to be shown on the screen. This value is passed directly
// to `QueryResult.fulfillment_text`.
FulfillmentText string `protobuf:"bytes,1,opt,name=fulfillment_text,json=fulfillmentText" json:"fulfillment_text,omitempty"`
FulfillmentText string `protobuf:"bytes,1,opt,name=fulfillment_text,json=fulfillmentText,proto3" json:"fulfillment_text,omitempty"`
// Optional. The collection of rich messages to present to the user. This
// value is passed directly to `QueryResult.fulfillment_messages`.
FulfillmentMessages []*Intent_Message `protobuf:"bytes,2,rep,name=fulfillment_messages,json=fulfillmentMessages" json:"fulfillment_messages,omitempty"`
FulfillmentMessages []*Intent_Message `protobuf:"bytes,2,rep,name=fulfillment_messages,json=fulfillmentMessages,proto3" json:"fulfillment_messages,omitempty"`
// Optional. This value is passed directly to `QueryResult.webhook_source`.
Source string `protobuf:"bytes,3,opt,name=source" json:"source,omitempty"`
Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
// Optional. This value is passed directly to `QueryResult.webhook_payload`.
Payload *google_protobuf4.Struct `protobuf:"bytes,4,opt,name=payload" json:"payload,omitempty"`
// See the related `fulfillment_messages[i].payload field`, which may be used
// as an alternative to this field.
//
// This field can be used for Actions on Google responses.
// It should have a structure similar to the JSON message shown here. For more
// information, see
// [Actions on Google Webhook
// Format](https://developers.google.com/actions/dialogflow/webhook)
// <pre>{
// "google": {
// "expectUserResponse": true,
// "richResponse": {
// "items": [
// {
// "simpleResponse": {
// "textToSpeech": "this is a simple response"
// }
// }
// ]
// }
// }
// }</pre>
Payload *_struct.Struct `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
// Optional. The collection of output contexts. This value is passed directly
// to `QueryResult.output_contexts`.
OutputContexts []*Context `protobuf:"bytes,5,rep,name=output_contexts,json=outputContexts" json:"output_contexts,omitempty"`
OutputContexts []*Context `protobuf:"bytes,5,rep,name=output_contexts,json=outputContexts,proto3" json:"output_contexts,omitempty"`
// Optional. Makes the platform immediately invoke another `DetectIntent` call
// internally with the specified event as input.
FollowupEventInput *EventInput `protobuf:"bytes,6,opt,name=followup_event_input,json=followupEventInput" json:"followup_event_input,omitempty"`
FollowupEventInput *EventInput `protobuf:"bytes,6,opt,name=followup_event_input,json=followupEventInput,proto3" json:"followup_event_input,omitempty"`
// Optional. Indicates that this intent ends an interaction. Some integrations
// (e.g., Actions on Google or Dialogflow phone gateway) use this information
// to close interaction with an end user. Default is false.
EndInteraction bool `protobuf:"varint,8,opt,name=end_interaction,json=endInteraction,proto3" json:"end_interaction,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebhookResponse) Reset() { *m = WebhookResponse{} }
func (m *WebhookResponse) String() string { return proto.CompactTextString(m) }
func (*WebhookResponse) ProtoMessage() {}
func (*WebhookResponse) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{1} }
func (m *WebhookResponse) Reset() { *m = WebhookResponse{} }
func (m *WebhookResponse) String() string { return proto.CompactTextString(m) }
func (*WebhookResponse) ProtoMessage() {}
func (*WebhookResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_webhook_d5d0c4a657643b71, []int{1}
}
func (m *WebhookResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebhookResponse.Unmarshal(m, b)
}
func (m *WebhookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebhookResponse.Marshal(b, m, deterministic)
}
func (dst *WebhookResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebhookResponse.Merge(dst, src)
}
func (m *WebhookResponse) XXX_Size() int {
return xxx_messageInfo_WebhookResponse.Size(m)
}
func (m *WebhookResponse) XXX_DiscardUnknown() {
xxx_messageInfo_WebhookResponse.DiscardUnknown(m)
}
var xxx_messageInfo_WebhookResponse proto.InternalMessageInfo
func (m *WebhookResponse) GetFulfillmentText() string {
if m != nil {
@ -110,7 +195,7 @@ func (m *WebhookResponse) GetSource() string {
return ""
}
func (m *WebhookResponse) GetPayload() *google_protobuf4.Struct {
func (m *WebhookResponse) GetPayload() *_struct.Struct {
if m != nil {
return m.Payload
}
@ -131,22 +216,66 @@ func (m *WebhookResponse) GetFollowupEventInput() *EventInput {
return nil
}
func (m *WebhookResponse) GetEndInteraction() bool {
if m != nil {
return m.EndInteraction
}
return false
}
// Represents the contents of the original request that was passed to
// the `[Streaming]DetectIntent` call.
type OriginalDetectIntentRequest struct {
// The source of this request, e.g., `google`, `facebook`, `slack`. It is set
// by Dialogflow-owned servers. Possible values of this field correspond to
// [Intent.Message.Platform][google.cloud.dialogflow.v2beta1.Intent.Message.Platform].
Source string `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"`
// by Dialogflow-owned servers.
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
// Optional. The version of the protocol used for this request.
// This field is AoG-specific.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// Optional. This field is set to the value of `QueryParameters.payload` field
// passed in the request.
Payload *google_protobuf4.Struct `protobuf:"bytes,3,opt,name=payload" json:"payload,omitempty"`
//
// This field is used for the telephony gateway. It should have a
// structure similar to this JSON message:
// <pre>{
// "telephony": {
// "caller_id": "+18558363987"
// }
// }</pre>
// Note: The caller ID field (`caller_id`) will be in
// [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported
// for Enterprise Edition and not for Standard Edition agents. When the
// telephony gateway is used with a standard tier agent the `caller_id` field
// above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`.
Payload *_struct.Struct `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OriginalDetectIntentRequest) Reset() { *m = OriginalDetectIntentRequest{} }
func (m *OriginalDetectIntentRequest) String() string { return proto.CompactTextString(m) }
func (*OriginalDetectIntentRequest) ProtoMessage() {}
func (*OriginalDetectIntentRequest) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{2} }
func (m *OriginalDetectIntentRequest) Reset() { *m = OriginalDetectIntentRequest{} }
func (m *OriginalDetectIntentRequest) String() string { return proto.CompactTextString(m) }
func (*OriginalDetectIntentRequest) ProtoMessage() {}
func (*OriginalDetectIntentRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_webhook_d5d0c4a657643b71, []int{2}
}
func (m *OriginalDetectIntentRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OriginalDetectIntentRequest.Unmarshal(m, b)
}
func (m *OriginalDetectIntentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OriginalDetectIntentRequest.Marshal(b, m, deterministic)
}
func (dst *OriginalDetectIntentRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_OriginalDetectIntentRequest.Merge(dst, src)
}
func (m *OriginalDetectIntentRequest) XXX_Size() int {
return xxx_messageInfo_OriginalDetectIntentRequest.Size(m)
}
func (m *OriginalDetectIntentRequest) XXX_DiscardUnknown() {
xxx_messageInfo_OriginalDetectIntentRequest.DiscardUnknown(m)
}
var xxx_messageInfo_OriginalDetectIntentRequest proto.InternalMessageInfo
func (m *OriginalDetectIntentRequest) GetSource() string {
if m != nil {
@ -155,7 +284,14 @@ func (m *OriginalDetectIntentRequest) GetSource() string {
return ""
}
func (m *OriginalDetectIntentRequest) GetPayload() *google_protobuf4.Struct {
func (m *OriginalDetectIntentRequest) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
func (m *OriginalDetectIntentRequest) GetPayload() *_struct.Struct {
if m != nil {
return m.Payload
}
@ -168,42 +304,48 @@ func init() {
proto.RegisterType((*OriginalDetectIntentRequest)(nil), "google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest")
}
func init() { proto.RegisterFile("google/cloud/dialogflow/v2beta1/webhook.proto", fileDescriptor6) }
var fileDescriptor6 = []byte{
// 538 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x41, 0x6f, 0xd3, 0x30,
0x14, 0x56, 0x52, 0xd8, 0x34, 0x77, 0x5a, 0x91, 0x99, 0x20, 0xda, 0x10, 0xad, 0xca, 0xa5, 0x88,
0x91, 0x68, 0xe5, 0x08, 0xa7, 0xad, 0x80, 0x7a, 0x40, 0xdb, 0x02, 0x02, 0x09, 0x09, 0x45, 0x6e,
0xe2, 0x66, 0x16, 0xae, 0x5f, 0x1a, 0xdb, 0xeb, 0x76, 0xe4, 0x87, 0x20, 0x21, 0x8e, 0xfb, 0x85,
0x1c, 0x51, 0x6c, 0x87, 0xf4, 0x52, 0xb2, 0xe3, 0x7b, 0xfe, 0xb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xff, 0xf3, 0xb6, 0x6b,
0xd9, 0x78, 0x9b, 0xb2, 0xe9, 0xdc, 0x2d, 0x9b, 0x93, 0x5b, 0x0f, 0x3d, 0x4b, 0x61, 0xd1, 0x66,
0xf8, 0x64, 0xd7, 0xad, 0xcb, 0x79, 0x25, 0x74, 0xee, 0x7d, 0x9d, 0x3a, 0x42, 0x0e, 0x9c, 0x88,
0x3c, 0x84, 0x32, 0x8f, 0x72, 0x2a, 0xcc, 0x98, 0xc8, 0x1e, 0x91, 0x82, 0xc9, 0x8d, 0x1f, 0xfa,
0x75, 0xd3, 0xfa, 0xe3, 0x79, 0xbf, 0x7d, 0x7f, 0xf2, 0xee, 0xd6, 0xef, 0xbf, 0xb7, 0x9a, 0xa7,
0xc6, 0xc4, 0xa4, 0x31, 0xf1, 0xd9, 0x92, 0x66, 0x5b, 0x46, 0xff, 0xd5, 0xdf, 0x00, 0x00, 0x00,
0xff, 0xff, 0x52, 0x6e, 0x3d, 0x85, 0xfa, 0x04, 0x00, 0x00,
func init() {
proto.RegisterFile("google/cloud/dialogflow/v2beta1/webhook.proto", fileDescriptor_webhook_d5d0c4a657643b71)
}
var fileDescriptor_webhook_d5d0c4a657643b71 = []byte{
// 603 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xcf, 0x6e, 0xd4, 0x30,
0x10, 0xc6, 0x95, 0x5d, 0xe8, 0x1f, 0x6f, 0xd5, 0x45, 0xa6, 0xa2, 0xa1, 0x45, 0x74, 0x55, 0x0e,
0x2c, 0xa2, 0x24, 0x6a, 0x39, 0xc2, 0xa9, 0x2d, 0xa0, 0x3d, 0xa0, 0xb6, 0x01, 0x81, 0x84, 0x84,
0x22, 0x6f, 0x32, 0x9b, 0x46, 0xb8, 0x9e, 0x34, 0xb6, 0x77, 0xdb, 0x23, 0x1c, 0x79, 0x0c, 0x8e,
0x7d, 0x10, 0x9e, 0x89, 0x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, 0x99, 0xac, 0x4d, 0x90, 0x73, 0x9c, 0xe9, 0x22, 0x86, 0x69, 0x65, 0x42, 0x2e,
0x0a, 0xad, 0xfc, 0x05, 0xd3, 0xd2, 0xd3, 0x56, 0xee, 0xab, 0x4a, 0x33, 0xaa, 0x24, 0x11, 0xad,
0x41, 0xf3, 0x1c, 0x7d, 0x4c, 0xfa, 0x20, 0x52, 0x33, 0x16, 0x25, 0x4b, 0xaa, 0x85, 0xf7, 0x97,
0x06, 0xde, 0x70, 0x29, 0x5a, 0x05, 0x91, 0x8e, 0xe6, 0xd9, 0xed, 0x6f, 0x1e, 0xd9, 0xfc, 0xc7,
0x14, 0x34, 0x5c, 0xf4, 0xfe, 0x72, 0xd1, 0x27, 0x8b, 0x53, 0x28, 0xcd, 0xea, 0x75, 0xec, 0xea,
0xb9, 0xb0, 0xe9, 0x6f, 0xf7, 0x66, 0xfe, 0xee, 0x5f, 0x79, 0xe4, 0x51, 0x82, 0x67, 0x6d, 0x8f,
0xde, 0x5f, 0x71, 0x23, 0x77, 0x5c, 0x81, 0x8e, 0xbd, 0x4f, 0x23, 0x27, 0xc8, 0x90, 0x33, 0x91,
0x05, 0x58, 0x66, 0x61, 0x06, 0xc2, 0x5c, 0x13, 0xda, 0x23, 0x56, 0xe4, 0xf2, 0xda, 0xdf, 0xcf,
0x8b, 0x79, 0xea, 0x97, 0xe7, 0xfd, 0xe8, 0x74, 0x0e, 0x5f, 0x5f, 0x75, 0xb6, 0xde, 0x58, 0xe6,
0x81, 0x69, 0xe2, 0x70, 0xde, 0xc4, 0x07, 0x2b, 0x1a, 0x2f, 0x18, 0xfe, 0xf3, 0xdf, 0x01, 0x00,
0x00, 0xff, 0xff, 0x42, 0x28, 0x28, 0xef, 0xa8, 0x05, 0x00, 0x00,
}

View File

@ -1,38 +1,16 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/functions/v1beta2/functions.proto
/*
Package functions is a generated protocol buffer package.
It is generated from these files:
google/cloud/functions/v1beta2/functions.proto
google/cloud/functions/v1beta2/operations.proto
It has these top-level messages:
CloudFunction
HTTPSTrigger
EventTrigger
SourceRepository
CreateFunctionRequest
UpdateFunctionRequest
GetFunctionRequest
ListFunctionsRequest
ListFunctionsResponse
DeleteFunctionRequest
CallFunctionRequest
CallFunctionResponse
OperationMetadataV1Beta2
*/
package functions
package functions // import "google.golang.org/genproto/googleapis/cloud/functions/v1beta2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import duration "github.com/golang/protobuf/ptypes/duration"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import _ "google.golang.org/genproto/googleapis/api/serviceconfig"
import google_longrunning "google.golang.org/genproto/googleapis/longrunning"
import google_protobuf3 "github.com/golang/protobuf/ptypes/duration"
import google_protobuf4 "github.com/golang/protobuf/ptypes/timestamp"
import longrunning "google.golang.org/genproto/googleapis/longrunning"
import (
context "golang.org/x/net/context"
@ -85,14 +63,16 @@ var CloudFunctionStatus_value = map[string]int32{
func (x CloudFunctionStatus) String() string {
return proto.EnumName(CloudFunctionStatus_name, int32(x))
}
func (CloudFunctionStatus) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (CloudFunctionStatus) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_functions_a18655d3cc58948d, []int{0}
}
// Describes a Cloud Function that contains user computation executed in
// response to an event. It encapsulate function and triggers configurations.
type CloudFunction struct {
// A user-defined name of the function. Function names must be unique
// globally and match pattern `projects/*/locations/*/functions/*`
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The location of the function source code.
//
// Types that are valid to be assigned to SourceCode:
@ -106,73 +86,57 @@ type CloudFunction struct {
// *CloudFunction_EventTrigger
Trigger isCloudFunction_Trigger `protobuf_oneof:"trigger"`
// Output only. Status of the function deployment.
Status CloudFunctionStatus `protobuf:"varint,7,opt,name=status,enum=google.cloud.functions.v1beta2.CloudFunctionStatus" json:"status,omitempty"`
Status CloudFunctionStatus `protobuf:"varint,7,opt,name=status,proto3,enum=google.cloud.functions.v1beta2.CloudFunctionStatus" json:"status,omitempty"`
// Output only. Name of the most recent operation modifying the function. If
// the function status is `DEPLOYING` or `DELETING`, then it points to the
// active operation.
LatestOperation string `protobuf:"bytes,8,opt,name=latest_operation,json=latestOperation" json:"latest_operation,omitempty"`
LatestOperation string `protobuf:"bytes,8,opt,name=latest_operation,json=latestOperation,proto3" json:"latest_operation,omitempty"`
// The name of the function (as defined in source code) that will be
// executed. Defaults to the resource name suffix, if not specified. For
// backward compatibility, if function with given name is not found, then the
// system will try to use function named "function".
// For Node.js this is name of a function exported by the module specified
// in `source_location`.
EntryPoint string `protobuf:"bytes,9,opt,name=entry_point,json=entryPoint" json:"entry_point,omitempty"`
EntryPoint string `protobuf:"bytes,9,opt,name=entry_point,json=entryPoint,proto3" json:"entry_point,omitempty"`
// The function execution timeout. Execution is considered failed and
// can be terminated if the function is not completed at the end of the
// timeout period. Defaults to 60 seconds.
Timeout *google_protobuf3.Duration `protobuf:"bytes,10,opt,name=timeout" json:"timeout,omitempty"`
Timeout *duration.Duration `protobuf:"bytes,10,opt,name=timeout,proto3" json:"timeout,omitempty"`
// The amount of memory in MB available for a function.
// Defaults to 256MB.
AvailableMemoryMb int32 `protobuf:"varint,11,opt,name=available_memory_mb,json=availableMemoryMb" json:"available_memory_mb,omitempty"`
AvailableMemoryMb int32 `protobuf:"varint,11,opt,name=available_memory_mb,json=availableMemoryMb,proto3" json:"available_memory_mb,omitempty"`
// Output only. The service account of the function.
ServiceAccount string `protobuf:"bytes,13,opt,name=service_account,json=serviceAccount" json:"service_account,omitempty"`
ServiceAccount string `protobuf:"bytes,13,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
// Output only. The last update timestamp of a Cloud Function.
UpdateTime *google_protobuf4.Timestamp `protobuf:"bytes,15,opt,name=update_time,json=updateTime" json:"update_time,omitempty"`
UpdateTime *timestamp.Timestamp `protobuf:"bytes,15,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CloudFunction) Reset() { *m = CloudFunction{} }
func (m *CloudFunction) String() string { return proto.CompactTextString(m) }
func (*CloudFunction) ProtoMessage() {}
func (*CloudFunction) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
type isCloudFunction_SourceCode interface {
isCloudFunction_SourceCode()
func (m *CloudFunction) Reset() { *m = CloudFunction{} }
func (m *CloudFunction) String() string { return proto.CompactTextString(m) }
func (*CloudFunction) ProtoMessage() {}
func (*CloudFunction) Descriptor() ([]byte, []int) {
return fileDescriptor_functions_a18655d3cc58948d, []int{0}
}
type isCloudFunction_Trigger interface {
isCloudFunction_Trigger()
func (m *CloudFunction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CloudFunction.Unmarshal(m, b)
}
func (m *CloudFunction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CloudFunction.Marshal(b, m, deterministic)
}
func (dst *CloudFunction) XXX_Merge(src proto.Message) {
xxx_messageInfo_CloudFunction.Merge(dst, src)
}
func (m *CloudFunction) XXX_Size() int {
return xxx_messageInfo_CloudFunction.Size(m)
}
func (m *CloudFunction) XXX_DiscardUnknown() {
xxx_messageInfo_CloudFunction.DiscardUnknown(m)
}
type CloudFunction_SourceArchiveUrl struct {
SourceArchiveUrl string `protobuf:"bytes,14,opt,name=source_archive_url,json=sourceArchiveUrl,oneof"`
}
type CloudFunction_SourceRepository struct {
SourceRepository *SourceRepository `protobuf:"bytes,3,opt,name=source_repository,json=sourceRepository,oneof"`
}
type CloudFunction_HttpsTrigger struct {
HttpsTrigger *HTTPSTrigger `protobuf:"bytes,6,opt,name=https_trigger,json=httpsTrigger,oneof"`
}
type CloudFunction_EventTrigger struct {
EventTrigger *EventTrigger `protobuf:"bytes,12,opt,name=event_trigger,json=eventTrigger,oneof"`
}
func (*CloudFunction_SourceArchiveUrl) isCloudFunction_SourceCode() {}
func (*CloudFunction_SourceRepository) isCloudFunction_SourceCode() {}
func (*CloudFunction_HttpsTrigger) isCloudFunction_Trigger() {}
func (*CloudFunction_EventTrigger) isCloudFunction_Trigger() {}
func (m *CloudFunction) GetSourceCode() isCloudFunction_SourceCode {
if m != nil {
return m.SourceCode
}
return nil
}
func (m *CloudFunction) GetTrigger() isCloudFunction_Trigger {
if m != nil {
return m.Trigger
}
return nil
}
var xxx_messageInfo_CloudFunction proto.InternalMessageInfo
func (m *CloudFunction) GetName() string {
if m != nil {
@ -181,6 +145,29 @@ func (m *CloudFunction) GetName() string {
return ""
}
type isCloudFunction_SourceCode interface {
isCloudFunction_SourceCode()
}
type CloudFunction_SourceArchiveUrl struct {
SourceArchiveUrl string `protobuf:"bytes,14,opt,name=source_archive_url,json=sourceArchiveUrl,proto3,oneof"`
}
type CloudFunction_SourceRepository struct {
SourceRepository *SourceRepository `protobuf:"bytes,3,opt,name=source_repository,json=sourceRepository,proto3,oneof"`
}
func (*CloudFunction_SourceArchiveUrl) isCloudFunction_SourceCode() {}
func (*CloudFunction_SourceRepository) isCloudFunction_SourceCode() {}
func (m *CloudFunction) GetSourceCode() isCloudFunction_SourceCode {
if m != nil {
return m.SourceCode
}
return nil
}
func (m *CloudFunction) GetSourceArchiveUrl() string {
if x, ok := m.GetSourceCode().(*CloudFunction_SourceArchiveUrl); ok {
return x.SourceArchiveUrl
@ -195,6 +182,29 @@ func (m *CloudFunction) GetSourceRepository() *SourceRepository {
return nil
}
type isCloudFunction_Trigger interface {
isCloudFunction_Trigger()
}
type CloudFunction_HttpsTrigger struct {
HttpsTrigger *HTTPSTrigger `protobuf:"bytes,6,opt,name=https_trigger,json=httpsTrigger,proto3,oneof"`
}
type CloudFunction_EventTrigger struct {
EventTrigger *EventTrigger `protobuf:"bytes,12,opt,name=event_trigger,json=eventTrigger,proto3,oneof"`
}
func (*CloudFunction_HttpsTrigger) isCloudFunction_Trigger() {}
func (*CloudFunction_EventTrigger) isCloudFunction_Trigger() {}
func (m *CloudFunction) GetTrigger() isCloudFunction_Trigger {
if m != nil {
return m.Trigger
}
return nil
}
func (m *CloudFunction) GetHttpsTrigger() *HTTPSTrigger {
if x, ok := m.GetTrigger().(*CloudFunction_HttpsTrigger); ok {
return x.HttpsTrigger
@ -230,7 +240,7 @@ func (m *CloudFunction) GetEntryPoint() string {
return ""
}
func (m *CloudFunction) GetTimeout() *google_protobuf3.Duration {
func (m *CloudFunction) GetTimeout() *duration.Duration {
if m != nil {
return m.Timeout
}
@ -251,7 +261,7 @@ func (m *CloudFunction) GetServiceAccount() string {
return ""
}
func (m *CloudFunction) GetUpdateTime() *google_protobuf4.Timestamp {
func (m *CloudFunction) GetUpdateTime() *timestamp.Timestamp {
if m != nil {
return m.UpdateTime
}
@ -347,12 +357,12 @@ func _CloudFunction_OneofSizer(msg proto.Message) (n int) {
// source_code
switch x := m.SourceCode.(type) {
case *CloudFunction_SourceArchiveUrl:
n += proto.SizeVarint(14<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.SourceArchiveUrl)))
n += len(x.SourceArchiveUrl)
case *CloudFunction_SourceRepository:
s := proto.Size(x.SourceRepository)
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
@ -363,12 +373,12 @@ func _CloudFunction_OneofSizer(msg proto.Message) (n int) {
switch x := m.Trigger.(type) {
case *CloudFunction_HttpsTrigger:
s := proto.Size(x.HttpsTrigger)
n += proto.SizeVarint(6<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *CloudFunction_EventTrigger:
s := proto.Size(x.EventTrigger)
n += proto.SizeVarint(12<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
@ -381,13 +391,35 @@ func _CloudFunction_OneofSizer(msg proto.Message) (n int) {
// Describes HTTPSTrigger, could be used to connect web hooks to function.
type HTTPSTrigger struct {
// Output only. The deployed url for the function.
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HTTPSTrigger) Reset() { *m = HTTPSTrigger{} }
func (m *HTTPSTrigger) String() string { return proto.CompactTextString(m) }
func (*HTTPSTrigger) ProtoMessage() {}
func (*HTTPSTrigger) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *HTTPSTrigger) Reset() { *m = HTTPSTrigger{} }
func (m *HTTPSTrigger) String() string { return proto.CompactTextString(m) }
func (*HTTPSTrigger) ProtoMessage() {}
func (*HTTPSTrigger) Descriptor() ([]byte, []int) {
return fileDescriptor_functions_a18655d3cc58948d, []int{1}
}
func (m *HTTPSTrigger) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HTTPSTrigger.Unmarshal(m, b)
}
func (m *HTTPSTrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HTTPSTrigger.Marshal(b, m, deterministic)
}
func (dst *HTTPSTrigger) XXX_Merge(src proto.Message) {
xxx_messageInfo_HTTPSTrigger.Merge(dst, src)
}
func (m *HTTPSTrigger) XXX_Size() int {
return xxx_messageInfo_HTTPSTrigger.Size(m)
}
func (m *HTTPSTrigger) XXX_DiscardUnknown() {
xxx_messageInfo_HTTPSTrigger.DiscardUnknown(m)
}
var xxx_messageInfo_HTTPSTrigger proto.InternalMessageInfo
func (m *HTTPSTrigger) GetUrl() string {
if m != nil {
@ -409,19 +441,41 @@ type EventTrigger struct {
//
// Handle a write to the Firebase Realtime Database
// `providers/firebase.database/eventTypes/data.write`
EventType string `protobuf:"bytes,1,opt,name=event_type,json=eventType" json:"event_type,omitempty"`
EventType string `protobuf:"bytes,1,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"`
// Which instance of the source's service should send events. E.g. for Pub/Sub
// this would be a Pub/Sub topic at `projects/*/topics/*`. For Google Cloud
// Storage this would be a bucket at `projects/*/buckets/*`. For any source
// that only supports one instance per-project, this should be the name of the
// project (`projects/*`)
Resource string `protobuf:"bytes,2,opt,name=resource" json:"resource,omitempty"`
Resource string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EventTrigger) Reset() { *m = EventTrigger{} }
func (m *EventTrigger) String() string { return proto.CompactTextString(m) }
func (*EventTrigger) ProtoMessage() {}
func (*EventTrigger) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *EventTrigger) Reset() { *m = EventTrigger{} }
func (m *EventTrigger) String() string { return proto.CompactTextString(m) }
func (*EventTrigger) ProtoMessage() {}
func (*EventTrigger) Descriptor() ([]byte, []int) {
return fileDescriptor_functions_a18655d3cc58948d, []int{2}
}
func (m *EventTrigger) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EventTrigger.Unmarshal(m, b)
}
func (m *EventTrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EventTrigger.Marshal(b, m, deterministic)
}
func (dst *EventTrigger) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventTrigger.Merge(dst, src)
}
func (m *EventTrigger) XXX_Size() int {
return xxx_messageInfo_EventTrigger.Size(m)
}
func (m *EventTrigger) XXX_DiscardUnknown() {
xxx_messageInfo_EventTrigger.DiscardUnknown(m)
}
var xxx_messageInfo_EventTrigger proto.InternalMessageInfo
func (m *EventTrigger) GetEventType() string {
if m != nil {
@ -442,12 +496,12 @@ type SourceRepository struct {
// URL to the hosted repository where the function is defined. Only paths in
// https://source.developers.google.com domain are supported. The path should
// contain the name of the repository.
RepositoryUrl string `protobuf:"bytes,1,opt,name=repository_url,json=repositoryUrl" json:"repository_url,omitempty"`
RepositoryUrl string `protobuf:"bytes,1,opt,name=repository_url,json=repositoryUrl,proto3" json:"repository_url,omitempty"`
// The path within the repository where the function is defined. The path
// should point to the directory where Cloud Functions files are located. Use
// "/" if the function is defined directly in the root directory of a
// repository.
SourcePath string `protobuf:"bytes,2,opt,name=source_path,json=sourcePath" json:"source_path,omitempty"`
SourcePath string `protobuf:"bytes,2,opt,name=source_path,json=sourcePath,proto3" json:"source_path,omitempty"`
// The version of a function. Defaults to the latest version of the master
// branch.
//
@ -461,38 +515,35 @@ type SourceRepository struct {
// branch, it will be the revision id of the latest change on this branch at
// that time. If user deployed from revision then this value will be always
// equal to the revision specified by the user.
DeployedRevision string `protobuf:"bytes,6,opt,name=deployed_revision,json=deployedRevision" json:"deployed_revision,omitempty"`
DeployedRevision string `protobuf:"bytes,6,opt,name=deployed_revision,json=deployedRevision,proto3" json:"deployed_revision,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SourceRepository) Reset() { *m = SourceRepository{} }
func (m *SourceRepository) String() string { return proto.CompactTextString(m) }
func (*SourceRepository) ProtoMessage() {}
func (*SourceRepository) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
type isSourceRepository_Version interface {
isSourceRepository_Version()
func (m *SourceRepository) Reset() { *m = SourceRepository{} }
func (m *SourceRepository) String() string { return proto.CompactTextString(m) }
func (*SourceRepository) ProtoMessage() {}
func (*SourceRepository) Descriptor() ([]byte, []int) {
return fileDescriptor_functions_a18655d3cc58948d, []int{3}
}
func (m *SourceRepository) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SourceRepository.Unmarshal(m, b)
}
func (m *SourceRepository) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SourceRepository.Marshal(b, m, deterministic)
}
func (dst *SourceRepository) XXX_Merge(src proto.Message) {
xxx_messageInfo_SourceRepository.Merge(dst, src)
}
func (m *SourceRepository) XXX_Size() int {
return xxx_messageInfo_SourceRepository.Size(m)
}
func (m *SourceRepository) XXX_DiscardUnknown() {
xxx_messageInfo_SourceRepository.DiscardUnknown(m)
}
type SourceRepository_Branch struct {
Branch string `protobuf:"bytes,3,opt,name=branch,oneof"`
}
type SourceRepository_Tag struct {
Tag string `protobuf:"bytes,4,opt,name=tag,oneof"`
}
type SourceRepository_Revision struct {
Revision string `protobuf:"bytes,5,opt,name=revision,oneof"`
}
func (*SourceRepository_Branch) isSourceRepository_Version() {}
func (*SourceRepository_Tag) isSourceRepository_Version() {}
func (*SourceRepository_Revision) isSourceRepository_Version() {}
func (m *SourceRepository) GetVersion() isSourceRepository_Version {
if m != nil {
return m.Version
}
return nil
}
var xxx_messageInfo_SourceRepository proto.InternalMessageInfo
func (m *SourceRepository) GetRepositoryUrl() string {
if m != nil {
@ -508,6 +559,35 @@ func (m *SourceRepository) GetSourcePath() string {
return ""
}
type isSourceRepository_Version interface {
isSourceRepository_Version()
}
type SourceRepository_Branch struct {
Branch string `protobuf:"bytes,3,opt,name=branch,proto3,oneof"`
}
type SourceRepository_Tag struct {
Tag string `protobuf:"bytes,4,opt,name=tag,proto3,oneof"`
}
type SourceRepository_Revision struct {
Revision string `protobuf:"bytes,5,opt,name=revision,proto3,oneof"`
}
func (*SourceRepository_Branch) isSourceRepository_Version() {}
func (*SourceRepository_Tag) isSourceRepository_Version() {}
func (*SourceRepository_Revision) isSourceRepository_Version() {}
func (m *SourceRepository) GetVersion() isSourceRepository_Version {
if m != nil {
return m.Version
}
return nil
}
func (m *SourceRepository) GetBranch() string {
if x, ok := m.GetVersion().(*SourceRepository_Branch); ok {
return x.Branch
@ -599,15 +679,15 @@ func _SourceRepository_OneofSizer(msg proto.Message) (n int) {
// version
switch x := m.Version.(type) {
case *SourceRepository_Branch:
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.Branch)))
n += len(x.Branch)
case *SourceRepository_Tag:
n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.Tag)))
n += len(x.Tag)
case *SourceRepository_Revision:
n += proto.SizeVarint(5<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.Revision)))
n += len(x.Revision)
case nil:
@ -621,15 +701,37 @@ func _SourceRepository_OneofSizer(msg proto.Message) (n int) {
type CreateFunctionRequest struct {
// The project and location in which the function should be created, specified
// in the format `projects/*/locations/*`
Location string `protobuf:"bytes,1,opt,name=location" json:"location,omitempty"`
Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
// Function to be created.
Function *CloudFunction `protobuf:"bytes,2,opt,name=function" json:"function,omitempty"`
Function *CloudFunction `protobuf:"bytes,2,opt,name=function,proto3" json:"function,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateFunctionRequest) Reset() { *m = CreateFunctionRequest{} }
func (m *CreateFunctionRequest) String() string { return proto.CompactTextString(m) }
func (*CreateFunctionRequest) ProtoMessage() {}
func (*CreateFunctionRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *CreateFunctionRequest) Reset() { *m = CreateFunctionRequest{} }
func (m *CreateFunctionRequest) String() string { return proto.CompactTextString(m) }
func (*CreateFunctionRequest) ProtoMessage() {}
func (*CreateFunctionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_functions_a18655d3cc58948d, []int{4}
}
func (m *CreateFunctionRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateFunctionRequest.Unmarshal(m, b)
}
func (m *CreateFunctionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateFunctionRequest.Marshal(b, m, deterministic)
}
func (dst *CreateFunctionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateFunctionRequest.Merge(dst, src)
}
func (m *CreateFunctionRequest) XXX_Size() int {
return xxx_messageInfo_CreateFunctionRequest.Size(m)
}
func (m *CreateFunctionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateFunctionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateFunctionRequest proto.InternalMessageInfo
func (m *CreateFunctionRequest) GetLocation() string {
if m != nil {
@ -648,15 +750,37 @@ func (m *CreateFunctionRequest) GetFunction() *CloudFunction {
// Request for the `UpdateFunction` method.
type UpdateFunctionRequest struct {
// The name of the function to be updated.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// New version of the function.
Function *CloudFunction `protobuf:"bytes,2,opt,name=function" json:"function,omitempty"`
Function *CloudFunction `protobuf:"bytes,2,opt,name=function,proto3" json:"function,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateFunctionRequest) Reset() { *m = UpdateFunctionRequest{} }
func (m *UpdateFunctionRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateFunctionRequest) ProtoMessage() {}
func (*UpdateFunctionRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *UpdateFunctionRequest) Reset() { *m = UpdateFunctionRequest{} }
func (m *UpdateFunctionRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateFunctionRequest) ProtoMessage() {}
func (*UpdateFunctionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_functions_a18655d3cc58948d, []int{5}
}
func (m *UpdateFunctionRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateFunctionRequest.Unmarshal(m, b)
}
func (m *UpdateFunctionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateFunctionRequest.Marshal(b, m, deterministic)
}
func (dst *UpdateFunctionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateFunctionRequest.Merge(dst, src)
}
func (m *UpdateFunctionRequest) XXX_Size() int {
return xxx_messageInfo_UpdateFunctionRequest.Size(m)
}
func (m *UpdateFunctionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateFunctionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateFunctionRequest proto.InternalMessageInfo
func (m *UpdateFunctionRequest) GetName() string {
if m != nil {
@ -675,13 +799,35 @@ func (m *UpdateFunctionRequest) GetFunction() *CloudFunction {
// Request for the `GetFunction` method.
type GetFunctionRequest struct {
// The name of the function which details should be obtained.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetFunctionRequest) Reset() { *m = GetFunctionRequest{} }
func (m *GetFunctionRequest) String() string { return proto.CompactTextString(m) }
func (*GetFunctionRequest) ProtoMessage() {}
func (*GetFunctionRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *GetFunctionRequest) Reset() { *m = GetFunctionRequest{} }
func (m *GetFunctionRequest) String() string { return proto.CompactTextString(m) }
func (*GetFunctionRequest) ProtoMessage() {}
func (*GetFunctionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_functions_a18655d3cc58948d, []int{6}
}
func (m *GetFunctionRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetFunctionRequest.Unmarshal(m, b)
}
func (m *GetFunctionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetFunctionRequest.Marshal(b, m, deterministic)
}
func (dst *GetFunctionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetFunctionRequest.Merge(dst, src)
}
func (m *GetFunctionRequest) XXX_Size() int {
return xxx_messageInfo_GetFunctionRequest.Size(m)
}
func (m *GetFunctionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetFunctionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetFunctionRequest proto.InternalMessageInfo
func (m *GetFunctionRequest) GetName() string {
if m != nil {
@ -696,20 +842,42 @@ type ListFunctionsRequest struct {
// specified in the format `projects/*/locations/*`
// If you want to list functions in all locations, use "-" in place of a
// location.
Location string `protobuf:"bytes,1,opt,name=location" json:"location,omitempty"`
Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
// Maximum number of functions to return per call.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The value returned by the last
// `ListFunctionsResponse`; indicates that
// this is a continuation of a prior `ListFunctions` call, and that the
// system should return the next page of data.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListFunctionsRequest) Reset() { *m = ListFunctionsRequest{} }
func (m *ListFunctionsRequest) String() string { return proto.CompactTextString(m) }
func (*ListFunctionsRequest) ProtoMessage() {}
func (*ListFunctionsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *ListFunctionsRequest) Reset() { *m = ListFunctionsRequest{} }
func (m *ListFunctionsRequest) String() string { return proto.CompactTextString(m) }
func (*ListFunctionsRequest) ProtoMessage() {}
func (*ListFunctionsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_functions_a18655d3cc58948d, []int{7}
}
func (m *ListFunctionsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListFunctionsRequest.Unmarshal(m, b)
}
func (m *ListFunctionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListFunctionsRequest.Marshal(b, m, deterministic)
}
func (dst *ListFunctionsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListFunctionsRequest.Merge(dst, src)
}
func (m *ListFunctionsRequest) XXX_Size() int {
return xxx_messageInfo_ListFunctionsRequest.Size(m)
}
func (m *ListFunctionsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListFunctionsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListFunctionsRequest proto.InternalMessageInfo
func (m *ListFunctionsRequest) GetLocation() string {
if m != nil {
@ -735,18 +903,40 @@ func (m *ListFunctionsRequest) GetPageToken() string {
// Response for the `ListFunctions` method.
type ListFunctionsResponse struct {
// The functions that match the request.
Functions []*CloudFunction `protobuf:"bytes,1,rep,name=functions" json:"functions,omitempty"`
Functions []*CloudFunction `protobuf:"bytes,1,rep,name=functions,proto3" json:"functions,omitempty"`
// If not empty, indicates that there may be more functions that match
// the request; this value should be passed in a new
// [google.cloud.functions.v1beta2.ListFunctionsRequest][]
// to get more functions.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListFunctionsResponse) Reset() { *m = ListFunctionsResponse{} }
func (m *ListFunctionsResponse) String() string { return proto.CompactTextString(m) }
func (*ListFunctionsResponse) ProtoMessage() {}
func (*ListFunctionsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
func (m *ListFunctionsResponse) Reset() { *m = ListFunctionsResponse{} }
func (m *ListFunctionsResponse) String() string { return proto.CompactTextString(m) }
func (*ListFunctionsResponse) ProtoMessage() {}
func (*ListFunctionsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_functions_a18655d3cc58948d, []int{8}
}
func (m *ListFunctionsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListFunctionsResponse.Unmarshal(m, b)
}
func (m *ListFunctionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListFunctionsResponse.Marshal(b, m, deterministic)
}
func (dst *ListFunctionsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListFunctionsResponse.Merge(dst, src)
}
func (m *ListFunctionsResponse) XXX_Size() int {
return xxx_messageInfo_ListFunctionsResponse.Size(m)
}
func (m *ListFunctionsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListFunctionsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListFunctionsResponse proto.InternalMessageInfo
func (m *ListFunctionsResponse) GetFunctions() []*CloudFunction {
if m != nil {
@ -765,13 +955,35 @@ func (m *ListFunctionsResponse) GetNextPageToken() string {
// Request for the `DeleteFunction` method.
type DeleteFunctionRequest struct {
// The name of the function which should be deleted.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteFunctionRequest) Reset() { *m = DeleteFunctionRequest{} }
func (m *DeleteFunctionRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteFunctionRequest) ProtoMessage() {}
func (*DeleteFunctionRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
func (m *DeleteFunctionRequest) Reset() { *m = DeleteFunctionRequest{} }
func (m *DeleteFunctionRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteFunctionRequest) ProtoMessage() {}
func (*DeleteFunctionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_functions_a18655d3cc58948d, []int{9}
}
func (m *DeleteFunctionRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteFunctionRequest.Unmarshal(m, b)
}
func (m *DeleteFunctionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteFunctionRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteFunctionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteFunctionRequest.Merge(dst, src)
}
func (m *DeleteFunctionRequest) XXX_Size() int {
return xxx_messageInfo_DeleteFunctionRequest.Size(m)
}
func (m *DeleteFunctionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteFunctionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteFunctionRequest proto.InternalMessageInfo
func (m *DeleteFunctionRequest) GetName() string {
if m != nil {
@ -783,15 +995,37 @@ func (m *DeleteFunctionRequest) GetName() string {
// Request for the `CallFunction` method.
type CallFunctionRequest struct {
// The name of the function to be called.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Input to be passed to the function.
Data string `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"`
Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CallFunctionRequest) Reset() { *m = CallFunctionRequest{} }
func (m *CallFunctionRequest) String() string { return proto.CompactTextString(m) }
func (*CallFunctionRequest) ProtoMessage() {}
func (*CallFunctionRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
func (m *CallFunctionRequest) Reset() { *m = CallFunctionRequest{} }
func (m *CallFunctionRequest) String() string { return proto.CompactTextString(m) }
func (*CallFunctionRequest) ProtoMessage() {}
func (*CallFunctionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_functions_a18655d3cc58948d, []int{10}
}
func (m *CallFunctionRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CallFunctionRequest.Unmarshal(m, b)
}
func (m *CallFunctionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CallFunctionRequest.Marshal(b, m, deterministic)
}
func (dst *CallFunctionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CallFunctionRequest.Merge(dst, src)
}
func (m *CallFunctionRequest) XXX_Size() int {
return xxx_messageInfo_CallFunctionRequest.Size(m)
}
func (m *CallFunctionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CallFunctionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CallFunctionRequest proto.InternalMessageInfo
func (m *CallFunctionRequest) GetName() string {
if m != nil {
@ -810,19 +1044,41 @@ func (m *CallFunctionRequest) GetData() string {
// Response of `CallFunction` method.
type CallFunctionResponse struct {
// Execution id of function invocation.
ExecutionId string `protobuf:"bytes,1,opt,name=execution_id,json=executionId" json:"execution_id,omitempty"`
ExecutionId string `protobuf:"bytes,1,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"`
// Result populated for successful execution of synchronous function. Will
// not be populated if function does not return a result through context.
Result string `protobuf:"bytes,2,opt,name=result" json:"result,omitempty"`
Result string `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
// Either system or user-function generated error. Set if execution
// was not successful.
Error string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CallFunctionResponse) Reset() { *m = CallFunctionResponse{} }
func (m *CallFunctionResponse) String() string { return proto.CompactTextString(m) }
func (*CallFunctionResponse) ProtoMessage() {}
func (*CallFunctionResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
func (m *CallFunctionResponse) Reset() { *m = CallFunctionResponse{} }
func (m *CallFunctionResponse) String() string { return proto.CompactTextString(m) }
func (*CallFunctionResponse) ProtoMessage() {}
func (*CallFunctionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_functions_a18655d3cc58948d, []int{11}
}
func (m *CallFunctionResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CallFunctionResponse.Unmarshal(m, b)
}
func (m *CallFunctionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CallFunctionResponse.Marshal(b, m, deterministic)
}
func (dst *CallFunctionResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CallFunctionResponse.Merge(dst, src)
}
func (m *CallFunctionResponse) XXX_Size() int {
return xxx_messageInfo_CallFunctionResponse.Size(m)
}
func (m *CallFunctionResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CallFunctionResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CallFunctionResponse proto.InternalMessageInfo
func (m *CallFunctionResponse) GetExecutionId() string {
if m != nil {
@ -869,8 +1125,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for CloudFunctionsService service
// CloudFunctionsServiceClient is the client API for CloudFunctionsService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CloudFunctionsServiceClient interface {
// Returns a list of functions that belong to the requested project.
ListFunctions(ctx context.Context, in *ListFunctionsRequest, opts ...grpc.CallOption) (*ListFunctionsResponse, error)
@ -879,13 +1136,13 @@ type CloudFunctionsServiceClient interface {
// Creates a new function. If a function with the given name already exists in
// the specified project, the long running operation will return
// `ALREADY_EXISTS` error.
CreateFunction(ctx context.Context, in *CreateFunctionRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
CreateFunction(ctx context.Context, in *CreateFunctionRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Updates existing function.
UpdateFunction(ctx context.Context, in *UpdateFunctionRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
UpdateFunction(ctx context.Context, in *UpdateFunctionRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Deletes a function with the given name from the specified project. If the
// given function is used by some trigger, the trigger will be updated to
// remove this function.
DeleteFunction(ctx context.Context, in *DeleteFunctionRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
DeleteFunction(ctx context.Context, in *DeleteFunctionRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Invokes synchronously deployed function. To be used for testing, very
// limited traffic allowed.
CallFunction(ctx context.Context, in *CallFunctionRequest, opts ...grpc.CallOption) (*CallFunctionResponse, error)
@ -901,7 +1158,7 @@ func NewCloudFunctionsServiceClient(cc *grpc.ClientConn) CloudFunctionsServiceCl
func (c *cloudFunctionsServiceClient) ListFunctions(ctx context.Context, in *ListFunctionsRequest, opts ...grpc.CallOption) (*ListFunctionsResponse, error) {
out := new(ListFunctionsResponse)
err := grpc.Invoke(ctx, "/google.cloud.functions.v1beta2.CloudFunctionsService/ListFunctions", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.functions.v1beta2.CloudFunctionsService/ListFunctions", in, out, opts...)
if err != nil {
return nil, err
}
@ -910,34 +1167,34 @@ func (c *cloudFunctionsServiceClient) ListFunctions(ctx context.Context, in *Lis
func (c *cloudFunctionsServiceClient) GetFunction(ctx context.Context, in *GetFunctionRequest, opts ...grpc.CallOption) (*CloudFunction, error) {
out := new(CloudFunction)
err := grpc.Invoke(ctx, "/google.cloud.functions.v1beta2.CloudFunctionsService/GetFunction", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.functions.v1beta2.CloudFunctionsService/GetFunction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *cloudFunctionsServiceClient) CreateFunction(ctx context.Context, in *CreateFunctionRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.cloud.functions.v1beta2.CloudFunctionsService/CreateFunction", in, out, c.cc, opts...)
func (c *cloudFunctionsServiceClient) CreateFunction(ctx context.Context, in *CreateFunctionRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
out := new(longrunning.Operation)
err := c.cc.Invoke(ctx, "/google.cloud.functions.v1beta2.CloudFunctionsService/CreateFunction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *cloudFunctionsServiceClient) UpdateFunction(ctx context.Context, in *UpdateFunctionRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.cloud.functions.v1beta2.CloudFunctionsService/UpdateFunction", in, out, c.cc, opts...)
func (c *cloudFunctionsServiceClient) UpdateFunction(ctx context.Context, in *UpdateFunctionRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
out := new(longrunning.Operation)
err := c.cc.Invoke(ctx, "/google.cloud.functions.v1beta2.CloudFunctionsService/UpdateFunction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *cloudFunctionsServiceClient) DeleteFunction(ctx context.Context, in *DeleteFunctionRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.cloud.functions.v1beta2.CloudFunctionsService/DeleteFunction", in, out, c.cc, opts...)
func (c *cloudFunctionsServiceClient) DeleteFunction(ctx context.Context, in *DeleteFunctionRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
out := new(longrunning.Operation)
err := c.cc.Invoke(ctx, "/google.cloud.functions.v1beta2.CloudFunctionsService/DeleteFunction", in, out, opts...)
if err != nil {
return nil, err
}
@ -946,15 +1203,14 @@ func (c *cloudFunctionsServiceClient) DeleteFunction(ctx context.Context, in *De
func (c *cloudFunctionsServiceClient) CallFunction(ctx context.Context, in *CallFunctionRequest, opts ...grpc.CallOption) (*CallFunctionResponse, error) {
out := new(CallFunctionResponse)
err := grpc.Invoke(ctx, "/google.cloud.functions.v1beta2.CloudFunctionsService/CallFunction", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.functions.v1beta2.CloudFunctionsService/CallFunction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for CloudFunctionsService service
// CloudFunctionsServiceServer is the server API for CloudFunctionsService service.
type CloudFunctionsServiceServer interface {
// Returns a list of functions that belong to the requested project.
ListFunctions(context.Context, *ListFunctionsRequest) (*ListFunctionsResponse, error)
@ -963,13 +1219,13 @@ type CloudFunctionsServiceServer interface {
// Creates a new function. If a function with the given name already exists in
// the specified project, the long running operation will return
// `ALREADY_EXISTS` error.
CreateFunction(context.Context, *CreateFunctionRequest) (*google_longrunning.Operation, error)
CreateFunction(context.Context, *CreateFunctionRequest) (*longrunning.Operation, error)
// Updates existing function.
UpdateFunction(context.Context, *UpdateFunctionRequest) (*google_longrunning.Operation, error)
UpdateFunction(context.Context, *UpdateFunctionRequest) (*longrunning.Operation, error)
// Deletes a function with the given name from the specified project. If the
// given function is used by some trigger, the trigger will be updated to
// remove this function.
DeleteFunction(context.Context, *DeleteFunctionRequest) (*google_longrunning.Operation, error)
DeleteFunction(context.Context, *DeleteFunctionRequest) (*longrunning.Operation, error)
// Invokes synchronously deployed function. To be used for testing, very
// limited traffic allowed.
CallFunction(context.Context, *CallFunctionRequest) (*CallFunctionResponse, error)
@ -1120,9 +1376,11 @@ var _CloudFunctionsService_serviceDesc = grpc.ServiceDesc{
Metadata: "google/cloud/functions/v1beta2/functions.proto",
}
func init() { proto.RegisterFile("google/cloud/functions/v1beta2/functions.proto", fileDescriptor0) }
func init() {
proto.RegisterFile("google/cloud/functions/v1beta2/functions.proto", fileDescriptor_functions_a18655d3cc58948d)
}
var fileDescriptor0 = []byte{
var fileDescriptor_functions_a18655d3cc58948d = []byte{
// 1216 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x4d, 0x73, 0xdb, 0x44,
0x18, 0xae, 0xf2, 0xe1, 0xc6, 0xaf, 0x3f, 0xe2, 0x6e, 0x9b, 0x8e, 0x30, 0x2d, 0x0d, 0x62, 0x80,

View File

@ -1,19 +1,25 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/functions/v1beta2/operations.proto
package functions
package functions // import "google.golang.org/genproto/googleapis/cloud/functions/v1beta2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import any "github.com/golang/protobuf/ptypes/any"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf1 "github.com/golang/protobuf/ptypes/any"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// A type of an operation.
type OperationType int32
@ -44,23 +50,47 @@ var OperationType_value = map[string]int32{
func (x OperationType) String() string {
return proto.EnumName(OperationType_name, int32(x))
}
func (OperationType) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (OperationType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_operations_17ab487bbd37bcca, []int{0}
}
// Metadata describing an [Operation][google.longrunning.Operation]
type OperationMetadataV1Beta2 struct {
// Target of the operation - for example
// projects/project-1/locations/region-1/functions/function-1
Target string `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"`
Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
// Type of operation.
Type OperationType `protobuf:"varint,2,opt,name=type,enum=google.cloud.functions.v1beta2.OperationType" json:"type,omitempty"`
Type OperationType `protobuf:"varint,2,opt,name=type,proto3,enum=google.cloud.functions.v1beta2.OperationType" json:"type,omitempty"`
// The original request that started the operation.
Request *google_protobuf1.Any `protobuf:"bytes,3,opt,name=request" json:"request,omitempty"`
Request *any.Any `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OperationMetadataV1Beta2) Reset() { *m = OperationMetadataV1Beta2{} }
func (m *OperationMetadataV1Beta2) String() string { return proto.CompactTextString(m) }
func (*OperationMetadataV1Beta2) ProtoMessage() {}
func (*OperationMetadataV1Beta2) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (m *OperationMetadataV1Beta2) Reset() { *m = OperationMetadataV1Beta2{} }
func (m *OperationMetadataV1Beta2) String() string { return proto.CompactTextString(m) }
func (*OperationMetadataV1Beta2) ProtoMessage() {}
func (*OperationMetadataV1Beta2) Descriptor() ([]byte, []int) {
return fileDescriptor_operations_17ab487bbd37bcca, []int{0}
}
func (m *OperationMetadataV1Beta2) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OperationMetadataV1Beta2.Unmarshal(m, b)
}
func (m *OperationMetadataV1Beta2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OperationMetadataV1Beta2.Marshal(b, m, deterministic)
}
func (dst *OperationMetadataV1Beta2) XXX_Merge(src proto.Message) {
xxx_messageInfo_OperationMetadataV1Beta2.Merge(dst, src)
}
func (m *OperationMetadataV1Beta2) XXX_Size() int {
return xxx_messageInfo_OperationMetadataV1Beta2.Size(m)
}
func (m *OperationMetadataV1Beta2) XXX_DiscardUnknown() {
xxx_messageInfo_OperationMetadataV1Beta2.DiscardUnknown(m)
}
var xxx_messageInfo_OperationMetadataV1Beta2 proto.InternalMessageInfo
func (m *OperationMetadataV1Beta2) GetTarget() string {
if m != nil {
@ -76,7 +106,7 @@ func (m *OperationMetadataV1Beta2) GetType() OperationType {
return OperationType_OPERATION_UNSPECIFIED
}
func (m *OperationMetadataV1Beta2) GetRequest() *google_protobuf1.Any {
func (m *OperationMetadataV1Beta2) GetRequest() *any.Any {
if m != nil {
return m.Request
}
@ -88,9 +118,11 @@ func init() {
proto.RegisterEnum("google.cloud.functions.v1beta2.OperationType", OperationType_name, OperationType_value)
}
func init() { proto.RegisterFile("google/cloud/functions/v1beta2/operations.proto", fileDescriptor1) }
func init() {
proto.RegisterFile("google/cloud/functions/v1beta2/operations.proto", fileDescriptor_operations_17ab487bbd37bcca)
}
var fileDescriptor1 = []byte{
var fileDescriptor_operations_17ab487bbd37bcca = []byte{
// 333 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0x4f, 0x4f, 0xf2, 0x30,
0x1c, 0xc7, 0x9f, 0xc2, 0x13, 0x8c, 0x35, 0x2a, 0x99, 0x7f, 0x32, 0x88, 0x31, 0x84, 0x13, 0x31,

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,486 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/kms/v1/resources.proto
package kms // import "google.golang.org/genproto/googleapis/cloud/kms/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import duration "github.com/golang/protobuf/ptypes/duration"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// [CryptoKeyPurpose][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose] describes the capabilities of a [CryptoKey][google.cloud.kms.v1.CryptoKey]. Two
// keys with the same purpose may use different underlying algorithms, but
// must support the same set of operations.
type CryptoKey_CryptoKeyPurpose int32
const (
// Not specified.
CryptoKey_CRYPTO_KEY_PURPOSE_UNSPECIFIED CryptoKey_CryptoKeyPurpose = 0
// [CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used with
// [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt] and
// [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt].
CryptoKey_ENCRYPT_DECRYPT CryptoKey_CryptoKeyPurpose = 1
)
var CryptoKey_CryptoKeyPurpose_name = map[int32]string{
0: "CRYPTO_KEY_PURPOSE_UNSPECIFIED",
1: "ENCRYPT_DECRYPT",
}
var CryptoKey_CryptoKeyPurpose_value = map[string]int32{
"CRYPTO_KEY_PURPOSE_UNSPECIFIED": 0,
"ENCRYPT_DECRYPT": 1,
}
func (x CryptoKey_CryptoKeyPurpose) String() string {
return proto.EnumName(CryptoKey_CryptoKeyPurpose_name, int32(x))
}
func (CryptoKey_CryptoKeyPurpose) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_resources_8a163c5e6421e08e, []int{1, 0}
}
// The state of a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], indicating if it can be used.
type CryptoKeyVersion_CryptoKeyVersionState int32
const (
// Not specified.
CryptoKeyVersion_CRYPTO_KEY_VERSION_STATE_UNSPECIFIED CryptoKeyVersion_CryptoKeyVersionState = 0
// This version may be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt] and
// [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt] requests.
CryptoKeyVersion_ENABLED CryptoKeyVersion_CryptoKeyVersionState = 1
// This version may not be used, but the key material is still available,
// and the version can be placed back into the [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] state.
CryptoKeyVersion_DISABLED CryptoKeyVersion_CryptoKeyVersionState = 2
// This version is destroyed, and the key material is no longer stored.
// A version may not leave this state once entered.
CryptoKeyVersion_DESTROYED CryptoKeyVersion_CryptoKeyVersionState = 3
// This version is scheduled for destruction, and will be destroyed soon.
// Call
// [RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion]
// to put it back into the [DISABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DISABLED] state.
CryptoKeyVersion_DESTROY_SCHEDULED CryptoKeyVersion_CryptoKeyVersionState = 4
)
var CryptoKeyVersion_CryptoKeyVersionState_name = map[int32]string{
0: "CRYPTO_KEY_VERSION_STATE_UNSPECIFIED",
1: "ENABLED",
2: "DISABLED",
3: "DESTROYED",
4: "DESTROY_SCHEDULED",
}
var CryptoKeyVersion_CryptoKeyVersionState_value = map[string]int32{
"CRYPTO_KEY_VERSION_STATE_UNSPECIFIED": 0,
"ENABLED": 1,
"DISABLED": 2,
"DESTROYED": 3,
"DESTROY_SCHEDULED": 4,
}
func (x CryptoKeyVersion_CryptoKeyVersionState) String() string {
return proto.EnumName(CryptoKeyVersion_CryptoKeyVersionState_name, int32(x))
}
func (CryptoKeyVersion_CryptoKeyVersionState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_resources_8a163c5e6421e08e, []int{2, 0}
}
// A [KeyRing][google.cloud.kms.v1.KeyRing] is a toplevel logical grouping of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
type KeyRing struct {
// Output only. The resource name for the [KeyRing][google.cloud.kms.v1.KeyRing] in the format
// `projects/*/locations/*/keyRings/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing] was created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *KeyRing) Reset() { *m = KeyRing{} }
func (m *KeyRing) String() string { return proto.CompactTextString(m) }
func (*KeyRing) ProtoMessage() {}
func (*KeyRing) Descriptor() ([]byte, []int) {
return fileDescriptor_resources_8a163c5e6421e08e, []int{0}
}
func (m *KeyRing) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KeyRing.Unmarshal(m, b)
}
func (m *KeyRing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KeyRing.Marshal(b, m, deterministic)
}
func (dst *KeyRing) XXX_Merge(src proto.Message) {
xxx_messageInfo_KeyRing.Merge(dst, src)
}
func (m *KeyRing) XXX_Size() int {
return xxx_messageInfo_KeyRing.Size(m)
}
func (m *KeyRing) XXX_DiscardUnknown() {
xxx_messageInfo_KeyRing.DiscardUnknown(m)
}
var xxx_messageInfo_KeyRing proto.InternalMessageInfo
func (m *KeyRing) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *KeyRing) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
// A [CryptoKey][google.cloud.kms.v1.CryptoKey] represents a logical key that can be used for cryptographic
// operations.
//
// A [CryptoKey][google.cloud.kms.v1.CryptoKey] is made up of one or more [versions][google.cloud.kms.v1.CryptoKeyVersion], which
// represent the actual key material used in cryptographic operations.
type CryptoKey struct {
// Output only. The resource name for this [CryptoKey][google.cloud.kms.v1.CryptoKey] in the format
// `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. A copy of the "primary" [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that will be used
// by [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt] when this [CryptoKey][google.cloud.kms.v1.CryptoKey] is given
// in [EncryptRequest.name][google.cloud.kms.v1.EncryptRequest.name].
//
// The [CryptoKey][google.cloud.kms.v1.CryptoKey]'s primary version can be updated via
// [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion].
Primary *CryptoKeyVersion `protobuf:"bytes,2,opt,name=primary,proto3" json:"primary,omitempty"`
// The immutable purpose of this [CryptoKey][google.cloud.kms.v1.CryptoKey]. Currently, the only acceptable
// purpose is [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
Purpose CryptoKey_CryptoKeyPurpose `protobuf:"varint,3,opt,name=purpose,proto3,enum=google.cloud.kms.v1.CryptoKey_CryptoKeyPurpose" json:"purpose,omitempty"`
// Output only. The time at which this [CryptoKey][google.cloud.kms.v1.CryptoKey] was created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// At [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time], the Key Management Service will automatically:
//
// 1. Create a new version of this [CryptoKey][google.cloud.kms.v1.CryptoKey].
// 2. Mark the new version as primary.
//
// Key rotations performed manually via
// [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] and
// [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion]
// do not affect [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time].
NextRotationTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=next_rotation_time,json=nextRotationTime,proto3" json:"next_rotation_time,omitempty"`
// Controls the rate of automatic rotation.
//
// Types that are valid to be assigned to RotationSchedule:
// *CryptoKey_RotationPeriod
RotationSchedule isCryptoKey_RotationSchedule `protobuf_oneof:"rotation_schedule"`
// Labels with user-defined metadata. For more information, see
// [Labeling Keys](/kms/docs/labeling-keys).
Labels map[string]string `protobuf:"bytes,10,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CryptoKey) Reset() { *m = CryptoKey{} }
func (m *CryptoKey) String() string { return proto.CompactTextString(m) }
func (*CryptoKey) ProtoMessage() {}
func (*CryptoKey) Descriptor() ([]byte, []int) {
return fileDescriptor_resources_8a163c5e6421e08e, []int{1}
}
func (m *CryptoKey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CryptoKey.Unmarshal(m, b)
}
func (m *CryptoKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CryptoKey.Marshal(b, m, deterministic)
}
func (dst *CryptoKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_CryptoKey.Merge(dst, src)
}
func (m *CryptoKey) XXX_Size() int {
return xxx_messageInfo_CryptoKey.Size(m)
}
func (m *CryptoKey) XXX_DiscardUnknown() {
xxx_messageInfo_CryptoKey.DiscardUnknown(m)
}
var xxx_messageInfo_CryptoKey proto.InternalMessageInfo
func (m *CryptoKey) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *CryptoKey) GetPrimary() *CryptoKeyVersion {
if m != nil {
return m.Primary
}
return nil
}
func (m *CryptoKey) GetPurpose() CryptoKey_CryptoKeyPurpose {
if m != nil {
return m.Purpose
}
return CryptoKey_CRYPTO_KEY_PURPOSE_UNSPECIFIED
}
func (m *CryptoKey) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *CryptoKey) GetNextRotationTime() *timestamp.Timestamp {
if m != nil {
return m.NextRotationTime
}
return nil
}
type isCryptoKey_RotationSchedule interface {
isCryptoKey_RotationSchedule()
}
type CryptoKey_RotationPeriod struct {
RotationPeriod *duration.Duration `protobuf:"bytes,8,opt,name=rotation_period,json=rotationPeriod,proto3,oneof"`
}
func (*CryptoKey_RotationPeriod) isCryptoKey_RotationSchedule() {}
func (m *CryptoKey) GetRotationSchedule() isCryptoKey_RotationSchedule {
if m != nil {
return m.RotationSchedule
}
return nil
}
func (m *CryptoKey) GetRotationPeriod() *duration.Duration {
if x, ok := m.GetRotationSchedule().(*CryptoKey_RotationPeriod); ok {
return x.RotationPeriod
}
return nil
}
func (m *CryptoKey) GetLabels() map[string]string {
if m != nil {
return m.Labels
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*CryptoKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _CryptoKey_OneofMarshaler, _CryptoKey_OneofUnmarshaler, _CryptoKey_OneofSizer, []interface{}{
(*CryptoKey_RotationPeriod)(nil),
}
}
func _CryptoKey_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*CryptoKey)
// rotation_schedule
switch x := m.RotationSchedule.(type) {
case *CryptoKey_RotationPeriod:
b.EncodeVarint(8<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.RotationPeriod); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("CryptoKey.RotationSchedule has unexpected type %T", x)
}
return nil
}
func _CryptoKey_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*CryptoKey)
switch tag {
case 8: // rotation_schedule.rotation_period
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(duration.Duration)
err := b.DecodeMessage(msg)
m.RotationSchedule = &CryptoKey_RotationPeriod{msg}
return true, err
default:
return false, nil
}
}
func _CryptoKey_OneofSizer(msg proto.Message) (n int) {
m := msg.(*CryptoKey)
// rotation_schedule
switch x := m.RotationSchedule.(type) {
case *CryptoKey_RotationPeriod:
s := proto.Size(x.RotationPeriod)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents an individual cryptographic key, and the
// associated key material.
//
// It can be used for cryptographic operations either directly, or via its
// parent [CryptoKey][google.cloud.kms.v1.CryptoKey], in which case the server will choose the appropriate
// version for the operation.
//
// For security reasons, the raw cryptographic key material represented by a
// [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] can never be viewed or exported. It can only be used to
// encrypt or decrypt data when an authorized user or application invokes Cloud
// KMS.
type CryptoKeyVersion struct {
// Output only. The resource name for this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format
// `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
State CryptoKeyVersion_CryptoKeyVersionState `protobuf:"varint,3,opt,name=state,proto3,enum=google.cloud.kms.v1.CryptoKeyVersion_CryptoKeyVersionState" json:"state,omitempty"`
// Output only. The time at which this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] was created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is scheduled
// for destruction. Only present if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is
// [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED].
DestroyTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=destroy_time,json=destroyTime,proto3" json:"destroy_time,omitempty"`
// Output only. The time this CryptoKeyVersion's key material was
// destroyed. Only present if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is
// [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED].
DestroyEventTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=destroy_event_time,json=destroyEventTime,proto3" json:"destroy_event_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CryptoKeyVersion) Reset() { *m = CryptoKeyVersion{} }
func (m *CryptoKeyVersion) String() string { return proto.CompactTextString(m) }
func (*CryptoKeyVersion) ProtoMessage() {}
func (*CryptoKeyVersion) Descriptor() ([]byte, []int) {
return fileDescriptor_resources_8a163c5e6421e08e, []int{2}
}
func (m *CryptoKeyVersion) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CryptoKeyVersion.Unmarshal(m, b)
}
func (m *CryptoKeyVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CryptoKeyVersion.Marshal(b, m, deterministic)
}
func (dst *CryptoKeyVersion) XXX_Merge(src proto.Message) {
xxx_messageInfo_CryptoKeyVersion.Merge(dst, src)
}
func (m *CryptoKeyVersion) XXX_Size() int {
return xxx_messageInfo_CryptoKeyVersion.Size(m)
}
func (m *CryptoKeyVersion) XXX_DiscardUnknown() {
xxx_messageInfo_CryptoKeyVersion.DiscardUnknown(m)
}
var xxx_messageInfo_CryptoKeyVersion proto.InternalMessageInfo
func (m *CryptoKeyVersion) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *CryptoKeyVersion) GetState() CryptoKeyVersion_CryptoKeyVersionState {
if m != nil {
return m.State
}
return CryptoKeyVersion_CRYPTO_KEY_VERSION_STATE_UNSPECIFIED
}
func (m *CryptoKeyVersion) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *CryptoKeyVersion) GetDestroyTime() *timestamp.Timestamp {
if m != nil {
return m.DestroyTime
}
return nil
}
func (m *CryptoKeyVersion) GetDestroyEventTime() *timestamp.Timestamp {
if m != nil {
return m.DestroyEventTime
}
return nil
}
func init() {
proto.RegisterType((*KeyRing)(nil), "google.cloud.kms.v1.KeyRing")
proto.RegisterType((*CryptoKey)(nil), "google.cloud.kms.v1.CryptoKey")
proto.RegisterMapType((map[string]string)(nil), "google.cloud.kms.v1.CryptoKey.LabelsEntry")
proto.RegisterType((*CryptoKeyVersion)(nil), "google.cloud.kms.v1.CryptoKeyVersion")
proto.RegisterEnum("google.cloud.kms.v1.CryptoKey_CryptoKeyPurpose", CryptoKey_CryptoKeyPurpose_name, CryptoKey_CryptoKeyPurpose_value)
proto.RegisterEnum("google.cloud.kms.v1.CryptoKeyVersion_CryptoKeyVersionState", CryptoKeyVersion_CryptoKeyVersionState_name, CryptoKeyVersion_CryptoKeyVersionState_value)
}
func init() {
proto.RegisterFile("google/cloud/kms/v1/resources.proto", fileDescriptor_resources_8a163c5e6421e08e)
}
var fileDescriptor_resources_8a163c5e6421e08e = []byte{
// 673 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x51, 0x6e, 0xda, 0x4a,
0x14, 0x86, 0x63, 0x20, 0x21, 0x1c, 0x72, 0x13, 0x32, 0xdc, 0xe8, 0x72, 0x51, 0x95, 0x22, 0xda,
0x4a, 0xa8, 0x0f, 0xb6, 0x48, 0xa5, 0xaa, 0x6d, 0x54, 0x55, 0x01, 0xbb, 0x0d, 0x22, 0x02, 0x77,
0x4c, 0x90, 0x12, 0x45, 0xb2, 0x1c, 0x98, 0x52, 0x0b, 0xec, 0xb1, 0x66, 0x0c, 0xaa, 0x5f, 0xbb,
0x87, 0x6e, 0xa2, 0xeb, 0xe8, 0x53, 0x77, 0xd0, 0x9d, 0xf4, 0xb1, 0xf2, 0x78, 0x9c, 0xa6, 0x04,
0x35, 0xc9, 0x13, 0x33, 0x67, 0xfe, 0xff, 0x33, 0x67, 0xce, 0x6f, 0xc3, 0xa3, 0x09, 0xa5, 0x93,
0x19, 0xd1, 0x46, 0x33, 0x3a, 0x1f, 0x6b, 0x53, 0x8f, 0x6b, 0x8b, 0xa6, 0xc6, 0x08, 0xa7, 0x73,
0x36, 0x22, 0x5c, 0x0d, 0x18, 0x0d, 0x29, 0x2a, 0x27, 0x22, 0x55, 0x88, 0xd4, 0xa9, 0xc7, 0xd5,
0x45, 0xb3, 0xfa, 0x40, 0x3a, 0x9d, 0xc0, 0xd5, 0x1c, 0xdf, 0xa7, 0xa1, 0x13, 0xba, 0xd4, 0x97,
0x96, 0xea, 0xbe, 0x3c, 0x15, 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44, 0x0d, 0x78, 0x7c, 0x6d, 0x52, 0x43, 0x03, 0x5b, 0x9d, 0x7e,
0xcf, 0xb6, 0x06, 0x47, 0x83, 0xe5, 0x79, 0x15, 0x21, 0x6f, 0xf4, 0x8e, 0x5a, 0x27, 0x86, 0x5e,
0x52, 0xd0, 0x16, 0x6c, 0xea, 0x1d, 0x2b, 0xd9, 0x65, 0xd0, 0x3f, 0x50, 0xd0, 0x0d, 0x6b, 0x80,
0xfb, 0x67, 0x86, 0x5e, 0xca, 0xa2, 0x3d, 0xd8, 0x95, 0x5b, 0xdb, 0x6a, 0x1f, 0x1b, 0xfa, 0x69,
0xac, 0xca, 0xb5, 0xbe, 0x28, 0xf0, 0xdf, 0x88, 0x7a, 0xab, 0x86, 0xd2, 0xda, 0xed, 0x7a, 0x1c,
0xa7, 0x9f, 0x48, 0x33, 0x6e, 0xc9, 0x54, 0xce, 0x9f, 0x4b, 0xe5, 0x84, 0xce, 0x1c, 0x7f, 0xa2,
0x52, 0x36, 0xd1, 0x26, 0xc4, 0x17, 0x0d, 0x6b, 0xc9, 0x91, 0x13, 0xb8, 0xfc, 0x8f, 0xef, 0xec,
0xe1, 0xd4, 0xe3, 0x3f, 0x15, 0xe5, 0x6b, 0xa6, 0xfc, 0x2e, 0xf1, 0xb6, 0xc5, 0x53, 0xba, 0x1e,
0x57, 0x87, 0xcd, 0xef, 0x69, 0xf5, 0x42, 0x54, 0x2f, 0xba, 0x1e, 0xbf, 0x18, 0x36, 0x2f, 0x37,
0x04, 0xf1, 0xd9, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe2, 0xc0, 0x0a, 0x0e, 0xb8, 0x05, 0x00,
0x00,
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,25 +1,13 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/location/locations.proto
/*
Package location is a generated protocol buffer package.
It is generated from these files:
google/cloud/location/locations.proto
It has these top-level messages:
ListLocationsRequest
ListLocationsResponse
GetLocationRequest
Location
*/
package location
package location // import "google.golang.org/genproto/googleapis/cloud/location"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import any "github.com/golang/protobuf/ptypes/any"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf1 "github.com/golang/protobuf/ptypes/any"
import (
context "golang.org/x/net/context"
@ -40,19 +28,41 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The request message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
type ListLocationsRequest struct {
// The resource that owns the locations collection, if applicable.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The standard list filter.
Filter string `protobuf:"bytes,2,opt,name=filter" json:"filter,omitempty"`
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// The standard list page size.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The standard list page token.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListLocationsRequest) Reset() { *m = ListLocationsRequest{} }
func (m *ListLocationsRequest) String() string { return proto.CompactTextString(m) }
func (*ListLocationsRequest) ProtoMessage() {}
func (*ListLocationsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *ListLocationsRequest) Reset() { *m = ListLocationsRequest{} }
func (m *ListLocationsRequest) String() string { return proto.CompactTextString(m) }
func (*ListLocationsRequest) ProtoMessage() {}
func (*ListLocationsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_locations_7a7af132c8d24683, []int{0}
}
func (m *ListLocationsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListLocationsRequest.Unmarshal(m, b)
}
func (m *ListLocationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListLocationsRequest.Marshal(b, m, deterministic)
}
func (dst *ListLocationsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListLocationsRequest.Merge(dst, src)
}
func (m *ListLocationsRequest) XXX_Size() int {
return xxx_messageInfo_ListLocationsRequest.Size(m)
}
func (m *ListLocationsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListLocationsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListLocationsRequest proto.InternalMessageInfo
func (m *ListLocationsRequest) GetName() string {
if m != nil {
@ -85,15 +95,37 @@ func (m *ListLocationsRequest) GetPageToken() string {
// The response message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
type ListLocationsResponse struct {
// A list of locations that matches the specified filter in the request.
Locations []*Location `protobuf:"bytes,1,rep,name=locations" json:"locations,omitempty"`
Locations []*Location `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"`
// The standard List next-page token.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListLocationsResponse) Reset() { *m = ListLocationsResponse{} }
func (m *ListLocationsResponse) String() string { return proto.CompactTextString(m) }
func (*ListLocationsResponse) ProtoMessage() {}
func (*ListLocationsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *ListLocationsResponse) Reset() { *m = ListLocationsResponse{} }
func (m *ListLocationsResponse) String() string { return proto.CompactTextString(m) }
func (*ListLocationsResponse) ProtoMessage() {}
func (*ListLocationsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_locations_7a7af132c8d24683, []int{1}
}
func (m *ListLocationsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListLocationsResponse.Unmarshal(m, b)
}
func (m *ListLocationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListLocationsResponse.Marshal(b, m, deterministic)
}
func (dst *ListLocationsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListLocationsResponse.Merge(dst, src)
}
func (m *ListLocationsResponse) XXX_Size() int {
return xxx_messageInfo_ListLocationsResponse.Size(m)
}
func (m *ListLocationsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListLocationsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListLocationsResponse proto.InternalMessageInfo
func (m *ListLocationsResponse) GetLocations() []*Location {
if m != nil {
@ -112,13 +144,35 @@ func (m *ListLocationsResponse) GetNextPageToken() string {
// The request message for [Locations.GetLocation][google.cloud.location.Locations.GetLocation].
type GetLocationRequest struct {
// Resource name for the location.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetLocationRequest) Reset() { *m = GetLocationRequest{} }
func (m *GetLocationRequest) String() string { return proto.CompactTextString(m) }
func (*GetLocationRequest) ProtoMessage() {}
func (*GetLocationRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *GetLocationRequest) Reset() { *m = GetLocationRequest{} }
func (m *GetLocationRequest) String() string { return proto.CompactTextString(m) }
func (*GetLocationRequest) ProtoMessage() {}
func (*GetLocationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_locations_7a7af132c8d24683, []int{2}
}
func (m *GetLocationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetLocationRequest.Unmarshal(m, b)
}
func (m *GetLocationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetLocationRequest.Marshal(b, m, deterministic)
}
func (dst *GetLocationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetLocationRequest.Merge(dst, src)
}
func (m *GetLocationRequest) XXX_Size() int {
return xxx_messageInfo_GetLocationRequest.Size(m)
}
func (m *GetLocationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetLocationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetLocationRequest proto.InternalMessageInfo
func (m *GetLocationRequest) GetName() string {
if m != nil {
@ -131,22 +185,47 @@ func (m *GetLocationRequest) GetName() string {
type Location struct {
// Resource name for the location, which may vary between implementations.
// For example: `"projects/example-project/locations/us-east1"`
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The canonical id for this location. For example: `"us-east1"`.
LocationId string `protobuf:"bytes,4,opt,name=location_id,json=locationId" json:"location_id,omitempty"`
LocationId string `protobuf:"bytes,4,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
// The friendly name for this location, typically a nearby city name.
// For example, "Tokyo".
DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Cross-service attributes for the location. For example
//
// {"cloud.googleapis.com/region": "us-east1"}
Labels map[string]string `protobuf:"bytes,2,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Service-specific metadata. For example the available capacity at the given
// location.
Metadata *google_protobuf1.Any `protobuf:"bytes,3,opt,name=metadata" json:"metadata,omitempty"`
Metadata *any.Any `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Location) Reset() { *m = Location{} }
func (m *Location) String() string { return proto.CompactTextString(m) }
func (*Location) ProtoMessage() {}
func (*Location) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *Location) Reset() { *m = Location{} }
func (m *Location) String() string { return proto.CompactTextString(m) }
func (*Location) ProtoMessage() {}
func (*Location) Descriptor() ([]byte, []int) {
return fileDescriptor_locations_7a7af132c8d24683, []int{3}
}
func (m *Location) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Location.Unmarshal(m, b)
}
func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Location.Marshal(b, m, deterministic)
}
func (dst *Location) XXX_Merge(src proto.Message) {
xxx_messageInfo_Location.Merge(dst, src)
}
func (m *Location) XXX_Size() int {
return xxx_messageInfo_Location.Size(m)
}
func (m *Location) XXX_DiscardUnknown() {
xxx_messageInfo_Location.DiscardUnknown(m)
}
var xxx_messageInfo_Location proto.InternalMessageInfo
func (m *Location) GetName() string {
if m != nil {
@ -162,6 +241,13 @@ func (m *Location) GetLocationId() string {
return ""
}
func (m *Location) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
func (m *Location) GetLabels() map[string]string {
if m != nil {
return m.Labels
@ -169,7 +255,7 @@ func (m *Location) GetLabels() map[string]string {
return nil
}
func (m *Location) GetMetadata() *google_protobuf1.Any {
func (m *Location) GetMetadata() *any.Any {
if m != nil {
return m.Metadata
}
@ -181,6 +267,7 @@ func init() {
proto.RegisterType((*ListLocationsResponse)(nil), "google.cloud.location.ListLocationsResponse")
proto.RegisterType((*GetLocationRequest)(nil), "google.cloud.location.GetLocationRequest")
proto.RegisterType((*Location)(nil), "google.cloud.location.Location")
proto.RegisterMapType((map[string]string)(nil), "google.cloud.location.Location.LabelsEntry")
}
// Reference imports to suppress errors if they are not otherwise used.
@ -191,12 +278,13 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for Locations service
// LocationsClient is the client API for Locations service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type LocationsClient interface {
// Lists information about the supported locations for this service.
ListLocations(ctx context.Context, in *ListLocationsRequest, opts ...grpc.CallOption) (*ListLocationsResponse, error)
// Get information about a location.
// Gets information about a location.
GetLocation(ctx context.Context, in *GetLocationRequest, opts ...grpc.CallOption) (*Location, error)
}
@ -210,7 +298,7 @@ func NewLocationsClient(cc *grpc.ClientConn) LocationsClient {
func (c *locationsClient) ListLocations(ctx context.Context, in *ListLocationsRequest, opts ...grpc.CallOption) (*ListLocationsResponse, error) {
out := new(ListLocationsResponse)
err := grpc.Invoke(ctx, "/google.cloud.location.Locations/ListLocations", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.location.Locations/ListLocations", in, out, opts...)
if err != nil {
return nil, err
}
@ -219,19 +307,18 @@ func (c *locationsClient) ListLocations(ctx context.Context, in *ListLocationsRe
func (c *locationsClient) GetLocation(ctx context.Context, in *GetLocationRequest, opts ...grpc.CallOption) (*Location, error) {
out := new(Location)
err := grpc.Invoke(ctx, "/google.cloud.location.Locations/GetLocation", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.location.Locations/GetLocation", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Locations service
// LocationsServer is the server API for Locations service.
type LocationsServer interface {
// Lists information about the supported locations for this service.
ListLocations(context.Context, *ListLocationsRequest) (*ListLocationsResponse, error)
// Get information about a location.
// Gets information about a location.
GetLocation(context.Context, *GetLocationRequest) (*Location, error)
}
@ -292,40 +379,43 @@ var _Locations_serviceDesc = grpc.ServiceDesc{
Metadata: "google/cloud/location/locations.proto",
}
func init() { proto.RegisterFile("google/cloud/location/locations.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 508 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcd, 0x6e, 0xd3, 0x40,
0x10, 0xd6, 0x3a, 0x6d, 0x94, 0x8c, 0x55, 0x40, 0xa3, 0x14, 0xb9, 0x06, 0x94, 0xd4, 0x08, 0x48,
0x0b, 0xf2, 0x42, 0xb8, 0xf0, 0xa3, 0x1c, 0x28, 0x42, 0x08, 0x29, 0x87, 0xc8, 0x70, 0xe2, 0x12,
0x6d, 0x92, 0xad, 0x65, 0xea, 0xec, 0x1a, 0x7b, 0x53, 0x91, 0xa2, 0xf6, 0x80, 0x78, 0x83, 0xbe,
0x04, 0xef, 0xc3, 0x2b, 0xf0, 0x02, 0xdc, 0x38, 0x22, 0xaf, 0x7f, 0x12, 0x8a, 0x4b, 0xb8, 0xcd,
0xce, 0x7c, 0xb3, 0xdf, 0x7c, 0xf3, 0xad, 0x0d, 0x77, 0x7c, 0x29, 0xfd, 0x90, 0xd3, 0x49, 0x28,
0xe7, 0x53, 0x1a, 0xca, 0x09, 0x53, 0x81, 0x14, 0x65, 0x90, 0xb8, 0x51, 0x2c, 0x95, 0xc4, 0xed,
0x0c, 0xe6, 0x6a, 0x98, 0x5b, 0x54, 0xed, 0x9b, 0x79, 0x37, 0x8b, 0x02, 0xca, 0x84, 0x90, 0x6a,
0xb5, 0xc9, 0xde, 0xc9, 0xab, 0xfa, 0x34, 0x9e, 0x1f, 0x52, 0x26, 0x16, 0x59, 0xc9, 0x39, 0x83,
0xd6, 0x20, 0x48, 0xd4, 0xa0, 0xa0, 0xf1, 0xf8, 0xc7, 0x39, 0x4f, 0x14, 0x22, 0x6c, 0x08, 0x36,
0xe3, 0x16, 0xe9, 0x90, 0x6e, 0xd3, 0xd3, 0x31, 0x5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d8, 0x3c, 0x66, 0xe1, 0x9c, 0xe7, 0x1b, 0xca, 0x0e, 0xcf, 0x8c, 0x27, 0xa4, 0xf7, 0xcd, 0x80,
0x66, 0x69, 0x0d, 0x9e, 0x13, 0xd8, 0xfa, 0xc3, 0x2c, 0xbc, 0x54, 0x41, 0xc5, 0x93, 0xb2, 0x1f,
0xfc, 0x1f, 0x38, 0xf3, 0xdf, 0xb9, 0xf7, 0xe5, 0xfb, 0x8f, 0x73, 0x63, 0x17, 0xdb, 0xf4, 0xf8,
0x11, 0xfd, 0x9c, 0x2e, 0xb8, 0x1f, 0xc5, 0xf2, 0x03, 0x9f, 0xa8, 0x84, 0xee, 0x9f, 0x2e, 0xbf,
0x0b, 0xfc, 0x4a, 0xc0, 0x5c, 0xb1, 0x10, 0xf7, 0x2e, 0xa1, 0xf9, 0xdb, 0x66, 0x7b, 0xdd, 0x83,
0x72, 0xf6, 0xf4, 0x10, 0xb7, 0x71, 0xb7, 0x6a, 0x88, 0xe5, 0x0c, 0x74, 0xff, 0xf4, 0x40, 0xc2,
0xce, 0x44, 0xce, 0xaa, 0x2f, 0x3c, 0xb8, 0x52, 0xea, 0x1b, 0xa6, 0x1e, 0x0d, 0xc9, 0xfb, 0x7e,
0x0e, 0xf4, 0x65, 0xc8, 0x84, 0xef, 0xca, 0xd8, 0xa7, 0x3e, 0x17, 0xda, 0x41, 0x9a, 0x95, 0x58,
0x14, 0x24, 0x17, 0xfe, 0x06, 0xcf, 0x8b, 0xe0, 0x17, 0x21, 0xe3, 0xba, 0x06, 0x3f, 0xfe, 0x1d,
0x00, 0x00, 0xff, 0xff, 0x0d, 0x57, 0x9e, 0xa7, 0x39, 0x04, 0x00, 0x00,
func init() {
proto.RegisterFile("google/cloud/location/locations.proto", fileDescriptor_locations_7a7af132c8d24683)
}
var fileDescriptor_locations_7a7af132c8d24683 = []byte{
// 527 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0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e3, 0x31, 0x1a, 0x7e, 0x37,
0xa0, 0x55, 0x4e, 0x0f, 0x9f, 0x22, 0xd8, 0xfc, 0x63, 0x9e, 0xf8, 0x5c, 0x07, 0x15, 0x5b, 0xd7,
0xb9, 0xff, 0x7f, 0xe0, 0x6c, 0x45, 0xec, 0xbb, 0x5f, 0x7e, 0xfc, 0x3c, 0x35, 0xfa, 0xb8, 0x4b,
0x0e, 0x1f, 0x92, 0xcf, 0xe9, 0x93, 0x8e, 0xa2, 0x58, 0x7c, 0x60, 0x73, 0x25, 0xc9, 0xee, 0xf1,
0xea, 0xd3, 0xc1, 0x5f, 0x11, 0x98, 0x6b, 0x53, 0xc6, 0x3b, 0xe7, 0xc8, 0xfc, 0xbd, 0x09, 0x9d,
0x8b, 0x76, 0xce, 0xde, 0xd1, 0x4d, 0xdc, 0xc2, 0xfd, 0xaa, 0x26, 0x56, 0x3d, 0x90, 0xdd, 0xe3,
0x3d, 0x01, 0xdb, 0x73, 0xb1, 0xa8, 0x2e, 0xb8, 0x77, 0xb9, 0xf4, 0x37, 0x49, 0x67, 0x34, 0x41,
0xef, 0x47, 0x39, 0xd0, 0x17, 0x21, 0xe5, 0xbe, 0x23, 0x62, 0x9f, 0xf8, 0x8c, 0xeb, 0x09, 0x92,
0x2c, 0x45, 0xa3, 0x40, 0x9e, 0xf9, 0x61, 0x3c, 0x2b, 0x0e, 0xbf, 0x10, 0x9a, 0x35, 0x34, 0xf8,
0xd1, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x27, 0xd7, 0x9e, 0x57, 0x5c, 0x04, 0x00, 0x00,
}

File diff suppressed because it is too large Load Diff

View File

@ -1,15 +1,15 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/ml/v1/model_service.proto
package ml
package ml // import "google.golang.org/genproto/googleapis/cloud/ml/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import _ "google.golang.org/genproto/googleapis/api/serviceconfig"
import google_longrunning "google.golang.org/genproto/googleapis/longrunning"
import google_protobuf2 "github.com/golang/protobuf/ptypes/timestamp"
import longrunning "google.golang.org/genproto/googleapis/longrunning"
import (
context "golang.org/x/net/context"
@ -21,6 +21,12 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Represents a machine learning solution.
//
// A model can have multiple versions, each of which is a deployed, trained
@ -30,28 +36,50 @@ type Model struct {
// Required. The name specified for the model when it was created.
//
// The model name must be unique within the project it is created in.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The description specified for the model when it was created.
Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Output only. The default version of the model. This version will be used to
// handle prediction requests that do not specify a version.
//
// You can change the default version by calling
// [projects.methods.versions.setDefault](/ml/reference/rest/v1/projects.models.versions/setDefault).
DefaultVersion *Version `protobuf:"bytes,3,opt,name=default_version,json=defaultVersion" json:"default_version,omitempty"`
DefaultVersion *Version `protobuf:"bytes,3,opt,name=default_version,json=defaultVersion,proto3" json:"default_version,omitempty"`
// Optional. The list of regions where the model is going to be deployed.
// Currently only one region per model is supported.
// Defaults to 'us-central1' if nothing is set.
Regions []string `protobuf:"bytes,4,rep,name=regions" json:"regions,omitempty"`
Regions []string `protobuf:"bytes,4,rep,name=regions,proto3" json:"regions,omitempty"`
// Optional. If true, enables StackDriver Logging for online prediction.
// Default is false.
OnlinePredictionLogging bool `protobuf:"varint,5,opt,name=online_prediction_logging,json=onlinePredictionLogging" json:"online_prediction_logging,omitempty"`
OnlinePredictionLogging bool `protobuf:"varint,5,opt,name=online_prediction_logging,json=onlinePredictionLogging,proto3" json:"online_prediction_logging,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Model) Reset() { *m = Model{} }
func (m *Model) String() string { return proto.CompactTextString(m) }
func (*Model) ProtoMessage() {}
func (*Model) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (m *Model) Reset() { *m = Model{} }
func (m *Model) String() string { return proto.CompactTextString(m) }
func (*Model) ProtoMessage() {}
func (*Model) Descriptor() ([]byte, []int) {
return fileDescriptor_model_service_adc1180e67bddc92, []int{0}
}
func (m *Model) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Model.Unmarshal(m, b)
}
func (m *Model) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Model.Marshal(b, m, deterministic)
}
func (dst *Model) XXX_Merge(src proto.Message) {
xxx_messageInfo_Model.Merge(dst, src)
}
func (m *Model) XXX_Size() int {
return xxx_messageInfo_Model.Size(m)
}
func (m *Model) XXX_DiscardUnknown() {
xxx_messageInfo_Model.DiscardUnknown(m)
}
var xxx_messageInfo_Model proto.InternalMessageInfo
func (m *Model) GetName() string {
if m != nil {
@ -98,15 +126,15 @@ type Version struct {
// Required.The name specified for the version when it was created.
//
// The version name must be unique within the model it is created in.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The description specified for the version when it was created.
Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Output only. If true, this version will be used to handle prediction
// requests that do not specify a version.
//
// You can change the default version by calling
// [projects.methods.versions.setDefault](/ml/reference/rest/v1/projects.models.versions/setDefault).
IsDefault bool `protobuf:"varint,3,opt,name=is_default,json=isDefault" json:"is_default,omitempty"`
IsDefault bool `protobuf:"varint,3,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"`
// Required. The Google Cloud Storage location of the trained model used to
// create the version. See the
// [overview of model deployment](/ml/docs/concepts/deployment-overview) for
@ -117,27 +145,49 @@ type Version struct {
// the model service uses the specified location as the source of the model.
// Once deployed, the model version is hosted by the prediction service, so
// this location is useful only as a historical record.
DeploymentUri string `protobuf:"bytes,4,opt,name=deployment_uri,json=deploymentUri" json:"deployment_uri,omitempty"`
DeploymentUri string `protobuf:"bytes,4,opt,name=deployment_uri,json=deploymentUri,proto3" json:"deployment_uri,omitempty"`
// Output only. The time the version was created.
CreateTime *google_protobuf2.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time the version was last used for prediction.
LastUseTime *google_protobuf2.Timestamp `protobuf:"bytes,6,opt,name=last_use_time,json=lastUseTime" json:"last_use_time,omitempty"`
LastUseTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=last_use_time,json=lastUseTime,proto3" json:"last_use_time,omitempty"`
// Optional. The Google Cloud ML runtime version to use for this deployment.
// If not set, Google Cloud ML will choose a version.
RuntimeVersion string `protobuf:"bytes,8,opt,name=runtime_version,json=runtimeVersion" json:"runtime_version,omitempty"`
RuntimeVersion string `protobuf:"bytes,8,opt,name=runtime_version,json=runtimeVersion,proto3" json:"runtime_version,omitempty"`
// Optional. Manually select the number of nodes to use for serving the
// model. If unset (i.e., by default), the number of nodes used to serve
// the model automatically scales with traffic. However, care should be
// taken to ramp up traffic according to the model's ability to scale. If
// your model needs to handle bursts of traffic beyond it's ability to
// scale, it is recommended you set this field appropriately.
ManualScaling *ManualScaling `protobuf:"bytes,9,opt,name=manual_scaling,json=manualScaling" json:"manual_scaling,omitempty"`
ManualScaling *ManualScaling `protobuf:"bytes,9,opt,name=manual_scaling,json=manualScaling,proto3" json:"manual_scaling,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Version) Reset() { *m = Version{} }
func (m *Version) String() string { return proto.CompactTextString(m) }
func (*Version) ProtoMessage() {}
func (*Version) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
func (m *Version) Reset() { *m = Version{} }
func (m *Version) String() string { return proto.CompactTextString(m) }
func (*Version) ProtoMessage() {}
func (*Version) Descriptor() ([]byte, []int) {
return fileDescriptor_model_service_adc1180e67bddc92, []int{1}
}
func (m *Version) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Version.Unmarshal(m, b)
}
func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Version.Marshal(b, m, deterministic)
}
func (dst *Version) XXX_Merge(src proto.Message) {
xxx_messageInfo_Version.Merge(dst, src)
}
func (m *Version) XXX_Size() int {
return xxx_messageInfo_Version.Size(m)
}
func (m *Version) XXX_DiscardUnknown() {
xxx_messageInfo_Version.DiscardUnknown(m)
}
var xxx_messageInfo_Version proto.InternalMessageInfo
func (m *Version) GetName() string {
if m != nil {
@ -167,14 +217,14 @@ func (m *Version) GetDeploymentUri() string {
return ""
}
func (m *Version) GetCreateTime() *google_protobuf2.Timestamp {
func (m *Version) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *Version) GetLastUseTime() *google_protobuf2.Timestamp {
func (m *Version) GetLastUseTime() *timestamp.Timestamp {
if m != nil {
return m.LastUseTime
}
@ -201,13 +251,35 @@ type ManualScaling struct {
// starting from the time the model is deployed, so the cost of operating
// this model will be proportional to nodes * number of hours since
// deployment.
Nodes int32 `protobuf:"varint,1,opt,name=nodes" json:"nodes,omitempty"`
Nodes int32 `protobuf:"varint,1,opt,name=nodes,proto3" json:"nodes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ManualScaling) Reset() { *m = ManualScaling{} }
func (m *ManualScaling) String() string { return proto.CompactTextString(m) }
func (*ManualScaling) ProtoMessage() {}
func (*ManualScaling) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
func (m *ManualScaling) Reset() { *m = ManualScaling{} }
func (m *ManualScaling) String() string { return proto.CompactTextString(m) }
func (*ManualScaling) ProtoMessage() {}
func (*ManualScaling) Descriptor() ([]byte, []int) {
return fileDescriptor_model_service_adc1180e67bddc92, []int{2}
}
func (m *ManualScaling) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ManualScaling.Unmarshal(m, b)
}
func (m *ManualScaling) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ManualScaling.Marshal(b, m, deterministic)
}
func (dst *ManualScaling) XXX_Merge(src proto.Message) {
xxx_messageInfo_ManualScaling.Merge(dst, src)
}
func (m *ManualScaling) XXX_Size() int {
return xxx_messageInfo_ManualScaling.Size(m)
}
func (m *ManualScaling) XXX_DiscardUnknown() {
xxx_messageInfo_ManualScaling.DiscardUnknown(m)
}
var xxx_messageInfo_ManualScaling proto.InternalMessageInfo
func (m *ManualScaling) GetNodes() int32 {
if m != nil {
@ -221,15 +293,37 @@ type CreateModelRequest struct {
// Required. The project name.
//
// Authorization: requires `Editor` role on the specified project.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The model to create.
Model *Model `protobuf:"bytes,2,opt,name=model" json:"model,omitempty"`
Model *Model `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateModelRequest) Reset() { *m = CreateModelRequest{} }
func (m *CreateModelRequest) String() string { return proto.CompactTextString(m) }
func (*CreateModelRequest) ProtoMessage() {}
func (*CreateModelRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
func (m *CreateModelRequest) Reset() { *m = CreateModelRequest{} }
func (m *CreateModelRequest) String() string { return proto.CompactTextString(m) }
func (*CreateModelRequest) ProtoMessage() {}
func (*CreateModelRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_model_service_adc1180e67bddc92, []int{3}
}
func (m *CreateModelRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateModelRequest.Unmarshal(m, b)
}
func (m *CreateModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateModelRequest.Marshal(b, m, deterministic)
}
func (dst *CreateModelRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateModelRequest.Merge(dst, src)
}
func (m *CreateModelRequest) XXX_Size() int {
return xxx_messageInfo_CreateModelRequest.Size(m)
}
func (m *CreateModelRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateModelRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateModelRequest proto.InternalMessageInfo
func (m *CreateModelRequest) GetParent() string {
if m != nil {
@ -250,24 +344,46 @@ type ListModelsRequest struct {
// Required. The name of the project whose models are to be listed.
//
// Authorization: requires `Viewer` role on the specified project.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. A page token to request the next page of results.
//
// You get the token from the `next_page_token` field of the response from
// the previous call.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. The number of models to retrieve per "page" of results. If there
// are more remaining results than this number, the response message will
// contain a valid value in the `next_page_token` field.
//
// The default value is 20, and the maximum page size is 100.
PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListModelsRequest) Reset() { *m = ListModelsRequest{} }
func (m *ListModelsRequest) String() string { return proto.CompactTextString(m) }
func (*ListModelsRequest) ProtoMessage() {}
func (*ListModelsRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
func (m *ListModelsRequest) Reset() { *m = ListModelsRequest{} }
func (m *ListModelsRequest) String() string { return proto.CompactTextString(m) }
func (*ListModelsRequest) ProtoMessage() {}
func (*ListModelsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_model_service_adc1180e67bddc92, []int{4}
}
func (m *ListModelsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListModelsRequest.Unmarshal(m, b)
}
func (m *ListModelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListModelsRequest.Marshal(b, m, deterministic)
}
func (dst *ListModelsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListModelsRequest.Merge(dst, src)
}
func (m *ListModelsRequest) XXX_Size() int {
return xxx_messageInfo_ListModelsRequest.Size(m)
}
func (m *ListModelsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListModelsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListModelsRequest proto.InternalMessageInfo
func (m *ListModelsRequest) GetParent() string {
if m != nil {
@ -293,16 +409,38 @@ func (m *ListModelsRequest) GetPageSize() int32 {
// Response message for the ListModels method.
type ListModelsResponse struct {
// The list of models.
Models []*Model `protobuf:"bytes,1,rep,name=models" json:"models,omitempty"`
Models []*Model `protobuf:"bytes,1,rep,name=models,proto3" json:"models,omitempty"`
// Optional. Pass this token as the `page_token` field of the request for a
// subsequent call.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListModelsResponse) Reset() { *m = ListModelsResponse{} }
func (m *ListModelsResponse) String() string { return proto.CompactTextString(m) }
func (*ListModelsResponse) ProtoMessage() {}
func (*ListModelsResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
func (m *ListModelsResponse) Reset() { *m = ListModelsResponse{} }
func (m *ListModelsResponse) String() string { return proto.CompactTextString(m) }
func (*ListModelsResponse) ProtoMessage() {}
func (*ListModelsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_model_service_adc1180e67bddc92, []int{5}
}
func (m *ListModelsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListModelsResponse.Unmarshal(m, b)
}
func (m *ListModelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListModelsResponse.Marshal(b, m, deterministic)
}
func (dst *ListModelsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListModelsResponse.Merge(dst, src)
}
func (m *ListModelsResponse) XXX_Size() int {
return xxx_messageInfo_ListModelsResponse.Size(m)
}
func (m *ListModelsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListModelsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListModelsResponse proto.InternalMessageInfo
func (m *ListModelsResponse) GetModels() []*Model {
if m != nil {
@ -323,13 +461,35 @@ type GetModelRequest struct {
// Required. The name of the model.
//
// Authorization: requires `Viewer` role on the parent project.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetModelRequest) Reset() { *m = GetModelRequest{} }
func (m *GetModelRequest) String() string { return proto.CompactTextString(m) }
func (*GetModelRequest) ProtoMessage() {}
func (*GetModelRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} }
func (m *GetModelRequest) Reset() { *m = GetModelRequest{} }
func (m *GetModelRequest) String() string { return proto.CompactTextString(m) }
func (*GetModelRequest) ProtoMessage() {}
func (*GetModelRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_model_service_adc1180e67bddc92, []int{6}
}
func (m *GetModelRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetModelRequest.Unmarshal(m, b)
}
func (m *GetModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetModelRequest.Marshal(b, m, deterministic)
}
func (dst *GetModelRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetModelRequest.Merge(dst, src)
}
func (m *GetModelRequest) XXX_Size() int {
return xxx_messageInfo_GetModelRequest.Size(m)
}
func (m *GetModelRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetModelRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetModelRequest proto.InternalMessageInfo
func (m *GetModelRequest) GetName() string {
if m != nil {
@ -343,13 +503,35 @@ type DeleteModelRequest struct {
// Required. The name of the model.
//
// Authorization: requires `Editor` role on the parent project.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteModelRequest) Reset() { *m = DeleteModelRequest{} }
func (m *DeleteModelRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteModelRequest) ProtoMessage() {}
func (*DeleteModelRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{7} }
func (m *DeleteModelRequest) Reset() { *m = DeleteModelRequest{} }
func (m *DeleteModelRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteModelRequest) ProtoMessage() {}
func (*DeleteModelRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_model_service_adc1180e67bddc92, []int{7}
}
func (m *DeleteModelRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteModelRequest.Unmarshal(m, b)
}
func (m *DeleteModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteModelRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteModelRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteModelRequest.Merge(dst, src)
}
func (m *DeleteModelRequest) XXX_Size() int {
return xxx_messageInfo_DeleteModelRequest.Size(m)
}
func (m *DeleteModelRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteModelRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteModelRequest proto.InternalMessageInfo
func (m *DeleteModelRequest) GetName() string {
if m != nil {
@ -363,15 +545,37 @@ type CreateVersionRequest struct {
// Required. The name of the model.
//
// Authorization: requires `Editor` role on the parent project.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The version details.
Version *Version `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateVersionRequest) Reset() { *m = CreateVersionRequest{} }
func (m *CreateVersionRequest) String() string { return proto.CompactTextString(m) }
func (*CreateVersionRequest) ProtoMessage() {}
func (*CreateVersionRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{8} }
func (m *CreateVersionRequest) Reset() { *m = CreateVersionRequest{} }
func (m *CreateVersionRequest) String() string { return proto.CompactTextString(m) }
func (*CreateVersionRequest) ProtoMessage() {}
func (*CreateVersionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_model_service_adc1180e67bddc92, []int{8}
}
func (m *CreateVersionRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateVersionRequest.Unmarshal(m, b)
}
func (m *CreateVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateVersionRequest.Marshal(b, m, deterministic)
}
func (dst *CreateVersionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateVersionRequest.Merge(dst, src)
}
func (m *CreateVersionRequest) XXX_Size() int {
return xxx_messageInfo_CreateVersionRequest.Size(m)
}
func (m *CreateVersionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateVersionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateVersionRequest proto.InternalMessageInfo
func (m *CreateVersionRequest) GetParent() string {
if m != nil {
@ -392,24 +596,46 @@ type ListVersionsRequest struct {
// Required. The name of the model for which to list the version.
//
// Authorization: requires `Viewer` role on the parent project.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. A page token to request the next page of results.
//
// You get the token from the `next_page_token` field of the response from
// the previous call.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. The number of versions to retrieve per "page" of results. If
// there are more remaining results than this number, the response message
// will contain a valid value in the `next_page_token` field.
//
// The default value is 20, and the maximum page size is 100.
PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListVersionsRequest) Reset() { *m = ListVersionsRequest{} }
func (m *ListVersionsRequest) String() string { return proto.CompactTextString(m) }
func (*ListVersionsRequest) ProtoMessage() {}
func (*ListVersionsRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{9} }
func (m *ListVersionsRequest) Reset() { *m = ListVersionsRequest{} }
func (m *ListVersionsRequest) String() string { return proto.CompactTextString(m) }
func (*ListVersionsRequest) ProtoMessage() {}
func (*ListVersionsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_model_service_adc1180e67bddc92, []int{9}
}
func (m *ListVersionsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListVersionsRequest.Unmarshal(m, b)
}
func (m *ListVersionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListVersionsRequest.Marshal(b, m, deterministic)
}
func (dst *ListVersionsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListVersionsRequest.Merge(dst, src)
}
func (m *ListVersionsRequest) XXX_Size() int {
return xxx_messageInfo_ListVersionsRequest.Size(m)
}
func (m *ListVersionsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListVersionsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListVersionsRequest proto.InternalMessageInfo
func (m *ListVersionsRequest) GetParent() string {
if m != nil {
@ -435,16 +661,38 @@ func (m *ListVersionsRequest) GetPageSize() int32 {
// Response message for the ListVersions method.
type ListVersionsResponse struct {
// The list of versions.
Versions []*Version `protobuf:"bytes,1,rep,name=versions" json:"versions,omitempty"`
Versions []*Version `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"`
// Optional. Pass this token as the `page_token` field of the request for a
// subsequent call.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListVersionsResponse) Reset() { *m = ListVersionsResponse{} }
func (m *ListVersionsResponse) String() string { return proto.CompactTextString(m) }
func (*ListVersionsResponse) ProtoMessage() {}
func (*ListVersionsResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{10} }
func (m *ListVersionsResponse) Reset() { *m = ListVersionsResponse{} }
func (m *ListVersionsResponse) String() string { return proto.CompactTextString(m) }
func (*ListVersionsResponse) ProtoMessage() {}
func (*ListVersionsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_model_service_adc1180e67bddc92, []int{10}
}
func (m *ListVersionsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListVersionsResponse.Unmarshal(m, b)
}
func (m *ListVersionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListVersionsResponse.Marshal(b, m, deterministic)
}
func (dst *ListVersionsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListVersionsResponse.Merge(dst, src)
}
func (m *ListVersionsResponse) XXX_Size() int {
return xxx_messageInfo_ListVersionsResponse.Size(m)
}
func (m *ListVersionsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListVersionsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListVersionsResponse proto.InternalMessageInfo
func (m *ListVersionsResponse) GetVersions() []*Version {
if m != nil {
@ -465,13 +713,35 @@ type GetVersionRequest struct {
// Required. The name of the version.
//
// Authorization: requires `Viewer` role on the parent project.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetVersionRequest) Reset() { *m = GetVersionRequest{} }
func (m *GetVersionRequest) String() string { return proto.CompactTextString(m) }
func (*GetVersionRequest) ProtoMessage() {}
func (*GetVersionRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{11} }
func (m *GetVersionRequest) Reset() { *m = GetVersionRequest{} }
func (m *GetVersionRequest) String() string { return proto.CompactTextString(m) }
func (*GetVersionRequest) ProtoMessage() {}
func (*GetVersionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_model_service_adc1180e67bddc92, []int{11}
}
func (m *GetVersionRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetVersionRequest.Unmarshal(m, b)
}
func (m *GetVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetVersionRequest.Marshal(b, m, deterministic)
}
func (dst *GetVersionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetVersionRequest.Merge(dst, src)
}
func (m *GetVersionRequest) XXX_Size() int {
return xxx_messageInfo_GetVersionRequest.Size(m)
}
func (m *GetVersionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetVersionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetVersionRequest proto.InternalMessageInfo
func (m *GetVersionRequest) GetName() string {
if m != nil {
@ -487,13 +757,35 @@ type DeleteVersionRequest struct {
// [projects.models.versions.list](/ml/reference/rest/v1/projects.models.versions/list).
//
// Authorization: requires `Editor` role on the parent project.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteVersionRequest) Reset() { *m = DeleteVersionRequest{} }
func (m *DeleteVersionRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteVersionRequest) ProtoMessage() {}
func (*DeleteVersionRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{12} }
func (m *DeleteVersionRequest) Reset() { *m = DeleteVersionRequest{} }
func (m *DeleteVersionRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteVersionRequest) ProtoMessage() {}
func (*DeleteVersionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_model_service_adc1180e67bddc92, []int{12}
}
func (m *DeleteVersionRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteVersionRequest.Unmarshal(m, b)
}
func (m *DeleteVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteVersionRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteVersionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteVersionRequest.Merge(dst, src)
}
func (m *DeleteVersionRequest) XXX_Size() int {
return xxx_messageInfo_DeleteVersionRequest.Size(m)
}
func (m *DeleteVersionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteVersionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteVersionRequest proto.InternalMessageInfo
func (m *DeleteVersionRequest) GetName() string {
if m != nil {
@ -509,13 +801,35 @@ type SetDefaultVersionRequest struct {
// [projects.models.versions.list](/ml/reference/rest/v1/projects.models.versions/list).
//
// Authorization: requires `Editor` role on the parent project.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SetDefaultVersionRequest) Reset() { *m = SetDefaultVersionRequest{} }
func (m *SetDefaultVersionRequest) String() string { return proto.CompactTextString(m) }
func (*SetDefaultVersionRequest) ProtoMessage() {}
func (*SetDefaultVersionRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{13} }
func (m *SetDefaultVersionRequest) Reset() { *m = SetDefaultVersionRequest{} }
func (m *SetDefaultVersionRequest) String() string { return proto.CompactTextString(m) }
func (*SetDefaultVersionRequest) ProtoMessage() {}
func (*SetDefaultVersionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_model_service_adc1180e67bddc92, []int{13}
}
func (m *SetDefaultVersionRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetDefaultVersionRequest.Unmarshal(m, b)
}
func (m *SetDefaultVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetDefaultVersionRequest.Marshal(b, m, deterministic)
}
func (dst *SetDefaultVersionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetDefaultVersionRequest.Merge(dst, src)
}
func (m *SetDefaultVersionRequest) XXX_Size() int {
return xxx_messageInfo_SetDefaultVersionRequest.Size(m)
}
func (m *SetDefaultVersionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SetDefaultVersionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SetDefaultVersionRequest proto.InternalMessageInfo
func (m *SetDefaultVersionRequest) GetName() string {
if m != nil {
@ -549,8 +863,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for ModelService service
// ModelServiceClient is the client API for ModelService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ModelServiceClient interface {
// Creates a model which will later contain one or more versions.
//
@ -572,7 +887,7 @@ type ModelServiceClient interface {
// You can only delete a model if there are no versions in it. You can delete
// versions by calling
// [projects.models.versions.delete](/ml/reference/rest/v1/projects.models.versions/delete).
DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Creates a new version of a model from a trained TensorFlow model.
//
// If the version created in the cloud by this call is the first deployed
@ -581,7 +896,7 @@ type ModelServiceClient interface {
// versions, the default version does not automatically change. If you want a
// new version to be the default, you must call
// [projects.models.versions.setDefault](/ml/reference/rest/v1/projects.models.versions/setDefault).
CreateVersion(ctx context.Context, in *CreateVersionRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
CreateVersion(ctx context.Context, in *CreateVersionRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Gets basic information about all the versions of a model.
//
// If you expect that a model has a lot of versions, or if you need to handle
@ -602,7 +917,7 @@ type ModelServiceClient interface {
//
// Note: You cannot delete the version that is set as the default version
// of the model unless it is the only remaining version.
DeleteVersion(ctx context.Context, in *DeleteVersionRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
DeleteVersion(ctx context.Context, in *DeleteVersionRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Designates a version to be the default for the model.
//
// The default version is used for prediction requests made against the model
@ -624,7 +939,7 @@ func NewModelServiceClient(cc *grpc.ClientConn) ModelServiceClient {
func (c *modelServiceClient) CreateModel(ctx context.Context, in *CreateModelRequest, opts ...grpc.CallOption) (*Model, error) {
out := new(Model)
err := grpc.Invoke(ctx, "/google.cloud.ml.v1.ModelService/CreateModel", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.ml.v1.ModelService/CreateModel", in, out, opts...)
if err != nil {
return nil, err
}
@ -633,7 +948,7 @@ func (c *modelServiceClient) CreateModel(ctx context.Context, in *CreateModelReq
func (c *modelServiceClient) ListModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (*ListModelsResponse, error) {
out := new(ListModelsResponse)
err := grpc.Invoke(ctx, "/google.cloud.ml.v1.ModelService/ListModels", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.ml.v1.ModelService/ListModels", in, out, opts...)
if err != nil {
return nil, err
}
@ -642,25 +957,25 @@ func (c *modelServiceClient) ListModels(ctx context.Context, in *ListModelsReque
func (c *modelServiceClient) GetModel(ctx context.Context, in *GetModelRequest, opts ...grpc.CallOption) (*Model, error) {
out := new(Model)
err := grpc.Invoke(ctx, "/google.cloud.ml.v1.ModelService/GetModel", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.ml.v1.ModelService/GetModel", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *modelServiceClient) DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.cloud.ml.v1.ModelService/DeleteModel", in, out, c.cc, opts...)
func (c *modelServiceClient) DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
out := new(longrunning.Operation)
err := c.cc.Invoke(ctx, "/google.cloud.ml.v1.ModelService/DeleteModel", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *modelServiceClient) CreateVersion(ctx context.Context, in *CreateVersionRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.cloud.ml.v1.ModelService/CreateVersion", in, out, c.cc, opts...)
func (c *modelServiceClient) CreateVersion(ctx context.Context, in *CreateVersionRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
out := new(longrunning.Operation)
err := c.cc.Invoke(ctx, "/google.cloud.ml.v1.ModelService/CreateVersion", in, out, opts...)
if err != nil {
return nil, err
}
@ -669,7 +984,7 @@ func (c *modelServiceClient) CreateVersion(ctx context.Context, in *CreateVersio
func (c *modelServiceClient) ListVersions(ctx context.Context, in *ListVersionsRequest, opts ...grpc.CallOption) (*ListVersionsResponse, error) {
out := new(ListVersionsResponse)
err := grpc.Invoke(ctx, "/google.cloud.ml.v1.ModelService/ListVersions", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.ml.v1.ModelService/ListVersions", in, out, opts...)
if err != nil {
return nil, err
}
@ -678,16 +993,16 @@ func (c *modelServiceClient) ListVersions(ctx context.Context, in *ListVersionsR
func (c *modelServiceClient) GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*Version, error) {
out := new(Version)
err := grpc.Invoke(ctx, "/google.cloud.ml.v1.ModelService/GetVersion", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.ml.v1.ModelService/GetVersion", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *modelServiceClient) DeleteVersion(ctx context.Context, in *DeleteVersionRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.cloud.ml.v1.ModelService/DeleteVersion", in, out, c.cc, opts...)
func (c *modelServiceClient) DeleteVersion(ctx context.Context, in *DeleteVersionRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
out := new(longrunning.Operation)
err := c.cc.Invoke(ctx, "/google.cloud.ml.v1.ModelService/DeleteVersion", in, out, opts...)
if err != nil {
return nil, err
}
@ -696,15 +1011,14 @@ func (c *modelServiceClient) DeleteVersion(ctx context.Context, in *DeleteVersio
func (c *modelServiceClient) SetDefaultVersion(ctx context.Context, in *SetDefaultVersionRequest, opts ...grpc.CallOption) (*Version, error) {
out := new(Version)
err := grpc.Invoke(ctx, "/google.cloud.ml.v1.ModelService/SetDefaultVersion", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.ml.v1.ModelService/SetDefaultVersion", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for ModelService service
// ModelServiceServer is the server API for ModelService service.
type ModelServiceServer interface {
// Creates a model which will later contain one or more versions.
//
@ -726,7 +1040,7 @@ type ModelServiceServer interface {
// You can only delete a model if there are no versions in it. You can delete
// versions by calling
// [projects.models.versions.delete](/ml/reference/rest/v1/projects.models.versions/delete).
DeleteModel(context.Context, *DeleteModelRequest) (*google_longrunning.Operation, error)
DeleteModel(context.Context, *DeleteModelRequest) (*longrunning.Operation, error)
// Creates a new version of a model from a trained TensorFlow model.
//
// If the version created in the cloud by this call is the first deployed
@ -735,7 +1049,7 @@ type ModelServiceServer interface {
// versions, the default version does not automatically change. If you want a
// new version to be the default, you must call
// [projects.models.versions.setDefault](/ml/reference/rest/v1/projects.models.versions/setDefault).
CreateVersion(context.Context, *CreateVersionRequest) (*google_longrunning.Operation, error)
CreateVersion(context.Context, *CreateVersionRequest) (*longrunning.Operation, error)
// Gets basic information about all the versions of a model.
//
// If you expect that a model has a lot of versions, or if you need to handle
@ -756,7 +1070,7 @@ type ModelServiceServer interface {
//
// Note: You cannot delete the version that is set as the default version
// of the model unless it is the only remaining version.
DeleteVersion(context.Context, *DeleteVersionRequest) (*google_longrunning.Operation, error)
DeleteVersion(context.Context, *DeleteVersionRequest) (*longrunning.Operation, error)
// Designates a version to be the default for the model.
//
// The default version is used for prediction requests made against the model
@ -979,9 +1293,11 @@ var _ModelService_serviceDesc = grpc.ServiceDesc{
Metadata: "google/cloud/ml/v1/model_service.proto",
}
func init() { proto.RegisterFile("google/cloud/ml/v1/model_service.proto", fileDescriptor1) }
func init() {
proto.RegisterFile("google/cloud/ml/v1/model_service.proto", fileDescriptor_model_service_adc1180e67bddc92)
}
var fileDescriptor1 = []byte{
var fileDescriptor_model_service_adc1180e67bddc92 = []byte{
// 996 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcf, 0x6f, 0xe3, 0x44,
0x14, 0x96, 0xdb, 0xa6, 0x4d, 0x5e, 0x36, 0xad, 0x3a, 0x14, 0xc8, 0x66, 0x29, 0x04, 0xaf, 0xda,

View File

@ -1,19 +1,25 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/ml/v1/operation_metadata.proto
package ml
package ml // import "google.golang.org/genproto/googleapis/cloud/ml/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf2 "github.com/golang/protobuf/ptypes/timestamp"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The operation type.
type OperationMetadata_OperationType int32
@ -45,47 +51,69 @@ func (x OperationMetadata_OperationType) String() string {
return proto.EnumName(OperationMetadata_OperationType_name, int32(x))
}
func (OperationMetadata_OperationType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor2, []int{0, 0}
return fileDescriptor_operation_metadata_67f21a738daf74c6, []int{0, 0}
}
// Represents the metadata of the long-running operation.
type OperationMetadata struct {
// The time the operation was submitted.
CreateTime *google_protobuf2.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// The time operation processing started.
StartTime *google_protobuf2.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// The time operation processing completed.
EndTime *google_protobuf2.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
EndTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Indicates whether a request to cancel this operation has been made.
IsCancellationRequested bool `protobuf:"varint,4,opt,name=is_cancellation_requested,json=isCancellationRequested" json:"is_cancellation_requested,omitempty"`
IsCancellationRequested bool `protobuf:"varint,4,opt,name=is_cancellation_requested,json=isCancellationRequested,proto3" json:"is_cancellation_requested,omitempty"`
// The operation type.
OperationType OperationMetadata_OperationType `protobuf:"varint,5,opt,name=operation_type,json=operationType,enum=google.cloud.ml.v1.OperationMetadata_OperationType" json:"operation_type,omitempty"`
OperationType OperationMetadata_OperationType `protobuf:"varint,5,opt,name=operation_type,json=operationType,proto3,enum=google.cloud.ml.v1.OperationMetadata_OperationType" json:"operation_type,omitempty"`
// Contains the name of the model associated with the operation.
ModelName string `protobuf:"bytes,6,opt,name=model_name,json=modelName" json:"model_name,omitempty"`
ModelName string `protobuf:"bytes,6,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"`
// Contains the version associated with the operation.
Version *Version `protobuf:"bytes,7,opt,name=version" json:"version,omitempty"`
Version *Version `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OperationMetadata) Reset() { *m = OperationMetadata{} }
func (m *OperationMetadata) String() string { return proto.CompactTextString(m) }
func (*OperationMetadata) ProtoMessage() {}
func (*OperationMetadata) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
func (m *OperationMetadata) Reset() { *m = OperationMetadata{} }
func (m *OperationMetadata) String() string { return proto.CompactTextString(m) }
func (*OperationMetadata) ProtoMessage() {}
func (*OperationMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_operation_metadata_67f21a738daf74c6, []int{0}
}
func (m *OperationMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OperationMetadata.Unmarshal(m, b)
}
func (m *OperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OperationMetadata.Marshal(b, m, deterministic)
}
func (dst *OperationMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_OperationMetadata.Merge(dst, src)
}
func (m *OperationMetadata) XXX_Size() int {
return xxx_messageInfo_OperationMetadata.Size(m)
}
func (m *OperationMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_OperationMetadata.DiscardUnknown(m)
}
func (m *OperationMetadata) GetCreateTime() *google_protobuf2.Timestamp {
var xxx_messageInfo_OperationMetadata proto.InternalMessageInfo
func (m *OperationMetadata) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *OperationMetadata) GetStartTime() *google_protobuf2.Timestamp {
func (m *OperationMetadata) GetStartTime() *timestamp.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *OperationMetadata) GetEndTime() *google_protobuf2.Timestamp {
func (m *OperationMetadata) GetEndTime() *timestamp.Timestamp {
if m != nil {
return m.EndTime
}
@ -125,9 +153,11 @@ func init() {
proto.RegisterEnum("google.cloud.ml.v1.OperationMetadata_OperationType", OperationMetadata_OperationType_name, OperationMetadata_OperationType_value)
}
func init() { proto.RegisterFile("google/cloud/ml/v1/operation_metadata.proto", fileDescriptor2) }
func init() {
proto.RegisterFile("google/cloud/ml/v1/operation_metadata.proto", fileDescriptor_operation_metadata_67f21a738daf74c6)
}
var fileDescriptor2 = []byte{
var fileDescriptor_operation_metadata_67f21a738daf74c6 = []byte{
// 454 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x5f, 0x6b, 0xdb, 0x30,
0x14, 0xc5, 0xe7, 0xb6, 0x6b, 0x1a, 0x75, 0x0d, 0x99, 0x1e, 0xb6, 0xcc, 0xfb, 0x17, 0xfa, 0x30,

View File

@ -1,13 +1,13 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/ml/v1/prediction_service.proto
package ml
package ml // import "google.golang.org/genproto/googleapis/cloud/ml/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_api3 "google.golang.org/genproto/googleapis/api/httpbody"
import httpbody "google.golang.org/genproto/googleapis/api/httpbody"
import (
context "golang.org/x/net/context"
@ -19,6 +19,12 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Request for predictions to be issued against a trained model.
//
// The body of the request is a single JSON object with a single top-level
@ -209,16 +215,38 @@ type PredictRequest struct {
// Required. The resource name of a model or a version.
//
// Authorization: requires `Viewer` role on the parent project.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
//
// Required. The prediction request body.
HttpBody *google_api3.HttpBody `protobuf:"bytes,2,opt,name=http_body,json=httpBody" json:"http_body,omitempty"`
HttpBody *httpbody.HttpBody `protobuf:"bytes,2,opt,name=http_body,json=httpBody,proto3" json:"http_body,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PredictRequest) Reset() { *m = PredictRequest{} }
func (m *PredictRequest) String() string { return proto.CompactTextString(m) }
func (*PredictRequest) ProtoMessage() {}
func (*PredictRequest) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
func (m *PredictRequest) Reset() { *m = PredictRequest{} }
func (m *PredictRequest) String() string { return proto.CompactTextString(m) }
func (*PredictRequest) ProtoMessage() {}
func (*PredictRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_prediction_service_92107018d3d8c7da, []int{0}
}
func (m *PredictRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PredictRequest.Unmarshal(m, b)
}
func (m *PredictRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PredictRequest.Marshal(b, m, deterministic)
}
func (dst *PredictRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PredictRequest.Merge(dst, src)
}
func (m *PredictRequest) XXX_Size() int {
return xxx_messageInfo_PredictRequest.Size(m)
}
func (m *PredictRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PredictRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PredictRequest proto.InternalMessageInfo
func (m *PredictRequest) GetName() string {
if m != nil {
@ -227,7 +255,7 @@ func (m *PredictRequest) GetName() string {
return ""
}
func (m *PredictRequest) GetHttpBody() *google_api3.HttpBody {
func (m *PredictRequest) GetHttpBody() *httpbody.HttpBody {
if m != nil {
return m.HttpBody
}
@ -246,13 +274,14 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for OnlinePredictionService service
// OnlinePredictionServiceClient is the client API for OnlinePredictionService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type OnlinePredictionServiceClient interface {
// Performs prediction on the data in the request.
//
// **** REMOVE FROM GENERATED DOCUMENTATION
Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*google_api3.HttpBody, error)
Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error)
}
type onlinePredictionServiceClient struct {
@ -263,22 +292,21 @@ func NewOnlinePredictionServiceClient(cc *grpc.ClientConn) OnlinePredictionServi
return &onlinePredictionServiceClient{cc}
}
func (c *onlinePredictionServiceClient) Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*google_api3.HttpBody, error) {
out := new(google_api3.HttpBody)
err := grpc.Invoke(ctx, "/google.cloud.ml.v1.OnlinePredictionService/Predict", in, out, c.cc, opts...)
func (c *onlinePredictionServiceClient) Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error) {
out := new(httpbody.HttpBody)
err := c.cc.Invoke(ctx, "/google.cloud.ml.v1.OnlinePredictionService/Predict", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for OnlinePredictionService service
// OnlinePredictionServiceServer is the server API for OnlinePredictionService service.
type OnlinePredictionServiceServer interface {
// Performs prediction on the data in the request.
//
// **** REMOVE FROM GENERATED DOCUMENTATION
Predict(context.Context, *PredictRequest) (*google_api3.HttpBody, error)
Predict(context.Context, *PredictRequest) (*httpbody.HttpBody, error)
}
func RegisterOnlinePredictionServiceServer(s *grpc.Server, srv OnlinePredictionServiceServer) {
@ -316,9 +344,11 @@ var _OnlinePredictionService_serviceDesc = grpc.ServiceDesc{
Metadata: "google/cloud/ml/v1/prediction_service.proto",
}
func init() { proto.RegisterFile("google/cloud/ml/v1/prediction_service.proto", fileDescriptor3) }
func init() {
proto.RegisterFile("google/cloud/ml/v1/prediction_service.proto", fileDescriptor_prediction_service_92107018d3d8c7da)
}
var fileDescriptor3 = []byte{
var fileDescriptor_prediction_service_92107018d3d8c7da = []byte{
// 308 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x51, 0x4f, 0x4b, 0xfb, 0x30,
0x18, 0xa6, 0xe3, 0xc7, 0x4f, 0x17, 0xc1, 0x43, 0x10, 0x9d, 0x45, 0x64, 0xd4, 0xcb, 0x9c, 0x90,

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/ml/v1/project_service.proto
package ml
package ml // import "google.golang.org/genproto/googleapis/cloud/ml/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -18,18 +18,46 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Requests service account information associated with a project.
type GetConfigRequest struct {
// Required. The project name.
//
// Authorization: requires `Viewer` role on the specified project.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetConfigRequest) Reset() { *m = GetConfigRequest{} }
func (m *GetConfigRequest) String() string { return proto.CompactTextString(m) }
func (*GetConfigRequest) ProtoMessage() {}
func (*GetConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} }
func (m *GetConfigRequest) Reset() { *m = GetConfigRequest{} }
func (m *GetConfigRequest) String() string { return proto.CompactTextString(m) }
func (*GetConfigRequest) ProtoMessage() {}
func (*GetConfigRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_project_service_00dbe1d4c2a6bfee, []int{0}
}
func (m *GetConfigRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetConfigRequest.Unmarshal(m, b)
}
func (m *GetConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetConfigRequest.Marshal(b, m, deterministic)
}
func (dst *GetConfigRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetConfigRequest.Merge(dst, src)
}
func (m *GetConfigRequest) XXX_Size() int {
return xxx_messageInfo_GetConfigRequest.Size(m)
}
func (m *GetConfigRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetConfigRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetConfigRequest proto.InternalMessageInfo
func (m *GetConfigRequest) GetName() string {
if m != nil {
@ -41,15 +69,37 @@ func (m *GetConfigRequest) GetName() string {
// Returns service account information associated with a project.
type GetConfigResponse struct {
// The service account Cloud ML uses to access resources in the project.
ServiceAccount string `protobuf:"bytes,1,opt,name=service_account,json=serviceAccount" json:"service_account,omitempty"`
ServiceAccount string `protobuf:"bytes,1,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
// The project number for `service_account`.
ServiceAccountProject int64 `protobuf:"varint,2,opt,name=service_account_project,json=serviceAccountProject" json:"service_account_project,omitempty"`
ServiceAccountProject int64 `protobuf:"varint,2,opt,name=service_account_project,json=serviceAccountProject,proto3" json:"service_account_project,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetConfigResponse) Reset() { *m = GetConfigResponse{} }
func (m *GetConfigResponse) String() string { return proto.CompactTextString(m) }
func (*GetConfigResponse) ProtoMessage() {}
func (*GetConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{1} }
func (m *GetConfigResponse) Reset() { *m = GetConfigResponse{} }
func (m *GetConfigResponse) String() string { return proto.CompactTextString(m) }
func (*GetConfigResponse) ProtoMessage() {}
func (*GetConfigResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_project_service_00dbe1d4c2a6bfee, []int{1}
}
func (m *GetConfigResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetConfigResponse.Unmarshal(m, b)
}
func (m *GetConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetConfigResponse.Marshal(b, m, deterministic)
}
func (dst *GetConfigResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetConfigResponse.Merge(dst, src)
}
func (m *GetConfigResponse) XXX_Size() int {
return xxx_messageInfo_GetConfigResponse.Size(m)
}
func (m *GetConfigResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetConfigResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetConfigResponse proto.InternalMessageInfo
func (m *GetConfigResponse) GetServiceAccount() string {
if m != nil {
@ -78,8 +128,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for ProjectManagementService service
// ProjectManagementServiceClient is the client API for ProjectManagementService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ProjectManagementServiceClient interface {
// Get the service account information associated with your project. You need
// this information in order to grant the service account persmissions for
@ -98,15 +149,14 @@ func NewProjectManagementServiceClient(cc *grpc.ClientConn) ProjectManagementSer
func (c *projectManagementServiceClient) GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error) {
out := new(GetConfigResponse)
err := grpc.Invoke(ctx, "/google.cloud.ml.v1.ProjectManagementService/GetConfig", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.ml.v1.ProjectManagementService/GetConfig", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for ProjectManagementService service
// ProjectManagementServiceServer is the server API for ProjectManagementService service.
type ProjectManagementServiceServer interface {
// Get the service account information associated with your project. You need
// this information in order to grant the service account persmissions for
@ -150,9 +200,11 @@ var _ProjectManagementService_serviceDesc = grpc.ServiceDesc{
Metadata: "google/cloud/ml/v1/project_service.proto",
}
func init() { proto.RegisterFile("google/cloud/ml/v1/project_service.proto", fileDescriptor4) }
func init() {
proto.RegisterFile("google/cloud/ml/v1/project_service.proto", fileDescriptor_project_service_00dbe1d4c2a6bfee)
}
var fileDescriptor4 = []byte{
var fileDescriptor_project_service_00dbe1d4c2a6bfee = []byte{
// 319 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xbf, 0x4a, 0x43, 0x31,
0x14, 0xc6, 0xb9, 0x55, 0x84, 0x66, 0xf0, 0x4f, 0x44, 0x2c, 0x45, 0xb0, 0x16, 0xb5, 0xc5, 0x21,

View File

@ -1,17 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/oslogin/common/common.proto
/*
Package common is a generated protocol buffer package.
It is generated from these files:
google/cloud/oslogin/common/common.proto
It has these top-level messages:
PosixAccount
SshPublicKey
*/
package common
package common // import "google.golang.org/genproto/googleapis/cloud/oslogin/common"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -32,30 +22,52 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The POSIX account information associated with a Google account.
type PosixAccount struct {
// Only one POSIX account can be marked as primary.
Primary bool `protobuf:"varint,1,opt,name=primary" json:"primary,omitempty"`
Primary bool `protobuf:"varint,1,opt,name=primary,proto3" json:"primary,omitempty"`
// The username of the POSIX account.
Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
// The user ID.
Uid int64 `protobuf:"varint,3,opt,name=uid" json:"uid,omitempty"`
Uid int64 `protobuf:"varint,3,opt,name=uid,proto3" json:"uid,omitempty"`
// The default group ID.
Gid int64 `protobuf:"varint,4,opt,name=gid" json:"gid,omitempty"`
Gid int64 `protobuf:"varint,4,opt,name=gid,proto3" json:"gid,omitempty"`
// The path to the home directory for this account.
HomeDirectory string `protobuf:"bytes,5,opt,name=home_directory,json=homeDirectory" json:"home_directory,omitempty"`
HomeDirectory string `protobuf:"bytes,5,opt,name=home_directory,json=homeDirectory,proto3" json:"home_directory,omitempty"`
// The path to the logic shell for this account.
Shell string `protobuf:"bytes,6,opt,name=shell" json:"shell,omitempty"`
Shell string `protobuf:"bytes,6,opt,name=shell,proto3" json:"shell,omitempty"`
// The GECOS (user information) entry for this account.
Gecos string `protobuf:"bytes,7,opt,name=gecos" json:"gecos,omitempty"`
Gecos string `protobuf:"bytes,7,opt,name=gecos,proto3" json:"gecos,omitempty"`
// System identifier for which account the username or uid applies to.
// By default, the empty value is used.
SystemId string `protobuf:"bytes,8,opt,name=system_id,json=systemId" json:"system_id,omitempty"`
SystemId string `protobuf:"bytes,8,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
// Output only. A POSIX account identifier.
AccountId string `protobuf:"bytes,9,opt,name=account_id,json=accountId" json:"account_id,omitempty"`
AccountId string `protobuf:"bytes,9,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PosixAccount) Reset() { *m = PosixAccount{} }
func (m *PosixAccount) String() string { return proto.CompactTextString(m) }
func (*PosixAccount) ProtoMessage() {}
func (*PosixAccount) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *PosixAccount) Reset() { *m = PosixAccount{} }
func (m *PosixAccount) String() string { return proto.CompactTextString(m) }
func (*PosixAccount) ProtoMessage() {}
func (*PosixAccount) Descriptor() ([]byte, []int) {
return fileDescriptor_common_ebba42564a5ff09e, []int{0}
}
func (m *PosixAccount) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PosixAccount.Unmarshal(m, b)
}
func (m *PosixAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PosixAccount.Marshal(b, m, deterministic)
}
func (dst *PosixAccount) XXX_Merge(src proto.Message) {
xxx_messageInfo_PosixAccount.Merge(dst, src)
}
func (m *PosixAccount) XXX_Size() int {
return xxx_messageInfo_PosixAccount.Size(m)
}
func (m *PosixAccount) XXX_DiscardUnknown() {
xxx_messageInfo_PosixAccount.DiscardUnknown(m)
}
var xxx_messageInfo_PosixAccount proto.InternalMessageInfo
func (m *PosixAccount) GetPrimary() bool {
if m != nil {
@ -125,17 +137,39 @@ type SshPublicKey struct {
// Public key text in SSH format, defined by
// <a href="https://www.ietf.org/rfc/rfc4253.txt" target="_blank">RFC4253</a>
// section 6.6.
Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// An expiration time in microseconds since epoch.
ExpirationTimeUsec int64 `protobuf:"varint,2,opt,name=expiration_time_usec,json=expirationTimeUsec" json:"expiration_time_usec,omitempty"`
ExpirationTimeUsec int64 `protobuf:"varint,2,opt,name=expiration_time_usec,json=expirationTimeUsec,proto3" json:"expiration_time_usec,omitempty"`
// Output only. The SHA-256 fingerprint of the SSH public key.
Fingerprint string `protobuf:"bytes,3,opt,name=fingerprint" json:"fingerprint,omitempty"`
Fingerprint string `protobuf:"bytes,3,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SshPublicKey) Reset() { *m = SshPublicKey{} }
func (m *SshPublicKey) String() string { return proto.CompactTextString(m) }
func (*SshPublicKey) ProtoMessage() {}
func (*SshPublicKey) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *SshPublicKey) Reset() { *m = SshPublicKey{} }
func (m *SshPublicKey) String() string { return proto.CompactTextString(m) }
func (*SshPublicKey) ProtoMessage() {}
func (*SshPublicKey) Descriptor() ([]byte, []int) {
return fileDescriptor_common_ebba42564a5ff09e, []int{1}
}
func (m *SshPublicKey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SshPublicKey.Unmarshal(m, b)
}
func (m *SshPublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SshPublicKey.Marshal(b, m, deterministic)
}
func (dst *SshPublicKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_SshPublicKey.Merge(dst, src)
}
func (m *SshPublicKey) XXX_Size() int {
return xxx_messageInfo_SshPublicKey.Size(m)
}
func (m *SshPublicKey) XXX_DiscardUnknown() {
xxx_messageInfo_SshPublicKey.DiscardUnknown(m)
}
var xxx_messageInfo_SshPublicKey proto.InternalMessageInfo
func (m *SshPublicKey) GetKey() string {
if m != nil {
@ -163,9 +197,11 @@ func init() {
proto.RegisterType((*SshPublicKey)(nil), "google.cloud.oslogin.common.SshPublicKey")
}
func init() { proto.RegisterFile("google/cloud/oslogin/common/common.proto", fileDescriptor0) }
func init() {
proto.RegisterFile("google/cloud/oslogin/common/common.proto", fileDescriptor_common_ebba42564a5ff09e)
}
var fileDescriptor0 = []byte{
var fileDescriptor_common_ebba42564a5ff09e = []byte{
// 406 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0x41, 0x6b, 0x14, 0x31,
0x14, 0xc7, 0x99, 0xae, 0x6d, 0x77, 0xe2, 0x2a, 0x12, 0x7a, 0x08, 0x5d, 0xc5, 0xa5, 0x20, 0xec,

View File

@ -1,31 +1,15 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/oslogin/v1/oslogin.proto
/*
Package oslogin is a generated protocol buffer package.
It is generated from these files:
google/cloud/oslogin/v1/oslogin.proto
It has these top-level messages:
LoginProfile
DeletePosixAccountRequest
DeleteSshPublicKeyRequest
GetLoginProfileRequest
GetSshPublicKeyRequest
ImportSshPublicKeyRequest
ImportSshPublicKeyResponse
UpdateSshPublicKeyRequest
*/
package oslogin
package oslogin // import "google.golang.org/genproto/googleapis/cloud/oslogin/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import empty "github.com/golang/protobuf/ptypes/empty"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_cloud_oslogin_common "google.golang.org/genproto/googleapis/cloud/oslogin/common"
import google_protobuf1 "github.com/golang/protobuf/ptypes/empty"
import google_protobuf2 "google.golang.org/genproto/protobuf/field_mask"
import common "google.golang.org/genproto/googleapis/cloud/oslogin/common"
import field_mask "google.golang.org/genproto/protobuf/field_mask"
import (
context "golang.org/x/net/context"
@ -47,20 +31,42 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Google Compute Engine.
type LoginProfile struct {
// The primary email address that uniquely identifies the user.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The list of POSIX accounts associated with the user.
PosixAccounts []*google_cloud_oslogin_common.PosixAccount `protobuf:"bytes,2,rep,name=posix_accounts,json=posixAccounts" json:"posix_accounts,omitempty"`
PosixAccounts []*common.PosixAccount `protobuf:"bytes,2,rep,name=posix_accounts,json=posixAccounts,proto3" json:"posix_accounts,omitempty"`
// A map from SSH public key fingerprint to the associated key object.
SshPublicKeys map[string]*google_cloud_oslogin_common.SshPublicKey `protobuf:"bytes,3,rep,name=ssh_public_keys,json=sshPublicKeys" json:"ssh_public_keys,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
SshPublicKeys map[string]*common.SshPublicKey `protobuf:"bytes,3,rep,name=ssh_public_keys,json=sshPublicKeys,proto3" json:"ssh_public_keys,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Indicates if the user is suspended. A suspended user cannot log in but
// their profile information is retained.
Suspended bool `protobuf:"varint,4,opt,name=suspended" json:"suspended,omitempty"`
Suspended bool `protobuf:"varint,4,opt,name=suspended,proto3" json:"suspended,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LoginProfile) Reset() { *m = LoginProfile{} }
func (m *LoginProfile) String() string { return proto.CompactTextString(m) }
func (*LoginProfile) ProtoMessage() {}
func (*LoginProfile) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *LoginProfile) Reset() { *m = LoginProfile{} }
func (m *LoginProfile) String() string { return proto.CompactTextString(m) }
func (*LoginProfile) ProtoMessage() {}
func (*LoginProfile) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_45adadde0ac6d3e5, []int{0}
}
func (m *LoginProfile) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LoginProfile.Unmarshal(m, b)
}
func (m *LoginProfile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LoginProfile.Marshal(b, m, deterministic)
}
func (dst *LoginProfile) XXX_Merge(src proto.Message) {
xxx_messageInfo_LoginProfile.Merge(dst, src)
}
func (m *LoginProfile) XXX_Size() int {
return xxx_messageInfo_LoginProfile.Size(m)
}
func (m *LoginProfile) XXX_DiscardUnknown() {
xxx_messageInfo_LoginProfile.DiscardUnknown(m)
}
var xxx_messageInfo_LoginProfile proto.InternalMessageInfo
func (m *LoginProfile) GetName() string {
if m != nil {
@ -69,14 +75,14 @@ func (m *LoginProfile) GetName() string {
return ""
}
func (m *LoginProfile) GetPosixAccounts() []*google_cloud_oslogin_common.PosixAccount {
func (m *LoginProfile) GetPosixAccounts() []*common.PosixAccount {
if m != nil {
return m.PosixAccounts
}
return nil
}
func (m *LoginProfile) GetSshPublicKeys() map[string]*google_cloud_oslogin_common.SshPublicKey {
func (m *LoginProfile) GetSshPublicKeys() map[string]*common.SshPublicKey {
if m != nil {
return m.SshPublicKeys
}
@ -95,13 +101,35 @@ type DeletePosixAccountRequest struct {
// A reference to the POSIX account to update. POSIX accounts are identified
// by the project ID they are associated with. A reference to the POSIX
// account is in format `users/{user}/projects/{project}`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeletePosixAccountRequest) Reset() { *m = DeletePosixAccountRequest{} }
func (m *DeletePosixAccountRequest) String() string { return proto.CompactTextString(m) }
func (*DeletePosixAccountRequest) ProtoMessage() {}
func (*DeletePosixAccountRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *DeletePosixAccountRequest) Reset() { *m = DeletePosixAccountRequest{} }
func (m *DeletePosixAccountRequest) String() string { return proto.CompactTextString(m) }
func (*DeletePosixAccountRequest) ProtoMessage() {}
func (*DeletePosixAccountRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_45adadde0ac6d3e5, []int{1}
}
func (m *DeletePosixAccountRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeletePosixAccountRequest.Unmarshal(m, b)
}
func (m *DeletePosixAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeletePosixAccountRequest.Marshal(b, m, deterministic)
}
func (dst *DeletePosixAccountRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeletePosixAccountRequest.Merge(dst, src)
}
func (m *DeletePosixAccountRequest) XXX_Size() int {
return xxx_messageInfo_DeletePosixAccountRequest.Size(m)
}
func (m *DeletePosixAccountRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeletePosixAccountRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeletePosixAccountRequest proto.InternalMessageInfo
func (m *DeletePosixAccountRequest) GetName() string {
if m != nil {
@ -115,13 +143,35 @@ type DeleteSshPublicKeyRequest struct {
// The fingerprint of the public key to update. Public keys are identified by
// their SHA-256 fingerprint. The fingerprint of the public key is in format
// `users/{user}/sshPublicKeys/{fingerprint}`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteSshPublicKeyRequest) Reset() { *m = DeleteSshPublicKeyRequest{} }
func (m *DeleteSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteSshPublicKeyRequest) ProtoMessage() {}
func (*DeleteSshPublicKeyRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *DeleteSshPublicKeyRequest) Reset() { *m = DeleteSshPublicKeyRequest{} }
func (m *DeleteSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteSshPublicKeyRequest) ProtoMessage() {}
func (*DeleteSshPublicKeyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_45adadde0ac6d3e5, []int{2}
}
func (m *DeleteSshPublicKeyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteSshPublicKeyRequest.Unmarshal(m, b)
}
func (m *DeleteSshPublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteSshPublicKeyRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteSshPublicKeyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteSshPublicKeyRequest.Merge(dst, src)
}
func (m *DeleteSshPublicKeyRequest) XXX_Size() int {
return xxx_messageInfo_DeleteSshPublicKeyRequest.Size(m)
}
func (m *DeleteSshPublicKeyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteSshPublicKeyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteSshPublicKeyRequest proto.InternalMessageInfo
func (m *DeleteSshPublicKeyRequest) GetName() string {
if m != nil {
@ -133,13 +183,35 @@ func (m *DeleteSshPublicKeyRequest) GetName() string {
// A request message for retrieving the login profile information for a user.
type GetLoginProfileRequest struct {
// The unique ID for the user in format `users/{user}`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetLoginProfileRequest) Reset() { *m = GetLoginProfileRequest{} }
func (m *GetLoginProfileRequest) String() string { return proto.CompactTextString(m) }
func (*GetLoginProfileRequest) ProtoMessage() {}
func (*GetLoginProfileRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *GetLoginProfileRequest) Reset() { *m = GetLoginProfileRequest{} }
func (m *GetLoginProfileRequest) String() string { return proto.CompactTextString(m) }
func (*GetLoginProfileRequest) ProtoMessage() {}
func (*GetLoginProfileRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_45adadde0ac6d3e5, []int{3}
}
func (m *GetLoginProfileRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetLoginProfileRequest.Unmarshal(m, b)
}
func (m *GetLoginProfileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetLoginProfileRequest.Marshal(b, m, deterministic)
}
func (dst *GetLoginProfileRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetLoginProfileRequest.Merge(dst, src)
}
func (m *GetLoginProfileRequest) XXX_Size() int {
return xxx_messageInfo_GetLoginProfileRequest.Size(m)
}
func (m *GetLoginProfileRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetLoginProfileRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetLoginProfileRequest proto.InternalMessageInfo
func (m *GetLoginProfileRequest) GetName() string {
if m != nil {
@ -153,13 +225,35 @@ type GetSshPublicKeyRequest struct {
// The fingerprint of the public key to retrieve. Public keys are identified
// by their SHA-256 fingerprint. The fingerprint of the public key is in
// format `users/{user}/sshPublicKeys/{fingerprint}`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetSshPublicKeyRequest) Reset() { *m = GetSshPublicKeyRequest{} }
func (m *GetSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*GetSshPublicKeyRequest) ProtoMessage() {}
func (*GetSshPublicKeyRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *GetSshPublicKeyRequest) Reset() { *m = GetSshPublicKeyRequest{} }
func (m *GetSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*GetSshPublicKeyRequest) ProtoMessage() {}
func (*GetSshPublicKeyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_45adadde0ac6d3e5, []int{4}
}
func (m *GetSshPublicKeyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetSshPublicKeyRequest.Unmarshal(m, b)
}
func (m *GetSshPublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetSshPublicKeyRequest.Marshal(b, m, deterministic)
}
func (dst *GetSshPublicKeyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetSshPublicKeyRequest.Merge(dst, src)
}
func (m *GetSshPublicKeyRequest) XXX_Size() int {
return xxx_messageInfo_GetSshPublicKeyRequest.Size(m)
}
func (m *GetSshPublicKeyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetSshPublicKeyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetSshPublicKeyRequest proto.InternalMessageInfo
func (m *GetSshPublicKeyRequest) GetName() string {
if m != nil {
@ -171,17 +265,39 @@ func (m *GetSshPublicKeyRequest) GetName() string {
// A request message for importing an SSH public key.
type ImportSshPublicKeyRequest struct {
// The unique ID for the user in format `users/{user}`.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The SSH public key and expiration time.
SshPublicKey *google_cloud_oslogin_common.SshPublicKey `protobuf:"bytes,2,opt,name=ssh_public_key,json=sshPublicKey" json:"ssh_public_key,omitempty"`
SshPublicKey *common.SshPublicKey `protobuf:"bytes,2,opt,name=ssh_public_key,json=sshPublicKey,proto3" json:"ssh_public_key,omitempty"`
// The project ID of the Google Cloud Platform project.
ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImportSshPublicKeyRequest) Reset() { *m = ImportSshPublicKeyRequest{} }
func (m *ImportSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*ImportSshPublicKeyRequest) ProtoMessage() {}
func (*ImportSshPublicKeyRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *ImportSshPublicKeyRequest) Reset() { *m = ImportSshPublicKeyRequest{} }
func (m *ImportSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*ImportSshPublicKeyRequest) ProtoMessage() {}
func (*ImportSshPublicKeyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_45adadde0ac6d3e5, []int{5}
}
func (m *ImportSshPublicKeyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImportSshPublicKeyRequest.Unmarshal(m, b)
}
func (m *ImportSshPublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImportSshPublicKeyRequest.Marshal(b, m, deterministic)
}
func (dst *ImportSshPublicKeyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImportSshPublicKeyRequest.Merge(dst, src)
}
func (m *ImportSshPublicKeyRequest) XXX_Size() int {
return xxx_messageInfo_ImportSshPublicKeyRequest.Size(m)
}
func (m *ImportSshPublicKeyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ImportSshPublicKeyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ImportSshPublicKeyRequest proto.InternalMessageInfo
func (m *ImportSshPublicKeyRequest) GetParent() string {
if m != nil {
@ -190,7 +306,7 @@ func (m *ImportSshPublicKeyRequest) GetParent() string {
return ""
}
func (m *ImportSshPublicKeyRequest) GetSshPublicKey() *google_cloud_oslogin_common.SshPublicKey {
func (m *ImportSshPublicKeyRequest) GetSshPublicKey() *common.SshPublicKey {
if m != nil {
return m.SshPublicKey
}
@ -207,13 +323,35 @@ func (m *ImportSshPublicKeyRequest) GetProjectId() string {
// A response message for importing an SSH public key.
type ImportSshPublicKeyResponse struct {
// The login profile information for the user.
LoginProfile *LoginProfile `protobuf:"bytes,1,opt,name=login_profile,json=loginProfile" json:"login_profile,omitempty"`
LoginProfile *LoginProfile `protobuf:"bytes,1,opt,name=login_profile,json=loginProfile,proto3" json:"login_profile,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImportSshPublicKeyResponse) Reset() { *m = ImportSshPublicKeyResponse{} }
func (m *ImportSshPublicKeyResponse) String() string { return proto.CompactTextString(m) }
func (*ImportSshPublicKeyResponse) ProtoMessage() {}
func (*ImportSshPublicKeyResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *ImportSshPublicKeyResponse) Reset() { *m = ImportSshPublicKeyResponse{} }
func (m *ImportSshPublicKeyResponse) String() string { return proto.CompactTextString(m) }
func (*ImportSshPublicKeyResponse) ProtoMessage() {}
func (*ImportSshPublicKeyResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_45adadde0ac6d3e5, []int{6}
}
func (m *ImportSshPublicKeyResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImportSshPublicKeyResponse.Unmarshal(m, b)
}
func (m *ImportSshPublicKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImportSshPublicKeyResponse.Marshal(b, m, deterministic)
}
func (dst *ImportSshPublicKeyResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImportSshPublicKeyResponse.Merge(dst, src)
}
func (m *ImportSshPublicKeyResponse) XXX_Size() int {
return xxx_messageInfo_ImportSshPublicKeyResponse.Size(m)
}
func (m *ImportSshPublicKeyResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ImportSshPublicKeyResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ImportSshPublicKeyResponse proto.InternalMessageInfo
func (m *ImportSshPublicKeyResponse) GetLoginProfile() *LoginProfile {
if m != nil {
@ -227,17 +365,39 @@ type UpdateSshPublicKeyRequest struct {
// The fingerprint of the public key to update. Public keys are identified by
// their SHA-256 fingerprint. The fingerprint of the public key is in format
// `users/{user}/sshPublicKeys/{fingerprint}`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The SSH public key and expiration time.
SshPublicKey *google_cloud_oslogin_common.SshPublicKey `protobuf:"bytes,2,opt,name=ssh_public_key,json=sshPublicKey" json:"ssh_public_key,omitempty"`
SshPublicKey *common.SshPublicKey `protobuf:"bytes,2,opt,name=ssh_public_key,json=sshPublicKey,proto3" json:"ssh_public_key,omitempty"`
// Mask to control which fields get updated. Updates all if not present.
UpdateMask *google_protobuf2.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateSshPublicKeyRequest) Reset() { *m = UpdateSshPublicKeyRequest{} }
func (m *UpdateSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateSshPublicKeyRequest) ProtoMessage() {}
func (*UpdateSshPublicKeyRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *UpdateSshPublicKeyRequest) Reset() { *m = UpdateSshPublicKeyRequest{} }
func (m *UpdateSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateSshPublicKeyRequest) ProtoMessage() {}
func (*UpdateSshPublicKeyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_45adadde0ac6d3e5, []int{7}
}
func (m *UpdateSshPublicKeyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateSshPublicKeyRequest.Unmarshal(m, b)
}
func (m *UpdateSshPublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateSshPublicKeyRequest.Marshal(b, m, deterministic)
}
func (dst *UpdateSshPublicKeyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateSshPublicKeyRequest.Merge(dst, src)
}
func (m *UpdateSshPublicKeyRequest) XXX_Size() int {
return xxx_messageInfo_UpdateSshPublicKeyRequest.Size(m)
}
func (m *UpdateSshPublicKeyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateSshPublicKeyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateSshPublicKeyRequest proto.InternalMessageInfo
func (m *UpdateSshPublicKeyRequest) GetName() string {
if m != nil {
@ -246,14 +406,14 @@ func (m *UpdateSshPublicKeyRequest) GetName() string {
return ""
}
func (m *UpdateSshPublicKeyRequest) GetSshPublicKey() *google_cloud_oslogin_common.SshPublicKey {
func (m *UpdateSshPublicKeyRequest) GetSshPublicKey() *common.SshPublicKey {
if m != nil {
return m.SshPublicKey
}
return nil
}
func (m *UpdateSshPublicKeyRequest) GetUpdateMask() *google_protobuf2.FieldMask {
func (m *UpdateSshPublicKeyRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
@ -262,6 +422,7 @@ func (m *UpdateSshPublicKeyRequest) GetUpdateMask() *google_protobuf2.FieldMask
func init() {
proto.RegisterType((*LoginProfile)(nil), "google.cloud.oslogin.v1.LoginProfile")
proto.RegisterMapType((map[string]*common.SshPublicKey)(nil), "google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry")
proto.RegisterType((*DeletePosixAccountRequest)(nil), "google.cloud.oslogin.v1.DeletePosixAccountRequest")
proto.RegisterType((*DeleteSshPublicKeyRequest)(nil), "google.cloud.oslogin.v1.DeleteSshPublicKeyRequest")
proto.RegisterType((*GetLoginProfileRequest)(nil), "google.cloud.oslogin.v1.GetLoginProfileRequest")
@ -279,25 +440,26 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for OsLoginService service
// OsLoginServiceClient is the client API for OsLoginService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type OsLoginServiceClient interface {
// Deletes a POSIX account.
DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// Deletes an SSH public key.
DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// Retrieves the profile information used for logging in to a virtual machine
// on Google Compute Engine.
GetLoginProfile(ctx context.Context, in *GetLoginProfileRequest, opts ...grpc.CallOption) (*LoginProfile, error)
// Retrieves an SSH public key.
GetSshPublicKey(ctx context.Context, in *GetSshPublicKeyRequest, opts ...grpc.CallOption) (*google_cloud_oslogin_common.SshPublicKey, error)
GetSshPublicKey(ctx context.Context, in *GetSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error)
// Adds an SSH public key and returns the profile information. Default POSIX
// account information is set when no username and UID exist as part of the
// login profile.
ImportSshPublicKey(ctx context.Context, in *ImportSshPublicKeyRequest, opts ...grpc.CallOption) (*ImportSshPublicKeyResponse, error)
// Updates an SSH public key and returns the profile information. This method
// supports patch semantics.
UpdateSshPublicKey(ctx context.Context, in *UpdateSshPublicKeyRequest, opts ...grpc.CallOption) (*google_cloud_oslogin_common.SshPublicKey, error)
UpdateSshPublicKey(ctx context.Context, in *UpdateSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error)
}
type osLoginServiceClient struct {
@ -308,18 +470,18 @@ func NewOsLoginServiceClient(cc *grpc.ClientConn) OsLoginServiceClient {
return &osLoginServiceClient{cc}
}
func (c *osLoginServiceClient) DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) {
out := new(google_protobuf1.Empty)
err := grpc.Invoke(ctx, "/google.cloud.oslogin.v1.OsLoginService/DeletePosixAccount", in, out, c.cc, opts...)
func (c *osLoginServiceClient) DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1.OsLoginService/DeletePosixAccount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *osLoginServiceClient) DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) {
out := new(google_protobuf1.Empty)
err := grpc.Invoke(ctx, "/google.cloud.oslogin.v1.OsLoginService/DeleteSshPublicKey", in, out, c.cc, opts...)
func (c *osLoginServiceClient) DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1.OsLoginService/DeleteSshPublicKey", in, out, opts...)
if err != nil {
return nil, err
}
@ -328,16 +490,16 @@ func (c *osLoginServiceClient) DeleteSshPublicKey(ctx context.Context, in *Delet
func (c *osLoginServiceClient) GetLoginProfile(ctx context.Context, in *GetLoginProfileRequest, opts ...grpc.CallOption) (*LoginProfile, error) {
out := new(LoginProfile)
err := grpc.Invoke(ctx, "/google.cloud.oslogin.v1.OsLoginService/GetLoginProfile", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1.OsLoginService/GetLoginProfile", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *osLoginServiceClient) GetSshPublicKey(ctx context.Context, in *GetSshPublicKeyRequest, opts ...grpc.CallOption) (*google_cloud_oslogin_common.SshPublicKey, error) {
out := new(google_cloud_oslogin_common.SshPublicKey)
err := grpc.Invoke(ctx, "/google.cloud.oslogin.v1.OsLoginService/GetSshPublicKey", in, out, c.cc, opts...)
func (c *osLoginServiceClient) GetSshPublicKey(ctx context.Context, in *GetSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error) {
out := new(common.SshPublicKey)
err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1.OsLoginService/GetSshPublicKey", in, out, opts...)
if err != nil {
return nil, err
}
@ -346,41 +508,40 @@ func (c *osLoginServiceClient) GetSshPublicKey(ctx context.Context, in *GetSshPu
func (c *osLoginServiceClient) ImportSshPublicKey(ctx context.Context, in *ImportSshPublicKeyRequest, opts ...grpc.CallOption) (*ImportSshPublicKeyResponse, error) {
out := new(ImportSshPublicKeyResponse)
err := grpc.Invoke(ctx, "/google.cloud.oslogin.v1.OsLoginService/ImportSshPublicKey", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1.OsLoginService/ImportSshPublicKey", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *osLoginServiceClient) UpdateSshPublicKey(ctx context.Context, in *UpdateSshPublicKeyRequest, opts ...grpc.CallOption) (*google_cloud_oslogin_common.SshPublicKey, error) {
out := new(google_cloud_oslogin_common.SshPublicKey)
err := grpc.Invoke(ctx, "/google.cloud.oslogin.v1.OsLoginService/UpdateSshPublicKey", in, out, c.cc, opts...)
func (c *osLoginServiceClient) UpdateSshPublicKey(ctx context.Context, in *UpdateSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error) {
out := new(common.SshPublicKey)
err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1.OsLoginService/UpdateSshPublicKey", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for OsLoginService service
// OsLoginServiceServer is the server API for OsLoginService service.
type OsLoginServiceServer interface {
// Deletes a POSIX account.
DeletePosixAccount(context.Context, *DeletePosixAccountRequest) (*google_protobuf1.Empty, error)
DeletePosixAccount(context.Context, *DeletePosixAccountRequest) (*empty.Empty, error)
// Deletes an SSH public key.
DeleteSshPublicKey(context.Context, *DeleteSshPublicKeyRequest) (*google_protobuf1.Empty, error)
DeleteSshPublicKey(context.Context, *DeleteSshPublicKeyRequest) (*empty.Empty, error)
// Retrieves the profile information used for logging in to a virtual machine
// on Google Compute Engine.
GetLoginProfile(context.Context, *GetLoginProfileRequest) (*LoginProfile, error)
// Retrieves an SSH public key.
GetSshPublicKey(context.Context, *GetSshPublicKeyRequest) (*google_cloud_oslogin_common.SshPublicKey, error)
GetSshPublicKey(context.Context, *GetSshPublicKeyRequest) (*common.SshPublicKey, error)
// Adds an SSH public key and returns the profile information. Default POSIX
// account information is set when no username and UID exist as part of the
// login profile.
ImportSshPublicKey(context.Context, *ImportSshPublicKeyRequest) (*ImportSshPublicKeyResponse, error)
// Updates an SSH public key and returns the profile information. This method
// supports patch semantics.
UpdateSshPublicKey(context.Context, *UpdateSshPublicKeyRequest) (*google_cloud_oslogin_common.SshPublicKey, error)
UpdateSshPublicKey(context.Context, *UpdateSshPublicKeyRequest) (*common.SshPublicKey, error)
}
func RegisterOsLoginServiceServer(s *grpc.Server, srv OsLoginServiceServer) {
@ -528,9 +689,11 @@ var _OsLoginService_serviceDesc = grpc.ServiceDesc{
Metadata: "google/cloud/oslogin/v1/oslogin.proto",
}
func init() { proto.RegisterFile("google/cloud/oslogin/v1/oslogin.proto", fileDescriptor0) }
func init() {
proto.RegisterFile("google/cloud/oslogin/v1/oslogin.proto", fileDescriptor_oslogin_45adadde0ac6d3e5)
}
var fileDescriptor0 = []byte{
var fileDescriptor_oslogin_45adadde0ac6d3e5 = []byte{
// 774 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcd, 0x6e, 0xd3, 0x40,
0x10, 0x96, 0x93, 0x52, 0xe8, 0x26, 0x6d, 0xd1, 0x1e, 0xda, 0xd4, 0x6d, 0xd5, 0x60, 0x51, 0x35,

View File

@ -1,31 +1,15 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/oslogin/v1alpha/oslogin.proto
/*
Package oslogin is a generated protocol buffer package.
It is generated from these files:
google/cloud/oslogin/v1alpha/oslogin.proto
It has these top-level messages:
LoginProfile
DeletePosixAccountRequest
DeleteSshPublicKeyRequest
GetLoginProfileRequest
GetSshPublicKeyRequest
ImportSshPublicKeyRequest
ImportSshPublicKeyResponse
UpdateSshPublicKeyRequest
*/
package oslogin
package oslogin // import "google.golang.org/genproto/googleapis/cloud/oslogin/v1alpha"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import empty "github.com/golang/protobuf/ptypes/empty"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_cloud_oslogin_common "google.golang.org/genproto/googleapis/cloud/oslogin/common"
import google_protobuf1 "github.com/golang/protobuf/ptypes/empty"
import google_protobuf2 "google.golang.org/genproto/protobuf/field_mask"
import common "google.golang.org/genproto/googleapis/cloud/oslogin/common"
import field_mask "google.golang.org/genproto/protobuf/field_mask"
import (
context "golang.org/x/net/context"
@ -47,19 +31,41 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Google Compute Engine.
type LoginProfile struct {
// A unique user ID for identifying the user.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The list of POSIX accounts associated with the Directory API user.
PosixAccounts []*google_cloud_oslogin_common.PosixAccount `protobuf:"bytes,2,rep,name=posix_accounts,json=posixAccounts" json:"posix_accounts,omitempty"`
PosixAccounts []*common.PosixAccount `protobuf:"bytes,2,rep,name=posix_accounts,json=posixAccounts,proto3" json:"posix_accounts,omitempty"`
// A map from SSH public key fingerprint to the associated key object.
SshPublicKeys map[string]*google_cloud_oslogin_common.SshPublicKey `protobuf:"bytes,3,rep,name=ssh_public_keys,json=sshPublicKeys" json:"ssh_public_keys,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
SshPublicKeys map[string]*common.SshPublicKey `protobuf:"bytes,3,rep,name=ssh_public_keys,json=sshPublicKeys,proto3" json:"ssh_public_keys,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Indicates if the user is suspended.
Suspended bool `protobuf:"varint,4,opt,name=suspended" json:"suspended,omitempty"`
Suspended bool `protobuf:"varint,4,opt,name=suspended,proto3" json:"suspended,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LoginProfile) Reset() { *m = LoginProfile{} }
func (m *LoginProfile) String() string { return proto.CompactTextString(m) }
func (*LoginProfile) ProtoMessage() {}
func (*LoginProfile) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *LoginProfile) Reset() { *m = LoginProfile{} }
func (m *LoginProfile) String() string { return proto.CompactTextString(m) }
func (*LoginProfile) ProtoMessage() {}
func (*LoginProfile) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_9160791ccb698e5f, []int{0}
}
func (m *LoginProfile) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LoginProfile.Unmarshal(m, b)
}
func (m *LoginProfile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LoginProfile.Marshal(b, m, deterministic)
}
func (dst *LoginProfile) XXX_Merge(src proto.Message) {
xxx_messageInfo_LoginProfile.Merge(dst, src)
}
func (m *LoginProfile) XXX_Size() int {
return xxx_messageInfo_LoginProfile.Size(m)
}
func (m *LoginProfile) XXX_DiscardUnknown() {
xxx_messageInfo_LoginProfile.DiscardUnknown(m)
}
var xxx_messageInfo_LoginProfile proto.InternalMessageInfo
func (m *LoginProfile) GetName() string {
if m != nil {
@ -68,14 +74,14 @@ func (m *LoginProfile) GetName() string {
return ""
}
func (m *LoginProfile) GetPosixAccounts() []*google_cloud_oslogin_common.PosixAccount {
func (m *LoginProfile) GetPosixAccounts() []*common.PosixAccount {
if m != nil {
return m.PosixAccounts
}
return nil
}
func (m *LoginProfile) GetSshPublicKeys() map[string]*google_cloud_oslogin_common.SshPublicKey {
func (m *LoginProfile) GetSshPublicKeys() map[string]*common.SshPublicKey {
if m != nil {
return m.SshPublicKeys
}
@ -94,13 +100,35 @@ type DeletePosixAccountRequest struct {
// A reference to the POSIX account to update. POSIX accounts are identified
// by the project ID they are associated with. A reference to the POSIX
// account is in format `users/{user}/projects/{project}`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeletePosixAccountRequest) Reset() { *m = DeletePosixAccountRequest{} }
func (m *DeletePosixAccountRequest) String() string { return proto.CompactTextString(m) }
func (*DeletePosixAccountRequest) ProtoMessage() {}
func (*DeletePosixAccountRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *DeletePosixAccountRequest) Reset() { *m = DeletePosixAccountRequest{} }
func (m *DeletePosixAccountRequest) String() string { return proto.CompactTextString(m) }
func (*DeletePosixAccountRequest) ProtoMessage() {}
func (*DeletePosixAccountRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_9160791ccb698e5f, []int{1}
}
func (m *DeletePosixAccountRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeletePosixAccountRequest.Unmarshal(m, b)
}
func (m *DeletePosixAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeletePosixAccountRequest.Marshal(b, m, deterministic)
}
func (dst *DeletePosixAccountRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeletePosixAccountRequest.Merge(dst, src)
}
func (m *DeletePosixAccountRequest) XXX_Size() int {
return xxx_messageInfo_DeletePosixAccountRequest.Size(m)
}
func (m *DeletePosixAccountRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeletePosixAccountRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeletePosixAccountRequest proto.InternalMessageInfo
func (m *DeletePosixAccountRequest) GetName() string {
if m != nil {
@ -114,13 +142,35 @@ type DeleteSshPublicKeyRequest struct {
// The fingerprint of the public key to update. Public keys are identified by
// their SHA-256 fingerprint. The fingerprint of the public key is in format
// `users/{user}/sshPublicKeys/{fingerprint}`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteSshPublicKeyRequest) Reset() { *m = DeleteSshPublicKeyRequest{} }
func (m *DeleteSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteSshPublicKeyRequest) ProtoMessage() {}
func (*DeleteSshPublicKeyRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *DeleteSshPublicKeyRequest) Reset() { *m = DeleteSshPublicKeyRequest{} }
func (m *DeleteSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteSshPublicKeyRequest) ProtoMessage() {}
func (*DeleteSshPublicKeyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_9160791ccb698e5f, []int{2}
}
func (m *DeleteSshPublicKeyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteSshPublicKeyRequest.Unmarshal(m, b)
}
func (m *DeleteSshPublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteSshPublicKeyRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteSshPublicKeyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteSshPublicKeyRequest.Merge(dst, src)
}
func (m *DeleteSshPublicKeyRequest) XXX_Size() int {
return xxx_messageInfo_DeleteSshPublicKeyRequest.Size(m)
}
func (m *DeleteSshPublicKeyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteSshPublicKeyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteSshPublicKeyRequest proto.InternalMessageInfo
func (m *DeleteSshPublicKeyRequest) GetName() string {
if m != nil {
@ -132,13 +182,35 @@ func (m *DeleteSshPublicKeyRequest) GetName() string {
// A request message for retrieving the login profile information for a user.
type GetLoginProfileRequest struct {
// The unique ID for the user in format `users/{user}`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetLoginProfileRequest) Reset() { *m = GetLoginProfileRequest{} }
func (m *GetLoginProfileRequest) String() string { return proto.CompactTextString(m) }
func (*GetLoginProfileRequest) ProtoMessage() {}
func (*GetLoginProfileRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *GetLoginProfileRequest) Reset() { *m = GetLoginProfileRequest{} }
func (m *GetLoginProfileRequest) String() string { return proto.CompactTextString(m) }
func (*GetLoginProfileRequest) ProtoMessage() {}
func (*GetLoginProfileRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_9160791ccb698e5f, []int{3}
}
func (m *GetLoginProfileRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetLoginProfileRequest.Unmarshal(m, b)
}
func (m *GetLoginProfileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetLoginProfileRequest.Marshal(b, m, deterministic)
}
func (dst *GetLoginProfileRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetLoginProfileRequest.Merge(dst, src)
}
func (m *GetLoginProfileRequest) XXX_Size() int {
return xxx_messageInfo_GetLoginProfileRequest.Size(m)
}
func (m *GetLoginProfileRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetLoginProfileRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetLoginProfileRequest proto.InternalMessageInfo
func (m *GetLoginProfileRequest) GetName() string {
if m != nil {
@ -152,13 +224,35 @@ type GetSshPublicKeyRequest struct {
// The fingerprint of the public key to retrieve. Public keys are identified
// by their SHA-256 fingerprint. The fingerprint of the public key is in
// format `users/{user}/sshPublicKeys/{fingerprint}`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetSshPublicKeyRequest) Reset() { *m = GetSshPublicKeyRequest{} }
func (m *GetSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*GetSshPublicKeyRequest) ProtoMessage() {}
func (*GetSshPublicKeyRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *GetSshPublicKeyRequest) Reset() { *m = GetSshPublicKeyRequest{} }
func (m *GetSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*GetSshPublicKeyRequest) ProtoMessage() {}
func (*GetSshPublicKeyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_9160791ccb698e5f, []int{4}
}
func (m *GetSshPublicKeyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetSshPublicKeyRequest.Unmarshal(m, b)
}
func (m *GetSshPublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetSshPublicKeyRequest.Marshal(b, m, deterministic)
}
func (dst *GetSshPublicKeyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetSshPublicKeyRequest.Merge(dst, src)
}
func (m *GetSshPublicKeyRequest) XXX_Size() int {
return xxx_messageInfo_GetSshPublicKeyRequest.Size(m)
}
func (m *GetSshPublicKeyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetSshPublicKeyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetSshPublicKeyRequest proto.InternalMessageInfo
func (m *GetSshPublicKeyRequest) GetName() string {
if m != nil {
@ -170,17 +264,39 @@ func (m *GetSshPublicKeyRequest) GetName() string {
// A request message for importing an SSH public key.
type ImportSshPublicKeyRequest struct {
// The unique ID for the user in format `users/{user}`.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The SSH public key and expiration time.
SshPublicKey *google_cloud_oslogin_common.SshPublicKey `protobuf:"bytes,2,opt,name=ssh_public_key,json=sshPublicKey" json:"ssh_public_key,omitempty"`
SshPublicKey *common.SshPublicKey `protobuf:"bytes,2,opt,name=ssh_public_key,json=sshPublicKey,proto3" json:"ssh_public_key,omitempty"`
// The project ID of the Google Cloud Platform project.
ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImportSshPublicKeyRequest) Reset() { *m = ImportSshPublicKeyRequest{} }
func (m *ImportSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*ImportSshPublicKeyRequest) ProtoMessage() {}
func (*ImportSshPublicKeyRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *ImportSshPublicKeyRequest) Reset() { *m = ImportSshPublicKeyRequest{} }
func (m *ImportSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*ImportSshPublicKeyRequest) ProtoMessage() {}
func (*ImportSshPublicKeyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_9160791ccb698e5f, []int{5}
}
func (m *ImportSshPublicKeyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImportSshPublicKeyRequest.Unmarshal(m, b)
}
func (m *ImportSshPublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImportSshPublicKeyRequest.Marshal(b, m, deterministic)
}
func (dst *ImportSshPublicKeyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImportSshPublicKeyRequest.Merge(dst, src)
}
func (m *ImportSshPublicKeyRequest) XXX_Size() int {
return xxx_messageInfo_ImportSshPublicKeyRequest.Size(m)
}
func (m *ImportSshPublicKeyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ImportSshPublicKeyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ImportSshPublicKeyRequest proto.InternalMessageInfo
func (m *ImportSshPublicKeyRequest) GetParent() string {
if m != nil {
@ -189,7 +305,7 @@ func (m *ImportSshPublicKeyRequest) GetParent() string {
return ""
}
func (m *ImportSshPublicKeyRequest) GetSshPublicKey() *google_cloud_oslogin_common.SshPublicKey {
func (m *ImportSshPublicKeyRequest) GetSshPublicKey() *common.SshPublicKey {
if m != nil {
return m.SshPublicKey
}
@ -206,13 +322,35 @@ func (m *ImportSshPublicKeyRequest) GetProjectId() string {
// A response message for importing an SSH public key.
type ImportSshPublicKeyResponse struct {
// The login profile information for the user.
LoginProfile *LoginProfile `protobuf:"bytes,1,opt,name=login_profile,json=loginProfile" json:"login_profile,omitempty"`
LoginProfile *LoginProfile `protobuf:"bytes,1,opt,name=login_profile,json=loginProfile,proto3" json:"login_profile,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImportSshPublicKeyResponse) Reset() { *m = ImportSshPublicKeyResponse{} }
func (m *ImportSshPublicKeyResponse) String() string { return proto.CompactTextString(m) }
func (*ImportSshPublicKeyResponse) ProtoMessage() {}
func (*ImportSshPublicKeyResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *ImportSshPublicKeyResponse) Reset() { *m = ImportSshPublicKeyResponse{} }
func (m *ImportSshPublicKeyResponse) String() string { return proto.CompactTextString(m) }
func (*ImportSshPublicKeyResponse) ProtoMessage() {}
func (*ImportSshPublicKeyResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_9160791ccb698e5f, []int{6}
}
func (m *ImportSshPublicKeyResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImportSshPublicKeyResponse.Unmarshal(m, b)
}
func (m *ImportSshPublicKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImportSshPublicKeyResponse.Marshal(b, m, deterministic)
}
func (dst *ImportSshPublicKeyResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImportSshPublicKeyResponse.Merge(dst, src)
}
func (m *ImportSshPublicKeyResponse) XXX_Size() int {
return xxx_messageInfo_ImportSshPublicKeyResponse.Size(m)
}
func (m *ImportSshPublicKeyResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ImportSshPublicKeyResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ImportSshPublicKeyResponse proto.InternalMessageInfo
func (m *ImportSshPublicKeyResponse) GetLoginProfile() *LoginProfile {
if m != nil {
@ -226,17 +364,39 @@ type UpdateSshPublicKeyRequest struct {
// The fingerprint of the public key to update. Public keys are identified by
// their SHA-256 fingerprint. The fingerprint of the public key is in format
// `users/{user}/sshPublicKeys/{fingerprint}`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The SSH public key and expiration time.
SshPublicKey *google_cloud_oslogin_common.SshPublicKey `protobuf:"bytes,2,opt,name=ssh_public_key,json=sshPublicKey" json:"ssh_public_key,omitempty"`
SshPublicKey *common.SshPublicKey `protobuf:"bytes,2,opt,name=ssh_public_key,json=sshPublicKey,proto3" json:"ssh_public_key,omitempty"`
// Mask to control which fields get updated. Updates all if not present.
UpdateMask *google_protobuf2.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateSshPublicKeyRequest) Reset() { *m = UpdateSshPublicKeyRequest{} }
func (m *UpdateSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateSshPublicKeyRequest) ProtoMessage() {}
func (*UpdateSshPublicKeyRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *UpdateSshPublicKeyRequest) Reset() { *m = UpdateSshPublicKeyRequest{} }
func (m *UpdateSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateSshPublicKeyRequest) ProtoMessage() {}
func (*UpdateSshPublicKeyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_9160791ccb698e5f, []int{7}
}
func (m *UpdateSshPublicKeyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateSshPublicKeyRequest.Unmarshal(m, b)
}
func (m *UpdateSshPublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateSshPublicKeyRequest.Marshal(b, m, deterministic)
}
func (dst *UpdateSshPublicKeyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateSshPublicKeyRequest.Merge(dst, src)
}
func (m *UpdateSshPublicKeyRequest) XXX_Size() int {
return xxx_messageInfo_UpdateSshPublicKeyRequest.Size(m)
}
func (m *UpdateSshPublicKeyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateSshPublicKeyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateSshPublicKeyRequest proto.InternalMessageInfo
func (m *UpdateSshPublicKeyRequest) GetName() string {
if m != nil {
@ -245,14 +405,14 @@ func (m *UpdateSshPublicKeyRequest) GetName() string {
return ""
}
func (m *UpdateSshPublicKeyRequest) GetSshPublicKey() *google_cloud_oslogin_common.SshPublicKey {
func (m *UpdateSshPublicKeyRequest) GetSshPublicKey() *common.SshPublicKey {
if m != nil {
return m.SshPublicKey
}
return nil
}
func (m *UpdateSshPublicKeyRequest) GetUpdateMask() *google_protobuf2.FieldMask {
func (m *UpdateSshPublicKeyRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
@ -261,6 +421,7 @@ func (m *UpdateSshPublicKeyRequest) GetUpdateMask() *google_protobuf2.FieldMask
func init() {
proto.RegisterType((*LoginProfile)(nil), "google.cloud.oslogin.v1alpha.LoginProfile")
proto.RegisterMapType((map[string]*common.SshPublicKey)(nil), "google.cloud.oslogin.v1alpha.LoginProfile.SshPublicKeysEntry")
proto.RegisterType((*DeletePosixAccountRequest)(nil), "google.cloud.oslogin.v1alpha.DeletePosixAccountRequest")
proto.RegisterType((*DeleteSshPublicKeyRequest)(nil), "google.cloud.oslogin.v1alpha.DeleteSshPublicKeyRequest")
proto.RegisterType((*GetLoginProfileRequest)(nil), "google.cloud.oslogin.v1alpha.GetLoginProfileRequest")
@ -278,25 +439,26 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for OsLoginService service
// OsLoginServiceClient is the client API for OsLoginService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type OsLoginServiceClient interface {
// Deletes a POSIX account.
DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// Deletes an SSH public key.
DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// Retrieves the profile information used for logging in to a virtual machine
// on Google Compute Engine.
GetLoginProfile(ctx context.Context, in *GetLoginProfileRequest, opts ...grpc.CallOption) (*LoginProfile, error)
// Retrieves an SSH public key.
GetSshPublicKey(ctx context.Context, in *GetSshPublicKeyRequest, opts ...grpc.CallOption) (*google_cloud_oslogin_common.SshPublicKey, error)
GetSshPublicKey(ctx context.Context, in *GetSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error)
// Adds an SSH public key and returns the profile information. Default POSIX
// account information is set when no username and UID exist as part of the
// login profile.
ImportSshPublicKey(ctx context.Context, in *ImportSshPublicKeyRequest, opts ...grpc.CallOption) (*ImportSshPublicKeyResponse, error)
// Updates an SSH public key and returns the profile information. This method
// supports patch semantics.
UpdateSshPublicKey(ctx context.Context, in *UpdateSshPublicKeyRequest, opts ...grpc.CallOption) (*google_cloud_oslogin_common.SshPublicKey, error)
UpdateSshPublicKey(ctx context.Context, in *UpdateSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error)
}
type osLoginServiceClient struct {
@ -307,18 +469,18 @@ func NewOsLoginServiceClient(cc *grpc.ClientConn) OsLoginServiceClient {
return &osLoginServiceClient{cc}
}
func (c *osLoginServiceClient) DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) {
out := new(google_protobuf1.Empty)
err := grpc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/DeletePosixAccount", in, out, c.cc, opts...)
func (c *osLoginServiceClient) DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/DeletePosixAccount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *osLoginServiceClient) DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) {
out := new(google_protobuf1.Empty)
err := grpc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/DeleteSshPublicKey", in, out, c.cc, opts...)
func (c *osLoginServiceClient) DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/DeleteSshPublicKey", in, out, opts...)
if err != nil {
return nil, err
}
@ -327,16 +489,16 @@ func (c *osLoginServiceClient) DeleteSshPublicKey(ctx context.Context, in *Delet
func (c *osLoginServiceClient) GetLoginProfile(ctx context.Context, in *GetLoginProfileRequest, opts ...grpc.CallOption) (*LoginProfile, error) {
out := new(LoginProfile)
err := grpc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/GetLoginProfile", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/GetLoginProfile", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *osLoginServiceClient) GetSshPublicKey(ctx context.Context, in *GetSshPublicKeyRequest, opts ...grpc.CallOption) (*google_cloud_oslogin_common.SshPublicKey, error) {
out := new(google_cloud_oslogin_common.SshPublicKey)
err := grpc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/GetSshPublicKey", in, out, c.cc, opts...)
func (c *osLoginServiceClient) GetSshPublicKey(ctx context.Context, in *GetSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error) {
out := new(common.SshPublicKey)
err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/GetSshPublicKey", in, out, opts...)
if err != nil {
return nil, err
}
@ -345,41 +507,40 @@ func (c *osLoginServiceClient) GetSshPublicKey(ctx context.Context, in *GetSshPu
func (c *osLoginServiceClient) ImportSshPublicKey(ctx context.Context, in *ImportSshPublicKeyRequest, opts ...grpc.CallOption) (*ImportSshPublicKeyResponse, error) {
out := new(ImportSshPublicKeyResponse)
err := grpc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/ImportSshPublicKey", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/ImportSshPublicKey", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *osLoginServiceClient) UpdateSshPublicKey(ctx context.Context, in *UpdateSshPublicKeyRequest, opts ...grpc.CallOption) (*google_cloud_oslogin_common.SshPublicKey, error) {
out := new(google_cloud_oslogin_common.SshPublicKey)
err := grpc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/UpdateSshPublicKey", in, out, c.cc, opts...)
func (c *osLoginServiceClient) UpdateSshPublicKey(ctx context.Context, in *UpdateSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error) {
out := new(common.SshPublicKey)
err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/UpdateSshPublicKey", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for OsLoginService service
// OsLoginServiceServer is the server API for OsLoginService service.
type OsLoginServiceServer interface {
// Deletes a POSIX account.
DeletePosixAccount(context.Context, *DeletePosixAccountRequest) (*google_protobuf1.Empty, error)
DeletePosixAccount(context.Context, *DeletePosixAccountRequest) (*empty.Empty, error)
// Deletes an SSH public key.
DeleteSshPublicKey(context.Context, *DeleteSshPublicKeyRequest) (*google_protobuf1.Empty, error)
DeleteSshPublicKey(context.Context, *DeleteSshPublicKeyRequest) (*empty.Empty, error)
// Retrieves the profile information used for logging in to a virtual machine
// on Google Compute Engine.
GetLoginProfile(context.Context, *GetLoginProfileRequest) (*LoginProfile, error)
// Retrieves an SSH public key.
GetSshPublicKey(context.Context, *GetSshPublicKeyRequest) (*google_cloud_oslogin_common.SshPublicKey, error)
GetSshPublicKey(context.Context, *GetSshPublicKeyRequest) (*common.SshPublicKey, error)
// Adds an SSH public key and returns the profile information. Default POSIX
// account information is set when no username and UID exist as part of the
// login profile.
ImportSshPublicKey(context.Context, *ImportSshPublicKeyRequest) (*ImportSshPublicKeyResponse, error)
// Updates an SSH public key and returns the profile information. This method
// supports patch semantics.
UpdateSshPublicKey(context.Context, *UpdateSshPublicKeyRequest) (*google_cloud_oslogin_common.SshPublicKey, error)
UpdateSshPublicKey(context.Context, *UpdateSshPublicKeyRequest) (*common.SshPublicKey, error)
}
func RegisterOsLoginServiceServer(s *grpc.Server, srv OsLoginServiceServer) {
@ -527,9 +688,11 @@ var _OsLoginService_serviceDesc = grpc.ServiceDesc{
Metadata: "google/cloud/oslogin/v1alpha/oslogin.proto",
}
func init() { proto.RegisterFile("google/cloud/oslogin/v1alpha/oslogin.proto", fileDescriptor0) }
func init() {
proto.RegisterFile("google/cloud/oslogin/v1alpha/oslogin.proto", fileDescriptor_oslogin_9160791ccb698e5f)
}
var fileDescriptor0 = []byte{
var fileDescriptor_oslogin_9160791ccb698e5f = []byte{
// 779 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcd, 0x6a, 0xdb, 0x4a,
0x14, 0x46, 0x76, 0x6e, 0x48, 0xc6, 0x4e, 0x72, 0x99, 0x45, 0x70, 0x74, 0x73, 0xc1, 0x88, 0xd0,

View File

@ -1,31 +1,15 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/oslogin/v1beta/oslogin.proto
/*
Package oslogin is a generated protocol buffer package.
It is generated from these files:
google/cloud/oslogin/v1beta/oslogin.proto
It has these top-level messages:
LoginProfile
DeletePosixAccountRequest
DeleteSshPublicKeyRequest
GetLoginProfileRequest
GetSshPublicKeyRequest
ImportSshPublicKeyRequest
ImportSshPublicKeyResponse
UpdateSshPublicKeyRequest
*/
package oslogin
package oslogin // import "google.golang.org/genproto/googleapis/cloud/oslogin/v1beta"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import empty "github.com/golang/protobuf/ptypes/empty"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_cloud_oslogin_common "google.golang.org/genproto/googleapis/cloud/oslogin/common"
import google_protobuf1 "github.com/golang/protobuf/ptypes/empty"
import google_protobuf2 "google.golang.org/genproto/protobuf/field_mask"
import common "google.golang.org/genproto/googleapis/cloud/oslogin/common"
import field_mask "google.golang.org/genproto/protobuf/field_mask"
import (
context "golang.org/x/net/context"
@ -47,20 +31,42 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Google Compute Engine.
type LoginProfile struct {
// The primary email address that uniquely identifies the user.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The list of POSIX accounts associated with the user.
PosixAccounts []*google_cloud_oslogin_common.PosixAccount `protobuf:"bytes,2,rep,name=posix_accounts,json=posixAccounts" json:"posix_accounts,omitempty"`
PosixAccounts []*common.PosixAccount `protobuf:"bytes,2,rep,name=posix_accounts,json=posixAccounts,proto3" json:"posix_accounts,omitempty"`
// A map from SSH public key fingerprint to the associated key object.
SshPublicKeys map[string]*google_cloud_oslogin_common.SshPublicKey `protobuf:"bytes,3,rep,name=ssh_public_keys,json=sshPublicKeys" json:"ssh_public_keys,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
SshPublicKeys map[string]*common.SshPublicKey `protobuf:"bytes,3,rep,name=ssh_public_keys,json=sshPublicKeys,proto3" json:"ssh_public_keys,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Indicates if the user is suspended. A suspended user cannot log in but
// their profile information is retained.
Suspended bool `protobuf:"varint,4,opt,name=suspended" json:"suspended,omitempty"`
Suspended bool `protobuf:"varint,4,opt,name=suspended,proto3" json:"suspended,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LoginProfile) Reset() { *m = LoginProfile{} }
func (m *LoginProfile) String() string { return proto.CompactTextString(m) }
func (*LoginProfile) ProtoMessage() {}
func (*LoginProfile) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *LoginProfile) Reset() { *m = LoginProfile{} }
func (m *LoginProfile) String() string { return proto.CompactTextString(m) }
func (*LoginProfile) ProtoMessage() {}
func (*LoginProfile) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_597ae172793c821f, []int{0}
}
func (m *LoginProfile) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LoginProfile.Unmarshal(m, b)
}
func (m *LoginProfile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LoginProfile.Marshal(b, m, deterministic)
}
func (dst *LoginProfile) XXX_Merge(src proto.Message) {
xxx_messageInfo_LoginProfile.Merge(dst, src)
}
func (m *LoginProfile) XXX_Size() int {
return xxx_messageInfo_LoginProfile.Size(m)
}
func (m *LoginProfile) XXX_DiscardUnknown() {
xxx_messageInfo_LoginProfile.DiscardUnknown(m)
}
var xxx_messageInfo_LoginProfile proto.InternalMessageInfo
func (m *LoginProfile) GetName() string {
if m != nil {
@ -69,14 +75,14 @@ func (m *LoginProfile) GetName() string {
return ""
}
func (m *LoginProfile) GetPosixAccounts() []*google_cloud_oslogin_common.PosixAccount {
func (m *LoginProfile) GetPosixAccounts() []*common.PosixAccount {
if m != nil {
return m.PosixAccounts
}
return nil
}
func (m *LoginProfile) GetSshPublicKeys() map[string]*google_cloud_oslogin_common.SshPublicKey {
func (m *LoginProfile) GetSshPublicKeys() map[string]*common.SshPublicKey {
if m != nil {
return m.SshPublicKeys
}
@ -95,13 +101,35 @@ type DeletePosixAccountRequest struct {
// A reference to the POSIX account to update. POSIX accounts are identified
// by the project ID they are associated with. A reference to the POSIX
// account is in format `users/{user}/projects/{project}`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeletePosixAccountRequest) Reset() { *m = DeletePosixAccountRequest{} }
func (m *DeletePosixAccountRequest) String() string { return proto.CompactTextString(m) }
func (*DeletePosixAccountRequest) ProtoMessage() {}
func (*DeletePosixAccountRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *DeletePosixAccountRequest) Reset() { *m = DeletePosixAccountRequest{} }
func (m *DeletePosixAccountRequest) String() string { return proto.CompactTextString(m) }
func (*DeletePosixAccountRequest) ProtoMessage() {}
func (*DeletePosixAccountRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_597ae172793c821f, []int{1}
}
func (m *DeletePosixAccountRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeletePosixAccountRequest.Unmarshal(m, b)
}
func (m *DeletePosixAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeletePosixAccountRequest.Marshal(b, m, deterministic)
}
func (dst *DeletePosixAccountRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeletePosixAccountRequest.Merge(dst, src)
}
func (m *DeletePosixAccountRequest) XXX_Size() int {
return xxx_messageInfo_DeletePosixAccountRequest.Size(m)
}
func (m *DeletePosixAccountRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeletePosixAccountRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeletePosixAccountRequest proto.InternalMessageInfo
func (m *DeletePosixAccountRequest) GetName() string {
if m != nil {
@ -115,13 +143,35 @@ type DeleteSshPublicKeyRequest struct {
// The fingerprint of the public key to update. Public keys are identified by
// their SHA-256 fingerprint. The fingerprint of the public key is in format
// `users/{user}/sshPublicKeys/{fingerprint}`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteSshPublicKeyRequest) Reset() { *m = DeleteSshPublicKeyRequest{} }
func (m *DeleteSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteSshPublicKeyRequest) ProtoMessage() {}
func (*DeleteSshPublicKeyRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *DeleteSshPublicKeyRequest) Reset() { *m = DeleteSshPublicKeyRequest{} }
func (m *DeleteSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteSshPublicKeyRequest) ProtoMessage() {}
func (*DeleteSshPublicKeyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_597ae172793c821f, []int{2}
}
func (m *DeleteSshPublicKeyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteSshPublicKeyRequest.Unmarshal(m, b)
}
func (m *DeleteSshPublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteSshPublicKeyRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteSshPublicKeyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteSshPublicKeyRequest.Merge(dst, src)
}
func (m *DeleteSshPublicKeyRequest) XXX_Size() int {
return xxx_messageInfo_DeleteSshPublicKeyRequest.Size(m)
}
func (m *DeleteSshPublicKeyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteSshPublicKeyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteSshPublicKeyRequest proto.InternalMessageInfo
func (m *DeleteSshPublicKeyRequest) GetName() string {
if m != nil {
@ -133,13 +183,35 @@ func (m *DeleteSshPublicKeyRequest) GetName() string {
// A request message for retrieving the login profile information for a user.
type GetLoginProfileRequest struct {
// The unique ID for the user in format `users/{user}`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetLoginProfileRequest) Reset() { *m = GetLoginProfileRequest{} }
func (m *GetLoginProfileRequest) String() string { return proto.CompactTextString(m) }
func (*GetLoginProfileRequest) ProtoMessage() {}
func (*GetLoginProfileRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *GetLoginProfileRequest) Reset() { *m = GetLoginProfileRequest{} }
func (m *GetLoginProfileRequest) String() string { return proto.CompactTextString(m) }
func (*GetLoginProfileRequest) ProtoMessage() {}
func (*GetLoginProfileRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_597ae172793c821f, []int{3}
}
func (m *GetLoginProfileRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetLoginProfileRequest.Unmarshal(m, b)
}
func (m *GetLoginProfileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetLoginProfileRequest.Marshal(b, m, deterministic)
}
func (dst *GetLoginProfileRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetLoginProfileRequest.Merge(dst, src)
}
func (m *GetLoginProfileRequest) XXX_Size() int {
return xxx_messageInfo_GetLoginProfileRequest.Size(m)
}
func (m *GetLoginProfileRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetLoginProfileRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetLoginProfileRequest proto.InternalMessageInfo
func (m *GetLoginProfileRequest) GetName() string {
if m != nil {
@ -153,13 +225,35 @@ type GetSshPublicKeyRequest struct {
// The fingerprint of the public key to retrieve. Public keys are identified
// by their SHA-256 fingerprint. The fingerprint of the public key is in
// format `users/{user}/sshPublicKeys/{fingerprint}`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetSshPublicKeyRequest) Reset() { *m = GetSshPublicKeyRequest{} }
func (m *GetSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*GetSshPublicKeyRequest) ProtoMessage() {}
func (*GetSshPublicKeyRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *GetSshPublicKeyRequest) Reset() { *m = GetSshPublicKeyRequest{} }
func (m *GetSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*GetSshPublicKeyRequest) ProtoMessage() {}
func (*GetSshPublicKeyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_597ae172793c821f, []int{4}
}
func (m *GetSshPublicKeyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetSshPublicKeyRequest.Unmarshal(m, b)
}
func (m *GetSshPublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetSshPublicKeyRequest.Marshal(b, m, deterministic)
}
func (dst *GetSshPublicKeyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetSshPublicKeyRequest.Merge(dst, src)
}
func (m *GetSshPublicKeyRequest) XXX_Size() int {
return xxx_messageInfo_GetSshPublicKeyRequest.Size(m)
}
func (m *GetSshPublicKeyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetSshPublicKeyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetSshPublicKeyRequest proto.InternalMessageInfo
func (m *GetSshPublicKeyRequest) GetName() string {
if m != nil {
@ -171,17 +265,39 @@ func (m *GetSshPublicKeyRequest) GetName() string {
// A request message for importing an SSH public key.
type ImportSshPublicKeyRequest struct {
// The unique ID for the user in format `users/{user}`.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The SSH public key and expiration time.
SshPublicKey *google_cloud_oslogin_common.SshPublicKey `protobuf:"bytes,2,opt,name=ssh_public_key,json=sshPublicKey" json:"ssh_public_key,omitempty"`
SshPublicKey *common.SshPublicKey `protobuf:"bytes,2,opt,name=ssh_public_key,json=sshPublicKey,proto3" json:"ssh_public_key,omitempty"`
// The project ID of the Google Cloud Platform project.
ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImportSshPublicKeyRequest) Reset() { *m = ImportSshPublicKeyRequest{} }
func (m *ImportSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*ImportSshPublicKeyRequest) ProtoMessage() {}
func (*ImportSshPublicKeyRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *ImportSshPublicKeyRequest) Reset() { *m = ImportSshPublicKeyRequest{} }
func (m *ImportSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*ImportSshPublicKeyRequest) ProtoMessage() {}
func (*ImportSshPublicKeyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_597ae172793c821f, []int{5}
}
func (m *ImportSshPublicKeyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImportSshPublicKeyRequest.Unmarshal(m, b)
}
func (m *ImportSshPublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImportSshPublicKeyRequest.Marshal(b, m, deterministic)
}
func (dst *ImportSshPublicKeyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImportSshPublicKeyRequest.Merge(dst, src)
}
func (m *ImportSshPublicKeyRequest) XXX_Size() int {
return xxx_messageInfo_ImportSshPublicKeyRequest.Size(m)
}
func (m *ImportSshPublicKeyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ImportSshPublicKeyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ImportSshPublicKeyRequest proto.InternalMessageInfo
func (m *ImportSshPublicKeyRequest) GetParent() string {
if m != nil {
@ -190,7 +306,7 @@ func (m *ImportSshPublicKeyRequest) GetParent() string {
return ""
}
func (m *ImportSshPublicKeyRequest) GetSshPublicKey() *google_cloud_oslogin_common.SshPublicKey {
func (m *ImportSshPublicKeyRequest) GetSshPublicKey() *common.SshPublicKey {
if m != nil {
return m.SshPublicKey
}
@ -207,13 +323,35 @@ func (m *ImportSshPublicKeyRequest) GetProjectId() string {
// A response message for importing an SSH public key.
type ImportSshPublicKeyResponse struct {
// The login profile information for the user.
LoginProfile *LoginProfile `protobuf:"bytes,1,opt,name=login_profile,json=loginProfile" json:"login_profile,omitempty"`
LoginProfile *LoginProfile `protobuf:"bytes,1,opt,name=login_profile,json=loginProfile,proto3" json:"login_profile,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImportSshPublicKeyResponse) Reset() { *m = ImportSshPublicKeyResponse{} }
func (m *ImportSshPublicKeyResponse) String() string { return proto.CompactTextString(m) }
func (*ImportSshPublicKeyResponse) ProtoMessage() {}
func (*ImportSshPublicKeyResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *ImportSshPublicKeyResponse) Reset() { *m = ImportSshPublicKeyResponse{} }
func (m *ImportSshPublicKeyResponse) String() string { return proto.CompactTextString(m) }
func (*ImportSshPublicKeyResponse) ProtoMessage() {}
func (*ImportSshPublicKeyResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_597ae172793c821f, []int{6}
}
func (m *ImportSshPublicKeyResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImportSshPublicKeyResponse.Unmarshal(m, b)
}
func (m *ImportSshPublicKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImportSshPublicKeyResponse.Marshal(b, m, deterministic)
}
func (dst *ImportSshPublicKeyResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImportSshPublicKeyResponse.Merge(dst, src)
}
func (m *ImportSshPublicKeyResponse) XXX_Size() int {
return xxx_messageInfo_ImportSshPublicKeyResponse.Size(m)
}
func (m *ImportSshPublicKeyResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ImportSshPublicKeyResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ImportSshPublicKeyResponse proto.InternalMessageInfo
func (m *ImportSshPublicKeyResponse) GetLoginProfile() *LoginProfile {
if m != nil {
@ -227,17 +365,39 @@ type UpdateSshPublicKeyRequest struct {
// The fingerprint of the public key to update. Public keys are identified by
// their SHA-256 fingerprint. The fingerprint of the public key is in format
// `users/{user}/sshPublicKeys/{fingerprint}`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The SSH public key and expiration time.
SshPublicKey *google_cloud_oslogin_common.SshPublicKey `protobuf:"bytes,2,opt,name=ssh_public_key,json=sshPublicKey" json:"ssh_public_key,omitempty"`
SshPublicKey *common.SshPublicKey `protobuf:"bytes,2,opt,name=ssh_public_key,json=sshPublicKey,proto3" json:"ssh_public_key,omitempty"`
// Mask to control which fields get updated. Updates all if not present.
UpdateMask *google_protobuf2.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateSshPublicKeyRequest) Reset() { *m = UpdateSshPublicKeyRequest{} }
func (m *UpdateSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateSshPublicKeyRequest) ProtoMessage() {}
func (*UpdateSshPublicKeyRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *UpdateSshPublicKeyRequest) Reset() { *m = UpdateSshPublicKeyRequest{} }
func (m *UpdateSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateSshPublicKeyRequest) ProtoMessage() {}
func (*UpdateSshPublicKeyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_oslogin_597ae172793c821f, []int{7}
}
func (m *UpdateSshPublicKeyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateSshPublicKeyRequest.Unmarshal(m, b)
}
func (m *UpdateSshPublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateSshPublicKeyRequest.Marshal(b, m, deterministic)
}
func (dst *UpdateSshPublicKeyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateSshPublicKeyRequest.Merge(dst, src)
}
func (m *UpdateSshPublicKeyRequest) XXX_Size() int {
return xxx_messageInfo_UpdateSshPublicKeyRequest.Size(m)
}
func (m *UpdateSshPublicKeyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateSshPublicKeyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateSshPublicKeyRequest proto.InternalMessageInfo
func (m *UpdateSshPublicKeyRequest) GetName() string {
if m != nil {
@ -246,14 +406,14 @@ func (m *UpdateSshPublicKeyRequest) GetName() string {
return ""
}
func (m *UpdateSshPublicKeyRequest) GetSshPublicKey() *google_cloud_oslogin_common.SshPublicKey {
func (m *UpdateSshPublicKeyRequest) GetSshPublicKey() *common.SshPublicKey {
if m != nil {
return m.SshPublicKey
}
return nil
}
func (m *UpdateSshPublicKeyRequest) GetUpdateMask() *google_protobuf2.FieldMask {
func (m *UpdateSshPublicKeyRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
@ -262,6 +422,7 @@ func (m *UpdateSshPublicKeyRequest) GetUpdateMask() *google_protobuf2.FieldMask
func init() {
proto.RegisterType((*LoginProfile)(nil), "google.cloud.oslogin.v1beta.LoginProfile")
proto.RegisterMapType((map[string]*common.SshPublicKey)(nil), "google.cloud.oslogin.v1beta.LoginProfile.SshPublicKeysEntry")
proto.RegisterType((*DeletePosixAccountRequest)(nil), "google.cloud.oslogin.v1beta.DeletePosixAccountRequest")
proto.RegisterType((*DeleteSshPublicKeyRequest)(nil), "google.cloud.oslogin.v1beta.DeleteSshPublicKeyRequest")
proto.RegisterType((*GetLoginProfileRequest)(nil), "google.cloud.oslogin.v1beta.GetLoginProfileRequest")
@ -279,25 +440,26 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for OsLoginService service
// OsLoginServiceClient is the client API for OsLoginService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type OsLoginServiceClient interface {
// Deletes a POSIX account.
DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// Deletes an SSH public key.
DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// Retrieves the profile information used for logging in to a virtual machine
// on Google Compute Engine.
GetLoginProfile(ctx context.Context, in *GetLoginProfileRequest, opts ...grpc.CallOption) (*LoginProfile, error)
// Retrieves an SSH public key.
GetSshPublicKey(ctx context.Context, in *GetSshPublicKeyRequest, opts ...grpc.CallOption) (*google_cloud_oslogin_common.SshPublicKey, error)
GetSshPublicKey(ctx context.Context, in *GetSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error)
// Adds an SSH public key and returns the profile information. Default POSIX
// account information is set when no username and UID exist as part of the
// login profile.
ImportSshPublicKey(ctx context.Context, in *ImportSshPublicKeyRequest, opts ...grpc.CallOption) (*ImportSshPublicKeyResponse, error)
// Updates an SSH public key and returns the profile information. This method
// supports patch semantics.
UpdateSshPublicKey(ctx context.Context, in *UpdateSshPublicKeyRequest, opts ...grpc.CallOption) (*google_cloud_oslogin_common.SshPublicKey, error)
UpdateSshPublicKey(ctx context.Context, in *UpdateSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error)
}
type osLoginServiceClient struct {
@ -308,18 +470,18 @@ func NewOsLoginServiceClient(cc *grpc.ClientConn) OsLoginServiceClient {
return &osLoginServiceClient{cc}
}
func (c *osLoginServiceClient) DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) {
out := new(google_protobuf1.Empty)
err := grpc.Invoke(ctx, "/google.cloud.oslogin.v1beta.OsLoginService/DeletePosixAccount", in, out, c.cc, opts...)
func (c *osLoginServiceClient) DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1beta.OsLoginService/DeletePosixAccount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *osLoginServiceClient) DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) {
out := new(google_protobuf1.Empty)
err := grpc.Invoke(ctx, "/google.cloud.oslogin.v1beta.OsLoginService/DeleteSshPublicKey", in, out, c.cc, opts...)
func (c *osLoginServiceClient) DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1beta.OsLoginService/DeleteSshPublicKey", in, out, opts...)
if err != nil {
return nil, err
}
@ -328,16 +490,16 @@ func (c *osLoginServiceClient) DeleteSshPublicKey(ctx context.Context, in *Delet
func (c *osLoginServiceClient) GetLoginProfile(ctx context.Context, in *GetLoginProfileRequest, opts ...grpc.CallOption) (*LoginProfile, error) {
out := new(LoginProfile)
err := grpc.Invoke(ctx, "/google.cloud.oslogin.v1beta.OsLoginService/GetLoginProfile", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1beta.OsLoginService/GetLoginProfile", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *osLoginServiceClient) GetSshPublicKey(ctx context.Context, in *GetSshPublicKeyRequest, opts ...grpc.CallOption) (*google_cloud_oslogin_common.SshPublicKey, error) {
out := new(google_cloud_oslogin_common.SshPublicKey)
err := grpc.Invoke(ctx, "/google.cloud.oslogin.v1beta.OsLoginService/GetSshPublicKey", in, out, c.cc, opts...)
func (c *osLoginServiceClient) GetSshPublicKey(ctx context.Context, in *GetSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error) {
out := new(common.SshPublicKey)
err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1beta.OsLoginService/GetSshPublicKey", in, out, opts...)
if err != nil {
return nil, err
}
@ -346,41 +508,40 @@ func (c *osLoginServiceClient) GetSshPublicKey(ctx context.Context, in *GetSshPu
func (c *osLoginServiceClient) ImportSshPublicKey(ctx context.Context, in *ImportSshPublicKeyRequest, opts ...grpc.CallOption) (*ImportSshPublicKeyResponse, error) {
out := new(ImportSshPublicKeyResponse)
err := grpc.Invoke(ctx, "/google.cloud.oslogin.v1beta.OsLoginService/ImportSshPublicKey", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1beta.OsLoginService/ImportSshPublicKey", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *osLoginServiceClient) UpdateSshPublicKey(ctx context.Context, in *UpdateSshPublicKeyRequest, opts ...grpc.CallOption) (*google_cloud_oslogin_common.SshPublicKey, error) {
out := new(google_cloud_oslogin_common.SshPublicKey)
err := grpc.Invoke(ctx, "/google.cloud.oslogin.v1beta.OsLoginService/UpdateSshPublicKey", in, out, c.cc, opts...)
func (c *osLoginServiceClient) UpdateSshPublicKey(ctx context.Context, in *UpdateSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error) {
out := new(common.SshPublicKey)
err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1beta.OsLoginService/UpdateSshPublicKey", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for OsLoginService service
// OsLoginServiceServer is the server API for OsLoginService service.
type OsLoginServiceServer interface {
// Deletes a POSIX account.
DeletePosixAccount(context.Context, *DeletePosixAccountRequest) (*google_protobuf1.Empty, error)
DeletePosixAccount(context.Context, *DeletePosixAccountRequest) (*empty.Empty, error)
// Deletes an SSH public key.
DeleteSshPublicKey(context.Context, *DeleteSshPublicKeyRequest) (*google_protobuf1.Empty, error)
DeleteSshPublicKey(context.Context, *DeleteSshPublicKeyRequest) (*empty.Empty, error)
// Retrieves the profile information used for logging in to a virtual machine
// on Google Compute Engine.
GetLoginProfile(context.Context, *GetLoginProfileRequest) (*LoginProfile, error)
// Retrieves an SSH public key.
GetSshPublicKey(context.Context, *GetSshPublicKeyRequest) (*google_cloud_oslogin_common.SshPublicKey, error)
GetSshPublicKey(context.Context, *GetSshPublicKeyRequest) (*common.SshPublicKey, error)
// Adds an SSH public key and returns the profile information. Default POSIX
// account information is set when no username and UID exist as part of the
// login profile.
ImportSshPublicKey(context.Context, *ImportSshPublicKeyRequest) (*ImportSshPublicKeyResponse, error)
// Updates an SSH public key and returns the profile information. This method
// supports patch semantics.
UpdateSshPublicKey(context.Context, *UpdateSshPublicKeyRequest) (*google_cloud_oslogin_common.SshPublicKey, error)
UpdateSshPublicKey(context.Context, *UpdateSshPublicKeyRequest) (*common.SshPublicKey, error)
}
func RegisterOsLoginServiceServer(s *grpc.Server, srv OsLoginServiceServer) {
@ -528,9 +689,11 @@ var _OsLoginService_serviceDesc = grpc.ServiceDesc{
Metadata: "google/cloud/oslogin/v1beta/oslogin.proto",
}
func init() { proto.RegisterFile("google/cloud/oslogin/v1beta/oslogin.proto", fileDescriptor0) }
func init() {
proto.RegisterFile("google/cloud/oslogin/v1beta/oslogin.proto", fileDescriptor_oslogin_597ae172793c821f)
}
var fileDescriptor0 = []byte{
var fileDescriptor_oslogin_597ae172793c821f = []byte{
// 780 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x96, 0x4f, 0x4f, 0x13, 0x4f,
0x18, 0xc7, 0xb3, 0x2d, 0x3f, 0x02, 0x43, 0x81, 0x5f, 0xe6, 0x40, 0xca, 0x82, 0xb1, 0x2e, 0xd1,

File diff suppressed because it is too large Load Diff

View File

@ -1,37 +1,16 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/resourcemanager/v2/folders.proto
/*
Package resourcemanager is a generated protocol buffer package.
It is generated from these files:
google/cloud/resourcemanager/v2/folders.proto
It has these top-level messages:
Folder
ListFoldersRequest
ListFoldersResponse
SearchFoldersRequest
SearchFoldersResponse
GetFolderRequest
CreateFolderRequest
MoveFolderRequest
UpdateFolderRequest
DeleteFolderRequest
UndeleteFolderRequest
FolderOperation
*/
package resourcemanager
package resourcemanager // import "google.golang.org/genproto/googleapis/cloud/resourcemanager/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_iam_v11 "google.golang.org/genproto/googleapis/iam/v1"
import google_iam_v1 "google.golang.org/genproto/googleapis/iam/v1"
import google_longrunning "google.golang.org/genproto/googleapis/longrunning"
import google_protobuf3 "google.golang.org/genproto/protobuf/field_mask"
import google_protobuf4 "github.com/golang/protobuf/ptypes/timestamp"
import v1 "google.golang.org/genproto/googleapis/iam/v1"
import longrunning "google.golang.org/genproto/googleapis/longrunning"
import field_mask "google.golang.org/genproto/protobuf/field_mask"
import (
context "golang.org/x/net/context"
@ -75,7 +54,9 @@ var Folder_LifecycleState_value = map[string]int32{
func (x Folder_LifecycleState) String() string {
return proto.EnumName(Folder_LifecycleState_name, int32(x))
}
func (Folder_LifecycleState) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
func (Folder_LifecycleState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_folders_6c4bd17feec38232, []int{0, 0}
}
// The type of operation that failed.
type FolderOperation_OperationType int32
@ -104,7 +85,7 @@ func (x FolderOperation_OperationType) String() string {
return proto.EnumName(FolderOperation_OperationType_name, int32(x))
}
func (FolderOperation_OperationType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{11, 0}
return fileDescriptor_folders_6c4bd17feec38232, []int{11, 0}
}
// A Folder in an Organization's resource hierarchy, used to
@ -112,10 +93,10 @@ func (FolderOperation_OperationType) EnumDescriptor() ([]byte, []int) {
type Folder struct {
// Output only. The resource name of the Folder.
// Its format is `folders/{folder_id}`, for example: "folders/1234".
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The Folders parent's resource name.
// Updates to the folder's parent must be performed via [MoveFolders].
Parent string `protobuf:"bytes,2,opt,name=parent" json:"parent,omitempty"`
Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
// The folders display name.
// A folders display name must be unique amongst its siblings, e.g.
// no two folders with the same parent can share the same display name.
@ -123,21 +104,43 @@ type Folder struct {
// letters, digits, spaces, hyphens and underscores and can be no longer
// than 30 characters. This is captured by the regular expression:
// [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Output only. The lifecycle state of the folder.
// Updates to the lifecycle_state must be performed via
// [DeleteFolder] and [UndeleteFolder].
LifecycleState Folder_LifecycleState `protobuf:"varint,4,opt,name=lifecycle_state,json=lifecycleState,enum=google.cloud.resourcemanager.v2.Folder_LifecycleState" json:"lifecycle_state,omitempty"`
LifecycleState Folder_LifecycleState `protobuf:"varint,4,opt,name=lifecycle_state,json=lifecycleState,proto3,enum=google.cloud.resourcemanager.v2.Folder_LifecycleState" json:"lifecycle_state,omitempty"`
// Output only. Timestamp when the Folder was created. Assigned by the server.
CreateTime *google_protobuf4.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Timestamp when the Folder was last modified.
UpdateTime *google_protobuf4.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime" json:"update_time,omitempty"`
UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Folder) Reset() { *m = Folder{} }
func (m *Folder) String() string { return proto.CompactTextString(m) }
func (*Folder) ProtoMessage() {}
func (*Folder) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *Folder) Reset() { *m = Folder{} }
func (m *Folder) String() string { return proto.CompactTextString(m) }
func (*Folder) ProtoMessage() {}
func (*Folder) Descriptor() ([]byte, []int) {
return fileDescriptor_folders_6c4bd17feec38232, []int{0}
}
func (m *Folder) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Folder.Unmarshal(m, b)
}
func (m *Folder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Folder.Marshal(b, m, deterministic)
}
func (dst *Folder) XXX_Merge(src proto.Message) {
xxx_messageInfo_Folder.Merge(dst, src)
}
func (m *Folder) XXX_Size() int {
return xxx_messageInfo_Folder.Size(m)
}
func (m *Folder) XXX_DiscardUnknown() {
xxx_messageInfo_Folder.DiscardUnknown(m)
}
var xxx_messageInfo_Folder proto.InternalMessageInfo
func (m *Folder) GetName() string {
if m != nil {
@ -167,14 +170,14 @@ func (m *Folder) GetLifecycleState() Folder_LifecycleState {
return Folder_LIFECYCLE_STATE_UNSPECIFIED
}
func (m *Folder) GetCreateTime() *google_protobuf4.Timestamp {
func (m *Folder) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *Folder) GetUpdateTime() *google_protobuf4.Timestamp {
func (m *Folder) GetUpdateTime() *timestamp.Timestamp {
if m != nil {
return m.UpdateTime
}
@ -188,23 +191,45 @@ type ListFoldersRequest struct {
// Must be of the form `folders/{folder_id}` or `organizations/{org_id}`.
// Access to this method is controlled by checking the
// `resourcemanager.folders.list` permission on the `parent`.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of Folders to return in the response.
// This field is optional.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A pagination token returned from a previous call to `ListFolders`
// that indicates where this listing should continue from.
// This field is optional.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Controls whether Folders in the [DELETE_REQUESTED} state should
// be returned.
ShowDeleted bool `protobuf:"varint,4,opt,name=show_deleted,json=showDeleted" json:"show_deleted,omitempty"`
ShowDeleted bool `protobuf:"varint,4,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListFoldersRequest) Reset() { *m = ListFoldersRequest{} }
func (m *ListFoldersRequest) String() string { return proto.CompactTextString(m) }
func (*ListFoldersRequest) ProtoMessage() {}
func (*ListFoldersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *ListFoldersRequest) Reset() { *m = ListFoldersRequest{} }
func (m *ListFoldersRequest) String() string { return proto.CompactTextString(m) }
func (*ListFoldersRequest) ProtoMessage() {}
func (*ListFoldersRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_folders_6c4bd17feec38232, []int{1}
}
func (m *ListFoldersRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListFoldersRequest.Unmarshal(m, b)
}
func (m *ListFoldersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListFoldersRequest.Marshal(b, m, deterministic)
}
func (dst *ListFoldersRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListFoldersRequest.Merge(dst, src)
}
func (m *ListFoldersRequest) XXX_Size() int {
return xxx_messageInfo_ListFoldersRequest.Size(m)
}
func (m *ListFoldersRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListFoldersRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListFoldersRequest proto.InternalMessageInfo
func (m *ListFoldersRequest) GetParent() string {
if m != nil {
@ -238,17 +263,39 @@ func (m *ListFoldersRequest) GetShowDeleted() bool {
type ListFoldersResponse struct {
// A possibly paginated list of Folders that are direct descendants of
// the specified parent resource.
Folders []*Folder `protobuf:"bytes,1,rep,name=folders" json:"folders,omitempty"`
Folders []*Folder `protobuf:"bytes,1,rep,name=folders,proto3" json:"folders,omitempty"`
// A pagination token returned from a previous call to `ListFolders`
// that indicates from where listing should continue.
// This field is optional.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListFoldersResponse) Reset() { *m = ListFoldersResponse{} }
func (m *ListFoldersResponse) String() string { return proto.CompactTextString(m) }
func (*ListFoldersResponse) ProtoMessage() {}
func (*ListFoldersResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *ListFoldersResponse) Reset() { *m = ListFoldersResponse{} }
func (m *ListFoldersResponse) String() string { return proto.CompactTextString(m) }
func (*ListFoldersResponse) ProtoMessage() {}
func (*ListFoldersResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_folders_6c4bd17feec38232, []int{2}
}
func (m *ListFoldersResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListFoldersResponse.Unmarshal(m, b)
}
func (m *ListFoldersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListFoldersResponse.Marshal(b, m, deterministic)
}
func (dst *ListFoldersResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListFoldersResponse.Merge(dst, src)
}
func (m *ListFoldersResponse) XXX_Size() int {
return xxx_messageInfo_ListFoldersResponse.Size(m)
}
func (m *ListFoldersResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListFoldersResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListFoldersResponse proto.InternalMessageInfo
func (m *ListFoldersResponse) GetFolders() []*Folder {
if m != nil {
@ -268,11 +315,11 @@ func (m *ListFoldersResponse) GetNextPageToken() string {
type SearchFoldersRequest struct {
// The maximum number of folders to return in the response.
// This field is optional.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A pagination token returned from a previous call to `SearchFolders`
// that indicates from where search should continue.
// This field is optional.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Search criteria used to select the Folders to return.
// If no search criteria is specified then all accessible folders will be
// returned.
@ -289,13 +336,35 @@ type SearchFoldersRequest struct {
// |parent=folders/123|Folders whose parent is "folders/123".|
// |parent=folders/123 AND lifecycleState=ACTIVE|Active folders whose
// parent is "folders/123".|
Query string `protobuf:"bytes,3,opt,name=query" json:"query,omitempty"`
Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SearchFoldersRequest) Reset() { *m = SearchFoldersRequest{} }
func (m *SearchFoldersRequest) String() string { return proto.CompactTextString(m) }
func (*SearchFoldersRequest) ProtoMessage() {}
func (*SearchFoldersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *SearchFoldersRequest) Reset() { *m = SearchFoldersRequest{} }
func (m *SearchFoldersRequest) String() string { return proto.CompactTextString(m) }
func (*SearchFoldersRequest) ProtoMessage() {}
func (*SearchFoldersRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_folders_6c4bd17feec38232, []int{3}
}
func (m *SearchFoldersRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SearchFoldersRequest.Unmarshal(m, b)
}
func (m *SearchFoldersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SearchFoldersRequest.Marshal(b, m, deterministic)
}
func (dst *SearchFoldersRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SearchFoldersRequest.Merge(dst, src)
}
func (m *SearchFoldersRequest) XXX_Size() int {
return xxx_messageInfo_SearchFoldersRequest.Size(m)
}
func (m *SearchFoldersRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SearchFoldersRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SearchFoldersRequest proto.InternalMessageInfo
func (m *SearchFoldersRequest) GetPageSize() int32 {
if m != nil {
@ -322,17 +391,39 @@ func (m *SearchFoldersRequest) GetQuery() string {
type SearchFoldersResponse struct {
// A possibly paginated folder search results.
// the specified parent resource.
Folders []*Folder `protobuf:"bytes,1,rep,name=folders" json:"folders,omitempty"`
Folders []*Folder `protobuf:"bytes,1,rep,name=folders,proto3" json:"folders,omitempty"`
// A pagination token returned from a previous call to `SearchFolders`
// that indicates from where searching should continue.
// This field is optional.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SearchFoldersResponse) Reset() { *m = SearchFoldersResponse{} }
func (m *SearchFoldersResponse) String() string { return proto.CompactTextString(m) }
func (*SearchFoldersResponse) ProtoMessage() {}
func (*SearchFoldersResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *SearchFoldersResponse) Reset() { *m = SearchFoldersResponse{} }
func (m *SearchFoldersResponse) String() string { return proto.CompactTextString(m) }
func (*SearchFoldersResponse) ProtoMessage() {}
func (*SearchFoldersResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_folders_6c4bd17feec38232, []int{4}
}
func (m *SearchFoldersResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SearchFoldersResponse.Unmarshal(m, b)
}
func (m *SearchFoldersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SearchFoldersResponse.Marshal(b, m, deterministic)
}
func (dst *SearchFoldersResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SearchFoldersResponse.Merge(dst, src)
}
func (m *SearchFoldersResponse) XXX_Size() int {
return xxx_messageInfo_SearchFoldersResponse.Size(m)
}
func (m *SearchFoldersResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SearchFoldersResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SearchFoldersResponse proto.InternalMessageInfo
func (m *SearchFoldersResponse) GetFolders() []*Folder {
if m != nil {
@ -352,13 +443,35 @@ func (m *SearchFoldersResponse) GetNextPageToken() string {
type GetFolderRequest struct {
// The resource name of the Folder to retrieve.
// Must be of the form `folders/{folder_id}`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetFolderRequest) Reset() { *m = GetFolderRequest{} }
func (m *GetFolderRequest) String() string { return proto.CompactTextString(m) }
func (*GetFolderRequest) ProtoMessage() {}
func (*GetFolderRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *GetFolderRequest) Reset() { *m = GetFolderRequest{} }
func (m *GetFolderRequest) String() string { return proto.CompactTextString(m) }
func (*GetFolderRequest) ProtoMessage() {}
func (*GetFolderRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_folders_6c4bd17feec38232, []int{5}
}
func (m *GetFolderRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetFolderRequest.Unmarshal(m, b)
}
func (m *GetFolderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetFolderRequest.Marshal(b, m, deterministic)
}
func (dst *GetFolderRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetFolderRequest.Merge(dst, src)
}
func (m *GetFolderRequest) XXX_Size() int {
return xxx_messageInfo_GetFolderRequest.Size(m)
}
func (m *GetFolderRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetFolderRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetFolderRequest proto.InternalMessageInfo
func (m *GetFolderRequest) GetName() string {
if m != nil {
@ -371,16 +484,38 @@ func (m *GetFolderRequest) GetName() string {
type CreateFolderRequest struct {
// The resource name of the new Folder's parent.
// Must be of the form `folders/{folder_id}` or `organizations/{org_id}`.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The Folder being created, only the display name will be consulted.
// All other fields will be ignored.
Folder *Folder `protobuf:"bytes,2,opt,name=folder" json:"folder,omitempty"`
Folder *Folder `protobuf:"bytes,2,opt,name=folder,proto3" json:"folder,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateFolderRequest) Reset() { *m = CreateFolderRequest{} }
func (m *CreateFolderRequest) String() string { return proto.CompactTextString(m) }
func (*CreateFolderRequest) ProtoMessage() {}
func (*CreateFolderRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *CreateFolderRequest) Reset() { *m = CreateFolderRequest{} }
func (m *CreateFolderRequest) String() string { return proto.CompactTextString(m) }
func (*CreateFolderRequest) ProtoMessage() {}
func (*CreateFolderRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_folders_6c4bd17feec38232, []int{6}
}
func (m *CreateFolderRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateFolderRequest.Unmarshal(m, b)
}
func (m *CreateFolderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateFolderRequest.Marshal(b, m, deterministic)
}
func (dst *CreateFolderRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateFolderRequest.Merge(dst, src)
}
func (m *CreateFolderRequest) XXX_Size() int {
return xxx_messageInfo_CreateFolderRequest.Size(m)
}
func (m *CreateFolderRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateFolderRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateFolderRequest proto.InternalMessageInfo
func (m *CreateFolderRequest) GetParent() string {
if m != nil {
@ -400,17 +535,39 @@ func (m *CreateFolderRequest) GetFolder() *Folder {
type MoveFolderRequest struct {
// The resource name of the Folder to move.
// Must be of the form folders/{folder_id}
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The resource name of the Folder or Organization to reparent
// the folder under.
// Must be of the form `folders/{folder_id}` or `organizations/{org_id}`.
DestinationParent string `protobuf:"bytes,2,opt,name=destination_parent,json=destinationParent" json:"destination_parent,omitempty"`
DestinationParent string `protobuf:"bytes,2,opt,name=destination_parent,json=destinationParent,proto3" json:"destination_parent,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MoveFolderRequest) Reset() { *m = MoveFolderRequest{} }
func (m *MoveFolderRequest) String() string { return proto.CompactTextString(m) }
func (*MoveFolderRequest) ProtoMessage() {}
func (*MoveFolderRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *MoveFolderRequest) Reset() { *m = MoveFolderRequest{} }
func (m *MoveFolderRequest) String() string { return proto.CompactTextString(m) }
func (*MoveFolderRequest) ProtoMessage() {}
func (*MoveFolderRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_folders_6c4bd17feec38232, []int{7}
}
func (m *MoveFolderRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MoveFolderRequest.Unmarshal(m, b)
}
func (m *MoveFolderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MoveFolderRequest.Marshal(b, m, deterministic)
}
func (dst *MoveFolderRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_MoveFolderRequest.Merge(dst, src)
}
func (m *MoveFolderRequest) XXX_Size() int {
return xxx_messageInfo_MoveFolderRequest.Size(m)
}
func (m *MoveFolderRequest) XXX_DiscardUnknown() {
xxx_messageInfo_MoveFolderRequest.DiscardUnknown(m)
}
var xxx_messageInfo_MoveFolderRequest proto.InternalMessageInfo
func (m *MoveFolderRequest) GetName() string {
if m != nil {
@ -431,16 +588,38 @@ type UpdateFolderRequest struct {
// The new definition of the Folder. It must include a
// a `name` and `display_name` field. The other fields
// will be ignored.
Folder *Folder `protobuf:"bytes,1,opt,name=folder" json:"folder,omitempty"`
Folder *Folder `protobuf:"bytes,1,opt,name=folder,proto3" json:"folder,omitempty"`
// Fields to be updated.
// Only the `display_name` can be updated.
UpdateMask *google_protobuf3.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateFolderRequest) Reset() { *m = UpdateFolderRequest{} }
func (m *UpdateFolderRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateFolderRequest) ProtoMessage() {}
func (*UpdateFolderRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
func (m *UpdateFolderRequest) Reset() { *m = UpdateFolderRequest{} }
func (m *UpdateFolderRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateFolderRequest) ProtoMessage() {}
func (*UpdateFolderRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_folders_6c4bd17feec38232, []int{8}
}
func (m *UpdateFolderRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateFolderRequest.Unmarshal(m, b)
}
func (m *UpdateFolderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateFolderRequest.Marshal(b, m, deterministic)
}
func (dst *UpdateFolderRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateFolderRequest.Merge(dst, src)
}
func (m *UpdateFolderRequest) XXX_Size() int {
return xxx_messageInfo_UpdateFolderRequest.Size(m)
}
func (m *UpdateFolderRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateFolderRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateFolderRequest proto.InternalMessageInfo
func (m *UpdateFolderRequest) GetFolder() *Folder {
if m != nil {
@ -449,7 +628,7 @@ func (m *UpdateFolderRequest) GetFolder() *Folder {
return nil
}
func (m *UpdateFolderRequest) GetUpdateMask() *google_protobuf3.FieldMask {
func (m *UpdateFolderRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
@ -460,16 +639,38 @@ func (m *UpdateFolderRequest) GetUpdateMask() *google_protobuf3.FieldMask {
type DeleteFolderRequest struct {
// the resource name of the Folder to be deleted.
// Must be of the form `folders/{folder_id}`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Instructs DeleteFolderAction to delete a folder even when the folder is not
// empty.
RecursiveDelete bool `protobuf:"varint,2,opt,name=recursive_delete,json=recursiveDelete" json:"recursive_delete,omitempty"`
RecursiveDelete bool `protobuf:"varint,2,opt,name=recursive_delete,json=recursiveDelete,proto3" json:"recursive_delete,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteFolderRequest) Reset() { *m = DeleteFolderRequest{} }
func (m *DeleteFolderRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteFolderRequest) ProtoMessage() {}
func (*DeleteFolderRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
func (m *DeleteFolderRequest) Reset() { *m = DeleteFolderRequest{} }
func (m *DeleteFolderRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteFolderRequest) ProtoMessage() {}
func (*DeleteFolderRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_folders_6c4bd17feec38232, []int{9}
}
func (m *DeleteFolderRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteFolderRequest.Unmarshal(m, b)
}
func (m *DeleteFolderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteFolderRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteFolderRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteFolderRequest.Merge(dst, src)
}
func (m *DeleteFolderRequest) XXX_Size() int {
return xxx_messageInfo_DeleteFolderRequest.Size(m)
}
func (m *DeleteFolderRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteFolderRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteFolderRequest proto.InternalMessageInfo
func (m *DeleteFolderRequest) GetName() string {
if m != nil {
@ -489,13 +690,35 @@ func (m *DeleteFolderRequest) GetRecursiveDelete() bool {
type UndeleteFolderRequest struct {
// The resource name of the Folder to undelete.
// Must be of the form `folders/{folder_id}`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UndeleteFolderRequest) Reset() { *m = UndeleteFolderRequest{} }
func (m *UndeleteFolderRequest) String() string { return proto.CompactTextString(m) }
func (*UndeleteFolderRequest) ProtoMessage() {}
func (*UndeleteFolderRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
func (m *UndeleteFolderRequest) Reset() { *m = UndeleteFolderRequest{} }
func (m *UndeleteFolderRequest) String() string { return proto.CompactTextString(m) }
func (*UndeleteFolderRequest) ProtoMessage() {}
func (*UndeleteFolderRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_folders_6c4bd17feec38232, []int{10}
}
func (m *UndeleteFolderRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UndeleteFolderRequest.Unmarshal(m, b)
}
func (m *UndeleteFolderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UndeleteFolderRequest.Marshal(b, m, deterministic)
}
func (dst *UndeleteFolderRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UndeleteFolderRequest.Merge(dst, src)
}
func (m *UndeleteFolderRequest) XXX_Size() int {
return xxx_messageInfo_UndeleteFolderRequest.Size(m)
}
func (m *UndeleteFolderRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UndeleteFolderRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UndeleteFolderRequest proto.InternalMessageInfo
func (m *UndeleteFolderRequest) GetName() string {
if m != nil {
@ -507,21 +730,43 @@ func (m *UndeleteFolderRequest) GetName() string {
// Metadata describing a long running folder operation
type FolderOperation struct {
// The display name of the folder.
DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// The type of this operation.
OperationType FolderOperation_OperationType `protobuf:"varint,2,opt,name=operation_type,json=operationType,enum=google.cloud.resourcemanager.v2.FolderOperation_OperationType" json:"operation_type,omitempty"`
OperationType FolderOperation_OperationType `protobuf:"varint,2,opt,name=operation_type,json=operationType,proto3,enum=google.cloud.resourcemanager.v2.FolderOperation_OperationType" json:"operation_type,omitempty"`
// The resource name of the folder's parent.
// Only applicable when the operation_type is MOVE.
SourceParent string `protobuf:"bytes,3,opt,name=source_parent,json=sourceParent" json:"source_parent,omitempty"`
SourceParent string `protobuf:"bytes,3,opt,name=source_parent,json=sourceParent,proto3" json:"source_parent,omitempty"`
// The resource name of the folder or organization we are either creating
// the folder under or moving the folder to.
DestinationParent string `protobuf:"bytes,4,opt,name=destination_parent,json=destinationParent" json:"destination_parent,omitempty"`
DestinationParent string `protobuf:"bytes,4,opt,name=destination_parent,json=destinationParent,proto3" json:"destination_parent,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FolderOperation) Reset() { *m = FolderOperation{} }
func (m *FolderOperation) String() string { return proto.CompactTextString(m) }
func (*FolderOperation) ProtoMessage() {}
func (*FolderOperation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
func (m *FolderOperation) Reset() { *m = FolderOperation{} }
func (m *FolderOperation) String() string { return proto.CompactTextString(m) }
func (*FolderOperation) ProtoMessage() {}
func (*FolderOperation) Descriptor() ([]byte, []int) {
return fileDescriptor_folders_6c4bd17feec38232, []int{11}
}
func (m *FolderOperation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FolderOperation.Unmarshal(m, b)
}
func (m *FolderOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FolderOperation.Marshal(b, m, deterministic)
}
func (dst *FolderOperation) XXX_Merge(src proto.Message) {
xxx_messageInfo_FolderOperation.Merge(dst, src)
}
func (m *FolderOperation) XXX_Size() int {
return xxx_messageInfo_FolderOperation.Size(m)
}
func (m *FolderOperation) XXX_DiscardUnknown() {
xxx_messageInfo_FolderOperation.DiscardUnknown(m)
}
var xxx_messageInfo_FolderOperation proto.InternalMessageInfo
func (m *FolderOperation) GetDisplayName() string {
if m != nil {
@ -576,8 +821,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for Folders service
// FoldersClient is the client API for Folders service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type FoldersClient interface {
// Lists the Folders that are direct descendants of supplied parent resource.
// List provides a strongly consistent view of the Folders underneath
@ -626,7 +872,7 @@ type FoldersClient interface {
//
// The caller must have `resourcemanager.folders.create` permission on the
// identified parent.
CreateFolder(ctx context.Context, in *CreateFolderRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
CreateFolder(ctx context.Context, in *CreateFolderRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Updates a Folder, changing its display_name.
// Changes to the folder display_name will be rejected if they violate either
// the display_name formatting rules or naming constraints described in
@ -658,7 +904,7 @@ type FoldersClient interface {
// or fanout constraints described in the [CreateFolder] documentation.
// The caller must have `resourcemanager.folders.move` permission on the
// folder's current and proposed new parent.
MoveFolder(ctx context.Context, in *MoveFolderRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
MoveFolder(ctx context.Context, in *MoveFolderRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Requests deletion of a Folder. The Folder is moved into the
// [DELETE_REQUESTED] state immediately, and is deleted approximately 30 days
// later. This method may only be called on an empty Folder in the [ACTIVE]
@ -681,19 +927,19 @@ type FoldersClient interface {
// be the Folder's resource name, e.g. "folders/1234".
// The caller must have `resourcemanager.folders.getIamPolicy` permission
// on the identified folder.
GetIamPolicy(ctx context.Context, in *google_iam_v11.GetIamPolicyRequest, opts ...grpc.CallOption) (*google_iam_v1.Policy, error)
GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
// Sets the access control policy on a Folder, replacing any existing policy.
// The `resource` field should be the Folder's resource name, e.g.
// "folders/1234".
// The caller must have `resourcemanager.folders.setIamPolicy` permission
// on the identified folder.
SetIamPolicy(ctx context.Context, in *google_iam_v11.SetIamPolicyRequest, opts ...grpc.CallOption) (*google_iam_v1.Policy, error)
SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
// Returns permissions that a caller has on the specified Folder.
// The `resource` field should be the Folder's resource name,
// e.g. "folders/1234".
//
// There are no permissions required for making this API call.
TestIamPermissions(ctx context.Context, in *google_iam_v11.TestIamPermissionsRequest, opts ...grpc.CallOption) (*google_iam_v11.TestIamPermissionsResponse, error)
TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error)
}
type foldersClient struct {
@ -706,7 +952,7 @@ func NewFoldersClient(cc *grpc.ClientConn) FoldersClient {
func (c *foldersClient) ListFolders(ctx context.Context, in *ListFoldersRequest, opts ...grpc.CallOption) (*ListFoldersResponse, error) {
out := new(ListFoldersResponse)
err := grpc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/ListFolders", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/ListFolders", in, out, opts...)
if err != nil {
return nil, err
}
@ -715,7 +961,7 @@ func (c *foldersClient) ListFolders(ctx context.Context, in *ListFoldersRequest,
func (c *foldersClient) SearchFolders(ctx context.Context, in *SearchFoldersRequest, opts ...grpc.CallOption) (*SearchFoldersResponse, error) {
out := new(SearchFoldersResponse)
err := grpc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/SearchFolders", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/SearchFolders", in, out, opts...)
if err != nil {
return nil, err
}
@ -724,16 +970,16 @@ func (c *foldersClient) SearchFolders(ctx context.Context, in *SearchFoldersRequ
func (c *foldersClient) GetFolder(ctx context.Context, in *GetFolderRequest, opts ...grpc.CallOption) (*Folder, error) {
out := new(Folder)
err := grpc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/GetFolder", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/GetFolder", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *foldersClient) CreateFolder(ctx context.Context, in *CreateFolderRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/CreateFolder", in, out, c.cc, opts...)
func (c *foldersClient) CreateFolder(ctx context.Context, in *CreateFolderRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
out := new(longrunning.Operation)
err := c.cc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/CreateFolder", in, out, opts...)
if err != nil {
return nil, err
}
@ -742,16 +988,16 @@ func (c *foldersClient) CreateFolder(ctx context.Context, in *CreateFolderReques
func (c *foldersClient) UpdateFolder(ctx context.Context, in *UpdateFolderRequest, opts ...grpc.CallOption) (*Folder, error) {
out := new(Folder)
err := grpc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/UpdateFolder", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/UpdateFolder", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *foldersClient) MoveFolder(ctx context.Context, in *MoveFolderRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/MoveFolder", in, out, c.cc, opts...)
func (c *foldersClient) MoveFolder(ctx context.Context, in *MoveFolderRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
out := new(longrunning.Operation)
err := c.cc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/MoveFolder", in, out, opts...)
if err != nil {
return nil, err
}
@ -760,7 +1006,7 @@ func (c *foldersClient) MoveFolder(ctx context.Context, in *MoveFolderRequest, o
func (c *foldersClient) DeleteFolder(ctx context.Context, in *DeleteFolderRequest, opts ...grpc.CallOption) (*Folder, error) {
out := new(Folder)
err := grpc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/DeleteFolder", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/DeleteFolder", in, out, opts...)
if err != nil {
return nil, err
}
@ -769,42 +1015,41 @@ func (c *foldersClient) DeleteFolder(ctx context.Context, in *DeleteFolderReques
func (c *foldersClient) UndeleteFolder(ctx context.Context, in *UndeleteFolderRequest, opts ...grpc.CallOption) (*Folder, error) {
out := new(Folder)
err := grpc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/UndeleteFolder", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/UndeleteFolder", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *foldersClient) GetIamPolicy(ctx context.Context, in *google_iam_v11.GetIamPolicyRequest, opts ...grpc.CallOption) (*google_iam_v1.Policy, error) {
out := new(google_iam_v1.Policy)
err := grpc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/GetIamPolicy", in, out, c.cc, opts...)
func (c *foldersClient) GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) {
out := new(v1.Policy)
err := c.cc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/GetIamPolicy", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *foldersClient) SetIamPolicy(ctx context.Context, in *google_iam_v11.SetIamPolicyRequest, opts ...grpc.CallOption) (*google_iam_v1.Policy, error) {
out := new(google_iam_v1.Policy)
err := grpc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/SetIamPolicy", in, out, c.cc, opts...)
func (c *foldersClient) SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) {
out := new(v1.Policy)
err := c.cc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/SetIamPolicy", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *foldersClient) TestIamPermissions(ctx context.Context, in *google_iam_v11.TestIamPermissionsRequest, opts ...grpc.CallOption) (*google_iam_v11.TestIamPermissionsResponse, error) {
out := new(google_iam_v11.TestIamPermissionsResponse)
err := grpc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/TestIamPermissions", in, out, c.cc, opts...)
func (c *foldersClient) TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) {
out := new(v1.TestIamPermissionsResponse)
err := c.cc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/TestIamPermissions", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Folders service
// FoldersServer is the server API for Folders service.
type FoldersServer interface {
// Lists the Folders that are direct descendants of supplied parent resource.
// List provides a strongly consistent view of the Folders underneath
@ -853,7 +1098,7 @@ type FoldersServer interface {
//
// The caller must have `resourcemanager.folders.create` permission on the
// identified parent.
CreateFolder(context.Context, *CreateFolderRequest) (*google_longrunning.Operation, error)
CreateFolder(context.Context, *CreateFolderRequest) (*longrunning.Operation, error)
// Updates a Folder, changing its display_name.
// Changes to the folder display_name will be rejected if they violate either
// the display_name formatting rules or naming constraints described in
@ -885,7 +1130,7 @@ type FoldersServer interface {
// or fanout constraints described in the [CreateFolder] documentation.
// The caller must have `resourcemanager.folders.move` permission on the
// folder's current and proposed new parent.
MoveFolder(context.Context, *MoveFolderRequest) (*google_longrunning.Operation, error)
MoveFolder(context.Context, *MoveFolderRequest) (*longrunning.Operation, error)
// Requests deletion of a Folder. The Folder is moved into the
// [DELETE_REQUESTED] state immediately, and is deleted approximately 30 days
// later. This method may only be called on an empty Folder in the [ACTIVE]
@ -908,19 +1153,19 @@ type FoldersServer interface {
// be the Folder's resource name, e.g. "folders/1234".
// The caller must have `resourcemanager.folders.getIamPolicy` permission
// on the identified folder.
GetIamPolicy(context.Context, *google_iam_v11.GetIamPolicyRequest) (*google_iam_v1.Policy, error)
GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)
// Sets the access control policy on a Folder, replacing any existing policy.
// The `resource` field should be the Folder's resource name, e.g.
// "folders/1234".
// The caller must have `resourcemanager.folders.setIamPolicy` permission
// on the identified folder.
SetIamPolicy(context.Context, *google_iam_v11.SetIamPolicyRequest) (*google_iam_v1.Policy, error)
SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)
// Returns permissions that a caller has on the specified Folder.
// The `resource` field should be the Folder's resource name,
// e.g. "folders/1234".
//
// There are no permissions required for making this API call.
TestIamPermissions(context.Context, *google_iam_v11.TestIamPermissionsRequest) (*google_iam_v11.TestIamPermissionsResponse, error)
TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)
}
func RegisterFoldersServer(s *grpc.Server, srv FoldersServer) {
@ -1072,7 +1317,7 @@ func _Folders_UndeleteFolder_Handler(srv interface{}, ctx context.Context, dec f
}
func _Folders_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(google_iam_v11.GetIamPolicyRequest)
in := new(v1.GetIamPolicyRequest)
if err := dec(in); err != nil {
return nil, err
}
@ -1084,13 +1329,13 @@ func _Folders_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec fun
FullMethod: "/google.cloud.resourcemanager.v2.Folders/GetIamPolicy",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FoldersServer).GetIamPolicy(ctx, req.(*google_iam_v11.GetIamPolicyRequest))
return srv.(FoldersServer).GetIamPolicy(ctx, req.(*v1.GetIamPolicyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Folders_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(google_iam_v11.SetIamPolicyRequest)
in := new(v1.SetIamPolicyRequest)
if err := dec(in); err != nil {
return nil, err
}
@ -1102,13 +1347,13 @@ func _Folders_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec fun
FullMethod: "/google.cloud.resourcemanager.v2.Folders/SetIamPolicy",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FoldersServer).SetIamPolicy(ctx, req.(*google_iam_v11.SetIamPolicyRequest))
return srv.(FoldersServer).SetIamPolicy(ctx, req.(*v1.SetIamPolicyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Folders_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(google_iam_v11.TestIamPermissionsRequest)
in := new(v1.TestIamPermissionsRequest)
if err := dec(in); err != nil {
return nil, err
}
@ -1120,7 +1365,7 @@ func _Folders_TestIamPermissions_Handler(srv interface{}, ctx context.Context, d
FullMethod: "/google.cloud.resourcemanager.v2.Folders/TestIamPermissions",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FoldersServer).TestIamPermissions(ctx, req.(*google_iam_v11.TestIamPermissionsRequest))
return srv.(FoldersServer).TestIamPermissions(ctx, req.(*v1.TestIamPermissionsRequest))
}
return interceptor(ctx, in, info, handler)
}
@ -1178,9 +1423,11 @@ var _Folders_serviceDesc = grpc.ServiceDesc{
Metadata: "google/cloud/resourcemanager/v2/folders.proto",
}
func init() { proto.RegisterFile("google/cloud/resourcemanager/v2/folders.proto", fileDescriptor0) }
func init() {
proto.RegisterFile("google/cloud/resourcemanager/v2/folders.proto", fileDescriptor_folders_6c4bd17feec38232)
}
var fileDescriptor0 = []byte{
var fileDescriptor_folders_6c4bd17feec38232 = []byte{
// 1235 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0x5d, 0x6f, 0xdb, 0xd4,
0x1b, 0xff, 0x9f, 0xac, 0xcb, 0xba, 0x27, 0x2f, 0xcd, 0x4e, 0xdb, 0xfd, 0x4b, 0xba, 0xbe, 0x70,

View File

@ -1,46 +1,15 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/runtimeconfig/v1beta1/resources.proto
/*
Package runtimeconfig is a generated protocol buffer package.
It is generated from these files:
google/cloud/runtimeconfig/v1beta1/resources.proto
google/cloud/runtimeconfig/v1beta1/runtimeconfig.proto
It has these top-level messages:
RuntimeConfig
Variable
EndCondition
Waiter
ListConfigsRequest
ListConfigsResponse
GetConfigRequest
CreateConfigRequest
UpdateConfigRequest
DeleteConfigRequest
ListVariablesRequest
ListVariablesResponse
WatchVariableRequest
GetVariableRequest
CreateVariableRequest
UpdateVariableRequest
DeleteVariableRequest
ListWaitersRequest
ListWaitersResponse
GetWaiterRequest
CreateWaiterRequest
DeleteWaiterRequest
*/
package runtimeconfig
package runtimeconfig // import "google.golang.org/genproto/googleapis/cloud/runtimeconfig/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import duration "github.com/golang/protobuf/ptypes/duration"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf1 "github.com/golang/protobuf/ptypes/duration"
import google_protobuf2 "github.com/golang/protobuf/ptypes/timestamp"
import google_rpc "google.golang.org/genproto/googleapis/rpc/status"
import status "google.golang.org/genproto/googleapis/rpc/status"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
@ -81,7 +50,9 @@ var VariableState_value = map[string]int32{
func (x VariableState) String() string {
return proto.EnumName(VariableState_name, int32(x))
}
func (VariableState) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (VariableState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_resources_9e12d793a1d0df41, []int{0}
}
// A RuntimeConfig resource is the primary resource in the Cloud RuntimeConfig
// service. A RuntimeConfig resource consists of metadata and a hierarchy of
@ -98,15 +69,37 @@ type RuntimeConfig struct {
// You pick the RuntimeConfig resource name, but the server will validate that
// the name adheres to this format. After you create the resource, you cannot
// change the resource's name.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// An optional description of the RuntimeConfig object.
Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RuntimeConfig) Reset() { *m = RuntimeConfig{} }
func (m *RuntimeConfig) String() string { return proto.CompactTextString(m) }
func (*RuntimeConfig) ProtoMessage() {}
func (*RuntimeConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *RuntimeConfig) Reset() { *m = RuntimeConfig{} }
func (m *RuntimeConfig) String() string { return proto.CompactTextString(m) }
func (*RuntimeConfig) ProtoMessage() {}
func (*RuntimeConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_resources_9e12d793a1d0df41, []int{0}
}
func (m *RuntimeConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RuntimeConfig.Unmarshal(m, b)
}
func (m *RuntimeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RuntimeConfig.Marshal(b, m, deterministic)
}
func (dst *RuntimeConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_RuntimeConfig.Merge(dst, src)
}
func (m *RuntimeConfig) XXX_Size() int {
return xxx_messageInfo_RuntimeConfig.Size(m)
}
func (m *RuntimeConfig) XXX_DiscardUnknown() {
xxx_messageInfo_RuntimeConfig.DiscardUnknown(m)
}
var xxx_messageInfo_RuntimeConfig proto.InternalMessageInfo
func (m *RuntimeConfig) GetName() string {
if m != nil {
@ -144,7 +137,7 @@ type Variable struct {
// The length of a `[VARIABLE_NAME]` must be less than 256 bytes.
//
// Once you create a variable, you cannot change the variable name.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The the value of the variable. It can be either a binary or a string
// value. You must specify one of either `value` or `text`. Specifying both
// will cause the server to return an error.
@ -154,17 +147,46 @@ type Variable struct {
// *Variable_Text
Contents isVariable_Contents `protobuf_oneof:"contents"`
// [Output Only] The time of the last variable update.
UpdateTime *google_protobuf2.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime" json:"update_time,omitempty"`
UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// [Ouput only] The current state of the variable. The variable state indicates
// the outcome of the `variables().watch` call and is visible through the
// `get` and `list` calls.
State VariableState `protobuf:"varint,4,opt,name=state,enum=google.cloud.runtimeconfig.v1beta1.VariableState" json:"state,omitempty"`
State VariableState `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.runtimeconfig.v1beta1.VariableState" json:"state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Variable) Reset() { *m = Variable{} }
func (m *Variable) String() string { return proto.CompactTextString(m) }
func (*Variable) ProtoMessage() {}
func (*Variable) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *Variable) Reset() { *m = Variable{} }
func (m *Variable) String() string { return proto.CompactTextString(m) }
func (*Variable) ProtoMessage() {}
func (*Variable) Descriptor() ([]byte, []int) {
return fileDescriptor_resources_9e12d793a1d0df41, []int{1}
}
func (m *Variable) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Variable.Unmarshal(m, b)
}
func (m *Variable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Variable.Marshal(b, m, deterministic)
}
func (dst *Variable) XXX_Merge(src proto.Message) {
xxx_messageInfo_Variable.Merge(dst, src)
}
func (m *Variable) XXX_Size() int {
return xxx_messageInfo_Variable.Size(m)
}
func (m *Variable) XXX_DiscardUnknown() {
xxx_messageInfo_Variable.DiscardUnknown(m)
}
var xxx_messageInfo_Variable proto.InternalMessageInfo
func (m *Variable) GetName() string {
if m != nil {
return m.Name
}
return ""
}
type isVariable_Contents interface {
isVariable_Contents()
@ -173,12 +195,14 @@ type isVariable_Contents interface {
type Variable_Value struct {
Value []byte `protobuf:"bytes,2,opt,name=value,proto3,oneof"`
}
type Variable_Text struct {
Text string `protobuf:"bytes,5,opt,name=text,oneof"`
Text string `protobuf:"bytes,5,opt,name=text,proto3,oneof"`
}
func (*Variable_Value) isVariable_Contents() {}
func (*Variable_Text) isVariable_Contents() {}
func (*Variable_Text) isVariable_Contents() {}
func (m *Variable) GetContents() isVariable_Contents {
if m != nil {
@ -187,13 +211,6 @@ func (m *Variable) GetContents() isVariable_Contents {
return nil
}
func (m *Variable) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Variable) GetValue() []byte {
if x, ok := m.GetContents().(*Variable_Value); ok {
return x.Value
@ -208,7 +225,7 @@ func (m *Variable) GetText() string {
return ""
}
func (m *Variable) GetUpdateTime() *google_protobuf2.Timestamp {
func (m *Variable) GetUpdateTime() *timestamp.Timestamp {
if m != nil {
return m.UpdateTime
}
@ -274,11 +291,11 @@ func _Variable_OneofSizer(msg proto.Message) (n int) {
// contents
switch x := m.Contents.(type) {
case *Variable_Value:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.Value)))
n += len(x.Value)
case *Variable_Text:
n += proto.SizeVarint(5<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.Text)))
n += len(x.Text)
case nil:
@ -295,20 +312,42 @@ type EndCondition struct {
//
// Types that are valid to be assigned to Condition:
// *EndCondition_Cardinality_
Condition isEndCondition_Condition `protobuf_oneof:"condition"`
Condition isEndCondition_Condition `protobuf_oneof:"condition"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EndCondition) Reset() { *m = EndCondition{} }
func (m *EndCondition) String() string { return proto.CompactTextString(m) }
func (*EndCondition) ProtoMessage() {}
func (*EndCondition) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *EndCondition) Reset() { *m = EndCondition{} }
func (m *EndCondition) String() string { return proto.CompactTextString(m) }
func (*EndCondition) ProtoMessage() {}
func (*EndCondition) Descriptor() ([]byte, []int) {
return fileDescriptor_resources_9e12d793a1d0df41, []int{2}
}
func (m *EndCondition) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EndCondition.Unmarshal(m, b)
}
func (m *EndCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EndCondition.Marshal(b, m, deterministic)
}
func (dst *EndCondition) XXX_Merge(src proto.Message) {
xxx_messageInfo_EndCondition.Merge(dst, src)
}
func (m *EndCondition) XXX_Size() int {
return xxx_messageInfo_EndCondition.Size(m)
}
func (m *EndCondition) XXX_DiscardUnknown() {
xxx_messageInfo_EndCondition.DiscardUnknown(m)
}
var xxx_messageInfo_EndCondition proto.InternalMessageInfo
type isEndCondition_Condition interface {
isEndCondition_Condition()
}
type EndCondition_Cardinality_ struct {
Cardinality *EndCondition_Cardinality `protobuf:"bytes,1,opt,name=cardinality,oneof"`
Cardinality *EndCondition_Cardinality `protobuf:"bytes,1,opt,name=cardinality,proto3,oneof"`
}
func (*EndCondition_Cardinality_) isEndCondition_Condition() {}
@ -372,7 +411,7 @@ func _EndCondition_OneofSizer(msg proto.Message) (n int) {
switch x := m.Condition.(type) {
case *EndCondition_Cardinality_:
s := proto.Size(x.Cardinality)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
@ -398,16 +437,38 @@ func _EndCondition_OneofSizer(msg proto.Message) (n int) {
// path prefix are counted.
type EndCondition_Cardinality struct {
// The root of the variable subtree to monitor. For example, `/foo`.
Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// The number variables under the `path` that must exist to meet this
// condition. Defaults to 1 if not specified.
Number int32 `protobuf:"varint,2,opt,name=number" json:"number,omitempty"`
Number int32 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EndCondition_Cardinality) Reset() { *m = EndCondition_Cardinality{} }
func (m *EndCondition_Cardinality) String() string { return proto.CompactTextString(m) }
func (*EndCondition_Cardinality) ProtoMessage() {}
func (*EndCondition_Cardinality) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} }
func (m *EndCondition_Cardinality) Reset() { *m = EndCondition_Cardinality{} }
func (m *EndCondition_Cardinality) String() string { return proto.CompactTextString(m) }
func (*EndCondition_Cardinality) ProtoMessage() {}
func (*EndCondition_Cardinality) Descriptor() ([]byte, []int) {
return fileDescriptor_resources_9e12d793a1d0df41, []int{2, 0}
}
func (m *EndCondition_Cardinality) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EndCondition_Cardinality.Unmarshal(m, b)
}
func (m *EndCondition_Cardinality) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EndCondition_Cardinality.Marshal(b, m, deterministic)
}
func (dst *EndCondition_Cardinality) XXX_Merge(src proto.Message) {
xxx_messageInfo_EndCondition_Cardinality.Merge(dst, src)
}
func (m *EndCondition_Cardinality) XXX_Size() int {
return xxx_messageInfo_EndCondition_Cardinality.Size(m)
}
func (m *EndCondition_Cardinality) XXX_DiscardUnknown() {
xxx_messageInfo_EndCondition_Cardinality.DiscardUnknown(m)
}
var xxx_messageInfo_EndCondition_Cardinality proto.InternalMessageInfo
func (m *EndCondition_Cardinality) GetPath() string {
if m != nil {
@ -449,42 +510,64 @@ type Waiter struct {
// of `[WAITER_NAME]` must be less than 64 bytes.
//
// After you create a Waiter resource, you cannot change the resource name.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// [Required] Specifies the timeout of the waiter in seconds, beginning from
// the instant that `waiters().create` method is called. If this time elapses
// before the success or failure conditions are met, the waiter fails and sets
// the `error` code to `DEADLINE_EXCEEDED`.
Timeout *google_protobuf1.Duration `protobuf:"bytes,2,opt,name=timeout" json:"timeout,omitempty"`
Timeout *duration.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
// [Optional] The failure condition of this waiter. If this condition is met,
// `done` will be set to `true` and the `error` code will be set to `ABORTED`.
// The failure condition takes precedence over the success condition. If both
// conditions are met, a failure will be indicated. This value is optional; if
// no failure condition is set, the only failure scenario will be a timeout.
Failure *EndCondition `protobuf:"bytes,3,opt,name=failure" json:"failure,omitempty"`
Failure *EndCondition `protobuf:"bytes,3,opt,name=failure,proto3" json:"failure,omitempty"`
// [Required] The success condition. If this condition is met, `done` will be
// set to `true` and the `error` value will remain unset. The failure condition
// takes precedence over the success condition. If both conditions are met, a
// failure will be indicated.
Success *EndCondition `protobuf:"bytes,4,opt,name=success" json:"success,omitempty"`
Success *EndCondition `protobuf:"bytes,4,opt,name=success,proto3" json:"success,omitempty"`
// [Output Only] The instant at which this Waiter resource was created. Adding
// the value of `timeout` to this instant yields the timeout deadline for the
// waiter.
CreateTime *google_protobuf2.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// [Output Only] If the value is `false`, it means the waiter is still waiting
// for one of its conditions to be met.
//
// If true, the waiter has finished. If the waiter finished due to a timeout
// or failure, `error` will be set.
Done bool `protobuf:"varint,6,opt,name=done" json:"done,omitempty"`
Done bool `protobuf:"varint,6,opt,name=done,proto3" json:"done,omitempty"`
// [Output Only] If the waiter ended due to a failure or timeout, this value
// will be set.
Error *google_rpc.Status `protobuf:"bytes,7,opt,name=error" json:"error,omitempty"`
Error *status.Status `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Waiter) Reset() { *m = Waiter{} }
func (m *Waiter) String() string { return proto.CompactTextString(m) }
func (*Waiter) ProtoMessage() {}
func (*Waiter) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *Waiter) Reset() { *m = Waiter{} }
func (m *Waiter) String() string { return proto.CompactTextString(m) }
func (*Waiter) ProtoMessage() {}
func (*Waiter) Descriptor() ([]byte, []int) {
return fileDescriptor_resources_9e12d793a1d0df41, []int{3}
}
func (m *Waiter) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Waiter.Unmarshal(m, b)
}
func (m *Waiter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Waiter.Marshal(b, m, deterministic)
}
func (dst *Waiter) XXX_Merge(src proto.Message) {
xxx_messageInfo_Waiter.Merge(dst, src)
}
func (m *Waiter) XXX_Size() int {
return xxx_messageInfo_Waiter.Size(m)
}
func (m *Waiter) XXX_DiscardUnknown() {
xxx_messageInfo_Waiter.DiscardUnknown(m)
}
var xxx_messageInfo_Waiter proto.InternalMessageInfo
func (m *Waiter) GetName() string {
if m != nil {
@ -493,7 +576,7 @@ func (m *Waiter) GetName() string {
return ""
}
func (m *Waiter) GetTimeout() *google_protobuf1.Duration {
func (m *Waiter) GetTimeout() *duration.Duration {
if m != nil {
return m.Timeout
}
@ -514,7 +597,7 @@ func (m *Waiter) GetSuccess() *EndCondition {
return nil
}
func (m *Waiter) GetCreateTime() *google_protobuf2.Timestamp {
func (m *Waiter) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
@ -528,7 +611,7 @@ func (m *Waiter) GetDone() bool {
return false
}
func (m *Waiter) GetError() *google_rpc.Status {
func (m *Waiter) GetError() *status.Status {
if m != nil {
return m.Error
}
@ -544,9 +627,11 @@ func init() {
proto.RegisterEnum("google.cloud.runtimeconfig.v1beta1.VariableState", VariableState_name, VariableState_value)
}
func init() { proto.RegisterFile("google/cloud/runtimeconfig/v1beta1/resources.proto", fileDescriptor0) }
func init() {
proto.RegisterFile("google/cloud/runtimeconfig/v1beta1/resources.proto", fileDescriptor_resources_9e12d793a1d0df41)
}
var fileDescriptor0 = []byte{
var fileDescriptor_resources_9e12d793a1d0df41 = []byte{
// 628 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xdd, 0x6e, 0xd3, 0x30,
0x14, 0xc7, 0x9b, 0xd2, 0x8f, 0xed, 0x64, 0x43, 0x93, 0x85, 0x46, 0xa8, 0xd0, 0xa8, 0x7a, 0x81,

View File

@ -1,40 +1,17 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/speech/v1/cloud_speech.proto
/*
Package speech is a generated protocol buffer package.
It is generated from these files:
google/cloud/speech/v1/cloud_speech.proto
It has these top-level messages:
RecognizeRequest
LongRunningRecognizeRequest
StreamingRecognizeRequest
StreamingRecognitionConfig
RecognitionConfig
SpeechContext
RecognitionAudio
RecognizeResponse
LongRunningRecognizeResponse
LongRunningRecognizeMetadata
StreamingRecognizeResponse
StreamingRecognitionResult
SpeechRecognitionResult
SpeechRecognitionAlternative
WordInfo
*/
package speech
package speech // import "google.golang.org/genproto/googleapis/cloud/speech/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_longrunning "google.golang.org/genproto/googleapis/longrunning"
import _ "github.com/golang/protobuf/ptypes/any"
import google_protobuf3 "github.com/golang/protobuf/ptypes/duration"
import google_protobuf4 "github.com/golang/protobuf/ptypes/timestamp"
import google_rpc "google.golang.org/genproto/googleapis/rpc/status"
import duration "github.com/golang/protobuf/ptypes/duration"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import longrunning "google.golang.org/genproto/googleapis/longrunning"
import status "google.golang.org/genproto/googleapis/rpc/status"
import (
context "golang.org/x/net/context"
@ -127,7 +104,7 @@ func (x RecognitionConfig_AudioEncoding) String() string {
return proto.EnumName(RecognitionConfig_AudioEncoding_name, int32(x))
}
func (RecognitionConfig_AudioEncoding) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{4, 0}
return fileDescriptor_cloud_speech_0a49d136bdba2e2b, []int{4, 0}
}
// Indicates the type of speech event.
@ -159,22 +136,44 @@ func (x StreamingRecognizeResponse_SpeechEventType) String() string {
return proto.EnumName(StreamingRecognizeResponse_SpeechEventType_name, int32(x))
}
func (StreamingRecognizeResponse_SpeechEventType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{10, 0}
return fileDescriptor_cloud_speech_0a49d136bdba2e2b, []int{10, 0}
}
// The top-level message sent by the client for the `Recognize` method.
type RecognizeRequest struct {
// *Required* Provides information to the recognizer that specifies how to
// process the request.
Config *RecognitionConfig `protobuf:"bytes,1,opt,name=config" json:"config,omitempty"`
Config *RecognitionConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
// *Required* The audio data to be recognized.
Audio *RecognitionAudio `protobuf:"bytes,2,opt,name=audio" json:"audio,omitempty"`
Audio *RecognitionAudio `protobuf:"bytes,2,opt,name=audio,proto3" json:"audio,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RecognizeRequest) Reset() { *m = RecognizeRequest{} }
func (m *RecognizeRequest) String() string { return proto.CompactTextString(m) }
func (*RecognizeRequest) ProtoMessage() {}
func (*RecognizeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *RecognizeRequest) Reset() { *m = RecognizeRequest{} }
func (m *RecognizeRequest) String() string { return proto.CompactTextString(m) }
func (*RecognizeRequest) ProtoMessage() {}
func (*RecognizeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_speech_0a49d136bdba2e2b, []int{0}
}
func (m *RecognizeRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RecognizeRequest.Unmarshal(m, b)
}
func (m *RecognizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RecognizeRequest.Marshal(b, m, deterministic)
}
func (dst *RecognizeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RecognizeRequest.Merge(dst, src)
}
func (m *RecognizeRequest) XXX_Size() int {
return xxx_messageInfo_RecognizeRequest.Size(m)
}
func (m *RecognizeRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RecognizeRequest.DiscardUnknown(m)
}
var xxx_messageInfo_RecognizeRequest proto.InternalMessageInfo
func (m *RecognizeRequest) GetConfig() *RecognitionConfig {
if m != nil {
@ -195,15 +194,37 @@ func (m *RecognizeRequest) GetAudio() *RecognitionAudio {
type LongRunningRecognizeRequest struct {
// *Required* Provides information to the recognizer that specifies how to
// process the request.
Config *RecognitionConfig `protobuf:"bytes,1,opt,name=config" json:"config,omitempty"`
Config *RecognitionConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
// *Required* The audio data to be recognized.
Audio *RecognitionAudio `protobuf:"bytes,2,opt,name=audio" json:"audio,omitempty"`
Audio *RecognitionAudio `protobuf:"bytes,2,opt,name=audio,proto3" json:"audio,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LongRunningRecognizeRequest) Reset() { *m = LongRunningRecognizeRequest{} }
func (m *LongRunningRecognizeRequest) String() string { return proto.CompactTextString(m) }
func (*LongRunningRecognizeRequest) ProtoMessage() {}
func (*LongRunningRecognizeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *LongRunningRecognizeRequest) Reset() { *m = LongRunningRecognizeRequest{} }
func (m *LongRunningRecognizeRequest) String() string { return proto.CompactTextString(m) }
func (*LongRunningRecognizeRequest) ProtoMessage() {}
func (*LongRunningRecognizeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_speech_0a49d136bdba2e2b, []int{1}
}
func (m *LongRunningRecognizeRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LongRunningRecognizeRequest.Unmarshal(m, b)
}
func (m *LongRunningRecognizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LongRunningRecognizeRequest.Marshal(b, m, deterministic)
}
func (dst *LongRunningRecognizeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_LongRunningRecognizeRequest.Merge(dst, src)
}
func (m *LongRunningRecognizeRequest) XXX_Size() int {
return xxx_messageInfo_LongRunningRecognizeRequest.Size(m)
}
func (m *LongRunningRecognizeRequest) XXX_DiscardUnknown() {
xxx_messageInfo_LongRunningRecognizeRequest.DiscardUnknown(m)
}
var xxx_messageInfo_LongRunningRecognizeRequest proto.InternalMessageInfo
func (m *LongRunningRecognizeRequest) GetConfig() *RecognitionConfig {
if m != nil {
@ -230,27 +251,51 @@ type StreamingRecognizeRequest struct {
// Types that are valid to be assigned to StreamingRequest:
// *StreamingRecognizeRequest_StreamingConfig
// *StreamingRecognizeRequest_AudioContent
StreamingRequest isStreamingRecognizeRequest_StreamingRequest `protobuf_oneof:"streaming_request"`
StreamingRequest isStreamingRecognizeRequest_StreamingRequest `protobuf_oneof:"streaming_request"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StreamingRecognizeRequest) Reset() { *m = StreamingRecognizeRequest{} }
func (m *StreamingRecognizeRequest) String() string { return proto.CompactTextString(m) }
func (*StreamingRecognizeRequest) ProtoMessage() {}
func (*StreamingRecognizeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *StreamingRecognizeRequest) Reset() { *m = StreamingRecognizeRequest{} }
func (m *StreamingRecognizeRequest) String() string { return proto.CompactTextString(m) }
func (*StreamingRecognizeRequest) ProtoMessage() {}
func (*StreamingRecognizeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_speech_0a49d136bdba2e2b, []int{2}
}
func (m *StreamingRecognizeRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StreamingRecognizeRequest.Unmarshal(m, b)
}
func (m *StreamingRecognizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StreamingRecognizeRequest.Marshal(b, m, deterministic)
}
func (dst *StreamingRecognizeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_StreamingRecognizeRequest.Merge(dst, src)
}
func (m *StreamingRecognizeRequest) XXX_Size() int {
return xxx_messageInfo_StreamingRecognizeRequest.Size(m)
}
func (m *StreamingRecognizeRequest) XXX_DiscardUnknown() {
xxx_messageInfo_StreamingRecognizeRequest.DiscardUnknown(m)
}
var xxx_messageInfo_StreamingRecognizeRequest proto.InternalMessageInfo
type isStreamingRecognizeRequest_StreamingRequest interface {
isStreamingRecognizeRequest_StreamingRequest()
}
type StreamingRecognizeRequest_StreamingConfig struct {
StreamingConfig *StreamingRecognitionConfig `protobuf:"bytes,1,opt,name=streaming_config,json=streamingConfig,oneof"`
StreamingConfig *StreamingRecognitionConfig `protobuf:"bytes,1,opt,name=streaming_config,json=streamingConfig,proto3,oneof"`
}
type StreamingRecognizeRequest_AudioContent struct {
AudioContent []byte `protobuf:"bytes,2,opt,name=audio_content,json=audioContent,proto3,oneof"`
}
func (*StreamingRecognizeRequest_StreamingConfig) isStreamingRecognizeRequest_StreamingRequest() {}
func (*StreamingRecognizeRequest_AudioContent) isStreamingRecognizeRequest_StreamingRequest() {}
func (*StreamingRecognizeRequest_AudioContent) isStreamingRecognizeRequest_StreamingRequest() {}
func (m *StreamingRecognizeRequest) GetStreamingRequest() isStreamingRecognizeRequest_StreamingRequest {
if m != nil {
@ -329,11 +374,11 @@ func _StreamingRecognizeRequest_OneofSizer(msg proto.Message) (n int) {
switch x := m.StreamingRequest.(type) {
case *StreamingRecognizeRequest_StreamingConfig:
s := proto.Size(x.StreamingConfig)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *StreamingRecognizeRequest_AudioContent:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.AudioContent)))
n += len(x.AudioContent)
case nil:
@ -348,7 +393,7 @@ func _StreamingRecognizeRequest_OneofSizer(msg proto.Message) (n int) {
type StreamingRecognitionConfig struct {
// *Required* Provides information to the recognizer that specifies how to
// process the request.
Config *RecognitionConfig `protobuf:"bytes,1,opt,name=config" json:"config,omitempty"`
Config *RecognitionConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
// *Optional* If `false` or omitted, the recognizer will perform continuous
// recognition (continuing to wait for and process audio even if the user
// pauses speaking) until the client closes the input stream (gRPC API) or
@ -360,18 +405,40 @@ type StreamingRecognitionConfig struct {
// `END_OF_SINGLE_UTTERANCE` event and cease recognition. It will return no
// more than one `StreamingRecognitionResult` with the `is_final` flag set to
// `true`.
SingleUtterance bool `protobuf:"varint,2,opt,name=single_utterance,json=singleUtterance" json:"single_utterance,omitempty"`
SingleUtterance bool `protobuf:"varint,2,opt,name=single_utterance,json=singleUtterance,proto3" json:"single_utterance,omitempty"`
// *Optional* If `true`, interim results (tentative hypotheses) may be
// returned as they become available (these interim results are indicated with
// the `is_final=false` flag).
// If `false` or omitted, only `is_final=true` result(s) are returned.
InterimResults bool `protobuf:"varint,3,opt,name=interim_results,json=interimResults" json:"interim_results,omitempty"`
InterimResults bool `protobuf:"varint,3,opt,name=interim_results,json=interimResults,proto3" json:"interim_results,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StreamingRecognitionConfig) Reset() { *m = StreamingRecognitionConfig{} }
func (m *StreamingRecognitionConfig) String() string { return proto.CompactTextString(m) }
func (*StreamingRecognitionConfig) ProtoMessage() {}
func (*StreamingRecognitionConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *StreamingRecognitionConfig) Reset() { *m = StreamingRecognitionConfig{} }
func (m *StreamingRecognitionConfig) String() string { return proto.CompactTextString(m) }
func (*StreamingRecognitionConfig) ProtoMessage() {}
func (*StreamingRecognitionConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_speech_0a49d136bdba2e2b, []int{3}
}
func (m *StreamingRecognitionConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StreamingRecognitionConfig.Unmarshal(m, b)
}
func (m *StreamingRecognitionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StreamingRecognitionConfig.Marshal(b, m, deterministic)
}
func (dst *StreamingRecognitionConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_StreamingRecognitionConfig.Merge(dst, src)
}
func (m *StreamingRecognitionConfig) XXX_Size() int {
return xxx_messageInfo_StreamingRecognitionConfig.Size(m)
}
func (m *StreamingRecognitionConfig) XXX_DiscardUnknown() {
xxx_messageInfo_StreamingRecognitionConfig.DiscardUnknown(m)
}
var xxx_messageInfo_StreamingRecognitionConfig proto.InternalMessageInfo
func (m *StreamingRecognitionConfig) GetConfig() *RecognitionConfig {
if m != nil {
@ -398,44 +465,66 @@ func (m *StreamingRecognitionConfig) GetInterimResults() bool {
// request.
type RecognitionConfig struct {
// *Required* Encoding of audio data sent in all `RecognitionAudio` messages.
Encoding RecognitionConfig_AudioEncoding `protobuf:"varint,1,opt,name=encoding,enum=google.cloud.speech.v1.RecognitionConfig_AudioEncoding" json:"encoding,omitempty"`
Encoding RecognitionConfig_AudioEncoding `protobuf:"varint,1,opt,name=encoding,proto3,enum=google.cloud.speech.v1.RecognitionConfig_AudioEncoding" json:"encoding,omitempty"`
// *Required* Sample rate in Hertz of the audio data sent in all
// `RecognitionAudio` messages. Valid values are: 8000-48000.
// 16000 is optimal. For best results, set the sampling rate of the audio
// source to 16000 Hz. If that's not possible, use the native sample rate of
// the audio source (instead of re-sampling).
SampleRateHertz int32 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz" json:"sample_rate_hertz,omitempty"`
SampleRateHertz int32 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"`
// *Required* The language of the supplied audio as a
// [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
// Example: "en-US".
// See [Language Support](https://cloud.google.com/speech/docs/languages)
// for a list of the currently supported language codes.
LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode" json:"language_code,omitempty"`
LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// *Optional* Maximum number of recognition hypotheses to be returned.
// Specifically, the maximum number of `SpeechRecognitionAlternative` messages
// within each `SpeechRecognitionResult`.
// The server may return fewer than `max_alternatives`.
// Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of
// one. If omitted, will return a maximum of one.
MaxAlternatives int32 `protobuf:"varint,4,opt,name=max_alternatives,json=maxAlternatives" json:"max_alternatives,omitempty"`
MaxAlternatives int32 `protobuf:"varint,4,opt,name=max_alternatives,json=maxAlternatives,proto3" json:"max_alternatives,omitempty"`
// *Optional* If set to `true`, the server will attempt to filter out
// profanities, replacing all but the initial character in each filtered word
// with asterisks, e.g. "f***". If set to `false` or omitted, profanities
// won't be filtered out.
ProfanityFilter bool `protobuf:"varint,5,opt,name=profanity_filter,json=profanityFilter" json:"profanity_filter,omitempty"`
ProfanityFilter bool `protobuf:"varint,5,opt,name=profanity_filter,json=profanityFilter,proto3" json:"profanity_filter,omitempty"`
// *Optional* A means to provide context to assist the speech recognition.
SpeechContexts []*SpeechContext `protobuf:"bytes,6,rep,name=speech_contexts,json=speechContexts" json:"speech_contexts,omitempty"`
SpeechContexts []*SpeechContext `protobuf:"bytes,6,rep,name=speech_contexts,json=speechContexts,proto3" json:"speech_contexts,omitempty"`
// *Optional* If `true`, the top result includes a list of words and
// the start and end time offsets (timestamps) for those words. If
// `false`, no word-level time offset information is returned. The default is
// `false`.
EnableWordTimeOffsets bool `protobuf:"varint,8,opt,name=enable_word_time_offsets,json=enableWordTimeOffsets" json:"enable_word_time_offsets,omitempty"`
EnableWordTimeOffsets bool `protobuf:"varint,8,opt,name=enable_word_time_offsets,json=enableWordTimeOffsets,proto3" json:"enable_word_time_offsets,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RecognitionConfig) Reset() { *m = RecognitionConfig{} }
func (m *RecognitionConfig) String() string { return proto.CompactTextString(m) }
func (*RecognitionConfig) ProtoMessage() {}
func (*RecognitionConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *RecognitionConfig) Reset() { *m = RecognitionConfig{} }
func (m *RecognitionConfig) String() string { return proto.CompactTextString(m) }
func (*RecognitionConfig) ProtoMessage() {}
func (*RecognitionConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_speech_0a49d136bdba2e2b, []int{4}
}
func (m *RecognitionConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RecognitionConfig.Unmarshal(m, b)
}
func (m *RecognitionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RecognitionConfig.Marshal(b, m, deterministic)
}
func (dst *RecognitionConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_RecognitionConfig.Merge(dst, src)
}
func (m *RecognitionConfig) XXX_Size() int {
return xxx_messageInfo_RecognitionConfig.Size(m)
}
func (m *RecognitionConfig) XXX_DiscardUnknown() {
xxx_messageInfo_RecognitionConfig.DiscardUnknown(m)
}
var xxx_messageInfo_RecognitionConfig proto.InternalMessageInfo
func (m *RecognitionConfig) GetEncoding() RecognitionConfig_AudioEncoding {
if m != nil {
@ -495,13 +584,35 @@ type SpeechContext struct {
// specific commands are typically spoken by the user. This can also be used
// to add additional words to the vocabulary of the recognizer. See
// [usage limits](https://cloud.google.com/speech/limits#content).
Phrases []string `protobuf:"bytes,1,rep,name=phrases" json:"phrases,omitempty"`
Phrases []string `protobuf:"bytes,1,rep,name=phrases,proto3" json:"phrases,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SpeechContext) Reset() { *m = SpeechContext{} }
func (m *SpeechContext) String() string { return proto.CompactTextString(m) }
func (*SpeechContext) ProtoMessage() {}
func (*SpeechContext) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *SpeechContext) Reset() { *m = SpeechContext{} }
func (m *SpeechContext) String() string { return proto.CompactTextString(m) }
func (*SpeechContext) ProtoMessage() {}
func (*SpeechContext) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_speech_0a49d136bdba2e2b, []int{5}
}
func (m *SpeechContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SpeechContext.Unmarshal(m, b)
}
func (m *SpeechContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SpeechContext.Marshal(b, m, deterministic)
}
func (dst *SpeechContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_SpeechContext.Merge(dst, src)
}
func (m *SpeechContext) XXX_Size() int {
return xxx_messageInfo_SpeechContext.Size(m)
}
func (m *SpeechContext) XXX_DiscardUnknown() {
xxx_messageInfo_SpeechContext.DiscardUnknown(m)
}
var xxx_messageInfo_SpeechContext proto.InternalMessageInfo
func (m *SpeechContext) GetPhrases() []string {
if m != nil {
@ -521,13 +632,35 @@ type RecognitionAudio struct {
// Types that are valid to be assigned to AudioSource:
// *RecognitionAudio_Content
// *RecognitionAudio_Uri
AudioSource isRecognitionAudio_AudioSource `protobuf_oneof:"audio_source"`
AudioSource isRecognitionAudio_AudioSource `protobuf_oneof:"audio_source"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RecognitionAudio) Reset() { *m = RecognitionAudio{} }
func (m *RecognitionAudio) String() string { return proto.CompactTextString(m) }
func (*RecognitionAudio) ProtoMessage() {}
func (*RecognitionAudio) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *RecognitionAudio) Reset() { *m = RecognitionAudio{} }
func (m *RecognitionAudio) String() string { return proto.CompactTextString(m) }
func (*RecognitionAudio) ProtoMessage() {}
func (*RecognitionAudio) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_speech_0a49d136bdba2e2b, []int{6}
}
func (m *RecognitionAudio) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RecognitionAudio.Unmarshal(m, b)
}
func (m *RecognitionAudio) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RecognitionAudio.Marshal(b, m, deterministic)
}
func (dst *RecognitionAudio) XXX_Merge(src proto.Message) {
xxx_messageInfo_RecognitionAudio.Merge(dst, src)
}
func (m *RecognitionAudio) XXX_Size() int {
return xxx_messageInfo_RecognitionAudio.Size(m)
}
func (m *RecognitionAudio) XXX_DiscardUnknown() {
xxx_messageInfo_RecognitionAudio.DiscardUnknown(m)
}
var xxx_messageInfo_RecognitionAudio proto.InternalMessageInfo
type isRecognitionAudio_AudioSource interface {
isRecognitionAudio_AudioSource()
@ -536,12 +669,14 @@ type isRecognitionAudio_AudioSource interface {
type RecognitionAudio_Content struct {
Content []byte `protobuf:"bytes,1,opt,name=content,proto3,oneof"`
}
type RecognitionAudio_Uri struct {
Uri string `protobuf:"bytes,2,opt,name=uri,oneof"`
Uri string `protobuf:"bytes,2,opt,name=uri,proto3,oneof"`
}
func (*RecognitionAudio_Content) isRecognitionAudio_AudioSource() {}
func (*RecognitionAudio_Uri) isRecognitionAudio_AudioSource() {}
func (*RecognitionAudio_Uri) isRecognitionAudio_AudioSource() {}
func (m *RecognitionAudio) GetAudioSource() isRecognitionAudio_AudioSource {
if m != nil {
@ -616,11 +751,11 @@ func _RecognitionAudio_OneofSizer(msg proto.Message) (n int) {
// audio_source
switch x := m.AudioSource.(type) {
case *RecognitionAudio_Content:
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.Content)))
n += len(x.Content)
case *RecognitionAudio_Uri:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.Uri)))
n += len(x.Uri)
case nil:
@ -636,13 +771,35 @@ func _RecognitionAudio_OneofSizer(msg proto.Message) (n int) {
type RecognizeResponse struct {
// *Output-only* Sequential list of transcription results corresponding to
// sequential portions of audio.
Results []*SpeechRecognitionResult `protobuf:"bytes,2,rep,name=results" json:"results,omitempty"`
Results []*SpeechRecognitionResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RecognizeResponse) Reset() { *m = RecognizeResponse{} }
func (m *RecognizeResponse) String() string { return proto.CompactTextString(m) }
func (*RecognizeResponse) ProtoMessage() {}
func (*RecognizeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *RecognizeResponse) Reset() { *m = RecognizeResponse{} }
func (m *RecognizeResponse) String() string { return proto.CompactTextString(m) }
func (*RecognizeResponse) ProtoMessage() {}
func (*RecognizeResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_speech_0a49d136bdba2e2b, []int{7}
}
func (m *RecognizeResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RecognizeResponse.Unmarshal(m, b)
}
func (m *RecognizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RecognizeResponse.Marshal(b, m, deterministic)
}
func (dst *RecognizeResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_RecognizeResponse.Merge(dst, src)
}
func (m *RecognizeResponse) XXX_Size() int {
return xxx_messageInfo_RecognizeResponse.Size(m)
}
func (m *RecognizeResponse) XXX_DiscardUnknown() {
xxx_messageInfo_RecognizeResponse.DiscardUnknown(m)
}
var xxx_messageInfo_RecognizeResponse proto.InternalMessageInfo
func (m *RecognizeResponse) GetResults() []*SpeechRecognitionResult {
if m != nil {
@ -659,13 +816,35 @@ func (m *RecognizeResponse) GetResults() []*SpeechRecognitionResult {
type LongRunningRecognizeResponse struct {
// *Output-only* Sequential list of transcription results corresponding to
// sequential portions of audio.
Results []*SpeechRecognitionResult `protobuf:"bytes,2,rep,name=results" json:"results,omitempty"`
Results []*SpeechRecognitionResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LongRunningRecognizeResponse) Reset() { *m = LongRunningRecognizeResponse{} }
func (m *LongRunningRecognizeResponse) String() string { return proto.CompactTextString(m) }
func (*LongRunningRecognizeResponse) ProtoMessage() {}
func (*LongRunningRecognizeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
func (m *LongRunningRecognizeResponse) Reset() { *m = LongRunningRecognizeResponse{} }
func (m *LongRunningRecognizeResponse) String() string { return proto.CompactTextString(m) }
func (*LongRunningRecognizeResponse) ProtoMessage() {}
func (*LongRunningRecognizeResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_speech_0a49d136bdba2e2b, []int{8}
}
func (m *LongRunningRecognizeResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LongRunningRecognizeResponse.Unmarshal(m, b)
}
func (m *LongRunningRecognizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LongRunningRecognizeResponse.Marshal(b, m, deterministic)
}
func (dst *LongRunningRecognizeResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_LongRunningRecognizeResponse.Merge(dst, src)
}
func (m *LongRunningRecognizeResponse) XXX_Size() int {
return xxx_messageInfo_LongRunningRecognizeResponse.Size(m)
}
func (m *LongRunningRecognizeResponse) XXX_DiscardUnknown() {
xxx_messageInfo_LongRunningRecognizeResponse.DiscardUnknown(m)
}
var xxx_messageInfo_LongRunningRecognizeResponse proto.InternalMessageInfo
func (m *LongRunningRecognizeResponse) GetResults() []*SpeechRecognitionResult {
if m != nil {
@ -680,17 +859,39 @@ func (m *LongRunningRecognizeResponse) GetResults() []*SpeechRecognitionResult {
type LongRunningRecognizeMetadata struct {
// Approximate percentage of audio processed thus far. Guaranteed to be 100
// when the audio is fully processed and the results are available.
ProgressPercent int32 `protobuf:"varint,1,opt,name=progress_percent,json=progressPercent" json:"progress_percent,omitempty"`
ProgressPercent int32 `protobuf:"varint,1,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"`
// Time when the request was received.
StartTime *google_protobuf4.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// Time of the most recent processing update.
LastUpdateTime *google_protobuf4.Timestamp `protobuf:"bytes,3,opt,name=last_update_time,json=lastUpdateTime" json:"last_update_time,omitempty"`
LastUpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LongRunningRecognizeMetadata) Reset() { *m = LongRunningRecognizeMetadata{} }
func (m *LongRunningRecognizeMetadata) String() string { return proto.CompactTextString(m) }
func (*LongRunningRecognizeMetadata) ProtoMessage() {}
func (*LongRunningRecognizeMetadata) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
func (m *LongRunningRecognizeMetadata) Reset() { *m = LongRunningRecognizeMetadata{} }
func (m *LongRunningRecognizeMetadata) String() string { return proto.CompactTextString(m) }
func (*LongRunningRecognizeMetadata) ProtoMessage() {}
func (*LongRunningRecognizeMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_speech_0a49d136bdba2e2b, []int{9}
}
func (m *LongRunningRecognizeMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LongRunningRecognizeMetadata.Unmarshal(m, b)
}
func (m *LongRunningRecognizeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LongRunningRecognizeMetadata.Marshal(b, m, deterministic)
}
func (dst *LongRunningRecognizeMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_LongRunningRecognizeMetadata.Merge(dst, src)
}
func (m *LongRunningRecognizeMetadata) XXX_Size() int {
return xxx_messageInfo_LongRunningRecognizeMetadata.Size(m)
}
func (m *LongRunningRecognizeMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_LongRunningRecognizeMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_LongRunningRecognizeMetadata proto.InternalMessageInfo
func (m *LongRunningRecognizeMetadata) GetProgressPercent() int32 {
if m != nil {
@ -699,14 +900,14 @@ func (m *LongRunningRecognizeMetadata) GetProgressPercent() int32 {
return 0
}
func (m *LongRunningRecognizeMetadata) GetStartTime() *google_protobuf4.Timestamp {
func (m *LongRunningRecognizeMetadata) GetStartTime() *timestamp.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *LongRunningRecognizeMetadata) GetLastUpdateTime() *google_protobuf4.Timestamp {
func (m *LongRunningRecognizeMetadata) GetLastUpdateTime() *timestamp.Timestamp {
if m != nil {
return m.LastUpdateTime
}
@ -765,22 +966,44 @@ func (m *LongRunningRecognizeMetadata) GetLastUpdateTime() *google_protobuf4.Tim
type StreamingRecognizeResponse struct {
// *Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that
// specifies the error for the operation.
Error *google_rpc.Status `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
Error *status.Status `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
// *Output-only* This repeated list contains zero or more results that
// correspond to consecutive portions of the audio currently being processed.
// It contains zero or more `is_final=false` results followed by zero or one
// `is_final=true` result (the newly settled portion).
Results []*StreamingRecognitionResult `protobuf:"bytes,2,rep,name=results" json:"results,omitempty"`
Results []*StreamingRecognitionResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
// *Output-only* Indicates the type of speech event.
SpeechEventType StreamingRecognizeResponse_SpeechEventType `protobuf:"varint,4,opt,name=speech_event_type,json=speechEventType,enum=google.cloud.speech.v1.StreamingRecognizeResponse_SpeechEventType" json:"speech_event_type,omitempty"`
SpeechEventType StreamingRecognizeResponse_SpeechEventType `protobuf:"varint,4,opt,name=speech_event_type,json=speechEventType,proto3,enum=google.cloud.speech.v1.StreamingRecognizeResponse_SpeechEventType" json:"speech_event_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StreamingRecognizeResponse) Reset() { *m = StreamingRecognizeResponse{} }
func (m *StreamingRecognizeResponse) String() string { return proto.CompactTextString(m) }
func (*StreamingRecognizeResponse) ProtoMessage() {}
func (*StreamingRecognizeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
func (m *StreamingRecognizeResponse) Reset() { *m = StreamingRecognizeResponse{} }
func (m *StreamingRecognizeResponse) String() string { return proto.CompactTextString(m) }
func (*StreamingRecognizeResponse) ProtoMessage() {}
func (*StreamingRecognizeResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_speech_0a49d136bdba2e2b, []int{10}
}
func (m *StreamingRecognizeResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StreamingRecognizeResponse.Unmarshal(m, b)
}
func (m *StreamingRecognizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StreamingRecognizeResponse.Marshal(b, m, deterministic)
}
func (dst *StreamingRecognizeResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_StreamingRecognizeResponse.Merge(dst, src)
}
func (m *StreamingRecognizeResponse) XXX_Size() int {
return xxx_messageInfo_StreamingRecognizeResponse.Size(m)
}
func (m *StreamingRecognizeResponse) XXX_DiscardUnknown() {
xxx_messageInfo_StreamingRecognizeResponse.DiscardUnknown(m)
}
func (m *StreamingRecognizeResponse) GetError() *google_rpc.Status {
var xxx_messageInfo_StreamingRecognizeResponse proto.InternalMessageInfo
func (m *StreamingRecognizeResponse) GetError() *status.Status {
if m != nil {
return m.Error
}
@ -806,25 +1029,47 @@ func (m *StreamingRecognizeResponse) GetSpeechEventType() StreamingRecognizeResp
type StreamingRecognitionResult struct {
// *Output-only* May contain one or more recognition hypotheses (up to the
// maximum specified in `max_alternatives`).
Alternatives []*SpeechRecognitionAlternative `protobuf:"bytes,1,rep,name=alternatives" json:"alternatives,omitempty"`
Alternatives []*SpeechRecognitionAlternative `protobuf:"bytes,1,rep,name=alternatives,proto3" json:"alternatives,omitempty"`
// *Output-only* If `false`, this `StreamingRecognitionResult` represents an
// interim result that may change. If `true`, this is the final time the
// speech service will return this particular `StreamingRecognitionResult`,
// the recognizer will not return any further hypotheses for this portion of
// the transcript and corresponding audio.
IsFinal bool `protobuf:"varint,2,opt,name=is_final,json=isFinal" json:"is_final,omitempty"`
IsFinal bool `protobuf:"varint,2,opt,name=is_final,json=isFinal,proto3" json:"is_final,omitempty"`
// *Output-only* An estimate of the likelihood that the recognizer will not
// change its guess about this interim result. Values range from 0.0
// (completely unstable) to 1.0 (completely stable).
// This field is only provided for interim results (`is_final=false`).
// The default of 0.0 is a sentinel value indicating `stability` was not set.
Stability float32 `protobuf:"fixed32,3,opt,name=stability" json:"stability,omitempty"`
Stability float32 `protobuf:"fixed32,3,opt,name=stability,proto3" json:"stability,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StreamingRecognitionResult) Reset() { *m = StreamingRecognitionResult{} }
func (m *StreamingRecognitionResult) String() string { return proto.CompactTextString(m) }
func (*StreamingRecognitionResult) ProtoMessage() {}
func (*StreamingRecognitionResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
func (m *StreamingRecognitionResult) Reset() { *m = StreamingRecognitionResult{} }
func (m *StreamingRecognitionResult) String() string { return proto.CompactTextString(m) }
func (*StreamingRecognitionResult) ProtoMessage() {}
func (*StreamingRecognitionResult) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_speech_0a49d136bdba2e2b, []int{11}
}
func (m *StreamingRecognitionResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StreamingRecognitionResult.Unmarshal(m, b)
}
func (m *StreamingRecognitionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StreamingRecognitionResult.Marshal(b, m, deterministic)
}
func (dst *StreamingRecognitionResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_StreamingRecognitionResult.Merge(dst, src)
}
func (m *StreamingRecognitionResult) XXX_Size() int {
return xxx_messageInfo_StreamingRecognitionResult.Size(m)
}
func (m *StreamingRecognitionResult) XXX_DiscardUnknown() {
xxx_messageInfo_StreamingRecognitionResult.DiscardUnknown(m)
}
var xxx_messageInfo_StreamingRecognitionResult proto.InternalMessageInfo
func (m *StreamingRecognitionResult) GetAlternatives() []*SpeechRecognitionAlternative {
if m != nil {
@ -853,13 +1098,35 @@ type SpeechRecognitionResult struct {
// maximum specified in `max_alternatives`).
// These alternatives are ordered in terms of accuracy, with the top (first)
// alternative being the most probable, as ranked by the recognizer.
Alternatives []*SpeechRecognitionAlternative `protobuf:"bytes,1,rep,name=alternatives" json:"alternatives,omitempty"`
Alternatives []*SpeechRecognitionAlternative `protobuf:"bytes,1,rep,name=alternatives,proto3" json:"alternatives,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SpeechRecognitionResult) Reset() { *m = SpeechRecognitionResult{} }
func (m *SpeechRecognitionResult) String() string { return proto.CompactTextString(m) }
func (*SpeechRecognitionResult) ProtoMessage() {}
func (*SpeechRecognitionResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
func (m *SpeechRecognitionResult) Reset() { *m = SpeechRecognitionResult{} }
func (m *SpeechRecognitionResult) String() string { return proto.CompactTextString(m) }
func (*SpeechRecognitionResult) ProtoMessage() {}
func (*SpeechRecognitionResult) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_speech_0a49d136bdba2e2b, []int{12}
}
func (m *SpeechRecognitionResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SpeechRecognitionResult.Unmarshal(m, b)
}
func (m *SpeechRecognitionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SpeechRecognitionResult.Marshal(b, m, deterministic)
}
func (dst *SpeechRecognitionResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_SpeechRecognitionResult.Merge(dst, src)
}
func (m *SpeechRecognitionResult) XXX_Size() int {
return xxx_messageInfo_SpeechRecognitionResult.Size(m)
}
func (m *SpeechRecognitionResult) XXX_DiscardUnknown() {
xxx_messageInfo_SpeechRecognitionResult.DiscardUnknown(m)
}
var xxx_messageInfo_SpeechRecognitionResult proto.InternalMessageInfo
func (m *SpeechRecognitionResult) GetAlternatives() []*SpeechRecognitionAlternative {
if m != nil {
@ -871,22 +1138,44 @@ func (m *SpeechRecognitionResult) GetAlternatives() []*SpeechRecognitionAlternat
// Alternative hypotheses (a.k.a. n-best list).
type SpeechRecognitionAlternative struct {
// *Output-only* Transcript text representing the words that the user spoke.
Transcript string `protobuf:"bytes,1,opt,name=transcript" json:"transcript,omitempty"`
Transcript string `protobuf:"bytes,1,opt,name=transcript,proto3" json:"transcript,omitempty"`
// *Output-only* The confidence estimate between 0.0 and 1.0. A higher number
// indicates an estimated greater likelihood that the recognized words are
// correct. This field is typically provided only for the top hypothesis, and
// only for `is_final=true` results. Clients should not rely on the
// `confidence` field as it is not guaranteed to be accurate or consistent.
// The default of 0.0 is a sentinel value indicating `confidence` was not set.
Confidence float32 `protobuf:"fixed32,2,opt,name=confidence" json:"confidence,omitempty"`
Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"`
// *Output-only* A list of word-specific information for each recognized word.
Words []*WordInfo `protobuf:"bytes,3,rep,name=words" json:"words,omitempty"`
Words []*WordInfo `protobuf:"bytes,3,rep,name=words,proto3" json:"words,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SpeechRecognitionAlternative) Reset() { *m = SpeechRecognitionAlternative{} }
func (m *SpeechRecognitionAlternative) String() string { return proto.CompactTextString(m) }
func (*SpeechRecognitionAlternative) ProtoMessage() {}
func (*SpeechRecognitionAlternative) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
func (m *SpeechRecognitionAlternative) Reset() { *m = SpeechRecognitionAlternative{} }
func (m *SpeechRecognitionAlternative) String() string { return proto.CompactTextString(m) }
func (*SpeechRecognitionAlternative) ProtoMessage() {}
func (*SpeechRecognitionAlternative) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_speech_0a49d136bdba2e2b, []int{13}
}
func (m *SpeechRecognitionAlternative) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SpeechRecognitionAlternative.Unmarshal(m, b)
}
func (m *SpeechRecognitionAlternative) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SpeechRecognitionAlternative.Marshal(b, m, deterministic)
}
func (dst *SpeechRecognitionAlternative) XXX_Merge(src proto.Message) {
xxx_messageInfo_SpeechRecognitionAlternative.Merge(dst, src)
}
func (m *SpeechRecognitionAlternative) XXX_Size() int {
return xxx_messageInfo_SpeechRecognitionAlternative.Size(m)
}
func (m *SpeechRecognitionAlternative) XXX_DiscardUnknown() {
xxx_messageInfo_SpeechRecognitionAlternative.DiscardUnknown(m)
}
var xxx_messageInfo_SpeechRecognitionAlternative proto.InternalMessageInfo
func (m *SpeechRecognitionAlternative) GetTranscript() string {
if m != nil {
@ -919,31 +1208,53 @@ type WordInfo struct {
// in the top hypothesis.
// This is an experimental feature and the accuracy of the time offset can
// vary.
StartTime *google_protobuf3.Duration `protobuf:"bytes,1,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
StartTime *duration.Duration `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// *Output-only* Time offset relative to the beginning of the audio,
// and corresponding to the end of the spoken word.
// This field is only set if `enable_word_time_offsets=true` and only
// in the top hypothesis.
// This is an experimental feature and the accuracy of the time offset can
// vary.
EndTime *google_protobuf3.Duration `protobuf:"bytes,2,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
EndTime *duration.Duration `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// *Output-only* The word corresponding to this set of information.
Word string `protobuf:"bytes,3,opt,name=word" json:"word,omitempty"`
Word string `protobuf:"bytes,3,opt,name=word,proto3" json:"word,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WordInfo) Reset() { *m = WordInfo{} }
func (m *WordInfo) String() string { return proto.CompactTextString(m) }
func (*WordInfo) ProtoMessage() {}
func (*WordInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
func (m *WordInfo) Reset() { *m = WordInfo{} }
func (m *WordInfo) String() string { return proto.CompactTextString(m) }
func (*WordInfo) ProtoMessage() {}
func (*WordInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_speech_0a49d136bdba2e2b, []int{14}
}
func (m *WordInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WordInfo.Unmarshal(m, b)
}
func (m *WordInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WordInfo.Marshal(b, m, deterministic)
}
func (dst *WordInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_WordInfo.Merge(dst, src)
}
func (m *WordInfo) XXX_Size() int {
return xxx_messageInfo_WordInfo.Size(m)
}
func (m *WordInfo) XXX_DiscardUnknown() {
xxx_messageInfo_WordInfo.DiscardUnknown(m)
}
func (m *WordInfo) GetStartTime() *google_protobuf3.Duration {
var xxx_messageInfo_WordInfo proto.InternalMessageInfo
func (m *WordInfo) GetStartTime() *duration.Duration {
if m != nil {
return m.StartTime
}
return nil
}
func (m *WordInfo) GetEndTime() *google_protobuf3.Duration {
func (m *WordInfo) GetEndTime() *duration.Duration {
if m != nil {
return m.EndTime
}
@ -985,8 +1296,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for Speech service
// SpeechClient is the client API for Speech service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type SpeechClient interface {
// Performs synchronous speech recognition: receive results after all audio
// has been sent and processed.
@ -995,7 +1307,7 @@ type SpeechClient interface {
// google.longrunning.Operations interface. Returns either an
// `Operation.error` or an `Operation.response` which contains
// a `LongRunningRecognizeResponse` message.
LongRunningRecognize(ctx context.Context, in *LongRunningRecognizeRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
LongRunningRecognize(ctx context.Context, in *LongRunningRecognizeRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// Performs bidirectional streaming speech recognition: receive results while
// sending audio. This method is only available via the gRPC API (not REST).
StreamingRecognize(ctx context.Context, opts ...grpc.CallOption) (Speech_StreamingRecognizeClient, error)
@ -1011,16 +1323,16 @@ func NewSpeechClient(cc *grpc.ClientConn) SpeechClient {
func (c *speechClient) Recognize(ctx context.Context, in *RecognizeRequest, opts ...grpc.CallOption) (*RecognizeResponse, error) {
out := new(RecognizeResponse)
err := grpc.Invoke(ctx, "/google.cloud.speech.v1.Speech/Recognize", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.speech.v1.Speech/Recognize", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *speechClient) LongRunningRecognize(ctx context.Context, in *LongRunningRecognizeRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.cloud.speech.v1.Speech/LongRunningRecognize", in, out, c.cc, opts...)
func (c *speechClient) LongRunningRecognize(ctx context.Context, in *LongRunningRecognizeRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
out := new(longrunning.Operation)
err := c.cc.Invoke(ctx, "/google.cloud.speech.v1.Speech/LongRunningRecognize", in, out, opts...)
if err != nil {
return nil, err
}
@ -1028,7 +1340,7 @@ func (c *speechClient) LongRunningRecognize(ctx context.Context, in *LongRunning
}
func (c *speechClient) StreamingRecognize(ctx context.Context, opts ...grpc.CallOption) (Speech_StreamingRecognizeClient, error) {
stream, err := grpc.NewClientStream(ctx, &_Speech_serviceDesc.Streams[0], c.cc, "/google.cloud.speech.v1.Speech/StreamingRecognize", opts...)
stream, err := c.cc.NewStream(ctx, &_Speech_serviceDesc.Streams[0], "/google.cloud.speech.v1.Speech/StreamingRecognize", opts...)
if err != nil {
return nil, err
}
@ -1058,8 +1370,7 @@ func (x *speechStreamingRecognizeClient) Recv() (*StreamingRecognizeResponse, er
return m, nil
}
// Server API for Speech service
// SpeechServer is the server API for Speech service.
type SpeechServer interface {
// Performs synchronous speech recognition: receive results after all audio
// has been sent and processed.
@ -1068,7 +1379,7 @@ type SpeechServer interface {
// google.longrunning.Operations interface. Returns either an
// `Operation.error` or an `Operation.response` which contains
// a `LongRunningRecognizeResponse` message.
LongRunningRecognize(context.Context, *LongRunningRecognizeRequest) (*google_longrunning.Operation, error)
LongRunningRecognize(context.Context, *LongRunningRecognizeRequest) (*longrunning.Operation, error)
// Performs bidirectional streaming speech recognition: receive results while
// sending audio. This method is only available via the gRPC API (not REST).
StreamingRecognize(Speech_StreamingRecognizeServer) error
@ -1164,9 +1475,11 @@ var _Speech_serviceDesc = grpc.ServiceDesc{
Metadata: "google/cloud/speech/v1/cloud_speech.proto",
}
func init() { proto.RegisterFile("google/cloud/speech/v1/cloud_speech.proto", fileDescriptor0) }
func init() {
proto.RegisterFile("google/cloud/speech/v1/cloud_speech.proto", fileDescriptor_cloud_speech_0a49d136bdba2e2b)
}
var fileDescriptor0 = []byte{
var fileDescriptor_cloud_speech_0a49d136bdba2e2b = []byte{
// 1318 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0x4d, 0x6f, 0x1b, 0x45,
0x18, 0xce, 0xc6, 0x71, 0x3e, 0xde, 0xe6, 0xc3, 0x19, 0x4a, 0xeb, 0xb8, 0xa1, 0x8d, 0xb6, 0x54,

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,27 +1,13 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/support/common.proto
/*
Package common is a generated protocol buffer package.
It is generated from these files:
google/cloud/support/common.proto
It has these top-level messages:
SupportAccount
Case
CustomerIssue
SupportRole
Comment
IssueTaxonomy
*/
package common
package common // import "google.golang.org/genproto/googleapis/cloud/support/common"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf1 "github.com/golang/protobuf/ptypes/timestamp"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
@ -64,7 +50,9 @@ var SupportAccount_State_value = map[string]int32{
func (x SupportAccount_State) String() string {
return proto.EnumName(SupportAccount_State_name, int32(x))
}
func (SupportAccount_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
func (SupportAccount_State) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_common_f17357843abc5917, []int{0, 0}
}
// Pricing model applicable to this support account.
type SupportAccount_PricingModel int32
@ -94,7 +82,7 @@ func (x SupportAccount_PricingModel) String() string {
return proto.EnumName(SupportAccount_PricingModel_name, int32(x))
}
func (SupportAccount_PricingModel) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{0, 1}
return fileDescriptor_common_f17357843abc5917, []int{0, 1}
}
// The case priority with P0 being the most urgent and P4 the least.
@ -128,17 +116,19 @@ var Case_Priority_name = map[int32]string{
}
var Case_Priority_value = map[string]int32{
"PRIORITY_UNSPECIFIED": 0,
"P0": 1,
"P1": 2,
"P2": 3,
"P3": 4,
"P4": 5,
"P0": 1,
"P1": 2,
"P2": 3,
"P3": 4,
"P4": 5,
}
func (x Case_Priority) String() string {
return proto.EnumName(Case_Priority_name, int32(x))
}
func (Case_Priority) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }
func (Case_Priority) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_common_f17357843abc5917, []int{1, 0}
}
// The state of a case.
type Case_State int32
@ -190,7 +180,9 @@ var Case_State_value = map[string]int32{
func (x Case_State) String() string {
return proto.EnumName(Case_State_name, int32(x))
}
func (Case_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 1} }
func (Case_State) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_common_f17357843abc5917, []int{1, 1}
}
// The status of a customer issue.
type CustomerIssue_IssueState int32
@ -220,17 +212,19 @@ var CustomerIssue_IssueState_name = map[int32]string{
}
var CustomerIssue_IssueState_value = map[string]int32{
"ISSUE_STATE_UNSPECIFIED": 0,
"OPEN": 1,
"IN_PROGRESS": 2,
"FIXED": 3,
"WONT_FIX": 4,
"VERIFIED": 5,
"OPEN": 1,
"IN_PROGRESS": 2,
"FIXED": 3,
"WONT_FIX": 4,
"VERIFIED": 5,
}
func (x CustomerIssue_IssueState) String() string {
return proto.EnumName(CustomerIssue_IssueState_name, int32(x))
}
func (CustomerIssue_IssueState) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} }
func (CustomerIssue_IssueState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_common_f17357843abc5917, []int{2, 0}
}
// A role which determines the support resources and features a user might
// get access to.
@ -267,7 +261,9 @@ var SupportRole_Role_value = map[string]int32{
func (x SupportRole_Role) String() string {
return proto.EnumName(SupportRole_Role_name, int32(x))
}
func (SupportRole_Role) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{3, 0} }
func (SupportRole_Role) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_common_f17357843abc5917, []int{3, 0}
}
// A Google Cloud Platform account that identifies support eligibility for a
// Cloud resource. Currently the Cloud resource can only be an Organization
@ -276,32 +272,54 @@ type SupportAccount struct {
// The resource name for a support account in format
// `supportAccounts/{account_id}`.
// Output only.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Identifier for this entity that gets persisted in storage system. The
// resource name is populated using this field in format
// `supportAccounts/{account_id}`.
AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId" json:"account_id,omitempty"`
AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
// The Cloud resource with which this support account is associated.
CloudResource string `protobuf:"bytes,3,opt,name=cloud_resource,json=cloudResource" json:"cloud_resource,omitempty"`
CloudResource string `protobuf:"bytes,3,opt,name=cloud_resource,json=cloudResource,proto3" json:"cloud_resource,omitempty"`
// A user friendly display name assigned to this support account.
DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Indicates the current state of an account.
State SupportAccount_State `protobuf:"varint,5,opt,name=state,enum=google.cloud.support.common.SupportAccount_State" json:"state,omitempty"`
State SupportAccount_State `protobuf:"varint,5,opt,name=state,proto3,enum=google.cloud.support.common.SupportAccount_State" json:"state,omitempty"`
// Time when this account was created.
// Output only.
CreateTime *google_protobuf1.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// The resource name of a billing account associated with this support
// account. For example, `billingAccounts/ABCDEF-012345-567890`.
BillingAccountName string `protobuf:"bytes,7,opt,name=billing_account_name,json=billingAccountName" json:"billing_account_name,omitempty"`
UnifyAccountId string `protobuf:"bytes,8,opt,name=unify_account_id,json=unifyAccountId" json:"unify_account_id,omitempty"`
BillingAccountName string `protobuf:"bytes,7,opt,name=billing_account_name,json=billingAccountName,proto3" json:"billing_account_name,omitempty"`
UnifyAccountId string `protobuf:"bytes,8,opt,name=unify_account_id,json=unifyAccountId,proto3" json:"unify_account_id,omitempty"`
// The PricingModel applicable to this support account.
PricingModel SupportAccount_PricingModel `protobuf:"varint,9,opt,name=pricing_model,json=pricingModel,enum=google.cloud.support.common.SupportAccount_PricingModel" json:"pricing_model,omitempty"`
PricingModel SupportAccount_PricingModel `protobuf:"varint,9,opt,name=pricing_model,json=pricingModel,proto3,enum=google.cloud.support.common.SupportAccount_PricingModel" json:"pricing_model,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SupportAccount) Reset() { *m = SupportAccount{} }
func (m *SupportAccount) String() string { return proto.CompactTextString(m) }
func (*SupportAccount) ProtoMessage() {}
func (*SupportAccount) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *SupportAccount) Reset() { *m = SupportAccount{} }
func (m *SupportAccount) String() string { return proto.CompactTextString(m) }
func (*SupportAccount) ProtoMessage() {}
func (*SupportAccount) Descriptor() ([]byte, []int) {
return fileDescriptor_common_f17357843abc5917, []int{0}
}
func (m *SupportAccount) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SupportAccount.Unmarshal(m, b)
}
func (m *SupportAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SupportAccount.Marshal(b, m, deterministic)
}
func (dst *SupportAccount) XXX_Merge(src proto.Message) {
xxx_messageInfo_SupportAccount.Merge(dst, src)
}
func (m *SupportAccount) XXX_Size() int {
return xxx_messageInfo_SupportAccount.Size(m)
}
func (m *SupportAccount) XXX_DiscardUnknown() {
xxx_messageInfo_SupportAccount.DiscardUnknown(m)
}
var xxx_messageInfo_SupportAccount proto.InternalMessageInfo
func (m *SupportAccount) GetName() string {
if m != nil {
@ -338,7 +356,7 @@ func (m *SupportAccount) GetState() SupportAccount_State {
return SupportAccount_STATE_UNSPECIFIED
}
func (m *SupportAccount) GetCreateTime() *google_protobuf1.Timestamp {
func (m *SupportAccount) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
@ -370,47 +388,69 @@ func (m *SupportAccount) GetPricingModel() SupportAccount_PricingModel {
type Case struct {
// The resource name for the Case in format
// `supportAccounts/{account_id}/cases/{case_id}`
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The short summary of the issue reported in this case.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// The board description of issue provided with initial summary.
Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// The product component for which this Case is reported.
Component string `protobuf:"bytes,4,opt,name=component" json:"component,omitempty"`
Component string `protobuf:"bytes,4,opt,name=component,proto3" json:"component,omitempty"`
// The product subcomponent for which this Case is reported.
Subcomponent string `protobuf:"bytes,5,opt,name=subcomponent" json:"subcomponent,omitempty"`
Subcomponent string `protobuf:"bytes,5,opt,name=subcomponent,proto3" json:"subcomponent,omitempty"`
// Timezone the client sending this request is in.
// It should be in a format IANA recognizes: https://www.iana.org/time-zone
// There is no additional validation done by the API.
ClientTimezone string `protobuf:"bytes,6,opt,name=client_timezone,json=clientTimezone" json:"client_timezone,omitempty"`
ClientTimezone string `protobuf:"bytes,6,opt,name=client_timezone,json=clientTimezone,proto3" json:"client_timezone,omitempty"`
// The email addresses that can be copied to receive updates on this case.
// Users can specify a maximum of 10 email addresses.
CcAddresses []string `protobuf:"bytes,7,rep,name=cc_addresses,json=ccAddresses" json:"cc_addresses,omitempty"`
CcAddresses []string `protobuf:"bytes,7,rep,name=cc_addresses,json=ccAddresses,proto3" json:"cc_addresses,omitempty"`
// The Google Cloud Platform project ID for which this case is created.
ProjectId string `protobuf:"bytes,8,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
ProjectId string `protobuf:"bytes,8,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// List of customer issues associated with this case.
Issues []*CustomerIssue `protobuf:"bytes,10,rep,name=issues" json:"issues,omitempty"`
Issues []*CustomerIssue `protobuf:"bytes,10,rep,name=issues,proto3" json:"issues,omitempty"`
// The current priority of this case.
Priority Case_Priority `protobuf:"varint,11,opt,name=priority,enum=google.cloud.support.common.Case_Priority" json:"priority,omitempty"`
Priority Case_Priority `protobuf:"varint,11,opt,name=priority,proto3,enum=google.cloud.support.common.Case_Priority" json:"priority,omitempty"`
// The current state of this case.
State Case_State `protobuf:"varint,12,opt,name=state,enum=google.cloud.support.common.Case_State" json:"state,omitempty"`
State Case_State `protobuf:"varint,12,opt,name=state,proto3,enum=google.cloud.support.common.Case_State" json:"state,omitempty"`
// Time when this case was created.
// Output only.
CreateTime *google_protobuf1.Timestamp `protobuf:"bytes,13,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
CreateTime *timestamp.Timestamp `protobuf:"bytes,13,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Time when this case was last updated.
// Output only.
UpdateTime *google_protobuf1.Timestamp `protobuf:"bytes,14,opt,name=update_time,json=updateTime" json:"update_time,omitempty"`
UpdateTime *timestamp.Timestamp `protobuf:"bytes,14,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Email address of user who created this case.
// Output only. It is inferred from credentials supplied during case creation.
CreatorEmail string `protobuf:"bytes,15,opt,name=creator_email,json=creatorEmail" json:"creator_email,omitempty"`
CreatorEmail string `protobuf:"bytes,15,opt,name=creator_email,json=creatorEmail,proto3" json:"creator_email,omitempty"`
// The issue category applicable to this case.
Category string `protobuf:"bytes,16,opt,name=category" json:"category,omitempty"`
Category string `protobuf:"bytes,16,opt,name=category,proto3" json:"category,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Case) Reset() { *m = Case{} }
func (m *Case) String() string { return proto.CompactTextString(m) }
func (*Case) ProtoMessage() {}
func (*Case) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *Case) Reset() { *m = Case{} }
func (m *Case) String() string { return proto.CompactTextString(m) }
func (*Case) ProtoMessage() {}
func (*Case) Descriptor() ([]byte, []int) {
return fileDescriptor_common_f17357843abc5917, []int{1}
}
func (m *Case) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Case.Unmarshal(m, b)
}
func (m *Case) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Case.Marshal(b, m, deterministic)
}
func (dst *Case) XXX_Merge(src proto.Message) {
xxx_messageInfo_Case.Merge(dst, src)
}
func (m *Case) XXX_Size() int {
return xxx_messageInfo_Case.Size(m)
}
func (m *Case) XXX_DiscardUnknown() {
xxx_messageInfo_Case.DiscardUnknown(m)
}
var xxx_messageInfo_Case proto.InternalMessageInfo
func (m *Case) GetName() string {
if m != nil {
@ -489,14 +529,14 @@ func (m *Case) GetState() Case_State {
return Case_STATE_UNSPECIFIED
}
func (m *Case) GetCreateTime() *google_protobuf1.Timestamp {
func (m *Case) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *Case) GetUpdateTime() *google_protobuf1.Timestamp {
func (m *Case) GetUpdateTime() *timestamp.Timestamp {
if m != nil {
return m.UpdateTime
}
@ -523,25 +563,47 @@ func (m *Case) GetCategory() string {
type CustomerIssue struct {
// Unique identifier for the internal issue.
// Output only.
IssueId string `protobuf:"bytes,1,opt,name=issue_id,json=issueId" json:"issue_id,omitempty"`
IssueId string `protobuf:"bytes,1,opt,name=issue_id,json=issueId,proto3" json:"issue_id,omitempty"`
// Represents current status of the internal ticket.
// Output only.
State CustomerIssue_IssueState `protobuf:"varint,2,opt,name=state,enum=google.cloud.support.common.CustomerIssue_IssueState" json:"state,omitempty"`
State CustomerIssue_IssueState `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.support.common.CustomerIssue_IssueState" json:"state,omitempty"`
// Time when the internal issue was created.
// Output only.
CreateTime *google_protobuf1.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Time when the internal issue was marked as resolved.
// Output only.
ResolveTime *google_protobuf1.Timestamp `protobuf:"bytes,4,opt,name=resolve_time,json=resolveTime" json:"resolve_time,omitempty"`
ResolveTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=resolve_time,json=resolveTime,proto3" json:"resolve_time,omitempty"`
// Time when the internal issue was last updated.
// Output only.
UpdateTime *google_protobuf1.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime" json:"update_time,omitempty"`
UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CustomerIssue) Reset() { *m = CustomerIssue{} }
func (m *CustomerIssue) String() string { return proto.CompactTextString(m) }
func (*CustomerIssue) ProtoMessage() {}
func (*CustomerIssue) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *CustomerIssue) Reset() { *m = CustomerIssue{} }
func (m *CustomerIssue) String() string { return proto.CompactTextString(m) }
func (*CustomerIssue) ProtoMessage() {}
func (*CustomerIssue) Descriptor() ([]byte, []int) {
return fileDescriptor_common_f17357843abc5917, []int{2}
}
func (m *CustomerIssue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CustomerIssue.Unmarshal(m, b)
}
func (m *CustomerIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CustomerIssue.Marshal(b, m, deterministic)
}
func (dst *CustomerIssue) XXX_Merge(src proto.Message) {
xxx_messageInfo_CustomerIssue.Merge(dst, src)
}
func (m *CustomerIssue) XXX_Size() int {
return xxx_messageInfo_CustomerIssue.Size(m)
}
func (m *CustomerIssue) XXX_DiscardUnknown() {
xxx_messageInfo_CustomerIssue.DiscardUnknown(m)
}
var xxx_messageInfo_CustomerIssue proto.InternalMessageInfo
func (m *CustomerIssue) GetIssueId() string {
if m != nil {
@ -557,21 +619,21 @@ func (m *CustomerIssue) GetState() CustomerIssue_IssueState {
return CustomerIssue_ISSUE_STATE_UNSPECIFIED
}
func (m *CustomerIssue) GetCreateTime() *google_protobuf1.Timestamp {
func (m *CustomerIssue) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *CustomerIssue) GetResolveTime() *google_protobuf1.Timestamp {
func (m *CustomerIssue) GetResolveTime() *timestamp.Timestamp {
if m != nil {
return m.ResolveTime
}
return nil
}
func (m *CustomerIssue) GetUpdateTime() *google_protobuf1.Timestamp {
func (m *CustomerIssue) GetUpdateTime() *timestamp.Timestamp {
if m != nil {
return m.UpdateTime
}
@ -582,15 +644,37 @@ func (m *CustomerIssue) GetUpdateTime() *google_protobuf1.Timestamp {
// account.
type SupportRole struct {
// Email address of user being added through this Role.
Email string `protobuf:"bytes,1,opt,name=email" json:"email,omitempty"`
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
// The type of role assigned to user.
Role SupportRole_Role `protobuf:"varint,2,opt,name=role,enum=google.cloud.support.common.SupportRole_Role" json:"role,omitempty"`
Role SupportRole_Role `protobuf:"varint,2,opt,name=role,proto3,enum=google.cloud.support.common.SupportRole_Role" json:"role,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SupportRole) Reset() { *m = SupportRole{} }
func (m *SupportRole) String() string { return proto.CompactTextString(m) }
func (*SupportRole) ProtoMessage() {}
func (*SupportRole) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *SupportRole) Reset() { *m = SupportRole{} }
func (m *SupportRole) String() string { return proto.CompactTextString(m) }
func (*SupportRole) ProtoMessage() {}
func (*SupportRole) Descriptor() ([]byte, []int) {
return fileDescriptor_common_f17357843abc5917, []int{3}
}
func (m *SupportRole) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SupportRole.Unmarshal(m, b)
}
func (m *SupportRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SupportRole.Marshal(b, m, deterministic)
}
func (dst *SupportRole) XXX_Merge(src proto.Message) {
xxx_messageInfo_SupportRole.Merge(dst, src)
}
func (m *SupportRole) XXX_Size() int {
return xxx_messageInfo_SupportRole.Size(m)
}
func (m *SupportRole) XXX_DiscardUnknown() {
xxx_messageInfo_SupportRole.DiscardUnknown(m)
}
var xxx_messageInfo_SupportRole proto.InternalMessageInfo
func (m *SupportRole) GetEmail() string {
if m != nil {
@ -609,23 +693,45 @@ func (m *SupportRole) GetRole() SupportRole_Role {
// The comment text associated with a `Case`.
type Comment struct {
// Text containing a maximum of 3000 characters.
Text string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"`
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
// Time when this update was created.
// Output only.
CreateTime *google_protobuf1.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// The email address/name of user who created this comment.
// Output only.
Author string `protobuf:"bytes,3,opt,name=author" json:"author,omitempty"`
Author string `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
// The resource name for this comment in format
// `supportAccounts/{account_id}/cases/{case_id}/{comment_id}`.
// Output only.
Name string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Comment) Reset() { *m = Comment{} }
func (m *Comment) String() string { return proto.CompactTextString(m) }
func (*Comment) ProtoMessage() {}
func (*Comment) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *Comment) Reset() { *m = Comment{} }
func (m *Comment) String() string { return proto.CompactTextString(m) }
func (*Comment) ProtoMessage() {}
func (*Comment) Descriptor() ([]byte, []int) {
return fileDescriptor_common_f17357843abc5917, []int{4}
}
func (m *Comment) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Comment.Unmarshal(m, b)
}
func (m *Comment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Comment.Marshal(b, m, deterministic)
}
func (dst *Comment) XXX_Merge(src proto.Message) {
xxx_messageInfo_Comment.Merge(dst, src)
}
func (m *Comment) XXX_Size() int {
return xxx_messageInfo_Comment.Size(m)
}
func (m *Comment) XXX_DiscardUnknown() {
xxx_messageInfo_Comment.DiscardUnknown(m)
}
var xxx_messageInfo_Comment proto.InternalMessageInfo
func (m *Comment) GetText() string {
if m != nil {
@ -634,7 +740,7 @@ func (m *Comment) GetText() string {
return ""
}
func (m *Comment) GetCreateTime() *google_protobuf1.Timestamp {
func (m *Comment) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
@ -661,13 +767,35 @@ func (m *Comment) GetName() string {
// `Case.component` and `Case.subcomponent` fields respectively.
type IssueTaxonomy struct {
// Map of available categories.
Categories map[string]*IssueTaxonomy_Category `protobuf:"bytes,1,rep,name=categories" json:"categories,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
Categories map[string]*IssueTaxonomy_Category `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *IssueTaxonomy) Reset() { *m = IssueTaxonomy{} }
func (m *IssueTaxonomy) String() string { return proto.CompactTextString(m) }
func (*IssueTaxonomy) ProtoMessage() {}
func (*IssueTaxonomy) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *IssueTaxonomy) Reset() { *m = IssueTaxonomy{} }
func (m *IssueTaxonomy) String() string { return proto.CompactTextString(m) }
func (*IssueTaxonomy) ProtoMessage() {}
func (*IssueTaxonomy) Descriptor() ([]byte, []int) {
return fileDescriptor_common_f17357843abc5917, []int{5}
}
func (m *IssueTaxonomy) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssueTaxonomy.Unmarshal(m, b)
}
func (m *IssueTaxonomy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssueTaxonomy.Marshal(b, m, deterministic)
}
func (dst *IssueTaxonomy) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssueTaxonomy.Merge(dst, src)
}
func (m *IssueTaxonomy) XXX_Size() int {
return xxx_messageInfo_IssueTaxonomy.Size(m)
}
func (m *IssueTaxonomy) XXX_DiscardUnknown() {
xxx_messageInfo_IssueTaxonomy.DiscardUnknown(m)
}
var xxx_messageInfo_IssueTaxonomy proto.InternalMessageInfo
func (m *IssueTaxonomy) GetCategories() map[string]*IssueTaxonomy_Category {
if m != nil {
@ -685,20 +813,42 @@ func (m *IssueTaxonomy) GetCategories() map[string]*IssueTaxonomy_Category {
// (e.g., Google App Engine > Memcache).
type IssueTaxonomy_Component struct {
// User friendly name of this component.
DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// List of languages in which a support case can be created under this
// component. Represented by language codes in ISO_639-1 standard.
Languages []string `protobuf:"bytes,2,rep,name=languages" json:"languages,omitempty"`
Languages []string `protobuf:"bytes,2,rep,name=languages,proto3" json:"languages,omitempty"`
// Template to be used while filling the description of a support case.
Template string `protobuf:"bytes,3,opt,name=template" json:"template,omitempty"`
Template string `protobuf:"bytes,3,opt,name=template,proto3" json:"template,omitempty"`
// List of subcomponents under this component.
Subcomponents []*IssueTaxonomy_Component `protobuf:"bytes,4,rep,name=subcomponents" json:"subcomponents,omitempty"`
Subcomponents []*IssueTaxonomy_Component `protobuf:"bytes,4,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *IssueTaxonomy_Component) Reset() { *m = IssueTaxonomy_Component{} }
func (m *IssueTaxonomy_Component) String() string { return proto.CompactTextString(m) }
func (*IssueTaxonomy_Component) ProtoMessage() {}
func (*IssueTaxonomy_Component) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5, 0} }
func (m *IssueTaxonomy_Component) Reset() { *m = IssueTaxonomy_Component{} }
func (m *IssueTaxonomy_Component) String() string { return proto.CompactTextString(m) }
func (*IssueTaxonomy_Component) ProtoMessage() {}
func (*IssueTaxonomy_Component) Descriptor() ([]byte, []int) {
return fileDescriptor_common_f17357843abc5917, []int{5, 0}
}
func (m *IssueTaxonomy_Component) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssueTaxonomy_Component.Unmarshal(m, b)
}
func (m *IssueTaxonomy_Component) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssueTaxonomy_Component.Marshal(b, m, deterministic)
}
func (dst *IssueTaxonomy_Component) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssueTaxonomy_Component.Merge(dst, src)
}
func (m *IssueTaxonomy_Component) XXX_Size() int {
return xxx_messageInfo_IssueTaxonomy_Component.Size(m)
}
func (m *IssueTaxonomy_Component) XXX_DiscardUnknown() {
xxx_messageInfo_IssueTaxonomy_Component.DiscardUnknown(m)
}
var xxx_messageInfo_IssueTaxonomy_Component proto.InternalMessageInfo
func (m *IssueTaxonomy_Component) GetDisplayName() string {
if m != nil {
@ -732,15 +882,37 @@ func (m *IssueTaxonomy_Component) GetSubcomponents() []*IssueTaxonomy_Component
// reported through a support case.
type IssueTaxonomy_Category struct {
// User friendly name of this category.
DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Map of product components under this category.
Components map[string]*IssueTaxonomy_Component `protobuf:"bytes,2,rep,name=components" json:"components,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
Components map[string]*IssueTaxonomy_Component `protobuf:"bytes,2,rep,name=components,proto3" json:"components,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *IssueTaxonomy_Category) Reset() { *m = IssueTaxonomy_Category{} }
func (m *IssueTaxonomy_Category) String() string { return proto.CompactTextString(m) }
func (*IssueTaxonomy_Category) ProtoMessage() {}
func (*IssueTaxonomy_Category) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5, 1} }
func (m *IssueTaxonomy_Category) Reset() { *m = IssueTaxonomy_Category{} }
func (m *IssueTaxonomy_Category) String() string { return proto.CompactTextString(m) }
func (*IssueTaxonomy_Category) ProtoMessage() {}
func (*IssueTaxonomy_Category) Descriptor() ([]byte, []int) {
return fileDescriptor_common_f17357843abc5917, []int{5, 1}
}
func (m *IssueTaxonomy_Category) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssueTaxonomy_Category.Unmarshal(m, b)
}
func (m *IssueTaxonomy_Category) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssueTaxonomy_Category.Marshal(b, m, deterministic)
}
func (dst *IssueTaxonomy_Category) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssueTaxonomy_Category.Merge(dst, src)
}
func (m *IssueTaxonomy_Category) XXX_Size() int {
return xxx_messageInfo_IssueTaxonomy_Category.Size(m)
}
func (m *IssueTaxonomy_Category) XXX_DiscardUnknown() {
xxx_messageInfo_IssueTaxonomy_Category.DiscardUnknown(m)
}
var xxx_messageInfo_IssueTaxonomy_Category proto.InternalMessageInfo
func (m *IssueTaxonomy_Category) GetDisplayName() string {
if m != nil {
@ -763,8 +935,10 @@ func init() {
proto.RegisterType((*SupportRole)(nil), "google.cloud.support.common.SupportRole")
proto.RegisterType((*Comment)(nil), "google.cloud.support.common.Comment")
proto.RegisterType((*IssueTaxonomy)(nil), "google.cloud.support.common.IssueTaxonomy")
proto.RegisterMapType((map[string]*IssueTaxonomy_Category)(nil), "google.cloud.support.common.IssueTaxonomy.CategoriesEntry")
proto.RegisterType((*IssueTaxonomy_Component)(nil), "google.cloud.support.common.IssueTaxonomy.Component")
proto.RegisterType((*IssueTaxonomy_Category)(nil), "google.cloud.support.common.IssueTaxonomy.Category")
proto.RegisterMapType((map[string]*IssueTaxonomy_Component)(nil), "google.cloud.support.common.IssueTaxonomy.Category.ComponentsEntry")
proto.RegisterEnum("google.cloud.support.common.SupportAccount_State", SupportAccount_State_name, SupportAccount_State_value)
proto.RegisterEnum("google.cloud.support.common.SupportAccount_PricingModel", SupportAccount_PricingModel_name, SupportAccount_PricingModel_value)
proto.RegisterEnum("google.cloud.support.common.Case_Priority", Case_Priority_name, Case_Priority_value)
@ -773,9 +947,11 @@ func init() {
proto.RegisterEnum("google.cloud.support.common.SupportRole_Role", SupportRole_Role_name, SupportRole_Role_value)
}
func init() { proto.RegisterFile("google/cloud/support/common.proto", fileDescriptor0) }
func init() {
proto.RegisterFile("google/cloud/support/common.proto", fileDescriptor_common_f17357843abc5917)
}
var fileDescriptor0 = []byte{
var fileDescriptor_common_f17357843abc5917 = []byte{
// 1336 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0x61, 0x6e, 0xdb, 0xc6,
0x12, 0x0e, 0x29, 0xc9, 0x92, 0x46, 0x96, 0xbd, 0x59, 0x38, 0x79, 0x8c, 0x92, 0xbc, 0x38, 0x7a,

View File

@ -1,35 +1,15 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/support/v1alpha1/cloud_support.proto
/*
Package support is a generated protocol buffer package.
It is generated from these files:
google/cloud/support/v1alpha1/cloud_support.proto
It has these top-level messages:
GetSupportAccountRequest
ListSupportAccountsRequest
ListSupportAccountsResponse
GetCaseRequest
ListCasesRequest
ListCasesResponse
ListCommentsRequest
ListCommentsResponse
CreateCaseRequest
UpdateCaseRequest
CreateCommentRequest
GetIssueTaxonomyRequest
*/
package support
package support // import "google.golang.org/genproto/googleapis/cloud/support/v1alpha1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_cloud_support_common "google.golang.org/genproto/googleapis/cloud/support/common"
import _ "github.com/golang/protobuf/ptypes/empty"
import google_protobuf3 "google.golang.org/genproto/protobuf/field_mask"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import common "google.golang.org/genproto/googleapis/cloud/support/common"
import field_mask "google.golang.org/genproto/protobuf/field_mask"
import (
context "golang.org/x/net/context"
@ -51,13 +31,35 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type GetSupportAccountRequest struct {
// The resource name of the support accounts. For example:
// `supportAccounts/accountA`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetSupportAccountRequest) Reset() { *m = GetSupportAccountRequest{} }
func (m *GetSupportAccountRequest) String() string { return proto.CompactTextString(m) }
func (*GetSupportAccountRequest) ProtoMessage() {}
func (*GetSupportAccountRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *GetSupportAccountRequest) Reset() { *m = GetSupportAccountRequest{} }
func (m *GetSupportAccountRequest) String() string { return proto.CompactTextString(m) }
func (*GetSupportAccountRequest) ProtoMessage() {}
func (*GetSupportAccountRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_support_33c72ff20b6be0b4, []int{0}
}
func (m *GetSupportAccountRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetSupportAccountRequest.Unmarshal(m, b)
}
func (m *GetSupportAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetSupportAccountRequest.Marshal(b, m, deterministic)
}
func (dst *GetSupportAccountRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetSupportAccountRequest.Merge(dst, src)
}
func (m *GetSupportAccountRequest) XXX_Size() int {
return xxx_messageInfo_GetSupportAccountRequest.Size(m)
}
func (m *GetSupportAccountRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetSupportAccountRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetSupportAccountRequest proto.InternalMessageInfo
func (m *GetSupportAccountRequest) GetName() string {
if m != nil {
@ -72,18 +74,40 @@ type ListSupportAccountsRequest struct {
// account list by a cloud_resource. For example, to filter results by support
// accounts associated with an Organization, its value should be:
// "cloud_resource:organizations/<organization_id>"
Filter string `protobuf:"bytes,1,opt,name=filter" json:"filter,omitempty"`
Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
// Maximum number of accounts fetched with each request.
PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A token identifying the page of results to return. If unspecified, the
// first page is retrieved.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListSupportAccountsRequest) Reset() { *m = ListSupportAccountsRequest{} }
func (m *ListSupportAccountsRequest) String() string { return proto.CompactTextString(m) }
func (*ListSupportAccountsRequest) ProtoMessage() {}
func (*ListSupportAccountsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *ListSupportAccountsRequest) Reset() { *m = ListSupportAccountsRequest{} }
func (m *ListSupportAccountsRequest) String() string { return proto.CompactTextString(m) }
func (*ListSupportAccountsRequest) ProtoMessage() {}
func (*ListSupportAccountsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_support_33c72ff20b6be0b4, []int{1}
}
func (m *ListSupportAccountsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListSupportAccountsRequest.Unmarshal(m, b)
}
func (m *ListSupportAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListSupportAccountsRequest.Marshal(b, m, deterministic)
}
func (dst *ListSupportAccountsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListSupportAccountsRequest.Merge(dst, src)
}
func (m *ListSupportAccountsRequest) XXX_Size() int {
return xxx_messageInfo_ListSupportAccountsRequest.Size(m)
}
func (m *ListSupportAccountsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListSupportAccountsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListSupportAccountsRequest proto.InternalMessageInfo
func (m *ListSupportAccountsRequest) GetFilter() string {
if m != nil {
@ -109,19 +133,41 @@ func (m *ListSupportAccountsRequest) GetPageToken() string {
// The response message for `ListSupportAccount`.
type ListSupportAccountsResponse struct {
// A list of support accounts.
Accounts []*google_cloud_support_common.SupportAccount `protobuf:"bytes,1,rep,name=accounts" json:"accounts,omitempty"`
Accounts []*common.SupportAccount `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
// A token to retrieve the next page of results. This should be passed on in
// `page_token` field of `ListSupportAccountRequest` for next request. If
// unspecified, there are no more results to retrieve.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListSupportAccountsResponse) Reset() { *m = ListSupportAccountsResponse{} }
func (m *ListSupportAccountsResponse) String() string { return proto.CompactTextString(m) }
func (*ListSupportAccountsResponse) ProtoMessage() {}
func (*ListSupportAccountsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *ListSupportAccountsResponse) Reset() { *m = ListSupportAccountsResponse{} }
func (m *ListSupportAccountsResponse) String() string { return proto.CompactTextString(m) }
func (*ListSupportAccountsResponse) ProtoMessage() {}
func (*ListSupportAccountsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_support_33c72ff20b6be0b4, []int{2}
}
func (m *ListSupportAccountsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListSupportAccountsResponse.Unmarshal(m, b)
}
func (m *ListSupportAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListSupportAccountsResponse.Marshal(b, m, deterministic)
}
func (dst *ListSupportAccountsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListSupportAccountsResponse.Merge(dst, src)
}
func (m *ListSupportAccountsResponse) XXX_Size() int {
return xxx_messageInfo_ListSupportAccountsResponse.Size(m)
}
func (m *ListSupportAccountsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListSupportAccountsResponse.DiscardUnknown(m)
}
func (m *ListSupportAccountsResponse) GetAccounts() []*google_cloud_support_common.SupportAccount {
var xxx_messageInfo_ListSupportAccountsResponse proto.InternalMessageInfo
func (m *ListSupportAccountsResponse) GetAccounts() []*common.SupportAccount {
if m != nil {
return m.Accounts
}
@ -139,13 +185,35 @@ func (m *ListSupportAccountsResponse) GetNextPageToken() string {
type GetCaseRequest struct {
// Name of case resource requested.
// For example: "supportAccounts/accountA/cases/123"
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetCaseRequest) Reset() { *m = GetCaseRequest{} }
func (m *GetCaseRequest) String() string { return proto.CompactTextString(m) }
func (*GetCaseRequest) ProtoMessage() {}
func (*GetCaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *GetCaseRequest) Reset() { *m = GetCaseRequest{} }
func (m *GetCaseRequest) String() string { return proto.CompactTextString(m) }
func (*GetCaseRequest) ProtoMessage() {}
func (*GetCaseRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_support_33c72ff20b6be0b4, []int{3}
}
func (m *GetCaseRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetCaseRequest.Unmarshal(m, b)
}
func (m *GetCaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetCaseRequest.Marshal(b, m, deterministic)
}
func (dst *GetCaseRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetCaseRequest.Merge(dst, src)
}
func (m *GetCaseRequest) XXX_Size() int {
return xxx_messageInfo_GetCaseRequest.Size(m)
}
func (m *GetCaseRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetCaseRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetCaseRequest proto.InternalMessageInfo
func (m *GetCaseRequest) GetName() string {
if m != nil {
@ -158,21 +226,43 @@ func (m *GetCaseRequest) GetName() string {
type ListCasesRequest struct {
// Name of the account resource for which cases are requested. For example:
// "supportAccounts/accountA"
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The filter applied to the search results. Currently it only accepts "OPEN"
// or "CLOSED" strings, filtering out cases that are open or resolved.
Filter string `protobuf:"bytes,2,opt,name=filter" json:"filter,omitempty"`
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// Maximum number of cases fetched with each request.
PageSize int64 `protobuf:"varint,3,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
PageSize int64 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A token identifying the page of results to return. If unspecified, the
// first page is retrieved.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListCasesRequest) Reset() { *m = ListCasesRequest{} }
func (m *ListCasesRequest) String() string { return proto.CompactTextString(m) }
func (*ListCasesRequest) ProtoMessage() {}
func (*ListCasesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *ListCasesRequest) Reset() { *m = ListCasesRequest{} }
func (m *ListCasesRequest) String() string { return proto.CompactTextString(m) }
func (*ListCasesRequest) ProtoMessage() {}
func (*ListCasesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_support_33c72ff20b6be0b4, []int{4}
}
func (m *ListCasesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListCasesRequest.Unmarshal(m, b)
}
func (m *ListCasesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListCasesRequest.Marshal(b, m, deterministic)
}
func (dst *ListCasesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListCasesRequest.Merge(dst, src)
}
func (m *ListCasesRequest) XXX_Size() int {
return xxx_messageInfo_ListCasesRequest.Size(m)
}
func (m *ListCasesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListCasesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListCasesRequest proto.InternalMessageInfo
func (m *ListCasesRequest) GetName() string {
if m != nil {
@ -205,19 +295,41 @@ func (m *ListCasesRequest) GetPageToken() string {
// The response message for `ListCase` method.
type ListCasesResponse struct {
// A list of cases.
Cases []*google_cloud_support_common.Case `protobuf:"bytes,1,rep,name=cases" json:"cases,omitempty"`
Cases []*common.Case `protobuf:"bytes,1,rep,name=cases,proto3" json:"cases,omitempty"`
// A token to retrieve the next page of results. This should be passed on in
// `page_token` field of `ListCaseRequest` for next request. If unspecified,
// there are no more results to retrieve.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListCasesResponse) Reset() { *m = ListCasesResponse{} }
func (m *ListCasesResponse) String() string { return proto.CompactTextString(m) }
func (*ListCasesResponse) ProtoMessage() {}
func (*ListCasesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *ListCasesResponse) Reset() { *m = ListCasesResponse{} }
func (m *ListCasesResponse) String() string { return proto.CompactTextString(m) }
func (*ListCasesResponse) ProtoMessage() {}
func (*ListCasesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_support_33c72ff20b6be0b4, []int{5}
}
func (m *ListCasesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListCasesResponse.Unmarshal(m, b)
}
func (m *ListCasesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListCasesResponse.Marshal(b, m, deterministic)
}
func (dst *ListCasesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListCasesResponse.Merge(dst, src)
}
func (m *ListCasesResponse) XXX_Size() int {
return xxx_messageInfo_ListCasesResponse.Size(m)
}
func (m *ListCasesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListCasesResponse.DiscardUnknown(m)
}
func (m *ListCasesResponse) GetCases() []*google_cloud_support_common.Case {
var xxx_messageInfo_ListCasesResponse proto.InternalMessageInfo
func (m *ListCasesResponse) GetCases() []*common.Case {
if m != nil {
return m.Cases
}
@ -234,13 +346,35 @@ func (m *ListCasesResponse) GetNextPageToken() string {
// The request message for `ListComments` method.
type ListCommentsRequest struct {
// The resource name of case for which comments should be listed.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListCommentsRequest) Reset() { *m = ListCommentsRequest{} }
func (m *ListCommentsRequest) String() string { return proto.CompactTextString(m) }
func (*ListCommentsRequest) ProtoMessage() {}
func (*ListCommentsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *ListCommentsRequest) Reset() { *m = ListCommentsRequest{} }
func (m *ListCommentsRequest) String() string { return proto.CompactTextString(m) }
func (*ListCommentsRequest) ProtoMessage() {}
func (*ListCommentsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_support_33c72ff20b6be0b4, []int{6}
}
func (m *ListCommentsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListCommentsRequest.Unmarshal(m, b)
}
func (m *ListCommentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListCommentsRequest.Marshal(b, m, deterministic)
}
func (dst *ListCommentsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListCommentsRequest.Merge(dst, src)
}
func (m *ListCommentsRequest) XXX_Size() int {
return xxx_messageInfo_ListCommentsRequest.Size(m)
}
func (m *ListCommentsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListCommentsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListCommentsRequest proto.InternalMessageInfo
func (m *ListCommentsRequest) GetName() string {
if m != nil {
@ -252,15 +386,37 @@ func (m *ListCommentsRequest) GetName() string {
// The response message for `ListComments` method.
type ListCommentsResponse struct {
// A list of comments.
Comments []*google_cloud_support_common.Comment `protobuf:"bytes,1,rep,name=comments" json:"comments,omitempty"`
Comments []*common.Comment `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListCommentsResponse) Reset() { *m = ListCommentsResponse{} }
func (m *ListCommentsResponse) String() string { return proto.CompactTextString(m) }
func (*ListCommentsResponse) ProtoMessage() {}
func (*ListCommentsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *ListCommentsResponse) Reset() { *m = ListCommentsResponse{} }
func (m *ListCommentsResponse) String() string { return proto.CompactTextString(m) }
func (*ListCommentsResponse) ProtoMessage() {}
func (*ListCommentsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_support_33c72ff20b6be0b4, []int{7}
}
func (m *ListCommentsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListCommentsResponse.Unmarshal(m, b)
}
func (m *ListCommentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListCommentsResponse.Marshal(b, m, deterministic)
}
func (dst *ListCommentsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListCommentsResponse.Merge(dst, src)
}
func (m *ListCommentsResponse) XXX_Size() int {
return xxx_messageInfo_ListCommentsResponse.Size(m)
}
func (m *ListCommentsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListCommentsResponse.DiscardUnknown(m)
}
func (m *ListCommentsResponse) GetComments() []*google_cloud_support_common.Comment {
var xxx_messageInfo_ListCommentsResponse proto.InternalMessageInfo
func (m *ListCommentsResponse) GetComments() []*common.Comment {
if m != nil {
return m.Comments
}
@ -270,15 +426,37 @@ func (m *ListCommentsResponse) GetComments() []*google_cloud_support_common.Comm
// The request message for `CreateCase` method.
type CreateCaseRequest struct {
// The resource name for `SupportAccount` under which this case is created.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The case resource to create.
Case *google_cloud_support_common.Case `protobuf:"bytes,2,opt,name=case" json:"case,omitempty"`
Case *common.Case `protobuf:"bytes,2,opt,name=case,proto3" json:"case,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateCaseRequest) Reset() { *m = CreateCaseRequest{} }
func (m *CreateCaseRequest) String() string { return proto.CompactTextString(m) }
func (*CreateCaseRequest) ProtoMessage() {}
func (*CreateCaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
func (m *CreateCaseRequest) Reset() { *m = CreateCaseRequest{} }
func (m *CreateCaseRequest) String() string { return proto.CompactTextString(m) }
func (*CreateCaseRequest) ProtoMessage() {}
func (*CreateCaseRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_support_33c72ff20b6be0b4, []int{8}
}
func (m *CreateCaseRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateCaseRequest.Unmarshal(m, b)
}
func (m *CreateCaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateCaseRequest.Marshal(b, m, deterministic)
}
func (dst *CreateCaseRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateCaseRequest.Merge(dst, src)
}
func (m *CreateCaseRequest) XXX_Size() int {
return xxx_messageInfo_CreateCaseRequest.Size(m)
}
func (m *CreateCaseRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateCaseRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateCaseRequest proto.InternalMessageInfo
func (m *CreateCaseRequest) GetParent() string {
if m != nil {
@ -287,7 +465,7 @@ func (m *CreateCaseRequest) GetParent() string {
return ""
}
func (m *CreateCaseRequest) GetCase() *google_cloud_support_common.Case {
func (m *CreateCaseRequest) GetCase() *common.Case {
if m != nil {
return m.Case
}
@ -297,25 +475,47 @@ func (m *CreateCaseRequest) GetCase() *google_cloud_support_common.Case {
// The request message for `UpdateCase` method.
type UpdateCaseRequest struct {
// The case resource to update.
Case *google_cloud_support_common.Case `protobuf:"bytes,1,opt,name=case" json:"case,omitempty"`
Case *common.Case `protobuf:"bytes,1,opt,name=case,proto3" json:"case,omitempty"`
// A field that represents attributes of a Case object that should be updated
// as part of this request.
UpdateMask *google_protobuf3.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateCaseRequest) Reset() { *m = UpdateCaseRequest{} }
func (m *UpdateCaseRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateCaseRequest) ProtoMessage() {}
func (*UpdateCaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
func (m *UpdateCaseRequest) Reset() { *m = UpdateCaseRequest{} }
func (m *UpdateCaseRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateCaseRequest) ProtoMessage() {}
func (*UpdateCaseRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_support_33c72ff20b6be0b4, []int{9}
}
func (m *UpdateCaseRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateCaseRequest.Unmarshal(m, b)
}
func (m *UpdateCaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateCaseRequest.Marshal(b, m, deterministic)
}
func (dst *UpdateCaseRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateCaseRequest.Merge(dst, src)
}
func (m *UpdateCaseRequest) XXX_Size() int {
return xxx_messageInfo_UpdateCaseRequest.Size(m)
}
func (m *UpdateCaseRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateCaseRequest.DiscardUnknown(m)
}
func (m *UpdateCaseRequest) GetCase() *google_cloud_support_common.Case {
var xxx_messageInfo_UpdateCaseRequest proto.InternalMessageInfo
func (m *UpdateCaseRequest) GetCase() *common.Case {
if m != nil {
return m.Case
}
return nil
}
func (m *UpdateCaseRequest) GetUpdateMask() *google_protobuf3.FieldMask {
func (m *UpdateCaseRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
@ -325,15 +525,37 @@ func (m *UpdateCaseRequest) GetUpdateMask() *google_protobuf3.FieldMask {
// The request message for `CreateComment` method.
type CreateCommentRequest struct {
// The resource name of case to which this comment should be added.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The `Comment` to be added to this case.
Comment *google_cloud_support_common.Comment `protobuf:"bytes,2,opt,name=comment" json:"comment,omitempty"`
Comment *common.Comment `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateCommentRequest) Reset() { *m = CreateCommentRequest{} }
func (m *CreateCommentRequest) String() string { return proto.CompactTextString(m) }
func (*CreateCommentRequest) ProtoMessage() {}
func (*CreateCommentRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
func (m *CreateCommentRequest) Reset() { *m = CreateCommentRequest{} }
func (m *CreateCommentRequest) String() string { return proto.CompactTextString(m) }
func (*CreateCommentRequest) ProtoMessage() {}
func (*CreateCommentRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_support_33c72ff20b6be0b4, []int{10}
}
func (m *CreateCommentRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateCommentRequest.Unmarshal(m, b)
}
func (m *CreateCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateCommentRequest.Marshal(b, m, deterministic)
}
func (dst *CreateCommentRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateCommentRequest.Merge(dst, src)
}
func (m *CreateCommentRequest) XXX_Size() int {
return xxx_messageInfo_CreateCommentRequest.Size(m)
}
func (m *CreateCommentRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateCommentRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateCommentRequest proto.InternalMessageInfo
func (m *CreateCommentRequest) GetName() string {
if m != nil {
@ -342,7 +564,7 @@ func (m *CreateCommentRequest) GetName() string {
return ""
}
func (m *CreateCommentRequest) GetComment() *google_cloud_support_common.Comment {
func (m *CreateCommentRequest) GetComment() *common.Comment {
if m != nil {
return m.Comment
}
@ -351,12 +573,34 @@ func (m *CreateCommentRequest) GetComment() *google_cloud_support_common.Comment
// The request message for `GetIssueTaxonomy` method.
type GetIssueTaxonomyRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetIssueTaxonomyRequest) Reset() { *m = GetIssueTaxonomyRequest{} }
func (m *GetIssueTaxonomyRequest) String() string { return proto.CompactTextString(m) }
func (*GetIssueTaxonomyRequest) ProtoMessage() {}
func (*GetIssueTaxonomyRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
func (m *GetIssueTaxonomyRequest) Reset() { *m = GetIssueTaxonomyRequest{} }
func (m *GetIssueTaxonomyRequest) String() string { return proto.CompactTextString(m) }
func (*GetIssueTaxonomyRequest) ProtoMessage() {}
func (*GetIssueTaxonomyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_support_33c72ff20b6be0b4, []int{11}
}
func (m *GetIssueTaxonomyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetIssueTaxonomyRequest.Unmarshal(m, b)
}
func (m *GetIssueTaxonomyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetIssueTaxonomyRequest.Marshal(b, m, deterministic)
}
func (dst *GetIssueTaxonomyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetIssueTaxonomyRequest.Merge(dst, src)
}
func (m *GetIssueTaxonomyRequest) XXX_Size() int {
return xxx_messageInfo_GetIssueTaxonomyRequest.Size(m)
}
func (m *GetIssueTaxonomyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetIssueTaxonomyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetIssueTaxonomyRequest proto.InternalMessageInfo
func init() {
proto.RegisterType((*GetSupportAccountRequest)(nil), "google.cloud.support.v1alpha1.GetSupportAccountRequest")
@ -381,18 +625,19 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for CloudSupport service
// CloudSupportClient is the client API for CloudSupport service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CloudSupportClient interface {
// Retrieves the support account details given an account identifier.
// The authenticated user calling this method must be the account owner.
GetSupportAccount(ctx context.Context, in *GetSupportAccountRequest, opts ...grpc.CallOption) (*google_cloud_support_common.SupportAccount, error)
GetSupportAccount(ctx context.Context, in *GetSupportAccountRequest, opts ...grpc.CallOption) (*common.SupportAccount, error)
// Retrieves the list of accounts the current authenticated user has access
// to.
ListSupportAccounts(ctx context.Context, in *ListSupportAccountsRequest, opts ...grpc.CallOption) (*ListSupportAccountsResponse, error)
// Retrieves the details for a support case. The current authenticated user
// calling this method must have permissions to view this case.
GetCase(ctx context.Context, in *GetCaseRequest, opts ...grpc.CallOption) (*google_cloud_support_common.Case, error)
GetCase(ctx context.Context, in *GetCaseRequest, opts ...grpc.CallOption) (*common.Case, error)
// Retrieves the list of support cases associated with an account. The current
// authenticated user must have the permission to list and view these cases.
ListCases(ctx context.Context, in *ListCasesRequest, opts ...grpc.CallOption) (*ListCasesResponse, error)
@ -402,15 +647,15 @@ type CloudSupportClient interface {
// [SupportAccount][google.cloud.support.v1alpha2.SupportAcccount]. The
// authenticated user attempting this action must have permissions to create a
// `Case` under that [SupportAccount].
CreateCase(ctx context.Context, in *CreateCaseRequest, opts ...grpc.CallOption) (*google_cloud_support_common.Case, error)
CreateCase(ctx context.Context, in *CreateCaseRequest, opts ...grpc.CallOption) (*common.Case, error)
// Updates a support case. Only a small set of details (priority, subject and
// cc_address) can be update after a case is created.
UpdateCase(ctx context.Context, in *UpdateCaseRequest, opts ...grpc.CallOption) (*google_cloud_support_common.Case, error)
UpdateCase(ctx context.Context, in *UpdateCaseRequest, opts ...grpc.CallOption) (*common.Case, error)
// Adds a new comment to a case.
CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...grpc.CallOption) (*google_cloud_support_common.Comment, error)
CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...grpc.CallOption) (*common.Comment, error)
// Retrieves the taxonomy of product categories and components to be used
// while creating a support case.
GetIssueTaxonomy(ctx context.Context, in *GetIssueTaxonomyRequest, opts ...grpc.CallOption) (*google_cloud_support_common.IssueTaxonomy, error)
GetIssueTaxonomy(ctx context.Context, in *GetIssueTaxonomyRequest, opts ...grpc.CallOption) (*common.IssueTaxonomy, error)
}
type cloudSupportClient struct {
@ -421,9 +666,9 @@ func NewCloudSupportClient(cc *grpc.ClientConn) CloudSupportClient {
return &cloudSupportClient{cc}
}
func (c *cloudSupportClient) GetSupportAccount(ctx context.Context, in *GetSupportAccountRequest, opts ...grpc.CallOption) (*google_cloud_support_common.SupportAccount, error) {
out := new(google_cloud_support_common.SupportAccount)
err := grpc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/GetSupportAccount", in, out, c.cc, opts...)
func (c *cloudSupportClient) GetSupportAccount(ctx context.Context, in *GetSupportAccountRequest, opts ...grpc.CallOption) (*common.SupportAccount, error) {
out := new(common.SupportAccount)
err := c.cc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/GetSupportAccount", in, out, opts...)
if err != nil {
return nil, err
}
@ -432,16 +677,16 @@ func (c *cloudSupportClient) GetSupportAccount(ctx context.Context, in *GetSuppo
func (c *cloudSupportClient) ListSupportAccounts(ctx context.Context, in *ListSupportAccountsRequest, opts ...grpc.CallOption) (*ListSupportAccountsResponse, error) {
out := new(ListSupportAccountsResponse)
err := grpc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/ListSupportAccounts", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/ListSupportAccounts", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *cloudSupportClient) GetCase(ctx context.Context, in *GetCaseRequest, opts ...grpc.CallOption) (*google_cloud_support_common.Case, error) {
out := new(google_cloud_support_common.Case)
err := grpc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/GetCase", in, out, c.cc, opts...)
func (c *cloudSupportClient) GetCase(ctx context.Context, in *GetCaseRequest, opts ...grpc.CallOption) (*common.Case, error) {
out := new(common.Case)
err := c.cc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/GetCase", in, out, opts...)
if err != nil {
return nil, err
}
@ -450,7 +695,7 @@ func (c *cloudSupportClient) GetCase(ctx context.Context, in *GetCaseRequest, op
func (c *cloudSupportClient) ListCases(ctx context.Context, in *ListCasesRequest, opts ...grpc.CallOption) (*ListCasesResponse, error) {
out := new(ListCasesResponse)
err := grpc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/ListCases", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/ListCases", in, out, opts...)
if err != nil {
return nil, err
}
@ -459,61 +704,60 @@ func (c *cloudSupportClient) ListCases(ctx context.Context, in *ListCasesRequest
func (c *cloudSupportClient) ListComments(ctx context.Context, in *ListCommentsRequest, opts ...grpc.CallOption) (*ListCommentsResponse, error) {
out := new(ListCommentsResponse)
err := grpc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/ListComments", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/ListComments", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *cloudSupportClient) CreateCase(ctx context.Context, in *CreateCaseRequest, opts ...grpc.CallOption) (*google_cloud_support_common.Case, error) {
out := new(google_cloud_support_common.Case)
err := grpc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/CreateCase", in, out, c.cc, opts...)
func (c *cloudSupportClient) CreateCase(ctx context.Context, in *CreateCaseRequest, opts ...grpc.CallOption) (*common.Case, error) {
out := new(common.Case)
err := c.cc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/CreateCase", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *cloudSupportClient) UpdateCase(ctx context.Context, in *UpdateCaseRequest, opts ...grpc.CallOption) (*google_cloud_support_common.Case, error) {
out := new(google_cloud_support_common.Case)
err := grpc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/UpdateCase", in, out, c.cc, opts...)
func (c *cloudSupportClient) UpdateCase(ctx context.Context, in *UpdateCaseRequest, opts ...grpc.CallOption) (*common.Case, error) {
out := new(common.Case)
err := c.cc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/UpdateCase", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *cloudSupportClient) CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...grpc.CallOption) (*google_cloud_support_common.Comment, error) {
out := new(google_cloud_support_common.Comment)
err := grpc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/CreateComment", in, out, c.cc, opts...)
func (c *cloudSupportClient) CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...grpc.CallOption) (*common.Comment, error) {
out := new(common.Comment)
err := c.cc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/CreateComment", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *cloudSupportClient) GetIssueTaxonomy(ctx context.Context, in *GetIssueTaxonomyRequest, opts ...grpc.CallOption) (*google_cloud_support_common.IssueTaxonomy, error) {
out := new(google_cloud_support_common.IssueTaxonomy)
err := grpc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/GetIssueTaxonomy", in, out, c.cc, opts...)
func (c *cloudSupportClient) GetIssueTaxonomy(ctx context.Context, in *GetIssueTaxonomyRequest, opts ...grpc.CallOption) (*common.IssueTaxonomy, error) {
out := new(common.IssueTaxonomy)
err := c.cc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/GetIssueTaxonomy", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for CloudSupport service
// CloudSupportServer is the server API for CloudSupport service.
type CloudSupportServer interface {
// Retrieves the support account details given an account identifier.
// The authenticated user calling this method must be the account owner.
GetSupportAccount(context.Context, *GetSupportAccountRequest) (*google_cloud_support_common.SupportAccount, error)
GetSupportAccount(context.Context, *GetSupportAccountRequest) (*common.SupportAccount, error)
// Retrieves the list of accounts the current authenticated user has access
// to.
ListSupportAccounts(context.Context, *ListSupportAccountsRequest) (*ListSupportAccountsResponse, error)
// Retrieves the details for a support case. The current authenticated user
// calling this method must have permissions to view this case.
GetCase(context.Context, *GetCaseRequest) (*google_cloud_support_common.Case, error)
GetCase(context.Context, *GetCaseRequest) (*common.Case, error)
// Retrieves the list of support cases associated with an account. The current
// authenticated user must have the permission to list and view these cases.
ListCases(context.Context, *ListCasesRequest) (*ListCasesResponse, error)
@ -523,15 +767,15 @@ type CloudSupportServer interface {
// [SupportAccount][google.cloud.support.v1alpha2.SupportAcccount]. The
// authenticated user attempting this action must have permissions to create a
// `Case` under that [SupportAccount].
CreateCase(context.Context, *CreateCaseRequest) (*google_cloud_support_common.Case, error)
CreateCase(context.Context, *CreateCaseRequest) (*common.Case, error)
// Updates a support case. Only a small set of details (priority, subject and
// cc_address) can be update after a case is created.
UpdateCase(context.Context, *UpdateCaseRequest) (*google_cloud_support_common.Case, error)
UpdateCase(context.Context, *UpdateCaseRequest) (*common.Case, error)
// Adds a new comment to a case.
CreateComment(context.Context, *CreateCommentRequest) (*google_cloud_support_common.Comment, error)
CreateComment(context.Context, *CreateCommentRequest) (*common.Comment, error)
// Retrieves the taxonomy of product categories and components to be used
// while creating a support case.
GetIssueTaxonomy(context.Context, *GetIssueTaxonomyRequest) (*google_cloud_support_common.IssueTaxonomy, error)
GetIssueTaxonomy(context.Context, *GetIssueTaxonomyRequest) (*common.IssueTaxonomy, error)
}
func RegisterCloudSupportServer(s *grpc.Server, srv CloudSupportServer) {
@ -745,9 +989,11 @@ var _CloudSupport_serviceDesc = grpc.ServiceDesc{
Metadata: "google/cloud/support/v1alpha1/cloud_support.proto",
}
func init() { proto.RegisterFile("google/cloud/support/v1alpha1/cloud_support.proto", fileDescriptor0) }
func init() {
proto.RegisterFile("google/cloud/support/v1alpha1/cloud_support.proto", fileDescriptor_cloud_support_33c72ff20b6be0b4)
}
var fileDescriptor0 = []byte{
var fileDescriptor_cloud_support_33c72ff20b6be0b4 = []byte{
// 863 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x41, 0x4f, 0x33, 0x45,
0x18, 0xce, 0xb4, 0xc8, 0x07, 0x2f, 0xdf, 0xa7, 0x5f, 0x47, 0x82, 0x65, 0x0b, 0x49, 0x3b, 0x21,

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,782 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/tasks/v2beta2/queue.proto
package tasks // import "google.golang.org/genproto/googleapis/cloud/tasks/v2beta2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import duration "github.com/golang/protobuf/ptypes/duration"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// State of the queue.
type Queue_State int32
const (
// Unspecified state.
Queue_STATE_UNSPECIFIED Queue_State = 0
// The queue is running. Tasks can be dispatched.
//
// If the queue was created using Cloud Tasks and the queue has
// had no activity (method calls or task dispatches) for 30 days,
// the queue may take a few minutes to re-activate. Some method
// calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and
// tasks may not be dispatched for a few minutes until the queue
// has been re-activated.
Queue_RUNNING Queue_State = 1
// Tasks are paused by the user. If the queue is paused then Cloud
// Tasks will stop delivering tasks from it, but more tasks can
// still be added to it by the user. When a pull queue is paused,
// all [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] calls will return a
// [FAILED_PRECONDITION][google.rpc.Code.FAILED_PRECONDITION].
Queue_PAUSED Queue_State = 2
// The queue is disabled.
//
// A queue becomes `DISABLED` when
// [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref) or
// [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref) is uploaded
// which does not contain the queue. You cannot directly disable a queue.
//
// When a queue is disabled, tasks can still be added to a queue
// but the tasks are not dispatched and
// [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] calls return a
// `FAILED_PRECONDITION` error.
//
// To permanently delete this queue and all of its tasks, call
// [DeleteQueue][google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue].
Queue_DISABLED Queue_State = 3
)
var Queue_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "RUNNING",
2: "PAUSED",
3: "DISABLED",
}
var Queue_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"RUNNING": 1,
"PAUSED": 2,
"DISABLED": 3,
}
func (x Queue_State) String() string {
return proto.EnumName(Queue_State_name, int32(x))
}
func (Queue_State) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_queue_c4ed304f84e85348, []int{0, 0}
}
// A queue is a container of related tasks. Queues are configured to manage
// how those tasks are dispatched. Configurable properties include rate limits,
// retry options, target types, and others.
type Queue struct {
// Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue],
// after which it becomes output only.
//
// The queue name.
//
// The queue name must have the following format:
// `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
//
// * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
// hyphens (-), colons (:), or periods (.).
// For more information, see
// [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
// * `LOCATION_ID` is the canonical ID for the queue's location.
// The list of available locations can be obtained by calling
// [ListLocations][google.cloud.location.Locations.ListLocations].
// For more information, see https://cloud.google.com/about/locations/.
// * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
// hyphens (-). The maximum length is 100 characters.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue][],
// after which the queue config type becomes output only, though fields within
// the config are mutable.
//
// The queue's target.
//
// The target applies to all tasks in the queue.
//
// Types that are valid to be assigned to TargetType:
// *Queue_AppEngineHttpTarget
// *Queue_PullTarget
TargetType isQueue_TargetType `protobuf_oneof:"target_type"`
// Rate limits for task dispatches.
//
// [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] and
// [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] are related because they both
// control task attempts however they control how tasks are
// attempted in different ways:
//
// * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] controls the total rate of
// dispatches from a queue (i.e. all traffic dispatched from the
// queue, regardless of whether the dispatch is from a first
// attempt or a retry).
// * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls what happens to
// particular a task after its first attempt fails. That is,
// [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls task retries (the
// second attempt, third attempt, etc).
RateLimits *RateLimits `protobuf:"bytes,5,opt,name=rate_limits,json=rateLimits,proto3" json:"rate_limits,omitempty"`
// Settings that determine the retry behavior.
//
// * For tasks created using Cloud Tasks: the queue-level retry settings
// apply to all tasks in the queue that were created using Cloud Tasks.
// Retry settings cannot be set on individual tasks.
// * For tasks created using the App Engine SDK: the queue-level retry
// settings apply to all tasks in the queue which do not have retry settings
// explicitly set on the task and were created by the App Engine SDK. See
// [App Engine documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
RetryConfig *RetryConfig `protobuf:"bytes,6,opt,name=retry_config,json=retryConfig,proto3" json:"retry_config,omitempty"`
// Output only. The state of the queue.
//
// `state` can only be changed by called
// [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue],
// [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue], or uploading
// [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
// [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] cannot be used to change `state`.
State Queue_State `protobuf:"varint,7,opt,name=state,proto3,enum=google.cloud.tasks.v2beta2.Queue_State" json:"state,omitempty"`
// Output only. The last time this queue was purged.
//
// All tasks that were [created][google.cloud.tasks.v2beta2.Task.create_time] before this time
// were purged.
//
// A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue], the
// [App Engine Task Queue SDK, or the Cloud Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
//
// Purge time will be truncated to the nearest microsecond. Purge
// time will be unset if the queue has never been purged.
PurgeTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=purge_time,json=purgeTime,proto3" json:"purge_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Queue) Reset() { *m = Queue{} }
func (m *Queue) String() string { return proto.CompactTextString(m) }
func (*Queue) ProtoMessage() {}
func (*Queue) Descriptor() ([]byte, []int) {
return fileDescriptor_queue_c4ed304f84e85348, []int{0}
}
func (m *Queue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Queue.Unmarshal(m, b)
}
func (m *Queue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Queue.Marshal(b, m, deterministic)
}
func (dst *Queue) XXX_Merge(src proto.Message) {
xxx_messageInfo_Queue.Merge(dst, src)
}
func (m *Queue) XXX_Size() int {
return xxx_messageInfo_Queue.Size(m)
}
func (m *Queue) XXX_DiscardUnknown() {
xxx_messageInfo_Queue.DiscardUnknown(m)
}
var xxx_messageInfo_Queue proto.InternalMessageInfo
func (m *Queue) GetName() string {
if m != nil {
return m.Name
}
return ""
}
type isQueue_TargetType interface {
isQueue_TargetType()
}
type Queue_AppEngineHttpTarget struct {
AppEngineHttpTarget *AppEngineHttpTarget `protobuf:"bytes,3,opt,name=app_engine_http_target,json=appEngineHttpTarget,proto3,oneof"`
}
type Queue_PullTarget struct {
PullTarget *PullTarget `protobuf:"bytes,4,opt,name=pull_target,json=pullTarget,proto3,oneof"`
}
func (*Queue_AppEngineHttpTarget) isQueue_TargetType() {}
func (*Queue_PullTarget) isQueue_TargetType() {}
func (m *Queue) GetTargetType() isQueue_TargetType {
if m != nil {
return m.TargetType
}
return nil
}
func (m *Queue) GetAppEngineHttpTarget() *AppEngineHttpTarget {
if x, ok := m.GetTargetType().(*Queue_AppEngineHttpTarget); ok {
return x.AppEngineHttpTarget
}
return nil
}
func (m *Queue) GetPullTarget() *PullTarget {
if x, ok := m.GetTargetType().(*Queue_PullTarget); ok {
return x.PullTarget
}
return nil
}
func (m *Queue) GetRateLimits() *RateLimits {
if m != nil {
return m.RateLimits
}
return nil
}
func (m *Queue) GetRetryConfig() *RetryConfig {
if m != nil {
return m.RetryConfig
}
return nil
}
func (m *Queue) GetState() Queue_State {
if m != nil {
return m.State
}
return Queue_STATE_UNSPECIFIED
}
func (m *Queue) GetPurgeTime() *timestamp.Timestamp {
if m != nil {
return m.PurgeTime
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Queue) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Queue_OneofMarshaler, _Queue_OneofUnmarshaler, _Queue_OneofSizer, []interface{}{
(*Queue_AppEngineHttpTarget)(nil),
(*Queue_PullTarget)(nil),
}
}
func _Queue_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Queue)
// target_type
switch x := m.TargetType.(type) {
case *Queue_AppEngineHttpTarget:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.AppEngineHttpTarget); err != nil {
return err
}
case *Queue_PullTarget:
b.EncodeVarint(4<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.PullTarget); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Queue.TargetType has unexpected type %T", x)
}
return nil
}
func _Queue_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Queue)
switch tag {
case 3: // target_type.app_engine_http_target
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(AppEngineHttpTarget)
err := b.DecodeMessage(msg)
m.TargetType = &Queue_AppEngineHttpTarget{msg}
return true, err
case 4: // target_type.pull_target
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(PullTarget)
err := b.DecodeMessage(msg)
m.TargetType = &Queue_PullTarget{msg}
return true, err
default:
return false, nil
}
}
func _Queue_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Queue)
// target_type
switch x := m.TargetType.(type) {
case *Queue_AppEngineHttpTarget:
s := proto.Size(x.AppEngineHttpTarget)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Queue_PullTarget:
s := proto.Size(x.PullTarget)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Rate limits.
//
// This message determines the maximum rate that tasks can be dispatched by a
// queue, regardless of whether the dispatch is a first task attempt or a retry.
//
// Note: The debugging command, [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask], will run a task
// even if the queue has reached its [RateLimits][google.cloud.tasks.v2beta2.RateLimits].
type RateLimits struct {
// The maximum rate at which tasks are dispatched from this queue.
//
// If unspecified when the queue is created, Cloud Tasks will pick the
// default.
//
// * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum allowed value
// is 500.
// * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget]. In addition to the
// `max_tasks_dispatched_per_second` limit, a maximum of 10 QPS of
// [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] requests are allowed per pull queue.
//
//
// This field has the same meaning as
// [rate in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate).
MaxTasksDispatchedPerSecond float64 `protobuf:"fixed64,1,opt,name=max_tasks_dispatched_per_second,json=maxTasksDispatchedPerSecond,proto3" json:"max_tasks_dispatched_per_second,omitempty"`
// Output only. The max burst size.
//
// Max burst size limits how fast tasks in queue are processed when
// many tasks are in the queue and the rate is high. This field
// allows the queue to have a high rate so processing starts shortly
// after a task is enqueued, but still limits resource usage when
// many tasks are enqueued in a short period of time.
//
// The [token bucket](https://wikipedia.org/wiki/Token_Bucket)
// algorithm is used to control the rate of task dispatches. Each
// queue has a token bucket that holds tokens, up to the maximum
// specified by `max_burst_size`. Each time a task is dispatched, a
// token is removed from the bucket. Tasks will be dispatched until
// the queue's bucket runs out of tokens. The bucket will be
// continuously refilled with new tokens based on
// [max_tasks_dispatched_per_second][google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second].
//
// Cloud Tasks will pick the value of `max_burst_size` based on the
// value of
// [max_tasks_dispatched_per_second][google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second].
//
// For App Engine queues that were created or updated using
// `queue.yaml/xml`, `max_burst_size` is equal to
// [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
// Since `max_burst_size` is output only, if
// [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] is called on a queue
// created by `queue.yaml/xml`, `max_burst_size` will be reset based
// on the value of
// [max_tasks_dispatched_per_second][google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second],
// regardless of whether
// [max_tasks_dispatched_per_second][google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second]
// is updated.
//
MaxBurstSize int32 `protobuf:"varint,2,opt,name=max_burst_size,json=maxBurstSize,proto3" json:"max_burst_size,omitempty"`
// The maximum number of concurrent tasks that Cloud Tasks allows
// to be dispatched for this queue. After this threshold has been
// reached, Cloud Tasks stops dispatching tasks until the number of
// concurrent requests decreases.
//
// If unspecified when the queue is created, Cloud Tasks will pick the
// default.
//
//
// The maximum allowed value is 5,000.
//
// This field is output only for
// [pull queues][google.cloud.tasks.v2beta2.PullTarget] and always -1, which indicates no limit. No other
// queue types can have `max_concurrent_tasks` set to -1.
//
//
// This field has the same meaning as
// [max_concurrent_requests in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests).
MaxConcurrentTasks int32 `protobuf:"varint,3,opt,name=max_concurrent_tasks,json=maxConcurrentTasks,proto3" json:"max_concurrent_tasks,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RateLimits) Reset() { *m = RateLimits{} }
func (m *RateLimits) String() string { return proto.CompactTextString(m) }
func (*RateLimits) ProtoMessage() {}
func (*RateLimits) Descriptor() ([]byte, []int) {
return fileDescriptor_queue_c4ed304f84e85348, []int{1}
}
func (m *RateLimits) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RateLimits.Unmarshal(m, b)
}
func (m *RateLimits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RateLimits.Marshal(b, m, deterministic)
}
func (dst *RateLimits) XXX_Merge(src proto.Message) {
xxx_messageInfo_RateLimits.Merge(dst, src)
}
func (m *RateLimits) XXX_Size() int {
return xxx_messageInfo_RateLimits.Size(m)
}
func (m *RateLimits) XXX_DiscardUnknown() {
xxx_messageInfo_RateLimits.DiscardUnknown(m)
}
var xxx_messageInfo_RateLimits proto.InternalMessageInfo
func (m *RateLimits) GetMaxTasksDispatchedPerSecond() float64 {
if m != nil {
return m.MaxTasksDispatchedPerSecond
}
return 0
}
func (m *RateLimits) GetMaxBurstSize() int32 {
if m != nil {
return m.MaxBurstSize
}
return 0
}
func (m *RateLimits) GetMaxConcurrentTasks() int32 {
if m != nil {
return m.MaxConcurrentTasks
}
return 0
}
// Retry config.
//
// These settings determine how a failed task attempt is retried.
type RetryConfig struct {
// Number of attempts per task.
//
// If unspecified when the queue is created, Cloud Tasks will pick the
// default.
//
//
//
// This field has the same meaning as
// [task_retry_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
//
// Types that are valid to be assigned to NumAttempts:
// *RetryConfig_MaxAttempts
// *RetryConfig_UnlimitedAttempts
NumAttempts isRetryConfig_NumAttempts `protobuf_oneof:"num_attempts"`
// If positive, `max_retry_duration` specifies the time limit for
// retrying a failed task, measured from when the task was first
// attempted. Once `max_retry_duration` time has passed *and* the
// task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts]
// times, no further attempts will be made and the task will be
// deleted.
//
// If zero, then the task age is unlimited.
//
// If unspecified when the queue is created, Cloud Tasks will pick the
// default.
//
// This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
//
//
// `max_retry_duration` will be truncated to the nearest second.
//
// This field has the same meaning as
// [task_age_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
MaxRetryDuration *duration.Duration `protobuf:"bytes,3,opt,name=max_retry_duration,json=maxRetryDuration,proto3" json:"max_retry_duration,omitempty"`
// A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
// [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
// [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
// if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
// retried.
//
// If unspecified when the queue is created, Cloud Tasks will pick the
// default.
//
// This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
//
//
// `min_backoff` will be truncated to the nearest second.
//
// This field has the same meaning as
// [min_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
MinBackoff *duration.Duration `protobuf:"bytes,4,opt,name=min_backoff,json=minBackoff,proto3" json:"min_backoff,omitempty"`
// A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
// [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
// [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
// if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
// retried.
//
// If unspecified when the queue is created, Cloud Tasks will pick the
// default.
//
// This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
//
//
// `max_backoff` will be truncated to the nearest second.
//
// This field has the same meaning as
// [max_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
MaxBackoff *duration.Duration `protobuf:"bytes,5,opt,name=max_backoff,json=maxBackoff,proto3" json:"max_backoff,omitempty"`
// The time between retries will double `max_doublings` times.
//
// A task's retry interval starts at
// [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff], then doubles
// `max_doublings` times, then increases linearly, and finally
// retries retries at intervals of
// [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] up to
// [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times.
//
// For example, if [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] is 10s,
// [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] is 300s, and
// `max_doublings` is 3, then the a task will first be retried in
// 10s. The retry interval will double three times, and then
// increase linearly by 2^3 * 10s. Finally, the task will retry at
// intervals of [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] until the
// task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts]
// times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
// 240s, 300s, 300s, ....
//
// If unspecified when the queue is created, Cloud Tasks will pick the
// default.
//
// This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
//
//
// This field has the same meaning as
// [max_doublings in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
MaxDoublings int32 `protobuf:"varint,6,opt,name=max_doublings,json=maxDoublings,proto3" json:"max_doublings,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RetryConfig) Reset() { *m = RetryConfig{} }
func (m *RetryConfig) String() string { return proto.CompactTextString(m) }
func (*RetryConfig) ProtoMessage() {}
func (*RetryConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_queue_c4ed304f84e85348, []int{2}
}
func (m *RetryConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RetryConfig.Unmarshal(m, b)
}
func (m *RetryConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RetryConfig.Marshal(b, m, deterministic)
}
func (dst *RetryConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_RetryConfig.Merge(dst, src)
}
func (m *RetryConfig) XXX_Size() int {
return xxx_messageInfo_RetryConfig.Size(m)
}
func (m *RetryConfig) XXX_DiscardUnknown() {
xxx_messageInfo_RetryConfig.DiscardUnknown(m)
}
var xxx_messageInfo_RetryConfig proto.InternalMessageInfo
type isRetryConfig_NumAttempts interface {
isRetryConfig_NumAttempts()
}
type RetryConfig_MaxAttempts struct {
MaxAttempts int32 `protobuf:"varint,1,opt,name=max_attempts,json=maxAttempts,proto3,oneof"`
}
type RetryConfig_UnlimitedAttempts struct {
UnlimitedAttempts bool `protobuf:"varint,2,opt,name=unlimited_attempts,json=unlimitedAttempts,proto3,oneof"`
}
func (*RetryConfig_MaxAttempts) isRetryConfig_NumAttempts() {}
func (*RetryConfig_UnlimitedAttempts) isRetryConfig_NumAttempts() {}
func (m *RetryConfig) GetNumAttempts() isRetryConfig_NumAttempts {
if m != nil {
return m.NumAttempts
}
return nil
}
func (m *RetryConfig) GetMaxAttempts() int32 {
if x, ok := m.GetNumAttempts().(*RetryConfig_MaxAttempts); ok {
return x.MaxAttempts
}
return 0
}
func (m *RetryConfig) GetUnlimitedAttempts() bool {
if x, ok := m.GetNumAttempts().(*RetryConfig_UnlimitedAttempts); ok {
return x.UnlimitedAttempts
}
return false
}
func (m *RetryConfig) GetMaxRetryDuration() *duration.Duration {
if m != nil {
return m.MaxRetryDuration
}
return nil
}
func (m *RetryConfig) GetMinBackoff() *duration.Duration {
if m != nil {
return m.MinBackoff
}
return nil
}
func (m *RetryConfig) GetMaxBackoff() *duration.Duration {
if m != nil {
return m.MaxBackoff
}
return nil
}
func (m *RetryConfig) GetMaxDoublings() int32 {
if m != nil {
return m.MaxDoublings
}
return 0
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*RetryConfig) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _RetryConfig_OneofMarshaler, _RetryConfig_OneofUnmarshaler, _RetryConfig_OneofSizer, []interface{}{
(*RetryConfig_MaxAttempts)(nil),
(*RetryConfig_UnlimitedAttempts)(nil),
}
}
func _RetryConfig_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*RetryConfig)
// num_attempts
switch x := m.NumAttempts.(type) {
case *RetryConfig_MaxAttempts:
b.EncodeVarint(1<<3 | proto.WireVarint)
b.EncodeVarint(uint64(x.MaxAttempts))
case *RetryConfig_UnlimitedAttempts:
t := uint64(0)
if x.UnlimitedAttempts {
t = 1
}
b.EncodeVarint(2<<3 | proto.WireVarint)
b.EncodeVarint(t)
case nil:
default:
return fmt.Errorf("RetryConfig.NumAttempts has unexpected type %T", x)
}
return nil
}
func _RetryConfig_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*RetryConfig)
switch tag {
case 1: // num_attempts.max_attempts
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.NumAttempts = &RetryConfig_MaxAttempts{int32(x)}
return true, err
case 2: // num_attempts.unlimited_attempts
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.NumAttempts = &RetryConfig_UnlimitedAttempts{x != 0}
return true, err
default:
return false, nil
}
}
func _RetryConfig_OneofSizer(msg proto.Message) (n int) {
m := msg.(*RetryConfig)
// num_attempts
switch x := m.NumAttempts.(type) {
case *RetryConfig_MaxAttempts:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(x.MaxAttempts))
case *RetryConfig_UnlimitedAttempts:
n += 1 // tag and wire
n += 1
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
func init() {
proto.RegisterType((*Queue)(nil), "google.cloud.tasks.v2beta2.Queue")
proto.RegisterType((*RateLimits)(nil), "google.cloud.tasks.v2beta2.RateLimits")
proto.RegisterType((*RetryConfig)(nil), "google.cloud.tasks.v2beta2.RetryConfig")
proto.RegisterEnum("google.cloud.tasks.v2beta2.Queue_State", Queue_State_name, Queue_State_value)
}
func init() {
proto.RegisterFile("google/cloud/tasks/v2beta2/queue.proto", fileDescriptor_queue_c4ed304f84e85348)
}
var fileDescriptor_queue_c4ed304f84e85348 = []byte{
// 702 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0xcb, 0x6e, 0xdb, 0x3a,
0x10, 0x86, 0xad, 0x24, 0xca, 0x65, 0xe4, 0x04, 0x0e, 0xcf, 0x05, 0x3e, 0x3e, 0x45, 0x62, 0x38,
0x45, 0xe2, 0x95, 0x54, 0xa4, 0xab, 0xb6, 0x28, 0x0a, 0x3b, 0x72, 0x63, 0x17, 0x81, 0xe1, 0xca,
0xce, 0xa6, 0x1b, 0x82, 0x96, 0x69, 0x45, 0x88, 0x44, 0xb2, 0x12, 0x55, 0x38, 0x79, 0xa4, 0x6e,
0xfb, 0x34, 0x7d, 0x9b, 0x82, 0xd4, 0x25, 0x45, 0xd3, 0x3a, 0x3b, 0x73, 0xe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db, 0x77, 0xcb, 0x58, 0xff, 0x00, 0xea, 0x2c, 0x8b, 0xab,
0x0b, 0xe9, 0x73, 0x38, 0xf2, 0x79, 0xbc, 0x66, 0x9d, 0xfb, 0xa0, 0xf7, 0x79, 0xa2, 0x4a, 0x4f,
0x8c, 0x4f, 0xef, 0x0a, 0x32, 0xe0, 0x11, 0x61, 0x81, 0xcd, 0x93, 0xc0, 0x09, 0x28, 0xd3, 0x8d,
0x39, 0x79, 0x8a, 0x88, 0x30, 0xfd, 0xdd, 0xff, 0xde, 0x1b, 0x7d, 0x9a, 0x6f, 0x6b, 0xf6, 0xe5,
0x8f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd6, 0xd1, 0xaa, 0xde, 0x84, 0x05, 0x00, 0x00,
}

View File

@ -0,0 +1,626 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/tasks/v2beta2/target.proto
package tasks // import "google.golang.org/genproto/googleapis/cloud/tasks/v2beta2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/golang/protobuf/ptypes/duration"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The HTTP method used to execute the task.
type HttpMethod int32
const (
// HTTP method unspecified
HttpMethod_HTTP_METHOD_UNSPECIFIED HttpMethod = 0
// HTTP POST
HttpMethod_POST HttpMethod = 1
// HTTP GET
HttpMethod_GET HttpMethod = 2
// HTTP HEAD
HttpMethod_HEAD HttpMethod = 3
// HTTP PUT
HttpMethod_PUT HttpMethod = 4
// HTTP DELETE
HttpMethod_DELETE HttpMethod = 5
)
var HttpMethod_name = map[int32]string{
0: "HTTP_METHOD_UNSPECIFIED",
1: "POST",
2: "GET",
3: "HEAD",
4: "PUT",
5: "DELETE",
}
var HttpMethod_value = map[string]int32{
"HTTP_METHOD_UNSPECIFIED": 0,
"POST": 1,
"GET": 2,
"HEAD": 3,
"PUT": 4,
"DELETE": 5,
}
func (x HttpMethod) String() string {
return proto.EnumName(HttpMethod_name, int32(x))
}
func (HttpMethod) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_target_97396313f988895e, []int{0}
}
// Pull target.
type PullTarget struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PullTarget) Reset() { *m = PullTarget{} }
func (m *PullTarget) String() string { return proto.CompactTextString(m) }
func (*PullTarget) ProtoMessage() {}
func (*PullTarget) Descriptor() ([]byte, []int) {
return fileDescriptor_target_97396313f988895e, []int{0}
}
func (m *PullTarget) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PullTarget.Unmarshal(m, b)
}
func (m *PullTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PullTarget.Marshal(b, m, deterministic)
}
func (dst *PullTarget) XXX_Merge(src proto.Message) {
xxx_messageInfo_PullTarget.Merge(dst, src)
}
func (m *PullTarget) XXX_Size() int {
return xxx_messageInfo_PullTarget.Size(m)
}
func (m *PullTarget) XXX_DiscardUnknown() {
xxx_messageInfo_PullTarget.DiscardUnknown(m)
}
var xxx_messageInfo_PullTarget proto.InternalMessageInfo
// The pull message contains data that can be used by the caller of
// [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task.
//
// This proto can only be used for tasks in a queue which has
// [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] set.
type PullMessage struct {
// A data payload consumed by the worker to execute the task.
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
// The task's tag.
//
// Tags allow similar tasks to be processed in a batch. If you label
// tasks with a tag, your worker can
// [lease tasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] with the same tag using
// [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter]. For example, if you want to
// aggregate the events associated with a specific user once a day,
// you could tag tasks with the user ID.
//
// The task's tag can only be set when the
// [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
//
// The tag must be less than 500 characters.
//
// SDK compatibility: Although the SDK allows tags to be either
// string or [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
// only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
// encoded, the tag will be empty when the task is returned by Cloud Tasks.
Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PullMessage) Reset() { *m = PullMessage{} }
func (m *PullMessage) String() string { return proto.CompactTextString(m) }
func (*PullMessage) ProtoMessage() {}
func (*PullMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_target_97396313f988895e, []int{1}
}
func (m *PullMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PullMessage.Unmarshal(m, b)
}
func (m *PullMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PullMessage.Marshal(b, m, deterministic)
}
func (dst *PullMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_PullMessage.Merge(dst, src)
}
func (m *PullMessage) XXX_Size() int {
return xxx_messageInfo_PullMessage.Size(m)
}
func (m *PullMessage) XXX_DiscardUnknown() {
xxx_messageInfo_PullMessage.DiscardUnknown(m)
}
var xxx_messageInfo_PullMessage proto.InternalMessageInfo
func (m *PullMessage) GetPayload() []byte {
if m != nil {
return m.Payload
}
return nil
}
func (m *PullMessage) GetTag() string {
if m != nil {
return m.Tag
}
return ""
}
// App Engine HTTP target.
//
// The task will be delivered to the App Engine application hostname
// specified by its [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget] and [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest].
// The documentation for [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] explains how the
// task's host URL is constructed.
//
// Using [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget] requires
// [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
// Google IAM permission for the project
// and the following scope:
//
// `https://www.googleapis.com/auth/cloud-platform`
type AppEngineHttpTarget struct {
// Overrides for the
// [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
//
// If set, `app_engine_routing_override` is used for all tasks in
// the queue, no matter what the setting is for the
// [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
AppEngineRoutingOverride *AppEngineRouting `protobuf:"bytes,1,opt,name=app_engine_routing_override,json=appEngineRoutingOverride,proto3" json:"app_engine_routing_override,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AppEngineHttpTarget) Reset() { *m = AppEngineHttpTarget{} }
func (m *AppEngineHttpTarget) String() string { return proto.CompactTextString(m) }
func (*AppEngineHttpTarget) ProtoMessage() {}
func (*AppEngineHttpTarget) Descriptor() ([]byte, []int) {
return fileDescriptor_target_97396313f988895e, []int{2}
}
func (m *AppEngineHttpTarget) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AppEngineHttpTarget.Unmarshal(m, b)
}
func (m *AppEngineHttpTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AppEngineHttpTarget.Marshal(b, m, deterministic)
}
func (dst *AppEngineHttpTarget) XXX_Merge(src proto.Message) {
xxx_messageInfo_AppEngineHttpTarget.Merge(dst, src)
}
func (m *AppEngineHttpTarget) XXX_Size() int {
return xxx_messageInfo_AppEngineHttpTarget.Size(m)
}
func (m *AppEngineHttpTarget) XXX_DiscardUnknown() {
xxx_messageInfo_AppEngineHttpTarget.DiscardUnknown(m)
}
var xxx_messageInfo_AppEngineHttpTarget proto.InternalMessageInfo
func (m *AppEngineHttpTarget) GetAppEngineRoutingOverride() *AppEngineRouting {
if m != nil {
return m.AppEngineRoutingOverride
}
return nil
}
// App Engine HTTP request.
//
// The message defines the HTTP request that is sent to an App Engine app when
// the task is dispatched.
//
// This proto can only be used for tasks in a queue which has
// [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] set.
//
// Using [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] requires
// [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
// Google IAM permission for the project
// and the following scope:
//
// `https://www.googleapis.com/auth/cloud-platform`
//
// The task will be delivered to the App Engine app which belongs to the same
// project as the queue. For more information, see
// [How Requests are Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
// and how routing is affected by
// [dispatch files](https://cloud.google.com/appengine/docs/python/config/dispatchref).
//
// The [AppEngineRouting][google.cloud.tasks.v2beta2.AppEngineRouting] used to construct the URL that the task is
// delivered to can be set at the queue-level or task-level:
//
// * If set,
// [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override]
// is used for all tasks in the queue, no matter what the setting
// is for the
// [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
//
//
// The `url` that the task will be sent to is:
//
// * `url =` [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] `+`
// [relative_url][google.cloud.tasks.v2beta2.AppEngineHttpRequest.relative_url]
//
// The task attempt has succeeded if the app's request handler returns
// an HTTP response code in the range [`200` - `299`]. `503` is
// considered an App Engine system error instead of an application
// error. Requests returning error `503` will be retried regardless of
// retry configuration and not counted against retry counts.
// Any other response code or a failure to receive a response before the
// deadline is a failed attempt.
type AppEngineHttpRequest struct {
// The HTTP method to use for the request. The default is POST.
//
// The app's request handler for the task's target URL must be able to handle
// HTTP requests with this http_method, otherwise the task attempt will fail
// with error code 405 (Method Not Allowed). See
// [Writing a push task request handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
// and the documentation for the request handlers in the language your app is
// written in e.g.
// [Python Request Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass).
HttpMethod HttpMethod `protobuf:"varint,1,opt,name=http_method,json=httpMethod,proto3,enum=google.cloud.tasks.v2beta2.HttpMethod" json:"http_method,omitempty"`
// Task-level setting for App Engine routing.
//
// If set,
// [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override]
// is used for all tasks in the queue, no matter what the setting is for the
// [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
AppEngineRouting *AppEngineRouting `protobuf:"bytes,2,opt,name=app_engine_routing,json=appEngineRouting,proto3" json:"app_engine_routing,omitempty"`
// The relative URL.
//
// The relative URL must begin with "/" and must be a valid HTTP relative URL.
// It can contain a path and query string arguments.
// If the relative URL is empty, then the root path "/" will be used.
// No spaces are allowed, and the maximum length allowed is 2083 characters.
RelativeUrl string `protobuf:"bytes,3,opt,name=relative_url,json=relativeUrl,proto3" json:"relative_url,omitempty"`
// HTTP request headers.
//
// This map contains the header field names and values.
// Headers can be set when the
// [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
// Repeated headers are not supported but a header value can contain commas.
//
// Cloud Tasks sets some headers to default values:
//
// * `User-Agent`: By default, this header is
// `"AppEngine-Google; (+http://code.google.com/appengine)"`.
// This header can be modified, but Cloud Tasks will append
// `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
// modified `User-Agent`.
//
// If the task has a [payload][google.cloud.tasks.v2beta2.AppEngineHttpRequest.payload], Cloud
// Tasks sets the following headers:
//
// * `Content-Type`: By default, the `Content-Type` header is set to
// `"application/octet-stream"`. The default can be overridden by explicitly
// setting `Content-Type` to a particular media type when the
// [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
// For example, `Content-Type` can be set to `"application/json"`.
// * `Content-Length`: This is computed by Cloud Tasks. This value is
// output only. It cannot be changed.
//
// The headers below cannot be set or overridden:
//
// * `Host`
// * `X-Google-*`
// * `X-AppEngine-*`
//
// In addition, Cloud Tasks sets some headers when the task is dispatched,
// such as headers containing information about the task; see
// [request headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
// These headers are set only when the task is dispatched, so they are not
// visible when the task is returned in a Cloud Tasks response.
//
// Although there is no specific limit for the maximum number of headers or
// the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta2.Task]. For more
// information, see the [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] documentation.
Headers map[string]string `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Payload.
//
// The payload will be sent as the HTTP message body. A message
// body, and thus a payload, is allowed only if the HTTP method is
// POST or PUT. It is an error to set a data payload on a task with
// an incompatible [HttpMethod][google.cloud.tasks.v2beta2.HttpMethod].
Payload []byte `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AppEngineHttpRequest) Reset() { *m = AppEngineHttpRequest{} }
func (m *AppEngineHttpRequest) String() string { return proto.CompactTextString(m) }
func (*AppEngineHttpRequest) ProtoMessage() {}
func (*AppEngineHttpRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_target_97396313f988895e, []int{3}
}
func (m *AppEngineHttpRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AppEngineHttpRequest.Unmarshal(m, b)
}
func (m *AppEngineHttpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AppEngineHttpRequest.Marshal(b, m, deterministic)
}
func (dst *AppEngineHttpRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_AppEngineHttpRequest.Merge(dst, src)
}
func (m *AppEngineHttpRequest) XXX_Size() int {
return xxx_messageInfo_AppEngineHttpRequest.Size(m)
}
func (m *AppEngineHttpRequest) XXX_DiscardUnknown() {
xxx_messageInfo_AppEngineHttpRequest.DiscardUnknown(m)
}
var xxx_messageInfo_AppEngineHttpRequest proto.InternalMessageInfo
func (m *AppEngineHttpRequest) GetHttpMethod() HttpMethod {
if m != nil {
return m.HttpMethod
}
return HttpMethod_HTTP_METHOD_UNSPECIFIED
}
func (m *AppEngineHttpRequest) GetAppEngineRouting() *AppEngineRouting {
if m != nil {
return m.AppEngineRouting
}
return nil
}
func (m *AppEngineHttpRequest) GetRelativeUrl() string {
if m != nil {
return m.RelativeUrl
}
return ""
}
func (m *AppEngineHttpRequest) GetHeaders() map[string]string {
if m != nil {
return m.Headers
}
return nil
}
func (m *AppEngineHttpRequest) GetPayload() []byte {
if m != nil {
return m.Payload
}
return nil
}
// App Engine Routing.
//
// For more information about services, versions, and instances see
// [An Overview of App Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
// [Microservices Architecture on Google App Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
// [App Engine Standard request routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
// and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
type AppEngineRouting struct {
// App service.
//
// By default, the task is sent to the service which is the default
// service when the task is attempted.
//
// For some queues or tasks which were created using the App Engine
// Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable
// into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
// [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
// [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks
// which were created using the App Engine SDK use a custom domain
// name; custom domains are not parsed by Cloud Tasks. If
// [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then
// [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
// [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
// [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// App version.
//
// By default, the task is sent to the version which is the default
// version when the task is attempted.
//
// For some queues or tasks which were created using the App Engine
// Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable
// into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
// [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
// [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks
// which were created using the App Engine SDK use a custom domain
// name; custom domains are not parsed by Cloud Tasks. If
// [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then
// [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
// [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
// [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// App instance.
//
// By default, the task is sent to an instance which is available when
// the task is attempted.
//
// Requests can only be sent to a specific instance if
// [manual scaling is used in App Engine Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
// App Engine Flex does not support instances. For more information, see
// [App Engine Standard request routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
// and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
Instance string `protobuf:"bytes,3,opt,name=instance,proto3" json:"instance,omitempty"`
// Output only. The host that the task is sent to.
//
// For more information, see
// [How Requests are Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
//
// The host is constructed as:
//
//
// * `host = [application_domain_name]`</br>
// `| [service] + '.' + [application_domain_name]`</br>
// `| [version] + '.' + [application_domain_name]`</br>
// `| [version_dot_service]+ '.' + [application_domain_name]`</br>
// `| [instance] + '.' + [application_domain_name]`</br>
// `| [instance_dot_service] + '.' + [application_domain_name]`</br>
// `| [instance_dot_version] + '.' + [application_domain_name]`</br>
// `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
//
// * `application_domain_name` = The domain name of the app, for
// example <app-id>.appspot.com, which is associated with the
// queue's project ID. Some tasks which were created using the App Engine
// SDK use a custom domain name.
//
// * `service =` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
//
// * `version =` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
//
// * `version_dot_service =`
// [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
// [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
//
// * `instance =` [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]
//
// * `instance_dot_service =`
// [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
// [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
//
// * `instance_dot_version =`
// [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
// [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
//
// * `instance_dot_version_dot_service =`
// [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
// [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
// [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
//
// If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] is empty, then the task will be sent
// to the service which is the default service when the task is attempted.
//
// If [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] is empty, then the task will be sent
// to the version which is the default version when the task is attempted.
//
// If [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is empty, then the task
// will be sent to an instance which is available when the task is
// attempted.
//
// If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
// [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], or
// [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is invalid, then the task
// will be sent to the default version of the default service when
// the task is attempted.
Host string `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AppEngineRouting) Reset() { *m = AppEngineRouting{} }
func (m *AppEngineRouting) String() string { return proto.CompactTextString(m) }
func (*AppEngineRouting) ProtoMessage() {}
func (*AppEngineRouting) Descriptor() ([]byte, []int) {
return fileDescriptor_target_97396313f988895e, []int{4}
}
func (m *AppEngineRouting) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AppEngineRouting.Unmarshal(m, b)
}
func (m *AppEngineRouting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AppEngineRouting.Marshal(b, m, deterministic)
}
func (dst *AppEngineRouting) XXX_Merge(src proto.Message) {
xxx_messageInfo_AppEngineRouting.Merge(dst, src)
}
func (m *AppEngineRouting) XXX_Size() int {
return xxx_messageInfo_AppEngineRouting.Size(m)
}
func (m *AppEngineRouting) XXX_DiscardUnknown() {
xxx_messageInfo_AppEngineRouting.DiscardUnknown(m)
}
var xxx_messageInfo_AppEngineRouting proto.InternalMessageInfo
func (m *AppEngineRouting) GetService() string {
if m != nil {
return m.Service
}
return ""
}
func (m *AppEngineRouting) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
func (m *AppEngineRouting) GetInstance() string {
if m != nil {
return m.Instance
}
return ""
}
func (m *AppEngineRouting) GetHost() string {
if m != nil {
return m.Host
}
return ""
}
func init() {
proto.RegisterType((*PullTarget)(nil), "google.cloud.tasks.v2beta2.PullTarget")
proto.RegisterType((*PullMessage)(nil), "google.cloud.tasks.v2beta2.PullMessage")
proto.RegisterType((*AppEngineHttpTarget)(nil), "google.cloud.tasks.v2beta2.AppEngineHttpTarget")
proto.RegisterType((*AppEngineHttpRequest)(nil), "google.cloud.tasks.v2beta2.AppEngineHttpRequest")
proto.RegisterMapType((map[string]string)(nil), "google.cloud.tasks.v2beta2.AppEngineHttpRequest.HeadersEntry")
proto.RegisterType((*AppEngineRouting)(nil), "google.cloud.tasks.v2beta2.AppEngineRouting")
proto.RegisterEnum("google.cloud.tasks.v2beta2.HttpMethod", HttpMethod_name, HttpMethod_value)
}
func init() {
proto.RegisterFile("google/cloud/tasks/v2beta2/target.proto", fileDescriptor_target_97396313f988895e)
}
var fileDescriptor_target_97396313f988895e = []byte{
// 557 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcf, 0x6f, 0xd3, 0x4c,
0x10, 0xfd, 0x5c, 0xa7, 0xbf, 0xc6, 0xd1, 0x27, 0x6b, 0xa9, 0x84, 0x95, 0xa2, 0xaa, 0xe4, 0x00,
0x15, 0x42, 0xb6, 0x14, 0x2e, 0x50, 0x84, 0x50, 0x4b, 0x4c, 0x53, 0x89, 0x12, 0xcb, 0x75, 0x84,
0x54, 0x0e, 0xd6, 0x26, 0x19, 0x1c, 0x2b, 0xee, 0xae, 0xd9, 0x5d, 0x5b, 0xca, 0x95, 0x3b, 0xff,
0x33, 0xf2, 0xda, 0x09, 0x69, 0x80, 0x0a, 0x6e, 0xf3, 0x66, 0xde, 0xbc, 0xc9, 0xbc, 0xf1, 0x06,
0x9e, 0x26, 0x9c, 0x27, 0x19, 0x7a, 0x93, 0x8c, 0x17, 0x53, 0x4f, 0x51, 0x39, 0x97, 0x5e, 0xd9,
0x1b, 0xa3, 0xa2, 0x3d, 0x4f, 0x51, 0x91, 0xa0, 0x72, 0x73, 0xc1, 0x15, 0x27, 0x9d, 0x9a, 0xe8,
0x6a, 0xa2, 0xab, 0x89, 0x6e, 0x43, 0xec, 0x3c, 0x6a, 0x44, 0x68, 0x9e, 0x7a, 0x94, 0x31, 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0xfb, 0x3c,
0x87, 0xa3, 0x09, 0xbf, 0xbd, 0xc7, 0xf7, 0x73, 0xab, 0xfe, 0xf6, 0x83, 0xea, 0x85, 0x05, 0xc6,
0xcd, 0xdb, 0x86, 0x9a, 0xf0, 0x8c, 0xb2, 0xc4, 0xe5, 0x22, 0xf1, 0x12, 0x64, 0xfa, 0xfd, 0x79,
0x75, 0x89, 0xe6, 0xa9, 0xfc, 0xdd, 0xbf, 0xc0, 0x6b, 0x8d, 0xc6, 0x3b, 0x9a, 0xfb, 0xe2, 0x47,
0x00, 0x00, 0x00, 0xff, 0xff, 0xbb, 0x5d, 0x40, 0x26, 0x30, 0x04, 0x00, 0x00,
}

View File

@ -0,0 +1,504 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/tasks/v2beta2/task.proto
package tasks // import "google.golang.org/genproto/googleapis/cloud/tasks/v2beta2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import status "google.golang.org/genproto/googleapis/rpc/status"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The view specifies a subset of [Task][google.cloud.tasks.v2beta2.Task] data.
//
// When a task is returned in a response, not all
// information is retrieved by default because some data, such as
// payloads, might be desirable to return only when needed because
// of its large size or because of the sensitivity of data that it
// contains.
type Task_View int32
const (
// Unspecified. Defaults to BASIC.
Task_VIEW_UNSPECIFIED Task_View = 0
// The basic view omits fields which can be large or can contain
// sensitive data.
//
// This view does not include the
// ([payload in AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] and
// [payload in PullMessage][google.cloud.tasks.v2beta2.PullMessage.payload]). These payloads are
// desirable to return only when needed, because they can be large
// and because of the sensitivity of the data that you choose to
// store in it.
Task_BASIC Task_View = 1
// All information is returned.
//
// Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
// `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
// permission on the [Queue][google.cloud.tasks.v2beta2.Queue] resource.
Task_FULL Task_View = 2
)
var Task_View_name = map[int32]string{
0: "VIEW_UNSPECIFIED",
1: "BASIC",
2: "FULL",
}
var Task_View_value = map[string]int32{
"VIEW_UNSPECIFIED": 0,
"BASIC": 1,
"FULL": 2,
}
func (x Task_View) String() string {
return proto.EnumName(Task_View_name, int32(x))
}
func (Task_View) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_task_ce8481b1dd8c8330, []int{0, 0}
}
// A unit of scheduled work.
type Task struct {
// Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
//
// The task name.
//
// The task name must have the following format:
// `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
//
// * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
// hyphens (-), colons (:), or periods (.).
// For more information, see
// [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
// * `LOCATION_ID` is the canonical ID for the task's location.
// The list of available locations can be obtained by calling
// [ListLocations][google.cloud.location.Locations.ListLocations].
// For more information, see https://cloud.google.com/about/locations/.
// * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
// hyphens (-). The maximum length is 100 characters.
// * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
// hyphens (-), or underscores (_). The maximum length is 500 characters.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required.
//
// The task's payload is used by the task's target to process the task.
// A payload is valid only if it is compatible with the queue's target.
//
// Types that are valid to be assigned to PayloadType:
// *Task_AppEngineHttpRequest
// *Task_PullMessage
PayloadType isTask_PayloadType `protobuf_oneof:"payload_type"`
// The time when the task is scheduled to be attempted.
//
// For App Engine queues, this is when the task will be attempted or retried.
//
// For pull queues, this is the time when the task is available to
// be leased; if a task is currently leased, this is the time when
// the current lease expires, that is, the time that the task was
// leased plus the [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration].
//
// `schedule_time` will be truncated to the nearest microsecond.
ScheduleTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"`
// Output only. The time that the task was created.
//
// `create_time` will be truncated to the nearest second.
CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The task status.
Status *TaskStatus `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
// Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] has
// been returned.
View Task_View `protobuf:"varint,8,opt,name=view,proto3,enum=google.cloud.tasks.v2beta2.Task_View" json:"view,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Task) Reset() { *m = Task{} }
func (m *Task) String() string { return proto.CompactTextString(m) }
func (*Task) ProtoMessage() {}
func (*Task) Descriptor() ([]byte, []int) {
return fileDescriptor_task_ce8481b1dd8c8330, []int{0}
}
func (m *Task) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Task.Unmarshal(m, b)
}
func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Task.Marshal(b, m, deterministic)
}
func (dst *Task) XXX_Merge(src proto.Message) {
xxx_messageInfo_Task.Merge(dst, src)
}
func (m *Task) XXX_Size() int {
return xxx_messageInfo_Task.Size(m)
}
func (m *Task) XXX_DiscardUnknown() {
xxx_messageInfo_Task.DiscardUnknown(m)
}
var xxx_messageInfo_Task proto.InternalMessageInfo
func (m *Task) GetName() string {
if m != nil {
return m.Name
}
return ""
}
type isTask_PayloadType interface {
isTask_PayloadType()
}
type Task_AppEngineHttpRequest struct {
AppEngineHttpRequest *AppEngineHttpRequest `protobuf:"bytes,3,opt,name=app_engine_http_request,json=appEngineHttpRequest,proto3,oneof"`
}
type Task_PullMessage struct {
PullMessage *PullMessage `protobuf:"bytes,4,opt,name=pull_message,json=pullMessage,proto3,oneof"`
}
func (*Task_AppEngineHttpRequest) isTask_PayloadType() {}
func (*Task_PullMessage) isTask_PayloadType() {}
func (m *Task) GetPayloadType() isTask_PayloadType {
if m != nil {
return m.PayloadType
}
return nil
}
func (m *Task) GetAppEngineHttpRequest() *AppEngineHttpRequest {
if x, ok := m.GetPayloadType().(*Task_AppEngineHttpRequest); ok {
return x.AppEngineHttpRequest
}
return nil
}
func (m *Task) GetPullMessage() *PullMessage {
if x, ok := m.GetPayloadType().(*Task_PullMessage); ok {
return x.PullMessage
}
return nil
}
func (m *Task) GetScheduleTime() *timestamp.Timestamp {
if m != nil {
return m.ScheduleTime
}
return nil
}
func (m *Task) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *Task) GetStatus() *TaskStatus {
if m != nil {
return m.Status
}
return nil
}
func (m *Task) GetView() Task_View {
if m != nil {
return m.View
}
return Task_VIEW_UNSPECIFIED
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Task) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Task_OneofMarshaler, _Task_OneofUnmarshaler, _Task_OneofSizer, []interface{}{
(*Task_AppEngineHttpRequest)(nil),
(*Task_PullMessage)(nil),
}
}
func _Task_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Task)
// payload_type
switch x := m.PayloadType.(type) {
case *Task_AppEngineHttpRequest:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.AppEngineHttpRequest); err != nil {
return err
}
case *Task_PullMessage:
b.EncodeVarint(4<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.PullMessage); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Task.PayloadType has unexpected type %T", x)
}
return nil
}
func _Task_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Task)
switch tag {
case 3: // payload_type.app_engine_http_request
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(AppEngineHttpRequest)
err := b.DecodeMessage(msg)
m.PayloadType = &Task_AppEngineHttpRequest{msg}
return true, err
case 4: // payload_type.pull_message
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(PullMessage)
err := b.DecodeMessage(msg)
m.PayloadType = &Task_PullMessage{msg}
return true, err
default:
return false, nil
}
}
func _Task_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Task)
// payload_type
switch x := m.PayloadType.(type) {
case *Task_AppEngineHttpRequest:
s := proto.Size(x.AppEngineHttpRequest)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Task_PullMessage:
s := proto.Size(x.PullMessage)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Status of the task.
type TaskStatus struct {
// Output only. The number of attempts dispatched.
//
// This count includes tasks which have been dispatched but haven't
// received a response.
AttemptDispatchCount int32 `protobuf:"varint,1,opt,name=attempt_dispatch_count,json=attemptDispatchCount,proto3" json:"attempt_dispatch_count,omitempty"`
// Output only. The number of attempts which have received a response.
//
// This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
AttemptResponseCount int32 `protobuf:"varint,2,opt,name=attempt_response_count,json=attemptResponseCount,proto3" json:"attempt_response_count,omitempty"`
// Output only. The status of the task's first attempt.
//
// Only [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] will be set.
// The other [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is not retained by Cloud Tasks.
//
// This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
FirstAttemptStatus *AttemptStatus `protobuf:"bytes,3,opt,name=first_attempt_status,json=firstAttemptStatus,proto3" json:"first_attempt_status,omitempty"`
// Output only. The status of the task's last attempt.
//
// This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
LastAttemptStatus *AttemptStatus `protobuf:"bytes,4,opt,name=last_attempt_status,json=lastAttemptStatus,proto3" json:"last_attempt_status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TaskStatus) Reset() { *m = TaskStatus{} }
func (m *TaskStatus) String() string { return proto.CompactTextString(m) }
func (*TaskStatus) ProtoMessage() {}
func (*TaskStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_task_ce8481b1dd8c8330, []int{1}
}
func (m *TaskStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TaskStatus.Unmarshal(m, b)
}
func (m *TaskStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TaskStatus.Marshal(b, m, deterministic)
}
func (dst *TaskStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_TaskStatus.Merge(dst, src)
}
func (m *TaskStatus) XXX_Size() int {
return xxx_messageInfo_TaskStatus.Size(m)
}
func (m *TaskStatus) XXX_DiscardUnknown() {
xxx_messageInfo_TaskStatus.DiscardUnknown(m)
}
var xxx_messageInfo_TaskStatus proto.InternalMessageInfo
func (m *TaskStatus) GetAttemptDispatchCount() int32 {
if m != nil {
return m.AttemptDispatchCount
}
return 0
}
func (m *TaskStatus) GetAttemptResponseCount() int32 {
if m != nil {
return m.AttemptResponseCount
}
return 0
}
func (m *TaskStatus) GetFirstAttemptStatus() *AttemptStatus {
if m != nil {
return m.FirstAttemptStatus
}
return nil
}
func (m *TaskStatus) GetLastAttemptStatus() *AttemptStatus {
if m != nil {
return m.LastAttemptStatus
}
return nil
}
// The status of a task attempt.
type AttemptStatus struct {
// Output only. The time that this attempt was scheduled.
//
// `schedule_time` will be truncated to the nearest microsecond.
ScheduleTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"`
// Output only. The time that this attempt was dispatched.
//
// `dispatch_time` will be truncated to the nearest microsecond.
DispatchTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=dispatch_time,json=dispatchTime,proto3" json:"dispatch_time,omitempty"`
// Output only. The time that this attempt response was received.
//
// `response_time` will be truncated to the nearest microsecond.
ResponseTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=response_time,json=responseTime,proto3" json:"response_time,omitempty"`
// Output only. The response from the target for this attempt.
//
// If the task has not been attempted or the task is currently running
// then the response status is unset.
ResponseStatus *status.Status `protobuf:"bytes,4,opt,name=response_status,json=responseStatus,proto3" json:"response_status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AttemptStatus) Reset() { *m = AttemptStatus{} }
func (m *AttemptStatus) String() string { return proto.CompactTextString(m) }
func (*AttemptStatus) ProtoMessage() {}
func (*AttemptStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_task_ce8481b1dd8c8330, []int{2}
}
func (m *AttemptStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AttemptStatus.Unmarshal(m, b)
}
func (m *AttemptStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AttemptStatus.Marshal(b, m, deterministic)
}
func (dst *AttemptStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_AttemptStatus.Merge(dst, src)
}
func (m *AttemptStatus) XXX_Size() int {
return xxx_messageInfo_AttemptStatus.Size(m)
}
func (m *AttemptStatus) XXX_DiscardUnknown() {
xxx_messageInfo_AttemptStatus.DiscardUnknown(m)
}
var xxx_messageInfo_AttemptStatus proto.InternalMessageInfo
func (m *AttemptStatus) GetScheduleTime() *timestamp.Timestamp {
if m != nil {
return m.ScheduleTime
}
return nil
}
func (m *AttemptStatus) GetDispatchTime() *timestamp.Timestamp {
if m != nil {
return m.DispatchTime
}
return nil
}
func (m *AttemptStatus) GetResponseTime() *timestamp.Timestamp {
if m != nil {
return m.ResponseTime
}
return nil
}
func (m *AttemptStatus) GetResponseStatus() *status.Status {
if m != nil {
return m.ResponseStatus
}
return nil
}
func init() {
proto.RegisterType((*Task)(nil), "google.cloud.tasks.v2beta2.Task")
proto.RegisterType((*TaskStatus)(nil), "google.cloud.tasks.v2beta2.TaskStatus")
proto.RegisterType((*AttemptStatus)(nil), "google.cloud.tasks.v2beta2.AttemptStatus")
proto.RegisterEnum("google.cloud.tasks.v2beta2.Task_View", Task_View_name, Task_View_value)
}
func init() {
proto.RegisterFile("google/cloud/tasks/v2beta2/task.proto", fileDescriptor_task_ce8481b1dd8c8330)
}
var fileDescriptor_task_ce8481b1dd8c8330 = []byte{
// 601 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x5f, 0x6f, 0xda, 0x3c,
0x14, 0xc6, 0x1b, 0x9a, 0xf6, 0x2d, 0xe6, 0xcf, 0xcb, 0x3c, 0xb4, 0x46, 0x68, 0xda, 0x10, 0x52,
0x57, 0x76, 0x93, 0x6c, 0x6c, 0x37, 0x53, 0xa5, 0xa1, 0x42, 0xa9, 0x40, 0x62, 0x13, 0x0a, 0x6d,
0xa7, 0x6d, 0x17, 0x91, 0x09, 0x6e, 0x88, 0x9a, 0xc4, 0x5e, 0x7c, 0xd2, 0xaa, 0x9f, 0xa2, 0x5f,
0x65, 0x1f, 0x71, 0x8a, 0xe3, 0xd0, 0xa1, 0x76, 0xa0, 0xde, 0x71, 0xce, 0x79, 0x7e, 0x8f, 0xed,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5, 0x13, 0xd5, 0x2f, 0xfd, 0x58, 0x80, 0x93, 0xb3, 0x2a, 0xc6, 0x6c, 0xd9, 0xde, 0xae, 0x5d,
0xb6, 0x8c, 0x50, 0x49, 0x62, 0x69, 0xb3, 0xd2, 0xc3, 0xdf, 0xd1, 0xf3, 0x80, 0x3c, 0xf4, 0xd6,
0x9f, 0xea, 0xfd, 0x2c, 0x75, 0x59, 0x69, 0xb5, 0xee, 0x0a, 0xa8, 0xb2, 0x7a, 0xd8, 0x83, 0x05,
0xd4, 0x9e, 0xb8, 0x80, 0x5d, 0x54, 0x59, 0xc6, 0x2d, 0x0d, 0x0a, 0x9b, 0x0d, 0x72, 0x20, 0x37,
0x58, 0x26, 0x2f, 0x0d, 0xb6, 0x37, 0x1b, 0xe4, 0x80, 0xfa, 0x0b, 0xfc, 0xbf, 0x34, 0x58, 0xc9,
0x0a, 0xe7, 0x16, 0x31, 0x77, 0x4d, 0x15, 0x4a, 0x35, 0x97, 0x66, 0x75, 0x2f, 0x42, 0xaf, 0x5c,
0x16, 0xae, 0x09, 0xb5, 0x57, 0x4c, 0x77, 0x6c, 0x92, 0x5e, 0x62, 0xa2, 0xfd, 0xe8, 0x2a, 0xa1,
0xc7, 0x02, 0x12, 0x79, 0x26, 0x8b, 0x3d, 0xcb, 0xa3, 0x91, 0xbc, 0xa2, 0x95, 0x8d, 0x08, 0xf7,
0xc5, 0x63, 0xdf, 0xc1, 0x23, 0x59, 0xcd, 0x76, 0xa5, 0xf6, 0xc3, 0x9f, 0x00, 0x00, 0x00, 0xff,
0xff, 0x67, 0x07, 0xb1, 0x59, 0x93, 0x05, 0x00, 0x00,
}

View File

@ -0,0 +1,858 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/texttospeech/v1/cloud_tts.proto
package texttospeech // import "google.golang.org/genproto/googleapis/cloud/texttospeech/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Gender of the voice as described in
// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
type SsmlVoiceGender int32
const (
// An unspecified gender.
// In VoiceSelectionParams, this means that the client doesn't care which
// gender the selected voice will have. In the Voice field of
// ListVoicesResponse, this may mean that the voice doesn't fit any of the
// other categories in this enum, or that the gender of the voice isn't known.
SsmlVoiceGender_SSML_VOICE_GENDER_UNSPECIFIED SsmlVoiceGender = 0
// A male voice.
SsmlVoiceGender_MALE SsmlVoiceGender = 1
// A female voice.
SsmlVoiceGender_FEMALE SsmlVoiceGender = 2
// A gender-neutral voice.
SsmlVoiceGender_NEUTRAL SsmlVoiceGender = 3
)
var SsmlVoiceGender_name = map[int32]string{
0: "SSML_VOICE_GENDER_UNSPECIFIED",
1: "MALE",
2: "FEMALE",
3: "NEUTRAL",
}
var SsmlVoiceGender_value = map[string]int32{
"SSML_VOICE_GENDER_UNSPECIFIED": 0,
"MALE": 1,
"FEMALE": 2,
"NEUTRAL": 3,
}
func (x SsmlVoiceGender) String() string {
return proto.EnumName(SsmlVoiceGender_name, int32(x))
}
func (SsmlVoiceGender) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cloud_tts_75c08ddd85578159, []int{0}
}
// Configuration to set up audio encoder. The encoding determines the output
// audio format that we'd like.
type AudioEncoding int32
const (
// Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][].
AudioEncoding_AUDIO_ENCODING_UNSPECIFIED AudioEncoding = 0
// Uncompressed 16-bit signed little-endian samples (Linear PCM).
// Audio content returned as LINEAR16 also contains a WAV header.
AudioEncoding_LINEAR16 AudioEncoding = 1
// MP3 audio.
AudioEncoding_MP3 AudioEncoding = 2
// Opus encoded audio wrapped in an ogg container. The result will be a
// file which can be played natively on Android, and in browsers (at least
// Chrome and Firefox). The quality of the encoding is considerably higher
// than MP3 while using approximately the same bitrate.
AudioEncoding_OGG_OPUS AudioEncoding = 3
)
var AudioEncoding_name = map[int32]string{
0: "AUDIO_ENCODING_UNSPECIFIED",
1: "LINEAR16",
2: "MP3",
3: "OGG_OPUS",
}
var AudioEncoding_value = map[string]int32{
"AUDIO_ENCODING_UNSPECIFIED": 0,
"LINEAR16": 1,
"MP3": 2,
"OGG_OPUS": 3,
}
func (x AudioEncoding) String() string {
return proto.EnumName(AudioEncoding_name, int32(x))
}
func (AudioEncoding) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cloud_tts_75c08ddd85578159, []int{1}
}
// The top-level message sent by the client for the `ListVoices` method.
type ListVoicesRequest struct {
// Optional (but recommended)
// [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
// specified, the ListVoices call will only return voices that can be used to
// synthesize this language_code. E.g. when specifying "en-NZ", you will get
// supported "en-*" voices; when specifying "no", you will get supported
// "no-*" (Norwegian) and "nb-*" (Norwegian Bokmal) voices; specifying "zh"
// will also get supported "cmn-*" voices; specifying "zh-hk" will also get
// supported "yue-*" voices.
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListVoicesRequest) Reset() { *m = ListVoicesRequest{} }
func (m *ListVoicesRequest) String() string { return proto.CompactTextString(m) }
func (*ListVoicesRequest) ProtoMessage() {}
func (*ListVoicesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_tts_75c08ddd85578159, []int{0}
}
func (m *ListVoicesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListVoicesRequest.Unmarshal(m, b)
}
func (m *ListVoicesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListVoicesRequest.Marshal(b, m, deterministic)
}
func (dst *ListVoicesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListVoicesRequest.Merge(dst, src)
}
func (m *ListVoicesRequest) XXX_Size() int {
return xxx_messageInfo_ListVoicesRequest.Size(m)
}
func (m *ListVoicesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListVoicesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListVoicesRequest proto.InternalMessageInfo
func (m *ListVoicesRequest) GetLanguageCode() string {
if m != nil {
return m.LanguageCode
}
return ""
}
// The message returned to the client by the `ListVoices` method.
type ListVoicesResponse struct {
// The list of voices.
Voices []*Voice `protobuf:"bytes,1,rep,name=voices,proto3" json:"voices,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListVoicesResponse) Reset() { *m = ListVoicesResponse{} }
func (m *ListVoicesResponse) String() string { return proto.CompactTextString(m) }
func (*ListVoicesResponse) ProtoMessage() {}
func (*ListVoicesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_tts_75c08ddd85578159, []int{1}
}
func (m *ListVoicesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListVoicesResponse.Unmarshal(m, b)
}
func (m *ListVoicesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListVoicesResponse.Marshal(b, m, deterministic)
}
func (dst *ListVoicesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListVoicesResponse.Merge(dst, src)
}
func (m *ListVoicesResponse) XXX_Size() int {
return xxx_messageInfo_ListVoicesResponse.Size(m)
}
func (m *ListVoicesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListVoicesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListVoicesResponse proto.InternalMessageInfo
func (m *ListVoicesResponse) GetVoices() []*Voice {
if m != nil {
return m.Voices
}
return nil
}
// Description of a voice supported by the TTS service.
type Voice struct {
// The languages that this voice supports, expressed as
// [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
// "en-US", "es-419", "cmn-tw").
LanguageCodes []string `protobuf:"bytes,1,rep,name=language_codes,json=languageCodes,proto3" json:"language_codes,omitempty"`
// The name of this voice. Each distinct voice has a unique name.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// The gender of this voice.
SsmlGender SsmlVoiceGender `protobuf:"varint,3,opt,name=ssml_gender,json=ssmlGender,proto3,enum=google.cloud.texttospeech.v1.SsmlVoiceGender" json:"ssml_gender,omitempty"`
// The natural sample rate (in hertz) for this voice.
NaturalSampleRateHertz int32 `protobuf:"varint,4,opt,name=natural_sample_rate_hertz,json=naturalSampleRateHertz,proto3" json:"natural_sample_rate_hertz,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Voice) Reset() { *m = Voice{} }
func (m *Voice) String() string { return proto.CompactTextString(m) }
func (*Voice) ProtoMessage() {}
func (*Voice) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_tts_75c08ddd85578159, []int{2}
}
func (m *Voice) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Voice.Unmarshal(m, b)
}
func (m *Voice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Voice.Marshal(b, m, deterministic)
}
func (dst *Voice) XXX_Merge(src proto.Message) {
xxx_messageInfo_Voice.Merge(dst, src)
}
func (m *Voice) XXX_Size() int {
return xxx_messageInfo_Voice.Size(m)
}
func (m *Voice) XXX_DiscardUnknown() {
xxx_messageInfo_Voice.DiscardUnknown(m)
}
var xxx_messageInfo_Voice proto.InternalMessageInfo
func (m *Voice) GetLanguageCodes() []string {
if m != nil {
return m.LanguageCodes
}
return nil
}
func (m *Voice) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Voice) GetSsmlGender() SsmlVoiceGender {
if m != nil {
return m.SsmlGender
}
return SsmlVoiceGender_SSML_VOICE_GENDER_UNSPECIFIED
}
func (m *Voice) GetNaturalSampleRateHertz() int32 {
if m != nil {
return m.NaturalSampleRateHertz
}
return 0
}
// The top-level message sent by the client for the `SynthesizeSpeech` method.
type SynthesizeSpeechRequest struct {
// Required. The Synthesizer requires either plain text or SSML as input.
Input *SynthesisInput `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
// Required. The desired voice of the synthesized audio.
Voice *VoiceSelectionParams `protobuf:"bytes,2,opt,name=voice,proto3" json:"voice,omitempty"`
// Required. The configuration of the synthesized audio.
AudioConfig *AudioConfig `protobuf:"bytes,3,opt,name=audio_config,json=audioConfig,proto3" json:"audio_config,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SynthesizeSpeechRequest) Reset() { *m = SynthesizeSpeechRequest{} }
func (m *SynthesizeSpeechRequest) String() string { return proto.CompactTextString(m) }
func (*SynthesizeSpeechRequest) ProtoMessage() {}
func (*SynthesizeSpeechRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_tts_75c08ddd85578159, []int{3}
}
func (m *SynthesizeSpeechRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SynthesizeSpeechRequest.Unmarshal(m, b)
}
func (m *SynthesizeSpeechRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SynthesizeSpeechRequest.Marshal(b, m, deterministic)
}
func (dst *SynthesizeSpeechRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SynthesizeSpeechRequest.Merge(dst, src)
}
func (m *SynthesizeSpeechRequest) XXX_Size() int {
return xxx_messageInfo_SynthesizeSpeechRequest.Size(m)
}
func (m *SynthesizeSpeechRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SynthesizeSpeechRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SynthesizeSpeechRequest proto.InternalMessageInfo
func (m *SynthesizeSpeechRequest) GetInput() *SynthesisInput {
if m != nil {
return m.Input
}
return nil
}
func (m *SynthesizeSpeechRequest) GetVoice() *VoiceSelectionParams {
if m != nil {
return m.Voice
}
return nil
}
func (m *SynthesizeSpeechRequest) GetAudioConfig() *AudioConfig {
if m != nil {
return m.AudioConfig
}
return nil
}
// Contains text input to be synthesized. Either `text` or `ssml` must be
// supplied. Supplying both or neither returns
// [google.rpc.Code.INVALID_ARGUMENT][]. The input size is limited to 5000
// characters.
type SynthesisInput struct {
// The input source, which is either plain text or SSML.
//
// Types that are valid to be assigned to InputSource:
// *SynthesisInput_Text
// *SynthesisInput_Ssml
InputSource isSynthesisInput_InputSource `protobuf_oneof:"input_source"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SynthesisInput) Reset() { *m = SynthesisInput{} }
func (m *SynthesisInput) String() string { return proto.CompactTextString(m) }
func (*SynthesisInput) ProtoMessage() {}
func (*SynthesisInput) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_tts_75c08ddd85578159, []int{4}
}
func (m *SynthesisInput) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SynthesisInput.Unmarshal(m, b)
}
func (m *SynthesisInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SynthesisInput.Marshal(b, m, deterministic)
}
func (dst *SynthesisInput) XXX_Merge(src proto.Message) {
xxx_messageInfo_SynthesisInput.Merge(dst, src)
}
func (m *SynthesisInput) XXX_Size() int {
return xxx_messageInfo_SynthesisInput.Size(m)
}
func (m *SynthesisInput) XXX_DiscardUnknown() {
xxx_messageInfo_SynthesisInput.DiscardUnknown(m)
}
var xxx_messageInfo_SynthesisInput proto.InternalMessageInfo
type isSynthesisInput_InputSource interface {
isSynthesisInput_InputSource()
}
type SynthesisInput_Text struct {
Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof"`
}
type SynthesisInput_Ssml struct {
Ssml string `protobuf:"bytes,2,opt,name=ssml,proto3,oneof"`
}
func (*SynthesisInput_Text) isSynthesisInput_InputSource() {}
func (*SynthesisInput_Ssml) isSynthesisInput_InputSource() {}
func (m *SynthesisInput) GetInputSource() isSynthesisInput_InputSource {
if m != nil {
return m.InputSource
}
return nil
}
func (m *SynthesisInput) GetText() string {
if x, ok := m.GetInputSource().(*SynthesisInput_Text); ok {
return x.Text
}
return ""
}
func (m *SynthesisInput) GetSsml() string {
if x, ok := m.GetInputSource().(*SynthesisInput_Ssml); ok {
return x.Ssml
}
return ""
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*SynthesisInput) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _SynthesisInput_OneofMarshaler, _SynthesisInput_OneofUnmarshaler, _SynthesisInput_OneofSizer, []interface{}{
(*SynthesisInput_Text)(nil),
(*SynthesisInput_Ssml)(nil),
}
}
func _SynthesisInput_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*SynthesisInput)
// input_source
switch x := m.InputSource.(type) {
case *SynthesisInput_Text:
b.EncodeVarint(1<<3 | proto.WireBytes)
b.EncodeStringBytes(x.Text)
case *SynthesisInput_Ssml:
b.EncodeVarint(2<<3 | proto.WireBytes)
b.EncodeStringBytes(x.Ssml)
case nil:
default:
return fmt.Errorf("SynthesisInput.InputSource has unexpected type %T", x)
}
return nil
}
func _SynthesisInput_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*SynthesisInput)
switch tag {
case 1: // input_source.text
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.InputSource = &SynthesisInput_Text{x}
return true, err
case 2: // input_source.ssml
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.InputSource = &SynthesisInput_Ssml{x}
return true, err
default:
return false, nil
}
}
func _SynthesisInput_OneofSizer(msg proto.Message) (n int) {
m := msg.(*SynthesisInput)
// input_source
switch x := m.InputSource.(type) {
case *SynthesisInput_Text:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.Text)))
n += len(x.Text)
case *SynthesisInput_Ssml:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.Ssml)))
n += len(x.Ssml)
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Description of which voice to use for a synthesis request.
type VoiceSelectionParams struct {
// The language (and optionally also the region) of the voice expressed as a
// [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
// "en-US". Required. This should not include a script tag (e.g. use
// "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
// from the input provided in the SynthesisInput. The TTS service
// will use this parameter to help choose an appropriate voice. Note that
// the TTS service may choose a voice with a slightly different language code
// than the one selected; it may substitute a different region
// (e.g. using en-US rather than en-CA if there isn't a Canadian voice
// available), or even a different language, e.g. using "nb" (Norwegian
// Bokmal) instead of "no" (Norwegian)".
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// The name of the voice. Optional; if not set, the service will choose a
// voice based on the other parameters such as language_code and gender.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// The preferred gender of the voice. Optional; if not set, the service will
// choose a voice based on the other parameters such as language_code and
// name. Note that this is only a preference, not requirement; if a
// voice of the appropriate gender is not available, the synthesizer should
// substitute a voice with a different gender rather than failing the request.
SsmlGender SsmlVoiceGender `protobuf:"varint,3,opt,name=ssml_gender,json=ssmlGender,proto3,enum=google.cloud.texttospeech.v1.SsmlVoiceGender" json:"ssml_gender,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VoiceSelectionParams) Reset() { *m = VoiceSelectionParams{} }
func (m *VoiceSelectionParams) String() string { return proto.CompactTextString(m) }
func (*VoiceSelectionParams) ProtoMessage() {}
func (*VoiceSelectionParams) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_tts_75c08ddd85578159, []int{5}
}
func (m *VoiceSelectionParams) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VoiceSelectionParams.Unmarshal(m, b)
}
func (m *VoiceSelectionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VoiceSelectionParams.Marshal(b, m, deterministic)
}
func (dst *VoiceSelectionParams) XXX_Merge(src proto.Message) {
xxx_messageInfo_VoiceSelectionParams.Merge(dst, src)
}
func (m *VoiceSelectionParams) XXX_Size() int {
return xxx_messageInfo_VoiceSelectionParams.Size(m)
}
func (m *VoiceSelectionParams) XXX_DiscardUnknown() {
xxx_messageInfo_VoiceSelectionParams.DiscardUnknown(m)
}
var xxx_messageInfo_VoiceSelectionParams proto.InternalMessageInfo
func (m *VoiceSelectionParams) GetLanguageCode() string {
if m != nil {
return m.LanguageCode
}
return ""
}
func (m *VoiceSelectionParams) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *VoiceSelectionParams) GetSsmlGender() SsmlVoiceGender {
if m != nil {
return m.SsmlGender
}
return SsmlVoiceGender_SSML_VOICE_GENDER_UNSPECIFIED
}
// Description of audio data to be synthesized.
type AudioConfig struct {
// Required. The format of the requested audio byte stream.
AudioEncoding AudioEncoding `protobuf:"varint,1,opt,name=audio_encoding,json=audioEncoding,proto3,enum=google.cloud.texttospeech.v1.AudioEncoding" json:"audio_encoding,omitempty"`
// Optional speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
// native speed supported by the specific voice. 2.0 is twice as fast, and
// 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
// other values < 0.25 or > 4.0 will return an error.
SpeakingRate float64 `protobuf:"fixed64,2,opt,name=speaking_rate,json=speakingRate,proto3" json:"speaking_rate,omitempty"`
// Optional speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20
// semitones from the original pitch. -20 means decrease 20 semitones from the
// original pitch.
Pitch float64 `protobuf:"fixed64,3,opt,name=pitch,proto3" json:"pitch,omitempty"`
// Optional volume gain (in dB) of the normal native volume supported by the
// specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
// 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
// will play at approximately half the amplitude of the normal native signal
// amplitude. A value of +6.0 (dB) will play at approximately twice the
// amplitude of the normal native signal amplitude. Strongly recommend not to
// exceed +10 (dB) as there's usually no effective increase in loudness for
// any value greater than that.
VolumeGainDb float64 `protobuf:"fixed64,4,opt,name=volume_gain_db,json=volumeGainDb,proto3" json:"volume_gain_db,omitempty"`
// The synthesis sample rate (in hertz) for this audio. Optional. If this is
// different from the voice's natural sample rate, then the synthesizer will
// honor this request by converting to the desired sample rate (which might
// result in worse audio quality), unless the specified sample rate is not
// supported for the encoding chosen, in which case it will fail the request
// and return [google.rpc.Code.INVALID_ARGUMENT][].
SampleRateHertz int32 `protobuf:"varint,5,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AudioConfig) Reset() { *m = AudioConfig{} }
func (m *AudioConfig) String() string { return proto.CompactTextString(m) }
func (*AudioConfig) ProtoMessage() {}
func (*AudioConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_tts_75c08ddd85578159, []int{6}
}
func (m *AudioConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AudioConfig.Unmarshal(m, b)
}
func (m *AudioConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AudioConfig.Marshal(b, m, deterministic)
}
func (dst *AudioConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_AudioConfig.Merge(dst, src)
}
func (m *AudioConfig) XXX_Size() int {
return xxx_messageInfo_AudioConfig.Size(m)
}
func (m *AudioConfig) XXX_DiscardUnknown() {
xxx_messageInfo_AudioConfig.DiscardUnknown(m)
}
var xxx_messageInfo_AudioConfig proto.InternalMessageInfo
func (m *AudioConfig) GetAudioEncoding() AudioEncoding {
if m != nil {
return m.AudioEncoding
}
return AudioEncoding_AUDIO_ENCODING_UNSPECIFIED
}
func (m *AudioConfig) GetSpeakingRate() float64 {
if m != nil {
return m.SpeakingRate
}
return 0
}
func (m *AudioConfig) GetPitch() float64 {
if m != nil {
return m.Pitch
}
return 0
}
func (m *AudioConfig) GetVolumeGainDb() float64 {
if m != nil {
return m.VolumeGainDb
}
return 0
}
func (m *AudioConfig) GetSampleRateHertz() int32 {
if m != nil {
return m.SampleRateHertz
}
return 0
}
// The message returned to the client by the `SynthesizeSpeech` method.
type SynthesizeSpeechResponse struct {
// The audio data bytes encoded as specified in the request, including the
// header (For LINEAR16 audio, we include the WAV header). Note: as
// with all bytes fields, protobuffers use a pure binary representation,
// whereas JSON representations use base64.
AudioContent []byte `protobuf:"bytes,1,opt,name=audio_content,json=audioContent,proto3" json:"audio_content,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SynthesizeSpeechResponse) Reset() { *m = SynthesizeSpeechResponse{} }
func (m *SynthesizeSpeechResponse) String() string { return proto.CompactTextString(m) }
func (*SynthesizeSpeechResponse) ProtoMessage() {}
func (*SynthesizeSpeechResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_tts_75c08ddd85578159, []int{7}
}
func (m *SynthesizeSpeechResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SynthesizeSpeechResponse.Unmarshal(m, b)
}
func (m *SynthesizeSpeechResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SynthesizeSpeechResponse.Marshal(b, m, deterministic)
}
func (dst *SynthesizeSpeechResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SynthesizeSpeechResponse.Merge(dst, src)
}
func (m *SynthesizeSpeechResponse) XXX_Size() int {
return xxx_messageInfo_SynthesizeSpeechResponse.Size(m)
}
func (m *SynthesizeSpeechResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SynthesizeSpeechResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SynthesizeSpeechResponse proto.InternalMessageInfo
func (m *SynthesizeSpeechResponse) GetAudioContent() []byte {
if m != nil {
return m.AudioContent
}
return nil
}
func init() {
proto.RegisterType((*ListVoicesRequest)(nil), "google.cloud.texttospeech.v1.ListVoicesRequest")
proto.RegisterType((*ListVoicesResponse)(nil), "google.cloud.texttospeech.v1.ListVoicesResponse")
proto.RegisterType((*Voice)(nil), "google.cloud.texttospeech.v1.Voice")
proto.RegisterType((*SynthesizeSpeechRequest)(nil), "google.cloud.texttospeech.v1.SynthesizeSpeechRequest")
proto.RegisterType((*SynthesisInput)(nil), "google.cloud.texttospeech.v1.SynthesisInput")
proto.RegisterType((*VoiceSelectionParams)(nil), "google.cloud.texttospeech.v1.VoiceSelectionParams")
proto.RegisterType((*AudioConfig)(nil), "google.cloud.texttospeech.v1.AudioConfig")
proto.RegisterType((*SynthesizeSpeechResponse)(nil), "google.cloud.texttospeech.v1.SynthesizeSpeechResponse")
proto.RegisterEnum("google.cloud.texttospeech.v1.SsmlVoiceGender", SsmlVoiceGender_name, SsmlVoiceGender_value)
proto.RegisterEnum("google.cloud.texttospeech.v1.AudioEncoding", AudioEncoding_name, AudioEncoding_value)
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// TextToSpeechClient is the client API for TextToSpeech service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type TextToSpeechClient interface {
// Returns a list of [Voice][google.cloud.texttospeech.v1.Voice]
// supported for synthesis.
ListVoices(ctx context.Context, in *ListVoicesRequest, opts ...grpc.CallOption) (*ListVoicesResponse, error)
// Synthesizes speech synchronously: receive results after all text input
// has been processed.
SynthesizeSpeech(ctx context.Context, in *SynthesizeSpeechRequest, opts ...grpc.CallOption) (*SynthesizeSpeechResponse, error)
}
type textToSpeechClient struct {
cc *grpc.ClientConn
}
func NewTextToSpeechClient(cc *grpc.ClientConn) TextToSpeechClient {
return &textToSpeechClient{cc}
}
func (c *textToSpeechClient) ListVoices(ctx context.Context, in *ListVoicesRequest, opts ...grpc.CallOption) (*ListVoicesResponse, error) {
out := new(ListVoicesResponse)
err := c.cc.Invoke(ctx, "/google.cloud.texttospeech.v1.TextToSpeech/ListVoices", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *textToSpeechClient) SynthesizeSpeech(ctx context.Context, in *SynthesizeSpeechRequest, opts ...grpc.CallOption) (*SynthesizeSpeechResponse, error) {
out := new(SynthesizeSpeechResponse)
err := c.cc.Invoke(ctx, "/google.cloud.texttospeech.v1.TextToSpeech/SynthesizeSpeech", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// TextToSpeechServer is the server API for TextToSpeech service.
type TextToSpeechServer interface {
// Returns a list of [Voice][google.cloud.texttospeech.v1.Voice]
// supported for synthesis.
ListVoices(context.Context, *ListVoicesRequest) (*ListVoicesResponse, error)
// Synthesizes speech synchronously: receive results after all text input
// has been processed.
SynthesizeSpeech(context.Context, *SynthesizeSpeechRequest) (*SynthesizeSpeechResponse, error)
}
func RegisterTextToSpeechServer(s *grpc.Server, srv TextToSpeechServer) {
s.RegisterService(&_TextToSpeech_serviceDesc, srv)
}
func _TextToSpeech_ListVoices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListVoicesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TextToSpeechServer).ListVoices(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.texttospeech.v1.TextToSpeech/ListVoices",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TextToSpeechServer).ListVoices(ctx, req.(*ListVoicesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _TextToSpeech_SynthesizeSpeech_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SynthesizeSpeechRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TextToSpeechServer).SynthesizeSpeech(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.texttospeech.v1.TextToSpeech/SynthesizeSpeech",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TextToSpeechServer).SynthesizeSpeech(ctx, req.(*SynthesizeSpeechRequest))
}
return interceptor(ctx, in, info, handler)
}
var _TextToSpeech_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.texttospeech.v1.TextToSpeech",
HandlerType: (*TextToSpeechServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListVoices",
Handler: _TextToSpeech_ListVoices_Handler,
},
{
MethodName: "SynthesizeSpeech",
Handler: _TextToSpeech_SynthesizeSpeech_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/texttospeech/v1/cloud_tts.proto",
}
func init() {
proto.RegisterFile("google/cloud/texttospeech/v1/cloud_tts.proto", fileDescriptor_cloud_tts_75c08ddd85578159)
}
var fileDescriptor_cloud_tts_75c08ddd85578159 = []byte{
// 868 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x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0xbd, 0x49,
0xb2, 0x34, 0x8f, 0x76, 0x1e, 0xff, 0x57, 0x58, 0xca, 0xeb, 0x81, 0xe1, 0x55, 0xb5, 0x5f, 0xd3,
0xbc, 0x34, 0xea, 0x89, 0x7c, 0xb9, 0xf5, 0x09, 0xda, 0x3f, 0xf8, 0x05, 0x41, 0xcd, 0x17, 0xd3,
0x95, 0xd5, 0x0f, 0xb6, 0xb2, 0xe2, 0x8e, 0xf5, 0xc3, 0x34, 0x46, 0x5f, 0x1c, 0xa6, 0x90, 0x40,
0xe8, 0x1f, 0xba, 0x2e, 0x66, 0x41, 0x23, 0x60, 0xdc, 0x3c, 0x5b, 0x8d, 0x24, 0x45, 0xe3, 0x50,
0xde, 0xfc, 0x46, 0x3e, 0xcd, 0xae, 0xff, 0x46, 0xe8, 0xa7, 0xdc, 0xfd, 0x5e, 0x52, 0xad, 0x63,
0x08, 0x64, 0xcf, 0xab, 0x9f, 0x36, 0x7f, 0x5d, 0xa4, 0xcf, 0x4c, 0xfa, 0x2c, 0x9b, 0x3e, 0x3b,
0x6d, 0x9e, 0x6f, 0x9a, 0x53, 0x1f, 0xfd, 0x13, 0x00, 0x00, 0xff, 0xff, 0x38, 0xd7, 0xcf, 0x2c,
0x98, 0x07, 0x00, 0x00,
}

View File

@ -1,23 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/texttospeech/v1beta1/cloud_tts.proto
/*
Package texttospeech is a generated protocol buffer package.
It is generated from these files:
google/cloud/texttospeech/v1beta1/cloud_tts.proto
It has these top-level messages:
ListVoicesRequest
ListVoicesResponse
Voice
SynthesizeSpeechRequest
SynthesisInput
VoiceSelectionParams
AudioConfig
SynthesizeSpeechResponse
*/
package texttospeech
package texttospeech // import "google.golang.org/genproto/googleapis/cloud/texttospeech/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -67,15 +51,17 @@ var SsmlVoiceGender_name = map[int32]string{
}
var SsmlVoiceGender_value = map[string]int32{
"SSML_VOICE_GENDER_UNSPECIFIED": 0,
"MALE": 1,
"FEMALE": 2,
"NEUTRAL": 3,
"MALE": 1,
"FEMALE": 2,
"NEUTRAL": 3,
}
func (x SsmlVoiceGender) String() string {
return proto.EnumName(SsmlVoiceGender_name, int32(x))
}
func (SsmlVoiceGender) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (SsmlVoiceGender) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cloud_tts_9d0ebd338dfb28bd, []int{0}
}
// Configuration to set up audio encoder. The encoding determines the output
// audio format that we'd like.
@ -112,27 +98,89 @@ var AudioEncoding_value = map[string]int32{
func (x AudioEncoding) String() string {
return proto.EnumName(AudioEncoding_name, int32(x))
}
func (AudioEncoding) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (AudioEncoding) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cloud_tts_9d0ebd338dfb28bd, []int{1}
}
// The top-level message sent by the client for the `ListVoices` method.
type ListVoicesRequest struct {
// Optional (but recommended)
// [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
// specified, the ListVoices call will only return voices that can be used to
// synthesize this language_code. E.g. when specifying "en-NZ", you will get
// supported "en-*" voices; when specifying "no", you will get supported
// "no-*" (Norwegian) and "nb-*" (Norwegian Bokmal) voices; specifying "zh"
// will also get supported "cmn-*" voices; specifying "zh-hk" will also get
// supported "yue-*" voices.
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListVoicesRequest) Reset() { *m = ListVoicesRequest{} }
func (m *ListVoicesRequest) String() string { return proto.CompactTextString(m) }
func (*ListVoicesRequest) ProtoMessage() {}
func (*ListVoicesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *ListVoicesRequest) Reset() { *m = ListVoicesRequest{} }
func (m *ListVoicesRequest) String() string { return proto.CompactTextString(m) }
func (*ListVoicesRequest) ProtoMessage() {}
func (*ListVoicesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_tts_9d0ebd338dfb28bd, []int{0}
}
func (m *ListVoicesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListVoicesRequest.Unmarshal(m, b)
}
func (m *ListVoicesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListVoicesRequest.Marshal(b, m, deterministic)
}
func (dst *ListVoicesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListVoicesRequest.Merge(dst, src)
}
func (m *ListVoicesRequest) XXX_Size() int {
return xxx_messageInfo_ListVoicesRequest.Size(m)
}
func (m *ListVoicesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListVoicesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListVoicesRequest proto.InternalMessageInfo
func (m *ListVoicesRequest) GetLanguageCode() string {
if m != nil {
return m.LanguageCode
}
return ""
}
// The message returned to the client by the `ListVoices` method.
type ListVoicesResponse struct {
// The list of voices.
Voices []*Voice `protobuf:"bytes,1,rep,name=voices" json:"voices,omitempty"`
Voices []*Voice `protobuf:"bytes,1,rep,name=voices,proto3" json:"voices,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListVoicesResponse) Reset() { *m = ListVoicesResponse{} }
func (m *ListVoicesResponse) String() string { return proto.CompactTextString(m) }
func (*ListVoicesResponse) ProtoMessage() {}
func (*ListVoicesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *ListVoicesResponse) Reset() { *m = ListVoicesResponse{} }
func (m *ListVoicesResponse) String() string { return proto.CompactTextString(m) }
func (*ListVoicesResponse) ProtoMessage() {}
func (*ListVoicesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_tts_9d0ebd338dfb28bd, []int{1}
}
func (m *ListVoicesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListVoicesResponse.Unmarshal(m, b)
}
func (m *ListVoicesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListVoicesResponse.Marshal(b, m, deterministic)
}
func (dst *ListVoicesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListVoicesResponse.Merge(dst, src)
}
func (m *ListVoicesResponse) XXX_Size() int {
return xxx_messageInfo_ListVoicesResponse.Size(m)
}
func (m *ListVoicesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListVoicesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListVoicesResponse proto.InternalMessageInfo
func (m *ListVoicesResponse) GetVoices() []*Voice {
if m != nil {
@ -146,19 +194,41 @@ type Voice struct {
// The languages that this voice supports, expressed as
// [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
// "en-US", "es-419", "cmn-tw").
LanguageCodes []string `protobuf:"bytes,1,rep,name=language_codes,json=languageCodes" json:"language_codes,omitempty"`
LanguageCodes []string `protobuf:"bytes,1,rep,name=language_codes,json=languageCodes,proto3" json:"language_codes,omitempty"`
// The name of this voice. Each distinct voice has a unique name.
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// The gender of this voice.
SsmlGender SsmlVoiceGender `protobuf:"varint,3,opt,name=ssml_gender,json=ssmlGender,enum=google.cloud.texttospeech.v1beta1.SsmlVoiceGender" json:"ssml_gender,omitempty"`
SsmlGender SsmlVoiceGender `protobuf:"varint,3,opt,name=ssml_gender,json=ssmlGender,proto3,enum=google.cloud.texttospeech.v1beta1.SsmlVoiceGender" json:"ssml_gender,omitempty"`
// The natural sample rate (in hertz) for this voice.
NaturalSampleRateHertz int32 `protobuf:"varint,4,opt,name=natural_sample_rate_hertz,json=naturalSampleRateHertz" json:"natural_sample_rate_hertz,omitempty"`
NaturalSampleRateHertz int32 `protobuf:"varint,4,opt,name=natural_sample_rate_hertz,json=naturalSampleRateHertz,proto3" json:"natural_sample_rate_hertz,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Voice) Reset() { *m = Voice{} }
func (m *Voice) String() string { return proto.CompactTextString(m) }
func (*Voice) ProtoMessage() {}
func (*Voice) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *Voice) Reset() { *m = Voice{} }
func (m *Voice) String() string { return proto.CompactTextString(m) }
func (*Voice) ProtoMessage() {}
func (*Voice) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_tts_9d0ebd338dfb28bd, []int{2}
}
func (m *Voice) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Voice.Unmarshal(m, b)
}
func (m *Voice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Voice.Marshal(b, m, deterministic)
}
func (dst *Voice) XXX_Merge(src proto.Message) {
xxx_messageInfo_Voice.Merge(dst, src)
}
func (m *Voice) XXX_Size() int {
return xxx_messageInfo_Voice.Size(m)
}
func (m *Voice) XXX_DiscardUnknown() {
xxx_messageInfo_Voice.DiscardUnknown(m)
}
var xxx_messageInfo_Voice proto.InternalMessageInfo
func (m *Voice) GetLanguageCodes() []string {
if m != nil {
@ -191,17 +261,39 @@ func (m *Voice) GetNaturalSampleRateHertz() int32 {
// The top-level message sent by the client for the `SynthesizeSpeech` method.
type SynthesizeSpeechRequest struct {
// Required. The Synthesizer requires either plain text or SSML as input.
Input *SynthesisInput `protobuf:"bytes,1,opt,name=input" json:"input,omitempty"`
Input *SynthesisInput `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
// Required. The desired voice of the synthesized audio.
Voice *VoiceSelectionParams `protobuf:"bytes,2,opt,name=voice" json:"voice,omitempty"`
Voice *VoiceSelectionParams `protobuf:"bytes,2,opt,name=voice,proto3" json:"voice,omitempty"`
// Required. The configuration of the synthesized audio.
AudioConfig *AudioConfig `protobuf:"bytes,3,opt,name=audio_config,json=audioConfig" json:"audio_config,omitempty"`
AudioConfig *AudioConfig `protobuf:"bytes,3,opt,name=audio_config,json=audioConfig,proto3" json:"audio_config,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SynthesizeSpeechRequest) Reset() { *m = SynthesizeSpeechRequest{} }
func (m *SynthesizeSpeechRequest) String() string { return proto.CompactTextString(m) }
func (*SynthesizeSpeechRequest) ProtoMessage() {}
func (*SynthesizeSpeechRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *SynthesizeSpeechRequest) Reset() { *m = SynthesizeSpeechRequest{} }
func (m *SynthesizeSpeechRequest) String() string { return proto.CompactTextString(m) }
func (*SynthesizeSpeechRequest) ProtoMessage() {}
func (*SynthesizeSpeechRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_tts_9d0ebd338dfb28bd, []int{3}
}
func (m *SynthesizeSpeechRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SynthesizeSpeechRequest.Unmarshal(m, b)
}
func (m *SynthesizeSpeechRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SynthesizeSpeechRequest.Marshal(b, m, deterministic)
}
func (dst *SynthesizeSpeechRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SynthesizeSpeechRequest.Merge(dst, src)
}
func (m *SynthesizeSpeechRequest) XXX_Size() int {
return xxx_messageInfo_SynthesizeSpeechRequest.Size(m)
}
func (m *SynthesizeSpeechRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SynthesizeSpeechRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SynthesizeSpeechRequest proto.InternalMessageInfo
func (m *SynthesizeSpeechRequest) GetInput() *SynthesisInput {
if m != nil {
@ -234,26 +326,50 @@ type SynthesisInput struct {
// Types that are valid to be assigned to InputSource:
// *SynthesisInput_Text
// *SynthesisInput_Ssml
InputSource isSynthesisInput_InputSource `protobuf_oneof:"input_source"`
InputSource isSynthesisInput_InputSource `protobuf_oneof:"input_source"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SynthesisInput) Reset() { *m = SynthesisInput{} }
func (m *SynthesisInput) String() string { return proto.CompactTextString(m) }
func (*SynthesisInput) ProtoMessage() {}
func (*SynthesisInput) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *SynthesisInput) Reset() { *m = SynthesisInput{} }
func (m *SynthesisInput) String() string { return proto.CompactTextString(m) }
func (*SynthesisInput) ProtoMessage() {}
func (*SynthesisInput) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_tts_9d0ebd338dfb28bd, []int{4}
}
func (m *SynthesisInput) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SynthesisInput.Unmarshal(m, b)
}
func (m *SynthesisInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SynthesisInput.Marshal(b, m, deterministic)
}
func (dst *SynthesisInput) XXX_Merge(src proto.Message) {
xxx_messageInfo_SynthesisInput.Merge(dst, src)
}
func (m *SynthesisInput) XXX_Size() int {
return xxx_messageInfo_SynthesisInput.Size(m)
}
func (m *SynthesisInput) XXX_DiscardUnknown() {
xxx_messageInfo_SynthesisInput.DiscardUnknown(m)
}
var xxx_messageInfo_SynthesisInput proto.InternalMessageInfo
type isSynthesisInput_InputSource interface {
isSynthesisInput_InputSource()
}
type SynthesisInput_Text struct {
Text string `protobuf:"bytes,1,opt,name=text,oneof"`
Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof"`
}
type SynthesisInput_Ssml struct {
Ssml string `protobuf:"bytes,2,opt,name=ssml,oneof"`
Ssml string `protobuf:"bytes,2,opt,name=ssml,proto3,oneof"`
}
func (*SynthesisInput_Text) isSynthesisInput_InputSource() {}
func (*SynthesisInput_Ssml) isSynthesisInput_InputSource() {}
func (m *SynthesisInput) GetInputSource() isSynthesisInput_InputSource {
@ -329,11 +445,11 @@ func _SynthesisInput_OneofSizer(msg proto.Message) (n int) {
// input_source
switch x := m.InputSource.(type) {
case *SynthesisInput_Text:
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.Text)))
n += len(x.Text)
case *SynthesisInput_Ssml:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.Ssml)))
n += len(x.Ssml)
case nil:
@ -356,22 +472,44 @@ type VoiceSelectionParams struct {
// (e.g. using en-US rather than en-CA if there isn't a Canadian voice
// available), or even a different language, e.g. using "nb" (Norwegian
// Bokmal) instead of "no" (Norwegian)".
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode" json:"language_code,omitempty"`
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// The name of the voice. Optional; if not set, the service will choose a
// voice based on the other parameters such as language_code and gender.
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// The preferred gender of the voice. Optional; if not set, the service will
// choose a voice based on the other parameters such as language_code and
// name. Note that this is only a preference, not requirement; if a
// voice of the appropriate gender is not available, the synthesizer should
// substitute a voice with a different gender rather than failing the request.
SsmlGender SsmlVoiceGender `protobuf:"varint,3,opt,name=ssml_gender,json=ssmlGender,enum=google.cloud.texttospeech.v1beta1.SsmlVoiceGender" json:"ssml_gender,omitempty"`
SsmlGender SsmlVoiceGender `protobuf:"varint,3,opt,name=ssml_gender,json=ssmlGender,proto3,enum=google.cloud.texttospeech.v1beta1.SsmlVoiceGender" json:"ssml_gender,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VoiceSelectionParams) Reset() { *m = VoiceSelectionParams{} }
func (m *VoiceSelectionParams) String() string { return proto.CompactTextString(m) }
func (*VoiceSelectionParams) ProtoMessage() {}
func (*VoiceSelectionParams) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *VoiceSelectionParams) Reset() { *m = VoiceSelectionParams{} }
func (m *VoiceSelectionParams) String() string { return proto.CompactTextString(m) }
func (*VoiceSelectionParams) ProtoMessage() {}
func (*VoiceSelectionParams) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_tts_9d0ebd338dfb28bd, []int{5}
}
func (m *VoiceSelectionParams) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VoiceSelectionParams.Unmarshal(m, b)
}
func (m *VoiceSelectionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VoiceSelectionParams.Marshal(b, m, deterministic)
}
func (dst *VoiceSelectionParams) XXX_Merge(src proto.Message) {
xxx_messageInfo_VoiceSelectionParams.Merge(dst, src)
}
func (m *VoiceSelectionParams) XXX_Size() int {
return xxx_messageInfo_VoiceSelectionParams.Size(m)
}
func (m *VoiceSelectionParams) XXX_DiscardUnknown() {
xxx_messageInfo_VoiceSelectionParams.DiscardUnknown(m)
}
var xxx_messageInfo_VoiceSelectionParams proto.InternalMessageInfo
func (m *VoiceSelectionParams) GetLanguageCode() string {
if m != nil {
@ -397,16 +535,16 @@ func (m *VoiceSelectionParams) GetSsmlGender() SsmlVoiceGender {
// Description of audio data to be synthesized.
type AudioConfig struct {
// Required. The format of the requested audio byte stream.
AudioEncoding AudioEncoding `protobuf:"varint,1,opt,name=audio_encoding,json=audioEncoding,enum=google.cloud.texttospeech.v1beta1.AudioEncoding" json:"audio_encoding,omitempty"`
AudioEncoding AudioEncoding `protobuf:"varint,1,opt,name=audio_encoding,json=audioEncoding,proto3,enum=google.cloud.texttospeech.v1beta1.AudioEncoding" json:"audio_encoding,omitempty"`
// Optional speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
// native speed supported by the specific voice. 2.0 is twice as fast, and
// 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
// other values < 0.25 or > 4.0 will return an error.
SpeakingRate float64 `protobuf:"fixed64,2,opt,name=speaking_rate,json=speakingRate" json:"speaking_rate,omitempty"`
SpeakingRate float64 `protobuf:"fixed64,2,opt,name=speaking_rate,json=speakingRate,proto3" json:"speaking_rate,omitempty"`
// Optional speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20
// semitones from the original pitch. -20 means decrease 20 semitones from the
// original pitch.
Pitch float64 `protobuf:"fixed64,3,opt,name=pitch" json:"pitch,omitempty"`
Pitch float64 `protobuf:"fixed64,3,opt,name=pitch,proto3" json:"pitch,omitempty"`
// Optional volume gain (in dB) of the normal native volume supported by the
// specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
// 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
@ -415,20 +553,46 @@ type AudioConfig struct {
// amplitude of the normal native signal amplitude. Strongly recommend not to
// exceed +10 (dB) as there's usually no effective increase in loudness for
// any value greater than that.
VolumeGainDb float64 `protobuf:"fixed64,4,opt,name=volume_gain_db,json=volumeGainDb" json:"volume_gain_db,omitempty"`
VolumeGainDb float64 `protobuf:"fixed64,4,opt,name=volume_gain_db,json=volumeGainDb,proto3" json:"volume_gain_db,omitempty"`
// The synthesis sample rate (in hertz) for this audio. Optional. If this is
// different from the voice's natural sample rate, then the synthesizer will
// honor this request by converting to the desired sample rate (which might
// result in worse audio quality), unless the specified sample rate is not
// supported for the encoding chosen, in which case it will fail the request
// and return [google.rpc.Code.INVALID_ARGUMENT][].
SampleRateHertz int32 `protobuf:"varint,5,opt,name=sample_rate_hertz,json=sampleRateHertz" json:"sample_rate_hertz,omitempty"`
SampleRateHertz int32 `protobuf:"varint,5,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"`
// An identifier which selects 'audio effects' profiles that are applied on
// (post synthesized) text to speech.
// Effects are applied on top of each other in the order they are given.
EffectsProfileId []string `protobuf:"bytes,6,rep,name=effects_profile_id,json=effectsProfileId,proto3" json:"effects_profile_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AudioConfig) Reset() { *m = AudioConfig{} }
func (m *AudioConfig) String() string { return proto.CompactTextString(m) }
func (*AudioConfig) ProtoMessage() {}
func (*AudioConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *AudioConfig) Reset() { *m = AudioConfig{} }
func (m *AudioConfig) String() string { return proto.CompactTextString(m) }
func (*AudioConfig) ProtoMessage() {}
func (*AudioConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_tts_9d0ebd338dfb28bd, []int{6}
}
func (m *AudioConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AudioConfig.Unmarshal(m, b)
}
func (m *AudioConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AudioConfig.Marshal(b, m, deterministic)
}
func (dst *AudioConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_AudioConfig.Merge(dst, src)
}
func (m *AudioConfig) XXX_Size() int {
return xxx_messageInfo_AudioConfig.Size(m)
}
func (m *AudioConfig) XXX_DiscardUnknown() {
xxx_messageInfo_AudioConfig.DiscardUnknown(m)
}
var xxx_messageInfo_AudioConfig proto.InternalMessageInfo
func (m *AudioConfig) GetAudioEncoding() AudioEncoding {
if m != nil {
@ -465,19 +629,48 @@ func (m *AudioConfig) GetSampleRateHertz() int32 {
return 0
}
func (m *AudioConfig) GetEffectsProfileId() []string {
if m != nil {
return m.EffectsProfileId
}
return nil
}
// The message returned to the client by the `SynthesizeSpeech` method.
type SynthesizeSpeechResponse struct {
// The audio data bytes encoded as specified in the request, including the
// header (For LINEAR16 audio, we include the WAV header). Note: as
// with all bytes fields, protobuffers use a pure binary representation,
// whereas JSON representations use base64.
AudioContent []byte `protobuf:"bytes,1,opt,name=audio_content,json=audioContent,proto3" json:"audio_content,omitempty"`
AudioContent []byte `protobuf:"bytes,1,opt,name=audio_content,json=audioContent,proto3" json:"audio_content,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SynthesizeSpeechResponse) Reset() { *m = SynthesizeSpeechResponse{} }
func (m *SynthesizeSpeechResponse) String() string { return proto.CompactTextString(m) }
func (*SynthesizeSpeechResponse) ProtoMessage() {}
func (*SynthesizeSpeechResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *SynthesizeSpeechResponse) Reset() { *m = SynthesizeSpeechResponse{} }
func (m *SynthesizeSpeechResponse) String() string { return proto.CompactTextString(m) }
func (*SynthesizeSpeechResponse) ProtoMessage() {}
func (*SynthesizeSpeechResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_cloud_tts_9d0ebd338dfb28bd, []int{7}
}
func (m *SynthesizeSpeechResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SynthesizeSpeechResponse.Unmarshal(m, b)
}
func (m *SynthesizeSpeechResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SynthesizeSpeechResponse.Marshal(b, m, deterministic)
}
func (dst *SynthesizeSpeechResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SynthesizeSpeechResponse.Merge(dst, src)
}
func (m *SynthesizeSpeechResponse) XXX_Size() int {
return xxx_messageInfo_SynthesizeSpeechResponse.Size(m)
}
func (m *SynthesizeSpeechResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SynthesizeSpeechResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SynthesizeSpeechResponse proto.InternalMessageInfo
func (m *SynthesizeSpeechResponse) GetAudioContent() []byte {
if m != nil {
@ -507,8 +700,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for TextToSpeech service
// TextToSpeechClient is the client API for TextToSpeech service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type TextToSpeechClient interface {
// Returns a list of [Voice][google.cloud.texttospeech.v1beta1.Voice]
// supported for synthesis.
@ -528,7 +722,7 @@ func NewTextToSpeechClient(cc *grpc.ClientConn) TextToSpeechClient {
func (c *textToSpeechClient) ListVoices(ctx context.Context, in *ListVoicesRequest, opts ...grpc.CallOption) (*ListVoicesResponse, error) {
out := new(ListVoicesResponse)
err := grpc.Invoke(ctx, "/google.cloud.texttospeech.v1beta1.TextToSpeech/ListVoices", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.texttospeech.v1beta1.TextToSpeech/ListVoices", in, out, opts...)
if err != nil {
return nil, err
}
@ -537,15 +731,14 @@ func (c *textToSpeechClient) ListVoices(ctx context.Context, in *ListVoicesReque
func (c *textToSpeechClient) SynthesizeSpeech(ctx context.Context, in *SynthesizeSpeechRequest, opts ...grpc.CallOption) (*SynthesizeSpeechResponse, error) {
out := new(SynthesizeSpeechResponse)
err := grpc.Invoke(ctx, "/google.cloud.texttospeech.v1beta1.TextToSpeech/SynthesizeSpeech", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.cloud.texttospeech.v1beta1.TextToSpeech/SynthesizeSpeech", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for TextToSpeech service
// TextToSpeechServer is the server API for TextToSpeech service.
type TextToSpeechServer interface {
// Returns a list of [Voice][google.cloud.texttospeech.v1beta1.Voice]
// supported for synthesis.
@ -612,61 +805,65 @@ var _TextToSpeech_serviceDesc = grpc.ServiceDesc{
Metadata: "google/cloud/texttospeech/v1beta1/cloud_tts.proto",
}
func init() { proto.RegisterFile("google/cloud/texttospeech/v1beta1/cloud_tts.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 844 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x4d, 0x6f, 0x1b, 0x45,
0x18, 0xee, 0xd8, 0x71, 0xda, 0xbc, 0x5e, 0x3b, 0xce, 0x10, 0x51, 0x13, 0x51, 0xe4, 0x6e, 0xa8,
0x64, 0xe5, 0x60, 0x63, 0x97, 0x0f, 0x91, 0x1e, 0xc0, 0xb1, 0xb7, 0xae, 0x25, 0x7f, 0x31, 0x9b,
0xa4, 0x12, 0x97, 0xd5, 0x64, 0x3d, 0x6c, 0x56, 0xac, 0x67, 0x16, 0xcf, 0x6c, 0x54, 0x7a, 0x44,
0x9c, 0x39, 0xc0, 0x5f, 0xe0, 0x07, 0xf0, 0x5b, 0x40, 0xe2, 0x17, 0xf0, 0x0f, 0xb8, 0x70, 0x44,
0x33, 0xbb, 0x71, 0x1d, 0x07, 0x51, 0x97, 0x03, 0xb7, 0x9d, 0x67, 0xfc, 0x3c, 0xf3, 0xbe, 0xcf,
0x3c, 0x7e, 0x07, 0x5a, 0x81, 0x10, 0x41, 0xc4, 0x9a, 0x7e, 0x24, 0x92, 0x59, 0x53, 0xb1, 0x17,
0x4a, 0x09, 0x19, 0x33, 0xe6, 0x5f, 0x36, 0xaf, 0x5a, 0x17, 0x4c, 0xd1, 0x56, 0xba, 0xe5, 0x29,
0x25, 0x1b, 0xf1, 0x42, 0x28, 0x81, 0x1f, 0xa6, 0x94, 0x86, 0xc1, 0x1b, 0xab, 0x94, 0x46, 0x46,
0x39, 0x78, 0x37, 0x53, 0xa5, 0x71, 0xd8, 0xa4, 0x9c, 0x0b, 0x45, 0x55, 0x28, 0x78, 0x26, 0x60,
0xbf, 0x05, 0x7b, 0xc3, 0x50, 0xaa, 0x73, 0x11, 0xfa, 0x4c, 0x12, 0xf6, 0x4d, 0xc2, 0xa4, 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, 0x35, 0xd8, 0xbe, 0xff, 0xdd, 0x6f, 0x7f, 0xfc, 0x94, 0xdb, 0xc3, 0xbb,
0xcb, 0x37, 0x21, 0x1d, 0xae, 0xf8, 0x17, 0x04, 0x95, 0xf5, 0x6b, 0xc1, 0xc7, 0x6f, 0x30, 0x71,
0xd6, 0x86, 0xd7, 0xc1, 0x93, 0xff, 0xc4, 0xcd, 0xca, 0x3c, 0x34, 0x65, 0x3e, 0xb0, 0xab, 0xcb,
0x32, 0x35, 0xff, 0x58, 0x2e, 0x7f, 0x7f, 0x8c, 0x8e, 0x4e, 0x7e, 0x40, 0xf0, 0xc8, 0x17, 0xf3,
0xd7, 0x9f, 0x73, 0xb2, 0xb7, 0xea, 0xff, 0x54, 0xbf, 0x5c, 0x53, 0xf4, 0xe5, 0x28, 0xe3, 0x05,
0x42, 0xff, 0xfb, 0x1b, 0x62, 0x11, 0x34, 0x03, 0xc6, 0xcd, 0xbb, 0xd6, 0x4c, 0xb7, 0x68, 0x1c,
0xca, 0x7f, 0x79, 0x4e, 0x9f, 0xac, 0x82, 0x7f, 0x21, 0x74, 0xb1, 0x6d, 0xc8, 0x8f, 0xff, 0x0e,
0x00, 0x00, 0xff, 0xff, 0x7f, 0xac, 0x4e, 0x87, 0x8a, 0x07, 0x00, 0x00,
func init() {
proto.RegisterFile("google/cloud/texttospeech/v1beta1/cloud_tts.proto", fileDescriptor_cloud_tts_9d0ebd338dfb28bd)
}
var fileDescriptor_cloud_tts_9d0ebd338dfb28bd = []byte{
// 875 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xdd, 0x6e, 0x1b, 0x45,
0x14, 0xee, 0xd8, 0x71, 0xda, 0x1e, 0xaf, 0x1d, 0x67, 0x14, 0x51, 0x13, 0x51, 0x94, 0x6e, 0xa8,
0x64, 0x45, 0xc8, 0xc6, 0x2e, 0xbf, 0xe9, 0x05, 0x38, 0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, 0x78, 0xff, 0x16, 0xf3, 0xe9,
0xda, 0xa8, 0xdb, 0x7e, 0xfa, 0x9f, 0xb0, 0x39, 0xcd, 0x5d, 0x4d, 0xf3, 0xa1, 0x5d, 0xbf, 0xa4,
0x99, 0xe1, 0xf7, 0xe5, 0xe5, 0xf7, 0xfb, 0x68, 0xef, 0xe0, 0x07, 0x04, 0x8f, 0x7d, 0x31, 0x7f,
0xf3, 0x39, 0x07, 0x9b, 0xcb, 0xfa, 0xcf, 0xb2, 0xc7, 0x70, 0x86, 0xbe, 0x1a, 0xe7, 0xb8, 0x50,
0x64, 0xb3, 0xa2, 0x29, 0xd2, 0xb0, 0x15, 0x32, 0xae, 0x9f, 0xca, 0x96, 0x49, 0xd1, 0x24, 0x92,
0xff, 0xf2, 0x42, 0x3f, 0x5d, 0x0e, 0xfe, 0x85, 0xd0, 0xc9, 0xba, 0x06, 0x3f, 0xf9, 0x3b, 0x00,
0x00, 0xff, 0xff, 0x26, 0x28, 0xff, 0x42, 0xdd, 0x07, 0x00, 0x00,
}

View File

@ -1,36 +1,15 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/videointelligence/v1beta1/video_intelligence.proto
/*
Package videointelligence is a generated protocol buffer package.
It is generated from these files:
google/cloud/videointelligence/v1beta1/video_intelligence.proto
It has these top-level messages:
AnnotateVideoRequest
VideoContext
VideoSegment
LabelLocation
LabelAnnotation
SafeSearchAnnotation
BoundingBox
FaceLocation
FaceAnnotation
VideoAnnotationResults
AnnotateVideoResponse
VideoAnnotationProgress
AnnotateVideoProgress
*/
package videointelligence
package videointelligence // import "google.golang.org/genproto/googleapis/cloud/videointelligence/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_longrunning "google.golang.org/genproto/googleapis/longrunning"
import google_protobuf3 "github.com/golang/protobuf/ptypes/timestamp"
import google_rpc "google.golang.org/genproto/googleapis/rpc/status"
import longrunning "google.golang.org/genproto/googleapis/longrunning"
import status "google.golang.org/genproto/googleapis/rpc/status"
import (
context "golang.org/x/net/context"
@ -82,7 +61,9 @@ var Feature_value = map[string]int32{
func (x Feature) String() string {
return proto.EnumName(Feature_name, int32(x))
}
func (Feature) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (Feature) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_video_intelligence_2adacfc9be54b175, []int{0}
}
// Label level (scope).
type LabelLevel int32
@ -119,7 +100,9 @@ var LabelLevel_value = map[string]int32{
func (x LabelLevel) String() string {
return proto.EnumName(LabelLevel_name, int32(x))
}
func (LabelLevel) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (LabelLevel) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_video_intelligence_2adacfc9be54b175, []int{1}
}
// Label detection mode.
type LabelDetectionMode int32
@ -151,7 +134,9 @@ var LabelDetectionMode_value = map[string]int32{
func (x LabelDetectionMode) String() string {
return proto.EnumName(LabelDetectionMode_name, int32(x))
}
func (LabelDetectionMode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (LabelDetectionMode) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_video_intelligence_2adacfc9be54b175, []int{2}
}
// Bucketized representation of likelihood.
type Likelihood int32
@ -191,7 +176,9 @@ var Likelihood_value = map[string]int32{
func (x Likelihood) String() string {
return proto.EnumName(Likelihood_name, int32(x))
}
func (Likelihood) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (Likelihood) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_video_intelligence_2adacfc9be54b175, []int{3}
}
// Video annotation request.
type AnnotateVideoRequest struct {
@ -205,31 +192,53 @@ type AnnotateVideoRequest struct {
// multiple videos. Supported wildcards: '*' to match 0 or more characters;
// '?' to match 1 character. If unset, the input video should be embedded
// in the request as `input_content`. If set, `input_content` should be unset.
InputUri string `protobuf:"bytes,1,opt,name=input_uri,json=inputUri" json:"input_uri,omitempty"`
InputUri string `protobuf:"bytes,1,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"`
// The video data bytes. Encoding: base64. If unset, the input video(s)
// should be specified via `input_uri`. If set, `input_uri` should be unset.
InputContent string `protobuf:"bytes,6,opt,name=input_content,json=inputContent" json:"input_content,omitempty"`
InputContent string `protobuf:"bytes,6,opt,name=input_content,json=inputContent,proto3" json:"input_content,omitempty"`
// Requested video annotation features.
Features []Feature `protobuf:"varint,2,rep,packed,name=features,enum=google.cloud.videointelligence.v1beta1.Feature" json:"features,omitempty"`
Features []Feature `protobuf:"varint,2,rep,packed,name=features,proto3,enum=google.cloud.videointelligence.v1beta1.Feature" json:"features,omitempty"`
// Additional video context and/or feature-specific parameters.
VideoContext *VideoContext `protobuf:"bytes,3,opt,name=video_context,json=videoContext" json:"video_context,omitempty"`
VideoContext *VideoContext `protobuf:"bytes,3,opt,name=video_context,json=videoContext,proto3" json:"video_context,omitempty"`
// Optional location where the output (in JSON format) should be stored.
// Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
// URIs are supported, which must be specified in the following format:
// `gs://bucket-id/object-id` (other URI formats return
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
// [Request URIs](/storage/docs/reference-uris).
OutputUri string `protobuf:"bytes,4,opt,name=output_uri,json=outputUri" json:"output_uri,omitempty"`
OutputUri string `protobuf:"bytes,4,opt,name=output_uri,json=outputUri,proto3" json:"output_uri,omitempty"`
// Optional cloud region where annotation should take place. Supported cloud
// regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
// is specified, a region will be determined based on video file location.
LocationId string `protobuf:"bytes,5,opt,name=location_id,json=locationId" json:"location_id,omitempty"`
LocationId string `protobuf:"bytes,5,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AnnotateVideoRequest) Reset() { *m = AnnotateVideoRequest{} }
func (m *AnnotateVideoRequest) String() string { return proto.CompactTextString(m) }
func (*AnnotateVideoRequest) ProtoMessage() {}
func (*AnnotateVideoRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *AnnotateVideoRequest) Reset() { *m = AnnotateVideoRequest{} }
func (m *AnnotateVideoRequest) String() string { return proto.CompactTextString(m) }
func (*AnnotateVideoRequest) ProtoMessage() {}
func (*AnnotateVideoRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_video_intelligence_2adacfc9be54b175, []int{0}
}
func (m *AnnotateVideoRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AnnotateVideoRequest.Unmarshal(m, b)
}
func (m *AnnotateVideoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AnnotateVideoRequest.Marshal(b, m, deterministic)
}
func (dst *AnnotateVideoRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_AnnotateVideoRequest.Merge(dst, src)
}
func (m *AnnotateVideoRequest) XXX_Size() int {
return xxx_messageInfo_AnnotateVideoRequest.Size(m)
}
func (m *AnnotateVideoRequest) XXX_DiscardUnknown() {
xxx_messageInfo_AnnotateVideoRequest.DiscardUnknown(m)
}
var xxx_messageInfo_AnnotateVideoRequest proto.InternalMessageInfo
func (m *AnnotateVideoRequest) GetInputUri() string {
if m != nil {
@ -278,32 +287,54 @@ type VideoContext struct {
// Video segments to annotate. The segments may overlap and are not required
// to be contiguous or span the whole video. If unspecified, each video
// is treated as a single segment.
Segments []*VideoSegment `protobuf:"bytes,1,rep,name=segments" json:"segments,omitempty"`
Segments []*VideoSegment `protobuf:"bytes,1,rep,name=segments,proto3" json:"segments,omitempty"`
// If label detection has been requested, what labels should be detected
// in addition to video-level labels or segment-level labels. If unspecified,
// defaults to `SHOT_MODE`.
LabelDetectionMode LabelDetectionMode `protobuf:"varint,2,opt,name=label_detection_mode,json=labelDetectionMode,enum=google.cloud.videointelligence.v1beta1.LabelDetectionMode" json:"label_detection_mode,omitempty"`
LabelDetectionMode LabelDetectionMode `protobuf:"varint,2,opt,name=label_detection_mode,json=labelDetectionMode,proto3,enum=google.cloud.videointelligence.v1beta1.LabelDetectionMode" json:"label_detection_mode,omitempty"`
// Whether the video has been shot from a stationary (i.e. non-moving) camera.
// When set to true, might improve detection accuracy for moving objects.
StationaryCamera bool `protobuf:"varint,3,opt,name=stationary_camera,json=stationaryCamera" json:"stationary_camera,omitempty"`
StationaryCamera bool `protobuf:"varint,3,opt,name=stationary_camera,json=stationaryCamera,proto3" json:"stationary_camera,omitempty"`
// Model to use for label detection.
// Supported values: "latest" and "stable" (the default).
LabelDetectionModel string `protobuf:"bytes,4,opt,name=label_detection_model,json=labelDetectionModel" json:"label_detection_model,omitempty"`
LabelDetectionModel string `protobuf:"bytes,4,opt,name=label_detection_model,json=labelDetectionModel,proto3" json:"label_detection_model,omitempty"`
// Model to use for face detection.
// Supported values: "latest" and "stable" (the default).
FaceDetectionModel string `protobuf:"bytes,5,opt,name=face_detection_model,json=faceDetectionModel" json:"face_detection_model,omitempty"`
FaceDetectionModel string `protobuf:"bytes,5,opt,name=face_detection_model,json=faceDetectionModel,proto3" json:"face_detection_model,omitempty"`
// Model to use for shot change detection.
// Supported values: "latest" and "stable" (the default).
ShotChangeDetectionModel string `protobuf:"bytes,6,opt,name=shot_change_detection_model,json=shotChangeDetectionModel" json:"shot_change_detection_model,omitempty"`
ShotChangeDetectionModel string `protobuf:"bytes,6,opt,name=shot_change_detection_model,json=shotChangeDetectionModel,proto3" json:"shot_change_detection_model,omitempty"`
// Model to use for safe search detection.
// Supported values: "latest" and "stable" (the default).
SafeSearchDetectionModel string `protobuf:"bytes,7,opt,name=safe_search_detection_model,json=safeSearchDetectionModel" json:"safe_search_detection_model,omitempty"`
SafeSearchDetectionModel string `protobuf:"bytes,7,opt,name=safe_search_detection_model,json=safeSearchDetectionModel,proto3" json:"safe_search_detection_model,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VideoContext) Reset() { *m = VideoContext{} }
func (m *VideoContext) String() string { return proto.CompactTextString(m) }
func (*VideoContext) ProtoMessage() {}
func (*VideoContext) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *VideoContext) Reset() { *m = VideoContext{} }
func (m *VideoContext) String() string { return proto.CompactTextString(m) }
func (*VideoContext) ProtoMessage() {}
func (*VideoContext) Descriptor() ([]byte, []int) {
return fileDescriptor_video_intelligence_2adacfc9be54b175, []int{1}
}
func (m *VideoContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VideoContext.Unmarshal(m, b)
}
func (m *VideoContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VideoContext.Marshal(b, m, deterministic)
}
func (dst *VideoContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_VideoContext.Merge(dst, src)
}
func (m *VideoContext) XXX_Size() int {
return xxx_messageInfo_VideoContext.Size(m)
}
func (m *VideoContext) XXX_DiscardUnknown() {
xxx_messageInfo_VideoContext.DiscardUnknown(m)
}
var xxx_messageInfo_VideoContext proto.InternalMessageInfo
func (m *VideoContext) GetSegments() []*VideoSegment {
if m != nil {
@ -357,15 +388,37 @@ func (m *VideoContext) GetSafeSearchDetectionModel() string {
// Video segment.
type VideoSegment struct {
// Start offset in microseconds (inclusive). Unset means 0.
StartTimeOffset int64 `protobuf:"varint,1,opt,name=start_time_offset,json=startTimeOffset" json:"start_time_offset,omitempty"`
StartTimeOffset int64 `protobuf:"varint,1,opt,name=start_time_offset,json=startTimeOffset,proto3" json:"start_time_offset,omitempty"`
// End offset in microseconds (inclusive). Unset means 0.
EndTimeOffset int64 `protobuf:"varint,2,opt,name=end_time_offset,json=endTimeOffset" json:"end_time_offset,omitempty"`
EndTimeOffset int64 `protobuf:"varint,2,opt,name=end_time_offset,json=endTimeOffset,proto3" json:"end_time_offset,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VideoSegment) Reset() { *m = VideoSegment{} }
func (m *VideoSegment) String() string { return proto.CompactTextString(m) }
func (*VideoSegment) ProtoMessage() {}
func (*VideoSegment) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *VideoSegment) Reset() { *m = VideoSegment{} }
func (m *VideoSegment) String() string { return proto.CompactTextString(m) }
func (*VideoSegment) ProtoMessage() {}
func (*VideoSegment) Descriptor() ([]byte, []int) {
return fileDescriptor_video_intelligence_2adacfc9be54b175, []int{2}
}
func (m *VideoSegment) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VideoSegment.Unmarshal(m, b)
}
func (m *VideoSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VideoSegment.Marshal(b, m, deterministic)
}
func (dst *VideoSegment) XXX_Merge(src proto.Message) {
xxx_messageInfo_VideoSegment.Merge(dst, src)
}
func (m *VideoSegment) XXX_Size() int {
return xxx_messageInfo_VideoSegment.Size(m)
}
func (m *VideoSegment) XXX_DiscardUnknown() {
xxx_messageInfo_VideoSegment.DiscardUnknown(m)
}
var xxx_messageInfo_VideoSegment proto.InternalMessageInfo
func (m *VideoSegment) GetStartTimeOffset() int64 {
if m != nil {
@ -387,17 +440,39 @@ type LabelLocation struct {
// Set to [timestamp, timestamp] for frame-level labels.
// Otherwise, corresponds to one of `AnnotateSpec.segments`
// (if specified) or to shot boundaries (if requested).
Segment *VideoSegment `protobuf:"bytes,1,opt,name=segment" json:"segment,omitempty"`
Segment *VideoSegment `protobuf:"bytes,1,opt,name=segment,proto3" json:"segment,omitempty"`
// Confidence that the label is accurate. Range: [0, 1].
Confidence float32 `protobuf:"fixed32,2,opt,name=confidence" json:"confidence,omitempty"`
Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"`
// Label level.
Level LabelLevel `protobuf:"varint,3,opt,name=level,enum=google.cloud.videointelligence.v1beta1.LabelLevel" json:"level,omitempty"`
Level LabelLevel `protobuf:"varint,3,opt,name=level,proto3,enum=google.cloud.videointelligence.v1beta1.LabelLevel" json:"level,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LabelLocation) Reset() { *m = LabelLocation{} }
func (m *LabelLocation) String() string { return proto.CompactTextString(m) }
func (*LabelLocation) ProtoMessage() {}
func (*LabelLocation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *LabelLocation) Reset() { *m = LabelLocation{} }
func (m *LabelLocation) String() string { return proto.CompactTextString(m) }
func (*LabelLocation) ProtoMessage() {}
func (*LabelLocation) Descriptor() ([]byte, []int) {
return fileDescriptor_video_intelligence_2adacfc9be54b175, []int{3}
}
func (m *LabelLocation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LabelLocation.Unmarshal(m, b)
}
func (m *LabelLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LabelLocation.Marshal(b, m, deterministic)
}
func (dst *LabelLocation) XXX_Merge(src proto.Message) {
xxx_messageInfo_LabelLocation.Merge(dst, src)
}
func (m *LabelLocation) XXX_Size() int {
return xxx_messageInfo_LabelLocation.Size(m)
}
func (m *LabelLocation) XXX_DiscardUnknown() {
xxx_messageInfo_LabelLocation.DiscardUnknown(m)
}
var xxx_messageInfo_LabelLocation proto.InternalMessageInfo
func (m *LabelLocation) GetSegment() *VideoSegment {
if m != nil {
@ -423,17 +498,39 @@ func (m *LabelLocation) GetLevel() LabelLevel {
// Label annotation.
type LabelAnnotation struct {
// Textual description, e.g. `Fixed-gear bicycle`.
Description string `protobuf:"bytes,1,opt,name=description" json:"description,omitempty"`
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
// Language code for `description` in BCP-47 format.
LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode" json:"language_code,omitempty"`
LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// Where the label was detected and with what confidence.
Locations []*LabelLocation `protobuf:"bytes,3,rep,name=locations" json:"locations,omitempty"`
Locations []*LabelLocation `protobuf:"bytes,3,rep,name=locations,proto3" json:"locations,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LabelAnnotation) Reset() { *m = LabelAnnotation{} }
func (m *LabelAnnotation) String() string { return proto.CompactTextString(m) }
func (*LabelAnnotation) ProtoMessage() {}
func (*LabelAnnotation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *LabelAnnotation) Reset() { *m = LabelAnnotation{} }
func (m *LabelAnnotation) String() string { return proto.CompactTextString(m) }
func (*LabelAnnotation) ProtoMessage() {}
func (*LabelAnnotation) Descriptor() ([]byte, []int) {
return fileDescriptor_video_intelligence_2adacfc9be54b175, []int{4}
}
func (m *LabelAnnotation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LabelAnnotation.Unmarshal(m, b)
}
func (m *LabelAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LabelAnnotation.Marshal(b, m, deterministic)
}
func (dst *LabelAnnotation) XXX_Merge(src proto.Message) {
xxx_messageInfo_LabelAnnotation.Merge(dst, src)
}
func (m *LabelAnnotation) XXX_Size() int {
return xxx_messageInfo_LabelAnnotation.Size(m)
}
func (m *LabelAnnotation) XXX_DiscardUnknown() {
xxx_messageInfo_LabelAnnotation.DiscardUnknown(m)
}
var xxx_messageInfo_LabelAnnotation proto.InternalMessageInfo
func (m *LabelAnnotation) GetDescription() string {
if m != nil {
@ -463,24 +560,46 @@ func (m *LabelAnnotation) GetLocations() []*LabelLocation {
// for all other types of unsafe content.
type SafeSearchAnnotation struct {
// Likelihood of adult content.
Adult Likelihood `protobuf:"varint,1,opt,name=adult,enum=google.cloud.videointelligence.v1beta1.Likelihood" json:"adult,omitempty"`
Adult Likelihood `protobuf:"varint,1,opt,name=adult,proto3,enum=google.cloud.videointelligence.v1beta1.Likelihood" json:"adult,omitempty"`
// Likelihood that an obvious modification was made to the original
// version to make it appear funny or offensive.
Spoof Likelihood `protobuf:"varint,2,opt,name=spoof,enum=google.cloud.videointelligence.v1beta1.Likelihood" json:"spoof,omitempty"`
Spoof Likelihood `protobuf:"varint,2,opt,name=spoof,proto3,enum=google.cloud.videointelligence.v1beta1.Likelihood" json:"spoof,omitempty"`
// Likelihood of medical content.
Medical Likelihood `protobuf:"varint,3,opt,name=medical,enum=google.cloud.videointelligence.v1beta1.Likelihood" json:"medical,omitempty"`
Medical Likelihood `protobuf:"varint,3,opt,name=medical,proto3,enum=google.cloud.videointelligence.v1beta1.Likelihood" json:"medical,omitempty"`
// Likelihood of violent content.
Violent Likelihood `protobuf:"varint,4,opt,name=violent,enum=google.cloud.videointelligence.v1beta1.Likelihood" json:"violent,omitempty"`
Violent Likelihood `protobuf:"varint,4,opt,name=violent,proto3,enum=google.cloud.videointelligence.v1beta1.Likelihood" json:"violent,omitempty"`
// Likelihood of racy content.
Racy Likelihood `protobuf:"varint,5,opt,name=racy,enum=google.cloud.videointelligence.v1beta1.Likelihood" json:"racy,omitempty"`
Racy Likelihood `protobuf:"varint,5,opt,name=racy,proto3,enum=google.cloud.videointelligence.v1beta1.Likelihood" json:"racy,omitempty"`
// Video time offset in microseconds.
TimeOffset int64 `protobuf:"varint,6,opt,name=time_offset,json=timeOffset" json:"time_offset,omitempty"`
TimeOffset int64 `protobuf:"varint,6,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SafeSearchAnnotation) Reset() { *m = SafeSearchAnnotation{} }
func (m *SafeSearchAnnotation) String() string { return proto.CompactTextString(m) }
func (*SafeSearchAnnotation) ProtoMessage() {}
func (*SafeSearchAnnotation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *SafeSearchAnnotation) Reset() { *m = SafeSearchAnnotation{} }
func (m *SafeSearchAnnotation) String() string { return proto.CompactTextString(m) }
func (*SafeSearchAnnotation) ProtoMessage() {}
func (*SafeSearchAnnotation) Descriptor() ([]byte, []int) {
return fileDescriptor_video_intelligence_2adacfc9be54b175, []int{5}
}
func (m *SafeSearchAnnotation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SafeSearchAnnotation.Unmarshal(m, b)
}
func (m *SafeSearchAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SafeSearchAnnotation.Marshal(b, m, deterministic)
}
func (dst *SafeSearchAnnotation) XXX_Merge(src proto.Message) {
xxx_messageInfo_SafeSearchAnnotation.Merge(dst, src)
}
func (m *SafeSearchAnnotation) XXX_Size() int {
return xxx_messageInfo_SafeSearchAnnotation.Size(m)
}
func (m *SafeSearchAnnotation) XXX_DiscardUnknown() {
xxx_messageInfo_SafeSearchAnnotation.DiscardUnknown(m)
}
var xxx_messageInfo_SafeSearchAnnotation proto.InternalMessageInfo
func (m *SafeSearchAnnotation) GetAdult() Likelihood {
if m != nil {
@ -527,19 +646,41 @@ func (m *SafeSearchAnnotation) GetTimeOffset() int64 {
// Bounding box.
type BoundingBox struct {
// Left X coordinate.
Left int32 `protobuf:"varint,1,opt,name=left" json:"left,omitempty"`
Left int32 `protobuf:"varint,1,opt,name=left,proto3" json:"left,omitempty"`
// Right X coordinate.
Right int32 `protobuf:"varint,2,opt,name=right" json:"right,omitempty"`
Right int32 `protobuf:"varint,2,opt,name=right,proto3" json:"right,omitempty"`
// Bottom Y coordinate.
Bottom int32 `protobuf:"varint,3,opt,name=bottom" json:"bottom,omitempty"`
Bottom int32 `protobuf:"varint,3,opt,name=bottom,proto3" json:"bottom,omitempty"`
// Top Y coordinate.
Top int32 `protobuf:"varint,4,opt,name=top" json:"top,omitempty"`
Top int32 `protobuf:"varint,4,opt,name=top,proto3" json:"top,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BoundingBox) Reset() { *m = BoundingBox{} }
func (m *BoundingBox) String() string { return proto.CompactTextString(m) }
func (*BoundingBox) ProtoMessage() {}
func (*BoundingBox) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *BoundingBox) Reset() { *m = BoundingBox{} }
func (m *BoundingBox) String() string { return proto.CompactTextString(m) }
func (*BoundingBox) ProtoMessage() {}
func (*BoundingBox) Descriptor() ([]byte, []int) {
return fileDescriptor_video_intelligence_2adacfc9be54b175, []int{6}
}
func (m *BoundingBox) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BoundingBox.Unmarshal(m, b)
}
func (m *BoundingBox) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BoundingBox.Marshal(b, m, deterministic)
}
func (dst *BoundingBox) XXX_Merge(src proto.Message) {
xxx_messageInfo_BoundingBox.Merge(dst, src)
}
func (m *BoundingBox) XXX_Size() int {
return xxx_messageInfo_BoundingBox.Size(m)
}
func (m *BoundingBox) XXX_DiscardUnknown() {
xxx_messageInfo_BoundingBox.DiscardUnknown(m)
}
var xxx_messageInfo_BoundingBox proto.InternalMessageInfo
func (m *BoundingBox) GetLeft() int32 {
if m != nil {
@ -572,15 +713,37 @@ func (m *BoundingBox) GetTop() int32 {
// Face location.
type FaceLocation struct {
// Bounding box in a frame.
BoundingBox *BoundingBox `protobuf:"bytes,1,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
BoundingBox *BoundingBox `protobuf:"bytes,1,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
// Video time offset in microseconds.
TimeOffset int64 `protobuf:"varint,2,opt,name=time_offset,json=timeOffset" json:"time_offset,omitempty"`
TimeOffset int64 `protobuf:"varint,2,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FaceLocation) Reset() { *m = FaceLocation{} }
func (m *FaceLocation) String() string { return proto.CompactTextString(m) }
func (*FaceLocation) ProtoMessage() {}
func (*FaceLocation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *FaceLocation) Reset() { *m = FaceLocation{} }
func (m *FaceLocation) String() string { return proto.CompactTextString(m) }
func (*FaceLocation) ProtoMessage() {}
func (*FaceLocation) Descriptor() ([]byte, []int) {
return fileDescriptor_video_intelligence_2adacfc9be54b175, []int{7}
}
func (m *FaceLocation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FaceLocation.Unmarshal(m, b)
}
func (m *FaceLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FaceLocation.Marshal(b, m, deterministic)
}
func (dst *FaceLocation) XXX_Merge(src proto.Message) {
xxx_messageInfo_FaceLocation.Merge(dst, src)
}
func (m *FaceLocation) XXX_Size() int {
return xxx_messageInfo_FaceLocation.Size(m)
}
func (m *FaceLocation) XXX_DiscardUnknown() {
xxx_messageInfo_FaceLocation.DiscardUnknown(m)
}
var xxx_messageInfo_FaceLocation proto.InternalMessageInfo
func (m *FaceLocation) GetBoundingBox() *BoundingBox {
if m != nil {
@ -599,19 +762,41 @@ func (m *FaceLocation) GetTimeOffset() int64 {
// Face annotation.
type FaceAnnotation struct {
// Thumbnail of a representative face view (in JPEG format). Encoding: base64.
Thumbnail string `protobuf:"bytes,1,opt,name=thumbnail" json:"thumbnail,omitempty"`
Thumbnail string `protobuf:"bytes,1,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"`
// All locations where a face was detected.
// Faces are detected and tracked on a per-video basis
// (as opposed to across multiple videos).
Segments []*VideoSegment `protobuf:"bytes,2,rep,name=segments" json:"segments,omitempty"`
Segments []*VideoSegment `protobuf:"bytes,2,rep,name=segments,proto3" json:"segments,omitempty"`
// Face locations at one frame per second.
Locations []*FaceLocation `protobuf:"bytes,3,rep,name=locations" json:"locations,omitempty"`
Locations []*FaceLocation `protobuf:"bytes,3,rep,name=locations,proto3" json:"locations,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FaceAnnotation) Reset() { *m = FaceAnnotation{} }
func (m *FaceAnnotation) String() string { return proto.CompactTextString(m) }
func (*FaceAnnotation) ProtoMessage() {}
func (*FaceAnnotation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
func (m *FaceAnnotation) Reset() { *m = FaceAnnotation{} }
func (m *FaceAnnotation) String() string { return proto.CompactTextString(m) }
func (*FaceAnnotation) ProtoMessage() {}
func (*FaceAnnotation) Descriptor() ([]byte, []int) {
return fileDescriptor_video_intelligence_2adacfc9be54b175, []int{8}
}
func (m *FaceAnnotation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FaceAnnotation.Unmarshal(m, b)
}
func (m *FaceAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FaceAnnotation.Marshal(b, m, deterministic)
}
func (dst *FaceAnnotation) XXX_Merge(src proto.Message) {
xxx_messageInfo_FaceAnnotation.Merge(dst, src)
}
func (m *FaceAnnotation) XXX_Size() int {
return xxx_messageInfo_FaceAnnotation.Size(m)
}
func (m *FaceAnnotation) XXX_DiscardUnknown() {
xxx_messageInfo_FaceAnnotation.DiscardUnknown(m)
}
var xxx_messageInfo_FaceAnnotation proto.InternalMessageInfo
func (m *FaceAnnotation) GetThumbnail() string {
if m != nil {
@ -638,24 +823,46 @@ func (m *FaceAnnotation) GetLocations() []*FaceLocation {
type VideoAnnotationResults struct {
// Video file location in
// [Google Cloud Storage](https://cloud.google.com/storage/).
InputUri string `protobuf:"bytes,1,opt,name=input_uri,json=inputUri" json:"input_uri,omitempty"`
InputUri string `protobuf:"bytes,1,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"`
// Label annotations. There is exactly one element for each unique label.
LabelAnnotations []*LabelAnnotation `protobuf:"bytes,2,rep,name=label_annotations,json=labelAnnotations" json:"label_annotations,omitempty"`
LabelAnnotations []*LabelAnnotation `protobuf:"bytes,2,rep,name=label_annotations,json=labelAnnotations,proto3" json:"label_annotations,omitempty"`
// Face annotations. There is exactly one element for each unique face.
FaceAnnotations []*FaceAnnotation `protobuf:"bytes,3,rep,name=face_annotations,json=faceAnnotations" json:"face_annotations,omitempty"`
FaceAnnotations []*FaceAnnotation `protobuf:"bytes,3,rep,name=face_annotations,json=faceAnnotations,proto3" json:"face_annotations,omitempty"`
// Shot annotations. Each shot is represented as a video segment.
ShotAnnotations []*VideoSegment `protobuf:"bytes,4,rep,name=shot_annotations,json=shotAnnotations" json:"shot_annotations,omitempty"`
ShotAnnotations []*VideoSegment `protobuf:"bytes,4,rep,name=shot_annotations,json=shotAnnotations,proto3" json:"shot_annotations,omitempty"`
// Safe search annotations.
SafeSearchAnnotations []*SafeSearchAnnotation `protobuf:"bytes,6,rep,name=safe_search_annotations,json=safeSearchAnnotations" json:"safe_search_annotations,omitempty"`
SafeSearchAnnotations []*SafeSearchAnnotation `protobuf:"bytes,6,rep,name=safe_search_annotations,json=safeSearchAnnotations,proto3" json:"safe_search_annotations,omitempty"`
// If set, indicates an error. Note that for a single `AnnotateVideoRequest`
// some videos may succeed and some may fail.
Error *google_rpc.Status `protobuf:"bytes,5,opt,name=error" json:"error,omitempty"`
Error *status.Status `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VideoAnnotationResults) Reset() { *m = VideoAnnotationResults{} }
func (m *VideoAnnotationResults) String() string { return proto.CompactTextString(m) }
func (*VideoAnnotationResults) ProtoMessage() {}
func (*VideoAnnotationResults) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
func (m *VideoAnnotationResults) Reset() { *m = VideoAnnotationResults{} }
func (m *VideoAnnotationResults) String() string { return proto.CompactTextString(m) }
func (*VideoAnnotationResults) ProtoMessage() {}
func (*VideoAnnotationResults) Descriptor() ([]byte, []int) {
return fileDescriptor_video_intelligence_2adacfc9be54b175, []int{9}
}
func (m *VideoAnnotationResults) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VideoAnnotationResults.Unmarshal(m, b)
}
func (m *VideoAnnotationResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VideoAnnotationResults.Marshal(b, m, deterministic)
}
func (dst *VideoAnnotationResults) XXX_Merge(src proto.Message) {
xxx_messageInfo_VideoAnnotationResults.Merge(dst, src)
}
func (m *VideoAnnotationResults) XXX_Size() int {
return xxx_messageInfo_VideoAnnotationResults.Size(m)
}
func (m *VideoAnnotationResults) XXX_DiscardUnknown() {
xxx_messageInfo_VideoAnnotationResults.DiscardUnknown(m)
}
var xxx_messageInfo_VideoAnnotationResults proto.InternalMessageInfo
func (m *VideoAnnotationResults) GetInputUri() string {
if m != nil {
@ -692,7 +899,7 @@ func (m *VideoAnnotationResults) GetSafeSearchAnnotations() []*SafeSearchAnnotat
return nil
}
func (m *VideoAnnotationResults) GetError() *google_rpc.Status {
func (m *VideoAnnotationResults) GetError() *status.Status {
if m != nil {
return m.Error
}
@ -704,13 +911,35 @@ func (m *VideoAnnotationResults) GetError() *google_rpc.Status {
// call of the `google::longrunning::Operations` service.
type AnnotateVideoResponse struct {
// Annotation results for all videos specified in `AnnotateVideoRequest`.
AnnotationResults []*VideoAnnotationResults `protobuf:"bytes,1,rep,name=annotation_results,json=annotationResults" json:"annotation_results,omitempty"`
AnnotationResults []*VideoAnnotationResults `protobuf:"bytes,1,rep,name=annotation_results,json=annotationResults,proto3" json:"annotation_results,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AnnotateVideoResponse) Reset() { *m = AnnotateVideoResponse{} }
func (m *AnnotateVideoResponse) String() string { return proto.CompactTextString(m) }
func (*AnnotateVideoResponse) ProtoMessage() {}
func (*AnnotateVideoResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
func (m *AnnotateVideoResponse) Reset() { *m = AnnotateVideoResponse{} }
func (m *AnnotateVideoResponse) String() string { return proto.CompactTextString(m) }
func (*AnnotateVideoResponse) ProtoMessage() {}
func (*AnnotateVideoResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_video_intelligence_2adacfc9be54b175, []int{10}
}
func (m *AnnotateVideoResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AnnotateVideoResponse.Unmarshal(m, b)
}
func (m *AnnotateVideoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AnnotateVideoResponse.Marshal(b, m, deterministic)
}
func (dst *AnnotateVideoResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_AnnotateVideoResponse.Merge(dst, src)
}
func (m *AnnotateVideoResponse) XXX_Size() int {
return xxx_messageInfo_AnnotateVideoResponse.Size(m)
}
func (m *AnnotateVideoResponse) XXX_DiscardUnknown() {
xxx_messageInfo_AnnotateVideoResponse.DiscardUnknown(m)
}
var xxx_messageInfo_AnnotateVideoResponse proto.InternalMessageInfo
func (m *AnnotateVideoResponse) GetAnnotationResults() []*VideoAnnotationResults {
if m != nil {
@ -723,20 +952,42 @@ func (m *AnnotateVideoResponse) GetAnnotationResults() []*VideoAnnotationResults
type VideoAnnotationProgress struct {
// Video file location in
// [Google Cloud Storage](https://cloud.google.com/storage/).
InputUri string `protobuf:"bytes,1,opt,name=input_uri,json=inputUri" json:"input_uri,omitempty"`
InputUri string `protobuf:"bytes,1,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"`
// Approximate percentage processed thus far.
// Guaranteed to be 100 when fully processed.
ProgressPercent int32 `protobuf:"varint,2,opt,name=progress_percent,json=progressPercent" json:"progress_percent,omitempty"`
ProgressPercent int32 `protobuf:"varint,2,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"`
// Time when the request was received.
StartTime *google_protobuf3.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
StartTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// Time of the most recent update.
UpdateTime *google_protobuf3.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime" json:"update_time,omitempty"`
UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VideoAnnotationProgress) Reset() { *m = VideoAnnotationProgress{} }
func (m *VideoAnnotationProgress) String() string { return proto.CompactTextString(m) }
func (*VideoAnnotationProgress) ProtoMessage() {}
func (*VideoAnnotationProgress) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
func (m *VideoAnnotationProgress) Reset() { *m = VideoAnnotationProgress{} }
func (m *VideoAnnotationProgress) String() string { return proto.CompactTextString(m) }
func (*VideoAnnotationProgress) ProtoMessage() {}
func (*VideoAnnotationProgress) Descriptor() ([]byte, []int) {
return fileDescriptor_video_intelligence_2adacfc9be54b175, []int{11}
}
func (m *VideoAnnotationProgress) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VideoAnnotationProgress.Unmarshal(m, b)
}
func (m *VideoAnnotationProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VideoAnnotationProgress.Marshal(b, m, deterministic)
}
func (dst *VideoAnnotationProgress) XXX_Merge(src proto.Message) {
xxx_messageInfo_VideoAnnotationProgress.Merge(dst, src)
}
func (m *VideoAnnotationProgress) XXX_Size() int {
return xxx_messageInfo_VideoAnnotationProgress.Size(m)
}
func (m *VideoAnnotationProgress) XXX_DiscardUnknown() {
xxx_messageInfo_VideoAnnotationProgress.DiscardUnknown(m)
}
var xxx_messageInfo_VideoAnnotationProgress proto.InternalMessageInfo
func (m *VideoAnnotationProgress) GetInputUri() string {
if m != nil {
@ -752,14 +1003,14 @@ func (m *VideoAnnotationProgress) GetProgressPercent() int32 {
return 0
}
func (m *VideoAnnotationProgress) GetStartTime() *google_protobuf3.Timestamp {
func (m *VideoAnnotationProgress) GetStartTime() *timestamp.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *VideoAnnotationProgress) GetUpdateTime() *google_protobuf3.Timestamp {
func (m *VideoAnnotationProgress) GetUpdateTime() *timestamp.Timestamp {
if m != nil {
return m.UpdateTime
}
@ -771,13 +1022,35 @@ func (m *VideoAnnotationProgress) GetUpdateTime() *google_protobuf3.Timestamp {
// call of the `google::longrunning::Operations` service.
type AnnotateVideoProgress struct {
// Progress metadata for all videos specified in `AnnotateVideoRequest`.
AnnotationProgress []*VideoAnnotationProgress `protobuf:"bytes,1,rep,name=annotation_progress,json=annotationProgress" json:"annotation_progress,omitempty"`
AnnotationProgress []*VideoAnnotationProgress `protobuf:"bytes,1,rep,name=annotation_progress,json=annotationProgress,proto3" json:"annotation_progress,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AnnotateVideoProgress) Reset() { *m = AnnotateVideoProgress{} }
func (m *AnnotateVideoProgress) String() string { return proto.CompactTextString(m) }
func (*AnnotateVideoProgress) ProtoMessage() {}
func (*AnnotateVideoProgress) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
func (m *AnnotateVideoProgress) Reset() { *m = AnnotateVideoProgress{} }
func (m *AnnotateVideoProgress) String() string { return proto.CompactTextString(m) }
func (*AnnotateVideoProgress) ProtoMessage() {}
func (*AnnotateVideoProgress) Descriptor() ([]byte, []int) {
return fileDescriptor_video_intelligence_2adacfc9be54b175, []int{12}
}
func (m *AnnotateVideoProgress) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AnnotateVideoProgress.Unmarshal(m, b)
}
func (m *AnnotateVideoProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AnnotateVideoProgress.Marshal(b, m, deterministic)
}
func (dst *AnnotateVideoProgress) XXX_Merge(src proto.Message) {
xxx_messageInfo_AnnotateVideoProgress.Merge(dst, src)
}
func (m *AnnotateVideoProgress) XXX_Size() int {
return xxx_messageInfo_AnnotateVideoProgress.Size(m)
}
func (m *AnnotateVideoProgress) XXX_DiscardUnknown() {
xxx_messageInfo_AnnotateVideoProgress.DiscardUnknown(m)
}
var xxx_messageInfo_AnnotateVideoProgress proto.InternalMessageInfo
func (m *AnnotateVideoProgress) GetAnnotationProgress() []*VideoAnnotationProgress {
if m != nil {
@ -814,14 +1087,15 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for VideoIntelligenceService service
// VideoIntelligenceServiceClient is the client API for VideoIntelligenceService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type VideoIntelligenceServiceClient interface {
// Performs asynchronous video annotation. Progress and results can be
// retrieved through the `google.longrunning.Operations` interface.
// `Operation.metadata` contains `AnnotateVideoProgress` (progress).
// `Operation.response` contains `AnnotateVideoResponse` (results).
AnnotateVideo(ctx context.Context, in *AnnotateVideoRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
AnnotateVideo(ctx context.Context, in *AnnotateVideoRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
}
type videoIntelligenceServiceClient struct {
@ -832,23 +1106,22 @@ func NewVideoIntelligenceServiceClient(cc *grpc.ClientConn) VideoIntelligenceSer
return &videoIntelligenceServiceClient{cc}
}
func (c *videoIntelligenceServiceClient) AnnotateVideo(ctx context.Context, in *AnnotateVideoRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.cloud.videointelligence.v1beta1.VideoIntelligenceService/AnnotateVideo", in, out, c.cc, opts...)
func (c *videoIntelligenceServiceClient) AnnotateVideo(ctx context.Context, in *AnnotateVideoRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
out := new(longrunning.Operation)
err := c.cc.Invoke(ctx, "/google.cloud.videointelligence.v1beta1.VideoIntelligenceService/AnnotateVideo", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for VideoIntelligenceService service
// VideoIntelligenceServiceServer is the server API for VideoIntelligenceService service.
type VideoIntelligenceServiceServer interface {
// Performs asynchronous video annotation. Progress and results can be
// retrieved through the `google.longrunning.Operations` interface.
// `Operation.metadata` contains `AnnotateVideoProgress` (progress).
// `Operation.response` contains `AnnotateVideoResponse` (results).
AnnotateVideo(context.Context, *AnnotateVideoRequest) (*google_longrunning.Operation, error)
AnnotateVideo(context.Context, *AnnotateVideoRequest) (*longrunning.Operation, error)
}
func RegisterVideoIntelligenceServiceServer(s *grpc.Server, srv VideoIntelligenceServiceServer) {
@ -887,10 +1160,10 @@ var _VideoIntelligenceService_serviceDesc = grpc.ServiceDesc{
}
func init() {
proto.RegisterFile("google/cloud/videointelligence/v1beta1/video_intelligence.proto", fileDescriptor0)
proto.RegisterFile("google/cloud/videointelligence/v1beta1/video_intelligence.proto", fileDescriptor_video_intelligence_2adacfc9be54b175)
}
var fileDescriptor0 = []byte{
var fileDescriptor_video_intelligence_2adacfc9be54b175 = []byte{
// 1520 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0xcb, 0x6f, 0x1b, 0xd5,
0x1a, 0xef, 0xf8, 0x91, 0xc4, 0x9f, 0x93, 0xd8, 0x39, 0x49, 0x1a, 0xdf, 0xb4, 0xb9, 0x8d, 0xdc,

File diff suppressed because it is too large Load Diff

View File

@ -1,49 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/vision/v1/geometry.proto
/*
Package vision is a generated protocol buffer package.
It is generated from these files:
google/cloud/vision/v1/geometry.proto
google/cloud/vision/v1/image_annotator.proto
google/cloud/vision/v1/text_annotation.proto
google/cloud/vision/v1/web_detection.proto
It has these top-level messages:
Vertex
BoundingPoly
Position
Feature
ImageSource
Image
FaceAnnotation
LocationInfo
Property
EntityAnnotation
SafeSearchAnnotation
LatLongRect
ColorInfo
DominantColorsAnnotation
ImageProperties
CropHint
CropHintsAnnotation
CropHintsParams
WebDetectionParams
ImageContext
AnnotateImageRequest
AnnotateImageResponse
BatchAnnotateImagesRequest
BatchAnnotateImagesResponse
TextAnnotation
Page
Block
Paragraph
Word
Symbol
WebDetection
*/
package vision
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -64,15 +22,37 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// NOTE: the vertex coordinates are in the same scale as the original image.
type Vertex struct {
// X coordinate.
X int32 `protobuf:"varint,1,opt,name=x" json:"x,omitempty"`
X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
// Y coordinate.
Y int32 `protobuf:"varint,2,opt,name=y" json:"y,omitempty"`
Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Vertex) Reset() { *m = Vertex{} }
func (m *Vertex) String() string { return proto.CompactTextString(m) }
func (*Vertex) ProtoMessage() {}
func (*Vertex) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *Vertex) Reset() { *m = Vertex{} }
func (m *Vertex) String() string { return proto.CompactTextString(m) }
func (*Vertex) ProtoMessage() {}
func (*Vertex) Descriptor() ([]byte, []int) {
return fileDescriptor_geometry_0f6b64e4b94968be, []int{0}
}
func (m *Vertex) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Vertex.Unmarshal(m, b)
}
func (m *Vertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Vertex.Marshal(b, m, deterministic)
}
func (dst *Vertex) XXX_Merge(src proto.Message) {
xxx_messageInfo_Vertex.Merge(dst, src)
}
func (m *Vertex) XXX_Size() int {
return xxx_messageInfo_Vertex.Size(m)
}
func (m *Vertex) XXX_DiscardUnknown() {
xxx_messageInfo_Vertex.DiscardUnknown(m)
}
var xxx_messageInfo_Vertex proto.InternalMessageInfo
func (m *Vertex) GetX() int32 {
if m != nil {
@ -88,16 +68,91 @@ func (m *Vertex) GetY() int32 {
return 0
}
// A vertex represents a 2D point in the image.
// NOTE: the normalized vertex coordinates are relative to the original image
// and range from 0 to 1.
type NormalizedVertex struct {
// X coordinate.
X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
// Y coordinate.
Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NormalizedVertex) Reset() { *m = NormalizedVertex{} }
func (m *NormalizedVertex) String() string { return proto.CompactTextString(m) }
func (*NormalizedVertex) ProtoMessage() {}
func (*NormalizedVertex) Descriptor() ([]byte, []int) {
return fileDescriptor_geometry_0f6b64e4b94968be, []int{1}
}
func (m *NormalizedVertex) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NormalizedVertex.Unmarshal(m, b)
}
func (m *NormalizedVertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NormalizedVertex.Marshal(b, m, deterministic)
}
func (dst *NormalizedVertex) XXX_Merge(src proto.Message) {
xxx_messageInfo_NormalizedVertex.Merge(dst, src)
}
func (m *NormalizedVertex) XXX_Size() int {
return xxx_messageInfo_NormalizedVertex.Size(m)
}
func (m *NormalizedVertex) XXX_DiscardUnknown() {
xxx_messageInfo_NormalizedVertex.DiscardUnknown(m)
}
var xxx_messageInfo_NormalizedVertex proto.InternalMessageInfo
func (m *NormalizedVertex) GetX() float32 {
if m != nil {
return m.X
}
return 0
}
func (m *NormalizedVertex) GetY() float32 {
if m != nil {
return m.Y
}
return 0
}
// A bounding polygon for the detected image annotation.
type BoundingPoly struct {
// The bounding polygon vertices.
Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices" json:"vertices,omitempty"`
Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
// The bounding polygon normalized vertices.
NormalizedVertices []*NormalizedVertex `protobuf:"bytes,2,rep,name=normalized_vertices,json=normalizedVertices,proto3" json:"normalized_vertices,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BoundingPoly) Reset() { *m = BoundingPoly{} }
func (m *BoundingPoly) String() string { return proto.CompactTextString(m) }
func (*BoundingPoly) ProtoMessage() {}
func (*BoundingPoly) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *BoundingPoly) Reset() { *m = BoundingPoly{} }
func (m *BoundingPoly) String() string { return proto.CompactTextString(m) }
func (*BoundingPoly) ProtoMessage() {}
func (*BoundingPoly) Descriptor() ([]byte, []int) {
return fileDescriptor_geometry_0f6b64e4b94968be, []int{2}
}
func (m *BoundingPoly) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BoundingPoly.Unmarshal(m, b)
}
func (m *BoundingPoly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BoundingPoly.Marshal(b, m, deterministic)
}
func (dst *BoundingPoly) XXX_Merge(src proto.Message) {
xxx_messageInfo_BoundingPoly.Merge(dst, src)
}
func (m *BoundingPoly) XXX_Size() int {
return xxx_messageInfo_BoundingPoly.Size(m)
}
func (m *BoundingPoly) XXX_DiscardUnknown() {
xxx_messageInfo_BoundingPoly.DiscardUnknown(m)
}
var xxx_messageInfo_BoundingPoly proto.InternalMessageInfo
func (m *BoundingPoly) GetVertices() []*Vertex {
if m != nil {
@ -106,22 +161,51 @@ func (m *BoundingPoly) GetVertices() []*Vertex {
return nil
}
func (m *BoundingPoly) GetNormalizedVertices() []*NormalizedVertex {
if m != nil {
return m.NormalizedVertices
}
return nil
}
// A 3D position in the image, used primarily for Face detection landmarks.
// A valid Position must have both x and y coordinates.
// The position coordinates are in the same scale as the original image.
type Position struct {
// X coordinate.
X float32 `protobuf:"fixed32,1,opt,name=x" json:"x,omitempty"`
X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
// Y coordinate.
Y float32 `protobuf:"fixed32,2,opt,name=y" json:"y,omitempty"`
Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
// Z coordinate (or depth).
Z float32 `protobuf:"fixed32,3,opt,name=z" json:"z,omitempty"`
Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Position) Reset() { *m = Position{} }
func (m *Position) String() string { return proto.CompactTextString(m) }
func (*Position) ProtoMessage() {}
func (*Position) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *Position) Reset() { *m = Position{} }
func (m *Position) String() string { return proto.CompactTextString(m) }
func (*Position) ProtoMessage() {}
func (*Position) Descriptor() ([]byte, []int) {
return fileDescriptor_geometry_0f6b64e4b94968be, []int{3}
}
func (m *Position) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Position.Unmarshal(m, b)
}
func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Position.Marshal(b, m, deterministic)
}
func (dst *Position) XXX_Merge(src proto.Message) {
xxx_messageInfo_Position.Merge(dst, src)
}
func (m *Position) XXX_Size() int {
return xxx_messageInfo_Position.Size(m)
}
func (m *Position) XXX_DiscardUnknown() {
xxx_messageInfo_Position.DiscardUnknown(m)
}
var xxx_messageInfo_Position proto.InternalMessageInfo
func (m *Position) GetX() float32 {
if m != nil {
@ -146,27 +230,33 @@ func (m *Position) GetZ() float32 {
func init() {
proto.RegisterType((*Vertex)(nil), "google.cloud.vision.v1.Vertex")
proto.RegisterType((*NormalizedVertex)(nil), "google.cloud.vision.v1.NormalizedVertex")
proto.RegisterType((*BoundingPoly)(nil), "google.cloud.vision.v1.BoundingPoly")
proto.RegisterType((*Position)(nil), "google.cloud.vision.v1.Position")
}
func init() { proto.RegisterFile("google/cloud/vision/v1/geometry.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 237 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0x31, 0x4b, 0x03, 0x31,
0x14, 0x80, 0x79, 0x57, 0x2c, 0x25, 0xd6, 0xe5, 0x06, 0x39, 0x1c, 0xa4, 0x1c, 0x0a, 0x9d, 0x12,
0xaa, 0x4e, 0xea, 0x74, 0x8b, 0xe0, 0x74, 0xdc, 0xe0, 0xe0, 0x56, 0xaf, 0x8f, 0x47, 0xe0, 0x9a,
0x57, 0x92, 0x34, 0x34, 0xfd, 0xe5, 0x8e, 0xd2, 0xa4, 0x28, 0x8a, 0xdd, 0xf2, 0x91, 0x8f, 0xf7,
0xf1, 0x9e, 0xb8, 0x25, 0x66, 0x1a, 0x50, 0xf5, 0x03, 0x6f, 0x57, 0x2a, 0x68, 0xa7, 0xd9, 0xa8,
0xb0, 0x50, 0x84, 0xbc, 0x46, 0x6f, 0xa3, 0xdc, 0x58, 0xf6, 0x5c, 0x5e, 0x66, 0x4d, 0x26, 0x4d,
0x66, 0x4d, 0x86, 0x45, 0x7d, 0x23, 0xc6, 0x6f, 0x68, 0x3d, 0xee, 0xca, 0xa9, 0x80, 0x5d, 0x05,
0x33, 0x98, 0x9f, 0x75, 0x90, 0x28, 0x56, 0x45, 0xa6, 0x58, 0xbf, 0x8a, 0x69, 0xc3, 0x5b, 0xb3,
0xd2, 0x86, 0x5a, 0x1e, 0x62, 0xf9, 0x28, 0x26, 0x01, 0xad, 0xd7, 0x3d, 0xba, 0x0a, 0x66, 0xa3,
0xf9, 0xf9, 0xdd, 0xb5, 0xfc, 0x3f, 0x20, 0xf3, 0xf4, 0xee, 0xdb, 0xaf, 0x1f, 0xc4, 0xa4, 0x65,
0xa7, 0xbd, 0x66, 0xf3, 0xd3, 0x2c, 0x7e, 0x35, 0x8b, 0x0e, 0xe2, 0x81, 0xf6, 0xd5, 0x28, 0xd3,
0xbe, 0x31, 0xe2, 0xaa, 0xe7, 0xf5, 0x89, 0x48, 0x73, 0xf1, 0x72, 0xdc, 0xb6, 0x3d, 0x2c, 0xdb,
0xc2, 0xfb, 0xf3, 0x51, 0x24, 0x1e, 0x96, 0x86, 0x24, 0x5b, 0x52, 0x84, 0x26, 0x9d, 0x42, 0xe5,
0xaf, 0xe5, 0x46, 0xbb, 0xbf, 0x47, 0x7b, 0xca, 0xaf, 0x4f, 0x80, 0x8f, 0x71, 0x72, 0xef, 0xbf,
0x02, 0x00, 0x00, 0xff, 0xff, 0xd0, 0x04, 0x38, 0x95, 0x5f, 0x01, 0x00, 0x00,
func init() {
proto.RegisterFile("google/cloud/vision/v1/geometry.proto", fileDescriptor_geometry_0f6b64e4b94968be)
}
var fileDescriptor_geometry_0f6b64e4b94968be = []byte{
// 285 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x41, 0x4b, 0xc3, 0x30,
0x14, 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x3c, 0x4b, 0xa0, 0x12, 0x46, 0x80,
0xfa, 0xef, 0x3d, 0x7d, 0xea, 0x82, 0x89, 0x4b, 0x5d, 0x5c, 0xe3, 0xeb, 0x1c, 0xca, 0x23, 0x85,
0xe3, 0xf3, 0xd5, 0x7e, 0xf2, 0x49, 0x3f, 0xf8, 0x04, 0xbd, 0xbf, 0xec, 0x41, 0x0e, 0x32, 0x53,
0x9c, 0x80, 0xe6, 0x94, 0x33, 0x65, 0xd7, 0x42, 0xdd, 0x51, 0xb6, 0x15, 0xd5, 0x78, 0x81, 0xcf,
0xee, 0xeb, 0x07, 0xa1, 0x2f, 0xef, 0x64, 0xf5, 0xba, 0x59, 0x7f, 0x4e, 0xed, 0x95, 0x87, 0xdf,
0x00, 0x00, 0x00, 0xff, 0xff, 0xf1, 0x3c, 0x20, 0x46, 0xf2, 0x01, 0x00, 0x00,
}

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/vision/v1/text_annotation.proto
package vision
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -13,6 +13,12 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Enum to denote the type of break found. New line, space etc.
type TextAnnotation_DetectedBreak_BreakType int32
@ -53,7 +59,7 @@ func (x TextAnnotation_DetectedBreak_BreakType) String() string {
return proto.EnumName(TextAnnotation_DetectedBreak_BreakType_name, int32(x))
}
func (TextAnnotation_DetectedBreak_BreakType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor2, []int{0, 1, 0}
return fileDescriptor_text_annotation_5ca1a16a28ef616a, []int{0, 1, 0}
}
// Type of a block (text, image etc) as identified by OCR.
@ -94,7 +100,9 @@ var Block_BlockType_value = map[string]int32{
func (x Block_BlockType) String() string {
return proto.EnumName(Block_BlockType_name, int32(x))
}
func (Block_BlockType) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{2, 0} }
func (Block_BlockType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_5ca1a16a28ef616a, []int{2, 0}
}
// TextAnnotation contains a structured representation of OCR extracted text.
// The hierarchy of an OCR extracted text structure is like this:
@ -105,15 +113,37 @@ func (Block_BlockType) EnumDescriptor() ([]byte, []int) { return fileDescriptor2
// detail.
type TextAnnotation struct {
// List of pages detected by OCR.
Pages []*Page `protobuf:"bytes,1,rep,name=pages" json:"pages,omitempty"`
Pages []*Page `protobuf:"bytes,1,rep,name=pages,proto3" json:"pages,omitempty"`
// UTF-8 text detected on the pages.
Text string `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"`
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextAnnotation) Reset() { *m = TextAnnotation{} }
func (m *TextAnnotation) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation) ProtoMessage() {}
func (*TextAnnotation) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
func (m *TextAnnotation) Reset() { *m = TextAnnotation{} }
func (m *TextAnnotation) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation) ProtoMessage() {}
func (*TextAnnotation) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_5ca1a16a28ef616a, []int{0}
}
func (m *TextAnnotation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextAnnotation.Unmarshal(m, b)
}
func (m *TextAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextAnnotation.Marshal(b, m, deterministic)
}
func (dst *TextAnnotation) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextAnnotation.Merge(dst, src)
}
func (m *TextAnnotation) XXX_Size() int {
return xxx_messageInfo_TextAnnotation.Size(m)
}
func (m *TextAnnotation) XXX_DiscardUnknown() {
xxx_messageInfo_TextAnnotation.DiscardUnknown(m)
}
var xxx_messageInfo_TextAnnotation proto.InternalMessageInfo
func (m *TextAnnotation) GetPages() []*Page {
if m != nil {
@ -134,17 +164,37 @@ type TextAnnotation_DetectedLanguage struct {
// The BCP-47 language code, such as "en-US" or "sr-Latn". For more
// information, see
// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode" json:"language_code,omitempty"`
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// Confidence of detected language. Range [0, 1].
Confidence float32 `protobuf:"fixed32,2,opt,name=confidence" json:"confidence,omitempty"`
Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextAnnotation_DetectedLanguage) Reset() { *m = TextAnnotation_DetectedLanguage{} }
func (m *TextAnnotation_DetectedLanguage) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation_DetectedLanguage) ProtoMessage() {}
func (*TextAnnotation_DetectedLanguage) Descriptor() ([]byte, []int) {
return fileDescriptor2, []int{0, 0}
return fileDescriptor_text_annotation_5ca1a16a28ef616a, []int{0, 0}
}
func (m *TextAnnotation_DetectedLanguage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Unmarshal(m, b)
}
func (m *TextAnnotation_DetectedLanguage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Marshal(b, m, deterministic)
}
func (dst *TextAnnotation_DetectedLanguage) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextAnnotation_DetectedLanguage.Merge(dst, src)
}
func (m *TextAnnotation_DetectedLanguage) XXX_Size() int {
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Size(m)
}
func (m *TextAnnotation_DetectedLanguage) XXX_DiscardUnknown() {
xxx_messageInfo_TextAnnotation_DetectedLanguage.DiscardUnknown(m)
}
var xxx_messageInfo_TextAnnotation_DetectedLanguage proto.InternalMessageInfo
func (m *TextAnnotation_DetectedLanguage) GetLanguageCode() string {
if m != nil {
@ -163,15 +213,37 @@ func (m *TextAnnotation_DetectedLanguage) GetConfidence() float32 {
// Detected start or end of a structural component.
type TextAnnotation_DetectedBreak struct {
// Detected break type.
Type TextAnnotation_DetectedBreak_BreakType `protobuf:"varint,1,opt,name=type,enum=google.cloud.vision.v1.TextAnnotation_DetectedBreak_BreakType" json:"type,omitempty"`
Type TextAnnotation_DetectedBreak_BreakType `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.vision.v1.TextAnnotation_DetectedBreak_BreakType" json:"type,omitempty"`
// True if break prepends the element.
IsPrefix bool `protobuf:"varint,2,opt,name=is_prefix,json=isPrefix" json:"is_prefix,omitempty"`
IsPrefix bool `protobuf:"varint,2,opt,name=is_prefix,json=isPrefix,proto3" json:"is_prefix,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextAnnotation_DetectedBreak) Reset() { *m = TextAnnotation_DetectedBreak{} }
func (m *TextAnnotation_DetectedBreak) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation_DetectedBreak) ProtoMessage() {}
func (*TextAnnotation_DetectedBreak) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 1} }
func (m *TextAnnotation_DetectedBreak) Reset() { *m = TextAnnotation_DetectedBreak{} }
func (m *TextAnnotation_DetectedBreak) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation_DetectedBreak) ProtoMessage() {}
func (*TextAnnotation_DetectedBreak) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_5ca1a16a28ef616a, []int{0, 1}
}
func (m *TextAnnotation_DetectedBreak) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextAnnotation_DetectedBreak.Unmarshal(m, b)
}
func (m *TextAnnotation_DetectedBreak) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextAnnotation_DetectedBreak.Marshal(b, m, deterministic)
}
func (dst *TextAnnotation_DetectedBreak) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextAnnotation_DetectedBreak.Merge(dst, src)
}
func (m *TextAnnotation_DetectedBreak) XXX_Size() int {
return xxx_messageInfo_TextAnnotation_DetectedBreak.Size(m)
}
func (m *TextAnnotation_DetectedBreak) XXX_DiscardUnknown() {
xxx_messageInfo_TextAnnotation_DetectedBreak.DiscardUnknown(m)
}
var xxx_messageInfo_TextAnnotation_DetectedBreak proto.InternalMessageInfo
func (m *TextAnnotation_DetectedBreak) GetType() TextAnnotation_DetectedBreak_BreakType {
if m != nil {
@ -190,15 +262,37 @@ func (m *TextAnnotation_DetectedBreak) GetIsPrefix() bool {
// Additional information detected on the structural component.
type TextAnnotation_TextProperty struct {
// A list of detected languages together with confidence.
DetectedLanguages []*TextAnnotation_DetectedLanguage `protobuf:"bytes,1,rep,name=detected_languages,json=detectedLanguages" json:"detected_languages,omitempty"`
DetectedLanguages []*TextAnnotation_DetectedLanguage `protobuf:"bytes,1,rep,name=detected_languages,json=detectedLanguages,proto3" json:"detected_languages,omitempty"`
// Detected start or end of a text segment.
DetectedBreak *TextAnnotation_DetectedBreak `protobuf:"bytes,2,opt,name=detected_break,json=detectedBreak" json:"detected_break,omitempty"`
DetectedBreak *TextAnnotation_DetectedBreak `protobuf:"bytes,2,opt,name=detected_break,json=detectedBreak,proto3" json:"detected_break,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextAnnotation_TextProperty) Reset() { *m = TextAnnotation_TextProperty{} }
func (m *TextAnnotation_TextProperty) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation_TextProperty) ProtoMessage() {}
func (*TextAnnotation_TextProperty) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 2} }
func (m *TextAnnotation_TextProperty) Reset() { *m = TextAnnotation_TextProperty{} }
func (m *TextAnnotation_TextProperty) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation_TextProperty) ProtoMessage() {}
func (*TextAnnotation_TextProperty) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_5ca1a16a28ef616a, []int{0, 2}
}
func (m *TextAnnotation_TextProperty) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextAnnotation_TextProperty.Unmarshal(m, b)
}
func (m *TextAnnotation_TextProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextAnnotation_TextProperty.Marshal(b, m, deterministic)
}
func (dst *TextAnnotation_TextProperty) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextAnnotation_TextProperty.Merge(dst, src)
}
func (m *TextAnnotation_TextProperty) XXX_Size() int {
return xxx_messageInfo_TextAnnotation_TextProperty.Size(m)
}
func (m *TextAnnotation_TextProperty) XXX_DiscardUnknown() {
xxx_messageInfo_TextAnnotation_TextProperty.DiscardUnknown(m)
}
var xxx_messageInfo_TextAnnotation_TextProperty proto.InternalMessageInfo
func (m *TextAnnotation_TextProperty) GetDetectedLanguages() []*TextAnnotation_DetectedLanguage {
if m != nil {
@ -217,21 +311,45 @@ func (m *TextAnnotation_TextProperty) GetDetectedBreak() *TextAnnotation_Detecte
// Detected page from OCR.
type Page struct {
// Additional information detected on the page.
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
// Page width in pixels.
Width int32 `protobuf:"varint,2,opt,name=width" json:"width,omitempty"`
// Page height in pixels.
Height int32 `protobuf:"varint,3,opt,name=height" json:"height,omitempty"`
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
// Page width. For PDFs the unit is points. For images (including
// TIFFs) the unit is pixels.
Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"`
// Page height. For PDFs the unit is points. For images (including
// TIFFs) the unit is pixels.
Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
// List of blocks of text, images etc on this page.
Blocks []*Block `protobuf:"bytes,4,rep,name=blocks" json:"blocks,omitempty"`
Blocks []*Block `protobuf:"bytes,4,rep,name=blocks,proto3" json:"blocks,omitempty"`
// Confidence of the OCR results on the page. Range [0, 1].
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence" json:"confidence,omitempty"`
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Page) Reset() { *m = Page{} }
func (m *Page) String() string { return proto.CompactTextString(m) }
func (*Page) ProtoMessage() {}
func (*Page) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
func (m *Page) Reset() { *m = Page{} }
func (m *Page) String() string { return proto.CompactTextString(m) }
func (*Page) ProtoMessage() {}
func (*Page) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_5ca1a16a28ef616a, []int{1}
}
func (m *Page) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Page.Unmarshal(m, b)
}
func (m *Page) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Page.Marshal(b, m, deterministic)
}
func (dst *Page) XXX_Merge(src proto.Message) {
xxx_messageInfo_Page.Merge(dst, src)
}
func (m *Page) XXX_Size() int {
return xxx_messageInfo_Page.Size(m)
}
func (m *Page) XXX_DiscardUnknown() {
xxx_messageInfo_Page.DiscardUnknown(m)
}
var xxx_messageInfo_Page proto.InternalMessageInfo
func (m *Page) GetProperty() *TextAnnotation_TextProperty {
if m != nil {
@ -271,7 +389,7 @@ func (m *Page) GetConfidence() float32 {
// Logical element on the page.
type Block struct {
// Additional information detected for the block.
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
// The bounding box for the block.
// The vertices are in the order of top-left, top-right, bottom-right,
// bottom-left. When a rotation of the bounding box is detected the rotation
@ -292,19 +410,41 @@ type Block struct {
// 1----0
//
// and the vertice order will still be (0, 1, 2, 3).
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
// List of paragraphs in this block (if this blocks is of type text).
Paragraphs []*Paragraph `protobuf:"bytes,3,rep,name=paragraphs" json:"paragraphs,omitempty"`
Paragraphs []*Paragraph `protobuf:"bytes,3,rep,name=paragraphs,proto3" json:"paragraphs,omitempty"`
// Detected block type (text, image etc) for this block.
BlockType Block_BlockType `protobuf:"varint,4,opt,name=block_type,json=blockType,enum=google.cloud.vision.v1.Block_BlockType" json:"block_type,omitempty"`
BlockType Block_BlockType `protobuf:"varint,4,opt,name=block_type,json=blockType,proto3,enum=google.cloud.vision.v1.Block_BlockType" json:"block_type,omitempty"`
// Confidence of the OCR results on the block. Range [0, 1].
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence" json:"confidence,omitempty"`
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Block) Reset() { *m = Block{} }
func (m *Block) String() string { return proto.CompactTextString(m) }
func (*Block) ProtoMessage() {}
func (*Block) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
func (m *Block) Reset() { *m = Block{} }
func (m *Block) String() string { return proto.CompactTextString(m) }
func (*Block) ProtoMessage() {}
func (*Block) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_5ca1a16a28ef616a, []int{2}
}
func (m *Block) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Block.Unmarshal(m, b)
}
func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Block.Marshal(b, m, deterministic)
}
func (dst *Block) XXX_Merge(src proto.Message) {
xxx_messageInfo_Block.Merge(dst, src)
}
func (m *Block) XXX_Size() int {
return xxx_messageInfo_Block.Size(m)
}
func (m *Block) XXX_DiscardUnknown() {
xxx_messageInfo_Block.DiscardUnknown(m)
}
var xxx_messageInfo_Block proto.InternalMessageInfo
func (m *Block) GetProperty() *TextAnnotation_TextProperty {
if m != nil {
@ -344,7 +484,7 @@ func (m *Block) GetConfidence() float32 {
// Structural unit of text representing a number of words in certain order.
type Paragraph struct {
// Additional information detected for the paragraph.
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
// The bounding box for the paragraph.
// The vertices are in the order of top-left, top-right, bottom-right,
// bottom-left. When a rotation of the bounding box is detected the rotation
@ -360,17 +500,39 @@ type Paragraph struct {
// | |
// 1----0
// and the vertice order will still be (0, 1, 2, 3).
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
// List of words in this paragraph.
Words []*Word `protobuf:"bytes,3,rep,name=words" json:"words,omitempty"`
Words []*Word `protobuf:"bytes,3,rep,name=words,proto3" json:"words,omitempty"`
// Confidence of the OCR results for the paragraph. Range [0, 1].
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence" json:"confidence,omitempty"`
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Paragraph) Reset() { *m = Paragraph{} }
func (m *Paragraph) String() string { return proto.CompactTextString(m) }
func (*Paragraph) ProtoMessage() {}
func (*Paragraph) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
func (m *Paragraph) Reset() { *m = Paragraph{} }
func (m *Paragraph) String() string { return proto.CompactTextString(m) }
func (*Paragraph) ProtoMessage() {}
func (*Paragraph) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_5ca1a16a28ef616a, []int{3}
}
func (m *Paragraph) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Paragraph.Unmarshal(m, b)
}
func (m *Paragraph) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Paragraph.Marshal(b, m, deterministic)
}
func (dst *Paragraph) XXX_Merge(src proto.Message) {
xxx_messageInfo_Paragraph.Merge(dst, src)
}
func (m *Paragraph) XXX_Size() int {
return xxx_messageInfo_Paragraph.Size(m)
}
func (m *Paragraph) XXX_DiscardUnknown() {
xxx_messageInfo_Paragraph.DiscardUnknown(m)
}
var xxx_messageInfo_Paragraph proto.InternalMessageInfo
func (m *Paragraph) GetProperty() *TextAnnotation_TextProperty {
if m != nil {
@ -403,7 +565,7 @@ func (m *Paragraph) GetConfidence() float32 {
// A word representation.
type Word struct {
// Additional information detected for the word.
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
// The bounding box for the word.
// The vertices are in the order of top-left, top-right, bottom-right,
// bottom-left. When a rotation of the bounding box is detected the rotation
@ -419,18 +581,40 @@ type Word struct {
// | |
// 1----0
// and the vertice order will still be (0, 1, 2, 3).
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
// List of symbols in the word.
// The order of the symbols follows the natural reading order.
Symbols []*Symbol `protobuf:"bytes,3,rep,name=symbols" json:"symbols,omitempty"`
Symbols []*Symbol `protobuf:"bytes,3,rep,name=symbols,proto3" json:"symbols,omitempty"`
// Confidence of the OCR results for the word. Range [0, 1].
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence" json:"confidence,omitempty"`
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Word) Reset() { *m = Word{} }
func (m *Word) String() string { return proto.CompactTextString(m) }
func (*Word) ProtoMessage() {}
func (*Word) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} }
func (m *Word) Reset() { *m = Word{} }
func (m *Word) String() string { return proto.CompactTextString(m) }
func (*Word) ProtoMessage() {}
func (*Word) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_5ca1a16a28ef616a, []int{4}
}
func (m *Word) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Word.Unmarshal(m, b)
}
func (m *Word) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Word.Marshal(b, m, deterministic)
}
func (dst *Word) XXX_Merge(src proto.Message) {
xxx_messageInfo_Word.Merge(dst, src)
}
func (m *Word) XXX_Size() int {
return xxx_messageInfo_Word.Size(m)
}
func (m *Word) XXX_DiscardUnknown() {
xxx_messageInfo_Word.DiscardUnknown(m)
}
var xxx_messageInfo_Word proto.InternalMessageInfo
func (m *Word) GetProperty() *TextAnnotation_TextProperty {
if m != nil {
@ -463,7 +647,7 @@ func (m *Word) GetConfidence() float32 {
// A single symbol representation.
type Symbol struct {
// Additional information detected for the symbol.
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
// The bounding box for the symbol.
// The vertices are in the order of top-left, top-right, bottom-right,
// bottom-left. When a rotation of the bounding box is detected the rotation
@ -479,17 +663,39 @@ type Symbol struct {
// | |
// 1----0
// and the vertice order will still be (0, 1, 2, 3).
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
// The actual UTF-8 representation of the symbol.
Text string `protobuf:"bytes,3,opt,name=text" json:"text,omitempty"`
Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
// Confidence of the OCR results for the symbol. Range [0, 1].
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence" json:"confidence,omitempty"`
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Symbol) Reset() { *m = Symbol{} }
func (m *Symbol) String() string { return proto.CompactTextString(m) }
func (*Symbol) ProtoMessage() {}
func (*Symbol) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} }
func (m *Symbol) Reset() { *m = Symbol{} }
func (m *Symbol) String() string { return proto.CompactTextString(m) }
func (*Symbol) ProtoMessage() {}
func (*Symbol) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_5ca1a16a28ef616a, []int{5}
}
func (m *Symbol) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Symbol.Unmarshal(m, b)
}
func (m *Symbol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Symbol.Marshal(b, m, deterministic)
}
func (dst *Symbol) XXX_Merge(src proto.Message) {
xxx_messageInfo_Symbol.Merge(dst, src)
}
func (m *Symbol) XXX_Size() int {
return xxx_messageInfo_Symbol.Size(m)
}
func (m *Symbol) XXX_DiscardUnknown() {
xxx_messageInfo_Symbol.DiscardUnknown(m)
}
var xxx_messageInfo_Symbol proto.InternalMessageInfo
func (m *Symbol) GetProperty() *TextAnnotation_TextProperty {
if m != nil {
@ -533,56 +739,59 @@ func init() {
proto.RegisterEnum("google.cloud.vision.v1.Block_BlockType", Block_BlockType_name, Block_BlockType_value)
}
func init() { proto.RegisterFile("google/cloud/vision/v1/text_annotation.proto", fileDescriptor2) }
var fileDescriptor2 = []byte{
// 763 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcf, 0x6f, 0xd3, 0x4a,
0x10, 0x7e, 0x6e, 0xec, 0x34, 0x9e, 0xb4, 0x91, 0xdf, 0xbe, 0xa7, 0x2a, 0x0a, 0xa5, 0x2a, 0x01,
0x44, 0x0f, 0xc8, 0x51, 0x53, 0x10, 0x48, 0x20, 0xa4, 0x38, 0x35, 0xb4, 0x6a, 0x94, 0x58, 0xdb,
0x44, 0xe5, 0xc7, 0xc1, 0xf2, 0x8f, 0xad, 0x63, 0x35, 0xf5, 0x5a, 0xb6, 0xdb, 0x26, 0xff, 0x0d,
0xff, 0x13, 0x12, 0x27, 0xae, 0x9c, 0xb9, 0x02, 0x27, 0xe4, 0xb5, 0x9d, 0x26, 0x01, 0x53, 0x40,
0x1c, 0x7a, 0xb1, 0x76, 0x26, 0xdf, 0x7c, 0x33, 0xdf, 0x8c, 0x27, 0x6b, 0xb8, 0xef, 0x50, 0xea,
0x8c, 0x48, 0xc3, 0x1a, 0xd1, 0x33, 0xbb, 0x71, 0xee, 0x86, 0x2e, 0xf5, 0x1a, 0xe7, 0xdb, 0x8d,
0x88, 0x8c, 0x23, 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 0x47, 0x99, 0xf0,
0x8d, 0x3c, 0x8e, 0x43, 0x06, 0xc3, 0x19, 0xfc, 0x4a, 0xf1, 0xef, 0x39, 0x28, 0x26, 0x31, 0xd7,
0x58, 0x7e, 0x76, 0x95, 0x16, 0x2e, 0xaf, 0xd2, 0xab, 0x84, 0x29, 0x11, 0xd4, 0x2c, 0x7a, 0x9a,
0x93, 0x4b, 0xf9, 0x6f, 0x5e, 0x81, 0x16, 0x5f, 0xfc, 0x1a, 0xf7, 0xfa, 0x69, 0x0a, 0x77, 0x68,
0x7c, 0x97, 0xc8, 0x34, 0x70, 0x1a, 0x0e, 0xf1, 0xd8, 0x67, 0x41, 0x23, 0xf9, 0xc9, 0xf0, 0xdd,
0x70, 0xf1, 0x03, 0xe2, 0x49, 0x72, 0xfa, 0xcc, 0x71, 0x66, 0x91, 0x61, 0x77, 0xbe, 0x05, 0x00,
0x00, 0xff, 0xff, 0x3f, 0x4a, 0xe7, 0xb0, 0xcf, 0x08, 0x00, 0x00,
func init() {
proto.RegisterFile("google/cloud/vision/v1/text_annotation.proto", fileDescriptor_text_annotation_5ca1a16a28ef616a)
}
var fileDescriptor_text_annotation_5ca1a16a28ef616a = []byte{
// 774 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcf, 0x6f, 0xd3, 0x58,
0x10, 0x5e, 0x27, 0x76, 0x1a, 0x4f, 0xda, 0xc8, 0xfb, 0x76, 0x55, 0x45, 0xd9, 0x6e, 0xd5, 0xcd,
0x82, 0xe8, 0x01, 0x39, 0x6a, 0x0a, 0x02, 0x09, 0x84, 0x14, 0xa7, 0xa6, 0xad, 0x1a, 0x25, 0xd6,
0x6b, 0x42, 0xf9, 0x71, 0xb0, 0x1c, 0xfb, 0xd5, 0xb1, 0x9a, 0xfa, 0x59, 0xb6, 0xdb, 0x26, 0xe2,
0x9f, 0x41, 0xfc, 0x4b, 0x48, 0x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 0x4a, 0x42, 0xed, 0x13, 0x07, 0xe2, 0x54, 0xd5, 0x35, 0x1e, 0x53, 0x03, 0x84, 0x0b,
0xea, 0x5b, 0xe9, 0x84, 0x32, 0xff, 0x88, 0x8f, 0xa8, 0x6f, 0xe1, 0x18, 0xba, 0xd0, 0x4f, 0xfe,
0xab, 0x7e, 0x7e, 0xe6, 0x80, 0x8f, 0xf0, 0xd7, 0x58, 0xf6, 0x7d, 0x58, 0x0a, 0x26, 0xa7, 0x03,
0x3a, 0x4a, 0x85, 0xaf, 0x67, 0x71, 0x1c, 0x32, 0x18, 0x4e, 0xe1, 0x57, 0x8a, 0x7f, 0xcb, 0x41,
0x21, 0x8e, 0xb9, 0xc6, 0xf2, 0xd3, 0xab, 0x34, 0x7f, 0x79, 0x95, 0x5e, 0x25, 0x4c, 0x79, 0x09,
0x55, 0x93, 0x9e, 0x66, 0xe4, 0x52, 0xfe, 0x9a, 0x57, 0xa0, 0x45, 0x17, 0xbf, 0xc6, 0x3d, 0x7f,
0x98, 0xc0, 0x6d, 0x1a, 0xdd, 0x25, 0x32, 0xf5, 0xed, 0xba, 0x4d, 0x5c, 0xf6, 0x59, 0x50, 0x8f,
0x7f, 0x32, 0x3c, 0x27, 0x58, 0xfc, 0x80, 0x78, 0x10, 0x9f, 0x3e, 0x72, 0xdc, 0xeb, 0x1c, 0xbf,
0xdb, 0x7a, 0xd2, 0x19, 0x14, 0x58, 0xc8, 0xf6, 0x97, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc4, 0x88,
0x57, 0x38, 0xd6, 0x08, 0x00, 0x00,
}

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/vision/v1/web_detection.proto
package vision
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -13,29 +13,57 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Relevant information for the image from the Internet.
type WebDetection struct {
// Deduced entities from similar images on the Internet.
WebEntities []*WebDetection_WebEntity `protobuf:"bytes,1,rep,name=web_entities,json=webEntities" json:"web_entities,omitempty"`
WebEntities []*WebDetection_WebEntity `protobuf:"bytes,1,rep,name=web_entities,json=webEntities,proto3" json:"web_entities,omitempty"`
// Fully matching images from the Internet.
// Can include resized copies of the query image.
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,2,rep,name=full_matching_images,json=fullMatchingImages" json:"full_matching_images,omitempty"`
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,2,rep,name=full_matching_images,json=fullMatchingImages,proto3" json:"full_matching_images,omitempty"`
// Partial matching images from the Internet.
// Those images are similar enough to share some key-point features. For
// example an original image will likely have partial matching for its crops.
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,3,rep,name=partial_matching_images,json=partialMatchingImages" json:"partial_matching_images,omitempty"`
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,3,rep,name=partial_matching_images,json=partialMatchingImages,proto3" json:"partial_matching_images,omitempty"`
// Web pages containing the matching images from the Internet.
PagesWithMatchingImages []*WebDetection_WebPage `protobuf:"bytes,4,rep,name=pages_with_matching_images,json=pagesWithMatchingImages" json:"pages_with_matching_images,omitempty"`
PagesWithMatchingImages []*WebDetection_WebPage `protobuf:"bytes,4,rep,name=pages_with_matching_images,json=pagesWithMatchingImages,proto3" json:"pages_with_matching_images,omitempty"`
// The visually similar image results.
VisuallySimilarImages []*WebDetection_WebImage `protobuf:"bytes,6,rep,name=visually_similar_images,json=visuallySimilarImages" json:"visually_similar_images,omitempty"`
VisuallySimilarImages []*WebDetection_WebImage `protobuf:"bytes,6,rep,name=visually_similar_images,json=visuallySimilarImages,proto3" json:"visually_similar_images,omitempty"`
// Best guess text labels for the request image.
BestGuessLabels []*WebDetection_WebLabel `protobuf:"bytes,8,rep,name=best_guess_labels,json=bestGuessLabels" json:"best_guess_labels,omitempty"`
BestGuessLabels []*WebDetection_WebLabel `protobuf:"bytes,8,rep,name=best_guess_labels,json=bestGuessLabels,proto3" json:"best_guess_labels,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebDetection) Reset() { *m = WebDetection{} }
func (m *WebDetection) String() string { return proto.CompactTextString(m) }
func (*WebDetection) ProtoMessage() {}
func (*WebDetection) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
func (m *WebDetection) Reset() { *m = WebDetection{} }
func (m *WebDetection) String() string { return proto.CompactTextString(m) }
func (*WebDetection) ProtoMessage() {}
func (*WebDetection) Descriptor() ([]byte, []int) {
return fileDescriptor_web_detection_cd347bf1f824d1ac, []int{0}
}
func (m *WebDetection) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebDetection.Unmarshal(m, b)
}
func (m *WebDetection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebDetection.Marshal(b, m, deterministic)
}
func (dst *WebDetection) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebDetection.Merge(dst, src)
}
func (m *WebDetection) XXX_Size() int {
return xxx_messageInfo_WebDetection.Size(m)
}
func (m *WebDetection) XXX_DiscardUnknown() {
xxx_messageInfo_WebDetection.DiscardUnknown(m)
}
var xxx_messageInfo_WebDetection proto.InternalMessageInfo
func (m *WebDetection) GetWebEntities() []*WebDetection_WebEntity {
if m != nil {
@ -82,18 +110,40 @@ func (m *WebDetection) GetBestGuessLabels() []*WebDetection_WebLabel {
// Entity deduced from similar images on the Internet.
type WebDetection_WebEntity struct {
// Opaque entity ID.
EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId" json:"entity_id,omitempty"`
EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
// Overall relevancy score for the entity.
// Not normalized and not comparable across different image queries.
Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
// Canonical description of the entity, in English.
Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebDetection_WebEntity) Reset() { *m = WebDetection_WebEntity{} }
func (m *WebDetection_WebEntity) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebEntity) ProtoMessage() {}
func (*WebDetection_WebEntity) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 0} }
func (m *WebDetection_WebEntity) Reset() { *m = WebDetection_WebEntity{} }
func (m *WebDetection_WebEntity) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebEntity) ProtoMessage() {}
func (*WebDetection_WebEntity) Descriptor() ([]byte, []int) {
return fileDescriptor_web_detection_cd347bf1f824d1ac, []int{0, 0}
}
func (m *WebDetection_WebEntity) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebDetection_WebEntity.Unmarshal(m, b)
}
func (m *WebDetection_WebEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebDetection_WebEntity.Marshal(b, m, deterministic)
}
func (dst *WebDetection_WebEntity) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebDetection_WebEntity.Merge(dst, src)
}
func (m *WebDetection_WebEntity) XXX_Size() int {
return xxx_messageInfo_WebDetection_WebEntity.Size(m)
}
func (m *WebDetection_WebEntity) XXX_DiscardUnknown() {
xxx_messageInfo_WebDetection_WebEntity.DiscardUnknown(m)
}
var xxx_messageInfo_WebDetection_WebEntity proto.InternalMessageInfo
func (m *WebDetection_WebEntity) GetEntityId() string {
if m != nil {
@ -119,15 +169,37 @@ func (m *WebDetection_WebEntity) GetDescription() string {
// Metadata for online images.
type WebDetection_WebImage struct {
// The result image URL.
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// (Deprecated) Overall relevancy score for the image.
Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebDetection_WebImage) Reset() { *m = WebDetection_WebImage{} }
func (m *WebDetection_WebImage) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebImage) ProtoMessage() {}
func (*WebDetection_WebImage) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 1} }
func (m *WebDetection_WebImage) Reset() { *m = WebDetection_WebImage{} }
func (m *WebDetection_WebImage) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebImage) ProtoMessage() {}
func (*WebDetection_WebImage) Descriptor() ([]byte, []int) {
return fileDescriptor_web_detection_cd347bf1f824d1ac, []int{0, 1}
}
func (m *WebDetection_WebImage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebDetection_WebImage.Unmarshal(m, b)
}
func (m *WebDetection_WebImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebDetection_WebImage.Marshal(b, m, deterministic)
}
func (dst *WebDetection_WebImage) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebDetection_WebImage.Merge(dst, src)
}
func (m *WebDetection_WebImage) XXX_Size() int {
return xxx_messageInfo_WebDetection_WebImage.Size(m)
}
func (m *WebDetection_WebImage) XXX_DiscardUnknown() {
xxx_messageInfo_WebDetection_WebImage.DiscardUnknown(m)
}
var xxx_messageInfo_WebDetection_WebImage proto.InternalMessageInfo
func (m *WebDetection_WebImage) GetUrl() string {
if m != nil {
@ -146,25 +218,47 @@ func (m *WebDetection_WebImage) GetScore() float32 {
// Metadata for web pages.
type WebDetection_WebPage struct {
// The result web page URL.
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// (Deprecated) Overall relevancy score for the web page.
Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
// Title for the web page, may contain HTML markups.
PageTitle string `protobuf:"bytes,3,opt,name=page_title,json=pageTitle" json:"page_title,omitempty"`
PageTitle string `protobuf:"bytes,3,opt,name=page_title,json=pageTitle,proto3" json:"page_title,omitempty"`
// Fully matching images on the page.
// Can include resized copies of the query image.
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,4,rep,name=full_matching_images,json=fullMatchingImages" json:"full_matching_images,omitempty"`
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,4,rep,name=full_matching_images,json=fullMatchingImages,proto3" json:"full_matching_images,omitempty"`
// Partial matching images on the page.
// Those images are similar enough to share some key-point features. For
// example an original image will likely have partial matching for its
// crops.
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,5,rep,name=partial_matching_images,json=partialMatchingImages" json:"partial_matching_images,omitempty"`
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,5,rep,name=partial_matching_images,json=partialMatchingImages,proto3" json:"partial_matching_images,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebDetection_WebPage) Reset() { *m = WebDetection_WebPage{} }
func (m *WebDetection_WebPage) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebPage) ProtoMessage() {}
func (*WebDetection_WebPage) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 2} }
func (m *WebDetection_WebPage) Reset() { *m = WebDetection_WebPage{} }
func (m *WebDetection_WebPage) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebPage) ProtoMessage() {}
func (*WebDetection_WebPage) Descriptor() ([]byte, []int) {
return fileDescriptor_web_detection_cd347bf1f824d1ac, []int{0, 2}
}
func (m *WebDetection_WebPage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebDetection_WebPage.Unmarshal(m, b)
}
func (m *WebDetection_WebPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebDetection_WebPage.Marshal(b, m, deterministic)
}
func (dst *WebDetection_WebPage) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebDetection_WebPage.Merge(dst, src)
}
func (m *WebDetection_WebPage) XXX_Size() int {
return xxx_messageInfo_WebDetection_WebPage.Size(m)
}
func (m *WebDetection_WebPage) XXX_DiscardUnknown() {
xxx_messageInfo_WebDetection_WebPage.DiscardUnknown(m)
}
var xxx_messageInfo_WebDetection_WebPage proto.InternalMessageInfo
func (m *WebDetection_WebPage) GetUrl() string {
if m != nil {
@ -204,17 +298,39 @@ func (m *WebDetection_WebPage) GetPartialMatchingImages() []*WebDetection_WebIma
// Label to provide extra metadata for the web detection.
type WebDetection_WebLabel struct {
// Label for extra metadata.
Label string `protobuf:"bytes,1,opt,name=label" json:"label,omitempty"`
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
// The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
// For more information, see
// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode" json:"language_code,omitempty"`
LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebDetection_WebLabel) Reset() { *m = WebDetection_WebLabel{} }
func (m *WebDetection_WebLabel) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebLabel) ProtoMessage() {}
func (*WebDetection_WebLabel) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 3} }
func (m *WebDetection_WebLabel) Reset() { *m = WebDetection_WebLabel{} }
func (m *WebDetection_WebLabel) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebLabel) ProtoMessage() {}
func (*WebDetection_WebLabel) Descriptor() ([]byte, []int) {
return fileDescriptor_web_detection_cd347bf1f824d1ac, []int{0, 3}
}
func (m *WebDetection_WebLabel) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebDetection_WebLabel.Unmarshal(m, b)
}
func (m *WebDetection_WebLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebDetection_WebLabel.Marshal(b, m, deterministic)
}
func (dst *WebDetection_WebLabel) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebDetection_WebLabel.Merge(dst, src)
}
func (m *WebDetection_WebLabel) XXX_Size() int {
return xxx_messageInfo_WebDetection_WebLabel.Size(m)
}
func (m *WebDetection_WebLabel) XXX_DiscardUnknown() {
xxx_messageInfo_WebDetection_WebLabel.DiscardUnknown(m)
}
var xxx_messageInfo_WebDetection_WebLabel proto.InternalMessageInfo
func (m *WebDetection_WebLabel) GetLabel() string {
if m != nil {
@ -238,40 +354,42 @@ func init() {
proto.RegisterType((*WebDetection_WebLabel)(nil), "google.cloud.vision.v1.WebDetection.WebLabel")
}
func init() { proto.RegisterFile("google/cloud/vision/v1/web_detection.proto", fileDescriptor3) }
var fileDescriptor3 = []byte{
// 505 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0xd1, 0x8b, 0xd3, 0x4e,
0x10, 0xc7, 0x49, 0x7b, 0x77, 0xbf, 0x76, 0xdb, 0x1f, 0x7a, 0xcb, 0xe9, 0x85, 0xa8, 0x50, 0xf4,
0xa5, 0x88, 0x26, 0xdc, 0xf9, 0xa8, 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xee, 0xe8, 0xdc, 0x8e, 0xd3, 0xfe, 0x3d, 0x1c, 0x84,
0x5d, 0x06, 0x3f, 0x1c, 0x97, 0xd0, 0x27, 0xe4, 0x7f, 0xc9, 0xab, 0xb2, 0xc5, 0x61, 0xe4, 0xaa,
0x70, 0x63, 0x1a, 0xa6, 0xe3, 0xae, 0xf8, 0x5a, 0x15, 0xe2, 0xac, 0x21, 0x51, 0xae, 0x16, 0x37,
0x9c, 0xe8, 0xec, 0x70, 0xf3, 0x48, 0x33, 0x7c, 0x81, 0x66, 0xc1, 0x97, 0x57, 0xbe, 0xb9, 0x54,
0x48, 0x8a, 0x55, 0x53, 0x26, 0xa5, 0xa8, 0xec, 0xfb, 0x94, 0xb8, 0x4f, 0xbc, 0x06, 0x7d, 0xf5,
0x11, 0x7c, 0xe9, 0xa2, 0x9f, 0x41, 0x90, 0x1d, 0xd8, 0xde, 0x17, 0xbf, 0x02, 0x00, 0x00, 0xff,
0xff, 0x1c, 0xe5, 0x3e, 0x5b, 0x2f, 0x05, 0x00, 0x00,
func init() {
proto.RegisterFile("google/cloud/vision/v1/web_detection.proto", fileDescriptor_web_detection_cd347bf1f824d1ac)
}
var fileDescriptor_web_detection_cd347bf1f824d1ac = []byte{
// 512 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0x51, 0x6f, 0xd3, 0x30,
0x10, 0xc7, 0x95, 0xb6, 0x1b, 0xad, 0x5b, 0x04, 0xb3, 0x06, 0x8b, 0x02, 0x48, 0x15, 0xbc, 0x54,
0x08, 0x12, 0x6d, 0x3c, 0xc2, 0xd3, 0xc6, 0x34, 0x4d, 0x02, 0x54, 0x02, 0x62, 0x82, 0x17, 0xe3,
0x26, 0x26, 0x3d, 0xc9, 0x8d, 0xa3, 0xd8, 0x69, 0xd5, 0x6f, 0xc2, 0x33, 0x1f, 0x88, 0xcf, 0xc3,
0x23, 0x3a, 0xd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a5, 0x83, 0x55, 0xf1, 0x44, 0xe5, 0xe2, 0x78, 0x49, 0xa2, 0x4c, 0xcd, 0xae,
0x39, 0xd1, 0xf1, 0xde, 0xfa, 0x91, 0xc6, 0xf8, 0x02, 0x8d, 0x83, 0x2f, 0xaf, 0x7c, 0x73, 0xa1,
0x90, 0x14, 0xab, 0xba, 0x48, 0x0a, 0x51, 0xda, 0xf7, 0x29, 0x71, 0x9f, 0x78, 0x05, 0xfa, 0xf2,
0x23, 0xf8, 0xd2, 0x45, 0xbf, 0x82, 0xe0, 0x47, 0xab, 0x73, 0x76, 0xf2, 0xe9, 0xdd, 0x64, 0xd7,
0x4a, 0x5e, 0xfc, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x99, 0x1b, 0x06, 0x03, 0x36, 0x05, 0x00, 0x00,
}

View File

@ -1,49 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/vision/v1p1beta1/geometry.proto
/*
Package vision is a generated protocol buffer package.
It is generated from these files:
google/cloud/vision/v1p1beta1/geometry.proto
google/cloud/vision/v1p1beta1/image_annotator.proto
google/cloud/vision/v1p1beta1/text_annotation.proto
google/cloud/vision/v1p1beta1/web_detection.proto
It has these top-level messages:
Vertex
BoundingPoly
Position
Feature
ImageSource
Image
FaceAnnotation
LocationInfo
Property
EntityAnnotation
SafeSearchAnnotation
LatLongRect
ColorInfo
DominantColorsAnnotation
ImageProperties
CropHint
CropHintsAnnotation
CropHintsParams
WebDetectionParams
ImageContext
AnnotateImageRequest
AnnotateImageResponse
BatchAnnotateImagesRequest
BatchAnnotateImagesResponse
TextAnnotation
Page
Block
Paragraph
Word
Symbol
WebDetection
*/
package vision
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -64,15 +22,37 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// NOTE: the vertex coordinates are in the same scale as the original image.
type Vertex struct {
// X coordinate.
X int32 `protobuf:"varint,1,opt,name=x" json:"x,omitempty"`
X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
// Y coordinate.
Y int32 `protobuf:"varint,2,opt,name=y" json:"y,omitempty"`
Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Vertex) Reset() { *m = Vertex{} }
func (m *Vertex) String() string { return proto.CompactTextString(m) }
func (*Vertex) ProtoMessage() {}
func (*Vertex) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *Vertex) Reset() { *m = Vertex{} }
func (m *Vertex) String() string { return proto.CompactTextString(m) }
func (*Vertex) ProtoMessage() {}
func (*Vertex) Descriptor() ([]byte, []int) {
return fileDescriptor_geometry_9a7190aad6b30813, []int{0}
}
func (m *Vertex) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Vertex.Unmarshal(m, b)
}
func (m *Vertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Vertex.Marshal(b, m, deterministic)
}
func (dst *Vertex) XXX_Merge(src proto.Message) {
xxx_messageInfo_Vertex.Merge(dst, src)
}
func (m *Vertex) XXX_Size() int {
return xxx_messageInfo_Vertex.Size(m)
}
func (m *Vertex) XXX_DiscardUnknown() {
xxx_messageInfo_Vertex.DiscardUnknown(m)
}
var xxx_messageInfo_Vertex proto.InternalMessageInfo
func (m *Vertex) GetX() int32 {
if m != nil {
@ -91,13 +71,35 @@ func (m *Vertex) GetY() int32 {
// A bounding polygon for the detected image annotation.
type BoundingPoly struct {
// The bounding polygon vertices.
Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices" json:"vertices,omitempty"`
Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BoundingPoly) Reset() { *m = BoundingPoly{} }
func (m *BoundingPoly) String() string { return proto.CompactTextString(m) }
func (*BoundingPoly) ProtoMessage() {}
func (*BoundingPoly) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *BoundingPoly) Reset() { *m = BoundingPoly{} }
func (m *BoundingPoly) String() string { return proto.CompactTextString(m) }
func (*BoundingPoly) ProtoMessage() {}
func (*BoundingPoly) Descriptor() ([]byte, []int) {
return fileDescriptor_geometry_9a7190aad6b30813, []int{1}
}
func (m *BoundingPoly) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BoundingPoly.Unmarshal(m, b)
}
func (m *BoundingPoly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BoundingPoly.Marshal(b, m, deterministic)
}
func (dst *BoundingPoly) XXX_Merge(src proto.Message) {
xxx_messageInfo_BoundingPoly.Merge(dst, src)
}
func (m *BoundingPoly) XXX_Size() int {
return xxx_messageInfo_BoundingPoly.Size(m)
}
func (m *BoundingPoly) XXX_DiscardUnknown() {
xxx_messageInfo_BoundingPoly.DiscardUnknown(m)
}
var xxx_messageInfo_BoundingPoly proto.InternalMessageInfo
func (m *BoundingPoly) GetVertices() []*Vertex {
if m != nil {
@ -111,17 +113,39 @@ func (m *BoundingPoly) GetVertices() []*Vertex {
// The position coordinates are in the same scale as the original image.
type Position struct {
// X coordinate.
X float32 `protobuf:"fixed32,1,opt,name=x" json:"x,omitempty"`
X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
// Y coordinate.
Y float32 `protobuf:"fixed32,2,opt,name=y" json:"y,omitempty"`
Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
// Z coordinate (or depth).
Z float32 `protobuf:"fixed32,3,opt,name=z" json:"z,omitempty"`
Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Position) Reset() { *m = Position{} }
func (m *Position) String() string { return proto.CompactTextString(m) }
func (*Position) ProtoMessage() {}
func (*Position) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *Position) Reset() { *m = Position{} }
func (m *Position) String() string { return proto.CompactTextString(m) }
func (*Position) ProtoMessage() {}
func (*Position) Descriptor() ([]byte, []int) {
return fileDescriptor_geometry_9a7190aad6b30813, []int{2}
}
func (m *Position) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Position.Unmarshal(m, b)
}
func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Position.Marshal(b, m, deterministic)
}
func (dst *Position) XXX_Merge(src proto.Message) {
xxx_messageInfo_Position.Merge(dst, src)
}
func (m *Position) XXX_Size() int {
return xxx_messageInfo_Position.Size(m)
}
func (m *Position) XXX_DiscardUnknown() {
xxx_messageInfo_Position.DiscardUnknown(m)
}
var xxx_messageInfo_Position proto.InternalMessageInfo
func (m *Position) GetX() float32 {
if m != nil {
@ -150,9 +174,11 @@ func init() {
proto.RegisterType((*Position)(nil), "google.cloud.vision.v1p1beta1.Position")
}
func init() { proto.RegisterFile("google/cloud/vision/v1p1beta1/geometry.proto", fileDescriptor0) }
func init() {
proto.RegisterFile("google/cloud/vision/v1p1beta1/geometry.proto", fileDescriptor_geometry_9a7190aad6b30813)
}
var fileDescriptor0 = []byte{
var fileDescriptor_geometry_9a7190aad6b30813 = []byte{
// 243 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0xb1, 0x4b, 0xc3, 0x40,
0x14, 0x87, 0x79, 0x29, 0x96, 0x72, 0xd6, 0x25, 0x53, 0x16, 0xa1, 0x06, 0x85, 0x0e, 0x72, 0x47,

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/vision/v1p1beta1/text_annotation.proto
package vision
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -13,6 +13,12 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Enum to denote the type of break found. New line, space etc.
type TextAnnotation_DetectedBreak_BreakType int32
@ -53,7 +59,7 @@ func (x TextAnnotation_DetectedBreak_BreakType) String() string {
return proto.EnumName(TextAnnotation_DetectedBreak_BreakType_name, int32(x))
}
func (TextAnnotation_DetectedBreak_BreakType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor2, []int{0, 1, 0}
return fileDescriptor_text_annotation_0320745aa391b099, []int{0, 1, 0}
}
// Type of a block (text, image etc) as identified by OCR.
@ -94,7 +100,9 @@ var Block_BlockType_value = map[string]int32{
func (x Block_BlockType) String() string {
return proto.EnumName(Block_BlockType_name, int32(x))
}
func (Block_BlockType) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{2, 0} }
func (Block_BlockType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_0320745aa391b099, []int{2, 0}
}
// TextAnnotation contains a structured representation of OCR extracted text.
// The hierarchy of an OCR extracted text structure is like this:
@ -106,15 +114,37 @@ func (Block_BlockType) EnumDescriptor() ([]byte, []int) { return fileDescriptor2
// message definition below for more detail.
type TextAnnotation struct {
// List of pages detected by OCR.
Pages []*Page `protobuf:"bytes,1,rep,name=pages" json:"pages,omitempty"`
Pages []*Page `protobuf:"bytes,1,rep,name=pages,proto3" json:"pages,omitempty"`
// UTF-8 text detected on the pages.
Text string `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"`
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextAnnotation) Reset() { *m = TextAnnotation{} }
func (m *TextAnnotation) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation) ProtoMessage() {}
func (*TextAnnotation) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
func (m *TextAnnotation) Reset() { *m = TextAnnotation{} }
func (m *TextAnnotation) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation) ProtoMessage() {}
func (*TextAnnotation) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_0320745aa391b099, []int{0}
}
func (m *TextAnnotation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextAnnotation.Unmarshal(m, b)
}
func (m *TextAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextAnnotation.Marshal(b, m, deterministic)
}
func (dst *TextAnnotation) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextAnnotation.Merge(dst, src)
}
func (m *TextAnnotation) XXX_Size() int {
return xxx_messageInfo_TextAnnotation.Size(m)
}
func (m *TextAnnotation) XXX_DiscardUnknown() {
xxx_messageInfo_TextAnnotation.DiscardUnknown(m)
}
var xxx_messageInfo_TextAnnotation proto.InternalMessageInfo
func (m *TextAnnotation) GetPages() []*Page {
if m != nil {
@ -135,17 +165,37 @@ type TextAnnotation_DetectedLanguage struct {
// The BCP-47 language code, such as "en-US" or "sr-Latn". For more
// information, see
// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode" json:"language_code,omitempty"`
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// Confidence of detected language. Range [0, 1].
Confidence float32 `protobuf:"fixed32,2,opt,name=confidence" json:"confidence,omitempty"`
Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextAnnotation_DetectedLanguage) Reset() { *m = TextAnnotation_DetectedLanguage{} }
func (m *TextAnnotation_DetectedLanguage) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation_DetectedLanguage) ProtoMessage() {}
func (*TextAnnotation_DetectedLanguage) Descriptor() ([]byte, []int) {
return fileDescriptor2, []int{0, 0}
return fileDescriptor_text_annotation_0320745aa391b099, []int{0, 0}
}
func (m *TextAnnotation_DetectedLanguage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Unmarshal(m, b)
}
func (m *TextAnnotation_DetectedLanguage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Marshal(b, m, deterministic)
}
func (dst *TextAnnotation_DetectedLanguage) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextAnnotation_DetectedLanguage.Merge(dst, src)
}
func (m *TextAnnotation_DetectedLanguage) XXX_Size() int {
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Size(m)
}
func (m *TextAnnotation_DetectedLanguage) XXX_DiscardUnknown() {
xxx_messageInfo_TextAnnotation_DetectedLanguage.DiscardUnknown(m)
}
var xxx_messageInfo_TextAnnotation_DetectedLanguage proto.InternalMessageInfo
func (m *TextAnnotation_DetectedLanguage) GetLanguageCode() string {
if m != nil {
@ -164,15 +214,37 @@ func (m *TextAnnotation_DetectedLanguage) GetConfidence() float32 {
// Detected start or end of a structural component.
type TextAnnotation_DetectedBreak struct {
// Detected break type.
Type TextAnnotation_DetectedBreak_BreakType `protobuf:"varint,1,opt,name=type,enum=google.cloud.vision.v1p1beta1.TextAnnotation_DetectedBreak_BreakType" json:"type,omitempty"`
Type TextAnnotation_DetectedBreak_BreakType `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.vision.v1p1beta1.TextAnnotation_DetectedBreak_BreakType" json:"type,omitempty"`
// True if break prepends the element.
IsPrefix bool `protobuf:"varint,2,opt,name=is_prefix,json=isPrefix" json:"is_prefix,omitempty"`
IsPrefix bool `protobuf:"varint,2,opt,name=is_prefix,json=isPrefix,proto3" json:"is_prefix,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextAnnotation_DetectedBreak) Reset() { *m = TextAnnotation_DetectedBreak{} }
func (m *TextAnnotation_DetectedBreak) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation_DetectedBreak) ProtoMessage() {}
func (*TextAnnotation_DetectedBreak) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 1} }
func (m *TextAnnotation_DetectedBreak) Reset() { *m = TextAnnotation_DetectedBreak{} }
func (m *TextAnnotation_DetectedBreak) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation_DetectedBreak) ProtoMessage() {}
func (*TextAnnotation_DetectedBreak) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_0320745aa391b099, []int{0, 1}
}
func (m *TextAnnotation_DetectedBreak) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextAnnotation_DetectedBreak.Unmarshal(m, b)
}
func (m *TextAnnotation_DetectedBreak) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextAnnotation_DetectedBreak.Marshal(b, m, deterministic)
}
func (dst *TextAnnotation_DetectedBreak) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextAnnotation_DetectedBreak.Merge(dst, src)
}
func (m *TextAnnotation_DetectedBreak) XXX_Size() int {
return xxx_messageInfo_TextAnnotation_DetectedBreak.Size(m)
}
func (m *TextAnnotation_DetectedBreak) XXX_DiscardUnknown() {
xxx_messageInfo_TextAnnotation_DetectedBreak.DiscardUnknown(m)
}
var xxx_messageInfo_TextAnnotation_DetectedBreak proto.InternalMessageInfo
func (m *TextAnnotation_DetectedBreak) GetType() TextAnnotation_DetectedBreak_BreakType {
if m != nil {
@ -191,15 +263,37 @@ func (m *TextAnnotation_DetectedBreak) GetIsPrefix() bool {
// Additional information detected on the structural component.
type TextAnnotation_TextProperty struct {
// A list of detected languages together with confidence.
DetectedLanguages []*TextAnnotation_DetectedLanguage `protobuf:"bytes,1,rep,name=detected_languages,json=detectedLanguages" json:"detected_languages,omitempty"`
DetectedLanguages []*TextAnnotation_DetectedLanguage `protobuf:"bytes,1,rep,name=detected_languages,json=detectedLanguages,proto3" json:"detected_languages,omitempty"`
// Detected start or end of a text segment.
DetectedBreak *TextAnnotation_DetectedBreak `protobuf:"bytes,2,opt,name=detected_break,json=detectedBreak" json:"detected_break,omitempty"`
DetectedBreak *TextAnnotation_DetectedBreak `protobuf:"bytes,2,opt,name=detected_break,json=detectedBreak,proto3" json:"detected_break,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextAnnotation_TextProperty) Reset() { *m = TextAnnotation_TextProperty{} }
func (m *TextAnnotation_TextProperty) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation_TextProperty) ProtoMessage() {}
func (*TextAnnotation_TextProperty) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 2} }
func (m *TextAnnotation_TextProperty) Reset() { *m = TextAnnotation_TextProperty{} }
func (m *TextAnnotation_TextProperty) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation_TextProperty) ProtoMessage() {}
func (*TextAnnotation_TextProperty) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_0320745aa391b099, []int{0, 2}
}
func (m *TextAnnotation_TextProperty) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextAnnotation_TextProperty.Unmarshal(m, b)
}
func (m *TextAnnotation_TextProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextAnnotation_TextProperty.Marshal(b, m, deterministic)
}
func (dst *TextAnnotation_TextProperty) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextAnnotation_TextProperty.Merge(dst, src)
}
func (m *TextAnnotation_TextProperty) XXX_Size() int {
return xxx_messageInfo_TextAnnotation_TextProperty.Size(m)
}
func (m *TextAnnotation_TextProperty) XXX_DiscardUnknown() {
xxx_messageInfo_TextAnnotation_TextProperty.DiscardUnknown(m)
}
var xxx_messageInfo_TextAnnotation_TextProperty proto.InternalMessageInfo
func (m *TextAnnotation_TextProperty) GetDetectedLanguages() []*TextAnnotation_DetectedLanguage {
if m != nil {
@ -218,21 +312,43 @@ func (m *TextAnnotation_TextProperty) GetDetectedBreak() *TextAnnotation_Detecte
// Detected page from OCR.
type Page struct {
// Additional information detected on the page.
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
// Page width in pixels.
Width int32 `protobuf:"varint,2,opt,name=width" json:"width,omitempty"`
Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"`
// Page height in pixels.
Height int32 `protobuf:"varint,3,opt,name=height" json:"height,omitempty"`
Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
// List of blocks of text, images etc on this page.
Blocks []*Block `protobuf:"bytes,4,rep,name=blocks" json:"blocks,omitempty"`
Blocks []*Block `protobuf:"bytes,4,rep,name=blocks,proto3" json:"blocks,omitempty"`
// Confidence of the OCR results on the page. Range [0, 1].
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence" json:"confidence,omitempty"`
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Page) Reset() { *m = Page{} }
func (m *Page) String() string { return proto.CompactTextString(m) }
func (*Page) ProtoMessage() {}
func (*Page) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
func (m *Page) Reset() { *m = Page{} }
func (m *Page) String() string { return proto.CompactTextString(m) }
func (*Page) ProtoMessage() {}
func (*Page) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_0320745aa391b099, []int{1}
}
func (m *Page) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Page.Unmarshal(m, b)
}
func (m *Page) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Page.Marshal(b, m, deterministic)
}
func (dst *Page) XXX_Merge(src proto.Message) {
xxx_messageInfo_Page.Merge(dst, src)
}
func (m *Page) XXX_Size() int {
return xxx_messageInfo_Page.Size(m)
}
func (m *Page) XXX_DiscardUnknown() {
xxx_messageInfo_Page.DiscardUnknown(m)
}
var xxx_messageInfo_Page proto.InternalMessageInfo
func (m *Page) GetProperty() *TextAnnotation_TextProperty {
if m != nil {
@ -272,7 +388,7 @@ func (m *Page) GetConfidence() float32 {
// Logical element on the page.
type Block struct {
// Additional information detected for the block.
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
// The bounding box for the block.
// The vertices are in the order of top-left, top-right, bottom-right,
// bottom-left. When a rotation of the bounding box is detected the rotation
@ -288,19 +404,41 @@ type Block struct {
// | |
// 1----0
// and the vertice order will still be (0, 1, 2, 3).
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
// List of paragraphs in this block (if this blocks is of type text).
Paragraphs []*Paragraph `protobuf:"bytes,3,rep,name=paragraphs" json:"paragraphs,omitempty"`
Paragraphs []*Paragraph `protobuf:"bytes,3,rep,name=paragraphs,proto3" json:"paragraphs,omitempty"`
// Detected block type (text, image etc) for this block.
BlockType Block_BlockType `protobuf:"varint,4,opt,name=block_type,json=blockType,enum=google.cloud.vision.v1p1beta1.Block_BlockType" json:"block_type,omitempty"`
BlockType Block_BlockType `protobuf:"varint,4,opt,name=block_type,json=blockType,proto3,enum=google.cloud.vision.v1p1beta1.Block_BlockType" json:"block_type,omitempty"`
// Confidence of the OCR results on the block. Range [0, 1].
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence" json:"confidence,omitempty"`
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Block) Reset() { *m = Block{} }
func (m *Block) String() string { return proto.CompactTextString(m) }
func (*Block) ProtoMessage() {}
func (*Block) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
func (m *Block) Reset() { *m = Block{} }
func (m *Block) String() string { return proto.CompactTextString(m) }
func (*Block) ProtoMessage() {}
func (*Block) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_0320745aa391b099, []int{2}
}
func (m *Block) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Block.Unmarshal(m, b)
}
func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Block.Marshal(b, m, deterministic)
}
func (dst *Block) XXX_Merge(src proto.Message) {
xxx_messageInfo_Block.Merge(dst, src)
}
func (m *Block) XXX_Size() int {
return xxx_messageInfo_Block.Size(m)
}
func (m *Block) XXX_DiscardUnknown() {
xxx_messageInfo_Block.DiscardUnknown(m)
}
var xxx_messageInfo_Block proto.InternalMessageInfo
func (m *Block) GetProperty() *TextAnnotation_TextProperty {
if m != nil {
@ -340,7 +478,7 @@ func (m *Block) GetConfidence() float32 {
// Structural unit of text representing a number of words in certain order.
type Paragraph struct {
// Additional information detected for the paragraph.
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
// The bounding box for the paragraph.
// The vertices are in the order of top-left, top-right, bottom-right,
// bottom-left. When a rotation of the bounding box is detected the rotation
@ -356,17 +494,39 @@ type Paragraph struct {
// | |
// 1----0
// and the vertice order will still be (0, 1, 2, 3).
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
// List of words in this paragraph.
Words []*Word `protobuf:"bytes,3,rep,name=words" json:"words,omitempty"`
Words []*Word `protobuf:"bytes,3,rep,name=words,proto3" json:"words,omitempty"`
// Confidence of the OCR results for the paragraph. Range [0, 1].
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence" json:"confidence,omitempty"`
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Paragraph) Reset() { *m = Paragraph{} }
func (m *Paragraph) String() string { return proto.CompactTextString(m) }
func (*Paragraph) ProtoMessage() {}
func (*Paragraph) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
func (m *Paragraph) Reset() { *m = Paragraph{} }
func (m *Paragraph) String() string { return proto.CompactTextString(m) }
func (*Paragraph) ProtoMessage() {}
func (*Paragraph) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_0320745aa391b099, []int{3}
}
func (m *Paragraph) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Paragraph.Unmarshal(m, b)
}
func (m *Paragraph) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Paragraph.Marshal(b, m, deterministic)
}
func (dst *Paragraph) XXX_Merge(src proto.Message) {
xxx_messageInfo_Paragraph.Merge(dst, src)
}
func (m *Paragraph) XXX_Size() int {
return xxx_messageInfo_Paragraph.Size(m)
}
func (m *Paragraph) XXX_DiscardUnknown() {
xxx_messageInfo_Paragraph.DiscardUnknown(m)
}
var xxx_messageInfo_Paragraph proto.InternalMessageInfo
func (m *Paragraph) GetProperty() *TextAnnotation_TextProperty {
if m != nil {
@ -399,7 +559,7 @@ func (m *Paragraph) GetConfidence() float32 {
// A word representation.
type Word struct {
// Additional information detected for the word.
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
// The bounding box for the word.
// The vertices are in the order of top-left, top-right, bottom-right,
// bottom-left. When a rotation of the bounding box is detected the rotation
@ -415,18 +575,40 @@ type Word struct {
// | |
// 1----0
// and the vertice order will still be (0, 1, 2, 3).
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
// List of symbols in the word.
// The order of the symbols follows the natural reading order.
Symbols []*Symbol `protobuf:"bytes,3,rep,name=symbols" json:"symbols,omitempty"`
Symbols []*Symbol `protobuf:"bytes,3,rep,name=symbols,proto3" json:"symbols,omitempty"`
// Confidence of the OCR results for the word. Range [0, 1].
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence" json:"confidence,omitempty"`
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Word) Reset() { *m = Word{} }
func (m *Word) String() string { return proto.CompactTextString(m) }
func (*Word) ProtoMessage() {}
func (*Word) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} }
func (m *Word) Reset() { *m = Word{} }
func (m *Word) String() string { return proto.CompactTextString(m) }
func (*Word) ProtoMessage() {}
func (*Word) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_0320745aa391b099, []int{4}
}
func (m *Word) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Word.Unmarshal(m, b)
}
func (m *Word) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Word.Marshal(b, m, deterministic)
}
func (dst *Word) XXX_Merge(src proto.Message) {
xxx_messageInfo_Word.Merge(dst, src)
}
func (m *Word) XXX_Size() int {
return xxx_messageInfo_Word.Size(m)
}
func (m *Word) XXX_DiscardUnknown() {
xxx_messageInfo_Word.DiscardUnknown(m)
}
var xxx_messageInfo_Word proto.InternalMessageInfo
func (m *Word) GetProperty() *TextAnnotation_TextProperty {
if m != nil {
@ -459,7 +641,7 @@ func (m *Word) GetConfidence() float32 {
// A single symbol representation.
type Symbol struct {
// Additional information detected for the symbol.
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
// The bounding box for the symbol.
// The vertices are in the order of top-left, top-right, bottom-right,
// bottom-left. When a rotation of the bounding box is detected the rotation
@ -475,17 +657,39 @@ type Symbol struct {
// | |
// 1----0
// and the vertice order will still be (0, 1, 2, 3).
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
// The actual UTF-8 representation of the symbol.
Text string `protobuf:"bytes,3,opt,name=text" json:"text,omitempty"`
Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
// Confidence of the OCR results for the symbol. Range [0, 1].
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence" json:"confidence,omitempty"`
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Symbol) Reset() { *m = Symbol{} }
func (m *Symbol) String() string { return proto.CompactTextString(m) }
func (*Symbol) ProtoMessage() {}
func (*Symbol) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} }
func (m *Symbol) Reset() { *m = Symbol{} }
func (m *Symbol) String() string { return proto.CompactTextString(m) }
func (*Symbol) ProtoMessage() {}
func (*Symbol) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_0320745aa391b099, []int{5}
}
func (m *Symbol) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Symbol.Unmarshal(m, b)
}
func (m *Symbol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Symbol.Marshal(b, m, deterministic)
}
func (dst *Symbol) XXX_Merge(src proto.Message) {
xxx_messageInfo_Symbol.Merge(dst, src)
}
func (m *Symbol) XXX_Size() int {
return xxx_messageInfo_Symbol.Size(m)
}
func (m *Symbol) XXX_DiscardUnknown() {
xxx_messageInfo_Symbol.DiscardUnknown(m)
}
var xxx_messageInfo_Symbol proto.InternalMessageInfo
func (m *Symbol) GetProperty() *TextAnnotation_TextProperty {
if m != nil {
@ -530,10 +734,10 @@ func init() {
}
func init() {
proto.RegisterFile("google/cloud/vision/v1p1beta1/text_annotation.proto", fileDescriptor2)
proto.RegisterFile("google/cloud/vision/v1p1beta1/text_annotation.proto", fileDescriptor_text_annotation_0320745aa391b099)
}
var fileDescriptor2 = []byte{
var fileDescriptor_text_annotation_0320745aa391b099 = []byte{
// 775 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x56, 0x4f, 0x6f, 0xd3, 0x48,
0x14, 0x5f, 0x27, 0x76, 0x1a, 0xbf, 0xb4, 0x91, 0x77, 0x76, 0xb5, 0x8a, 0xb2, 0xbb, 0xa8, 0xa4,

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/vision/v1p1beta1/web_detection.proto
package vision
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -13,29 +13,57 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Relevant information for the image from the Internet.
type WebDetection struct {
// Deduced entities from similar images on the Internet.
WebEntities []*WebDetection_WebEntity `protobuf:"bytes,1,rep,name=web_entities,json=webEntities" json:"web_entities,omitempty"`
WebEntities []*WebDetection_WebEntity `protobuf:"bytes,1,rep,name=web_entities,json=webEntities,proto3" json:"web_entities,omitempty"`
// Fully matching images from the Internet.
// Can include resized copies of the query image.
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,2,rep,name=full_matching_images,json=fullMatchingImages" json:"full_matching_images,omitempty"`
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,2,rep,name=full_matching_images,json=fullMatchingImages,proto3" json:"full_matching_images,omitempty"`
// Partial matching images from the Internet.
// Those images are similar enough to share some key-point features. For
// example an original image will likely have partial matching for its crops.
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,3,rep,name=partial_matching_images,json=partialMatchingImages" json:"partial_matching_images,omitempty"`
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,3,rep,name=partial_matching_images,json=partialMatchingImages,proto3" json:"partial_matching_images,omitempty"`
// Web pages containing the matching images from the Internet.
PagesWithMatchingImages []*WebDetection_WebPage `protobuf:"bytes,4,rep,name=pages_with_matching_images,json=pagesWithMatchingImages" json:"pages_with_matching_images,omitempty"`
PagesWithMatchingImages []*WebDetection_WebPage `protobuf:"bytes,4,rep,name=pages_with_matching_images,json=pagesWithMatchingImages,proto3" json:"pages_with_matching_images,omitempty"`
// The visually similar image results.
VisuallySimilarImages []*WebDetection_WebImage `protobuf:"bytes,6,rep,name=visually_similar_images,json=visuallySimilarImages" json:"visually_similar_images,omitempty"`
VisuallySimilarImages []*WebDetection_WebImage `protobuf:"bytes,6,rep,name=visually_similar_images,json=visuallySimilarImages,proto3" json:"visually_similar_images,omitempty"`
// Best guess text labels for the request image.
BestGuessLabels []*WebDetection_WebLabel `protobuf:"bytes,8,rep,name=best_guess_labels,json=bestGuessLabels" json:"best_guess_labels,omitempty"`
BestGuessLabels []*WebDetection_WebLabel `protobuf:"bytes,8,rep,name=best_guess_labels,json=bestGuessLabels,proto3" json:"best_guess_labels,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebDetection) Reset() { *m = WebDetection{} }
func (m *WebDetection) String() string { return proto.CompactTextString(m) }
func (*WebDetection) ProtoMessage() {}
func (*WebDetection) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
func (m *WebDetection) Reset() { *m = WebDetection{} }
func (m *WebDetection) String() string { return proto.CompactTextString(m) }
func (*WebDetection) ProtoMessage() {}
func (*WebDetection) Descriptor() ([]byte, []int) {
return fileDescriptor_web_detection_1e42c8eaa5ae855c, []int{0}
}
func (m *WebDetection) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebDetection.Unmarshal(m, b)
}
func (m *WebDetection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebDetection.Marshal(b, m, deterministic)
}
func (dst *WebDetection) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebDetection.Merge(dst, src)
}
func (m *WebDetection) XXX_Size() int {
return xxx_messageInfo_WebDetection.Size(m)
}
func (m *WebDetection) XXX_DiscardUnknown() {
xxx_messageInfo_WebDetection.DiscardUnknown(m)
}
var xxx_messageInfo_WebDetection proto.InternalMessageInfo
func (m *WebDetection) GetWebEntities() []*WebDetection_WebEntity {
if m != nil {
@ -82,18 +110,40 @@ func (m *WebDetection) GetBestGuessLabels() []*WebDetection_WebLabel {
// Entity deduced from similar images on the Internet.
type WebDetection_WebEntity struct {
// Opaque entity ID.
EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId" json:"entity_id,omitempty"`
EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
// Overall relevancy score for the entity.
// Not normalized and not comparable across different image queries.
Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
// Canonical description of the entity, in English.
Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebDetection_WebEntity) Reset() { *m = WebDetection_WebEntity{} }
func (m *WebDetection_WebEntity) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebEntity) ProtoMessage() {}
func (*WebDetection_WebEntity) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 0} }
func (m *WebDetection_WebEntity) Reset() { *m = WebDetection_WebEntity{} }
func (m *WebDetection_WebEntity) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebEntity) ProtoMessage() {}
func (*WebDetection_WebEntity) Descriptor() ([]byte, []int) {
return fileDescriptor_web_detection_1e42c8eaa5ae855c, []int{0, 0}
}
func (m *WebDetection_WebEntity) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebDetection_WebEntity.Unmarshal(m, b)
}
func (m *WebDetection_WebEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebDetection_WebEntity.Marshal(b, m, deterministic)
}
func (dst *WebDetection_WebEntity) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebDetection_WebEntity.Merge(dst, src)
}
func (m *WebDetection_WebEntity) XXX_Size() int {
return xxx_messageInfo_WebDetection_WebEntity.Size(m)
}
func (m *WebDetection_WebEntity) XXX_DiscardUnknown() {
xxx_messageInfo_WebDetection_WebEntity.DiscardUnknown(m)
}
var xxx_messageInfo_WebDetection_WebEntity proto.InternalMessageInfo
func (m *WebDetection_WebEntity) GetEntityId() string {
if m != nil {
@ -119,15 +169,37 @@ func (m *WebDetection_WebEntity) GetDescription() string {
// Metadata for online images.
type WebDetection_WebImage struct {
// The result image URL.
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// (Deprecated) Overall relevancy score for the image.
Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebDetection_WebImage) Reset() { *m = WebDetection_WebImage{} }
func (m *WebDetection_WebImage) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebImage) ProtoMessage() {}
func (*WebDetection_WebImage) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 1} }
func (m *WebDetection_WebImage) Reset() { *m = WebDetection_WebImage{} }
func (m *WebDetection_WebImage) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebImage) ProtoMessage() {}
func (*WebDetection_WebImage) Descriptor() ([]byte, []int) {
return fileDescriptor_web_detection_1e42c8eaa5ae855c, []int{0, 1}
}
func (m *WebDetection_WebImage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebDetection_WebImage.Unmarshal(m, b)
}
func (m *WebDetection_WebImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebDetection_WebImage.Marshal(b, m, deterministic)
}
func (dst *WebDetection_WebImage) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebDetection_WebImage.Merge(dst, src)
}
func (m *WebDetection_WebImage) XXX_Size() int {
return xxx_messageInfo_WebDetection_WebImage.Size(m)
}
func (m *WebDetection_WebImage) XXX_DiscardUnknown() {
xxx_messageInfo_WebDetection_WebImage.DiscardUnknown(m)
}
var xxx_messageInfo_WebDetection_WebImage proto.InternalMessageInfo
func (m *WebDetection_WebImage) GetUrl() string {
if m != nil {
@ -146,25 +218,47 @@ func (m *WebDetection_WebImage) GetScore() float32 {
// Metadata for web pages.
type WebDetection_WebPage struct {
// The result web page URL.
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// (Deprecated) Overall relevancy score for the web page.
Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
// Title for the web page, may contain HTML markups.
PageTitle string `protobuf:"bytes,3,opt,name=page_title,json=pageTitle" json:"page_title,omitempty"`
PageTitle string `protobuf:"bytes,3,opt,name=page_title,json=pageTitle,proto3" json:"page_title,omitempty"`
// Fully matching images on the page.
// Can include resized copies of the query image.
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,4,rep,name=full_matching_images,json=fullMatchingImages" json:"full_matching_images,omitempty"`
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,4,rep,name=full_matching_images,json=fullMatchingImages,proto3" json:"full_matching_images,omitempty"`
// Partial matching images on the page.
// Those images are similar enough to share some key-point features. For
// example an original image will likely have partial matching for its
// crops.
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,5,rep,name=partial_matching_images,json=partialMatchingImages" json:"partial_matching_images,omitempty"`
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,5,rep,name=partial_matching_images,json=partialMatchingImages,proto3" json:"partial_matching_images,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebDetection_WebPage) Reset() { *m = WebDetection_WebPage{} }
func (m *WebDetection_WebPage) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebPage) ProtoMessage() {}
func (*WebDetection_WebPage) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 2} }
func (m *WebDetection_WebPage) Reset() { *m = WebDetection_WebPage{} }
func (m *WebDetection_WebPage) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebPage) ProtoMessage() {}
func (*WebDetection_WebPage) Descriptor() ([]byte, []int) {
return fileDescriptor_web_detection_1e42c8eaa5ae855c, []int{0, 2}
}
func (m *WebDetection_WebPage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebDetection_WebPage.Unmarshal(m, b)
}
func (m *WebDetection_WebPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebDetection_WebPage.Marshal(b, m, deterministic)
}
func (dst *WebDetection_WebPage) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebDetection_WebPage.Merge(dst, src)
}
func (m *WebDetection_WebPage) XXX_Size() int {
return xxx_messageInfo_WebDetection_WebPage.Size(m)
}
func (m *WebDetection_WebPage) XXX_DiscardUnknown() {
xxx_messageInfo_WebDetection_WebPage.DiscardUnknown(m)
}
var xxx_messageInfo_WebDetection_WebPage proto.InternalMessageInfo
func (m *WebDetection_WebPage) GetUrl() string {
if m != nil {
@ -204,17 +298,39 @@ func (m *WebDetection_WebPage) GetPartialMatchingImages() []*WebDetection_WebIma
// Label to provide extra metadata for the web detection.
type WebDetection_WebLabel struct {
// Label for extra metadata.
Label string `protobuf:"bytes,1,opt,name=label" json:"label,omitempty"`
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
// The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
// For more information, see
// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode" json:"language_code,omitempty"`
LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebDetection_WebLabel) Reset() { *m = WebDetection_WebLabel{} }
func (m *WebDetection_WebLabel) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebLabel) ProtoMessage() {}
func (*WebDetection_WebLabel) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 3} }
func (m *WebDetection_WebLabel) Reset() { *m = WebDetection_WebLabel{} }
func (m *WebDetection_WebLabel) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebLabel) ProtoMessage() {}
func (*WebDetection_WebLabel) Descriptor() ([]byte, []int) {
return fileDescriptor_web_detection_1e42c8eaa5ae855c, []int{0, 3}
}
func (m *WebDetection_WebLabel) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebDetection_WebLabel.Unmarshal(m, b)
}
func (m *WebDetection_WebLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebDetection_WebLabel.Marshal(b, m, deterministic)
}
func (dst *WebDetection_WebLabel) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebDetection_WebLabel.Merge(dst, src)
}
func (m *WebDetection_WebLabel) XXX_Size() int {
return xxx_messageInfo_WebDetection_WebLabel.Size(m)
}
func (m *WebDetection_WebLabel) XXX_DiscardUnknown() {
xxx_messageInfo_WebDetection_WebLabel.DiscardUnknown(m)
}
var xxx_messageInfo_WebDetection_WebLabel proto.InternalMessageInfo
func (m *WebDetection_WebLabel) GetLabel() string {
if m != nil {
@ -238,9 +354,11 @@ func init() {
proto.RegisterType((*WebDetection_WebLabel)(nil), "google.cloud.vision.v1p1beta1.WebDetection.WebLabel")
}
func init() { proto.RegisterFile("google/cloud/vision/v1p1beta1/web_detection.proto", fileDescriptor3) }
func init() {
proto.RegisterFile("google/cloud/vision/v1p1beta1/web_detection.proto", fileDescriptor_web_detection_1e42c8eaa5ae855c)
}
var fileDescriptor3 = []byte{
var fileDescriptor_web_detection_1e42c8eaa5ae855c = []byte{
// 511 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0x4f, 0x6f, 0xd3, 0x30,
0x18, 0xc6, 0x95, 0x76, 0x1b, 0x8b, 0x5b, 0x04, 0xb3, 0x86, 0x16, 0x05, 0x26, 0x15, 0xb8, 0xf4,

View File

@ -1,59 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/vision/v1p2beta1/geometry.proto
/*
Package vision is a generated protocol buffer package.
It is generated from these files:
google/cloud/vision/v1p2beta1/geometry.proto
google/cloud/vision/v1p2beta1/image_annotator.proto
google/cloud/vision/v1p2beta1/text_annotation.proto
google/cloud/vision/v1p2beta1/web_detection.proto
It has these top-level messages:
Vertex
BoundingPoly
Position
Feature
ImageSource
Image
FaceAnnotation
LocationInfo
Property
EntityAnnotation
SafeSearchAnnotation
LatLongRect
ColorInfo
DominantColorsAnnotation
ImageProperties
CropHint
CropHintsAnnotation
CropHintsParams
WebDetectionParams
ImageContext
AnnotateImageRequest
ImageAnnotationContext
AnnotateImageResponse
BatchAnnotateImagesRequest
BatchAnnotateImagesResponse
AsyncAnnotateFileRequest
AsyncAnnotateFileResponse
AsyncBatchAnnotateFilesRequest
AsyncBatchAnnotateFilesResponse
InputConfig
OutputConfig
GcsSource
GcsDestination
OperationMetadata
TextAnnotation
Page
Block
Paragraph
Word
Symbol
WebDetection
*/
package vision
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -74,15 +22,37 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// NOTE: the vertex coordinates are in the same scale as the original image.
type Vertex struct {
// X coordinate.
X int32 `protobuf:"varint,1,opt,name=x" json:"x,omitempty"`
X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
// Y coordinate.
Y int32 `protobuf:"varint,2,opt,name=y" json:"y,omitempty"`
Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Vertex) Reset() { *m = Vertex{} }
func (m *Vertex) String() string { return proto.CompactTextString(m) }
func (*Vertex) ProtoMessage() {}
func (*Vertex) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *Vertex) Reset() { *m = Vertex{} }
func (m *Vertex) String() string { return proto.CompactTextString(m) }
func (*Vertex) ProtoMessage() {}
func (*Vertex) Descriptor() ([]byte, []int) {
return fileDescriptor_geometry_0665111372b2901b, []int{0}
}
func (m *Vertex) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Vertex.Unmarshal(m, b)
}
func (m *Vertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Vertex.Marshal(b, m, deterministic)
}
func (dst *Vertex) XXX_Merge(src proto.Message) {
xxx_messageInfo_Vertex.Merge(dst, src)
}
func (m *Vertex) XXX_Size() int {
return xxx_messageInfo_Vertex.Size(m)
}
func (m *Vertex) XXX_DiscardUnknown() {
xxx_messageInfo_Vertex.DiscardUnknown(m)
}
var xxx_messageInfo_Vertex proto.InternalMessageInfo
func (m *Vertex) GetX() int32 {
if m != nil {
@ -98,16 +68,91 @@ func (m *Vertex) GetY() int32 {
return 0
}
// A vertex represents a 2D point in the image.
// NOTE: the normalized vertex coordinates are relative to the original image
// and range from 0 to 1.
type NormalizedVertex struct {
// X coordinate.
X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
// Y coordinate.
Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NormalizedVertex) Reset() { *m = NormalizedVertex{} }
func (m *NormalizedVertex) String() string { return proto.CompactTextString(m) }
func (*NormalizedVertex) ProtoMessage() {}
func (*NormalizedVertex) Descriptor() ([]byte, []int) {
return fileDescriptor_geometry_0665111372b2901b, []int{1}
}
func (m *NormalizedVertex) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NormalizedVertex.Unmarshal(m, b)
}
func (m *NormalizedVertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NormalizedVertex.Marshal(b, m, deterministic)
}
func (dst *NormalizedVertex) XXX_Merge(src proto.Message) {
xxx_messageInfo_NormalizedVertex.Merge(dst, src)
}
func (m *NormalizedVertex) XXX_Size() int {
return xxx_messageInfo_NormalizedVertex.Size(m)
}
func (m *NormalizedVertex) XXX_DiscardUnknown() {
xxx_messageInfo_NormalizedVertex.DiscardUnknown(m)
}
var xxx_messageInfo_NormalizedVertex proto.InternalMessageInfo
func (m *NormalizedVertex) GetX() float32 {
if m != nil {
return m.X
}
return 0
}
func (m *NormalizedVertex) GetY() float32 {
if m != nil {
return m.Y
}
return 0
}
// A bounding polygon for the detected image annotation.
type BoundingPoly struct {
// The bounding polygon vertices.
Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices" json:"vertices,omitempty"`
Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
// The bounding polygon normalized vertices.
NormalizedVertices []*NormalizedVertex `protobuf:"bytes,2,rep,name=normalized_vertices,json=normalizedVertices,proto3" json:"normalized_vertices,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BoundingPoly) Reset() { *m = BoundingPoly{} }
func (m *BoundingPoly) String() string { return proto.CompactTextString(m) }
func (*BoundingPoly) ProtoMessage() {}
func (*BoundingPoly) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *BoundingPoly) Reset() { *m = BoundingPoly{} }
func (m *BoundingPoly) String() string { return proto.CompactTextString(m) }
func (*BoundingPoly) ProtoMessage() {}
func (*BoundingPoly) Descriptor() ([]byte, []int) {
return fileDescriptor_geometry_0665111372b2901b, []int{2}
}
func (m *BoundingPoly) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BoundingPoly.Unmarshal(m, b)
}
func (m *BoundingPoly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BoundingPoly.Marshal(b, m, deterministic)
}
func (dst *BoundingPoly) XXX_Merge(src proto.Message) {
xxx_messageInfo_BoundingPoly.Merge(dst, src)
}
func (m *BoundingPoly) XXX_Size() int {
return xxx_messageInfo_BoundingPoly.Size(m)
}
func (m *BoundingPoly) XXX_DiscardUnknown() {
xxx_messageInfo_BoundingPoly.DiscardUnknown(m)
}
var xxx_messageInfo_BoundingPoly proto.InternalMessageInfo
func (m *BoundingPoly) GetVertices() []*Vertex {
if m != nil {
@ -116,22 +161,51 @@ func (m *BoundingPoly) GetVertices() []*Vertex {
return nil
}
func (m *BoundingPoly) GetNormalizedVertices() []*NormalizedVertex {
if m != nil {
return m.NormalizedVertices
}
return nil
}
// A 3D position in the image, used primarily for Face detection landmarks.
// A valid Position must have both x and y coordinates.
// The position coordinates are in the same scale as the original image.
type Position struct {
// X coordinate.
X float32 `protobuf:"fixed32,1,opt,name=x" json:"x,omitempty"`
X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
// Y coordinate.
Y float32 `protobuf:"fixed32,2,opt,name=y" json:"y,omitempty"`
Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
// Z coordinate (or depth).
Z float32 `protobuf:"fixed32,3,opt,name=z" json:"z,omitempty"`
Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Position) Reset() { *m = Position{} }
func (m *Position) String() string { return proto.CompactTextString(m) }
func (*Position) ProtoMessage() {}
func (*Position) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *Position) Reset() { *m = Position{} }
func (m *Position) String() string { return proto.CompactTextString(m) }
func (*Position) ProtoMessage() {}
func (*Position) Descriptor() ([]byte, []int) {
return fileDescriptor_geometry_0665111372b2901b, []int{3}
}
func (m *Position) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Position.Unmarshal(m, b)
}
func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Position.Marshal(b, m, deterministic)
}
func (dst *Position) XXX_Merge(src proto.Message) {
xxx_messageInfo_Position.Merge(dst, src)
}
func (m *Position) XXX_Size() int {
return xxx_messageInfo_Position.Size(m)
}
func (m *Position) XXX_DiscardUnknown() {
xxx_messageInfo_Position.DiscardUnknown(m)
}
var xxx_messageInfo_Position proto.InternalMessageInfo
func (m *Position) GetX() float32 {
if m != nil {
@ -156,28 +230,33 @@ func (m *Position) GetZ() float32 {
func init() {
proto.RegisterType((*Vertex)(nil), "google.cloud.vision.v1p2beta1.Vertex")
proto.RegisterType((*NormalizedVertex)(nil), "google.cloud.vision.v1p2beta1.NormalizedVertex")
proto.RegisterType((*BoundingPoly)(nil), "google.cloud.vision.v1p2beta1.BoundingPoly")
proto.RegisterType((*Position)(nil), "google.cloud.vision.v1p2beta1.Position")
}
func init() { proto.RegisterFile("google/cloud/vision/v1p2beta1/geometry.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 243 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0xb1, 0x4b, 0xc3, 0x40,
0x14, 0x87, 0x79, 0x29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xc4, 0x6d, 0x6d, 0x48, 0xb2,
0x25, 0x45, 0x68, 0x42, 0x1f, 0x15, 0xbf, 0xea, 0x4e, 0xf7, 0x67, 0x82, 0xbe, 0xc4, 0x87, 0x1f,
0x80, 0xd5, 0x38, 0x9c, 0x3c, 0xfd, 0x06, 0x00, 0x00, 0xff, 0xff, 0x5a, 0xa2, 0xee, 0x2b, 0x82,
0x01, 0x00, 0x00,
func init() {
proto.RegisterFile("google/cloud/vision/v1p2beta1/geometry.proto", fileDescriptor_geometry_0665111372b2901b)
}
var fileDescriptor_geometry_0665111372b2901b = []byte{
// 283 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xc1, 0x4b, 0xc3, 0x30,
0x14, 0xc6, 0x49, 0x87, 0x63, 0xc4, 0x09, 0x52, 0x2f, 0xbd, 0x08, 0xb3, 0x28, 0xec, 0x20, 0x09,
0x9b, 0xde, 0x3c, 0x59, 0x0f, 0xde, 0xa4, 0xf4, 0xe0, 0xc1, 0x8b, 0x76, 0xed, 0x23, 0x04, 0xda,
0xbc, 0x92, 0x66, 0x65, 0x2d, 0xfe, 0x57, 0xfe, 0x73, 0x1e, 0xa5, 0xc9, 0x28, 0x6c, 0x60, 0x77,
0xfc, 0x5e, 0x7e, 0xef, 0x7b, 0x5f, 0xf8, 0xe8, 0xbd, 0x40, 0x14, 0x05, 0xf0, 0xac, 0xc0, 0x6d,
0xce, 0x1b, 0x59, 0x4b, 0x54, 0xbc, 0x59, 0x55, 0xeb, 0x0d, 0x98, 0x74, 0xc5, 0x05, 0x60, 0x09,
0x46, 0xb7, 0xac, 0xd2, 0x68, 0xd0, 0xbf, 0x76, 0x34, 0xb3, 0x34, 0x73, 0x34, 0x1b, 0xe8, 0xf0,
0x96, 0x4e, 0xdf, 0x41, 0x1b, 0xd8, 0xf9, 0x73, 0x4a, 0x76, 0x01, 0x59, 0x90, 0xe5, 0x59, 0x42,
0xac, 0x6a, 0x03, 0xcf, 0xa9, 0x36, 0x64, 0xf4, 0xf2, 0x0d, 0x75, 0x99, 0x16, 0xb2, 0x83, 0xfc,
0x98, 0xf7, 0x0e, 0x78, 0xaf, 0xe7, 0x7f, 0x08, 0x9d, 0x47, 0xb8, 0x55, 0xb9, 0x54, 0x22, 0xc6,
0xa2, 0xf5, 0x9f, 0xe9, 0xac, 0x01, 0x6d, 0x64, 0x06, 0x75, 0x40, 0x16, 0x93, 0xe5, 0xf9, 0xfa,
0x8e, 0x8d, 0x06, 0x63, 0xee, 0x4a, 0x32, 0xac, 0xf9, 0x5f, 0xf4, 0x4a, 0x0d, 0x19, 0x3e, 0x07,
0x37, 0xcf, 0xba, 0xf1, 0x13, 0x6e, 0xc7, 0xe9, 0x13, 0x5f, 0x1d, 0x4c, 0x7a, 0xab, 0xf0, 0x91,
0xce, 0x62, 0xac, 0xa5, 0x91, 0xa8, 0xc6, 0x7e, 0xd7, 0xab, 0x2e, 0x98, 0x38, 0xd5, 0x45, 0xdf,
0xf4, 0x26, 0xc3, 0x72, 0xfc, 0x7e, 0x74, 0xf1, 0xba, 0x6f, 0x25, 0xee, 0x4b, 0x89, 0xc9, 0xc7,
0xcb, 0x9e, 0x17, 0x58, 0xa4, 0x4a, 0x30, 0xd4, 0x82, 0x0b, 0x50, 0xb6, 0x32, 0xee, 0x9e, 0xd2,
0x4a, 0xd6, 0xff, 0x74, 0xfc, 0xe4, 0x06, 0xbf, 0x84, 0x6c, 0xa6, 0x76, 0xe5, 0xe1, 0x2f, 0x00,
0x00, 0xff, 0xff, 0x3d, 0xe4, 0x63, 0xcf, 0x15, 0x02, 0x00, 0x00,
}

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/vision/v1p2beta1/text_annotation.proto
package vision
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -13,6 +13,12 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Enum to denote the type of break found. New line, space etc.
type TextAnnotation_DetectedBreak_BreakType int32
@ -53,7 +59,7 @@ func (x TextAnnotation_DetectedBreak_BreakType) String() string {
return proto.EnumName(TextAnnotation_DetectedBreak_BreakType_name, int32(x))
}
func (TextAnnotation_DetectedBreak_BreakType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor2, []int{0, 1, 0}
return fileDescriptor_text_annotation_8d9193533acd557d, []int{0, 1, 0}
}
// Type of a block (text, image etc) as identified by OCR.
@ -94,7 +100,9 @@ var Block_BlockType_value = map[string]int32{
func (x Block_BlockType) String() string {
return proto.EnumName(Block_BlockType_name, int32(x))
}
func (Block_BlockType) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{2, 0} }
func (Block_BlockType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_8d9193533acd557d, []int{2, 0}
}
// TextAnnotation contains a structured representation of OCR extracted text.
// The hierarchy of an OCR extracted text structure is like this:
@ -105,15 +113,37 @@ func (Block_BlockType) EnumDescriptor() ([]byte, []int) { return fileDescriptor2
// detail.
type TextAnnotation struct {
// List of pages detected by OCR.
Pages []*Page `protobuf:"bytes,1,rep,name=pages" json:"pages,omitempty"`
Pages []*Page `protobuf:"bytes,1,rep,name=pages,proto3" json:"pages,omitempty"`
// UTF-8 text detected on the pages.
Text string `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"`
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextAnnotation) Reset() { *m = TextAnnotation{} }
func (m *TextAnnotation) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation) ProtoMessage() {}
func (*TextAnnotation) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
func (m *TextAnnotation) Reset() { *m = TextAnnotation{} }
func (m *TextAnnotation) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation) ProtoMessage() {}
func (*TextAnnotation) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_8d9193533acd557d, []int{0}
}
func (m *TextAnnotation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextAnnotation.Unmarshal(m, b)
}
func (m *TextAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextAnnotation.Marshal(b, m, deterministic)
}
func (dst *TextAnnotation) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextAnnotation.Merge(dst, src)
}
func (m *TextAnnotation) XXX_Size() int {
return xxx_messageInfo_TextAnnotation.Size(m)
}
func (m *TextAnnotation) XXX_DiscardUnknown() {
xxx_messageInfo_TextAnnotation.DiscardUnknown(m)
}
var xxx_messageInfo_TextAnnotation proto.InternalMessageInfo
func (m *TextAnnotation) GetPages() []*Page {
if m != nil {
@ -134,17 +164,37 @@ type TextAnnotation_DetectedLanguage struct {
// The BCP-47 language code, such as "en-US" or "sr-Latn". For more
// information, see
// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode" json:"language_code,omitempty"`
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// Confidence of detected language. Range [0, 1].
Confidence float32 `protobuf:"fixed32,2,opt,name=confidence" json:"confidence,omitempty"`
Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextAnnotation_DetectedLanguage) Reset() { *m = TextAnnotation_DetectedLanguage{} }
func (m *TextAnnotation_DetectedLanguage) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation_DetectedLanguage) ProtoMessage() {}
func (*TextAnnotation_DetectedLanguage) Descriptor() ([]byte, []int) {
return fileDescriptor2, []int{0, 0}
return fileDescriptor_text_annotation_8d9193533acd557d, []int{0, 0}
}
func (m *TextAnnotation_DetectedLanguage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Unmarshal(m, b)
}
func (m *TextAnnotation_DetectedLanguage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Marshal(b, m, deterministic)
}
func (dst *TextAnnotation_DetectedLanguage) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextAnnotation_DetectedLanguage.Merge(dst, src)
}
func (m *TextAnnotation_DetectedLanguage) XXX_Size() int {
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Size(m)
}
func (m *TextAnnotation_DetectedLanguage) XXX_DiscardUnknown() {
xxx_messageInfo_TextAnnotation_DetectedLanguage.DiscardUnknown(m)
}
var xxx_messageInfo_TextAnnotation_DetectedLanguage proto.InternalMessageInfo
func (m *TextAnnotation_DetectedLanguage) GetLanguageCode() string {
if m != nil {
@ -163,15 +213,37 @@ func (m *TextAnnotation_DetectedLanguage) GetConfidence() float32 {
// Detected start or end of a structural component.
type TextAnnotation_DetectedBreak struct {
// Detected break type.
Type TextAnnotation_DetectedBreak_BreakType `protobuf:"varint,1,opt,name=type,enum=google.cloud.vision.v1p2beta1.TextAnnotation_DetectedBreak_BreakType" json:"type,omitempty"`
Type TextAnnotation_DetectedBreak_BreakType `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.vision.v1p2beta1.TextAnnotation_DetectedBreak_BreakType" json:"type,omitempty"`
// True if break prepends the element.
IsPrefix bool `protobuf:"varint,2,opt,name=is_prefix,json=isPrefix" json:"is_prefix,omitempty"`
IsPrefix bool `protobuf:"varint,2,opt,name=is_prefix,json=isPrefix,proto3" json:"is_prefix,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextAnnotation_DetectedBreak) Reset() { *m = TextAnnotation_DetectedBreak{} }
func (m *TextAnnotation_DetectedBreak) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation_DetectedBreak) ProtoMessage() {}
func (*TextAnnotation_DetectedBreak) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 1} }
func (m *TextAnnotation_DetectedBreak) Reset() { *m = TextAnnotation_DetectedBreak{} }
func (m *TextAnnotation_DetectedBreak) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation_DetectedBreak) ProtoMessage() {}
func (*TextAnnotation_DetectedBreak) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_8d9193533acd557d, []int{0, 1}
}
func (m *TextAnnotation_DetectedBreak) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextAnnotation_DetectedBreak.Unmarshal(m, b)
}
func (m *TextAnnotation_DetectedBreak) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextAnnotation_DetectedBreak.Marshal(b, m, deterministic)
}
func (dst *TextAnnotation_DetectedBreak) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextAnnotation_DetectedBreak.Merge(dst, src)
}
func (m *TextAnnotation_DetectedBreak) XXX_Size() int {
return xxx_messageInfo_TextAnnotation_DetectedBreak.Size(m)
}
func (m *TextAnnotation_DetectedBreak) XXX_DiscardUnknown() {
xxx_messageInfo_TextAnnotation_DetectedBreak.DiscardUnknown(m)
}
var xxx_messageInfo_TextAnnotation_DetectedBreak proto.InternalMessageInfo
func (m *TextAnnotation_DetectedBreak) GetType() TextAnnotation_DetectedBreak_BreakType {
if m != nil {
@ -190,15 +262,37 @@ func (m *TextAnnotation_DetectedBreak) GetIsPrefix() bool {
// Additional information detected on the structural component.
type TextAnnotation_TextProperty struct {
// A list of detected languages together with confidence.
DetectedLanguages []*TextAnnotation_DetectedLanguage `protobuf:"bytes,1,rep,name=detected_languages,json=detectedLanguages" json:"detected_languages,omitempty"`
DetectedLanguages []*TextAnnotation_DetectedLanguage `protobuf:"bytes,1,rep,name=detected_languages,json=detectedLanguages,proto3" json:"detected_languages,omitempty"`
// Detected start or end of a text segment.
DetectedBreak *TextAnnotation_DetectedBreak `protobuf:"bytes,2,opt,name=detected_break,json=detectedBreak" json:"detected_break,omitempty"`
DetectedBreak *TextAnnotation_DetectedBreak `protobuf:"bytes,2,opt,name=detected_break,json=detectedBreak,proto3" json:"detected_break,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextAnnotation_TextProperty) Reset() { *m = TextAnnotation_TextProperty{} }
func (m *TextAnnotation_TextProperty) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation_TextProperty) ProtoMessage() {}
func (*TextAnnotation_TextProperty) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 2} }
func (m *TextAnnotation_TextProperty) Reset() { *m = TextAnnotation_TextProperty{} }
func (m *TextAnnotation_TextProperty) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation_TextProperty) ProtoMessage() {}
func (*TextAnnotation_TextProperty) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_8d9193533acd557d, []int{0, 2}
}
func (m *TextAnnotation_TextProperty) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextAnnotation_TextProperty.Unmarshal(m, b)
}
func (m *TextAnnotation_TextProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextAnnotation_TextProperty.Marshal(b, m, deterministic)
}
func (dst *TextAnnotation_TextProperty) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextAnnotation_TextProperty.Merge(dst, src)
}
func (m *TextAnnotation_TextProperty) XXX_Size() int {
return xxx_messageInfo_TextAnnotation_TextProperty.Size(m)
}
func (m *TextAnnotation_TextProperty) XXX_DiscardUnknown() {
xxx_messageInfo_TextAnnotation_TextProperty.DiscardUnknown(m)
}
var xxx_messageInfo_TextAnnotation_TextProperty proto.InternalMessageInfo
func (m *TextAnnotation_TextProperty) GetDetectedLanguages() []*TextAnnotation_DetectedLanguage {
if m != nil {
@ -217,23 +311,45 @@ func (m *TextAnnotation_TextProperty) GetDetectedBreak() *TextAnnotation_Detecte
// Detected page from OCR.
type Page struct {
// Additional information detected on the page.
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
// Page width. For PDFs the unit is points. For images (including
// TIFFs) the unit is pixels.
Width int32 `protobuf:"varint,2,opt,name=width" json:"width,omitempty"`
Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"`
// Page height. For PDFs the unit is points. For images (including
// TIFFs) the unit is pixels.
Height int32 `protobuf:"varint,3,opt,name=height" json:"height,omitempty"`
Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
// List of blocks of text, images etc on this page.
Blocks []*Block `protobuf:"bytes,4,rep,name=blocks" json:"blocks,omitempty"`
Blocks []*Block `protobuf:"bytes,4,rep,name=blocks,proto3" json:"blocks,omitempty"`
// Confidence of the OCR results on the page. Range [0, 1].
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence" json:"confidence,omitempty"`
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Page) Reset() { *m = Page{} }
func (m *Page) String() string { return proto.CompactTextString(m) }
func (*Page) ProtoMessage() {}
func (*Page) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
func (m *Page) Reset() { *m = Page{} }
func (m *Page) String() string { return proto.CompactTextString(m) }
func (*Page) ProtoMessage() {}
func (*Page) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_8d9193533acd557d, []int{1}
}
func (m *Page) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Page.Unmarshal(m, b)
}
func (m *Page) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Page.Marshal(b, m, deterministic)
}
func (dst *Page) XXX_Merge(src proto.Message) {
xxx_messageInfo_Page.Merge(dst, src)
}
func (m *Page) XXX_Size() int {
return xxx_messageInfo_Page.Size(m)
}
func (m *Page) XXX_DiscardUnknown() {
xxx_messageInfo_Page.DiscardUnknown(m)
}
var xxx_messageInfo_Page proto.InternalMessageInfo
func (m *Page) GetProperty() *TextAnnotation_TextProperty {
if m != nil {
@ -273,7 +389,7 @@ func (m *Page) GetConfidence() float32 {
// Logical element on the page.
type Block struct {
// Additional information detected for the block.
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
// The bounding box for the block.
// The vertices are in the order of top-left, top-right, bottom-right,
// bottom-left. When a rotation of the bounding box is detected the rotation
@ -294,19 +410,41 @@ type Block struct {
// 1----0
//
// and the vertice order will still be (0, 1, 2, 3).
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
// List of paragraphs in this block (if this blocks is of type text).
Paragraphs []*Paragraph `protobuf:"bytes,3,rep,name=paragraphs" json:"paragraphs,omitempty"`
Paragraphs []*Paragraph `protobuf:"bytes,3,rep,name=paragraphs,proto3" json:"paragraphs,omitempty"`
// Detected block type (text, image etc) for this block.
BlockType Block_BlockType `protobuf:"varint,4,opt,name=block_type,json=blockType,enum=google.cloud.vision.v1p2beta1.Block_BlockType" json:"block_type,omitempty"`
BlockType Block_BlockType `protobuf:"varint,4,opt,name=block_type,json=blockType,proto3,enum=google.cloud.vision.v1p2beta1.Block_BlockType" json:"block_type,omitempty"`
// Confidence of the OCR results on the block. Range [0, 1].
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence" json:"confidence,omitempty"`
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Block) Reset() { *m = Block{} }
func (m *Block) String() string { return proto.CompactTextString(m) }
func (*Block) ProtoMessage() {}
func (*Block) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
func (m *Block) Reset() { *m = Block{} }
func (m *Block) String() string { return proto.CompactTextString(m) }
func (*Block) ProtoMessage() {}
func (*Block) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_8d9193533acd557d, []int{2}
}
func (m *Block) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Block.Unmarshal(m, b)
}
func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Block.Marshal(b, m, deterministic)
}
func (dst *Block) XXX_Merge(src proto.Message) {
xxx_messageInfo_Block.Merge(dst, src)
}
func (m *Block) XXX_Size() int {
return xxx_messageInfo_Block.Size(m)
}
func (m *Block) XXX_DiscardUnknown() {
xxx_messageInfo_Block.DiscardUnknown(m)
}
var xxx_messageInfo_Block proto.InternalMessageInfo
func (m *Block) GetProperty() *TextAnnotation_TextProperty {
if m != nil {
@ -346,7 +484,7 @@ func (m *Block) GetConfidence() float32 {
// Structural unit of text representing a number of words in certain order.
type Paragraph struct {
// Additional information detected for the paragraph.
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
// The bounding box for the paragraph.
// The vertices are in the order of top-left, top-right, bottom-right,
// bottom-left. When a rotation of the bounding box is detected the rotation
@ -362,17 +500,39 @@ type Paragraph struct {
// | |
// 1----0
// and the vertice order will still be (0, 1, 2, 3).
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
// List of words in this paragraph.
Words []*Word `protobuf:"bytes,3,rep,name=words" json:"words,omitempty"`
Words []*Word `protobuf:"bytes,3,rep,name=words,proto3" json:"words,omitempty"`
// Confidence of the OCR results for the paragraph. Range [0, 1].
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence" json:"confidence,omitempty"`
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Paragraph) Reset() { *m = Paragraph{} }
func (m *Paragraph) String() string { return proto.CompactTextString(m) }
func (*Paragraph) ProtoMessage() {}
func (*Paragraph) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
func (m *Paragraph) Reset() { *m = Paragraph{} }
func (m *Paragraph) String() string { return proto.CompactTextString(m) }
func (*Paragraph) ProtoMessage() {}
func (*Paragraph) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_8d9193533acd557d, []int{3}
}
func (m *Paragraph) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Paragraph.Unmarshal(m, b)
}
func (m *Paragraph) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Paragraph.Marshal(b, m, deterministic)
}
func (dst *Paragraph) XXX_Merge(src proto.Message) {
xxx_messageInfo_Paragraph.Merge(dst, src)
}
func (m *Paragraph) XXX_Size() int {
return xxx_messageInfo_Paragraph.Size(m)
}
func (m *Paragraph) XXX_DiscardUnknown() {
xxx_messageInfo_Paragraph.DiscardUnknown(m)
}
var xxx_messageInfo_Paragraph proto.InternalMessageInfo
func (m *Paragraph) GetProperty() *TextAnnotation_TextProperty {
if m != nil {
@ -405,7 +565,7 @@ func (m *Paragraph) GetConfidence() float32 {
// A word representation.
type Word struct {
// Additional information detected for the word.
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
// The bounding box for the word.
// The vertices are in the order of top-left, top-right, bottom-right,
// bottom-left. When a rotation of the bounding box is detected the rotation
@ -421,18 +581,40 @@ type Word struct {
// | |
// 1----0
// and the vertice order will still be (0, 1, 2, 3).
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
// List of symbols in the word.
// The order of the symbols follows the natural reading order.
Symbols []*Symbol `protobuf:"bytes,3,rep,name=symbols" json:"symbols,omitempty"`
Symbols []*Symbol `protobuf:"bytes,3,rep,name=symbols,proto3" json:"symbols,omitempty"`
// Confidence of the OCR results for the word. Range [0, 1].
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence" json:"confidence,omitempty"`
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Word) Reset() { *m = Word{} }
func (m *Word) String() string { return proto.CompactTextString(m) }
func (*Word) ProtoMessage() {}
func (*Word) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} }
func (m *Word) Reset() { *m = Word{} }
func (m *Word) String() string { return proto.CompactTextString(m) }
func (*Word) ProtoMessage() {}
func (*Word) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_8d9193533acd557d, []int{4}
}
func (m *Word) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Word.Unmarshal(m, b)
}
func (m *Word) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Word.Marshal(b, m, deterministic)
}
func (dst *Word) XXX_Merge(src proto.Message) {
xxx_messageInfo_Word.Merge(dst, src)
}
func (m *Word) XXX_Size() int {
return xxx_messageInfo_Word.Size(m)
}
func (m *Word) XXX_DiscardUnknown() {
xxx_messageInfo_Word.DiscardUnknown(m)
}
var xxx_messageInfo_Word proto.InternalMessageInfo
func (m *Word) GetProperty() *TextAnnotation_TextProperty {
if m != nil {
@ -465,7 +647,7 @@ func (m *Word) GetConfidence() float32 {
// A single symbol representation.
type Symbol struct {
// Additional information detected for the symbol.
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
// The bounding box for the symbol.
// The vertices are in the order of top-left, top-right, bottom-right,
// bottom-left. When a rotation of the bounding box is detected the rotation
@ -481,17 +663,39 @@ type Symbol struct {
// | |
// 1----0
// and the vertice order will still be (0, 1, 2, 3).
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
// The actual UTF-8 representation of the symbol.
Text string `protobuf:"bytes,3,opt,name=text" json:"text,omitempty"`
Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
// Confidence of the OCR results for the symbol. Range [0, 1].
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence" json:"confidence,omitempty"`
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Symbol) Reset() { *m = Symbol{} }
func (m *Symbol) String() string { return proto.CompactTextString(m) }
func (*Symbol) ProtoMessage() {}
func (*Symbol) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} }
func (m *Symbol) Reset() { *m = Symbol{} }
func (m *Symbol) String() string { return proto.CompactTextString(m) }
func (*Symbol) ProtoMessage() {}
func (*Symbol) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_8d9193533acd557d, []int{5}
}
func (m *Symbol) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Symbol.Unmarshal(m, b)
}
func (m *Symbol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Symbol.Marshal(b, m, deterministic)
}
func (dst *Symbol) XXX_Merge(src proto.Message) {
xxx_messageInfo_Symbol.Merge(dst, src)
}
func (m *Symbol) XXX_Size() int {
return xxx_messageInfo_Symbol.Size(m)
}
func (m *Symbol) XXX_DiscardUnknown() {
xxx_messageInfo_Symbol.DiscardUnknown(m)
}
var xxx_messageInfo_Symbol proto.InternalMessageInfo
func (m *Symbol) GetProperty() *TextAnnotation_TextProperty {
if m != nil {
@ -536,10 +740,10 @@ func init() {
}
func init() {
proto.RegisterFile("google/cloud/vision/v1p2beta1/text_annotation.proto", fileDescriptor2)
proto.RegisterFile("google/cloud/vision/v1p2beta1/text_annotation.proto", fileDescriptor_text_annotation_8d9193533acd557d)
}
var fileDescriptor2 = []byte{
var fileDescriptor_text_annotation_8d9193533acd557d = []byte{
// 774 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x56, 0x4f, 0x6f, 0xd3, 0x48,
0x14, 0x5f, 0x27, 0x76, 0x1a, 0xbf, 0xb4, 0x91, 0x77, 0x76, 0xb5, 0x8a, 0xb2, 0xbb, 0xa8, 0xa4,

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/vision/v1p2beta1/web_detection.proto
package vision
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -13,30 +13,57 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Relevant information for the image from the Internet.
type WebDetection struct {
// Deduced entities from similar images on the Internet.
WebEntities []*WebDetection_WebEntity `protobuf:"bytes,1,rep,name=web_entities,json=webEntities" json:"web_entities,omitempty"`
WebEntities []*WebDetection_WebEntity `protobuf:"bytes,1,rep,name=web_entities,json=webEntities,proto3" json:"web_entities,omitempty"`
// Fully matching images from the Internet.
// Can include resized copies of the query image.
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,2,rep,name=full_matching_images,json=fullMatchingImages" json:"full_matching_images,omitempty"`
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,2,rep,name=full_matching_images,json=fullMatchingImages,proto3" json:"full_matching_images,omitempty"`
// Partial matching images from the Internet.
// Those images are similar enough to share some key-point features. For
// example an original image will likely have partial matching for its crops.
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,3,rep,name=partial_matching_images,json=partialMatchingImages" json:"partial_matching_images,omitempty"`
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,3,rep,name=partial_matching_images,json=partialMatchingImages,proto3" json:"partial_matching_images,omitempty"`
// Web pages containing the matching images from the Internet.
PagesWithMatchingImages []*WebDetection_WebPage `protobuf:"bytes,4,rep,name=pages_with_matching_images,json=pagesWithMatchingImages" json:"pages_with_matching_images,omitempty"`
PagesWithMatchingImages []*WebDetection_WebPage `protobuf:"bytes,4,rep,name=pages_with_matching_images,json=pagesWithMatchingImages,proto3" json:"pages_with_matching_images,omitempty"`
// The visually similar image results.
VisuallySimilarImages []*WebDetection_WebImage `protobuf:"bytes,6,rep,name=visually_similar_images,json=visuallySimilarImages" json:"visually_similar_images,omitempty"`
// The service's best guess as to the topic of the request image.
// Inferred from similar images on the open web.
BestGuessLabels []*WebDetection_WebLabel `protobuf:"bytes,8,rep,name=best_guess_labels,json=bestGuessLabels" json:"best_guess_labels,omitempty"`
VisuallySimilarImages []*WebDetection_WebImage `protobuf:"bytes,6,rep,name=visually_similar_images,json=visuallySimilarImages,proto3" json:"visually_similar_images,omitempty"`
// Best guess text labels for the request image.
BestGuessLabels []*WebDetection_WebLabel `protobuf:"bytes,8,rep,name=best_guess_labels,json=bestGuessLabels,proto3" json:"best_guess_labels,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebDetection) Reset() { *m = WebDetection{} }
func (m *WebDetection) String() string { return proto.CompactTextString(m) }
func (*WebDetection) ProtoMessage() {}
func (*WebDetection) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
func (m *WebDetection) Reset() { *m = WebDetection{} }
func (m *WebDetection) String() string { return proto.CompactTextString(m) }
func (*WebDetection) ProtoMessage() {}
func (*WebDetection) Descriptor() ([]byte, []int) {
return fileDescriptor_web_detection_cbb14b20b0012343, []int{0}
}
func (m *WebDetection) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebDetection.Unmarshal(m, b)
}
func (m *WebDetection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebDetection.Marshal(b, m, deterministic)
}
func (dst *WebDetection) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebDetection.Merge(dst, src)
}
func (m *WebDetection) XXX_Size() int {
return xxx_messageInfo_WebDetection.Size(m)
}
func (m *WebDetection) XXX_DiscardUnknown() {
xxx_messageInfo_WebDetection.DiscardUnknown(m)
}
var xxx_messageInfo_WebDetection proto.InternalMessageInfo
func (m *WebDetection) GetWebEntities() []*WebDetection_WebEntity {
if m != nil {
@ -83,18 +110,40 @@ func (m *WebDetection) GetBestGuessLabels() []*WebDetection_WebLabel {
// Entity deduced from similar images on the Internet.
type WebDetection_WebEntity struct {
// Opaque entity ID.
EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId" json:"entity_id,omitempty"`
EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
// Overall relevancy score for the entity.
// Not normalized and not comparable across different image queries.
Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
// Canonical description of the entity, in English.
Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebDetection_WebEntity) Reset() { *m = WebDetection_WebEntity{} }
func (m *WebDetection_WebEntity) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebEntity) ProtoMessage() {}
func (*WebDetection_WebEntity) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 0} }
func (m *WebDetection_WebEntity) Reset() { *m = WebDetection_WebEntity{} }
func (m *WebDetection_WebEntity) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebEntity) ProtoMessage() {}
func (*WebDetection_WebEntity) Descriptor() ([]byte, []int) {
return fileDescriptor_web_detection_cbb14b20b0012343, []int{0, 0}
}
func (m *WebDetection_WebEntity) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebDetection_WebEntity.Unmarshal(m, b)
}
func (m *WebDetection_WebEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebDetection_WebEntity.Marshal(b, m, deterministic)
}
func (dst *WebDetection_WebEntity) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebDetection_WebEntity.Merge(dst, src)
}
func (m *WebDetection_WebEntity) XXX_Size() int {
return xxx_messageInfo_WebDetection_WebEntity.Size(m)
}
func (m *WebDetection_WebEntity) XXX_DiscardUnknown() {
xxx_messageInfo_WebDetection_WebEntity.DiscardUnknown(m)
}
var xxx_messageInfo_WebDetection_WebEntity proto.InternalMessageInfo
func (m *WebDetection_WebEntity) GetEntityId() string {
if m != nil {
@ -120,15 +169,37 @@ func (m *WebDetection_WebEntity) GetDescription() string {
// Metadata for online images.
type WebDetection_WebImage struct {
// The result image URL.
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// (Deprecated) Overall relevancy score for the image.
Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebDetection_WebImage) Reset() { *m = WebDetection_WebImage{} }
func (m *WebDetection_WebImage) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebImage) ProtoMessage() {}
func (*WebDetection_WebImage) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 1} }
func (m *WebDetection_WebImage) Reset() { *m = WebDetection_WebImage{} }
func (m *WebDetection_WebImage) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebImage) ProtoMessage() {}
func (*WebDetection_WebImage) Descriptor() ([]byte, []int) {
return fileDescriptor_web_detection_cbb14b20b0012343, []int{0, 1}
}
func (m *WebDetection_WebImage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebDetection_WebImage.Unmarshal(m, b)
}
func (m *WebDetection_WebImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebDetection_WebImage.Marshal(b, m, deterministic)
}
func (dst *WebDetection_WebImage) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebDetection_WebImage.Merge(dst, src)
}
func (m *WebDetection_WebImage) XXX_Size() int {
return xxx_messageInfo_WebDetection_WebImage.Size(m)
}
func (m *WebDetection_WebImage) XXX_DiscardUnknown() {
xxx_messageInfo_WebDetection_WebImage.DiscardUnknown(m)
}
var xxx_messageInfo_WebDetection_WebImage proto.InternalMessageInfo
func (m *WebDetection_WebImage) GetUrl() string {
if m != nil {
@ -147,25 +218,47 @@ func (m *WebDetection_WebImage) GetScore() float32 {
// Metadata for web pages.
type WebDetection_WebPage struct {
// The result web page URL.
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// (Deprecated) Overall relevancy score for the web page.
Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
// Title for the web page, may contain HTML markups.
PageTitle string `protobuf:"bytes,3,opt,name=page_title,json=pageTitle" json:"page_title,omitempty"`
PageTitle string `protobuf:"bytes,3,opt,name=page_title,json=pageTitle,proto3" json:"page_title,omitempty"`
// Fully matching images on the page.
// Can include resized copies of the query image.
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,4,rep,name=full_matching_images,json=fullMatchingImages" json:"full_matching_images,omitempty"`
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,4,rep,name=full_matching_images,json=fullMatchingImages,proto3" json:"full_matching_images,omitempty"`
// Partial matching images on the page.
// Those images are similar enough to share some key-point features. For
// example an original image will likely have partial matching for its
// crops.
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,5,rep,name=partial_matching_images,json=partialMatchingImages" json:"partial_matching_images,omitempty"`
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,5,rep,name=partial_matching_images,json=partialMatchingImages,proto3" json:"partial_matching_images,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebDetection_WebPage) Reset() { *m = WebDetection_WebPage{} }
func (m *WebDetection_WebPage) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebPage) ProtoMessage() {}
func (*WebDetection_WebPage) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 2} }
func (m *WebDetection_WebPage) Reset() { *m = WebDetection_WebPage{} }
func (m *WebDetection_WebPage) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebPage) ProtoMessage() {}
func (*WebDetection_WebPage) Descriptor() ([]byte, []int) {
return fileDescriptor_web_detection_cbb14b20b0012343, []int{0, 2}
}
func (m *WebDetection_WebPage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebDetection_WebPage.Unmarshal(m, b)
}
func (m *WebDetection_WebPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebDetection_WebPage.Marshal(b, m, deterministic)
}
func (dst *WebDetection_WebPage) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebDetection_WebPage.Merge(dst, src)
}
func (m *WebDetection_WebPage) XXX_Size() int {
return xxx_messageInfo_WebDetection_WebPage.Size(m)
}
func (m *WebDetection_WebPage) XXX_DiscardUnknown() {
xxx_messageInfo_WebDetection_WebPage.DiscardUnknown(m)
}
var xxx_messageInfo_WebDetection_WebPage proto.InternalMessageInfo
func (m *WebDetection_WebPage) GetUrl() string {
if m != nil {
@ -205,17 +298,39 @@ func (m *WebDetection_WebPage) GetPartialMatchingImages() []*WebDetection_WebIma
// Label to provide extra metadata for the web detection.
type WebDetection_WebLabel struct {
// Label for extra metadata.
Label string `protobuf:"bytes,1,opt,name=label" json:"label,omitempty"`
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
// The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
// For more information, see
// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode" json:"language_code,omitempty"`
LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebDetection_WebLabel) Reset() { *m = WebDetection_WebLabel{} }
func (m *WebDetection_WebLabel) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebLabel) ProtoMessage() {}
func (*WebDetection_WebLabel) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 3} }
func (m *WebDetection_WebLabel) Reset() { *m = WebDetection_WebLabel{} }
func (m *WebDetection_WebLabel) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebLabel) ProtoMessage() {}
func (*WebDetection_WebLabel) Descriptor() ([]byte, []int) {
return fileDescriptor_web_detection_cbb14b20b0012343, []int{0, 3}
}
func (m *WebDetection_WebLabel) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebDetection_WebLabel.Unmarshal(m, b)
}
func (m *WebDetection_WebLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebDetection_WebLabel.Marshal(b, m, deterministic)
}
func (dst *WebDetection_WebLabel) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebDetection_WebLabel.Merge(dst, src)
}
func (m *WebDetection_WebLabel) XXX_Size() int {
return xxx_messageInfo_WebDetection_WebLabel.Size(m)
}
func (m *WebDetection_WebLabel) XXX_DiscardUnknown() {
xxx_messageInfo_WebDetection_WebLabel.DiscardUnknown(m)
}
var xxx_messageInfo_WebDetection_WebLabel proto.InternalMessageInfo
func (m *WebDetection_WebLabel) GetLabel() string {
if m != nil {
@ -239,9 +354,11 @@ func init() {
proto.RegisterType((*WebDetection_WebLabel)(nil), "google.cloud.vision.v1p2beta1.WebDetection.WebLabel")
}
func init() { proto.RegisterFile("google/cloud/vision/v1p2beta1/web_detection.proto", fileDescriptor3) }
func init() {
proto.RegisterFile("google/cloud/vision/v1p2beta1/web_detection.proto", fileDescriptor_web_detection_cbb14b20b0012343)
}
var fileDescriptor3 = []byte{
var fileDescriptor_web_detection_cbb14b20b0012343 = []byte{
// 511 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0x4f, 0x6f, 0xd3, 0x30,
0x18, 0xc6, 0x95, 0x76, 0x1b, 0x8d, 0x5b, 0x04, 0xb3, 0x86, 0x16, 0x05, 0x26, 0x15, 0xb8, 0xf4,

View File

@ -0,0 +1,306 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/vision/v1p3beta1/geometry.proto
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// A vertex represents a 2D point in the image.
// NOTE: the vertex coordinates are in the same scale as the original image.
type Vertex struct {
// X coordinate.
X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
// Y coordinate.
Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Vertex) Reset() { *m = Vertex{} }
func (m *Vertex) String() string { return proto.CompactTextString(m) }
func (*Vertex) ProtoMessage() {}
func (*Vertex) Descriptor() ([]byte, []int) {
return fileDescriptor_geometry_af1b507a20494236, []int{0}
}
func (m *Vertex) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Vertex.Unmarshal(m, b)
}
func (m *Vertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Vertex.Marshal(b, m, deterministic)
}
func (dst *Vertex) XXX_Merge(src proto.Message) {
xxx_messageInfo_Vertex.Merge(dst, src)
}
func (m *Vertex) XXX_Size() int {
return xxx_messageInfo_Vertex.Size(m)
}
func (m *Vertex) XXX_DiscardUnknown() {
xxx_messageInfo_Vertex.DiscardUnknown(m)
}
var xxx_messageInfo_Vertex proto.InternalMessageInfo
func (m *Vertex) GetX() int32 {
if m != nil {
return m.X
}
return 0
}
func (m *Vertex) GetY() int32 {
if m != nil {
return m.Y
}
return 0
}
// A vertex represents a 2D point in the image.
// NOTE: the normalized vertex coordinates are relative to the original image
// and range from 0 to 1.
type NormalizedVertex struct {
// X coordinate.
X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
// Y coordinate.
Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NormalizedVertex) Reset() { *m = NormalizedVertex{} }
func (m *NormalizedVertex) String() string { return proto.CompactTextString(m) }
func (*NormalizedVertex) ProtoMessage() {}
func (*NormalizedVertex) Descriptor() ([]byte, []int) {
return fileDescriptor_geometry_af1b507a20494236, []int{1}
}
func (m *NormalizedVertex) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NormalizedVertex.Unmarshal(m, b)
}
func (m *NormalizedVertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NormalizedVertex.Marshal(b, m, deterministic)
}
func (dst *NormalizedVertex) XXX_Merge(src proto.Message) {
xxx_messageInfo_NormalizedVertex.Merge(dst, src)
}
func (m *NormalizedVertex) XXX_Size() int {
return xxx_messageInfo_NormalizedVertex.Size(m)
}
func (m *NormalizedVertex) XXX_DiscardUnknown() {
xxx_messageInfo_NormalizedVertex.DiscardUnknown(m)
}
var xxx_messageInfo_NormalizedVertex proto.InternalMessageInfo
func (m *NormalizedVertex) GetX() float32 {
if m != nil {
return m.X
}
return 0
}
func (m *NormalizedVertex) GetY() float32 {
if m != nil {
return m.Y
}
return 0
}
// A bounding polygon for the detected image annotation.
type BoundingPoly struct {
// The bounding polygon vertices.
Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
// The bounding polygon normalized vertices.
NormalizedVertices []*NormalizedVertex `protobuf:"bytes,2,rep,name=normalized_vertices,json=normalizedVertices,proto3" json:"normalized_vertices,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BoundingPoly) Reset() { *m = BoundingPoly{} }
func (m *BoundingPoly) String() string { return proto.CompactTextString(m) }
func (*BoundingPoly) ProtoMessage() {}
func (*BoundingPoly) Descriptor() ([]byte, []int) {
return fileDescriptor_geometry_af1b507a20494236, []int{2}
}
func (m *BoundingPoly) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BoundingPoly.Unmarshal(m, b)
}
func (m *BoundingPoly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BoundingPoly.Marshal(b, m, deterministic)
}
func (dst *BoundingPoly) XXX_Merge(src proto.Message) {
xxx_messageInfo_BoundingPoly.Merge(dst, src)
}
func (m *BoundingPoly) XXX_Size() int {
return xxx_messageInfo_BoundingPoly.Size(m)
}
func (m *BoundingPoly) XXX_DiscardUnknown() {
xxx_messageInfo_BoundingPoly.DiscardUnknown(m)
}
var xxx_messageInfo_BoundingPoly proto.InternalMessageInfo
func (m *BoundingPoly) GetVertices() []*Vertex {
if m != nil {
return m.Vertices
}
return nil
}
func (m *BoundingPoly) GetNormalizedVertices() []*NormalizedVertex {
if m != nil {
return m.NormalizedVertices
}
return nil
}
// A normalized bounding polygon around a portion of an image.
type NormalizedBoundingPoly struct {
// Normalized vertices of the bounding polygon.
Vertices []*NormalizedVertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NormalizedBoundingPoly) Reset() { *m = NormalizedBoundingPoly{} }
func (m *NormalizedBoundingPoly) String() string { return proto.CompactTextString(m) }
func (*NormalizedBoundingPoly) ProtoMessage() {}
func (*NormalizedBoundingPoly) Descriptor() ([]byte, []int) {
return fileDescriptor_geometry_af1b507a20494236, []int{3}
}
func (m *NormalizedBoundingPoly) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NormalizedBoundingPoly.Unmarshal(m, b)
}
func (m *NormalizedBoundingPoly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NormalizedBoundingPoly.Marshal(b, m, deterministic)
}
func (dst *NormalizedBoundingPoly) XXX_Merge(src proto.Message) {
xxx_messageInfo_NormalizedBoundingPoly.Merge(dst, src)
}
func (m *NormalizedBoundingPoly) XXX_Size() int {
return xxx_messageInfo_NormalizedBoundingPoly.Size(m)
}
func (m *NormalizedBoundingPoly) XXX_DiscardUnknown() {
xxx_messageInfo_NormalizedBoundingPoly.DiscardUnknown(m)
}
var xxx_messageInfo_NormalizedBoundingPoly proto.InternalMessageInfo
func (m *NormalizedBoundingPoly) GetVertices() []*NormalizedVertex {
if m != nil {
return m.Vertices
}
return nil
}
// A 3D position in the image, used primarily for Face detection landmarks.
// A valid Position must have both x and y coordinates.
// The position coordinates are in the same scale as the original image.
type Position struct {
// X coordinate.
X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
// Y coordinate.
Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
// Z coordinate (or depth).
Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Position) Reset() { *m = Position{} }
func (m *Position) String() string { return proto.CompactTextString(m) }
func (*Position) ProtoMessage() {}
func (*Position) Descriptor() ([]byte, []int) {
return fileDescriptor_geometry_af1b507a20494236, []int{4}
}
func (m *Position) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Position.Unmarshal(m, b)
}
func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Position.Marshal(b, m, deterministic)
}
func (dst *Position) XXX_Merge(src proto.Message) {
xxx_messageInfo_Position.Merge(dst, src)
}
func (m *Position) XXX_Size() int {
return xxx_messageInfo_Position.Size(m)
}
func (m *Position) XXX_DiscardUnknown() {
xxx_messageInfo_Position.DiscardUnknown(m)
}
var xxx_messageInfo_Position proto.InternalMessageInfo
func (m *Position) GetX() float32 {
if m != nil {
return m.X
}
return 0
}
func (m *Position) GetY() float32 {
if m != nil {
return m.Y
}
return 0
}
func (m *Position) GetZ() float32 {
if m != nil {
return m.Z
}
return 0
}
func init() {
proto.RegisterType((*Vertex)(nil), "google.cloud.vision.v1p3beta1.Vertex")
proto.RegisterType((*NormalizedVertex)(nil), "google.cloud.vision.v1p3beta1.NormalizedVertex")
proto.RegisterType((*BoundingPoly)(nil), "google.cloud.vision.v1p3beta1.BoundingPoly")
proto.RegisterType((*NormalizedBoundingPoly)(nil), "google.cloud.vision.v1p3beta1.NormalizedBoundingPoly")
proto.RegisterType((*Position)(nil), "google.cloud.vision.v1p3beta1.Position")
}
func init() {
proto.RegisterFile("google/cloud/vision/v1p3beta1/geometry.proto", fileDescriptor_geometry_af1b507a20494236)
}
var fileDescriptor_geometry_af1b507a20494236 = []byte{
// 316 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xc1, 0x4b, 0xc3, 0x30,
0x14, 0xc6, 0x49, 0x87, 0x63, 0xc4, 0x09, 0x52, 0x41, 0x8a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, 0xe6, 0x34, 0x6e, 0xf4, 0x0f, 0xb7, 0xdd, 0xf4, 0xa1, 0xab, 0x7a, 0x95, 0xda, 0xca,
0xe7, 0xf8, 0xf8, 0x9b, 0xeb, 0xc5, 0x7f, 0xfc, 0x11, 0xff, 0xdf, 0x03, 0x3b, 0x03, 0xff, 0x06,
0x4f, 0x02, 0xc8, 0x65, 0xbd, 0x85, 0xa1, 0x4f, 0xac, 0x55, 0xe5, 0x8d, 0xac, 0xaa, 0x56, 0xef,
0xf8, 0x3c, 0x82, 0x74, 0x78, 0xea, 0xea, 0xe0, 0xa1, 0x3d, 0x8d, 0xa0, 0x5e, 0x6e, 0x80, 0x5e,
0xee, 0x5b, 0x5e, 0x40, 0xc2, 0x94, 0x20, 0xa0, 0x05, 0x15, 0x5c, 0x35, 0xab, 0xa7, 0xf6, 0x89,
0x65, 0x32, 0xff, 0xe5, 0xd0, 0x6e, 0x6d, 0xe1, 0x13, 0xa1, 0xf5, 0xb8, 0x69, 0x59, 0x7e, 0x05,
0x00, 0x00, 0xff, 0xff, 0x79, 0x59, 0xbf, 0x39, 0x9a, 0x02, 0x00, 0x00,
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,481 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/vision/v1p3beta1/product_search.proto
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Supported product search categories.
type ProductSearchCategory int32
const (
// Default value used when a category is not specified.
ProductSearchCategory_PRODUCT_SEARCH_CATEGORY_UNSPECIFIED ProductSearchCategory = 0
// Shoes category.
ProductSearchCategory_SHOES ProductSearchCategory = 1
// Bags category.
ProductSearchCategory_BAGS ProductSearchCategory = 2
)
var ProductSearchCategory_name = map[int32]string{
0: "PRODUCT_SEARCH_CATEGORY_UNSPECIFIED",
1: "SHOES",
2: "BAGS",
}
var ProductSearchCategory_value = map[string]int32{
"PRODUCT_SEARCH_CATEGORY_UNSPECIFIED": 0,
"SHOES": 1,
"BAGS": 2,
}
func (x ProductSearchCategory) String() string {
return proto.EnumName(ProductSearchCategory_name, int32(x))
}
func (ProductSearchCategory) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_product_search_5afe37c43a5f30cd, []int{0}
}
// Specifies the fields to include in product search results.
type ProductSearchResultsView int32
const (
// Product search results contain only `product_category` and `product_id`.
// Default value.
ProductSearchResultsView_BASIC ProductSearchResultsView = 0
// Product search results contain `product_category`, `product_id`,
// `image_uri`, and `score`.
ProductSearchResultsView_FULL ProductSearchResultsView = 1
)
var ProductSearchResultsView_name = map[int32]string{
0: "BASIC",
1: "FULL",
}
var ProductSearchResultsView_value = map[string]int32{
"BASIC": 0,
"FULL": 1,
}
func (x ProductSearchResultsView) String() string {
return proto.EnumName(ProductSearchResultsView_name, int32(x))
}
func (ProductSearchResultsView) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_product_search_5afe37c43a5f30cd, []int{1}
}
// Parameters for a product search request.
type ProductSearchParams struct {
// The resource name of the catalog to search.
//
// Format is: `productSearch/catalogs/CATALOG_NAME`.
CatalogName string `protobuf:"bytes,1,opt,name=catalog_name,json=catalogName,proto3" json:"catalog_name,omitempty"`
// The category to search in.
// Optional. It is inferred by the system if it is not specified.
// [Deprecated] Use `product_category`.
Category ProductSearchCategory `protobuf:"varint,2,opt,name=category,proto3,enum=google.cloud.vision.v1p3beta1.ProductSearchCategory" json:"category,omitempty"`
// The product category to search in.
// Optional. It is inferred by the system if it is not specified.
// Supported values are `bag`, `shoe`, `sunglasses`, `dress`, `outerwear`,
// `skirt`, `top`, `shorts`, and `pants`.
ProductCategory string `protobuf:"bytes,5,opt,name=product_category,json=productCategory,proto3" json:"product_category,omitempty"`
// The bounding polygon around the area of interest in the image.
// Optional. If it is not specified, system discretion will be applied.
// [Deprecated] Use `bounding_poly`.
NormalizedBoundingPoly *NormalizedBoundingPoly `protobuf:"bytes,3,opt,name=normalized_bounding_poly,json=normalizedBoundingPoly,proto3" json:"normalized_bounding_poly,omitempty"`
// The bounding polygon around the area of interest in the image.
// Optional. If it is not specified, system discretion will be applied.
BoundingPoly *BoundingPoly `protobuf:"bytes,9,opt,name=bounding_poly,json=boundingPoly,proto3" json:"bounding_poly,omitempty"`
// Specifies the verbosity of the product search results.
// Optional. Defaults to `BASIC`.
View ProductSearchResultsView `protobuf:"varint,4,opt,name=view,proto3,enum=google.cloud.vision.v1p3beta1.ProductSearchResultsView" json:"view,omitempty"`
// The resource name of a [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] to be searched for similar images.
//
// Format is:
// `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
ProductSet string `protobuf:"bytes,6,opt,name=product_set,json=productSet,proto3" json:"product_set,omitempty"`
// The list of product categories to search in. Currently, we only consider
// the first category, and either "homegoods" or "apparel" should be
// specified.
ProductCategories []string `protobuf:"bytes,7,rep,name=product_categories,json=productCategories,proto3" json:"product_categories,omitempty"`
// The filtering expression. This can be used to restrict search results based
// on Product labels. We currently support an AND of OR of key-value
// expressions, where each expression within an OR must have the same key.
//
// For example, "(color = red OR color = blue) AND brand = Google" is
// acceptable, but not "(color = red OR brand = Google)" or "color: red".
Filter string `protobuf:"bytes,8,opt,name=filter,proto3" json:"filter,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProductSearchParams) Reset() { *m = ProductSearchParams{} }
func (m *ProductSearchParams) String() string { return proto.CompactTextString(m) }
func (*ProductSearchParams) ProtoMessage() {}
func (*ProductSearchParams) Descriptor() ([]byte, []int) {
return fileDescriptor_product_search_5afe37c43a5f30cd, []int{0}
}
func (m *ProductSearchParams) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProductSearchParams.Unmarshal(m, b)
}
func (m *ProductSearchParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProductSearchParams.Marshal(b, m, deterministic)
}
func (dst *ProductSearchParams) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProductSearchParams.Merge(dst, src)
}
func (m *ProductSearchParams) XXX_Size() int {
return xxx_messageInfo_ProductSearchParams.Size(m)
}
func (m *ProductSearchParams) XXX_DiscardUnknown() {
xxx_messageInfo_ProductSearchParams.DiscardUnknown(m)
}
var xxx_messageInfo_ProductSearchParams proto.InternalMessageInfo
func (m *ProductSearchParams) GetCatalogName() string {
if m != nil {
return m.CatalogName
}
return ""
}
func (m *ProductSearchParams) GetCategory() ProductSearchCategory {
if m != nil {
return m.Category
}
return ProductSearchCategory_PRODUCT_SEARCH_CATEGORY_UNSPECIFIED
}
func (m *ProductSearchParams) GetProductCategory() string {
if m != nil {
return m.ProductCategory
}
return ""
}
func (m *ProductSearchParams) GetNormalizedBoundingPoly() *NormalizedBoundingPoly {
if m != nil {
return m.NormalizedBoundingPoly
}
return nil
}
func (m *ProductSearchParams) GetBoundingPoly() *BoundingPoly {
if m != nil {
return m.BoundingPoly
}
return nil
}
func (m *ProductSearchParams) GetView() ProductSearchResultsView {
if m != nil {
return m.View
}
return ProductSearchResultsView_BASIC
}
func (m *ProductSearchParams) GetProductSet() string {
if m != nil {
return m.ProductSet
}
return ""
}
func (m *ProductSearchParams) GetProductCategories() []string {
if m != nil {
return m.ProductCategories
}
return nil
}
func (m *ProductSearchParams) GetFilter() string {
if m != nil {
return m.Filter
}
return ""
}
// Results for a product search request.
type ProductSearchResults struct {
// Product category.
// [Deprecated] Use `product_category`.
Category ProductSearchCategory `protobuf:"varint,1,opt,name=category,proto3,enum=google.cloud.vision.v1p3beta1.ProductSearchCategory" json:"category,omitempty"`
// Product category.
// Supported values are `bag` and `shoe`.
// [Deprecated] `product_category` is provided in each Product.
ProductCategory string `protobuf:"bytes,4,opt,name=product_category,json=productCategory,proto3" json:"product_category,omitempty"`
// Timestamp of the index which provided these results. Changes made after
// this time are not reflected in the current results.
IndexTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=index_time,json=indexTime,proto3" json:"index_time,omitempty"`
// List of detected products.
Products []*ProductSearchResults_ProductInfo `protobuf:"bytes,3,rep,name=products,proto3" json:"products,omitempty"`
// List of results, one for each product match.
Results []*ProductSearchResults_Result `protobuf:"bytes,5,rep,name=results,proto3" json:"results,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProductSearchResults) Reset() { *m = ProductSearchResults{} }
func (m *ProductSearchResults) String() string { return proto.CompactTextString(m) }
func (*ProductSearchResults) ProtoMessage() {}
func (*ProductSearchResults) Descriptor() ([]byte, []int) {
return fileDescriptor_product_search_5afe37c43a5f30cd, []int{1}
}
func (m *ProductSearchResults) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProductSearchResults.Unmarshal(m, b)
}
func (m *ProductSearchResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProductSearchResults.Marshal(b, m, deterministic)
}
func (dst *ProductSearchResults) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProductSearchResults.Merge(dst, src)
}
func (m *ProductSearchResults) XXX_Size() int {
return xxx_messageInfo_ProductSearchResults.Size(m)
}
func (m *ProductSearchResults) XXX_DiscardUnknown() {
xxx_messageInfo_ProductSearchResults.DiscardUnknown(m)
}
var xxx_messageInfo_ProductSearchResults proto.InternalMessageInfo
func (m *ProductSearchResults) GetCategory() ProductSearchCategory {
if m != nil {
return m.Category
}
return ProductSearchCategory_PRODUCT_SEARCH_CATEGORY_UNSPECIFIED
}
func (m *ProductSearchResults) GetProductCategory() string {
if m != nil {
return m.ProductCategory
}
return ""
}
func (m *ProductSearchResults) GetIndexTime() *timestamp.Timestamp {
if m != nil {
return m.IndexTime
}
return nil
}
func (m *ProductSearchResults) GetProducts() []*ProductSearchResults_ProductInfo {
if m != nil {
return m.Products
}
return nil
}
func (m *ProductSearchResults) GetResults() []*ProductSearchResults_Result {
if m != nil {
return m.Results
}
return nil
}
// Information about a product.
type ProductSearchResults_ProductInfo struct {
// Product ID.
ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
// The URI of the image which matched the query image.
//
// This field is returned only if `view` is set to `FULL` in
// the request.
ImageUri string `protobuf:"bytes,2,opt,name=image_uri,json=imageUri,proto3" json:"image_uri,omitempty"`
// A confidence level on the match, ranging from 0 (no confidence) to
// 1 (full confidence).
//
// This field is returned only if `view` is set to `FULL` in
// the request.
Score float32 `protobuf:"fixed32,3,opt,name=score,proto3" json:"score,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProductSearchResults_ProductInfo) Reset() { *m = ProductSearchResults_ProductInfo{} }
func (m *ProductSearchResults_ProductInfo) String() string { return proto.CompactTextString(m) }
func (*ProductSearchResults_ProductInfo) ProtoMessage() {}
func (*ProductSearchResults_ProductInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_product_search_5afe37c43a5f30cd, []int{1, 0}
}
func (m *ProductSearchResults_ProductInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProductSearchResults_ProductInfo.Unmarshal(m, b)
}
func (m *ProductSearchResults_ProductInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProductSearchResults_ProductInfo.Marshal(b, m, deterministic)
}
func (dst *ProductSearchResults_ProductInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProductSearchResults_ProductInfo.Merge(dst, src)
}
func (m *ProductSearchResults_ProductInfo) XXX_Size() int {
return xxx_messageInfo_ProductSearchResults_ProductInfo.Size(m)
}
func (m *ProductSearchResults_ProductInfo) XXX_DiscardUnknown() {
xxx_messageInfo_ProductSearchResults_ProductInfo.DiscardUnknown(m)
}
var xxx_messageInfo_ProductSearchResults_ProductInfo proto.InternalMessageInfo
func (m *ProductSearchResults_ProductInfo) GetProductId() string {
if m != nil {
return m.ProductId
}
return ""
}
func (m *ProductSearchResults_ProductInfo) GetImageUri() string {
if m != nil {
return m.ImageUri
}
return ""
}
func (m *ProductSearchResults_ProductInfo) GetScore() float32 {
if m != nil {
return m.Score
}
return 0
}
// Information about a product.
type ProductSearchResults_Result struct {
// The Product.
Product *Product `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
// A confidence level on the match, ranging from 0 (no confidence) to
// 1 (full confidence).
//
// This field is returned only if `view` is set to `FULL` in
// the request.
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
// The resource name of the image from the product that is the closest match
// to the query.
Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProductSearchResults_Result) Reset() { *m = ProductSearchResults_Result{} }
func (m *ProductSearchResults_Result) String() string { return proto.CompactTextString(m) }
func (*ProductSearchResults_Result) ProtoMessage() {}
func (*ProductSearchResults_Result) Descriptor() ([]byte, []int) {
return fileDescriptor_product_search_5afe37c43a5f30cd, []int{1, 1}
}
func (m *ProductSearchResults_Result) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProductSearchResults_Result.Unmarshal(m, b)
}
func (m *ProductSearchResults_Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProductSearchResults_Result.Marshal(b, m, deterministic)
}
func (dst *ProductSearchResults_Result) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProductSearchResults_Result.Merge(dst, src)
}
func (m *ProductSearchResults_Result) XXX_Size() int {
return xxx_messageInfo_ProductSearchResults_Result.Size(m)
}
func (m *ProductSearchResults_Result) XXX_DiscardUnknown() {
xxx_messageInfo_ProductSearchResults_Result.DiscardUnknown(m)
}
var xxx_messageInfo_ProductSearchResults_Result proto.InternalMessageInfo
func (m *ProductSearchResults_Result) GetProduct() *Product {
if m != nil {
return m.Product
}
return nil
}
func (m *ProductSearchResults_Result) GetScore() float32 {
if m != nil {
return m.Score
}
return 0
}
func (m *ProductSearchResults_Result) GetImage() string {
if m != nil {
return m.Image
}
return ""
}
func init() {
proto.RegisterType((*ProductSearchParams)(nil), "google.cloud.vision.v1p3beta1.ProductSearchParams")
proto.RegisterType((*ProductSearchResults)(nil), "google.cloud.vision.v1p3beta1.ProductSearchResults")
proto.RegisterType((*ProductSearchResults_ProductInfo)(nil), "google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo")
proto.RegisterType((*ProductSearchResults_Result)(nil), "google.cloud.vision.v1p3beta1.ProductSearchResults.Result")
proto.RegisterEnum("google.cloud.vision.v1p3beta1.ProductSearchCategory", ProductSearchCategory_name, ProductSearchCategory_value)
proto.RegisterEnum("google.cloud.vision.v1p3beta1.ProductSearchResultsView", ProductSearchResultsView_name, ProductSearchResultsView_value)
}
func init() {
proto.RegisterFile("google/cloud/vision/v1p3beta1/product_search.proto", fileDescriptor_product_search_5afe37c43a5f30cd)
}
var fileDescriptor_product_search_5afe37c43a5f30cd = []byte{
// 698 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0xdf, 0x6e, 0xd3, 0x30,
0x14, 0xc6, 0x97, 0xfe, 0x5b, 0x73, 0x3a, 0xa0, 0x98, 0x31, 0x45, 0x85, 0x69, 0xdd, 0x90, 0xa0,
0x0c, 0x48, 0xb4, 0x0e, 0x84, 0x18, 0x17, 0xd0,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, 0xdd, 0xf2, 0x02, 0x92, 0x21, 0xdf, 0x3d, 0x38, 0x6e, 0x77, 0xcb, 0x12, 0x2a, 0x42, 0xae,
0xd9, 0xd8, 0xef, 0x96, 0x33, 0x9b, 0x1a, 0x28, 0x17, 0xdd, 0x9e, 0x09, 0xd0, 0x6c, 0x74, 0x3b,
0xad, 0xf2, 0xc2, 0x04, 0xd8, 0xeb, 0x1f, 0x1e, 0x96, 0xa5, 0xe6, 0x0f, 0x09, 0xd6, 0x4d, 0xee,
0x5e, 0x7e, 0xd4, 0x26, 0x9a, 0x7d, 0x37, 0x27, 0x29, 0xd3, 0xa5, 0xcf, 0xad, 0x04, 0xb2, 0xb9,
0x43, 0x3c, 0x5b, 0xe5, 0x81, 0xad, 0xd9, 0xd4, 0x13, 0x19, 0xd4, 0xe2, 0xbf, 0x88, 0xcf, 0xc2,
0x0b, 0x1e, 0xf3, 0xb7, 0x71, 0xe3, 0xb7, 0x24, 0x0d, 0x0a, 0x02, 0xd9, 0xfe, 0x13, 0x00, 0x00,
0xff, 0xff, 0x4f, 0x50, 0xae, 0xbc, 0x9d, 0x06, 0x00, 0x00,
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,797 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/vision/v1p3beta1/text_annotation.proto
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Enum to denote the type of break found. New line, space etc.
type TextAnnotation_DetectedBreak_BreakType int32
const (
// Unknown break label type.
TextAnnotation_DetectedBreak_UNKNOWN TextAnnotation_DetectedBreak_BreakType = 0
// Regular space.
TextAnnotation_DetectedBreak_SPACE TextAnnotation_DetectedBreak_BreakType = 1
// Sure space (very wide).
TextAnnotation_DetectedBreak_SURE_SPACE TextAnnotation_DetectedBreak_BreakType = 2
// Line-wrapping break.
TextAnnotation_DetectedBreak_EOL_SURE_SPACE TextAnnotation_DetectedBreak_BreakType = 3
// End-line hyphen that is not present in text; does not co-occur with
// `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
TextAnnotation_DetectedBreak_HYPHEN TextAnnotation_DetectedBreak_BreakType = 4
// Line break that ends a paragraph.
TextAnnotation_DetectedBreak_LINE_BREAK TextAnnotation_DetectedBreak_BreakType = 5
)
var TextAnnotation_DetectedBreak_BreakType_name = map[int32]string{
0: "UNKNOWN",
1: "SPACE",
2: "SURE_SPACE",
3: "EOL_SURE_SPACE",
4: "HYPHEN",
5: "LINE_BREAK",
}
var TextAnnotation_DetectedBreak_BreakType_value = map[string]int32{
"UNKNOWN": 0,
"SPACE": 1,
"SURE_SPACE": 2,
"EOL_SURE_SPACE": 3,
"HYPHEN": 4,
"LINE_BREAK": 5,
}
func (x TextAnnotation_DetectedBreak_BreakType) String() string {
return proto.EnumName(TextAnnotation_DetectedBreak_BreakType_name, int32(x))
}
func (TextAnnotation_DetectedBreak_BreakType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_26024690f7632d99, []int{0, 1, 0}
}
// Type of a block (text, image etc) as identified by OCR.
type Block_BlockType int32
const (
// Unknown block type.
Block_UNKNOWN Block_BlockType = 0
// Regular text block.
Block_TEXT Block_BlockType = 1
// Table block.
Block_TABLE Block_BlockType = 2
// Image block.
Block_PICTURE Block_BlockType = 3
// Horizontal/vertical line box.
Block_RULER Block_BlockType = 4
// Barcode block.
Block_BARCODE Block_BlockType = 5
)
var Block_BlockType_name = map[int32]string{
0: "UNKNOWN",
1: "TEXT",
2: "TABLE",
3: "PICTURE",
4: "RULER",
5: "BARCODE",
}
var Block_BlockType_value = map[string]int32{
"UNKNOWN": 0,
"TEXT": 1,
"TABLE": 2,
"PICTURE": 3,
"RULER": 4,
"BARCODE": 5,
}
func (x Block_BlockType) String() string {
return proto.EnumName(Block_BlockType_name, int32(x))
}
func (Block_BlockType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_26024690f7632d99, []int{2, 0}
}
// TextAnnotation contains a structured representation of OCR extracted text.
// The hierarchy of an OCR extracted text structure is like this:
// TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
// Each structural component, starting from Page, may further have their own
// properties. Properties describe detected languages, breaks etc.. Please refer
// to the [TextAnnotation.TextProperty][google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty] message definition below for more
// detail.
type TextAnnotation struct {
// List of pages detected by OCR.
Pages []*Page `protobuf:"bytes,1,rep,name=pages,proto3" json:"pages,omitempty"`
// UTF-8 text detected on the pages.
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextAnnotation) Reset() { *m = TextAnnotation{} }
func (m *TextAnnotation) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation) ProtoMessage() {}
func (*TextAnnotation) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_26024690f7632d99, []int{0}
}
func (m *TextAnnotation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextAnnotation.Unmarshal(m, b)
}
func (m *TextAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextAnnotation.Marshal(b, m, deterministic)
}
func (dst *TextAnnotation) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextAnnotation.Merge(dst, src)
}
func (m *TextAnnotation) XXX_Size() int {
return xxx_messageInfo_TextAnnotation.Size(m)
}
func (m *TextAnnotation) XXX_DiscardUnknown() {
xxx_messageInfo_TextAnnotation.DiscardUnknown(m)
}
var xxx_messageInfo_TextAnnotation proto.InternalMessageInfo
func (m *TextAnnotation) GetPages() []*Page {
if m != nil {
return m.Pages
}
return nil
}
func (m *TextAnnotation) GetText() string {
if m != nil {
return m.Text
}
return ""
}
// Detected language for a structural component.
type TextAnnotation_DetectedLanguage struct {
// The BCP-47 language code, such as "en-US" or "sr-Latn". For more
// information, see
// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// Confidence of detected language. Range [0, 1].
Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextAnnotation_DetectedLanguage) Reset() { *m = TextAnnotation_DetectedLanguage{} }
func (m *TextAnnotation_DetectedLanguage) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation_DetectedLanguage) ProtoMessage() {}
func (*TextAnnotation_DetectedLanguage) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_26024690f7632d99, []int{0, 0}
}
func (m *TextAnnotation_DetectedLanguage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Unmarshal(m, b)
}
func (m *TextAnnotation_DetectedLanguage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Marshal(b, m, deterministic)
}
func (dst *TextAnnotation_DetectedLanguage) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextAnnotation_DetectedLanguage.Merge(dst, src)
}
func (m *TextAnnotation_DetectedLanguage) XXX_Size() int {
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Size(m)
}
func (m *TextAnnotation_DetectedLanguage) XXX_DiscardUnknown() {
xxx_messageInfo_TextAnnotation_DetectedLanguage.DiscardUnknown(m)
}
var xxx_messageInfo_TextAnnotation_DetectedLanguage proto.InternalMessageInfo
func (m *TextAnnotation_DetectedLanguage) GetLanguageCode() string {
if m != nil {
return m.LanguageCode
}
return ""
}
func (m *TextAnnotation_DetectedLanguage) GetConfidence() float32 {
if m != nil {
return m.Confidence
}
return 0
}
// Detected start or end of a structural component.
type TextAnnotation_DetectedBreak struct {
// Detected break type.
Type TextAnnotation_DetectedBreak_BreakType `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.vision.v1p3beta1.TextAnnotation_DetectedBreak_BreakType" json:"type,omitempty"`
// True if break prepends the element.
IsPrefix bool `protobuf:"varint,2,opt,name=is_prefix,json=isPrefix,proto3" json:"is_prefix,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextAnnotation_DetectedBreak) Reset() { *m = TextAnnotation_DetectedBreak{} }
func (m *TextAnnotation_DetectedBreak) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation_DetectedBreak) ProtoMessage() {}
func (*TextAnnotation_DetectedBreak) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_26024690f7632d99, []int{0, 1}
}
func (m *TextAnnotation_DetectedBreak) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextAnnotation_DetectedBreak.Unmarshal(m, b)
}
func (m *TextAnnotation_DetectedBreak) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextAnnotation_DetectedBreak.Marshal(b, m, deterministic)
}
func (dst *TextAnnotation_DetectedBreak) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextAnnotation_DetectedBreak.Merge(dst, src)
}
func (m *TextAnnotation_DetectedBreak) XXX_Size() int {
return xxx_messageInfo_TextAnnotation_DetectedBreak.Size(m)
}
func (m *TextAnnotation_DetectedBreak) XXX_DiscardUnknown() {
xxx_messageInfo_TextAnnotation_DetectedBreak.DiscardUnknown(m)
}
var xxx_messageInfo_TextAnnotation_DetectedBreak proto.InternalMessageInfo
func (m *TextAnnotation_DetectedBreak) GetType() TextAnnotation_DetectedBreak_BreakType {
if m != nil {
return m.Type
}
return TextAnnotation_DetectedBreak_UNKNOWN
}
func (m *TextAnnotation_DetectedBreak) GetIsPrefix() bool {
if m != nil {
return m.IsPrefix
}
return false
}
// Additional information detected on the structural component.
type TextAnnotation_TextProperty struct {
// A list of detected languages together with confidence.
DetectedLanguages []*TextAnnotation_DetectedLanguage `protobuf:"bytes,1,rep,name=detected_languages,json=detectedLanguages,proto3" json:"detected_languages,omitempty"`
// Detected start or end of a text segment.
DetectedBreak *TextAnnotation_DetectedBreak `protobuf:"bytes,2,opt,name=detected_break,json=detectedBreak,proto3" json:"detected_break,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextAnnotation_TextProperty) Reset() { *m = TextAnnotation_TextProperty{} }
func (m *TextAnnotation_TextProperty) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation_TextProperty) ProtoMessage() {}
func (*TextAnnotation_TextProperty) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_26024690f7632d99, []int{0, 2}
}
func (m *TextAnnotation_TextProperty) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextAnnotation_TextProperty.Unmarshal(m, b)
}
func (m *TextAnnotation_TextProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextAnnotation_TextProperty.Marshal(b, m, deterministic)
}
func (dst *TextAnnotation_TextProperty) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextAnnotation_TextProperty.Merge(dst, src)
}
func (m *TextAnnotation_TextProperty) XXX_Size() int {
return xxx_messageInfo_TextAnnotation_TextProperty.Size(m)
}
func (m *TextAnnotation_TextProperty) XXX_DiscardUnknown() {
xxx_messageInfo_TextAnnotation_TextProperty.DiscardUnknown(m)
}
var xxx_messageInfo_TextAnnotation_TextProperty proto.InternalMessageInfo
func (m *TextAnnotation_TextProperty) GetDetectedLanguages() []*TextAnnotation_DetectedLanguage {
if m != nil {
return m.DetectedLanguages
}
return nil
}
func (m *TextAnnotation_TextProperty) GetDetectedBreak() *TextAnnotation_DetectedBreak {
if m != nil {
return m.DetectedBreak
}
return nil
}
// Detected page from OCR.
type Page struct {
// Additional information detected on the page.
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
// Page width. For PDFs the unit is points. For images (including
// TIFFs) the unit is pixels.
Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"`
// Page height. For PDFs the unit is points. For images (including
// TIFFs) the unit is pixels.
Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
// List of blocks of text, images etc on this page.
Blocks []*Block `protobuf:"bytes,4,rep,name=blocks,proto3" json:"blocks,omitempty"`
// Confidence of the OCR results on the page. Range [0, 1].
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Page) Reset() { *m = Page{} }
func (m *Page) String() string { return proto.CompactTextString(m) }
func (*Page) ProtoMessage() {}
func (*Page) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_26024690f7632d99, []int{1}
}
func (m *Page) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Page.Unmarshal(m, b)
}
func (m *Page) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Page.Marshal(b, m, deterministic)
}
func (dst *Page) XXX_Merge(src proto.Message) {
xxx_messageInfo_Page.Merge(dst, src)
}
func (m *Page) XXX_Size() int {
return xxx_messageInfo_Page.Size(m)
}
func (m *Page) XXX_DiscardUnknown() {
xxx_messageInfo_Page.DiscardUnknown(m)
}
var xxx_messageInfo_Page proto.InternalMessageInfo
func (m *Page) GetProperty() *TextAnnotation_TextProperty {
if m != nil {
return m.Property
}
return nil
}
func (m *Page) GetWidth() int32 {
if m != nil {
return m.Width
}
return 0
}
func (m *Page) GetHeight() int32 {
if m != nil {
return m.Height
}
return 0
}
func (m *Page) GetBlocks() []*Block {
if m != nil {
return m.Blocks
}
return nil
}
func (m *Page) GetConfidence() float32 {
if m != nil {
return m.Confidence
}
return 0
}
// Logical element on the page.
type Block struct {
// Additional information detected for the block.
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
// The bounding box for the block.
// The vertices are in the order of top-left, top-right, bottom-right,
// bottom-left. When a rotation of the bounding box is detected the rotation
// is represented as around the top-left corner as defined when the text is
// read in the 'natural' orientation.
// For example:
//
// * when the text is horizontal it might look like:
//
// 0----1
// | |
// 3----2
//
// * when it's rotated 180 degrees around the top-left corner it becomes:
//
// 2----3
// | |
// 1----0
//
// and the vertice order will still be (0, 1, 2, 3).
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
// List of paragraphs in this block (if this blocks is of type text).
Paragraphs []*Paragraph `protobuf:"bytes,3,rep,name=paragraphs,proto3" json:"paragraphs,omitempty"`
// Detected block type (text, image etc) for this block.
BlockType Block_BlockType `protobuf:"varint,4,opt,name=block_type,json=blockType,proto3,enum=google.cloud.vision.v1p3beta1.Block_BlockType" json:"block_type,omitempty"`
// Confidence of the OCR results on the block. Range [0, 1].
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Block) Reset() { *m = Block{} }
func (m *Block) String() string { return proto.CompactTextString(m) }
func (*Block) ProtoMessage() {}
func (*Block) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_26024690f7632d99, []int{2}
}
func (m *Block) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Block.Unmarshal(m, b)
}
func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Block.Marshal(b, m, deterministic)
}
func (dst *Block) XXX_Merge(src proto.Message) {
xxx_messageInfo_Block.Merge(dst, src)
}
func (m *Block) XXX_Size() int {
return xxx_messageInfo_Block.Size(m)
}
func (m *Block) XXX_DiscardUnknown() {
xxx_messageInfo_Block.DiscardUnknown(m)
}
var xxx_messageInfo_Block proto.InternalMessageInfo
func (m *Block) GetProperty() *TextAnnotation_TextProperty {
if m != nil {
return m.Property
}
return nil
}
func (m *Block) GetBoundingBox() *BoundingPoly {
if m != nil {
return m.BoundingBox
}
return nil
}
func (m *Block) GetParagraphs() []*Paragraph {
if m != nil {
return m.Paragraphs
}
return nil
}
func (m *Block) GetBlockType() Block_BlockType {
if m != nil {
return m.BlockType
}
return Block_UNKNOWN
}
func (m *Block) GetConfidence() float32 {
if m != nil {
return m.Confidence
}
return 0
}
// Structural unit of text representing a number of words in certain order.
type Paragraph struct {
// Additional information detected for the paragraph.
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
// The bounding box for the paragraph.
// The vertices are in the order of top-left, top-right, bottom-right,
// bottom-left. When a rotation of the bounding box is detected the rotation
// is represented as around the top-left corner as defined when the text is
// read in the 'natural' orientation.
// For example:
// * when the text is horizontal it might look like:
// 0----1
// | |
// 3----2
// * when it's rotated 180 degrees around the top-left corner it becomes:
// 2----3
// | |
// 1----0
// and the vertice order will still be (0, 1, 2, 3).
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
// List of words in this paragraph.
Words []*Word `protobuf:"bytes,3,rep,name=words,proto3" json:"words,omitempty"`
// Confidence of the OCR results for the paragraph. Range [0, 1].
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Paragraph) Reset() { *m = Paragraph{} }
func (m *Paragraph) String() string { return proto.CompactTextString(m) }
func (*Paragraph) ProtoMessage() {}
func (*Paragraph) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_26024690f7632d99, []int{3}
}
func (m *Paragraph) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Paragraph.Unmarshal(m, b)
}
func (m *Paragraph) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Paragraph.Marshal(b, m, deterministic)
}
func (dst *Paragraph) XXX_Merge(src proto.Message) {
xxx_messageInfo_Paragraph.Merge(dst, src)
}
func (m *Paragraph) XXX_Size() int {
return xxx_messageInfo_Paragraph.Size(m)
}
func (m *Paragraph) XXX_DiscardUnknown() {
xxx_messageInfo_Paragraph.DiscardUnknown(m)
}
var xxx_messageInfo_Paragraph proto.InternalMessageInfo
func (m *Paragraph) GetProperty() *TextAnnotation_TextProperty {
if m != nil {
return m.Property
}
return nil
}
func (m *Paragraph) GetBoundingBox() *BoundingPoly {
if m != nil {
return m.BoundingBox
}
return nil
}
func (m *Paragraph) GetWords() []*Word {
if m != nil {
return m.Words
}
return nil
}
func (m *Paragraph) GetConfidence() float32 {
if m != nil {
return m.Confidence
}
return 0
}
// A word representation.
type Word struct {
// Additional information detected for the word.
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
// The bounding box for the word.
// The vertices are in the order of top-left, top-right, bottom-right,
// bottom-left. When a rotation of the bounding box is detected the rotation
// is represented as around the top-left corner as defined when the text is
// read in the 'natural' orientation.
// For example:
// * when the text is horizontal it might look like:
// 0----1
// | |
// 3----2
// * when it's rotated 180 degrees around the top-left corner it becomes:
// 2----3
// | |
// 1----0
// and the vertice order will still be (0, 1, 2, 3).
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
// List of symbols in the word.
// The order of the symbols follows the natural reading order.
Symbols []*Symbol `protobuf:"bytes,3,rep,name=symbols,proto3" json:"symbols,omitempty"`
// Confidence of the OCR results for the word. Range [0, 1].
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Word) Reset() { *m = Word{} }
func (m *Word) String() string { return proto.CompactTextString(m) }
func (*Word) ProtoMessage() {}
func (*Word) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_26024690f7632d99, []int{4}
}
func (m *Word) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Word.Unmarshal(m, b)
}
func (m *Word) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Word.Marshal(b, m, deterministic)
}
func (dst *Word) XXX_Merge(src proto.Message) {
xxx_messageInfo_Word.Merge(dst, src)
}
func (m *Word) XXX_Size() int {
return xxx_messageInfo_Word.Size(m)
}
func (m *Word) XXX_DiscardUnknown() {
xxx_messageInfo_Word.DiscardUnknown(m)
}
var xxx_messageInfo_Word proto.InternalMessageInfo
func (m *Word) GetProperty() *TextAnnotation_TextProperty {
if m != nil {
return m.Property
}
return nil
}
func (m *Word) GetBoundingBox() *BoundingPoly {
if m != nil {
return m.BoundingBox
}
return nil
}
func (m *Word) GetSymbols() []*Symbol {
if m != nil {
return m.Symbols
}
return nil
}
func (m *Word) GetConfidence() float32 {
if m != nil {
return m.Confidence
}
return 0
}
// A single symbol representation.
type Symbol struct {
// Additional information detected for the symbol.
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
// The bounding box for the symbol.
// The vertices are in the order of top-left, top-right, bottom-right,
// bottom-left. When a rotation of the bounding box is detected the rotation
// is represented as around the top-left corner as defined when the text is
// read in the 'natural' orientation.
// For example:
// * when the text is horizontal it might look like:
// 0----1
// | |
// 3----2
// * when it's rotated 180 degrees around the top-left corner it becomes:
// 2----3
// | |
// 1----0
// and the vertice order will still be (0, 1, 2, 3).
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
// The actual UTF-8 representation of the symbol.
Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
// Confidence of the OCR results for the symbol. Range [0, 1].
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Symbol) Reset() { *m = Symbol{} }
func (m *Symbol) String() string { return proto.CompactTextString(m) }
func (*Symbol) ProtoMessage() {}
func (*Symbol) Descriptor() ([]byte, []int) {
return fileDescriptor_text_annotation_26024690f7632d99, []int{5}
}
func (m *Symbol) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Symbol.Unmarshal(m, b)
}
func (m *Symbol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Symbol.Marshal(b, m, deterministic)
}
func (dst *Symbol) XXX_Merge(src proto.Message) {
xxx_messageInfo_Symbol.Merge(dst, src)
}
func (m *Symbol) XXX_Size() int {
return xxx_messageInfo_Symbol.Size(m)
}
func (m *Symbol) XXX_DiscardUnknown() {
xxx_messageInfo_Symbol.DiscardUnknown(m)
}
var xxx_messageInfo_Symbol proto.InternalMessageInfo
func (m *Symbol) GetProperty() *TextAnnotation_TextProperty {
if m != nil {
return m.Property
}
return nil
}
func (m *Symbol) GetBoundingBox() *BoundingPoly {
if m != nil {
return m.BoundingBox
}
return nil
}
func (m *Symbol) GetText() string {
if m != nil {
return m.Text
}
return ""
}
func (m *Symbol) GetConfidence() float32 {
if m != nil {
return m.Confidence
}
return 0
}
func init() {
proto.RegisterType((*TextAnnotation)(nil), "google.cloud.vision.v1p3beta1.TextAnnotation")
proto.RegisterType((*TextAnnotation_DetectedLanguage)(nil), "google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage")
proto.RegisterType((*TextAnnotation_DetectedBreak)(nil), "google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak")
proto.RegisterType((*TextAnnotation_TextProperty)(nil), "google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty")
proto.RegisterType((*Page)(nil), "google.cloud.vision.v1p3beta1.Page")
proto.RegisterType((*Block)(nil), "google.cloud.vision.v1p3beta1.Block")
proto.RegisterType((*Paragraph)(nil), "google.cloud.vision.v1p3beta1.Paragraph")
proto.RegisterType((*Word)(nil), "google.cloud.vision.v1p3beta1.Word")
proto.RegisterType((*Symbol)(nil), "google.cloud.vision.v1p3beta1.Symbol")
proto.RegisterEnum("google.cloud.vision.v1p3beta1.TextAnnotation_DetectedBreak_BreakType", TextAnnotation_DetectedBreak_BreakType_name, TextAnnotation_DetectedBreak_BreakType_value)
proto.RegisterEnum("google.cloud.vision.v1p3beta1.Block_BlockType", Block_BlockType_name, Block_BlockType_value)
}
func init() {
proto.RegisterFile("google/cloud/vision/v1p3beta1/text_annotation.proto", fileDescriptor_text_annotation_26024690f7632d99)
}
var fileDescriptor_text_annotation_26024690f7632d99 = []byte{
// 775 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x56, 0x4f, 0x6f, 0xd3, 0x48,
0x14, 0x5f, 0x27, 0x76, 0x1a, 0xbf, 0xb4, 0x91, 0x77, 0x76, 0xb5, 0x8a, 0xb2, 0xbb, 0xa8, 0xa4,
0x20, 0x55, 0x02, 0x39, 0x6a, 0x7a, 0x2a, 0x45, 0xa0, 0x38, 0xb5, 0xd4, 0xaa, 0x21, 0xb5, 0xa6,
0x09, 0xa5, 0x5c, 0x2c, 0xff, 0x99, 0x3a, 0x56, 0x13, 0x8f, 0x65, 0xbb, 0x6d, 0x72, 0xe5, 0x8a,
0x04, 0x5f, 0x88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4, 0xc7, 0x7e, 0xa5, 0x8d, 0x3b, 0x47, 0x7b, 0xaa, 0x24, 0x34, 0xde, 0x14, 0x40, 0x9c, 0x91,
0xbb, 0x35, 0x2d, 0xdc, 0x01, 0xe1, 0x8a, 0x06, 0x76, 0xd6, 0xbd, 0xbc, 0x8f, 0xfb, 0x09, 0x0d,
0x6c, 0x9c, 0x20, 0x96, 0x44, 0xe6, 0xbf, 0x12, 0xf9, 0x6d, 0x01, 0xf8, 0x38, 0xfe, 0xd6, 0x68,
0xf1, 0x14, 0x56, 0xc2, 0xe9, 0xd8, 0xa4, 0xa3, 0x4c, 0x8d, 0xfb, 0x39, 0xa9, 0x8e, 0x59, 0x34,
0xce, 0x50, 0xb9, 0x8a, 0x7c, 0xe0, 0xa0, 0x94, 0x60, 0x6e, 0x8d, 0x26, 0xd9, 0x0d, 0x5e, 0xbc,
0xbe, 0xc1, 0xf3, 0x68, 0x2a, 0xaf, 0x38, 0xb8, 0x6b, 0xd1, 0xf1, 0xcd, 0x7b, 0x2a, 0x7f, 0x2d,
0x12, 0xd2, 0xe2, 0xe7, 0x87, 0xc6, 0xbd, 0xec, 0xa4, 0x28, 0x87, 0xc6, 0x77, 0x98, 0x4c, 0x03,
0xa7, 0xe9, 0x10, 0x8f, 0x3d, 0x4e, 0x9a, 0xc9, 0x5f, 0x86, 0xef, 0x86, 0xdf, 0x78, 0xcd, 0xec,
0x26, 0x8e, 0xcf, 0x1c, 0x67, 0x96, 0x18, 0x64, 0xfb, 0x4b, 0x00, 0x00, 0x00, 0xff, 0xff, 0x24,
0x7c, 0x70, 0x3a, 0x71, 0x09, 0x00, 0x00,
}

View File

@ -0,0 +1,395 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/vision/v1p3beta1/web_detection.proto
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Relevant information for the image from the Internet.
type WebDetection struct {
// Deduced entities from similar images on the Internet.
WebEntities []*WebDetection_WebEntity `protobuf:"bytes,1,rep,name=web_entities,json=webEntities,proto3" json:"web_entities,omitempty"`
// Fully matching images from the Internet.
// Can include resized copies of the query image.
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,2,rep,name=full_matching_images,json=fullMatchingImages,proto3" json:"full_matching_images,omitempty"`
// Partial matching images from the Internet.
// Those images are similar enough to share some key-point features. For
// example an original image will likely have partial matching for its crops.
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,3,rep,name=partial_matching_images,json=partialMatchingImages,proto3" json:"partial_matching_images,omitempty"`
// Web pages containing the matching images from the Internet.
PagesWithMatchingImages []*WebDetection_WebPage `protobuf:"bytes,4,rep,name=pages_with_matching_images,json=pagesWithMatchingImages,proto3" json:"pages_with_matching_images,omitempty"`
// The visually similar image results.
VisuallySimilarImages []*WebDetection_WebImage `protobuf:"bytes,6,rep,name=visually_similar_images,json=visuallySimilarImages,proto3" json:"visually_similar_images,omitempty"`
// Best guess text labels for the request image.
BestGuessLabels []*WebDetection_WebLabel `protobuf:"bytes,8,rep,name=best_guess_labels,json=bestGuessLabels,proto3" json:"best_guess_labels,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebDetection) Reset() { *m = WebDetection{} }
func (m *WebDetection) String() string { return proto.CompactTextString(m) }
func (*WebDetection) ProtoMessage() {}
func (*WebDetection) Descriptor() ([]byte, []int) {
return fileDescriptor_web_detection_48b1ad42bf628bbe, []int{0}
}
func (m *WebDetection) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebDetection.Unmarshal(m, b)
}
func (m *WebDetection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebDetection.Marshal(b, m, deterministic)
}
func (dst *WebDetection) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebDetection.Merge(dst, src)
}
func (m *WebDetection) XXX_Size() int {
return xxx_messageInfo_WebDetection.Size(m)
}
func (m *WebDetection) XXX_DiscardUnknown() {
xxx_messageInfo_WebDetection.DiscardUnknown(m)
}
var xxx_messageInfo_WebDetection proto.InternalMessageInfo
func (m *WebDetection) GetWebEntities() []*WebDetection_WebEntity {
if m != nil {
return m.WebEntities
}
return nil
}
func (m *WebDetection) GetFullMatchingImages() []*WebDetection_WebImage {
if m != nil {
return m.FullMatchingImages
}
return nil
}
func (m *WebDetection) GetPartialMatchingImages() []*WebDetection_WebImage {
if m != nil {
return m.PartialMatchingImages
}
return nil
}
func (m *WebDetection) GetPagesWithMatchingImages() []*WebDetection_WebPage {
if m != nil {
return m.PagesWithMatchingImages
}
return nil
}
func (m *WebDetection) GetVisuallySimilarImages() []*WebDetection_WebImage {
if m != nil {
return m.VisuallySimilarImages
}
return nil
}
func (m *WebDetection) GetBestGuessLabels() []*WebDetection_WebLabel {
if m != nil {
return m.BestGuessLabels
}
return nil
}
// Entity deduced from similar images on the Internet.
type WebDetection_WebEntity struct {
// Opaque entity ID.
EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
// Overall relevancy score for the entity.
// Not normalized and not comparable across different image queries.
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
// Canonical description of the entity, in English.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebDetection_WebEntity) Reset() { *m = WebDetection_WebEntity{} }
func (m *WebDetection_WebEntity) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebEntity) ProtoMessage() {}
func (*WebDetection_WebEntity) Descriptor() ([]byte, []int) {
return fileDescriptor_web_detection_48b1ad42bf628bbe, []int{0, 0}
}
func (m *WebDetection_WebEntity) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebDetection_WebEntity.Unmarshal(m, b)
}
func (m *WebDetection_WebEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebDetection_WebEntity.Marshal(b, m, deterministic)
}
func (dst *WebDetection_WebEntity) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebDetection_WebEntity.Merge(dst, src)
}
func (m *WebDetection_WebEntity) XXX_Size() int {
return xxx_messageInfo_WebDetection_WebEntity.Size(m)
}
func (m *WebDetection_WebEntity) XXX_DiscardUnknown() {
xxx_messageInfo_WebDetection_WebEntity.DiscardUnknown(m)
}
var xxx_messageInfo_WebDetection_WebEntity proto.InternalMessageInfo
func (m *WebDetection_WebEntity) GetEntityId() string {
if m != nil {
return m.EntityId
}
return ""
}
func (m *WebDetection_WebEntity) GetScore() float32 {
if m != nil {
return m.Score
}
return 0
}
func (m *WebDetection_WebEntity) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
// Metadata for online images.
type WebDetection_WebImage struct {
// The result image URL.
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// (Deprecated) Overall relevancy score for the image.
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebDetection_WebImage) Reset() { *m = WebDetection_WebImage{} }
func (m *WebDetection_WebImage) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebImage) ProtoMessage() {}
func (*WebDetection_WebImage) Descriptor() ([]byte, []int) {
return fileDescriptor_web_detection_48b1ad42bf628bbe, []int{0, 1}
}
func (m *WebDetection_WebImage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebDetection_WebImage.Unmarshal(m, b)
}
func (m *WebDetection_WebImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebDetection_WebImage.Marshal(b, m, deterministic)
}
func (dst *WebDetection_WebImage) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebDetection_WebImage.Merge(dst, src)
}
func (m *WebDetection_WebImage) XXX_Size() int {
return xxx_messageInfo_WebDetection_WebImage.Size(m)
}
func (m *WebDetection_WebImage) XXX_DiscardUnknown() {
xxx_messageInfo_WebDetection_WebImage.DiscardUnknown(m)
}
var xxx_messageInfo_WebDetection_WebImage proto.InternalMessageInfo
func (m *WebDetection_WebImage) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *WebDetection_WebImage) GetScore() float32 {
if m != nil {
return m.Score
}
return 0
}
// Metadata for web pages.
type WebDetection_WebPage struct {
// The result web page URL.
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// (Deprecated) Overall relevancy score for the web page.
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
// Title for the web page, may contain HTML markups.
PageTitle string `protobuf:"bytes,3,opt,name=page_title,json=pageTitle,proto3" json:"page_title,omitempty"`
// Fully matching images on the page.
// Can include resized copies of the query image.
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,4,rep,name=full_matching_images,json=fullMatchingImages,proto3" json:"full_matching_images,omitempty"`
// Partial matching images on the page.
// Those images are similar enough to share some key-point features. For
// example an original image will likely have partial matching for its
// crops.
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,5,rep,name=partial_matching_images,json=partialMatchingImages,proto3" json:"partial_matching_images,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebDetection_WebPage) Reset() { *m = WebDetection_WebPage{} }
func (m *WebDetection_WebPage) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebPage) ProtoMessage() {}
func (*WebDetection_WebPage) Descriptor() ([]byte, []int) {
return fileDescriptor_web_detection_48b1ad42bf628bbe, []int{0, 2}
}
func (m *WebDetection_WebPage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebDetection_WebPage.Unmarshal(m, b)
}
func (m *WebDetection_WebPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebDetection_WebPage.Marshal(b, m, deterministic)
}
func (dst *WebDetection_WebPage) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebDetection_WebPage.Merge(dst, src)
}
func (m *WebDetection_WebPage) XXX_Size() int {
return xxx_messageInfo_WebDetection_WebPage.Size(m)
}
func (m *WebDetection_WebPage) XXX_DiscardUnknown() {
xxx_messageInfo_WebDetection_WebPage.DiscardUnknown(m)
}
var xxx_messageInfo_WebDetection_WebPage proto.InternalMessageInfo
func (m *WebDetection_WebPage) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *WebDetection_WebPage) GetScore() float32 {
if m != nil {
return m.Score
}
return 0
}
func (m *WebDetection_WebPage) GetPageTitle() string {
if m != nil {
return m.PageTitle
}
return ""
}
func (m *WebDetection_WebPage) GetFullMatchingImages() []*WebDetection_WebImage {
if m != nil {
return m.FullMatchingImages
}
return nil
}
func (m *WebDetection_WebPage) GetPartialMatchingImages() []*WebDetection_WebImage {
if m != nil {
return m.PartialMatchingImages
}
return nil
}
// Label to provide extra metadata for the web detection.
type WebDetection_WebLabel struct {
// Label for extra metadata.
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
// The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
// For more information, see
// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WebDetection_WebLabel) Reset() { *m = WebDetection_WebLabel{} }
func (m *WebDetection_WebLabel) String() string { return proto.CompactTextString(m) }
func (*WebDetection_WebLabel) ProtoMessage() {}
func (*WebDetection_WebLabel) Descriptor() ([]byte, []int) {
return fileDescriptor_web_detection_48b1ad42bf628bbe, []int{0, 3}
}
func (m *WebDetection_WebLabel) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WebDetection_WebLabel.Unmarshal(m, b)
}
func (m *WebDetection_WebLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WebDetection_WebLabel.Marshal(b, m, deterministic)
}
func (dst *WebDetection_WebLabel) XXX_Merge(src proto.Message) {
xxx_messageInfo_WebDetection_WebLabel.Merge(dst, src)
}
func (m *WebDetection_WebLabel) XXX_Size() int {
return xxx_messageInfo_WebDetection_WebLabel.Size(m)
}
func (m *WebDetection_WebLabel) XXX_DiscardUnknown() {
xxx_messageInfo_WebDetection_WebLabel.DiscardUnknown(m)
}
var xxx_messageInfo_WebDetection_WebLabel proto.InternalMessageInfo
func (m *WebDetection_WebLabel) GetLabel() string {
if m != nil {
return m.Label
}
return ""
}
func (m *WebDetection_WebLabel) GetLanguageCode() string {
if m != nil {
return m.LanguageCode
}
return ""
}
func init() {
proto.RegisterType((*WebDetection)(nil), "google.cloud.vision.v1p3beta1.WebDetection")
proto.RegisterType((*WebDetection_WebEntity)(nil), "google.cloud.vision.v1p3beta1.WebDetection.WebEntity")
proto.RegisterType((*WebDetection_WebImage)(nil), "google.cloud.vision.v1p3beta1.WebDetection.WebImage")
proto.RegisterType((*WebDetection_WebPage)(nil), "google.cloud.vision.v1p3beta1.WebDetection.WebPage")
proto.RegisterType((*WebDetection_WebLabel)(nil), "google.cloud.vision.v1p3beta1.WebDetection.WebLabel")
}
func init() {
proto.RegisterFile("google/cloud/vision/v1p3beta1/web_detection.proto", fileDescriptor_web_detection_48b1ad42bf628bbe)
}
var fileDescriptor_web_detection_48b1ad42bf628bbe = []byte{
// 511 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0x4f, 0x6f, 0xd3, 0x30,
0x18, 0xc6, 0x95, 0x76, 0x1b, 0x8d, 0x5b, 0x04, 0xb3, 0x86, 0x16, 0x05, 0x26, 0x15, 0xb8, 0xf4,
0x94, 0xa8, 0x2b, 0x9c, 0xb8, 0x6d, 0x4c, 0x68, 0x12, 0x48, 0x55, 0x40, 0x1a, 0xe2, 0x92, 0x39,
0x89, 0x97, 0xbe, 0x92, 0x1b, 0x47, 0xb1, 0xd3, 0xaa, 0x37, 0x4e, 0x7c, 0x14, 0x3e, 0x23, 0x47,
0xf4, 0xda, 0xee, 0x54, 0x51, 0x36, 0x31, 0x86, 0xb8, 0xf9, 0x7d, 0xac, 0xe7, 0xf9, 0xd9, 0xaf,
0xff, 0x90, 0x71, 0x29, 0x65, 0x29, 0x78, 0x9c, 0x0b, 0xd9, 0x16, 0xf1, 0x02, 0x14, 0xc8, 0x2a,
0x5e, 0x8c, 0xeb, 0x49, 0xc6, 0x35, 0x1b, 0xc7, 0x4b, 0x9e, 0xa5, 0x05, 0xd7, 0x3c, 0xd7, 0x20,
0xab, 0xa8, 0x6e, 0xa4, 0x96, 0xf4, 0xc8, 0x5a, 0x22, 0x63, 0x89, 0xac, 0x25, 0xba, 0xb6, 0x84,
0xcf, 0x5c, 0x22, 0xab, 0x21, 0x66, 0x55, 0x25, 0x35, 0x43, 0xaf, 0xb2, 0xe6, 0x17, 0xdf, 0x7c,
0x32, 0xb8, 0xe0, 0xd9, 0xdb, 0x75, 0x26, 0xfd, 0x4c, 0x06, 0x08, 0xe1, 0x95, 0x06, 0x0d, 0x5c,
0x05, 0xde, 0xb0, 0x3b, 0xea, 0x1f, 0xbf, 0x8e, 0x6e, 0x85, 0x44, 0x9b, 0x11, 0x58, 0x9c, 0xa1,
0x7d, 0x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 0x3c, 0x26, 0xbd, 0xf5, 0x36, 0xe9,
0x63, 0xd2, 0x6d, 0x1b, 0xe1, 0xa2, 0x71, 0xf8, 0xfb, 0xd4, 0xf0, 0x7b, 0x87, 0x3c, 0x70, 0x47,
0xf1, 0xa7, 0x1e, 0x7a, 0x44, 0x08, 0x1e, 0x5a, 0xaa, 0x41, 0x0b, 0xee, 0x16, 0xe2, 0xa3, 0xf2,
0x09, 0x85, 0x1b, 0x1f, 0xc0, 0xce, 0xff, 0x7b, 0x00, 0xbb, 0xff, 0xfc, 0x01, 0x84, 0x67, 0xa6,
0xb9, 0xe6, 0x2c, 0xb1, 0x2d, 0xe6, 0x86, 0xb8, 0x56, 0xd9, 0x82, 0xbe, 0x24, 0x0f, 0x05, 0xab,
0xca, 0x16, 0x5b, 0x93, 0xcb, 0xc2, 0x36, 0xcd, 0x4f, 0x06, 0x6b, 0xf1, 0x54, 0x16, 0xfc, 0xe4,
0xab, 0x47, 0x9e, 0xe7, 0x72, 0x7e, 0xfb, 0xca, 0x4e, 0xf6, 0x37, 0x97, 0x36, 0xc5, 0x1f, 0x6c,
0xea, 0x7d, 0x39, 0x75, 0x9e, 0x52, 0x62, 0x62, 0x24, 0x9b, 0x32, 0x2e, 0x79, 0x65, 0xfe, 0xb7,
0xd8, 0x4e, 0xb1, 0x1a, 0xd4, 0x0d, 0x5f, 0xea, 0x1b, 0x2b, 0xfc, 0xf0, 0xbc, 0x6c, 0xcf, 0x58,
0x26, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xe5, 0xb6, 0x81, 0x34, 0x84, 0x05, 0x00, 0x00,
}

View File

@ -0,0 +1,111 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/websecurityscanner/v1alpha/crawled_url.proto
package websecurityscanner // import "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
// Security Scanner Service crawls the web applications, following all links
// within the scope of sites, to find the URLs to test against.
type CrawledUrl struct {
// Output only.
// The http method of the request that was used to visit the URL, in
// uppercase.
HttpMethod string `protobuf:"bytes,1,opt,name=http_method,json=httpMethod,proto3" json:"http_method,omitempty"`
// Output only.
// The URL that was crawled.
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
// Output only.
// The body of the request that was used to visit the URL.
Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CrawledUrl) Reset() { *m = CrawledUrl{} }
func (m *CrawledUrl) String() string { return proto.CompactTextString(m) }
func (*CrawledUrl) ProtoMessage() {}
func (*CrawledUrl) Descriptor() ([]byte, []int) {
return fileDescriptor_crawled_url_b553fc5280c7b49d, []int{0}
}
func (m *CrawledUrl) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CrawledUrl.Unmarshal(m, b)
}
func (m *CrawledUrl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CrawledUrl.Marshal(b, m, deterministic)
}
func (dst *CrawledUrl) XXX_Merge(src proto.Message) {
xxx_messageInfo_CrawledUrl.Merge(dst, src)
}
func (m *CrawledUrl) XXX_Size() int {
return xxx_messageInfo_CrawledUrl.Size(m)
}
func (m *CrawledUrl) XXX_DiscardUnknown() {
xxx_messageInfo_CrawledUrl.DiscardUnknown(m)
}
var xxx_messageInfo_CrawledUrl proto.InternalMessageInfo
func (m *CrawledUrl) GetHttpMethod() string {
if m != nil {
return m.HttpMethod
}
return ""
}
func (m *CrawledUrl) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *CrawledUrl) GetBody() string {
if m != nil {
return m.Body
}
return ""
}
func init() {
proto.RegisterType((*CrawledUrl)(nil), "google.cloud.websecurityscanner.v1alpha.CrawledUrl")
}
func init() {
proto.RegisterFile("google/cloud/websecurityscanner/v1alpha/crawled_url.proto", fileDescriptor_crawled_url_b553fc5280c7b49d)
}
var fileDescriptor_crawled_url_b553fc5280c7b49d = []byte{
// 235 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0x31, 0x4b, 0x04, 0x31,
0x10, 0x85, 0x59, 0x4f, 0x04, 0xc7, 0x42, 0x49, 0xb5, 0x88, 0xa0, 0xd8, 0x28, 0x08, 0x09, 0x62,
0x25, 0x76, 0x67, 0x2d, 0x1c, 0x8a, 0x85, 0x36, 0xc7, 0x6c, 0x36, 0x64, 0x17, 0xe6, 0x32, 0x61,
0x36, 0xeb, 0x71, 0xbf, 0xc5, 0x3f, 0x2b, 0x9b, 0x2c, 0x58, 0x5c, 0xa1, 0xdd, 0xf0, 0x1e, 0xdf,
0xcb, 0x47, 0xe0, 0xd1, 0x33, 0x7b, 0x72, 0xc6, 0x12, 0x8f, 0xad, 0xd9, 0xba, 0x66, 0x70, 0x76,
0x94, 0x3e, 0xed, 0x06, 0x8b, 0x21, 0x38, 0x31, 0x5f, 0xf7, 0x48, 0xb1, 0x43, 0x63, 0x05, 0xb7,
0xe4, 0xda, 0xf5, 0x28, 0xa4, 0xa3, 0x70, 0x62, 0x75, 0x53, 0x50, 0x9d, 0x51, 0xbd, 0x8f, 0xea,
0x19, 0x3d, 0xbf, 0x98, 0xdf, 0xc0, 0xd8, 0x1b, 0x0c, 0x81, 0x13, 0xa6, 0x9e, 0xc3, 0x50, 0x66,
0xae, 0xdf, 0x00, 0x9e, 0xcb, 0xf6, 0xbb, 0x90, 0xba, 0x84, 0x93, 0x2e, 0xa5, 0xb8, 0xde, 0xb8,
0xd4, 0x71, 0x5b, 0x57, 0x57, 0xd5, 0xed, 0xf1, 0x2b, 0x4c, 0xd1, 0x4b, 0x4e, 0xd4, 0x19, 0x2c,
0x46, 0xa1, 0xfa, 0x20, 0x17, 0xd3, 0xa9, 0x14, 0x1c, 0x36, 0xdc, 0xee, 0xea, 0x45, 0x8e, 0xf2,
0xbd, 0xfc, 0xae, 0xe0, 0xce, 0xf2, 0x46, 0xff, 0x53, 0x71, 0x79, 0xfa, 0xab, 0xb0, 0x9a, 0xac,
0x56, 0xd5, 0xe7, 0xc7, 0xcc, 0x7a, 0x26, 0x0c, 0x5e, 0xb3, 0x78, 0xe3, 0x5d, 0xc8, 0xce, 0xa6,
0x54, 0x18, 0xfb, 0xe1, 0xcf, 0x8f, 0x7b, 0xda, 0xaf, 0x9a, 0xa3, 0xbc, 0xf2, 0xf0, 0x13, 0x00,
0x00, 0xff, 0xff, 0x7b, 0x55, 0xd9, 0x73, 0x7d, 0x01, 0x00, 0x00,
}

Some files were not shown because too many files have changed in this diff Show More