mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
vendor files
This commit is contained in:
310
vendor/google.golang.org/genproto/googleapis/cloud/audit/audit_log.pb.go
generated
vendored
Normal file
310
vendor/google.golang.org/genproto/googleapis/cloud/audit/audit_log.pb.go
generated
vendored
Normal file
@ -0,0 +1,310 @@
|
||||
// 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
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
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"
|
||||
|
||||
// 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
|
||||
|
||||
// Common audit log format for Google Cloud Platform API operations.
|
||||
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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// The status of the overall operation.
|
||||
Status *google_rpc.Status `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"`
|
||||
// Authentication information.
|
||||
AuthenticationInfo *AuthenticationInfo `protobuf:"bytes,3,opt,name=authentication_info,json=authenticationInfo" 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"`
|
||||
// Metadata about the operation.
|
||||
RequestMetadata *RequestMetadata `protobuf:"bytes,4,opt,name=request_metadata,json=requestMetadata" 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetServiceName() string {
|
||||
if m != nil {
|
||||
return m.ServiceName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AuditLog) GetMethodName() string {
|
||||
if m != nil {
|
||||
return m.MethodName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AuditLog) GetResourceName() string {
|
||||
if m != nil {
|
||||
return m.ResourceName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AuditLog) GetNumResponseItems() int64 {
|
||||
if m != nil {
|
||||
return m.NumResponseItems
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *AuditLog) GetStatus() *google_rpc.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AuditLog) GetAuthenticationInfo() *AuthenticationInfo {
|
||||
if m != nil {
|
||||
return m.AuthenticationInfo
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AuditLog) GetAuthorizationInfo() []*AuthorizationInfo {
|
||||
if m != nil {
|
||||
return m.AuthorizationInfo
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AuditLog) GetRequestMetadata() *RequestMetadata {
|
||||
if m != nil {
|
||||
return m.RequestMetadata
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AuditLog) GetRequest() *google_protobuf2.Struct {
|
||||
if m != nil {
|
||||
return m.Request
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AuditLog) GetResponse() *google_protobuf2.Struct {
|
||||
if m != nil {
|
||||
return m.Response
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AuditLog) GetServiceData() *google_protobuf1.Any {
|
||||
if m != nil {
|
||||
return m.ServiceData
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetPrincipalEmail() string {
|
||||
if m != nil {
|
||||
return m.PrincipalEmail
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Authorization information for the operation.
|
||||
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"`
|
||||
// The required IAM permission.
|
||||
Permission string `protobuf:"bytes,2,opt,name=permission" json:"permission,omitempty"`
|
||||
// Whether or not authorization for `resource` and `permission`
|
||||
// was granted.
|
||||
Granted bool `protobuf:"varint,3,opt,name=granted" json:"granted,omitempty"`
|
||||
}
|
||||
|
||||
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) GetResource() string {
|
||||
if m != nil {
|
||||
return m.Resource
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AuthorizationInfo) GetPermission() string {
|
||||
if m != nil {
|
||||
return m.Permission
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AuthorizationInfo) GetGranted() bool {
|
||||
if m != nil {
|
||||
return m.Granted
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// The user agent of the caller.
|
||||
// This information is not authenticated and should be treated accordingly.
|
||||
// For example:
|
||||
//
|
||||
// + `google-api-python-client/1.4.0`:
|
||||
// The request was made by the Google API client for Python.
|
||||
// + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetCallerIp() string {
|
||||
if m != nil {
|
||||
return m.CallerIp
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *RequestMetadata) GetCallerSuppliedUserAgent() string {
|
||||
if m != nil {
|
||||
return m.CallerSuppliedUserAgent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*AuditLog)(nil), "google.cloud.audit.AuditLog")
|
||||
proto.RegisterType((*AuthenticationInfo)(nil), "google.cloud.audit.AuthenticationInfo")
|
||||
proto.RegisterType((*AuthorizationInfo)(nil), "google.cloud.audit.AuthorizationInfo")
|
||||
proto.RegisterType((*RequestMetadata)(nil), "google.cloud.audit.RequestMetadata")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/audit/audit_log.proto", fileDescriptor0) }
|
||||
|
||||
var fileDescriptor0 = []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,
|
||||
0x21, 0x94, 0x88, 0xed, 0x61, 0x0f, 0x13, 0x0f, 0x9d, 0xe0, 0xa1, 0x12, 0x4c, 0x53, 0x0a, 0x42,
|
||||
0xe2, 0x25, 0x72, 0x93, 0xdb, 0xcc, 0x22, 0xb1, 0x8d, 0xff, 0x20, 0x8d, 0xef, 0xcc, 0x77, 0x40,
|
||||
0xbd, 0x71, 0x4a, 0xd7, 0x0e, 0x5e, 0x2c, 0xf9, 0x9c, 0xdf, 0xbd, 0x76, 0xaf, 0x4f, 0x43, 0x46,
|
||||
0xb9, 0x94, 0x79, 0x01, 0x51, 0x5a, 0x48, 0x97, 0x45, 0xcc, 0x65, 0xdc, 0x56, 0x6b, 0x52, 0xc8,
|
||||
0x3c, 0x54, 0x5a, 0x5a, 0x49, 0x69, 0xc5, 0x84, 0xc8, 0x84, 0xe8, 0x0e, 0x8e, 0x7c, 0x1d, 0x53,
|
||||
0x3c, 0x62, 0x42, 0x48, 0xcb, 0x2c, 0x97, 0xc2, 0x54, 0x15, 0x83, 0xc7, 0xde, 0xc5, 0xdd, 0xdc,
|
||||
0x2d, 0x22, 0x26, 0x6e, 0xbc, 0x75, 0xb4, 0x69, 0x19, 0xab, 0x5d, 0x6a, 0xbd, 0xdb, 0xf7, 0xae,
|
||||
0x56, 0x69, 0x64, 0x2c, 0xb3, 0xce, 0x77, 0x1c, 0xfd, 0xde, 0x25, 0xcd, 0xc9, 0xf2, 0xe4, 0x8f,
|
||||
0x32, 0xa7, 0xcf, 0xc9, 0x81, 0x01, 0xfd, 0x93, 0xa7, 0x90, 0x08, 0x56, 0x42, 0xb0, 0x3f, 0x6c,
|
||||
0x8c, 0x5b, 0x71, 0xdb, 0x6b, 0x97, 0xac, 0x04, 0xfa, 0x8c, 0xb4, 0x4b, 0xb0, 0xd7, 0x32, 0xab,
|
||||
0x88, 0x26, 0x12, 0xa4, 0x92, 0x10, 0x38, 0x26, 0x87, 0x1a, 0x8c, 0x74, 0xba, 0x6e, 0xd2, 0x46,
|
||||
0xe4, 0xa0, 0x16, 0x11, 0x7a, 0x43, 0xa8, 0x70, 0x65, 0xa2, 0xc1, 0x28, 0x29, 0x0c, 0x24, 0xdc,
|
||||
0x42, 0x69, 0x82, 0x83, 0x61, 0x63, 0xbc, 0x13, 0x77, 0x85, 0x2b, 0x63, 0x6f, 0x4c, 0x97, 0x3a,
|
||||
0x7d, 0x4d, 0xf6, 0xaa, 0x3b, 0x07, 0xf7, 0x86, 0x8d, 0x71, 0xfb, 0x84, 0x86, 0x7e, 0x70, 0x5a,
|
||||
0xa5, 0xe1, 0x0c, 0x9d, 0xd8, 0x13, 0xf4, 0x2b, 0x79, 0xc0, 0x9c, 0xbd, 0x06, 0x61, 0x79, 0x8a,
|
||||
0xa3, 0x4b, 0xb8, 0x58, 0xc8, 0x60, 0x07, 0x0b, 0x5f, 0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0x14, 0x1a, 0x90, 0xfd, 0x5c, 0x33, 0x61, 0x21, 0xc3, 0x8c, 0x34,
|
||||
0xe3, 0x7a, 0x3b, 0xfa, 0x4e, 0x3a, 0x1b, 0xe3, 0xa6, 0x4f, 0x48, 0x2b, 0x65, 0x45, 0x01, 0x3a,
|
||||
0xe1, 0xaa, 0x3e, 0xa9, 0x12, 0xa6, 0x8a, 0x9e, 0x93, 0x81, 0x37, 0x8d, 0x53, 0xaa, 0xe0, 0x90,
|
||||
0x25, 0xce, 0x80, 0x4e, 0x58, 0x0e, 0xc2, 0xfa, 0x93, 0xfb, 0x15, 0x31, 0xf3, 0xc0, 0x17, 0x03,
|
||||
0x7a, 0xb2, 0xb4, 0x2f, 0xe6, 0xe4, 0x51, 0x2a, 0xcb, 0x3b, 0x9e, 0xfc, 0xe2, 0xb0, 0xfe, 0x77,
|
||||
0x5e, 0x2d, 0x67, 0x7a, 0xd5, 0xf8, 0x76, 0xe6, 0xa1, 0x5c, 0x16, 0x4c, 0xe4, 0xa1, 0xd4, 0x79,
|
||||
0x94, 0x83, 0xc0, 0x89, 0x47, 0x95, 0xc5, 0x14, 0x37, 0xeb, 0x1f, 0x9e, 0x73, 0x5c, 0xe7, 0x7b,
|
||||
0xc8, 0x9c, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, 0x90, 0xe4, 0x37, 0xbf, 0x9b, 0x04, 0x00, 0x00,
|
||||
}
|
1868
vendor/google.golang.org/genproto/googleapis/cloud/bigquery/datatransfer/v1/datatransfer.pb.go
generated
vendored
Normal file
1868
vendor/google.golang.org/genproto/googleapis/cloud/bigquery/datatransfer/v1/datatransfer.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
521
vendor/google.golang.org/genproto/googleapis/cloud/bigquery/datatransfer/v1/transfer.pb.go
generated
vendored
Normal file
521
vendor/google.golang.org/genproto/googleapis/cloud/bigquery/datatransfer/v1/transfer.pb.go
generated
vendored
Normal file
@ -0,0 +1,521 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/bigquery/datatransfer/v1/transfer.proto
|
||||
|
||||
package datatransfer
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
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.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.
|
||||
type TransferType int32
|
||||
|
||||
const (
|
||||
// Invalid or Unknown transfer type placeholder.
|
||||
TransferType_TRANSFER_TYPE_UNSPECIFIED TransferType = 0
|
||||
// Batch data transfer.
|
||||
TransferType_BATCH TransferType = 1
|
||||
// Streaming data transfer. Streaming data source currently doesn't
|
||||
// support multiple transfer configs per project.
|
||||
TransferType_STREAMING TransferType = 2
|
||||
)
|
||||
|
||||
var TransferType_name = map[int32]string{
|
||||
0: "TRANSFER_TYPE_UNSPECIFIED",
|
||||
1: "BATCH",
|
||||
2: "STREAMING",
|
||||
}
|
||||
var TransferType_value = map[string]int32{
|
||||
"TRANSFER_TYPE_UNSPECIFIED": 0,
|
||||
"BATCH": 1,
|
||||
"STREAMING": 2,
|
||||
}
|
||||
|
||||
func (x TransferType) String() string {
|
||||
return proto.EnumName(TransferType_name, int32(x))
|
||||
}
|
||||
func (TransferType) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
|
||||
|
||||
// Represents data transfer run state.
|
||||
type TransferState int32
|
||||
|
||||
const (
|
||||
// State placeholder.
|
||||
TransferState_TRANSFER_STATE_UNSPECIFIED TransferState = 0
|
||||
// Data transfer is inactive.
|
||||
TransferState_INACTIVE TransferState = 1
|
||||
// Data transfer is scheduled and is waiting to be picked up by
|
||||
// data transfer backend.
|
||||
TransferState_PENDING TransferState = 2
|
||||
// Data transfer is in progress.
|
||||
TransferState_RUNNING TransferState = 3
|
||||
// Data transfer completed successsfully.
|
||||
TransferState_SUCCEEDED TransferState = 4
|
||||
// Data transfer failed.
|
||||
TransferState_FAILED TransferState = 5
|
||||
// Data transfer is cancelled.
|
||||
TransferState_CANCELLED TransferState = 6
|
||||
)
|
||||
|
||||
var TransferState_name = map[int32]string{
|
||||
0: "TRANSFER_STATE_UNSPECIFIED",
|
||||
1: "INACTIVE",
|
||||
2: "PENDING",
|
||||
3: "RUNNING",
|
||||
4: "SUCCEEDED",
|
||||
5: "FAILED",
|
||||
6: "CANCELLED",
|
||||
}
|
||||
var TransferState_value = map[string]int32{
|
||||
"TRANSFER_STATE_UNSPECIFIED": 0,
|
||||
"INACTIVE": 1,
|
||||
"PENDING": 2,
|
||||
"RUNNING": 3,
|
||||
"SUCCEEDED": 4,
|
||||
"FAILED": 5,
|
||||
"CANCELLED": 6,
|
||||
}
|
||||
|
||||
func (x TransferState) String() string {
|
||||
return proto.EnumName(TransferState_name, int32(x))
|
||||
}
|
||||
func (TransferState) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
|
||||
|
||||
// Represents data transfer user facing message severity.
|
||||
type TransferMessage_MessageSeverity int32
|
||||
|
||||
const (
|
||||
// No severity specified.
|
||||
TransferMessage_MESSAGE_SEVERITY_UNSPECIFIED TransferMessage_MessageSeverity = 0
|
||||
// Informational message.
|
||||
TransferMessage_INFO TransferMessage_MessageSeverity = 1
|
||||
// Warning message.
|
||||
TransferMessage_WARNING TransferMessage_MessageSeverity = 2
|
||||
// Error message.
|
||||
TransferMessage_ERROR TransferMessage_MessageSeverity = 3
|
||||
)
|
||||
|
||||
var TransferMessage_MessageSeverity_name = map[int32]string{
|
||||
0: "MESSAGE_SEVERITY_UNSPECIFIED",
|
||||
1: "INFO",
|
||||
2: "WARNING",
|
||||
3: "ERROR",
|
||||
}
|
||||
var TransferMessage_MessageSeverity_value = map[string]int32{
|
||||
"MESSAGE_SEVERITY_UNSPECIFIED": 0,
|
||||
"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}
|
||||
}
|
||||
|
||||
// Represents a data transfer configuration. A transfer configuration
|
||||
// contains all metadata needed to perform a data transfer. For example,
|
||||
// `destination_dataset_id` specifies where data should be stored.
|
||||
// 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.
|
||||
type TransferConfig struct {
|
||||
// The resource name of the transfer config.
|
||||
// Transfer config names have the form
|
||||
// `projects/{project_id}/transferConfigs/{config_id}`.
|
||||
// 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"`
|
||||
// The BigQuery target dataset id.
|
||||
DestinationDatasetId string `protobuf:"bytes,2,opt,name=destination_dataset_id,json=destinationDatasetId" 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"`
|
||||
// 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"`
|
||||
// Data transfer specific parameters.
|
||||
Params *google_protobuf1.Struct `protobuf:"bytes,9,opt,name=params" 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
|
||||
// used.
|
||||
// The specified times are in UTC.
|
||||
// Examples of valid format:
|
||||
// `1st,3rd monday of month 15:30`,
|
||||
// `every wed,fri of jan,jun 13:15`, and
|
||||
// `first sunday of quarter 00:00`.
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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.
|
||||
UserId int64 `protobuf:"varint,11,opt,name=user_id,json=userId" 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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *TransferConfig) GetDestinationDatasetId() string {
|
||||
if m != nil {
|
||||
return m.DestinationDatasetId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *TransferConfig) GetDisplayName() string {
|
||||
if m != nil {
|
||||
return m.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *TransferConfig) GetDataSourceId() string {
|
||||
if m != nil {
|
||||
return m.DataSourceId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *TransferConfig) GetParams() *google_protobuf1.Struct {
|
||||
if m != nil {
|
||||
return m.Params
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TransferConfig) GetSchedule() string {
|
||||
if m != nil {
|
||||
return m.Schedule
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *TransferConfig) GetDataRefreshWindowDays() int32 {
|
||||
if m != nil {
|
||||
return m.DataRefreshWindowDays
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *TransferConfig) GetDisabled() bool {
|
||||
if m != nil {
|
||||
return m.Disabled
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *TransferConfig) GetUpdateTime() *google_protobuf2.Timestamp {
|
||||
if m != nil {
|
||||
return m.UpdateTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TransferConfig) GetNextRunTime() *google_protobuf2.Timestamp {
|
||||
if m != nil {
|
||||
return m.NextRunTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TransferConfig) GetState() TransferState {
|
||||
if m != nil {
|
||||
return m.State
|
||||
}
|
||||
return TransferState_TRANSFER_STATE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *TransferConfig) GetUserId() int64 {
|
||||
if m != nil {
|
||||
return m.UserId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *TransferConfig) GetDatasetRegion() string {
|
||||
if m != nil {
|
||||
return m.DatasetRegion
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Represents a data transfer run.
|
||||
// Next id: 23
|
||||
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"`
|
||||
// The BigQuery target dataset id.
|
||||
DestinationDatasetId string `protobuf:"bytes,2,opt,name=destination_dataset_id,json=destinationDatasetId" json:"destination_dataset_id,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"`
|
||||
// Data transfer specific parameters.
|
||||
Params *google_protobuf1.Struct `protobuf:"bytes,9,opt,name=params" json:"params,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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// Output only. Data source id.
|
||||
DataSourceId string `protobuf:"bytes,7,opt,name=data_source_id,json=dataSourceId" 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"`
|
||||
// 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.
|
||||
UserId int64 `protobuf:"varint,11,opt,name=user_id,json=userId" 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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *TransferRun) GetDestinationDatasetId() string {
|
||||
if m != nil {
|
||||
return m.DestinationDatasetId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *TransferRun) GetScheduleTime() *google_protobuf2.Timestamp {
|
||||
if m != nil {
|
||||
return m.ScheduleTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TransferRun) GetParams() *google_protobuf1.Struct {
|
||||
if m != nil {
|
||||
return m.Params
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TransferRun) GetRunTime() *google_protobuf2.Timestamp {
|
||||
if m != nil {
|
||||
return m.RunTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TransferRun) GetStartTime() *google_protobuf2.Timestamp {
|
||||
if m != nil {
|
||||
return m.StartTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TransferRun) GetEndTime() *google_protobuf2.Timestamp {
|
||||
if m != nil {
|
||||
return m.EndTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TransferRun) GetUpdateTime() *google_protobuf2.Timestamp {
|
||||
if m != nil {
|
||||
return m.UpdateTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TransferRun) GetDataSourceId() string {
|
||||
if m != nil {
|
||||
return m.DataSourceId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *TransferRun) GetState() TransferState {
|
||||
if m != nil {
|
||||
return m.State
|
||||
}
|
||||
return TransferState_TRANSFER_STATE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *TransferRun) GetUserId() int64 {
|
||||
if m != nil {
|
||||
return m.UserId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *TransferRun) GetSchedule() string {
|
||||
if m != nil {
|
||||
return m.Schedule
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// Message severity.
|
||||
Severity TransferMessage_MessageSeverity `protobuf:"varint,2,opt,name=severity,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"`
|
||||
}
|
||||
|
||||
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) GetMessageTime() *google_protobuf2.Timestamp {
|
||||
if m != nil {
|
||||
return m.MessageTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TransferMessage) GetSeverity() TransferMessage_MessageSeverity {
|
||||
if m != nil {
|
||||
return m.Severity
|
||||
}
|
||||
return TransferMessage_MESSAGE_SEVERITY_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *TransferMessage) GetMessageText() string {
|
||||
if m != nil {
|
||||
return m.MessageText
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*TransferConfig)(nil), "google.cloud.bigquery.datatransfer.v1.TransferConfig")
|
||||
proto.RegisterType((*TransferRun)(nil), "google.cloud.bigquery.datatransfer.v1.TransferRun")
|
||||
proto.RegisterType((*TransferMessage)(nil), "google.cloud.bigquery.datatransfer.v1.TransferMessage")
|
||||
proto.RegisterEnum("google.cloud.bigquery.datatransfer.v1.TransferType", TransferType_name, TransferType_value)
|
||||
proto.RegisterEnum("google.cloud.bigquery.datatransfer.v1.TransferState", TransferState_name, TransferState_value)
|
||||
proto.RegisterEnum("google.cloud.bigquery.datatransfer.v1.TransferMessage_MessageSeverity", TransferMessage_MessageSeverity_name, TransferMessage_MessageSeverity_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/bigquery/datatransfer/v1/transfer.proto", fileDescriptor1)
|
||||
}
|
||||
|
||||
var fileDescriptor1 = []byte{
|
||||
// 910 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xdf, 0x6e, 0xe3, 0xc4,
|
||||
0x17, 0xfe, 0xb9, 0xf9, 0x7f, 0xf2, 0x67, 0xa3, 0xd1, 0x0f, 0x6a, 0xaa, 0x05, 0x42, 0x45, 0xa5,
|
||||
0xb0, 0x17, 0xb6, 0x5a, 0xba, 0x42, 0x68, 0x05, 0x28, 0x71, 0x9c, 0x60, 0xb4, 0xf5, 0x66, 0xc7,
|
||||
0x6e, 0x57, 0x8b, 0x2a, 0x59, 0x93, 0x78, 0xea, 0xb5, 0x94, 0xd8, 0xc1, 0x33, 0xee, 0x36, 0x97,
|
||||
0xbc, 0x0a, 0x97, 0x5c, 0xf0, 0x20, 0x5c, 0x70, 0xc9, 0x2b, 0xf0, 0x1a, 0x68, 0xc6, 0x76, 0x94,
|
||||
0xcd, 0x22, 0xa5, 0x95, 0xe0, 0x2a, 0x9e, 0x73, 0xbe, 0xef, 0x9b, 0x6f, 0xce, 0x39, 0x33, 0x81,
|
||||
0xf3, 0x20, 0x8e, 0x83, 0x05, 0xd5, 0xe7, 0x8b, 0x38, 0xf5, 0xf5, 0x59, 0x18, 0xfc, 0x94, 0xd2,
|
||||
0x64, 0xad, 0xfb, 0x84, 0x13, 0x9e, 0x90, 0x88, 0xdd, 0xd0, 0x44, 0xbf, 0x3d, 0xd5, 0x8b, 0x6f,
|
||||
0x6d, 0x95, 0xc4, 0x3c, 0x46, 0x27, 0x19, 0x4b, 0x93, 0x2c, 0xad, 0x60, 0x69, 0xdb, 0x2c, 0xed,
|
||||
0xf6, 0xf4, 0xe8, 0x71, 0x2e, 0x4e, 0x56, 0xa1, 0x4e, 0xa2, 0x28, 0xe6, 0x84, 0x87, 0x71, 0xc4,
|
||||
0x32, 0x91, 0x4d, 0x56, 0xae, 0x66, 0xe9, 0x8d, 0xce, 0x78, 0x92, 0xce, 0x79, 0x9e, 0xfd, 0x74,
|
||||
0x37, 0xcb, 0xc3, 0x25, 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, 0xd5, 0xe9, 0xef, 0x05,
|
||||
0xee, 0x5a, 0xe2, 0xae, 0x0b, 0xdc, 0xf5, 0x36, 0xee, 0xfa, 0xea, 0x74, 0x56, 0x95, 0xae, 0xbe,
|
||||
0xfc, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xf0, 0xc4, 0x0e, 0x43, 0x6d, 0x08, 0x00, 0x00,
|
||||
}
|
2225
vendor/google.golang.org/genproto/googleapis/cloud/bigquery/logging/v1/audit_data.pb.go
generated
vendored
Normal file
2225
vendor/google.golang.org/genproto/googleapis/cloud/bigquery/logging/v1/audit_data.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
688
vendor/google.golang.org/genproto/googleapis/cloud/billing/v1/cloud_billing.pb.go
generated
vendored
Normal file
688
vendor/google.golang.org/genproto/googleapis/cloud/billing/v1/cloud_billing.pb.go
generated
vendored
Normal file
@ -0,0 +1,688 @@
|
||||
// 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
|
||||
|
||||
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
|
||||
|
||||
// A billing account in [Google Cloud
|
||||
// Console](https://console.cloud.google.com/). You can assign a billing account
|
||||
// to one or more projects.
|
||||
type BillingAccount struct {
|
||||
// The resource name of the billing account. The resource name has the form
|
||||
// `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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *BillingAccount) GetOpen() bool {
|
||||
if m != nil {
|
||||
return m.Open
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *BillingAccount) GetDisplayName() string {
|
||||
if m != nil {
|
||||
return m.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Encapsulation of billing information for a Cloud Console project. A project
|
||||
// has at most one associated billing account at a time (but a billing account
|
||||
// can be assigned to multiple projects).
|
||||
type ProjectBillingInfo struct {
|
||||
// The resource name for the `ProjectBillingInfo`; has the form
|
||||
// `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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProjectBillingInfo) GetProjectId() string {
|
||||
if m != nil {
|
||||
return m.ProjectId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProjectBillingInfo) GetBillingAccountName() string {
|
||||
if m != nil {
|
||||
return m.BillingAccountName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProjectBillingInfo) GetBillingEnabled() bool {
|
||||
if m != nil {
|
||||
return m.BillingEnabled
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Request message for `GetBillingAccount`.
|
||||
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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Request message for `ListBillingAccounts`.
|
||||
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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetPageSize() int32 {
|
||||
if m != nil {
|
||||
return m.PageSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ListBillingAccountsRequest) GetPageToken() string {
|
||||
if m != nil {
|
||||
return m.PageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetBillingAccounts() []*BillingAccount {
|
||||
if m != nil {
|
||||
return m.BillingAccounts
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ListBillingAccountsResponse) GetNextPageToken() string {
|
||||
if m != nil {
|
||||
return m.NextPageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Request message for `ListProjectBillingInfo`.
|
||||
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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ListProjectBillingInfoRequest) GetPageSize() int32 {
|
||||
if m != nil {
|
||||
return m.PageSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ListProjectBillingInfoRequest) GetPageToken() string {
|
||||
if m != nil {
|
||||
return m.PageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Request message for `ListProjectBillingInfoResponse`.
|
||||
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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetProjectBillingInfo() []*ProjectBillingInfo {
|
||||
if m != nil {
|
||||
return m.ProjectBillingInfo
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ListProjectBillingInfoResponse) GetNextPageToken() string {
|
||||
if m != nil {
|
||||
return m.NextPageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Request message for `GetProjectBillingInfo`.
|
||||
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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Request message for `UpdateProjectBillingInfo`.
|
||||
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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *UpdateProjectBillingInfoRequest) GetProjectBillingInfo() *ProjectBillingInfo {
|
||||
if m != nil {
|
||||
return m.ProjectBillingInfo
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*BillingAccount)(nil), "google.cloud.billing.v1.BillingAccount")
|
||||
proto.RegisterType((*ProjectBillingInfo)(nil), "google.cloud.billing.v1.ProjectBillingInfo")
|
||||
proto.RegisterType((*GetBillingAccountRequest)(nil), "google.cloud.billing.v1.GetBillingAccountRequest")
|
||||
proto.RegisterType((*ListBillingAccountsRequest)(nil), "google.cloud.billing.v1.ListBillingAccountsRequest")
|
||||
proto.RegisterType((*ListBillingAccountsResponse)(nil), "google.cloud.billing.v1.ListBillingAccountsResponse")
|
||||
proto.RegisterType((*ListProjectBillingInfoRequest)(nil), "google.cloud.billing.v1.ListProjectBillingInfoRequest")
|
||||
proto.RegisterType((*ListProjectBillingInfoResponse)(nil), "google.cloud.billing.v1.ListProjectBillingInfoResponse")
|
||||
proto.RegisterType((*GetProjectBillingInfoRequest)(nil), "google.cloud.billing.v1.GetProjectBillingInfoRequest")
|
||||
proto.RegisterType((*UpdateProjectBillingInfoRequest)(nil), "google.cloud.billing.v1.UpdateProjectBillingInfoRequest")
|
||||
}
|
||||
|
||||
// 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
|
||||
|
||||
// Client API for CloudBilling service
|
||||
|
||||
type CloudBillingClient interface {
|
||||
// Gets information about a billing account. The current authenticated user
|
||||
// must be an [owner of the billing
|
||||
// account](https://support.google.com/cloud/answer/4430947).
|
||||
GetBillingAccount(ctx context.Context, in *GetBillingAccountRequest, opts ...grpc.CallOption) (*BillingAccount, error)
|
||||
// Lists the billing accounts that the current authenticated user
|
||||
// [owns](https://support.google.com/cloud/answer/4430947).
|
||||
ListBillingAccounts(ctx context.Context, in *ListBillingAccountsRequest, opts ...grpc.CallOption) (*ListBillingAccountsResponse, error)
|
||||
// Lists the projects associated with a billing account. The current
|
||||
// authenticated user must be an [owner of the billing
|
||||
// account](https://support.google.com/cloud/answer/4430947).
|
||||
ListProjectBillingInfo(ctx context.Context, in *ListProjectBillingInfoRequest, opts ...grpc.CallOption) (*ListProjectBillingInfoResponse, error)
|
||||
// Gets the billing information for a project. The current authenticated user
|
||||
// must have [permission to view the
|
||||
// project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
|
||||
// ).
|
||||
GetProjectBillingInfo(ctx context.Context, in *GetProjectBillingInfoRequest, opts ...grpc.CallOption) (*ProjectBillingInfo, error)
|
||||
// Sets or updates the billing account associated with a project. You specify
|
||||
// the new billing account by setting the `billing_account_name` in the
|
||||
// `ProjectBillingInfo` resource to the resource name of a billing account.
|
||||
// Associating a project with an open billing account enables billing on the
|
||||
// project and allows charges for resource usage. If the project already had a
|
||||
// billing account, this method changes the billing account used for resource
|
||||
// usage charges.
|
||||
//
|
||||
// *Note:* Incurred charges that have not yet been reported in the transaction
|
||||
// history of the Google Cloud Console may be billed to the new billing
|
||||
// account, even if the charge occurred before the new billing account was
|
||||
// assigned to the project.
|
||||
//
|
||||
// The current authenticated user must have ownership privileges for both the
|
||||
// [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
|
||||
// ) and the [billing
|
||||
// account](https://support.google.com/cloud/answer/4430947).
|
||||
//
|
||||
// You can disable billing on the project by setting the
|
||||
// `billing_account_name` field to empty. This action disassociates the
|
||||
// current billing account from the project. Any billable activity of your
|
||||
// in-use services will stop, and your application could stop functioning as
|
||||
// expected. Any unbilled charges to date will be billed to the previously
|
||||
// associated account. The current authenticated user must be either an owner
|
||||
// of the project or an owner of the billing account for the project.
|
||||
//
|
||||
// Note that associating a project with a *closed* billing account will have
|
||||
// much the same effect as disabling billing on the project: any paid
|
||||
// resources used by the project will be shut down. Thus, unless you wish to
|
||||
// disable billing, you should always call this method with the name of an
|
||||
// *open* billing account.
|
||||
UpdateProjectBillingInfo(ctx context.Context, in *UpdateProjectBillingInfoRequest, opts ...grpc.CallOption) (*ProjectBillingInfo, error)
|
||||
}
|
||||
|
||||
type cloudBillingClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewCloudBillingClient(cc *grpc.ClientConn) CloudBillingClient {
|
||||
return &cloudBillingClient{cc}
|
||||
}
|
||||
|
||||
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...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
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...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
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...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
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...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
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...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// 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
|
||||
// account](https://support.google.com/cloud/answer/4430947).
|
||||
GetBillingAccount(context.Context, *GetBillingAccountRequest) (*BillingAccount, error)
|
||||
// Lists the billing accounts that the current authenticated user
|
||||
// [owns](https://support.google.com/cloud/answer/4430947).
|
||||
ListBillingAccounts(context.Context, *ListBillingAccountsRequest) (*ListBillingAccountsResponse, error)
|
||||
// Lists the projects associated with a billing account. The current
|
||||
// authenticated user must be an [owner of the billing
|
||||
// account](https://support.google.com/cloud/answer/4430947).
|
||||
ListProjectBillingInfo(context.Context, *ListProjectBillingInfoRequest) (*ListProjectBillingInfoResponse, error)
|
||||
// Gets the billing information for a project. The current authenticated user
|
||||
// must have [permission to view the
|
||||
// project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
|
||||
// ).
|
||||
GetProjectBillingInfo(context.Context, *GetProjectBillingInfoRequest) (*ProjectBillingInfo, error)
|
||||
// Sets or updates the billing account associated with a project. You specify
|
||||
// the new billing account by setting the `billing_account_name` in the
|
||||
// `ProjectBillingInfo` resource to the resource name of a billing account.
|
||||
// Associating a project with an open billing account enables billing on the
|
||||
// project and allows charges for resource usage. If the project already had a
|
||||
// billing account, this method changes the billing account used for resource
|
||||
// usage charges.
|
||||
//
|
||||
// *Note:* Incurred charges that have not yet been reported in the transaction
|
||||
// history of the Google Cloud Console may be billed to the new billing
|
||||
// account, even if the charge occurred before the new billing account was
|
||||
// assigned to the project.
|
||||
//
|
||||
// The current authenticated user must have ownership privileges for both the
|
||||
// [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
|
||||
// ) and the [billing
|
||||
// account](https://support.google.com/cloud/answer/4430947).
|
||||
//
|
||||
// You can disable billing on the project by setting the
|
||||
// `billing_account_name` field to empty. This action disassociates the
|
||||
// current billing account from the project. Any billable activity of your
|
||||
// in-use services will stop, and your application could stop functioning as
|
||||
// expected. Any unbilled charges to date will be billed to the previously
|
||||
// associated account. The current authenticated user must be either an owner
|
||||
// of the project or an owner of the billing account for the project.
|
||||
//
|
||||
// Note that associating a project with a *closed* billing account will have
|
||||
// much the same effect as disabling billing on the project: any paid
|
||||
// resources used by the project will be shut down. Thus, unless you wish to
|
||||
// disable billing, you should always call this method with the name of an
|
||||
// *open* billing account.
|
||||
UpdateProjectBillingInfo(context.Context, *UpdateProjectBillingInfoRequest) (*ProjectBillingInfo, error)
|
||||
}
|
||||
|
||||
func RegisterCloudBillingServer(s *grpc.Server, srv CloudBillingServer) {
|
||||
s.RegisterService(&_CloudBilling_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _CloudBilling_GetBillingAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetBillingAccountRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(CloudBillingServer).GetBillingAccount(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.billing.v1.CloudBilling/GetBillingAccount",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(CloudBillingServer).GetBillingAccount(ctx, req.(*GetBillingAccountRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _CloudBilling_ListBillingAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListBillingAccountsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(CloudBillingServer).ListBillingAccounts(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.billing.v1.CloudBilling/ListBillingAccounts",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(CloudBillingServer).ListBillingAccounts(ctx, req.(*ListBillingAccountsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _CloudBilling_ListProjectBillingInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListProjectBillingInfoRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(CloudBillingServer).ListProjectBillingInfo(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.billing.v1.CloudBilling/ListProjectBillingInfo",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(CloudBillingServer).ListProjectBillingInfo(ctx, req.(*ListProjectBillingInfoRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _CloudBilling_GetProjectBillingInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetProjectBillingInfoRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(CloudBillingServer).GetProjectBillingInfo(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.billing.v1.CloudBilling/GetProjectBillingInfo",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(CloudBillingServer).GetProjectBillingInfo(ctx, req.(*GetProjectBillingInfoRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _CloudBilling_UpdateProjectBillingInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateProjectBillingInfoRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(CloudBillingServer).UpdateProjectBillingInfo(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.billing.v1.CloudBilling/UpdateProjectBillingInfo",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(CloudBillingServer).UpdateProjectBillingInfo(ctx, req.(*UpdateProjectBillingInfoRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _CloudBilling_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.cloud.billing.v1.CloudBilling",
|
||||
HandlerType: (*CloudBillingServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "GetBillingAccount",
|
||||
Handler: _CloudBilling_GetBillingAccount_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ListBillingAccounts",
|
||||
Handler: _CloudBilling_ListBillingAccounts_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ListProjectBillingInfo",
|
||||
Handler: _CloudBilling_ListProjectBillingInfo_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetProjectBillingInfo",
|
||||
Handler: _CloudBilling_GetProjectBillingInfo_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateProjectBillingInfo",
|
||||
Handler: _CloudBilling_UpdateProjectBillingInfo_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/cloud/billing/v1/cloud_billing.proto",
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/billing/v1/cloud_billing.proto", fileDescriptor0) }
|
||||
|
||||
var fileDescriptor0 = []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,
|
||||
0x15, 0xf0, 0xdf, 0xa8, 0x11, 0x63, 0x08, 0x89, 0x31, 0x9b, 0xaa, 0x89, 0xd1, 0x98, 0x66, 0x76,
|
||||
0x3b, 0x34, 0xd5, 0x32, 0x53, 0x77, 0x0a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0xc8, 0x36, 0xb9, 0xf6, 0x64, 0xc9, 0xe8, 0x49, 0xc1, 0x2b, 0x71, 0xdc, 0x1d,
|
||||
0xd3, 0x83, 0x5a, 0xb3, 0x02, 0xd3, 0xeb, 0xb4, 0x9c, 0x33, 0xd6, 0x07, 0x04, 0xc7, 0x1f, 0xc5,
|
||||
0x3e, 0x49, 0x68, 0x39, 0x47, 0x4d, 0x23, 0x4b, 0x61, 0xff, 0x3f, 0xf2, 0xca, 0xef, 0x41, 0x18,
|
||||
0xb9, 0x23, 0x7b, 0x35, 0x88, 0x3f, 0x22, 0x18, 0xef, 0xda, 0x0e, 0xbc, 0x6c, 0xe4, 0x31, 0x6d,
|
||||
0x52, 0xed, 0xa0, 0x09, 0xb5, 0x4e, 0xbe, 0xfb, 0xf9, 0xeb, 0x7d, 0xdf, 0x2c, 0x9e, 0x96, 0x3f,
|
||||
0x74, 0x6f, 0xe4, 0xd0, 0x37, 0x72, 0x99, 0x75, 0xce, 0xbe, 0xc5, 0x9f, 0x11, 0x4c, 0x14, 0xac,
|
||||
0x0a, 0x5e, 0x35, 0xd2, 0x98, 0x77, 0xb6, 0x76, 0xa1, 0x5c, 0x53, 0x9a, 0x3e, 0xab, 0xae, 0x84,
|
||||
0x4e, 0xe1, 0x09, 0x29, 0x34, 0xbf, 0x56, 0xdf, 0x11, 0x1c, 0x2d, 0x4e, 0x2f, 0xbe, 0xd4, 0x93,
|
||||
0xcd, 0x18, 0x87, 0xda, 0xe5, 0xd2, 0x7d, 0x5a, 0xe8, 0x39, 0x25, 0x74, 0x01, 0x9f, 0xea, 0xe5,
|
||||
0xa8, 0xa3, 0xd3, 0x20, 0xf0, 0x57, 0x04, 0x53, 0x85, 0x79, 0xc6, 0x17, 0x7b, 0x5d, 0xbb, 0x59,
|
||||
0x78, 0x99, 0x54, 0x5a, 0x67, 0x94, 0xd8, 0x13, 0x78, 0xfe, 0x9f, 0xd8, 0x4c, 0x99, 0x54, 0xd9,
|
||||
0xdc, 0x23, 0xe7, 0x07, 0x82, 0xaa, 0x69, 0x87, 0xf0, 0x15, 0x23, 0xe9, 0x3e, 0x6b, 0x57, 0x4e,
|
||||
0xee, 0x2d, 0x25, 0xf7, 0x6a, 0x6d, 0x7f, 0xb9, 0xd7, 0x0a, 0x17, 0x77, 0xad, 0x0d, 0xf5, 0x16,
|
||||
0xdf, 0x32, 0x51, 0xae, 0x8d, 0xef, 0xdd, 0xc6, 0x86, 0xfc, 0x62, 0x37, 0xd0, 0x93, 0x9b, 0xba,
|
||||
0x3a, 0xe0, 0x11, 0x61, 0x81, 0xcd, 0xdb, 0x81, 0x13, 0x50, 0xa6, 0xbe, 0xe7, 0x4e, 0x7a, 0x44,
|
||||
0xe2, 0x50, 0x74, 0xfd, 0x6d, 0xb8, 0xae, 0x1f, 0x9b, 0x83, 0xaa, 0x74, 0xf5, 0x4f, 0x00, 0x00,
|
||||
0x00, 0xff, 0xff, 0xc0, 0x01, 0x24, 0x32, 0x60, 0x08, 0x00, 0x00,
|
||||
}
|
1598
vendor/google.golang.org/genproto/googleapis/cloud/dataproc/v1/clusters.pb.go
generated
vendored
Normal file
1598
vendor/google.golang.org/genproto/googleapis/cloud/dataproc/v1/clusters.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2573
vendor/google.golang.org/genproto/googleapis/cloud/dataproc/v1/jobs.pb.go
generated
vendored
Normal file
2573
vendor/google.golang.org/genproto/googleapis/cloud/dataproc/v1/jobs.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
224
vendor/google.golang.org/genproto/googleapis/cloud/dataproc/v1/operations.pb.go
generated
vendored
Normal file
224
vendor/google.golang.org/genproto/googleapis/cloud/dataproc/v1/operations.pb.go
generated
vendored
Normal file
@ -0,0 +1,224 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/dataproc/v1/operations.proto
|
||||
|
||||
package dataproc
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
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
|
||||
|
||||
// The operation state.
|
||||
type ClusterOperationStatus_State int32
|
||||
|
||||
const (
|
||||
// Unused.
|
||||
ClusterOperationStatus_UNKNOWN ClusterOperationStatus_State = 0
|
||||
// The operation has been created.
|
||||
ClusterOperationStatus_PENDING ClusterOperationStatus_State = 1
|
||||
// The operation is running.
|
||||
ClusterOperationStatus_RUNNING ClusterOperationStatus_State = 2
|
||||
// The operation is done; either cancelled or completed.
|
||||
ClusterOperationStatus_DONE ClusterOperationStatus_State = 3
|
||||
)
|
||||
|
||||
var ClusterOperationStatus_State_name = map[int32]string{
|
||||
0: "UNKNOWN",
|
||||
1: "PENDING",
|
||||
2: "RUNNING",
|
||||
3: "DONE",
|
||||
}
|
||||
var ClusterOperationStatus_State_value = map[string]int32{
|
||||
"UNKNOWN": 0,
|
||||
"PENDING": 1,
|
||||
"RUNNING": 2,
|
||||
"DONE": 3,
|
||||
}
|
||||
|
||||
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}
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// 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_protobuf3.Timestamp `protobuf:"bytes,4,opt,name=state_start_time,json=stateStartTime" json:"state_start_time,omitempty"`
|
||||
}
|
||||
|
||||
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) GetState() ClusterOperationStatus_State {
|
||||
if m != nil {
|
||||
return m.State
|
||||
}
|
||||
return ClusterOperationStatus_UNKNOWN
|
||||
}
|
||||
|
||||
func (m *ClusterOperationStatus) GetInnerState() string {
|
||||
if m != nil {
|
||||
return m.InnerState
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ClusterOperationStatus) GetDetails() string {
|
||||
if m != nil {
|
||||
return m.Details
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ClusterOperationStatus) GetStateStartTime() *google_protobuf3.Timestamp {
|
||||
if m != nil {
|
||||
return m.StateStartTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetClusterName() string {
|
||||
if m != nil {
|
||||
return m.ClusterName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ClusterOperationMetadata) GetClusterUuid() string {
|
||||
if m != nil {
|
||||
return m.ClusterUuid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ClusterOperationMetadata) GetStatus() *ClusterOperationStatus {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ClusterOperationMetadata) GetStatusHistory() []*ClusterOperationStatus {
|
||||
if m != nil {
|
||||
return m.StatusHistory
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ClusterOperationMetadata) GetOperationType() string {
|
||||
if m != nil {
|
||||
return m.OperationType
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ClusterOperationMetadata) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ClusterOperationMetadata) GetLabels() map[string]string {
|
||||
if m != nil {
|
||||
return m.Labels
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ClusterOperationMetadata) GetWarnings() []string {
|
||||
if m != nil {
|
||||
return m.Warnings
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*ClusterOperationStatus)(nil), "google.cloud.dataproc.v1.ClusterOperationStatus")
|
||||
proto.RegisterType((*ClusterOperationMetadata)(nil), "google.cloud.dataproc.v1.ClusterOperationMetadata")
|
||||
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) }
|
||||
|
||||
var fileDescriptor2 = []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,
|
||||
0x24, 0x6e, 0x82, 0x4c, 0x05, 0x91, 0xd9, 0xe2, 0xc4, 0x99, 0x96, 0x6c, 0x75, 0xe0, 0x97, 0x72,
|
||||
0x6d, 0xce, 0x18, 0x4c, 0xee, 0xc2, 0xdd, 0xa5, 0x92, 0x9f, 0xe3, 0xef, 0xf4, 0x8b, 0xdc, 0x5d,
|
||||
0x52, 0xea, 0xe6, 0x40, 0xfd, 0xd4, 0x7b, 0xde, 0xf7, 0x79, 0x9e, 0xbe, 0xcf, 0xcb, 0xdb, 0x82,
|
||||
0x27, 0x09, 0x63, 0x49, 0x46, 0x82, 0x55, 0xc6, 0xca, 0x38, 0x88, 0xb1, 0xc4, 0x05, 0x67, 0xab,
|
||||
0x60, 0x7d, 0x14, 0xb0, 0x82, 0x70, 0x2c, 0x53, 0x46, 0x85, 0x5f, 0x70, 0x26, 0x19, 0x44, 0x86,
|
||||
0xea, 0x6b, 0xaa, 0xdf, 0x50, 0xfd, 0xf5, 0x91, 0x7b, 0x50, 0x9b, 0xe0, 0x22, 0x0d, 0x30, 0xa5,
|
||||
0x4c, 0x6e, 0xeb, 0xdc, 0x47, 0x75, 0x37, 0x63, 0x34, 0xe1, 0x25, 0xa5, 0x29, 0x4d, 0x6e, 0x98,
|
||||
0xbb, 0x0f, 0x6a, 0x92, 0x46, 0xcb, 0xf2, 0x4b, 0x40, 0xf2, 0x42, 0x56, 0x75, 0xf3, 0xf0, 0x7a,
|
||||
0x53, 0xa6, 0x39, 0x11, 0x12, 0xe7, 0x85, 0x21, 0x0c, 0x7f, 0xb4, 0xc0, 0xfd, 0xb7, 0x59, 0x29,
|
||||
0x24, 0xe1, 0xd3, 0xc6, 0xf9, 0x42, 0x62, 0x59, 0x0a, 0x78, 0x0e, 0x76, 0x85, 0xc4, 0x92, 0x20,
|
||||
0xcb, 0xb3, 0x46, 0xfd, 0xe3, 0xe7, 0xfe, 0x6d, 0x29, 0xfc, 0x3f, 0x1b, 0xf8, 0xea, 0x83, 0x44,
|
||||
0xc6, 0x04, 0x1e, 0x02, 0x27, 0xa5, 0x94, 0xf0, 0x85, 0xf1, 0x6c, 0x79, 0xd6, 0xa8, 0x1b, 0x01,
|
||||
0x5d, 0xd2, 0x3c, 0x88, 0x40, 0x3b, 0x26, 0x12, 0xa7, 0x99, 0x40, 0xb6, 0x6e, 0x36, 0x10, 0x8e,
|
||||
0xc1, 0x40, 0x8b, 0x94, 0x94, 0xcb, 0x85, 0x8a, 0x80, 0x76, 0x3c, 0x6b, 0xe4, 0x1c, 0xbb, 0xc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xbd, 0xfe,
|
||||
0xfb, 0xc9, 0x9a, 0xad, 0xfb, 0xe7, 0xda, 0x60, 0x42, 0x25, 0xaf, 0xa2, 0xda, 0x0d, 0xba, 0xa0,
|
||||
0xf3, 0x1d, 0x73, 0xf5, 0x23, 0x11, 0xa8, 0xef, 0xd9, 0xa3, 0x6e, 0xb4, 0xc1, 0xee, 0x0b, 0xe0,
|
||||
0x6c, 0x49, 0xe0, 0x00, 0xd8, 0xdf, 0x48, 0xa5, 0x0f, 0xbb, 0x1b, 0xa9, 0x27, 0xbc, 0x07, 0x76,
|
||||
0xd7, 0x38, 0x2b, 0x9b, 0xc3, 0x34, 0xe0, 0x65, 0xeb, 0xc4, 0x3a, 0x15, 0xe0, 0x60, 0xc5, 0xf2,
|
||||
0x5b, 0x67, 0x3c, 0xbd, 0xbb, 0x99, 0x4e, 0xcc, 0xd4, 0x15, 0xce, 0xac, 0xcf, 0x6f, 0x6a, 0x72,
|
||||
0xc2, 0x32, 0x4c, 0x13, 0x9f, 0xf1, 0x24, 0x48, 0x08, 0xd5, 0x37, 0x1a, 0x98, 0x16, 0x2e, 0x52,
|
||||
0x71, 0xf3, 0x9f, 0xe3, 0x55, 0xf3, 0x5e, 0xee, 0x69, 0xf2, 0xb3, 0x5f, 0x01, 0x00, 0x00, 0xff,
|
||||
0xff, 0x09, 0x4c, 0x3d, 0x35, 0x65, 0x04, 0x00, 0x00,
|
||||
}
|
1775
vendor/google.golang.org/genproto/googleapis/cloud/dataproc/v1beta2/clusters.pb.go
generated
vendored
Normal file
1775
vendor/google.golang.org/genproto/googleapis/cloud/dataproc/v1beta2/clusters.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2573
vendor/google.golang.org/genproto/googleapis/cloud/dataproc/v1beta2/jobs.pb.go
generated
vendored
Normal file
2573
vendor/google.golang.org/genproto/googleapis/cloud/dataproc/v1beta2/jobs.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
221
vendor/google.golang.org/genproto/googleapis/cloud/dataproc/v1beta2/operations.pb.go
generated
vendored
Normal file
221
vendor/google.golang.org/genproto/googleapis/cloud/dataproc/v1beta2/operations.pb.go
generated
vendored
Normal file
@ -0,0 +1,221 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/dataproc/v1beta2/operations.proto
|
||||
|
||||
package dataproc
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
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
|
||||
|
||||
// The operation state.
|
||||
type ClusterOperationStatus_State int32
|
||||
|
||||
const (
|
||||
// Unused.
|
||||
ClusterOperationStatus_UNKNOWN ClusterOperationStatus_State = 0
|
||||
// The operation has been created.
|
||||
ClusterOperationStatus_PENDING ClusterOperationStatus_State = 1
|
||||
// The operation is running.
|
||||
ClusterOperationStatus_RUNNING ClusterOperationStatus_State = 2
|
||||
// The operation is done; either cancelled or completed.
|
||||
ClusterOperationStatus_DONE ClusterOperationStatus_State = 3
|
||||
)
|
||||
|
||||
var ClusterOperationStatus_State_name = map[int32]string{
|
||||
0: "UNKNOWN",
|
||||
1: "PENDING",
|
||||
2: "RUNNING",
|
||||
3: "DONE",
|
||||
}
|
||||
var ClusterOperationStatus_State_value = map[string]int32{
|
||||
"UNKNOWN": 0,
|
||||
"PENDING": 1,
|
||||
"RUNNING": 2,
|
||||
"DONE": 3,
|
||||
}
|
||||
|
||||
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}
|
||||
}
|
||||
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetState() ClusterOperationStatus_State {
|
||||
if m != nil {
|
||||
return m.State
|
||||
}
|
||||
return ClusterOperationStatus_UNKNOWN
|
||||
}
|
||||
|
||||
func (m *ClusterOperationStatus) GetInnerState() string {
|
||||
if m != nil {
|
||||
return m.InnerState
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ClusterOperationStatus) GetDetails() string {
|
||||
if m != nil {
|
||||
return m.Details
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ClusterOperationStatus) GetStateStartTime() *google_protobuf5.Timestamp {
|
||||
if m != nil {
|
||||
return m.StateStartTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetClusterName() string {
|
||||
if m != nil {
|
||||
return m.ClusterName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ClusterOperationMetadata) GetClusterUuid() string {
|
||||
if m != nil {
|
||||
return m.ClusterUuid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ClusterOperationMetadata) GetStatus() *ClusterOperationStatus {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ClusterOperationMetadata) GetStatusHistory() []*ClusterOperationStatus {
|
||||
if m != nil {
|
||||
return m.StatusHistory
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ClusterOperationMetadata) GetOperationType() string {
|
||||
if m != nil {
|
||||
return m.OperationType
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ClusterOperationMetadata) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ClusterOperationMetadata) GetLabels() map[string]string {
|
||||
if m != nil {
|
||||
return m.Labels
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ClusterOperationMetadata) GetWarnings() []string {
|
||||
if m != nil {
|
||||
return m.Warnings
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*ClusterOperationStatus)(nil), "google.cloud.dataproc.v1beta2.ClusterOperationStatus")
|
||||
proto.RegisterType((*ClusterOperationMetadata)(nil), "google.cloud.dataproc.v1beta2.ClusterOperationMetadata")
|
||||
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) }
|
||||
|
||||
var fileDescriptor2 = []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,
|
||||
0x94, 0x60, 0x45, 0x58, 0xdd, 0xb7, 0xdd, 0x16, 0x15, 0xdd, 0xb4, 0x66, 0xb7, 0x08, 0x2a, 0x94,
|
||||
0x69, 0x33, 0xc6, 0x60, 0x3a, 0x13, 0x66, 0x26, 0x2b, 0x7d, 0xf0, 0x0b, 0xf8, 0x41, 0xfc, 0x9c,
|
||||
0x32, 0x33, 0x49, 0xa9, 0xa2, 0x0b, 0xee, 0x53, 0xe7, 0xde, 0x7b, 0xce, 0x99, 0x73, 0xa6, 0x97,
|
||||
0x80, 0x9f, 0x70, 0x9e, 0x64, 0x34, 0xd8, 0x64, 0xbc, 0x88, 0x83, 0x98, 0x28, 0x92, 0x0b, 0xbe,
|
||||
0x09, 0x6e, 0x1e, 0xaf, 0xa9, 0x22, 0x93, 0x80, 0xe7, 0x54, 0x10, 0x95, 0x72, 0x26, 0xfd, 0x5c,
|
||||
0x70, 0xc5, 0xd1, 0x43, 0x8b, 0xf7, 0x0d, 0xde, 0xaf, 0xf0, 0x7e, 0x89, 0x1f, 0x3e, 0x28, 0xe5,
|
||||
0x48, 0x9e, 0x06, 0x84, 0x31, 0xae, 0x0e, 0xc9, 0xc3, 0xe3, 0x72, 0x6a, 0xaa, 0x75, 0xf1, 0x29,
|
||||
0x50, 0xe9, 0x96, 0x4a, 0x45, 0xb6, 0xb9, 0x05, 0x8c, 0x7e, 0xd4, 0xe0, 0xfe, 0x45, 0x56, 0x48,
|
||||
0x45, 0xc5, 0xbc, 0xba, 0xf9, 0x4a, 0x11, 0x55, 0x48, 0xf4, 0x16, 0x9a, 0x52, 0x11, 0x45, 0xb1,
|
||||
0xe3, 0x39, 0xe3, 0xfe, 0xe4, 0xcc, 0xbf, 0xd5, 0x88, 0xff, 0x67, 0x15, 0x5f, 0xff, 0xd0, 0xc8,
|
||||
0x2a, 0xa1, 0x63, 0x70, 0x53, 0xc6, 0xa8, 0x58, 0x59, 0xe1, 0x9a, 0xe7, 0x8c, 0xbb, 0x11, 0x98,
|
||||
0x96, 0xc1, 0x21, 0x0c, 0xed, 0x98, 0x2a, 0x92, 0x66, 0x12, 0xd7, 0xcd, 0xb0, 0x2a, 0xd1, 0x14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 0xf0, 0x91, 0x4d,
|
||||
0x7d, 0xd0, 0x42, 0x1f, 0xa0, 0x95, 0x91, 0x35, 0xcd, 0x24, 0xee, 0x19, 0x7b, 0x17, 0xff, 0x68,
|
||||
0xaf, 0xfa, 0x13, 0xfc, 0x37, 0x46, 0x65, 0xc6, 0x94, 0xd8, 0x45, 0xa5, 0x24, 0x1a, 0x42, 0xe7,
|
||||
0x2b, 0x11, 0x2c, 0x65, 0x89, 0xc4, 0x7d, 0xaf, 0x3e, 0xee, 0x46, 0xfb, 0x7a, 0xf8, 0x0c, 0xdc,
|
||||
0x03, 0x0a, 0x1a, 0x40, 0xfd, 0x0b, 0xdd, 0x99, 0x65, 0xef, 0x46, 0xfa, 0x88, 0xee, 0x41, 0xf3,
|
||||
0x86, 0x64, 0x45, 0xb5, 0xa7, 0xb6, 0x78, 0x5e, 0x3b, 0x75, 0xce, 0xbf, 0xc1, 0xc9, 0x86, 0x6f,
|
||||
0x6f, 0x37, 0x7a, 0xfe, 0xff, 0xde, 0xa2, 0x5c, 0xe8, 0xcd, 0x5c, 0x38, 0xef, 0x67, 0x25, 0x23,
|
||||
0xe1, 0x19, 0x61, 0x89, 0xcf, 0x45, 0x12, 0x24, 0x94, 0x99, 0xbd, 0x0d, 0xec, 0x88, 0xe4, 0xa9,
|
||||
0xfc, 0xcb, 0xa7, 0xe1, 0xac, 0x6a, 0xac, 0x5b, 0x86, 0xf1, 0xe4, 0x67, 0x00, 0x00, 0x00, 0xff,
|
||||
0xff, 0x83, 0x10, 0x95, 0x5e, 0x4b, 0x04, 0x00, 0x00,
|
||||
}
|
1526
vendor/google.golang.org/genproto/googleapis/cloud/dataproc/v1beta2/workflow_templates.pb.go
generated
vendored
Normal file
1526
vendor/google.golang.org/genproto/googleapis/cloud/dataproc/v1beta2/workflow_templates.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1203
vendor/google.golang.org/genproto/googleapis/cloud/functions/v1beta2/functions.pb.go
generated
vendored
Normal file
1203
vendor/google.golang.org/genproto/googleapis/cloud/functions/v1beta2/functions.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
116
vendor/google.golang.org/genproto/googleapis/cloud/functions/v1beta2/operations.pb.go
generated
vendored
Normal file
116
vendor/google.golang.org/genproto/googleapis/cloud/functions/v1beta2/operations.pb.go
generated
vendored
Normal file
@ -0,0 +1,116 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/functions/v1beta2/operations.proto
|
||||
|
||||
package functions
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
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
|
||||
|
||||
// A type of an operation.
|
||||
type OperationType int32
|
||||
|
||||
const (
|
||||
// Unknown operation type.
|
||||
OperationType_OPERATION_UNSPECIFIED OperationType = 0
|
||||
// Triggered by CreateFunction call
|
||||
OperationType_CREATE_FUNCTION OperationType = 1
|
||||
// Triggered by UpdateFunction call
|
||||
OperationType_UPDATE_FUNCTION OperationType = 2
|
||||
// Triggered by DeleteFunction call.
|
||||
OperationType_DELETE_FUNCTION OperationType = 3
|
||||
)
|
||||
|
||||
var OperationType_name = map[int32]string{
|
||||
0: "OPERATION_UNSPECIFIED",
|
||||
1: "CREATE_FUNCTION",
|
||||
2: "UPDATE_FUNCTION",
|
||||
3: "DELETE_FUNCTION",
|
||||
}
|
||||
var OperationType_value = map[string]int32{
|
||||
"OPERATION_UNSPECIFIED": 0,
|
||||
"CREATE_FUNCTION": 1,
|
||||
"UPDATE_FUNCTION": 2,
|
||||
"DELETE_FUNCTION": 3,
|
||||
}
|
||||
|
||||
func (x OperationType) String() string {
|
||||
return proto.EnumName(OperationType_name, int32(x))
|
||||
}
|
||||
func (OperationType) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []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"`
|
||||
// Type of operation.
|
||||
Type OperationType `protobuf:"varint,2,opt,name=type,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"`
|
||||
}
|
||||
|
||||
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) GetTarget() string {
|
||||
if m != nil {
|
||||
return m.Target
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *OperationMetadataV1Beta2) GetType() OperationType {
|
||||
if m != nil {
|
||||
return m.Type
|
||||
}
|
||||
return OperationType_OPERATION_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *OperationMetadataV1Beta2) GetRequest() *google_protobuf1.Any {
|
||||
if m != nil {
|
||||
return m.Request
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*OperationMetadataV1Beta2)(nil), "google.cloud.functions.v1beta2.OperationMetadataV1Beta2")
|
||||
proto.RegisterEnum("google.cloud.functions.v1beta2.OperationType", OperationType_name, OperationType_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/functions/v1beta2/operations.proto", fileDescriptor1) }
|
||||
|
||||
var fileDescriptor1 = []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,
|
||||
0xb1, 0x0d, 0x78, 0xf4, 0x34, 0xa0, 0x18, 0x12, 0x85, 0x65, 0x82, 0x07, 0x2f, 0xa4, 0x40, 0x69,
|
||||
0x96, 0xcc, 0xb6, 0x6e, 0x9d, 0xc9, 0x5e, 0x82, 0x2f, 0xc4, 0xf7, 0x69, 0x56, 0xba, 0x05, 0x0e,
|
||||
0xea, 0xb1, 0x9f, 0xf6, 0xf3, 0xed, 0xf7, 0x97, 0x1f, 0xc4, 0x5c, 0x4a, 0x1e, 0x31, 0xbc, 0x8a,
|
||||
0x64, 0xba, 0xc6, 0x9b, 0x54, 0xac, 0x74, 0x28, 0x45, 0x82, 0x3f, 0xba, 0x4b, 0xa6, 0x69, 0x0f,
|
||||
0x4b, 0xc5, 0x62, 0x6a, 0x10, 0x52, 0xb1, 0xd4, 0xd2, 0xb9, 0xde, 0x0a, 0xc8, 0x08, 0xa8, 0x14,
|
||||
0x90, 0x15, 0x9a, 0x57, 0x36, 0x90, 0xaa, 0x10, 0x53, 0x21, 0xa4, 0xde, 0xb5, 0x9b, 0x0d, 0x7b,
|
||||
0x6b, 0x4e, 0xcb, 0x74, 0x83, 0xa9, 0xc8, 0xb6, 0x57, 0xed, 0x2f, 0x00, 0xdd, 0x69, 0xf1, 0xdb,
|
||||
0x13, 0xd3, 0x74, 0x4d, 0x35, 0x7d, 0xe9, 0xf6, 0xf3, 0x54, 0xe7, 0x12, 0xd6, 0x34, 0x8d, 0x39,
|
||||
0xd3, 0x2e, 0x68, 0x81, 0xce, 0x61, 0x60, 0x4f, 0x8e, 0x07, 0xff, 0xeb, 0x4c, 0x31, 0xb7, 0xd2,
|
||||
0x02, 0x9d, 0x93, 0xde, 0x2d, 0xfa, 0xbd, 0x1c, 0x2a, 0xf3, 0x67, 0x99, 0x62, 0x81, 0x51, 0x1d,
|
||||
0x04, 0x0f, 0x62, 0xf6, 0x9e, 0xb2, 0x44, 0xbb, 0xd5, 0x16, 0xe8, 0x1c, 0xf5, 0xce, 0x8b, 0x94,
|
||||
0xa2, 0x24, 0xf2, 0x44, 0x16, 0x14, 0x8f, 0x6e, 0x42, 0x78, 0xbc, 0x17, 0xe3, 0x34, 0xe0, 0xc5,
|
||||
0xd4, 0x27, 0x81, 0x37, 0x1b, 0x4f, 0x27, 0x8b, 0xf9, 0xe4, 0xd9, 0x27, 0x83, 0xf1, 0x68, 0x4c,
|
||||
0x86, 0xf5, 0x7f, 0xce, 0x19, 0x3c, 0x1d, 0x04, 0xc4, 0x9b, 0x91, 0xc5, 0x68, 0x3e, 0x19, 0xe4,
|
||||
0x0f, 0xea, 0x20, 0x87, 0x73, 0x7f, 0xb8, 0x07, 0x2b, 0x39, 0x1c, 0x92, 0x47, 0xb2, 0x0b, 0xab,
|
||||
0xfd, 0x4f, 0x00, 0xdb, 0x2b, 0xf9, 0xf6, 0xc7, 0x54, 0x7d, 0x77, 0x54, 0xa0, 0xb2, 0x58, 0xe2,
|
||||
0xe7, 0xdd, 0x7d, 0xf0, 0xfa, 0x60, 0x5d, 0x2e, 0x23, 0x2a, 0x38, 0x92, 0x31, 0xc7, 0x9c, 0x09,
|
||||
0x33, 0x99, 0x5d, 0x3d, 0x55, 0x61, 0xf2, 0xd3, 0xfa, 0xef, 0x4b, 0xb2, 0xac, 0x19, 0xe7, 0xee,
|
||||
0x3b, 0x00, 0x00, 0xff, 0xff, 0x3c, 0x8a, 0xb1, 0x83, 0x31, 0x02, 0x00, 0x00,
|
||||
}
|
1327
vendor/google.golang.org/genproto/googleapis/cloud/iot/v1/device_manager.pb.go
generated
vendored
Normal file
1327
vendor/google.golang.org/genproto/googleapis/cloud/iot/v1/device_manager.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1026
vendor/google.golang.org/genproto/googleapis/cloud/iot/v1/resources.pb.go
generated
vendored
Normal file
1026
vendor/google.golang.org/genproto/googleapis/cloud/iot/v1/resources.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2591
vendor/google.golang.org/genproto/googleapis/cloud/language/v1/language_service.pb.go
generated
vendored
Normal file
2591
vendor/google.golang.org/genproto/googleapis/cloud/language/v1/language_service.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2311
vendor/google.golang.org/genproto/googleapis/cloud/language/v1beta1/language_service.pb.go
generated
vendored
Normal file
2311
vendor/google.golang.org/genproto/googleapis/cloud/language/v1beta1/language_service.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2596
vendor/google.golang.org/genproto/googleapis/cloud/language/v1beta2/language_service.pb.go
generated
vendored
Normal file
2596
vendor/google.golang.org/genproto/googleapis/cloud/language/v1beta2/language_service.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
331
vendor/google.golang.org/genproto/googleapis/cloud/location/locations.pb.go
generated
vendored
Normal file
331
vendor/google.golang.org/genproto/googleapis/cloud/location/locations.pb.go
generated
vendored
Normal file
@ -0,0 +1,331 @@
|
||||
// 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
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import google_protobuf1 "github.com/golang/protobuf/ptypes/any"
|
||||
|
||||
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 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"`
|
||||
// The standard list filter.
|
||||
Filter string `protobuf:"bytes,2,opt,name=filter" json:"filter,omitempty"`
|
||||
// The standard list page size.
|
||||
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
|
||||
// The standard list page token.
|
||||
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ListLocationsRequest) GetFilter() string {
|
||||
if m != nil {
|
||||
return m.Filter
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ListLocationsRequest) GetPageSize() int32 {
|
||||
if m != nil {
|
||||
return m.PageSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ListLocationsRequest) GetPageToken() string {
|
||||
if m != nil {
|
||||
return m.PageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// The standard List next-page token.
|
||||
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
|
||||
}
|
||||
|
||||
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) GetLocations() []*Location {
|
||||
if m != nil {
|
||||
return m.Locations
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ListLocationsResponse) GetNextPageToken() string {
|
||||
if m != nil {
|
||||
return m.NextPageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// A resource that represents Google Cloud Platform location.
|
||||
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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Location) GetLocationId() string {
|
||||
if m != nil {
|
||||
return m.LocationId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Location) GetLabels() map[string]string {
|
||||
if m != nil {
|
||||
return m.Labels
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Location) GetMetadata() *google_protobuf1.Any {
|
||||
if m != nil {
|
||||
return m.Metadata
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*ListLocationsRequest)(nil), "google.cloud.location.ListLocationsRequest")
|
||||
proto.RegisterType((*ListLocationsResponse)(nil), "google.cloud.location.ListLocationsResponse")
|
||||
proto.RegisterType((*GetLocationRequest)(nil), "google.cloud.location.GetLocationRequest")
|
||||
proto.RegisterType((*Location)(nil), "google.cloud.location.Location")
|
||||
}
|
||||
|
||||
// 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
|
||||
|
||||
// Client API for Locations service
|
||||
|
||||
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.
|
||||
GetLocation(ctx context.Context, in *GetLocationRequest, opts ...grpc.CallOption) (*Location, error)
|
||||
}
|
||||
|
||||
type locationsClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewLocationsClient(cc *grpc.ClientConn) LocationsClient {
|
||||
return &locationsClient{cc}
|
||||
}
|
||||
|
||||
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...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
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...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// 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.
|
||||
GetLocation(context.Context, *GetLocationRequest) (*Location, error)
|
||||
}
|
||||
|
||||
func RegisterLocationsServer(s *grpc.Server, srv LocationsServer) {
|
||||
s.RegisterService(&_Locations_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _Locations_ListLocations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListLocationsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(LocationsServer).ListLocations(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.location.Locations/ListLocations",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(LocationsServer).ListLocations(ctx, req.(*ListLocationsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Locations_GetLocation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetLocationRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(LocationsServer).GetLocation(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.location.Locations/GetLocation",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(LocationsServer).GetLocation(ctx, req.(*GetLocationRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _Locations_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.cloud.location.Locations",
|
||||
HandlerType: (*LocationsServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "ListLocations",
|
||||
Handler: _Locations_ListLocations_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetLocation",
|
||||
Handler: _Locations_GetLocation_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
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,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f, 0xfe, 0x1d,
|
||||
0x00, 0x00, 0xff, 0xff, 0x0d, 0x57, 0x9e, 0xa7, 0x39, 0x04, 0x00, 0x00,
|
||||
}
|
1822
vendor/google.golang.org/genproto/googleapis/cloud/ml/v1/job_service.pb.go
generated
vendored
Normal file
1822
vendor/google.golang.org/genproto/googleapis/cloud/ml/v1/job_service.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1049
vendor/google.golang.org/genproto/googleapis/cloud/ml/v1/model_service.pb.go
generated
vendored
Normal file
1049
vendor/google.golang.org/genproto/googleapis/cloud/ml/v1/model_service.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
161
vendor/google.golang.org/genproto/googleapis/cloud/ml/v1/operation_metadata.pb.go
generated
vendored
Normal file
161
vendor/google.golang.org/genproto/googleapis/cloud/ml/v1/operation_metadata.pb.go
generated
vendored
Normal file
@ -0,0 +1,161 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/ml/v1/operation_metadata.proto
|
||||
|
||||
package ml
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
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
|
||||
|
||||
// The operation type.
|
||||
type OperationMetadata_OperationType int32
|
||||
|
||||
const (
|
||||
// Unspecified operation type.
|
||||
OperationMetadata_OPERATION_TYPE_UNSPECIFIED OperationMetadata_OperationType = 0
|
||||
// An operation to create a new version.
|
||||
OperationMetadata_CREATE_VERSION OperationMetadata_OperationType = 1
|
||||
// An operation to delete an existing version.
|
||||
OperationMetadata_DELETE_VERSION OperationMetadata_OperationType = 2
|
||||
// An operation to delete an existing model.
|
||||
OperationMetadata_DELETE_MODEL OperationMetadata_OperationType = 3
|
||||
)
|
||||
|
||||
var OperationMetadata_OperationType_name = map[int32]string{
|
||||
0: "OPERATION_TYPE_UNSPECIFIED",
|
||||
1: "CREATE_VERSION",
|
||||
2: "DELETE_VERSION",
|
||||
3: "DELETE_MODEL",
|
||||
}
|
||||
var OperationMetadata_OperationType_value = map[string]int32{
|
||||
"OPERATION_TYPE_UNSPECIFIED": 0,
|
||||
"CREATE_VERSION": 1,
|
||||
"DELETE_VERSION": 2,
|
||||
"DELETE_MODEL": 3,
|
||||
}
|
||||
|
||||
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}
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// The time operation processing started.
|
||||
StartTime *google_protobuf2.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime" 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// Contains the version associated with the operation.
|
||||
Version *Version `protobuf:"bytes,7,opt,name=version" json:"version,omitempty"`
|
||||
}
|
||||
|
||||
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) GetCreateTime() *google_protobuf2.Timestamp {
|
||||
if m != nil {
|
||||
return m.CreateTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *OperationMetadata) GetStartTime() *google_protobuf2.Timestamp {
|
||||
if m != nil {
|
||||
return m.StartTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *OperationMetadata) GetEndTime() *google_protobuf2.Timestamp {
|
||||
if m != nil {
|
||||
return m.EndTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *OperationMetadata) GetIsCancellationRequested() bool {
|
||||
if m != nil {
|
||||
return m.IsCancellationRequested
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *OperationMetadata) GetOperationType() OperationMetadata_OperationType {
|
||||
if m != nil {
|
||||
return m.OperationType
|
||||
}
|
||||
return OperationMetadata_OPERATION_TYPE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *OperationMetadata) GetModelName() string {
|
||||
if m != nil {
|
||||
return m.ModelName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *OperationMetadata) GetVersion() *Version {
|
||||
if m != nil {
|
||||
return m.Version
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*OperationMetadata)(nil), "google.cloud.ml.v1.OperationMetadata")
|
||||
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) }
|
||||
|
||||
var fileDescriptor2 = []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,
|
||||
0x02, 0x03, 0x99, 0xb4, 0xdb, 0xc3, 0xd6, 0xa7, 0x36, 0xd1, 0x20, 0xd0, 0xc6, 0xc6, 0xf5, 0x0a,
|
||||
0xeb, 0x8b, 0x51, 0xed, 0x3b, 0x23, 0x90, 0x25, 0xcf, 0x52, 0x0c, 0xfd, 0x2c, 0xfb, 0xb2, 0x23,
|
||||
0x92, 0x4d, 0x33, 0x52, 0xe8, 0xa3, 0xce, 0xfd, 0x9d, 0xab, 0xab, 0x7b, 0x84, 0x3e, 0x17, 0x4a,
|
||||
0x15, 0x02, 0x82, 0x4c, 0xa8, 0x55, 0x1e, 0x94, 0x22, 0x68, 0xa6, 0x81, 0xaa, 0xa0, 0x66, 0x86,
|
||||
0x2b, 0x99, 0x96, 0x60, 0x58, 0xce, 0x0c, 0x23, 0x55, 0xad, 0x8c, 0xc2, 0xd8, 0xc1, 0xc4, 0xc2,
|
||||
0xa4, 0x14, 0xa4, 0x99, 0xfa, 0xef, 0xda, 0x06, 0xac, 0xe2, 0x01, 0x93, 0x52, 0x19, 0xeb, 0xd4,
|
||||
0xce, 0xe1, 0x7f, 0x7a, 0xa4, 0x7d, 0xa9, 0x72, 0x10, 0xa9, 0x86, 0xba, 0xe1, 0x19, 0xb4, 0xdc,
|
||||
0xc7, 0x96, 0xb3, 0xa7, 0xbb, 0xd5, 0xef, 0xc0, 0xf0, 0x12, 0xb4, 0x61, 0x65, 0xe5, 0x80, 0xe3,
|
||||
0xbf, 0x7b, 0xe8, 0x65, 0x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, 0x22, 0x5c, 0xa6, 0xc9, 0xaf, 0x88, 0xa6, 0x3f, 0x97, 0xd7, 0x11, 0x9d, 0x2d, 0x7e,
|
||||
0x2c, 0xe8, 0x7c, 0xf8, 0x0c, 0x63, 0x34, 0x98, 0xc5, 0xf4, 0x3c, 0xa1, 0xe9, 0x0d, 0x8d, 0xaf,
|
||||
0x17, 0xe1, 0x72, 0xe8, 0xad, 0xb5, 0x39, 0xbd, 0xa4, 0x1b, 0xda, 0x0e, 0x1e, 0xa2, 0x17, 0xad,
|
||||
0x76, 0x15, 0xce, 0xe9, 0xe5, 0x70, 0xf7, 0x42, 0x20, 0x3f, 0x53, 0xe5, 0xd6, 0x54, 0xac, 0xe2,
|
||||
0xa4, 0x99, 0x5e, 0xbc, 0xda, 0x5a, 0x47, 0xb4, 0x0e, 0x29, 0xf2, 0x6e, 0xbf, 0xb4, 0x8e, 0x42,
|
||||
0x09, 0x26, 0x0b, 0xa2, 0xea, 0x22, 0x28, 0x40, 0xda, 0x08, 0x03, 0x57, 0x62, 0x15, 0xd7, 0x9b,
|
||||
0xbf, 0xf7, 0xac, 0x14, 0x77, 0xfb, 0x16, 0x38, 0xfd, 0x17, 0x00, 0x00, 0xff, 0xff, 0x03, 0xf9,
|
||||
0xcc, 0xf1, 0x3c, 0x03, 0x00, 0x00,
|
||||
}
|
343
vendor/google.golang.org/genproto/googleapis/cloud/ml/v1/prediction_service.pb.go
generated
vendored
Normal file
343
vendor/google.golang.org/genproto/googleapis/cloud/ml/v1/prediction_service.pb.go
generated
vendored
Normal file
@ -0,0 +1,343 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/ml/v1/prediction_service.proto
|
||||
|
||||
package ml
|
||||
|
||||
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 (
|
||||
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
|
||||
|
||||
// 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
|
||||
// field:
|
||||
//
|
||||
// <dl>
|
||||
// <dt>instances</dt>
|
||||
// <dd>A JSON array containing values representing the instances to use for
|
||||
// prediction.</dd>
|
||||
// </dl>
|
||||
//
|
||||
// The structure of each element of the instances list is determined by your
|
||||
// model's input definition. Instances can include named inputs or can contain
|
||||
// only unlabeled values.
|
||||
//
|
||||
// Not all data includes named inputs. Some instances will be simple
|
||||
// JSON values (boolean, number, or string). However, instances are often lists
|
||||
// of simple values, or complex nested lists. Here are some examples of request
|
||||
// bodies:
|
||||
//
|
||||
// CSV data with each row encoded as a string value:
|
||||
// <pre>
|
||||
// {"instances": ["1.0,true,\\"x\\"", "-2.0,false,\\"y\\""]}
|
||||
// </pre>
|
||||
// Plain text:
|
||||
// <pre>
|
||||
// {"instances": ["the quick brown fox", "la bruja le dio"]}
|
||||
// </pre>
|
||||
// Sentences encoded as lists of words (vectors of strings):
|
||||
// <pre>
|
||||
// {
|
||||
// "instances": [
|
||||
// ["the","quick","brown"],
|
||||
// ["la","bruja","le"],
|
||||
// ...
|
||||
// ]
|
||||
// }
|
||||
// </pre>
|
||||
// Floating point scalar values:
|
||||
// <pre>
|
||||
// {"instances": [0.0, 1.1, 2.2]}
|
||||
// </pre>
|
||||
// Vectors of integers:
|
||||
// <pre>
|
||||
// {
|
||||
// "instances": [
|
||||
// [0, 1, 2],
|
||||
// [3, 4, 5],
|
||||
// ...
|
||||
// ]
|
||||
// }
|
||||
// </pre>
|
||||
// Tensors (in this case, two-dimensional tensors):
|
||||
// <pre>
|
||||
// {
|
||||
// "instances": [
|
||||
// [
|
||||
// [0, 1, 2],
|
||||
// [3, 4, 5]
|
||||
// ],
|
||||
// ...
|
||||
// ]
|
||||
// }
|
||||
// </pre>
|
||||
// Images can be represented different ways. In this encoding scheme the first
|
||||
// two dimensions represent the rows and columns of the image, and the third
|
||||
// contains lists (vectors) of the R, G, and B values for each pixel.
|
||||
// <pre>
|
||||
// {
|
||||
// "instances": [
|
||||
// [
|
||||
// [
|
||||
// [138, 30, 66],
|
||||
// [130, 20, 56],
|
||||
// ...
|
||||
// ],
|
||||
// [
|
||||
// [126, 38, 61],
|
||||
// [122, 24, 57],
|
||||
// ...
|
||||
// ],
|
||||
// ...
|
||||
// ],
|
||||
// ...
|
||||
// ]
|
||||
// }
|
||||
// </pre>
|
||||
// JSON strings must be encoded as UTF-8. To send binary data, you must
|
||||
// base64-encode the data and mark it as binary. To mark a JSON string
|
||||
// as binary, replace it with a JSON object with a single attribute named `b64`:
|
||||
// <pre>{"b64": "..."} </pre>
|
||||
// For example:
|
||||
//
|
||||
// Two Serialized tf.Examples (fake data, for illustrative purposes only):
|
||||
// <pre>
|
||||
// {"instances": [{"b64": "X5ad6u"}, {"b64": "IA9j4nx"}]}
|
||||
// </pre>
|
||||
// Two JPEG image byte strings (fake data, for illustrative purposes only):
|
||||
// <pre>
|
||||
// {"instances": [{"b64": "ASa8asdf"}, {"b64": "JLK7ljk3"}]}
|
||||
// </pre>
|
||||
// If your data includes named references, format each instance as a JSON object
|
||||
// with the named references as the keys:
|
||||
//
|
||||
// JSON input data to be preprocessed:
|
||||
// <pre>
|
||||
// {
|
||||
// "instances": [
|
||||
// {
|
||||
// "a": 1.0,
|
||||
// "b": true,
|
||||
// "c": "x"
|
||||
// },
|
||||
// {
|
||||
// "a": -2.0,
|
||||
// "b": false,
|
||||
// "c": "y"
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
// </pre>
|
||||
// Some models have an underlying TensorFlow graph that accepts multiple input
|
||||
// tensors. In this case, you should use the names of JSON name/value pairs to
|
||||
// identify the input tensors, as shown in the following exmaples:
|
||||
//
|
||||
// For a graph with input tensor aliases "tag" (string) and "image"
|
||||
// (base64-encoded string):
|
||||
// <pre>
|
||||
// {
|
||||
// "instances": [
|
||||
// {
|
||||
// "tag": "beach",
|
||||
// "image": {"b64": "ASa8asdf"}
|
||||
// },
|
||||
// {
|
||||
// "tag": "car",
|
||||
// "image": {"b64": "JLK7ljk3"}
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
// </pre>
|
||||
// For a graph with input tensor aliases "tag" (string) and "image"
|
||||
// (3-dimensional array of 8-bit ints):
|
||||
// <pre>
|
||||
// {
|
||||
// "instances": [
|
||||
// {
|
||||
// "tag": "beach",
|
||||
// "image": [
|
||||
// [
|
||||
// [138, 30, 66],
|
||||
// [130, 20, 56],
|
||||
// ...
|
||||
// ],
|
||||
// [
|
||||
// [126, 38, 61],
|
||||
// [122, 24, 57],
|
||||
// ...
|
||||
// ],
|
||||
// ...
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// "tag": "car",
|
||||
// "image": [
|
||||
// [
|
||||
// [255, 0, 102],
|
||||
// [255, 0, 97],
|
||||
// ...
|
||||
// ],
|
||||
// [
|
||||
// [254, 1, 101],
|
||||
// [254, 2, 93],
|
||||
// ...
|
||||
// ],
|
||||
// ...
|
||||
// ]
|
||||
// },
|
||||
// ...
|
||||
// ]
|
||||
// }
|
||||
// </pre>
|
||||
// If the call is successful, the response body will contain one prediction
|
||||
// entry per instance in the request body. If prediction fails for any
|
||||
// instance, the response body will contain no predictions and will contian
|
||||
// a single error entry instead.
|
||||
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"`
|
||||
//
|
||||
// Required. The prediction request body.
|
||||
HttpBody *google_api3.HttpBody `protobuf:"bytes,2,opt,name=http_body,json=httpBody" json:"http_body,omitempty"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PredictRequest) GetHttpBody() *google_api3.HttpBody {
|
||||
if m != nil {
|
||||
return m.HttpBody
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*PredictRequest)(nil), "google.cloud.ml.v1.PredictRequest")
|
||||
}
|
||||
|
||||
// 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
|
||||
|
||||
// Client API for OnlinePredictionService service
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
type onlinePredictionServiceClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewOnlinePredictionServiceClient(cc *grpc.ClientConn) OnlinePredictionServiceClient {
|
||||
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...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// 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)
|
||||
}
|
||||
|
||||
func RegisterOnlinePredictionServiceServer(s *grpc.Server, srv OnlinePredictionServiceServer) {
|
||||
s.RegisterService(&_OnlinePredictionService_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _OnlinePredictionService_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.(OnlinePredictionServiceServer).Predict(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.ml.v1.OnlinePredictionService/Predict",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(OnlinePredictionServiceServer).Predict(ctx, req.(*PredictRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _OnlinePredictionService_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.cloud.ml.v1.OnlinePredictionService",
|
||||
HandlerType: (*OnlinePredictionServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Predict",
|
||||
Handler: _OnlinePredictionService_Predict_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/cloud/ml/v1/prediction_service.proto",
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/ml/v1/prediction_service.proto", fileDescriptor3) }
|
||||
|
||||
var fileDescriptor3 = []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,
|
||||
0xd0, 0xe9, 0x69, 0xe2, 0x65, 0x27, 0x6f, 0x96, 0x79, 0x10, 0xbc, 0x8c, 0xac, 0x0d, 0x59, 0x24,
|
||||
0xcd, 0x1b, 0xdb, 0xac, 0x30, 0xc4, 0x8b, 0x37, 0xcf, 0x7e, 0x34, 0xbf, 0x82, 0x1f, 0x44, 0xd2,
|
||||
0x04, 0x99, 0xd4, 0xdb, 0x4b, 0xde, 0xe7, 0x79, 0x9f, 0x3f, 0x41, 0x17, 0x02, 0x40, 0x28, 0x4e,
|
||||
0x73, 0x05, 0xeb, 0x82, 0x96, 0x8a, 0x36, 0x29, 0x35, 0x15, 0x2f, 0x64, 0x6e, 0x25, 0xe8, 0x45,
|
||||
0xcd, 0xab, 0x46, 0xe6, 0x9c, 0x98, 0x0a, 0x2c, 0x60, 0xec, 0xc1, 0xa4, 0x05, 0x93, 0x52, 0x91,
|
||||
0x26, 0x8d, 0x4f, 0xc2, 0x01, 0x66, 0x24, 0x65, 0x5a, 0x83, 0x65, 0x8e, 0x58, 0x7b, 0x46, 0x7c,
|
||||
0xbc, 0xb5, 0x5d, 0x59, 0x6b, 0x96, 0x50, 0x6c, 0xfc, 0x2a, 0x79, 0x40, 0xfb, 0x99, 0x17, 0x9a,
|
||||
0xf3, 0xe7, 0x35, 0xaf, 0x2d, 0xc6, 0xe8, 0x9f, 0x66, 0x25, 0x1f, 0x44, 0xc3, 0x68, 0xd4, 0x9f,
|
||||
0xb7, 0x33, 0x4e, 0x51, 0xdf, 0xf1, 0x16, 0x8e, 0x38, 0xe8, 0x0d, 0xa3, 0xd1, 0xde, 0xe4, 0x80,
|
||||
0x04, 0x1b, 0xcc, 0x48, 0x72, 0x6b, 0xad, 0x99, 0x41, 0xb1, 0x99, 0xef, 0xae, 0xc2, 0x34, 0x79,
|
||||
0x8f, 0xd0, 0xd1, 0x9d, 0x56, 0x52, 0xf3, 0xec, 0x27, 0xc8, 0xbd, 0xcf, 0x81, 0x35, 0xda, 0x09,
|
||||
0x8f, 0x38, 0x21, 0xdd, 0x34, 0xe4, 0xb7, 0xa3, 0xf8, 0x4f, 0xa9, 0xe4, 0xfc, 0xed, 0xf3, 0xeb,
|
||||
0xa3, 0x77, 0x96, 0x9c, 0xba, 0xb2, 0x5e, 0x9c, 0xcd, 0x1b, 0x53, 0xc1, 0x13, 0xcf, 0x6d, 0x4d,
|
||||
0xc7, 0xe3, 0xd7, 0x69, 0xe8, 0x6f, 0x1a, 0x8d, 0x67, 0x0a, 0xc5, 0x39, 0x94, 0x1d, 0x25, 0x77,
|
||||
0xae, 0x49, 0x67, 0x87, 0x1d, 0x83, 0x99, 0xab, 0x26, 0x8b, 0x1e, 0xaf, 0x02, 0x43, 0x80, 0x62,
|
||||
0x5a, 0x10, 0xa8, 0x04, 0x15, 0x5c, 0xb7, 0xc5, 0x51, 0xbf, 0x62, 0x46, 0xd6, 0xdb, 0xbf, 0x76,
|
||||
0x5d, 0xaa, 0xe5, 0xff, 0x16, 0x70, 0xf9, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x81, 0x8e, 0x25, 0xca,
|
||||
0xd5, 0x01, 0x00, 0x00,
|
||||
}
|
177
vendor/google.golang.org/genproto/googleapis/cloud/ml/v1/project_service.pb.go
generated
vendored
Normal file
177
vendor/google.golang.org/genproto/googleapis/cloud/ml/v1/project_service.pb.go
generated
vendored
Normal file
@ -0,0 +1,177 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/ml/v1/project_service.proto
|
||||
|
||||
package ml
|
||||
|
||||
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
|
||||
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// The project number for `service_account`.
|
||||
ServiceAccountProject int64 `protobuf:"varint,2,opt,name=service_account_project,json=serviceAccountProject" json:"service_account_project,omitempty"`
|
||||
}
|
||||
|
||||
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) GetServiceAccount() string {
|
||||
if m != nil {
|
||||
return m.ServiceAccount
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *GetConfigResponse) GetServiceAccountProject() int64 {
|
||||
if m != nil {
|
||||
return m.ServiceAccountProject
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*GetConfigRequest)(nil), "google.cloud.ml.v1.GetConfigRequest")
|
||||
proto.RegisterType((*GetConfigResponse)(nil), "google.cloud.ml.v1.GetConfigResponse")
|
||||
}
|
||||
|
||||
// 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
|
||||
|
||||
// Client API for ProjectManagementService service
|
||||
|
||||
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
|
||||
// the Google Cloud Storage location where you put your model training code
|
||||
// for training the model with Google Cloud Machine Learning.
|
||||
GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error)
|
||||
}
|
||||
|
||||
type projectManagementServiceClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewProjectManagementServiceClient(cc *grpc.ClientConn) ProjectManagementServiceClient {
|
||||
return &projectManagementServiceClient{cc}
|
||||
}
|
||||
|
||||
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...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// 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
|
||||
// the Google Cloud Storage location where you put your model training code
|
||||
// for training the model with Google Cloud Machine Learning.
|
||||
GetConfig(context.Context, *GetConfigRequest) (*GetConfigResponse, error)
|
||||
}
|
||||
|
||||
func RegisterProjectManagementServiceServer(s *grpc.Server, srv ProjectManagementServiceServer) {
|
||||
s.RegisterService(&_ProjectManagementService_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _ProjectManagementService_GetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetConfigRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ProjectManagementServiceServer).GetConfig(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.ml.v1.ProjectManagementService/GetConfig",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ProjectManagementServiceServer).GetConfig(ctx, req.(*GetConfigRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _ProjectManagementService_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.cloud.ml.v1.ProjectManagementService",
|
||||
HandlerType: (*ProjectManagementServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "GetConfig",
|
||||
Handler: _ProjectManagementService_GetConfig_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/cloud/ml/v1/project_service.proto",
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/ml/v1/project_service.proto", fileDescriptor4) }
|
||||
|
||||
var fileDescriptor4 = []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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f, 0xc1, 0x20, 0x0e, 0x0f, 0x3f, 0x32, 0xd2, 0x48, 0xf5, 0xb5, 0xb0, 0x42,
|
||||
0x82, 0x01, 0x1b, 0x6e, 0x22, 0x4a, 0x5f, 0x33, 0x52, 0xff, 0xf5, 0x44, 0x77, 0xd9, 0x7c, 0x76,
|
||||
0x36, 0x1b, 0xad, 0xb9, 0xf7, 0x0f, 0x15, 0x83, 0xb5, 0x3b, 0x6f, 0x9f, 0x5f, 0xef, 0xb5, 0x1d,
|
||||
0xba, 0x3d, 0x59, 0xf5, 0xf3, 0x64, 0x01, 0xe7, 0xc9, 0xaf, 0xe7, 0x07, 0x2f, 0xa7, 0xf2, 0x47,
|
||||
0xd0, 0x57, 0xa4, 0x99, 0xa3, 0x99, 0x7b, 0x54, 0x38, 0xc5, 0xca, 0x5e, 0x7f, 0x3d, 0x79, 0x4f,
|
||||
0x8e, 0x07, 0x93, 0x8d, 0x0f, 0xb2, 0xdb, 0xe3, 0x84, 0x4b, 0xd4, 0xc2, 0x4a, 0x86, 0x85, 0xe4,
|
||||
0x12, 0x6c, 0x75, 0x0f, 0x1e, 0x47, 0xc2, 0x29, 0x3f, 0x7d, 0xee, 0x33, 0xa3, 0xef, 0x96, 0x2a,
|
||||
0xe0, 0xe8, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xd0, 0xa5, 0x43, 0x33, 0x0e, 0x02, 0x00, 0x00,
|
||||
}
|
1823
vendor/google.golang.org/genproto/googleapis/cloud/ml/v1beta1/job_service.pb.go
generated
vendored
Normal file
1823
vendor/google.golang.org/genproto/googleapis/cloud/ml/v1beta1/job_service.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1050
vendor/google.golang.org/genproto/googleapis/cloud/ml/v1beta1/model_service.pb.go
generated
vendored
Normal file
1050
vendor/google.golang.org/genproto/googleapis/cloud/ml/v1beta1/model_service.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
161
vendor/google.golang.org/genproto/googleapis/cloud/ml/v1beta1/operation_metadata.pb.go
generated
vendored
Normal file
161
vendor/google.golang.org/genproto/googleapis/cloud/ml/v1beta1/operation_metadata.pb.go
generated
vendored
Normal file
@ -0,0 +1,161 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/ml/v1beta1/operation_metadata.proto
|
||||
|
||||
package ml
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
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
|
||||
|
||||
// The operation type.
|
||||
type OperationMetadata_OperationType int32
|
||||
|
||||
const (
|
||||
// Unspecified operation type.
|
||||
OperationMetadata_OPERATION_TYPE_UNSPECIFIED OperationMetadata_OperationType = 0
|
||||
// An operation to create a new version.
|
||||
OperationMetadata_CREATE_VERSION OperationMetadata_OperationType = 1
|
||||
// An operation to delete an existing version.
|
||||
OperationMetadata_DELETE_VERSION OperationMetadata_OperationType = 2
|
||||
// An operation to delete an existing model.
|
||||
OperationMetadata_DELETE_MODEL OperationMetadata_OperationType = 3
|
||||
)
|
||||
|
||||
var OperationMetadata_OperationType_name = map[int32]string{
|
||||
0: "OPERATION_TYPE_UNSPECIFIED",
|
||||
1: "CREATE_VERSION",
|
||||
2: "DELETE_VERSION",
|
||||
3: "DELETE_MODEL",
|
||||
}
|
||||
var OperationMetadata_OperationType_value = map[string]int32{
|
||||
"OPERATION_TYPE_UNSPECIFIED": 0,
|
||||
"CREATE_VERSION": 1,
|
||||
"DELETE_VERSION": 2,
|
||||
"DELETE_MODEL": 3,
|
||||
}
|
||||
|
||||
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}
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// The time operation processing started.
|
||||
StartTime *google_protobuf2.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime" 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"`
|
||||
// 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"`
|
||||
// The operation type.
|
||||
OperationType OperationMetadata_OperationType `protobuf:"varint,5,opt,name=operation_type,json=operationType,enum=google.cloud.ml.v1beta1.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"`
|
||||
// Contains the version associated with the operation.
|
||||
Version *Version `protobuf:"bytes,7,opt,name=version" json:"version,omitempty"`
|
||||
}
|
||||
|
||||
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) GetCreateTime() *google_protobuf2.Timestamp {
|
||||
if m != nil {
|
||||
return m.CreateTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *OperationMetadata) GetStartTime() *google_protobuf2.Timestamp {
|
||||
if m != nil {
|
||||
return m.StartTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *OperationMetadata) GetEndTime() *google_protobuf2.Timestamp {
|
||||
if m != nil {
|
||||
return m.EndTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *OperationMetadata) GetIsCancellationRequested() bool {
|
||||
if m != nil {
|
||||
return m.IsCancellationRequested
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *OperationMetadata) GetOperationType() OperationMetadata_OperationType {
|
||||
if m != nil {
|
||||
return m.OperationType
|
||||
}
|
||||
return OperationMetadata_OPERATION_TYPE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *OperationMetadata) GetModelName() string {
|
||||
if m != nil {
|
||||
return m.ModelName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *OperationMetadata) GetVersion() *Version {
|
||||
if m != nil {
|
||||
return m.Version
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*OperationMetadata)(nil), "google.cloud.ml.v1beta1.OperationMetadata")
|
||||
proto.RegisterEnum("google.cloud.ml.v1beta1.OperationMetadata_OperationType", OperationMetadata_OperationType_name, OperationMetadata_OperationType_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/ml/v1beta1/operation_metadata.proto", fileDescriptor2) }
|
||||
|
||||
var fileDescriptor2 = []byte{
|
||||
// 457 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, 0x1b, 0x75, 0x0d, 0x99, 0x1f, 0x56, 0x2f, 0x6c, 0xab, 0xe9, 0x53,
|
||||
0x60, 0x60, 0xaf, 0x1d, 0x83, 0x75, 0x7d, 0x6a, 0x13, 0x0d, 0x02, 0x6d, 0x6c, 0x54, 0xaf, 0xb0,
|
||||
0xbd, 0x18, 0xc5, 0xbe, 0x33, 0x02, 0xfd, 0xf1, 0x2c, 0x25, 0xd0, 0x0f, 0xb4, 0xef, 0x39, 0x22,
|
||||
0xd9, 0x34, 0x23, 0x84, 0x3e, 0xea, 0xdc, 0xf3, 0xbb, 0xf7, 0xf8, 0x5e, 0xa3, 0x4f, 0x95, 0x52,
|
||||
0x15, 0x87, 0xb8, 0xe0, 0x6a, 0x51, 0xc6, 0x82, 0xc7, 0xcb, 0xf3, 0x39, 0x18, 0x7a, 0x1e, 0xab,
|
||||
0x1a, 0x1a, 0x6a, 0x98, 0x92, 0xb9, 0x00, 0x43, 0x4b, 0x6a, 0x68, 0x54, 0x37, 0xca, 0x28, 0xff,
|
||||
0xc4, 0x11, 0x91, 0x25, 0x22, 0xc1, 0xa3, 0x96, 0x18, 0xbe, 0x6b, 0x5b, 0xd1, 0x9a, 0xc5, 0x54,
|
||||
0x4a, 0x65, 0x2c, 0xae, 0x1d, 0x36, 0xfc, 0xb8, 0x6d, 0x90, 0x50, 0x25, 0xf0, 0x5c, 0x43, 0xb3,
|
||||
0x64, 0x05, 0xb4, 0xe6, 0xd3, 0xd6, 0x6c, 0x5f, 0xf3, 0xc5, 0xef, 0xd8, 0x30, 0x01, 0xda, 0x50,
|
||||
0x51, 0x3b, 0xc3, 0xd9, 0xdf, 0x3d, 0xf4, 0x3a, 0xe9, 0x12, 0xde, 0xb5, 0x01, 0xfd, 0x2b, 0x74,
|
||||
0x54, 0x34, 0x40, 0x0d, 0xe4, 0x2b, 0x7f, 0xe0, 0x85, 0xde, 0xe8, 0xe8, 0x62, 0x18, 0xb5, 0x81,
|
||||
0xbb, 0x66, 0x51, 0xd6, 0x35, 0x23, 0xc8, 0xd9, 0x57, 0x82, 0x7f, 0x89, 0x90, 0x36, 0xb4, 0x31,
|
||||
0x8e, 0xdd, 0x79, 0x96, 0xed, 0x59, 0xb7, 0x45, 0xbf, 0xa0, 0x43, 0x90, 0xa5, 0x03, 0x77, 0x9f,
|
||||
0x05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
||||
0x8d, 0xd6, 0xac, 0x8b, 0x77, 0xf3, 0x66, 0x63, 0x31, 0xe9, 0xea, 0x66, 0xa9, 0xf7, 0xeb, 0xb2,
|
||||
0xc5, 0x2a, 0xc5, 0xa9, 0xac, 0x22, 0xd5, 0x54, 0x71, 0x05, 0xd2, 0x5e, 0x34, 0x76, 0x25, 0x5a,
|
||||
0x33, 0xbd, 0xf1, 0x47, 0x5f, 0x09, 0x3e, 0xdf, 0xb7, 0xae, 0xcf, 0xff, 0x02, 0x00, 0x00, 0xff,
|
||||
0xff, 0x89, 0xf8, 0x21, 0xa7, 0x5f, 0x03, 0x00, 0x00,
|
||||
}
|
343
vendor/google.golang.org/genproto/googleapis/cloud/ml/v1beta1/prediction_service.pb.go
generated
vendored
Normal file
343
vendor/google.golang.org/genproto/googleapis/cloud/ml/v1beta1/prediction_service.pb.go
generated
vendored
Normal file
@ -0,0 +1,343 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/ml/v1beta1/prediction_service.proto
|
||||
|
||||
package ml
|
||||
|
||||
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 (
|
||||
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
|
||||
|
||||
// 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
|
||||
// field:
|
||||
//
|
||||
// <dl>
|
||||
// <dt>instances</dt>
|
||||
// <dd>A JSON array containing values representing the instances to use for
|
||||
// prediction.</dd>
|
||||
// </dl>
|
||||
//
|
||||
// The structure of each element of the instances list is determined by your
|
||||
// model's input definition. Instances can include named inputs or can contain
|
||||
// only unlabeled values.
|
||||
//
|
||||
// Not all data includes named inputs. Some instances will be simple
|
||||
// JSON values (boolean, number, or string). However, instances are often lists
|
||||
// of simple values, or complex nested lists. Here are some examples of request
|
||||
// bodies:
|
||||
//
|
||||
// CSV data with each row encoded as a string value:
|
||||
// <pre>
|
||||
// {"instances": ["1.0,true,\\"x\\"", "-2.0,false,\\"y\\""]}
|
||||
// </pre>
|
||||
// Plain text:
|
||||
// <pre>
|
||||
// {"instances": ["the quick brown fox", "la bruja le dio"]}
|
||||
// </pre>
|
||||
// Sentences encoded as lists of words (vectors of strings):
|
||||
// <pre>
|
||||
// {
|
||||
// "instances": [
|
||||
// ["the","quick","brown"],
|
||||
// ["la","bruja","le"],
|
||||
// ...
|
||||
// ]
|
||||
// }
|
||||
// </pre>
|
||||
// Floating point scalar values:
|
||||
// <pre>
|
||||
// {"instances": [0.0, 1.1, 2.2]}
|
||||
// </pre>
|
||||
// Vectors of integers:
|
||||
// <pre>
|
||||
// {
|
||||
// "instances": [
|
||||
// [0, 1, 2],
|
||||
// [3, 4, 5],
|
||||
// ...
|
||||
// ]
|
||||
// }
|
||||
// </pre>
|
||||
// Tensors (in this case, two-dimensional tensors):
|
||||
// <pre>
|
||||
// {
|
||||
// "instances": [
|
||||
// [
|
||||
// [0, 1, 2],
|
||||
// [3, 4, 5]
|
||||
// ],
|
||||
// ...
|
||||
// ]
|
||||
// }
|
||||
// </pre>
|
||||
// Images can be represented different ways. In this encoding scheme the first
|
||||
// two dimensions represent the rows and columns of the image, and the third
|
||||
// contains lists (vectors) of the R, G, and B values for each pixel.
|
||||
// <pre>
|
||||
// {
|
||||
// "instances": [
|
||||
// [
|
||||
// [
|
||||
// [138, 30, 66],
|
||||
// [130, 20, 56],
|
||||
// ...
|
||||
// ],
|
||||
// [
|
||||
// [126, 38, 61],
|
||||
// [122, 24, 57],
|
||||
// ...
|
||||
// ],
|
||||
// ...
|
||||
// ],
|
||||
// ...
|
||||
// ]
|
||||
// }
|
||||
// </pre>
|
||||
// JSON strings must be encoded as UTF-8. To send binary data, you must
|
||||
// base64-encode the data and mark it as binary. To mark a JSON string
|
||||
// as binary, replace it with a JSON object with a single attribute named `b64`:
|
||||
// <pre>{"b64": "..."} </pre>
|
||||
// For example:
|
||||
//
|
||||
// Two Serialized tf.Examples (fake data, for illustrative purposes only):
|
||||
// <pre>
|
||||
// {"instances": [{"b64": "X5ad6u"}, {"b64": "IA9j4nx"}]}
|
||||
// </pre>
|
||||
// Two JPEG image byte strings (fake data, for illustrative purposes only):
|
||||
// <pre>
|
||||
// {"instances": [{"b64": "ASa8asdf"}, {"b64": "JLK7ljk3"}]}
|
||||
// </pre>
|
||||
// If your data includes named references, format each instance as a JSON object
|
||||
// with the named references as the keys:
|
||||
//
|
||||
// JSON input data to be preprocessed:
|
||||
// <pre>
|
||||
// {
|
||||
// "instances": [
|
||||
// {
|
||||
// "a": 1.0,
|
||||
// "b": true,
|
||||
// "c": "x"
|
||||
// },
|
||||
// {
|
||||
// "a": -2.0,
|
||||
// "b": false,
|
||||
// "c": "y"
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
// </pre>
|
||||
// Some models have an underlying TensorFlow graph that accepts multiple input
|
||||
// tensors. In this case, you should use the names of JSON name/value pairs to
|
||||
// identify the input tensors, as shown in the following exmaples:
|
||||
//
|
||||
// For a graph with input tensor aliases "tag" (string) and "image"
|
||||
// (base64-encoded string):
|
||||
// <pre>
|
||||
// {
|
||||
// "instances": [
|
||||
// {
|
||||
// "tag": "beach",
|
||||
// "image": {"b64": "ASa8asdf"}
|
||||
// },
|
||||
// {
|
||||
// "tag": "car",
|
||||
// "image": {"b64": "JLK7ljk3"}
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
// </pre>
|
||||
// For a graph with input tensor aliases "tag" (string) and "image"
|
||||
// (3-dimensional array of 8-bit ints):
|
||||
// <pre>
|
||||
// {
|
||||
// "instances": [
|
||||
// {
|
||||
// "tag": "beach",
|
||||
// "image": [
|
||||
// [
|
||||
// [138, 30, 66],
|
||||
// [130, 20, 56],
|
||||
// ...
|
||||
// ],
|
||||
// [
|
||||
// [126, 38, 61],
|
||||
// [122, 24, 57],
|
||||
// ...
|
||||
// ],
|
||||
// ...
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// "tag": "car",
|
||||
// "image": [
|
||||
// [
|
||||
// [255, 0, 102],
|
||||
// [255, 0, 97],
|
||||
// ...
|
||||
// ],
|
||||
// [
|
||||
// [254, 1, 101],
|
||||
// [254, 2, 93],
|
||||
// ...
|
||||
// ],
|
||||
// ...
|
||||
// ]
|
||||
// },
|
||||
// ...
|
||||
// ]
|
||||
// }
|
||||
// </pre>
|
||||
// If the call is successful, the response body will contain one prediction
|
||||
// entry per instance in the request body. If prediction fails for any
|
||||
// instance, the response body will contain no predictions and will contian
|
||||
// a single error entry instead.
|
||||
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"`
|
||||
//
|
||||
// Required. The prediction request body.
|
||||
HttpBody *google_api3.HttpBody `protobuf:"bytes,2,opt,name=http_body,json=httpBody" json:"http_body,omitempty"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PredictRequest) GetHttpBody() *google_api3.HttpBody {
|
||||
if m != nil {
|
||||
return m.HttpBody
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*PredictRequest)(nil), "google.cloud.ml.v1beta1.PredictRequest")
|
||||
}
|
||||
|
||||
// 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
|
||||
|
||||
// Client API for OnlinePredictionService service
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
type onlinePredictionServiceClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewOnlinePredictionServiceClient(cc *grpc.ClientConn) OnlinePredictionServiceClient {
|
||||
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.v1beta1.OnlinePredictionService/Predict", in, out, c.cc, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// 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)
|
||||
}
|
||||
|
||||
func RegisterOnlinePredictionServiceServer(s *grpc.Server, srv OnlinePredictionServiceServer) {
|
||||
s.RegisterService(&_OnlinePredictionService_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _OnlinePredictionService_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.(OnlinePredictionServiceServer).Predict(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.ml.v1beta1.OnlinePredictionService/Predict",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(OnlinePredictionServiceServer).Predict(ctx, req.(*PredictRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _OnlinePredictionService_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.cloud.ml.v1beta1.OnlinePredictionService",
|
||||
HandlerType: (*OnlinePredictionServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Predict",
|
||||
Handler: _OnlinePredictionService_Predict_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/cloud/ml/v1beta1/prediction_service.proto",
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/ml/v1beta1/prediction_service.proto", fileDescriptor3) }
|
||||
|
||||
var fileDescriptor3 = []byte{
|
||||
// 312 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0x4d, 0x4a, 0x03, 0x31,
|
||||
0x14, 0xc7, 0x49, 0x11, 0xb5, 0x11, 0x5c, 0x04, 0xb1, 0xb5, 0x08, 0x96, 0xba, 0xb0, 0x74, 0x91,
|
||||
0xd8, 0xba, 0xb2, 0xe2, 0xa6, 0x2b, 0x77, 0x0e, 0x75, 0x21, 0xb8, 0x29, 0xe9, 0x4c, 0x48, 0x23,
|
||||
0x99, 0xbc, 0x38, 0x93, 0x16, 0x8b, 0xb8, 0xf1, 0x0a, 0x3d, 0x9a, 0x57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9b, 0x37, 0x7c, 0x6b, 0x0b, 0x78,
|
||||
0x16, 0xa9, 0x2b, 0xd9, 0x60, 0xf0, 0x3e, 0x8e, 0x75, 0x8e, 0xd1, 0x60, 0xb2, 0xc2, 0x67, 0x29,
|
||||
0xe4, 0x35, 0x4d, 0x7f, 0x33, 0x1e, 0x98, 0x1c, 0xd7, 0xfc, 0x26, 0xbe, 0xa9, 0x04, 0x3d, 0x5d,
|
||||
0x47, 0x4c, 0x82, 0xe6, 0x46, 0x52, 0x28, 0x24, 0x93, 0xc2, 0x54, 0x3d, 0xb2, 0xb0, 0xe2, 0x56,
|
||||
0x95, 0xb5, 0xe7, 0xbc, 0xc9, 0xf5, 0x7c, 0xb7, 0xfa, 0xeb, 0xea, 0x3b, 0x00, 0x00, 0xff, 0xff,
|
||||
0x00, 0x26, 0x25, 0x67, 0xf3, 0x01, 0x00, 0x00,
|
||||
}
|
178
vendor/google.golang.org/genproto/googleapis/cloud/ml/v1beta1/project_service.pb.go
generated
vendored
Normal file
178
vendor/google.golang.org/genproto/googleapis/cloud/ml/v1beta1/project_service.pb.go
generated
vendored
Normal file
@ -0,0 +1,178 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/ml/v1beta1/project_service.proto
|
||||
|
||||
package ml
|
||||
|
||||
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
|
||||
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// The project number for `service_account`.
|
||||
ServiceAccountProject int64 `protobuf:"varint,2,opt,name=service_account_project,json=serviceAccountProject" json:"service_account_project,omitempty"`
|
||||
}
|
||||
|
||||
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) GetServiceAccount() string {
|
||||
if m != nil {
|
||||
return m.ServiceAccount
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *GetConfigResponse) GetServiceAccountProject() int64 {
|
||||
if m != nil {
|
||||
return m.ServiceAccountProject
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*GetConfigRequest)(nil), "google.cloud.ml.v1beta1.GetConfigRequest")
|
||||
proto.RegisterType((*GetConfigResponse)(nil), "google.cloud.ml.v1beta1.GetConfigResponse")
|
||||
}
|
||||
|
||||
// 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
|
||||
|
||||
// Client API for ProjectManagementService service
|
||||
|
||||
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
|
||||
// the Google Cloud Storage location where you put your model training code
|
||||
// for training the model with Google Cloud Machine Learning.
|
||||
GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error)
|
||||
}
|
||||
|
||||
type projectManagementServiceClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewProjectManagementServiceClient(cc *grpc.ClientConn) ProjectManagementServiceClient {
|
||||
return &projectManagementServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *projectManagementServiceClient) GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error) {
|
||||
out := new(GetConfigResponse)
|
||||
err := grpc.Invoke(ctx, "/google.cloud.ml.v1beta1.ProjectManagementService/GetConfig", in, out, c.cc, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// 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
|
||||
// the Google Cloud Storage location where you put your model training code
|
||||
// for training the model with Google Cloud Machine Learning.
|
||||
GetConfig(context.Context, *GetConfigRequest) (*GetConfigResponse, error)
|
||||
}
|
||||
|
||||
func RegisterProjectManagementServiceServer(s *grpc.Server, srv ProjectManagementServiceServer) {
|
||||
s.RegisterService(&_ProjectManagementService_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _ProjectManagementService_GetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetConfigRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ProjectManagementServiceServer).GetConfig(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.ml.v1beta1.ProjectManagementService/GetConfig",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ProjectManagementServiceServer).GetConfig(ctx, req.(*GetConfigRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _ProjectManagementService_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.cloud.ml.v1beta1.ProjectManagementService",
|
||||
HandlerType: (*ProjectManagementServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "GetConfig",
|
||||
Handler: _ProjectManagementService_GetConfig_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/cloud/ml/v1beta1/project_service.proto",
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/ml/v1beta1/project_service.proto", fileDescriptor4) }
|
||||
|
||||
var fileDescriptor4 = []byte{
|
||||
// 327 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x4f, 0x4a, 0x43, 0x31,
|
||||
0x10, 0xc6, 0x79, 0x55, 0x84, 0x66, 0xe1, 0x9f, 0x88, 0xb4, 0x14, 0xc1, 0x52, 0xa4, 0xd6, 0xa2,
|
||||
0x09, 0x55, 0x10, 0x54, 0x5c, 0x58, 0x17, 0xae, 0x84, 0x52, 0x77, 0x6e, 0x4a, 0xfa, 0x1c, 0xc3,
|
||||
0x93, 0x24, 0x13, 0x5f, 0xd2, 0x6e, 0xc4, 0x8d, 0x27, 0x10, 0x3c, 0x87, 0xa7, 0xf1, 0x0a, 0x1e,
|
||||
0x44, 0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
0x0e, 0x5e, 0x3f, 0xbf, 0xde, 0x4b, 0x4d, 0xba, 0x3b, 0x5b, 0xff, 0xf3, 0x64, 0x1f, 0x17, 0x71,
|
||||
0x7c, 0xc7, 0xdb, 0x2f, 0x67, 0x72, 0xaa, 0xea, 0x3a, 0xb2, 0x93, 0xa2, 0x5e, 0x68, 0x2f, 0x6c,
|
||||
0x36, 0x7d, 0xa2, 0xbb, 0x19, 0xfd, 0x44, 0x17, 0xbd, 0xc9, 0x15, 0x7a, 0xc9, 0xdd, 0x69, 0xd4,
|
||||
0x48, 0x54, 0xc2, 0x48, 0x86, 0xb9, 0xe4, 0x12, 0x4c, 0x71, 0x23, 0x1e, 0x4a, 0xc2, 0x66, 0x6e,
|
||||
0xe1, 0x33, 0x9c, 0x6b, 0x35, 0x5c, 0x29, 0xa8, 0xe3, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x76,
|
||||
0x59, 0xc4, 0x91, 0x31, 0x02, 0x00, 0x00,
|
||||
}
|
194
vendor/google.golang.org/genproto/googleapis/cloud/oslogin/common/common.pb.go
generated
vendored
Normal file
194
vendor/google.golang.org/genproto/googleapis/cloud/oslogin/common/common.pb.go
generated
vendored
Normal file
@ -0,0 +1,194 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/oslogin/common.proto
|
||||
|
||||
/*
|
||||
Package common is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
google/cloud/oslogin/common.proto
|
||||
|
||||
It has these top-level messages:
|
||||
PosixAccount
|
||||
SshPublicKey
|
||||
*/
|
||||
package common
|
||||
|
||||
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
|
||||
|
||||
// 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"`
|
||||
// The username of the POSIX account.
|
||||
Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"`
|
||||
// The user ID.
|
||||
Uid int64 `protobuf:"varint,3,opt,name=uid" json:"uid,omitempty"`
|
||||
// The default group ID.
|
||||
Gid int64 `protobuf:"varint,4,opt,name=gid" 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"`
|
||||
// The path to the logic shell for this account.
|
||||
Shell string `protobuf:"bytes,6,opt,name=shell" json:"shell,omitempty"`
|
||||
// The GECOS (user information) entry for this account.
|
||||
Gecos string `protobuf:"bytes,7,opt,name=gecos" 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"`
|
||||
// Output only. A POSIX account identifier.
|
||||
AccountId string `protobuf:"bytes,9,opt,name=account_id,json=accountId" json:"account_id,omitempty"`
|
||||
}
|
||||
|
||||
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) GetPrimary() bool {
|
||||
if m != nil {
|
||||
return m.Primary
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *PosixAccount) GetUsername() string {
|
||||
if m != nil {
|
||||
return m.Username
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PosixAccount) GetUid() int64 {
|
||||
if m != nil {
|
||||
return m.Uid
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *PosixAccount) GetGid() int64 {
|
||||
if m != nil {
|
||||
return m.Gid
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *PosixAccount) GetHomeDirectory() string {
|
||||
if m != nil {
|
||||
return m.HomeDirectory
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PosixAccount) GetShell() string {
|
||||
if m != nil {
|
||||
return m.Shell
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PosixAccount) GetGecos() string {
|
||||
if m != nil {
|
||||
return m.Gecos
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PosixAccount) GetSystemId() string {
|
||||
if m != nil {
|
||||
return m.SystemId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PosixAccount) GetAccountId() string {
|
||||
if m != nil {
|
||||
return m.AccountId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The SSH public key information associated with a Google account.
|
||||
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"`
|
||||
// An expiration time in microseconds since epoch.
|
||||
ExpirationTimeUsec int64 `protobuf:"varint,2,opt,name=expiration_time_usec,json=expirationTimeUsec" 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"`
|
||||
}
|
||||
|
||||
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) GetKey() string {
|
||||
if m != nil {
|
||||
return m.Key
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *SshPublicKey) GetExpirationTimeUsec() int64 {
|
||||
if m != nil {
|
||||
return m.ExpirationTimeUsec
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *SshPublicKey) GetFingerprint() string {
|
||||
if m != nil {
|
||||
return m.Fingerprint
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*PosixAccount)(nil), "google.cloud.oslogin.common.PosixAccount")
|
||||
proto.RegisterType((*SshPublicKey)(nil), "google.cloud.oslogin.common.SshPublicKey")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/oslogin/common.proto", fileDescriptor0) }
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
// 373 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xcf, 0x6b, 0x14, 0x31,
|
||||
0x14, 0xc7, 0x19, 0xd7, 0xb6, 0x3b, 0x71, 0x15, 0x09, 0x3d, 0x84, 0x56, 0x71, 0x2d, 0x08, 0x7b,
|
||||
0x9a, 0x11, 0x3c, 0x7a, 0x6a, 0xf1, 0x52, 0x14, 0x5c, 0x46, 0xbd, 0x78, 0x19, 0xd2, 0xe4, 0x99,
|
||||
0x7d, 0x38, 0xc9, 0x1b, 0x92, 0x0c, 0x74, 0xfe, 0x72, 0xaf, 0x92, 0x64, 0x56, 0x3d, 0x48, 0x4f,
|
||||
0x93, 0xef, 0xe7, 0xfb, 0xcd, 0xf0, 0x7e, 0x84, 0xbd, 0x36, 0x44, 0x66, 0x80, 0x56, 0x0d, 0x34,
|
||||
0xe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
|
||||
0xee, 0x06, 0x54, 0x1f, 0x61, 0x4e, 0x05, 0xff, 0x84, 0xd2, 0x74, 0xdd, 0xa5, 0x23, 0x7f, 0xcb,
|
||||
0xce, 0xe1, 0x7e, 0x44, 0x9f, 0x07, 0xd6, 0x47, 0xb4, 0xd0, 0x4f, 0x01, 0x54, 0x6e, 0x7e, 0xd5,
|
||||
0xf1, 0xbf, 0xde, 0x57, 0xb4, 0xf0, 0x2d, 0x80, 0xe2, 0x5b, 0xf6, 0xe4, 0x07, 0x3a, 0x03, 0x7e,
|
||||
0xf4, 0xe8, 0x62, 0x1e, 0x47, 0xdd, 0xfd, 0x8b, 0x6e, 0x3c, 0x7b, 0xa5, 0xc8, 0x36, 0x0f, 0x2c,
|
||||
0xec, 0x66, 0xf3, 0x39, 0x7c, 0x4a, 0x7a, 0x9f, 0x16, 0xf4, 0xfd, 0x7a, 0x89, 0x1a, 0x1a, 0xa4,
|
||||
0x33, 0x0d, 0x79, 0xd3, 0x1a, 0x70, 0x79, 0x79, 0x6d, 0xb1, 0xe4, 0x88, 0xe1, 0xbf, 0xaf, 0xe3,
|
||||
0x7d, 0xf9, 0xdc, 0x9d, 0xe6, 0xf4, 0xbb, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x0a, 0xe8, 0xeb,
|
||||
0xaa, 0x4a, 0x02, 0x00, 0x00,
|
||||
}
|
581
vendor/google.golang.org/genproto/googleapis/cloud/oslogin/v1alpha/oslogin.pb.go
generated
vendored
Normal file
581
vendor/google.golang.org/genproto/googleapis/cloud/oslogin/v1alpha/oslogin.pb.go
generated
vendored
Normal file
@ -0,0 +1,581 @@
|
||||
// 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
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
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 (
|
||||
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 user profile information used for logging in to a virtual machine on
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// Indicates if the user is suspended.
|
||||
Suspended bool `protobuf:"varint,4,opt,name=suspended" json:"suspended,omitempty"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *LoginProfile) GetPosixAccounts() []*google_cloud_oslogin_common.PosixAccount {
|
||||
if m != nil {
|
||||
return m.PosixAccounts
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *LoginProfile) GetSshPublicKeys() map[string]*google_cloud_oslogin_common.SshPublicKey {
|
||||
if m != nil {
|
||||
return m.SshPublicKeys
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *LoginProfile) GetSuspended() bool {
|
||||
if m != nil {
|
||||
return m.Suspended
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// A request message for deleting a POSIX account entry.
|
||||
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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// A request message for deleting an SSH public key.
|
||||
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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// A request message for retrieving an SSH public key.
|
||||
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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// 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"`
|
||||
// The project ID of the Google Cloud Platform project.
|
||||
ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
|
||||
}
|
||||
|
||||
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) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ImportSshPublicKeyRequest) GetSshPublicKey() *google_cloud_oslogin_common.SshPublicKey {
|
||||
if m != nil {
|
||||
return m.SshPublicKey
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ImportSshPublicKeyRequest) GetProjectId() string {
|
||||
if m != nil {
|
||||
return m.ProjectId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetLoginProfile() *LoginProfile {
|
||||
if m != nil {
|
||||
return m.LoginProfile
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A request message for updating an SSH public key.
|
||||
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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *UpdateSshPublicKeyRequest) GetSshPublicKey() *google_cloud_oslogin_common.SshPublicKey {
|
||||
if m != nil {
|
||||
return m.SshPublicKey
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *UpdateSshPublicKeyRequest) GetUpdateMask() *google_protobuf2.FieldMask {
|
||||
if m != nil {
|
||||
return m.UpdateMask
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*LoginProfile)(nil), "google.cloud.oslogin.v1alpha.LoginProfile")
|
||||
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")
|
||||
proto.RegisterType((*GetSshPublicKeyRequest)(nil), "google.cloud.oslogin.v1alpha.GetSshPublicKeyRequest")
|
||||
proto.RegisterType((*ImportSshPublicKeyRequest)(nil), "google.cloud.oslogin.v1alpha.ImportSshPublicKeyRequest")
|
||||
proto.RegisterType((*ImportSshPublicKeyResponse)(nil), "google.cloud.oslogin.v1alpha.ImportSshPublicKeyResponse")
|
||||
proto.RegisterType((*UpdateSshPublicKeyRequest)(nil), "google.cloud.oslogin.v1alpha.UpdateSshPublicKeyRequest")
|
||||
}
|
||||
|
||||
// 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
|
||||
|
||||
// Client API for OsLoginService service
|
||||
|
||||
type OsLoginServiceClient interface {
|
||||
// Deletes a POSIX account.
|
||||
DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
|
||||
// Deletes an SSH public key.
|
||||
DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*google_protobuf1.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)
|
||||
// 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)
|
||||
}
|
||||
|
||||
type osLoginServiceClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
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...)
|
||||
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...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
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...)
|
||||
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...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
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...)
|
||||
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...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// Server API for OsLoginService service
|
||||
|
||||
type OsLoginServiceServer interface {
|
||||
// Deletes a POSIX account.
|
||||
DeletePosixAccount(context.Context, *DeletePosixAccountRequest) (*google_protobuf1.Empty, error)
|
||||
// Deletes an SSH public key.
|
||||
DeleteSshPublicKey(context.Context, *DeleteSshPublicKeyRequest) (*google_protobuf1.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)
|
||||
// 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)
|
||||
}
|
||||
|
||||
func RegisterOsLoginServiceServer(s *grpc.Server, srv OsLoginServiceServer) {
|
||||
s.RegisterService(&_OsLoginService_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _OsLoginService_DeletePosixAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeletePosixAccountRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(OsLoginServiceServer).DeletePosixAccount(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.oslogin.v1alpha.OsLoginService/DeletePosixAccount",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(OsLoginServiceServer).DeletePosixAccount(ctx, req.(*DeletePosixAccountRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _OsLoginService_DeleteSshPublicKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteSshPublicKeyRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(OsLoginServiceServer).DeleteSshPublicKey(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.oslogin.v1alpha.OsLoginService/DeleteSshPublicKey",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(OsLoginServiceServer).DeleteSshPublicKey(ctx, req.(*DeleteSshPublicKeyRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _OsLoginService_GetLoginProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetLoginProfileRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(OsLoginServiceServer).GetLoginProfile(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.oslogin.v1alpha.OsLoginService/GetLoginProfile",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(OsLoginServiceServer).GetLoginProfile(ctx, req.(*GetLoginProfileRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _OsLoginService_GetSshPublicKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetSshPublicKeyRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(OsLoginServiceServer).GetSshPublicKey(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.oslogin.v1alpha.OsLoginService/GetSshPublicKey",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(OsLoginServiceServer).GetSshPublicKey(ctx, req.(*GetSshPublicKeyRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _OsLoginService_ImportSshPublicKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ImportSshPublicKeyRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(OsLoginServiceServer).ImportSshPublicKey(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.oslogin.v1alpha.OsLoginService/ImportSshPublicKey",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(OsLoginServiceServer).ImportSshPublicKey(ctx, req.(*ImportSshPublicKeyRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _OsLoginService_UpdateSshPublicKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateSshPublicKeyRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(OsLoginServiceServer).UpdateSshPublicKey(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.oslogin.v1alpha.OsLoginService/UpdateSshPublicKey",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(OsLoginServiceServer).UpdateSshPublicKey(ctx, req.(*UpdateSshPublicKeyRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _OsLoginService_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.cloud.oslogin.v1alpha.OsLoginService",
|
||||
HandlerType: (*OsLoginServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "DeletePosixAccount",
|
||||
Handler: _OsLoginService_DeletePosixAccount_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeleteSshPublicKey",
|
||||
Handler: _OsLoginService_DeleteSshPublicKey_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetLoginProfile",
|
||||
Handler: _OsLoginService_GetLoginProfile_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetSshPublicKey",
|
||||
Handler: _OsLoginService_GetSshPublicKey_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ImportSshPublicKey",
|
||||
Handler: _OsLoginService_ImportSshPublicKey_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateSshPublicKey",
|
||||
Handler: _OsLoginService_UpdateSshPublicKey_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/cloud/oslogin/v1alpha/oslogin.proto",
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/oslogin/v1alpha/oslogin.proto", fileDescriptor0) }
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
// 745 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcd, 0x6e, 0xd3, 0x4c,
|
||||
0x14, 0x95, 0x93, 0x7e, 0x55, 0x3b, 0x49, 0xdb, 0x4f, 0xb3, 0xa8, 0x52, 0x53, 0xa4, 0x60, 0x55,
|
||||
0xd0, 0x5a, 0x95, 0x47, 0x04, 0x24, 0x4a, 0xab, 0x52, 0x51, 0x5a, 0x50, 0x05, 0xa8, 0x91, 0x2b,
|
||||
0x36, 0x6c, 0xa2, 0xa9, 0x3d, 0x75, 0x4d, 0x6c, 0xcf, 0xe0, 0xb1, 0x0b, 0x11, 0xea, 0x86, 0x37,
|
||||
0x40, 0x95, 0xd8, 0xa3, 0x3e, 0x05, 0x0b, 0x1e, 0x81, 0x15, 0xaf, 0x80, 0x78, 0x0e, 0xe4, 0xf1,
|
||||
0xa4, 0x71, 0x12, 0x27, 0x71, 0x24, 0x76, 0xbe, 0x33, 0xf7, 0xdc, 0x39, 0xf7, 0xdc, 0x1f, 0x19,
|
||||
0xe8, 0x0e, 0xa5, 0x8e, 0x47, 0x90, 0xe5, 0xd1, 0xd8, 0x46, 0x94, 0x7b, 0xd4, 0x71, 0x03, 0x74,
|
||||
0x71, 0x1f, 0x7b, 0xec, 0x1c, 0x77, 0x6d, 0x83, 0x85, 0x34, 0xa2, 0x70, 0x35, 0xf5, 0x35, 0x84,
|
||||
0xaf, 0xd1, 0xbd, 0x93, 0xbe, 0xaa, 0xbc, 0x45, 0x98, 0xb9, 0x08, 0x07, 0x01, 0x8d, 0x70, 0xe4,
|
||||
0xd2, 0x80, 0xa7, 0x58, 0xf5, 0x4e, 0xee, 0x3b, 0x16, 0xf5, 0x7d, 0x2a, 0xc3, 0xab, 0xb7, 0xa4,
|
||||
0x8b, 0xb0, 0x4e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xd2, 0x96, 0xa2, 0x21, 0xb0, 0x72, 0x40, 0x3c, 0x12, 0x91, 0x3e, 0x59, 0xc8, 0xfb, 0x98,
|
||||
0xf0, 0x28, 0x4f, 0xf4, 0x1e, 0xa0, 0x2f, 0xe2, 0x18, 0xc0, 0x26, 0x58, 0x7e, 0x41, 0xa2, 0xac,
|
||||
0x42, 0x93, 0xbd, 0x8b, 0xc6, 0xbe, 0x56, 0xc0, 0xca, 0x91, 0xcf, 0x68, 0x98, 0x8b, 0x58, 0x06,
|
||||
0xb3, 0x0c, 0x87, 0x24, 0x88, 0x24, 0x46, 0x5a, 0xf0, 0x18, 0x2c, 0xf6, 0x57, 0x79, 0x7a, 0x05,
|
||||
0xab, 0xd9, 0x82, 0xc2, 0xdb, 0x00, 0xb0, 0x90, 0xbe, 0x23, 0x56, 0xd4, 0x72, 0xed, 0x5a, 0x59,
|
||||
0x3c, 0x36, 0x2f, 0x4f, 0x8e, 0x6c, 0xcd, 0x07, 0x6a, 0x1e, 0x49, 0xce, 0x68, 0xc0, 0x09, 0x3c,
|
||||
0x06, 0x0b, 0xe2, 0x9d, 0x16, 0x4b, 0xd5, 0x11, 0x64, 0x2b, 0x0d, 0xbd, 0x78, 0xc7, 0x99, 0x55,
|
||||
0x2f, 0x63, 0x69, 0x3f, 0x14, 0xb0, 0xf2, 0x86, 0xd9, 0xb8, 0x70, 0x89, 0xfe, 0xbd, 0x20, 0x3b,
|
||||
0xa0, 0x12, 0x0b, 0x06, 0x62, 0xa6, 0x85, 0x22, 0x95, 0x86, 0xda, 0x8d, 0xd6, 0x1d, 0x7b, 0xe3,
|
||||
0x79, 0x32, 0xf6, 0xaf, 0x31, 0x6f, 0x9b, 0x20, 0x75, 0x4f, 0xbe, 0x1b, 0x57, 0x73, 0x60, 0xf1,
|
||||
0x98, 0x8b, 0x04, 0x4f, 0x48, 0x78, 0xe1, 0x5a, 0x04, 0x7e, 0x51, 0x00, 0x1c, 0x6e, 0x53, 0xf8,
|
||||
0x68, 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
|
||||
0xfd, 0xb1, 0x4c, 0xf7, 0xab, 0x72, 0x6d, 0x34, 0x93, 0x09, 0x6a, 0x2a, 0x6f, 0x9f, 0x49, 0x6f,
|
||||
0x87, 0x7a, 0x38, 0x70, 0x0c, 0x1a, 0x3a, 0xc8, 0x21, 0x81, 0x98, 0x2f, 0x94, 0x5e, 0x61, 0xe6,
|
||||
0xf2, 0xfc, 0xdf, 0xa5, 0x1d, 0x69, 0x9f, 0xce, 0x0a, 0xff, 0x07, 0x7f, 0x03, 0x00, 0x00, 0xff,
|
||||
0xff, 0xa6, 0x7e, 0xc7, 0x43, 0x5d, 0x09, 0x00, 0x00,
|
||||
}
|
584
vendor/google.golang.org/genproto/googleapis/cloud/oslogin/v1beta/oslogin.pb.go
generated
vendored
Normal file
584
vendor/google.golang.org/genproto/googleapis/cloud/oslogin/v1beta/oslogin.pb.go
generated
vendored
Normal file
@ -0,0 +1,584 @@
|
||||
// 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
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
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 (
|
||||
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 user profile information used for logging in to a virtual machine on
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *LoginProfile) GetPosixAccounts() []*google_cloud_oslogin_common.PosixAccount {
|
||||
if m != nil {
|
||||
return m.PosixAccounts
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *LoginProfile) GetSshPublicKeys() map[string]*google_cloud_oslogin_common.SshPublicKey {
|
||||
if m != nil {
|
||||
return m.SshPublicKeys
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *LoginProfile) GetSuspended() bool {
|
||||
if m != nil {
|
||||
return m.Suspended
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// A request message for deleting a POSIX account entry.
|
||||
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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// A request message for deleting an SSH public key.
|
||||
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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// A request message for retrieving an SSH public key.
|
||||
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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// 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"`
|
||||
// The project ID of the Google Cloud Platform project.
|
||||
ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
|
||||
}
|
||||
|
||||
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) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ImportSshPublicKeyRequest) GetSshPublicKey() *google_cloud_oslogin_common.SshPublicKey {
|
||||
if m != nil {
|
||||
return m.SshPublicKey
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ImportSshPublicKeyRequest) GetProjectId() string {
|
||||
if m != nil {
|
||||
return m.ProjectId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetLoginProfile() *LoginProfile {
|
||||
if m != nil {
|
||||
return m.LoginProfile
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A request message for updating an SSH public key.
|
||||
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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *UpdateSshPublicKeyRequest) GetSshPublicKey() *google_cloud_oslogin_common.SshPublicKey {
|
||||
if m != nil {
|
||||
return m.SshPublicKey
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *UpdateSshPublicKeyRequest) GetUpdateMask() *google_protobuf2.FieldMask {
|
||||
if m != nil {
|
||||
return m.UpdateMask
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*LoginProfile)(nil), "google.cloud.oslogin.v1beta.LoginProfile")
|
||||
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")
|
||||
proto.RegisterType((*GetSshPublicKeyRequest)(nil), "google.cloud.oslogin.v1beta.GetSshPublicKeyRequest")
|
||||
proto.RegisterType((*ImportSshPublicKeyRequest)(nil), "google.cloud.oslogin.v1beta.ImportSshPublicKeyRequest")
|
||||
proto.RegisterType((*ImportSshPublicKeyResponse)(nil), "google.cloud.oslogin.v1beta.ImportSshPublicKeyResponse")
|
||||
proto.RegisterType((*UpdateSshPublicKeyRequest)(nil), "google.cloud.oslogin.v1beta.UpdateSshPublicKeyRequest")
|
||||
}
|
||||
|
||||
// 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
|
||||
|
||||
// Client API for OsLoginService service
|
||||
|
||||
type OsLoginServiceClient interface {
|
||||
// Deletes a POSIX account.
|
||||
DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
|
||||
// Deletes an SSH public key.
|
||||
DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*google_protobuf1.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)
|
||||
// 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)
|
||||
}
|
||||
|
||||
type osLoginServiceClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
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...)
|
||||
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...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
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...)
|
||||
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...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
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...)
|
||||
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...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// Server API for OsLoginService service
|
||||
|
||||
type OsLoginServiceServer interface {
|
||||
// Deletes a POSIX account.
|
||||
DeletePosixAccount(context.Context, *DeletePosixAccountRequest) (*google_protobuf1.Empty, error)
|
||||
// Deletes an SSH public key.
|
||||
DeleteSshPublicKey(context.Context, *DeleteSshPublicKeyRequest) (*google_protobuf1.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)
|
||||
// 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)
|
||||
}
|
||||
|
||||
func RegisterOsLoginServiceServer(s *grpc.Server, srv OsLoginServiceServer) {
|
||||
s.RegisterService(&_OsLoginService_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _OsLoginService_DeletePosixAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeletePosixAccountRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(OsLoginServiceServer).DeletePosixAccount(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.oslogin.v1beta.OsLoginService/DeletePosixAccount",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(OsLoginServiceServer).DeletePosixAccount(ctx, req.(*DeletePosixAccountRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _OsLoginService_DeleteSshPublicKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteSshPublicKeyRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(OsLoginServiceServer).DeleteSshPublicKey(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.oslogin.v1beta.OsLoginService/DeleteSshPublicKey",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(OsLoginServiceServer).DeleteSshPublicKey(ctx, req.(*DeleteSshPublicKeyRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _OsLoginService_GetLoginProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetLoginProfileRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(OsLoginServiceServer).GetLoginProfile(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.oslogin.v1beta.OsLoginService/GetLoginProfile",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(OsLoginServiceServer).GetLoginProfile(ctx, req.(*GetLoginProfileRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _OsLoginService_GetSshPublicKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetSshPublicKeyRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(OsLoginServiceServer).GetSshPublicKey(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.oslogin.v1beta.OsLoginService/GetSshPublicKey",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(OsLoginServiceServer).GetSshPublicKey(ctx, req.(*GetSshPublicKeyRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _OsLoginService_ImportSshPublicKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ImportSshPublicKeyRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(OsLoginServiceServer).ImportSshPublicKey(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.oslogin.v1beta.OsLoginService/ImportSshPublicKey",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(OsLoginServiceServer).ImportSshPublicKey(ctx, req.(*ImportSshPublicKeyRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _OsLoginService_UpdateSshPublicKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateSshPublicKeyRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(OsLoginServiceServer).UpdateSshPublicKey(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.oslogin.v1beta.OsLoginService/UpdateSshPublicKey",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(OsLoginServiceServer).UpdateSshPublicKey(ctx, req.(*UpdateSshPublicKeyRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _OsLoginService_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.cloud.oslogin.v1beta.OsLoginService",
|
||||
HandlerType: (*OsLoginServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "DeletePosixAccount",
|
||||
Handler: _OsLoginService_DeletePosixAccount_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeleteSshPublicKey",
|
||||
Handler: _OsLoginService_DeleteSshPublicKey_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetLoginProfile",
|
||||
Handler: _OsLoginService_GetLoginProfile_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetSshPublicKey",
|
||||
Handler: _OsLoginService_GetSshPublicKey_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ImportSshPublicKey",
|
||||
Handler: _OsLoginService_ImportSshPublicKey_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateSshPublicKey",
|
||||
Handler: _OsLoginService_UpdateSshPublicKey_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/cloud/oslogin/v1beta/oslogin.proto",
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/oslogin/v1beta/oslogin.proto", fileDescriptor0) }
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
// 780 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcd, 0x4e, 0xdb, 0x4a,
|
||||
0x14, 0x96, 0x13, 0x2e, 0x82, 0x21, 0xc0, 0xd5, 0x2c, 0x50, 0x30, 0x5c, 0xdd, 0x60, 0xd4, 0x2a,
|
||||
0x84, 0xca, 0x16, 0x41, 0x6a, 0x11, 0x94, 0x56, 0x0d, 0xa5, 0x08, 0xf5, 0x87, 0x28, 0xa8, 0x2c,
|
||||
0x2a, 0xa4, 0x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a, 0x57, 0x6e,
|
||||
0xa6, 0x33, 0xea, 0xda, 0x2a, 0x21, 0xad, 0x4f, 0x12, 0x98, 0xed, 0x19, 0x36, 0xb8, 0x3e, 0x94,
|
||||
0x53, 0xfa, 0x68, 0xca, 0xd9, 0xbb, 0x4f, 0x59, 0xe5, 0x1c, 0x6f, 0xc0, 0xe5, 0x54, 0x8e, 0xe7,
|
||||
0x5a, 0xb2, 0x39, 0xe1, 0xe7, 0x88, 0x60, 0x97, 0x68, 0x23, 0x09, 0xa6, 0x29, 0x96, 0xbd, 0x37,
|
||||
0x63, 0x11, 0x61, 0x56, 0x11, 0x2f, 0x24, 0x00, 0xfb, 0xe7, 0x75, 0x44, 0x6d, 0x07, 0x6e, 0x21,
|
||||
0xf9, 0xce, 0xb5, 0xe3, 0xa2, 0xc5, 0xa0, 0xec, 0x70, 0xde, 0xdb, 0xca, 0xea, 0x25, 0xef, 0x68,
|
||||
0x7f, 0x5d, 0x4a, 0xbb, 0x69, 0xf5, 0x05, 0x6f, 0xf6, 0x4c, 0x32, 0xfc, 0x2e, 0x01, 0xd8, 0xbf,
|
||||
0x0d, 0x46, 0x3c, 0x66, 0xe0, 0xfa, 0xb8, 0x8e, 0xec, 0xf7, 0x38, 0xfd, 0x8d, 0x6a, 0x46, 0xd9,
|
||||
0x7b, 0x99, 0xd7, 0xbe, 0x49, 0xe0, 0x7f, 0x9d, 0x38, 0xc3, 0x88, 0xd6, 0x0a, 0x62, 0x51, 0xd4,
|
||||
0xc3, 0xb1, 0xa9, 0x4b, 0x2f, 0x6a, 0xc2, 0xd9, 0x24, 0x36, 0x72, 0x4d, 0x95, 0x78, 0xa6, 0x66,
|
||||
0x62, 0x97, 0x0f, 0x95, 0x16, 0x99, 0x10, 0xb5, 0x58, 0xea, 0xcf, 0xd1, 0x96, 0x38, 0x7e, 0xcd,
|
||||
0x2d, 0xec, 0x45, 0x20, 0x3b, 0x3c, 0xa3, 0xc8, 0xa0, 0x1e, 0xad, 0xd5, 0xb0, 0x8f, 0x2e, 0x62,
|
||||
0xeb, 0x31, 0xb7, 0x1e, 0x0b, 0xeb, 0xf1, 0x11, 0xc7, 0x68, 0x8d, 0xf3, 0x54, 0xeb, 0x7f, 0x02,
|
||||
0x00, 0x00, 0xff, 0xff, 0x63, 0x03, 0xf6, 0x66, 0x86, 0x09, 0x00, 0x00,
|
||||
}
|
1263
vendor/google.golang.org/genproto/googleapis/cloud/resourcemanager/v2/folders.pb.go
generated
vendored
Normal file
1263
vendor/google.golang.org/genproto/googleapis/cloud/resourcemanager/v2/folders.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
591
vendor/google.golang.org/genproto/googleapis/cloud/runtimeconfig/v1beta1/resources.pb.go
generated
vendored
Normal file
591
vendor/google.golang.org/genproto/googleapis/cloud/runtimeconfig/v1beta1/resources.pb.go
generated
vendored
Normal file
@ -0,0 +1,591 @@
|
||||
// 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
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
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"
|
||||
|
||||
// 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 `VariableState` describes the last known state of the variable and is
|
||||
// used during a `variables().watch` call to distinguish the state of the
|
||||
// variable.
|
||||
type VariableState int32
|
||||
|
||||
const (
|
||||
// Default variable state.
|
||||
VariableState_VARIABLE_STATE_UNSPECIFIED VariableState = 0
|
||||
// The variable was updated, while `variables().watch` was executing.
|
||||
VariableState_UPDATED VariableState = 1
|
||||
// The variable was deleted, while `variables().watch` was executing.
|
||||
VariableState_DELETED VariableState = 2
|
||||
)
|
||||
|
||||
var VariableState_name = map[int32]string{
|
||||
0: "VARIABLE_STATE_UNSPECIFIED",
|
||||
1: "UPDATED",
|
||||
2: "DELETED",
|
||||
}
|
||||
var VariableState_value = map[string]int32{
|
||||
"VARIABLE_STATE_UNSPECIFIED": 0,
|
||||
"UPDATED": 1,
|
||||
"DELETED": 2,
|
||||
}
|
||||
|
||||
func (x VariableState) String() string {
|
||||
return proto.EnumName(VariableState_name, int32(x))
|
||||
}
|
||||
func (VariableState) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
|
||||
// A RuntimeConfig resource is the primary resource in the Cloud RuntimeConfig
|
||||
// service. A RuntimeConfig resource consists of metadata and a hierarchy of
|
||||
// variables.
|
||||
type RuntimeConfig struct {
|
||||
// The resource name of a runtime config. The name must have the format:
|
||||
//
|
||||
// projects/[PROJECT_ID]/configs/[CONFIG_NAME]
|
||||
//
|
||||
// The `[PROJECT_ID]` must be a valid project ID, and `[CONFIG_NAME]` is an
|
||||
// arbitrary name that matches RFC 1035 segment specification. The length of
|
||||
// `[CONFIG_NAME]` must be less than 64 bytes.
|
||||
//
|
||||
// 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"`
|
||||
// An optional description of the RuntimeConfig object.
|
||||
Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *RuntimeConfig) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Describes a single variable within a RuntimeConfig resource.
|
||||
// The name denotes the hierarchical variable name. For example,
|
||||
// `ports/serving_port` is a valid variable name. The variable value is an
|
||||
// opaque string and only leaf variables can have values (that is, variables
|
||||
// that do not have any child variables).
|
||||
type Variable struct {
|
||||
// The name of the variable resource, in the format:
|
||||
//
|
||||
// projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]
|
||||
//
|
||||
// The `[PROJECT_ID]` must be a valid project ID, `[CONFIG_NAME]` must be a
|
||||
// valid RuntimeConfig reource and `[VARIABLE_NAME]` follows Unix file system
|
||||
// file path naming.
|
||||
//
|
||||
// The `[VARIABLE_NAME]` can contain ASCII letters, numbers, slashes and
|
||||
// dashes. Slashes are used as path element separators and are not part of the
|
||||
// `[VARIABLE_NAME]` itself, so `[VARIABLE_NAME]` must contain at least one
|
||||
// non-slash character. Multiple slashes are coalesced into single slash
|
||||
// character. Each path segment should follow RFC 1035 segment specification.
|
||||
// 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"`
|
||||
// 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.
|
||||
//
|
||||
// Types that are valid to be assigned to Contents:
|
||||
// *Variable_Value
|
||||
// *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"`
|
||||
// [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"`
|
||||
}
|
||||
|
||||
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} }
|
||||
|
||||
type isVariable_Contents interface {
|
||||
isVariable_Contents()
|
||||
}
|
||||
|
||||
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"`
|
||||
}
|
||||
|
||||
func (*Variable_Value) isVariable_Contents() {}
|
||||
func (*Variable_Text) isVariable_Contents() {}
|
||||
|
||||
func (m *Variable) GetContents() isVariable_Contents {
|
||||
if m != nil {
|
||||
return m.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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Variable) GetText() string {
|
||||
if x, ok := m.GetContents().(*Variable_Text); ok {
|
||||
return x.Text
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Variable) GetUpdateTime() *google_protobuf2.Timestamp {
|
||||
if m != nil {
|
||||
return m.UpdateTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Variable) GetState() VariableState {
|
||||
if m != nil {
|
||||
return m.State
|
||||
}
|
||||
return VariableState_VARIABLE_STATE_UNSPECIFIED
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*Variable) 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 _Variable_OneofMarshaler, _Variable_OneofUnmarshaler, _Variable_OneofSizer, []interface{}{
|
||||
(*Variable_Value)(nil),
|
||||
(*Variable_Text)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _Variable_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*Variable)
|
||||
// contents
|
||||
switch x := m.Contents.(type) {
|
||||
case *Variable_Value:
|
||||
b.EncodeVarint(2<<3 | proto.WireBytes)
|
||||
b.EncodeRawBytes(x.Value)
|
||||
case *Variable_Text:
|
||||
b.EncodeVarint(5<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.Text)
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("Variable.Contents has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _Variable_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*Variable)
|
||||
switch tag {
|
||||
case 2: // contents.value
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeRawBytes(true)
|
||||
m.Contents = &Variable_Value{x}
|
||||
return true, err
|
||||
case 5: // contents.text
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.Contents = &Variable_Text{x}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _Variable_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*Variable)
|
||||
// contents
|
||||
switch x := m.Contents.(type) {
|
||||
case *Variable_Value:
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(len(x.Value)))
|
||||
n += len(x.Value)
|
||||
case *Variable_Text:
|
||||
n += proto.SizeVarint(5<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(len(x.Text)))
|
||||
n += len(x.Text)
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// The condition that a Waiter resource is waiting for.
|
||||
type EndCondition struct {
|
||||
// The condition oneof holds the available condition types for this
|
||||
// EndCondition. Currently, the only available type is Cardinality.
|
||||
//
|
||||
// Types that are valid to be assigned to Condition:
|
||||
// *EndCondition_Cardinality_
|
||||
Condition isEndCondition_Condition `protobuf_oneof:"condition"`
|
||||
}
|
||||
|
||||
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} }
|
||||
|
||||
type isEndCondition_Condition interface {
|
||||
isEndCondition_Condition()
|
||||
}
|
||||
|
||||
type EndCondition_Cardinality_ struct {
|
||||
Cardinality *EndCondition_Cardinality `protobuf:"bytes,1,opt,name=cardinality,oneof"`
|
||||
}
|
||||
|
||||
func (*EndCondition_Cardinality_) isEndCondition_Condition() {}
|
||||
|
||||
func (m *EndCondition) GetCondition() isEndCondition_Condition {
|
||||
if m != nil {
|
||||
return m.Condition
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *EndCondition) GetCardinality() *EndCondition_Cardinality {
|
||||
if x, ok := m.GetCondition().(*EndCondition_Cardinality_); ok {
|
||||
return x.Cardinality
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*EndCondition) 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 _EndCondition_OneofMarshaler, _EndCondition_OneofUnmarshaler, _EndCondition_OneofSizer, []interface{}{
|
||||
(*EndCondition_Cardinality_)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _EndCondition_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*EndCondition)
|
||||
// condition
|
||||
switch x := m.Condition.(type) {
|
||||
case *EndCondition_Cardinality_:
|
||||
b.EncodeVarint(1<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.Cardinality); err != nil {
|
||||
return err
|
||||
}
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("EndCondition.Condition has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _EndCondition_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*EndCondition)
|
||||
switch tag {
|
||||
case 1: // condition.cardinality
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(EndCondition_Cardinality)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Condition = &EndCondition_Cardinality_{msg}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _EndCondition_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*EndCondition)
|
||||
// condition
|
||||
switch x := m.Condition.(type) {
|
||||
case *EndCondition_Cardinality_:
|
||||
s := proto.Size(x.Cardinality)
|
||||
n += proto.SizeVarint(1<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// A Cardinality condition for the Waiter resource. A cardinality condition is
|
||||
// met when the number of variables under a specified path prefix reaches a
|
||||
// predefined number. For example, if you set a Cardinality condition where
|
||||
// the `path` is set to `/foo` and the number of paths is set to 2, the
|
||||
// following variables would meet the condition in a RuntimeConfig resource:
|
||||
//
|
||||
// + `/foo/variable1 = "value1"`
|
||||
// + `/foo/variable2 = "value2"`
|
||||
// + `/bar/variable3 = "value3"`
|
||||
//
|
||||
// It would not would not satisify the same condition with the `number` set to
|
||||
// 3, however, because there is only 2 paths that start with `/foo`.
|
||||
// Cardinality conditions are recursive; all subtrees under the specific
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetPath() string {
|
||||
if m != nil {
|
||||
return m.Path
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *EndCondition_Cardinality) GetNumber() int32 {
|
||||
if m != nil {
|
||||
return m.Number
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// A Waiter resource waits for some end condition within a RuntimeConfig resource
|
||||
// to be met before it returns. For example, assume you have a distributed
|
||||
// system where each node writes to a Variable resource indidicating the node's
|
||||
// readiness as part of the startup process.
|
||||
//
|
||||
// You then configure a Waiter resource with the success condition set to wait
|
||||
// until some number of nodes have checked in. Afterwards, your application
|
||||
// runs some arbitrary code after the condition has been met and the waiter
|
||||
// returns successfully.
|
||||
//
|
||||
// Once created, a Waiter resource is immutable.
|
||||
//
|
||||
// To learn more about using waiters, read the
|
||||
// [Creating a Waiter](/deployment-manager/runtime-configurator/creating-a-waiter)
|
||||
// documentation.
|
||||
type Waiter struct {
|
||||
// The name of the Waiter resource, in the format:
|
||||
//
|
||||
// projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]
|
||||
//
|
||||
// The `[PROJECT_ID]` must be a valid Google Cloud project ID,
|
||||
// the `[CONFIG_NAME]` must be a valid RuntimeConfig resource, the
|
||||
// `[WAITER_NAME]` must match RFC 1035 segment specification, and the length
|
||||
// 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"`
|
||||
// [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"`
|
||||
// [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"`
|
||||
// [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"`
|
||||
// [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"`
|
||||
// [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"`
|
||||
// [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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Waiter) GetTimeout() *google_protobuf1.Duration {
|
||||
if m != nil {
|
||||
return m.Timeout
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Waiter) GetFailure() *EndCondition {
|
||||
if m != nil {
|
||||
return m.Failure
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Waiter) GetSuccess() *EndCondition {
|
||||
if m != nil {
|
||||
return m.Success
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Waiter) GetCreateTime() *google_protobuf2.Timestamp {
|
||||
if m != nil {
|
||||
return m.CreateTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Waiter) GetDone() bool {
|
||||
if m != nil {
|
||||
return m.Done
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *Waiter) GetError() *google_rpc.Status {
|
||||
if m != nil {
|
||||
return m.Error
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*RuntimeConfig)(nil), "google.cloud.runtimeconfig.v1beta1.RuntimeConfig")
|
||||
proto.RegisterType((*Variable)(nil), "google.cloud.runtimeconfig.v1beta1.Variable")
|
||||
proto.RegisterType((*EndCondition)(nil), "google.cloud.runtimeconfig.v1beta1.EndCondition")
|
||||
proto.RegisterType((*EndCondition_Cardinality)(nil), "google.cloud.runtimeconfig.v1beta1.EndCondition.Cardinality")
|
||||
proto.RegisterType((*Waiter)(nil), "google.cloud.runtimeconfig.v1beta1.Waiter")
|
||||
proto.RegisterEnum("google.cloud.runtimeconfig.v1beta1.VariableState", VariableState_name, VariableState_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/runtimeconfig/v1beta1/resources.proto", fileDescriptor0) }
|
||||
|
||||
var fileDescriptor0 = []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,
|
||||
0x2a, 0x2e, 0x12, 0xda, 0x5d, 0xa1, 0x71, 0xd3, 0x8f, 0xb0, 0x15, 0x4d, 0x30, 0xa5, 0x5d, 0x91,
|
||||
0xd0, 0xa4, 0xe1, 0x3a, 0x6e, 0x88, 0x94, 0xda, 0x91, 0xe3, 0x4c, 0xf0, 0x4a, 0x3c, 0x01, 0x2f,
|
||||
0xc0, 0x0d, 0x0f, 0xc1, 0x15, 0x0f, 0x82, 0xec, 0x38, 0xd0, 0xc2, 0xc4, 0x06, 0x77, 0x3e, 0x3e,
|
||||
0xff, 0xf3, 0x3b, 0x1f, 0x3e, 0x09, 0xf4, 0x23, 0xce, 0xa3, 0x84, 0x7a, 0x24, 0xe1, 0x79, 0xe8,
|
||||
0x89, 0x9c, 0xc9, 0x78, 0x45, 0x09, 0x67, 0xcb, 0x38, 0xf2, 0xae, 0x7a, 0x0b, 0x2a, 0x71, 0xcf,
|
||||
0x13, 0x34, 0xe3, 0xb9, 0x20, 0x34, 0x73, 0x53, 0xc1, 0x25, 0x47, 0x9d, 0x22, 0xc6, 0xd5, 0x31,
|
||||
0xee, 0x46, 0x8c, 0x6b, 0x62, 0x5a, 0x0f, 0x0d, 0x17, 0xa7, 0xb1, 0x87, 0x19, 0xe3, 0x12, 0xcb,
|
||||
0x98, 0x33, 0x43, 0x68, 0x1d, 0x18, 0xaf, 0xb6, 0x16, 0xf9, 0xd2, 0x0b, 0x73, 0xa1, 0x05, 0xc6,
|
||||
0xff, 0xe8, 0x77, 0xbf, 0xca, 0x90, 0x49, 0xbc, 0x4a, 0x8d, 0xe0, 0xbe, 0x11, 0x88, 0x94, 0x78,
|
||||
0x99, 0xc4, 0x32, 0x37, 0xe4, 0x8e, 0x0f, 0xbb, 0x41, 0x51, 0xd0, 0x48, 0x17, 0x84, 0x10, 0xd4,
|
||||
0x18, 0x5e, 0x51, 0xc7, 0x6a, 0x5b, 0xdd, 0xed, 0x40, 0x9f, 0x51, 0x1b, 0xec, 0x90, 0x66, 0x44,
|
||||
0xc4, 0xa9, 0xca, 0xe9, 0x54, 0xb5, 0x6b, 0xfd, 0xaa, 0xf3, 0xcd, 0x82, 0xad, 0x39, 0x16, 0x31,
|
||||
0x5e, 0x24, 0xf4, 0x5a, 0xc4, 0x3e, 0xd4, 0xaf, 0x70, 0x92, 0x53, 0x1d, 0xbc, 0x73, 0x52, 0x09,
|
||||
0x0a, 0x13, 0xdd, 0x83, 0x9a, 0xa4, 0x1f, 0xa4, 0x53, 0x57, 0xda, 0x93, 0x4a, 0xa0, 0x2d, 0x74,
|
||||
0x04, 0x76, 0x9e, 0x86, 0x58, 0xd2, 0x4b, 0x55, 0x99, 0x73, 0xa7, 0x6d, 0x75, 0xed, 0x7e, 0xcb,
|
||||
0x35, 0x73, 0x2c, 0xbb, 0x74, 0x67, 0x65, 0x97, 0x01, 0x14, 0x72, 0x75, 0x81, 0x8e, 0xa1, 0xae,
|
||||
0x5a, 0xa4, 0x4e, 0xad, 0x6d, 0x75, 0xef, 0xf6, 0x7b, 0xee, 0xcd, 0xe3, 0x77, 0xcb, 0xda, 0xa7,
|
||||
0x2a, 0x30, 0x28, 0xe2, 0x87, 0x00, 0x5b, 0x84, 0x33, 0x49, 0x99, 0xcc, 0x3a, 0x9f, 0x2d, 0xd8,
|
||||
0xf1, 0x59, 0x38, 0xe2, 0x2c, 0x8c, 0x55, 0xc7, 0xe8, 0x1d, 0xd8, 0x04, 0x8b, 0x30, 0x66, 0x38,
|
||||
0x89, 0xe5, 0x47, 0xdd, 0xab, 0xdd, 0x7f, 0x7e, 0x9b, 0x5c, 0xeb, 0x18, 0x77, 0xf4, 0x8b, 0x71,
|
||||
0x52, 0x09, 0xd6, 0x91, 0xad, 0x67, 0x60, 0xaf, 0x79, 0xd5, 0x54, 0x53, 0x2c, 0xdf, 0x97, 0x53,
|
||||
0x55, 0x67, 0xb4, 0x0f, 0x0d, 0x96, 0xaf, 0x16, 0x54, 0xe8, 0xb1, 0xd6, 0x03, 0x63, 0x0d, 0x6d,
|
||||
0xd8, 0x26, 0x65, 0x8a, 0xce, 0xf7, 0x2a, 0x34, 0xde, 0xe0, 0x58, 0x52, 0x71, 0xed, 0xcb, 0x1c,
|
||||
0x42, 0x53, 0x15, 0xc9, 0x73, 0xa9, 0x21, 0x76, 0xff, 0xc1, 0x1f, 0x73, 0x1e, 0x9b, 0x6d, 0x0b,
|
||||
0x4a, 0x25, 0x7a, 0x09, 0xcd, 0x25, 0x8e, 0x93, 0x5c, 0x94, 0x8f, 0xf3, 0xf4, 0x5f, 0x3b, 0x0f,
|
||||
0x4a, 0x80, 0x62, 0x65, 0x39, 0x21, 0x34, 0xcb, 0xf4, 0x8b, 0xfd, 0x17, 0xcb, 0x00, 0xd4, 0xe2,
|
||||
0x10, 0x41, 0x7f, 0x2e, 0x4e, 0xfd, 0xe6, 0xc5, 0x29, 0xe4, 0x7a, 0x71, 0x10, 0xd4, 0x42, 0xce,
|
||||
0xa8, 0xd3, 0x68, 0x5b, 0xdd, 0xad, 0x40, 0x9f, 0x51, 0x17, 0xea, 0x54, 0x08, 0x2e, 0x9c, 0xa6,
|
||||
0x46, 0xa1, 0x12, 0x25, 0x52, 0xe2, 0x4e, 0xf5, 0x87, 0x14, 0x14, 0x82, 0x27, 0x13, 0xd8, 0xdd,
|
||||
0xd8, 0x22, 0x74, 0x00, 0xad, 0xf9, 0x20, 0x98, 0x0c, 0x86, 0xa7, 0xfe, 0xe5, 0x74, 0x36, 0x98,
|
||||
0xf9, 0x97, 0xe7, 0xaf, 0xa6, 0x67, 0xfe, 0x68, 0xf2, 0x62, 0xe2, 0x8f, 0xf7, 0x2a, 0xc8, 0x86,
|
||||
0xe6, 0xf9, 0xd9, 0x78, 0x30, 0xf3, 0xc7, 0x7b, 0x96, 0x32, 0xc6, 0xfe, 0xa9, 0xaf, 0x8c, 0xea,
|
||||
0xf0, 0x8b, 0x05, 0x8f, 0x09, 0x5f, 0xdd, 0x62, 0x0c, 0x67, 0xd6, 0xdb, 0xd7, 0x46, 0x15, 0xf1,
|
||||
0x04, 0xb3, 0xc8, 0xe5, 0x22, 0xf2, 0x22, 0xca, 0x74, 0xab, 0x5e, 0xe1, 0xc2, 0x69, 0x9c, 0xfd,
|
||||
0xed, 0x87, 0x75, 0xb4, 0x71, 0xfb, 0xa9, 0xda, 0x39, 0x2e, 0x88, 0x23, 0x9d, 0x77, 0xe3, 0xf7,
|
||||
0xe0, 0xce, 0x7b, 0x43, 0x15, 0xf2, 0xb5, 0x14, 0x5d, 0x68, 0xd1, 0xc5, 0x86, 0xe8, 0x62, 0x5e,
|
||||
0x70, 0x17, 0x0d, 0x5d, 0xc5, 0xe1, 0x8f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1a, 0xc9, 0x60, 0x90,
|
||||
0x35, 0x05, 0x00, 0x00,
|
||||
}
|
1355
vendor/google.golang.org/genproto/googleapis/cloud/runtimeconfig/v1beta1/runtimeconfig.pb.go
generated
vendored
Normal file
1355
vendor/google.golang.org/genproto/googleapis/cloud/runtimeconfig/v1beta1/runtimeconfig.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1254
vendor/google.golang.org/genproto/googleapis/cloud/speech/v1/cloud_speech.pb.go
generated
vendored
Normal file
1254
vendor/google.golang.org/genproto/googleapis/cloud/speech/v1/cloud_speech.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1195
vendor/google.golang.org/genproto/googleapis/cloud/speech/v1beta1/cloud_speech.pb.go
generated
vendored
Normal file
1195
vendor/google.golang.org/genproto/googleapis/cloud/speech/v1beta1/cloud_speech.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1646
vendor/google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1/cloud_speech.pb.go
generated
vendored
Normal file
1646
vendor/google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1/cloud_speech.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
864
vendor/google.golang.org/genproto/googleapis/cloud/support/common/common.pb.go
generated
vendored
Normal file
864
vendor/google.golang.org/genproto/googleapis/cloud/support/common/common.pb.go
generated
vendored
Normal file
@ -0,0 +1,864 @@
|
||||
// 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
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
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
|
||||
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 current state of this SupportAccount.
|
||||
type SupportAccount_State int32
|
||||
|
||||
const (
|
||||
// Account is in an unknown state.
|
||||
SupportAccount_STATE_UNSPECIFIED SupportAccount_State = 0
|
||||
// Account is in an active state.
|
||||
SupportAccount_ACTIVE SupportAccount_State = 1
|
||||
// Account has been created but is being provisioned in support systems.
|
||||
SupportAccount_PENDING SupportAccount_State = 2
|
||||
// Account deletion has been requested by the user.
|
||||
SupportAccount_PENDING_DELETION SupportAccount_State = 3
|
||||
)
|
||||
|
||||
var SupportAccount_State_name = map[int32]string{
|
||||
0: "STATE_UNSPECIFIED",
|
||||
1: "ACTIVE",
|
||||
2: "PENDING",
|
||||
3: "PENDING_DELETION",
|
||||
}
|
||||
var SupportAccount_State_value = map[string]int32{
|
||||
"STATE_UNSPECIFIED": 0,
|
||||
"ACTIVE": 1,
|
||||
"PENDING": 2,
|
||||
"PENDING_DELETION": 3,
|
||||
}
|
||||
|
||||
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} }
|
||||
|
||||
// Pricing model applicable to this support account.
|
||||
type SupportAccount_PricingModel int32
|
||||
|
||||
const (
|
||||
// This account is subscribed to an unknown pricing model.
|
||||
SupportAccount_PRICING_MODEL_UNKNOWN SupportAccount_PricingModel = 0
|
||||
// Package based pricing (Platinum, Gold, Silver, Bronze).
|
||||
SupportAccount_PACKAGES SupportAccount_PricingModel = 1
|
||||
// Support charges are calculated based on user seats a.k.a,
|
||||
// "Pick Your Team" model.
|
||||
SupportAccount_USER_ROLES SupportAccount_PricingModel = 2
|
||||
)
|
||||
|
||||
var SupportAccount_PricingModel_name = map[int32]string{
|
||||
0: "PRICING_MODEL_UNKNOWN",
|
||||
1: "PACKAGES",
|
||||
2: "USER_ROLES",
|
||||
}
|
||||
var SupportAccount_PricingModel_value = map[string]int32{
|
||||
"PRICING_MODEL_UNKNOWN": 0,
|
||||
"PACKAGES": 1,
|
||||
"USER_ROLES": 2,
|
||||
}
|
||||
|
||||
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}
|
||||
}
|
||||
|
||||
// The case priority with P0 being the most urgent and P4 the least.
|
||||
type Case_Priority int32
|
||||
|
||||
const (
|
||||
// Priority is undefined or has not been set yet.
|
||||
Case_PRIORITY_UNSPECIFIED Case_Priority = 0
|
||||
// Extreme impact on a production service - Service is hard down.
|
||||
Case_P0 Case_Priority = 1
|
||||
// Critical impact on a production service - Service is currently unusable.
|
||||
Case_P1 Case_Priority = 2
|
||||
// Severe impact on a production service - Service is usable but greatly
|
||||
// impaired.
|
||||
Case_P2 Case_Priority = 3
|
||||
// Medium impact on a production service - Service is available, but
|
||||
// moderately impaired.
|
||||
Case_P3 Case_Priority = 4
|
||||
// General questions or minor issues - Production service is fully
|
||||
// available.
|
||||
Case_P4 Case_Priority = 5
|
||||
)
|
||||
|
||||
var Case_Priority_name = map[int32]string{
|
||||
0: "PRIORITY_UNSPECIFIED",
|
||||
1: "P0",
|
||||
2: "P1",
|
||||
3: "P2",
|
||||
4: "P3",
|
||||
5: "P4",
|
||||
}
|
||||
var Case_Priority_value = map[string]int32{
|
||||
"PRIORITY_UNSPECIFIED": 0,
|
||||
"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} }
|
||||
|
||||
// The state of a case.
|
||||
type Case_State int32
|
||||
|
||||
const (
|
||||
// Case is in an unknown state.
|
||||
Case_STATE_UNSPECIFIED Case_State = 0
|
||||
// Case has been created but no one is assigned to work on it yet.
|
||||
Case_NEW Case_State = 1
|
||||
// Case has been assigned to a support agent.
|
||||
Case_ASSIGNED Case_State = 2
|
||||
// A support agent is currently investigating the case.
|
||||
Case_IN_PROGRESS_GOOGLE_SUPPORT Case_State = 3
|
||||
// Case has been forwarded to product team for further investigation.
|
||||
Case_IN_PROGRESS_GOOGLE_ENG Case_State = 4
|
||||
// Case is under investigation and relates to a known issue.
|
||||
Case_IN_PROGRESS_KNOWN_ISSUE Case_State = 5
|
||||
// Case is waiting for a response from the customer.
|
||||
Case_WAITING_FOR_CUSTOMER_RESPONSE Case_State = 6
|
||||
// A solution has been offered for the case but it isn't closed yet.
|
||||
Case_SOLUTION_OFFERED Case_State = 7
|
||||
// Cases has been fully resolved and is in a closed state.
|
||||
Case_CLOSED Case_State = 8
|
||||
)
|
||||
|
||||
var Case_State_name = map[int32]string{
|
||||
0: "STATE_UNSPECIFIED",
|
||||
1: "NEW",
|
||||
2: "ASSIGNED",
|
||||
3: "IN_PROGRESS_GOOGLE_SUPPORT",
|
||||
4: "IN_PROGRESS_GOOGLE_ENG",
|
||||
5: "IN_PROGRESS_KNOWN_ISSUE",
|
||||
6: "WAITING_FOR_CUSTOMER_RESPONSE",
|
||||
7: "SOLUTION_OFFERED",
|
||||
8: "CLOSED",
|
||||
}
|
||||
var Case_State_value = map[string]int32{
|
||||
"STATE_UNSPECIFIED": 0,
|
||||
"NEW": 1,
|
||||
"ASSIGNED": 2,
|
||||
"IN_PROGRESS_GOOGLE_SUPPORT": 3,
|
||||
"IN_PROGRESS_GOOGLE_ENG": 4,
|
||||
"IN_PROGRESS_KNOWN_ISSUE": 5,
|
||||
"WAITING_FOR_CUSTOMER_RESPONSE": 6,
|
||||
"SOLUTION_OFFERED": 7,
|
||||
"CLOSED": 8,
|
||||
}
|
||||
|
||||
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} }
|
||||
|
||||
// The status of a customer issue.
|
||||
type CustomerIssue_IssueState int32
|
||||
|
||||
const (
|
||||
// Issue in an unknown state.
|
||||
CustomerIssue_ISSUE_STATE_UNSPECIFIED CustomerIssue_IssueState = 0
|
||||
// Issue is currently open but the work on it has not been started.
|
||||
CustomerIssue_OPEN CustomerIssue_IssueState = 1
|
||||
// Issue is currently being worked on.
|
||||
CustomerIssue_IN_PROGRESS CustomerIssue_IssueState = 2
|
||||
// Issue is fixed.
|
||||
CustomerIssue_FIXED CustomerIssue_IssueState = 3
|
||||
// Issue has been marked as invalid.
|
||||
CustomerIssue_WONT_FIX CustomerIssue_IssueState = 4
|
||||
// Issue verified and in production.
|
||||
CustomerIssue_VERIFIED CustomerIssue_IssueState = 5
|
||||
)
|
||||
|
||||
var CustomerIssue_IssueState_name = map[int32]string{
|
||||
0: "ISSUE_STATE_UNSPECIFIED",
|
||||
1: "OPEN",
|
||||
2: "IN_PROGRESS",
|
||||
3: "FIXED",
|
||||
4: "WONT_FIX",
|
||||
5: "VERIFIED",
|
||||
}
|
||||
var CustomerIssue_IssueState_value = map[string]int32{
|
||||
"ISSUE_STATE_UNSPECIFIED": 0,
|
||||
"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} }
|
||||
|
||||
// A role which determines the support resources and features a user might
|
||||
// get access to.
|
||||
type SupportRole_Role int32
|
||||
|
||||
const (
|
||||
// An unknown role.
|
||||
SupportRole_ROLE_UNSPECIFIED SupportRole_Role = 0
|
||||
// The basic support role.
|
||||
SupportRole_BASIC SupportRole_Role = 1
|
||||
// The developer role.
|
||||
SupportRole_DEVELOPER SupportRole_Role = 2
|
||||
// The operation role.
|
||||
SupportRole_OPERATION SupportRole_Role = 3
|
||||
// The site reliability role.
|
||||
SupportRole_SITE_RELIABILITY SupportRole_Role = 4
|
||||
)
|
||||
|
||||
var SupportRole_Role_name = map[int32]string{
|
||||
0: "ROLE_UNSPECIFIED",
|
||||
1: "BASIC",
|
||||
2: "DEVELOPER",
|
||||
3: "OPERATION",
|
||||
4: "SITE_RELIABILITY",
|
||||
}
|
||||
var SupportRole_Role_value = map[string]int32{
|
||||
"ROLE_UNSPECIFIED": 0,
|
||||
"BASIC": 1,
|
||||
"DEVELOPER": 2,
|
||||
"OPERATION": 3,
|
||||
"SITE_RELIABILITY": 4,
|
||||
}
|
||||
|
||||
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} }
|
||||
|
||||
// A Google Cloud Platform account that identifies support eligibility for a
|
||||
// Cloud resource. Currently the Cloud resource can only be an Organization
|
||||
// but this might change in future.
|
||||
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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *SupportAccount) GetAccountId() string {
|
||||
if m != nil {
|
||||
return m.AccountId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *SupportAccount) GetCloudResource() string {
|
||||
if m != nil {
|
||||
return m.CloudResource
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *SupportAccount) GetDisplayName() string {
|
||||
if m != nil {
|
||||
return m.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *SupportAccount) GetState() SupportAccount_State {
|
||||
if m != nil {
|
||||
return m.State
|
||||
}
|
||||
return SupportAccount_STATE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *SupportAccount) GetCreateTime() *google_protobuf1.Timestamp {
|
||||
if m != nil {
|
||||
return m.CreateTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *SupportAccount) GetBillingAccountName() string {
|
||||
if m != nil {
|
||||
return m.BillingAccountName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *SupportAccount) GetUnifyAccountId() string {
|
||||
if m != nil {
|
||||
return m.UnifyAccountId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *SupportAccount) GetPricingModel() SupportAccount_PricingModel {
|
||||
if m != nil {
|
||||
return m.PricingModel
|
||||
}
|
||||
return SupportAccount_PRICING_MODEL_UNKNOWN
|
||||
}
|
||||
|
||||
// A support case created by the user.
|
||||
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"`
|
||||
// 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"`
|
||||
// The board description of issue provided with initial summary.
|
||||
Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
|
||||
// The product component for which this Case is reported.
|
||||
Component string `protobuf:"bytes,4,opt,name=component" json:"component,omitempty"`
|
||||
// The product subcomponent for which this Case is reported.
|
||||
Subcomponent string `protobuf:"bytes,5,opt,name=subcomponent" 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// List of customer issues associated with this case.
|
||||
Issues []*CustomerIssue `protobuf:"bytes,10,rep,name=issues" 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// The issue category applicable to this case.
|
||||
Category string `protobuf:"bytes,16,opt,name=category" json:"category,omitempty"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Case) GetDisplayName() string {
|
||||
if m != nil {
|
||||
return m.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Case) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Case) GetComponent() string {
|
||||
if m != nil {
|
||||
return m.Component
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Case) GetSubcomponent() string {
|
||||
if m != nil {
|
||||
return m.Subcomponent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Case) GetClientTimezone() string {
|
||||
if m != nil {
|
||||
return m.ClientTimezone
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Case) GetCcAddresses() []string {
|
||||
if m != nil {
|
||||
return m.CcAddresses
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Case) GetProjectId() string {
|
||||
if m != nil {
|
||||
return m.ProjectId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Case) GetIssues() []*CustomerIssue {
|
||||
if m != nil {
|
||||
return m.Issues
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Case) GetPriority() Case_Priority {
|
||||
if m != nil {
|
||||
return m.Priority
|
||||
}
|
||||
return Case_PRIORITY_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *Case) GetState() Case_State {
|
||||
if m != nil {
|
||||
return m.State
|
||||
}
|
||||
return Case_STATE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *Case) GetCreateTime() *google_protobuf1.Timestamp {
|
||||
if m != nil {
|
||||
return m.CreateTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Case) GetUpdateTime() *google_protobuf1.Timestamp {
|
||||
if m != nil {
|
||||
return m.UpdateTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Case) GetCreatorEmail() string {
|
||||
if m != nil {
|
||||
return m.CreatorEmail
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Case) GetCategory() string {
|
||||
if m != nil {
|
||||
return m.Category
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Reference to a Google internal ticket used for investigating a support case.
|
||||
// Not every support case will have an internal ticket associated with it.
|
||||
// A support case can have multiple tickets linked to it.
|
||||
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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetIssueId() string {
|
||||
if m != nil {
|
||||
return m.IssueId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CustomerIssue) GetState() CustomerIssue_IssueState {
|
||||
if m != nil {
|
||||
return m.State
|
||||
}
|
||||
return CustomerIssue_ISSUE_STATE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *CustomerIssue) GetCreateTime() *google_protobuf1.Timestamp {
|
||||
if m != nil {
|
||||
return m.CreateTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *CustomerIssue) GetResolveTime() *google_protobuf1.Timestamp {
|
||||
if m != nil {
|
||||
return m.ResolveTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *CustomerIssue) GetUpdateTime() *google_protobuf1.Timestamp {
|
||||
if m != nil {
|
||||
return m.UpdateTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A message that contains mapping of a user and their role under a support
|
||||
// account.
|
||||
type SupportRole struct {
|
||||
// Email address of user being added through this Role.
|
||||
Email string `protobuf:"bytes,1,opt,name=email" 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"`
|
||||
}
|
||||
|
||||
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) GetEmail() string {
|
||||
if m != nil {
|
||||
return m.Email
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *SupportRole) GetRole() SupportRole_Role {
|
||||
if m != nil {
|
||||
return m.Role
|
||||
}
|
||||
return SupportRole_ROLE_UNSPECIFIED
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// 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"`
|
||||
// The email address/name of user who created this comment.
|
||||
// Output only.
|
||||
Author string `protobuf:"bytes,3,opt,name=author" 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"`
|
||||
}
|
||||
|
||||
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) GetText() string {
|
||||
if m != nil {
|
||||
return m.Text
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Comment) GetCreateTime() *google_protobuf1.Timestamp {
|
||||
if m != nil {
|
||||
return m.CreateTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Comment) GetAuthor() string {
|
||||
if m != nil {
|
||||
return m.Author
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Comment) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Represents the product component taxonomy that is to be used while creating
|
||||
// or updating a `Case`. A client should obtain the list of issue categories,
|
||||
// component/subcomponent from this object and specify it in `Case.category`,
|
||||
// `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"`
|
||||
}
|
||||
|
||||
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) GetCategories() map[string]*IssueTaxonomy_Category {
|
||||
if m != nil {
|
||||
return m.Categories
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// The representation of a product component. It is composed of a canonical
|
||||
// name for the product (e.g., Google App Engine), languages in which a
|
||||
// support ticket can be created under this component, a template that
|
||||
// provides hints on important details to be filled out before submitting a
|
||||
// case. It also contains an embedded list of product subcomponents that have
|
||||
// similar attributes as top-level components.
|
||||
// (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"`
|
||||
// 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"`
|
||||
// Template to be used while filling the description of a support case.
|
||||
Template string `protobuf:"bytes,3,opt,name=template" json:"template,omitempty"`
|
||||
// List of subcomponents under this component.
|
||||
Subcomponents []*IssueTaxonomy_Component `protobuf:"bytes,4,rep,name=subcomponents" json:"subcomponents,omitempty"`
|
||||
}
|
||||
|
||||
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) GetDisplayName() string {
|
||||
if m != nil {
|
||||
return m.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *IssueTaxonomy_Component) GetLanguages() []string {
|
||||
if m != nil {
|
||||
return m.Languages
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *IssueTaxonomy_Component) GetTemplate() string {
|
||||
if m != nil {
|
||||
return m.Template
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *IssueTaxonomy_Component) GetSubcomponents() []*IssueTaxonomy_Component {
|
||||
if m != nil {
|
||||
return m.Subcomponents
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Represents the category of issue (Technical or Non-Technical)
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetDisplayName() string {
|
||||
if m != nil {
|
||||
return m.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *IssueTaxonomy_Category) GetComponents() map[string]*IssueTaxonomy_Component {
|
||||
if m != nil {
|
||||
return m.Components
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*SupportAccount)(nil), "google.cloud.support.common.SupportAccount")
|
||||
proto.RegisterType((*Case)(nil), "google.cloud.support.common.Case")
|
||||
proto.RegisterType((*CustomerIssue)(nil), "google.cloud.support.common.CustomerIssue")
|
||||
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.RegisterType((*IssueTaxonomy_Component)(nil), "google.cloud.support.common.IssueTaxonomy.Component")
|
||||
proto.RegisterType((*IssueTaxonomy_Category)(nil), "google.cloud.support.common.IssueTaxonomy.Category")
|
||||
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)
|
||||
proto.RegisterEnum("google.cloud.support.common.Case_State", Case_State_name, Case_State_value)
|
||||
proto.RegisterEnum("google.cloud.support.common.CustomerIssue_IssueState", CustomerIssue_IssueState_name, CustomerIssue_IssueState_value)
|
||||
proto.RegisterEnum("google.cloud.support.common.SupportRole_Role", SupportRole_Role_name, SupportRole_Role_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/support/common.proto", fileDescriptor0) }
|
||||
|
||||
var fileDescriptor0 = []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,
|
||||
0x78, 0x88, 0x51, 0xa0, 0x72, 0xe2, 0xa4, 0x40, 0x90, 0x20, 0x3f, 0x64, 0x6a, 0x2d, 0xb0, 0x91,
|
||||
0x49, 0x82, 0xa4, 0xe3, 0x24, 0x45, 0x41, 0xd0, 0xd4, 0x46, 0x65, 0x43, 0x72, 0x09, 0x92, 0x4a,
|
||||
0xa3, 0x1e, 0xa0, 0x3d, 0x45, 0xef, 0xd0, 0x5f, 0xbd, 0x40, 0x7b, 0x83, 0xde, 0xa1, 0xe7, 0x28,
|
||||
0x76, 0x49, 0xc9, 0xb2, 0x63, 0xd8, 0x51, 0xfe, 0x68, 0x39, 0xb3, 0x33, 0xb3, 0x33, 0xb3, 0xdf,
|
||||
0xb7, 0x63, 0xc3, 0xfd, 0x09, 0x63, 0x93, 0x90, 0xee, 0xfa, 0x21, 0x9b, 0x8e, 0x77, 0xb3, 0x69,
|
||||
0x92, 0xb0, 0x34, 0xdf, 0xf5, 0x59, 0x14, 0xb1, 0xb8, 0x97, 0xa4, 0x2c, 0x67, 0xf8, 0x76, 0x61,
|
||||
0xd2, 0x13, 0x26, 0xbd, 0xd2, 0xa4, 0x57, 0x98, 0x74, 0xee, 0x94, 0xfe, 0x5e, 0x12, 0xec, 0x7a,
|
||||
0x71, 0xcc, 0x72, 0x2f, 0x0f, 0x58, 0x9c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0x34, 0x48, 0x38, 0xbe, 0x4b, 0x7c, 0x2d, 0xab, 0xf0, 0x1d, 0x68, 0xfa, 0x2c, 0x4a,
|
||||
0x58, 0x4c, 0xe3, 0xbc, 0x84, 0xd6, 0xa9, 0x02, 0x77, 0x61, 0x3d, 0x9b, 0x9e, 0x9c, 0x1a, 0xd4,
|
||||
0x84, 0xc1, 0x19, 0x1d, 0x7e, 0x00, 0x9b, 0x7e, 0x18, 0xd0, 0x38, 0x17, 0x98, 0xf9, 0x99, 0xc5,
|
||||
0x05, 0x6e, 0x9a, 0xd6, 0x46, 0xa1, 0x76, 0x4a, 0x2d, 0xcf, 0xd7, 0xf7, 0x5d, 0x6f, 0x3c, 0x4e,
|
||||
0x69, 0x96, 0xd1, 0x4c, 0xa9, 0x6f, 0x57, 0x78, 0x36, 0xbe, 0xdf, 0x9f, 0xab, 0x38, 0x63, 0x92,
|
||||
0x94, 0xfd, 0x48, 0xfd, 0x25, 0x28, 0x34, 0x4b, 0x8d, 0x36, 0xc6, 0xfb, 0xb0, 0x16, 0x64, 0xd9,
|
||||
0x94, 0x66, 0x0a, 0x6c, 0x57, 0x76, 0x5a, 0x7b, 0x5f, 0x5d, 0x7a, 0xfd, 0xea, 0x34, 0xcb, 0x59,
|
||||
0x44, 0x53, 0x8d, 0xbb, 0x58, 0xa5, 0x27, 0x3e, 0x80, 0x46, 0x92, 0x06, 0x2c, 0x0d, 0xf2, 0x99,
|
||||
0xd2, 0x12, 0x20, 0xba, 0x22, 0x8a, 0x97, 0x51, 0x0e, 0x1d, 0xe1, 0x61, 0x2d, 0x7c, 0xf1, 0x8b,
|
||||
0x39, 0xe7, 0xd6, 0x45, 0x90, 0x07, 0x57, 0x07, 0xb9, 0x8c, 0x69, 0xed, 0x95, 0x98, 0xf6, 0x1c,
|
||||
0x5a, 0xd3, 0x64, 0xbc, 0x70, 0xde, 0xb8, 0xda, 0xb9, 0x30, 0x17, 0xce, 0xff, 0x83, 0xb6, 0x08,
|
||||
0xc5, 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, 0xe1,
|
||||
0x36, 0x34, 0x07, 0xe4, 0x15, 0x19, 0x19, 0x26, 0xb1, 0x90, 0xcc, 0x45, 0xfe, 0xd5, 0x2f, 0x26,
|
||||
0x8a, 0x40, 0x9c, 0xe6, 0x10, 0xd7, 0x22, 0x23, 0xad, 0xbf, 0xaf, 0x8d, 0x34, 0xe7, 0x0d, 0xaa,
|
||||
0x76, 0x7f, 0x91, 0xa0, 0xae, 0xb2, 0x28, 0xa2, 0xc5, 0x1f, 0x20, 0x39, 0xfd, 0x98, 0xcf, 0x27,
|
||||
0x04, 0xff, 0x3e, 0x8f, 0x05, 0x79, 0x25, 0x2c, 0xdc, 0x84, 0x35, 0x6f, 0x9a, 0xff, 0xc0, 0xd2,
|
||||
0x72, 0x6c, 0x94, 0xd2, 0x62, 0x14, 0x55, 0x4f, 0x47, 0x51, 0xf7, 0xf7, 0x1a, 0xb4, 0xc5, 0xe5,
|
||||
0x39, 0xde, 0x47, 0x16, 0xb3, 0x68, 0x86, 0xdf, 0x02, 0x94, 0x0f, 0x46, 0x40, 0x33, 0x45, 0x12,
|
||||
0xcf, 0xf5, 0xb3, 0x4b, 0x1b, 0x78, 0xc6, 0xbf, 0xa7, 0x2e, 0x9c, 0x49, 0x9c, 0xa7, 0x33, 0x6b,
|
||||
0x29, 0x5a, 0xe7, 0x2f, 0x09, 0x9a, 0xea, 0x62, 0xfe, 0x9c, 0x1f, 0x83, 0xd2, 0xa7, 0x63, 0xf0,
|
||||
0x0e, 0x34, 0x43, 0x2f, 0x9e, 0x4c, 0xbd, 0x09, 0xcd, 0x14, 0x59, 0x8c, 0x9d, 0x53, 0x05, 0x7f,
|
||||
0xeb, 0x72, 0x1a, 0x25, 0x21, 0x67, 0x60, 0x51, 0xea, 0x42, 0xc6, 0x6f, 0xa1, 0xbd, 0x3c, 0xec,
|
||||
0x32, 0xa5, 0x2a, 0x2a, 0x79, 0xb2, 0x4a, 0x25, 0x73, 0x67, 0xeb, 0x6c, 0xa8, 0xce, 0xaf, 0x32,
|
||||
0x34, 0xca, 0x32, 0x67, 0x9f, 0x53, 0x85, 0x0f, 0xb0, 0x94, 0x88, 0x2c, 0x12, 0x51, 0x57, 0x6f,
|
||||
0xe9, 0x52, 0x46, 0x8b, 0xde, 0x9e, 0x26, 0x95, 0xc1, 0xe6, 0xb9, 0x6d, 0x8c, 0xa0, 0xf2, 0x9e,
|
||||
0xce, 0xca, 0x8c, 0xf8, 0x27, 0xfe, 0x16, 0x6a, 0x1f, 0xbc, 0x70, 0x3a, 0x47, 0xd4, 0x97, 0x75,
|
||||
0xa3, 0x08, 0xf1, 0x4c, 0x7e, 0x2a, 0x75, 0x52, 0xd8, 0x3c, 0x77, 0xdf, 0x17, 0x1c, 0xaa, 0x9d,
|
||||
0x3d, 0xf4, 0xf1, 0x17, 0x54, 0xbe, 0x74, 0xe6, 0xfe, 0x4f, 0x70, 0xcf, 0x67, 0xd1, 0x65, 0x41,
|
||||
0xf6, 0xaf, 0xab, 0x5c, 0x5b, 0x12, 0xdb, 0xe4, 0x6c, 0x79, 0xdb, 0x2f, 0xed, 0x27, 0x8c, 0xe3,
|
||||
0xa7, 0xc7, 0xd2, 0xc9, 0xee, 0x84, 0xc6, 0x82, 0x49, 0xbb, 0xc5, 0x96, 0x97, 0x04, 0xd9, 0x85,
|
||||
0xff, 0x97, 0x3c, 0x2f, 0x96, 0x93, 0x35, 0x61, 0xfd, 0xf8, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff,
|
||||
0x0c, 0xd0, 0x7b, 0x46, 0xc4, 0x0c, 0x00, 0x00,
|
||||
}
|
806
vendor/google.golang.org/genproto/googleapis/cloud/support/v1alpha1/cloud_support.pb.go
generated
vendored
Normal file
806
vendor/google.golang.org/genproto/googleapis/cloud/support/v1alpha1/cloud_support.pb.go
generated
vendored
Normal file
@ -0,0 +1,806 @@
|
||||
// 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
|
||||
|
||||
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 (
|
||||
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 request message for `GetSupportAccount`.
|
||||
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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The request message for `ListSupportAccount`.
|
||||
type ListSupportAccountsRequest struct {
|
||||
// The filter applied to search results. It only supports filtering a support
|
||||
// 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"`
|
||||
// Maximum number of accounts fetched with each request.
|
||||
PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize" 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"`
|
||||
}
|
||||
|
||||
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) GetFilter() string {
|
||||
if m != nil {
|
||||
return m.Filter
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ListSupportAccountsRequest) GetPageSize() int64 {
|
||||
if m != nil {
|
||||
return m.PageSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ListSupportAccountsRequest) GetPageToken() string {
|
||||
if m != nil {
|
||||
return m.PageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetAccounts() []*google_cloud_support_common.SupportAccount {
|
||||
if m != nil {
|
||||
return m.Accounts
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ListSupportAccountsResponse) GetNextPageToken() string {
|
||||
if m != nil {
|
||||
return m.NextPageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The request message for `GetCase` method.
|
||||
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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The request message for `ListCase` method.
|
||||
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"`
|
||||
// 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"`
|
||||
// Maximum number of cases fetched with each request.
|
||||
PageSize int64 `protobuf:"varint,3,opt,name=page_size,json=pageSize" 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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ListCasesRequest) GetFilter() string {
|
||||
if m != nil {
|
||||
return m.Filter
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ListCasesRequest) GetPageSize() int64 {
|
||||
if m != nil {
|
||||
return m.PageSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ListCasesRequest) GetPageToken() string {
|
||||
if m != nil {
|
||||
return m.PageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetCases() []*google_cloud_support_common.Case {
|
||||
if m != nil {
|
||||
return m.Cases
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ListCasesResponse) GetNextPageToken() string {
|
||||
if m != nil {
|
||||
return m.NextPageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetComments() []*google_cloud_support_common.Comment {
|
||||
if m != nil {
|
||||
return m.Comments
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// The case resource to create.
|
||||
Case *google_cloud_support_common.Case `protobuf:"bytes,2,opt,name=case" json:"case,omitempty"`
|
||||
}
|
||||
|
||||
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) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CreateCaseRequest) GetCase() *google_cloud_support_common.Case {
|
||||
if m != nil {
|
||||
return m.Case
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetCase() *google_cloud_support_common.Case {
|
||||
if m != nil {
|
||||
return m.Case
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *UpdateCaseRequest) GetUpdateMask() *google_protobuf3.FieldMask {
|
||||
if m != nil {
|
||||
return m.UpdateMask
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// The `Comment` to be added to this case.
|
||||
Comment *google_cloud_support_common.Comment `protobuf:"bytes,2,opt,name=comment" json:"comment,omitempty"`
|
||||
}
|
||||
|
||||
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) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CreateCommentRequest) GetComment() *google_cloud_support_common.Comment {
|
||||
if m != nil {
|
||||
return m.Comment
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// The request message for `GetIssueTaxonomy` method.
|
||||
type GetIssueTaxonomyRequest struct {
|
||||
}
|
||||
|
||||
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 init() {
|
||||
proto.RegisterType((*GetSupportAccountRequest)(nil), "google.cloud.support.v1alpha1.GetSupportAccountRequest")
|
||||
proto.RegisterType((*ListSupportAccountsRequest)(nil), "google.cloud.support.v1alpha1.ListSupportAccountsRequest")
|
||||
proto.RegisterType((*ListSupportAccountsResponse)(nil), "google.cloud.support.v1alpha1.ListSupportAccountsResponse")
|
||||
proto.RegisterType((*GetCaseRequest)(nil), "google.cloud.support.v1alpha1.GetCaseRequest")
|
||||
proto.RegisterType((*ListCasesRequest)(nil), "google.cloud.support.v1alpha1.ListCasesRequest")
|
||||
proto.RegisterType((*ListCasesResponse)(nil), "google.cloud.support.v1alpha1.ListCasesResponse")
|
||||
proto.RegisterType((*ListCommentsRequest)(nil), "google.cloud.support.v1alpha1.ListCommentsRequest")
|
||||
proto.RegisterType((*ListCommentsResponse)(nil), "google.cloud.support.v1alpha1.ListCommentsResponse")
|
||||
proto.RegisterType((*CreateCaseRequest)(nil), "google.cloud.support.v1alpha1.CreateCaseRequest")
|
||||
proto.RegisterType((*UpdateCaseRequest)(nil), "google.cloud.support.v1alpha1.UpdateCaseRequest")
|
||||
proto.RegisterType((*CreateCommentRequest)(nil), "google.cloud.support.v1alpha1.CreateCommentRequest")
|
||||
proto.RegisterType((*GetIssueTaxonomyRequest)(nil), "google.cloud.support.v1alpha1.GetIssueTaxonomyRequest")
|
||||
}
|
||||
|
||||
// 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
|
||||
|
||||
// Client API for CloudSupport service
|
||||
|
||||
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)
|
||||
// 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)
|
||||
// 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)
|
||||
// Lists all comments from a case.
|
||||
ListComments(ctx context.Context, in *ListCommentsRequest, opts ...grpc.CallOption) (*ListCommentsResponse, error)
|
||||
// Creates a case and associates it with a
|
||||
// [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)
|
||||
// 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)
|
||||
// Adds a new comment to a case.
|
||||
CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...grpc.CallOption) (*google_cloud_support_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)
|
||||
}
|
||||
|
||||
type cloudSupportClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
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...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
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...)
|
||||
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...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
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...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
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...)
|
||||
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...)
|
||||
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...)
|
||||
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...)
|
||||
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...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// 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)
|
||||
// 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)
|
||||
// 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)
|
||||
// Lists all comments from a case.
|
||||
ListComments(context.Context, *ListCommentsRequest) (*ListCommentsResponse, error)
|
||||
// Creates a case and associates it with a
|
||||
// [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)
|
||||
// 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)
|
||||
// Adds a new comment to a case.
|
||||
CreateComment(context.Context, *CreateCommentRequest) (*google_cloud_support_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)
|
||||
}
|
||||
|
||||
func RegisterCloudSupportServer(s *grpc.Server, srv CloudSupportServer) {
|
||||
s.RegisterService(&_CloudSupport_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _CloudSupport_GetSupportAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetSupportAccountRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(CloudSupportServer).GetSupportAccount(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.support.v1alpha1.CloudSupport/GetSupportAccount",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(CloudSupportServer).GetSupportAccount(ctx, req.(*GetSupportAccountRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _CloudSupport_ListSupportAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListSupportAccountsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(CloudSupportServer).ListSupportAccounts(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.support.v1alpha1.CloudSupport/ListSupportAccounts",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(CloudSupportServer).ListSupportAccounts(ctx, req.(*ListSupportAccountsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _CloudSupport_GetCase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetCaseRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(CloudSupportServer).GetCase(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.support.v1alpha1.CloudSupport/GetCase",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(CloudSupportServer).GetCase(ctx, req.(*GetCaseRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _CloudSupport_ListCases_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListCasesRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(CloudSupportServer).ListCases(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.support.v1alpha1.CloudSupport/ListCases",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(CloudSupportServer).ListCases(ctx, req.(*ListCasesRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _CloudSupport_ListComments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListCommentsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(CloudSupportServer).ListComments(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.support.v1alpha1.CloudSupport/ListComments",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(CloudSupportServer).ListComments(ctx, req.(*ListCommentsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _CloudSupport_CreateCase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateCaseRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(CloudSupportServer).CreateCase(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.support.v1alpha1.CloudSupport/CreateCase",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(CloudSupportServer).CreateCase(ctx, req.(*CreateCaseRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _CloudSupport_UpdateCase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateCaseRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(CloudSupportServer).UpdateCase(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.support.v1alpha1.CloudSupport/UpdateCase",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(CloudSupportServer).UpdateCase(ctx, req.(*UpdateCaseRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _CloudSupport_CreateComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateCommentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(CloudSupportServer).CreateComment(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.support.v1alpha1.CloudSupport/CreateComment",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(CloudSupportServer).CreateComment(ctx, req.(*CreateCommentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _CloudSupport_GetIssueTaxonomy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetIssueTaxonomyRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(CloudSupportServer).GetIssueTaxonomy(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.support.v1alpha1.CloudSupport/GetIssueTaxonomy",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(CloudSupportServer).GetIssueTaxonomy(ctx, req.(*GetIssueTaxonomyRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _CloudSupport_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.cloud.support.v1alpha1.CloudSupport",
|
||||
HandlerType: (*CloudSupportServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "GetSupportAccount",
|
||||
Handler: _CloudSupport_GetSupportAccount_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ListSupportAccounts",
|
||||
Handler: _CloudSupport_ListSupportAccounts_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetCase",
|
||||
Handler: _CloudSupport_GetCase_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ListCases",
|
||||
Handler: _CloudSupport_ListCases_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ListComments",
|
||||
Handler: _CloudSupport_ListComments_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "CreateCase",
|
||||
Handler: _CloudSupport_CreateCase_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateCase",
|
||||
Handler: _CloudSupport_UpdateCase_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "CreateComment",
|
||||
Handler: _CloudSupport_CreateComment_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetIssueTaxonomy",
|
||||
Handler: _CloudSupport_GetIssueTaxonomy_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/cloud/support/v1alpha1/cloud_support.proto",
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/support/v1alpha1/cloud_support.proto", fileDescriptor0) }
|
||||
|
||||
var fileDescriptor0 = []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,
|
||||
0xa6, 0x56, 0xdd, 0x85, 0x36, 0x88, 0x96, 0x40, 0x14, 0x88, 0x8d, 0x89, 0x26, 0xa4, 0x60, 0x62,
|
||||
0xbc, 0x34, 0x43, 0x19, 0xd6, 0x95, 0xee, 0xce, 0xda, 0x99, 0x1a, 0x40, 0xbd, 0x78, 0xf1, 0xa6,
|
||||
0x07, 0x6f, 0x7a, 0xe1, 0xe2, 0x59, 0x0f, 0xfe, 0x13, 0xff, 0x82, 0xfe, 0x0f, 0xb3, 0xb3, 0xb3,
|
||||
0xed, 0x76, 0x69, 0x77, 0x17, 0x6e, 0xdd, 0x77, 0xde, 0xe7, 0x7d, 0x9f, 0x79, 0xe6, 0x9d, 0x67,
|
||||
0x0a, 0x3b, 0x36, 0xe7, 0xf6, 0x80, 0x59, 0xfd, 0x01, 0x1f, 0x5d, 0x5a, 0x62, 0xe4, 0xfb, 0x7c,
|
||||
0x28, 0xad, 0x6f, 0x77, 0xe8, 0xc0, 0xff, 0x8a, 0xee, 0x84, 0xe1, 0x9e, 0x0e, 0x9b, 0xfe, 0x90,
|
||||
0x4b, 0x8e, 0x37, 0x43, 0x88, 0xa9, 0xd6, 0xcc, 0x68, 0x2d, 0x82, 0x18, 0x1b, 0xba, 0x22, 0xf5,
|
||||
0x1d, 0x8b, 0x7a, 0x1e, 0x97, 0x54, 0x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||||
0xd0, 0xfa, 0x3f, 0x00, 0x00, 0xff, 0xff, 0xad, 0xe1, 0xf2, 0x57, 0x85, 0x0b, 0x00, 0x00,
|
||||
}
|
1158
vendor/google.golang.org/genproto/googleapis/cloud/videointelligence/v1/video_intelligence.pb.go
generated
vendored
Normal file
1158
vendor/google.golang.org/genproto/googleapis/cloud/videointelligence/v1/video_intelligence.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
990
vendor/google.golang.org/genproto/googleapis/cloud/videointelligence/v1beta1/video_intelligence.pb.go
generated
vendored
Normal file
990
vendor/google.golang.org/genproto/googleapis/cloud/videointelligence/v1beta1/video_intelligence.pb.go
generated
vendored
Normal file
@ -0,0 +1,990 @@
|
||||
// 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
|
||||
|
||||
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 google_protobuf3 "github.com/golang/protobuf/ptypes/timestamp"
|
||||
import google_rpc "google.golang.org/genproto/googleapis/rpc/status"
|
||||
|
||||
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
|
||||
|
||||
// Video annotation feature.
|
||||
type Feature int32
|
||||
|
||||
const (
|
||||
// Unspecified.
|
||||
Feature_FEATURE_UNSPECIFIED Feature = 0
|
||||
// Label detection. Detect objects, such as dog or flower.
|
||||
Feature_LABEL_DETECTION Feature = 1
|
||||
// Human face detection and tracking.
|
||||
Feature_FACE_DETECTION Feature = 2
|
||||
// Shot change detection.
|
||||
Feature_SHOT_CHANGE_DETECTION Feature = 3
|
||||
// Safe search detection.
|
||||
Feature_SAFE_SEARCH_DETECTION Feature = 4
|
||||
)
|
||||
|
||||
var Feature_name = map[int32]string{
|
||||
0: "FEATURE_UNSPECIFIED",
|
||||
1: "LABEL_DETECTION",
|
||||
2: "FACE_DETECTION",
|
||||
3: "SHOT_CHANGE_DETECTION",
|
||||
4: "SAFE_SEARCH_DETECTION",
|
||||
}
|
||||
var Feature_value = map[string]int32{
|
||||
"FEATURE_UNSPECIFIED": 0,
|
||||
"LABEL_DETECTION": 1,
|
||||
"FACE_DETECTION": 2,
|
||||
"SHOT_CHANGE_DETECTION": 3,
|
||||
"SAFE_SEARCH_DETECTION": 4,
|
||||
}
|
||||
|
||||
func (x Feature) String() string {
|
||||
return proto.EnumName(Feature_name, int32(x))
|
||||
}
|
||||
func (Feature) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
|
||||
// Label level (scope).
|
||||
type LabelLevel int32
|
||||
|
||||
const (
|
||||
// Unspecified.
|
||||
LabelLevel_LABEL_LEVEL_UNSPECIFIED LabelLevel = 0
|
||||
// Video-level. Corresponds to the whole video.
|
||||
LabelLevel_VIDEO_LEVEL LabelLevel = 1
|
||||
// Segment-level. Corresponds to one of `AnnotateSpec.segments`.
|
||||
LabelLevel_SEGMENT_LEVEL LabelLevel = 2
|
||||
// Shot-level. Corresponds to a single shot (i.e. a series of frames
|
||||
// without a major camera position or background change).
|
||||
LabelLevel_SHOT_LEVEL LabelLevel = 3
|
||||
// Frame-level. Corresponds to a single video frame.
|
||||
LabelLevel_FRAME_LEVEL LabelLevel = 4
|
||||
)
|
||||
|
||||
var LabelLevel_name = map[int32]string{
|
||||
0: "LABEL_LEVEL_UNSPECIFIED",
|
||||
1: "VIDEO_LEVEL",
|
||||
2: "SEGMENT_LEVEL",
|
||||
3: "SHOT_LEVEL",
|
||||
4: "FRAME_LEVEL",
|
||||
}
|
||||
var LabelLevel_value = map[string]int32{
|
||||
"LABEL_LEVEL_UNSPECIFIED": 0,
|
||||
"VIDEO_LEVEL": 1,
|
||||
"SEGMENT_LEVEL": 2,
|
||||
"SHOT_LEVEL": 3,
|
||||
"FRAME_LEVEL": 4,
|
||||
}
|
||||
|
||||
func (x LabelLevel) String() string {
|
||||
return proto.EnumName(LabelLevel_name, int32(x))
|
||||
}
|
||||
func (LabelLevel) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
||||
|
||||
// Label detection mode.
|
||||
type LabelDetectionMode int32
|
||||
|
||||
const (
|
||||
// Unspecified.
|
||||
LabelDetectionMode_LABEL_DETECTION_MODE_UNSPECIFIED LabelDetectionMode = 0
|
||||
// Detect shot-level labels.
|
||||
LabelDetectionMode_SHOT_MODE LabelDetectionMode = 1
|
||||
// Detect frame-level labels.
|
||||
LabelDetectionMode_FRAME_MODE LabelDetectionMode = 2
|
||||
// Detect both shot-level and frame-level labels.
|
||||
LabelDetectionMode_SHOT_AND_FRAME_MODE LabelDetectionMode = 3
|
||||
)
|
||||
|
||||
var LabelDetectionMode_name = map[int32]string{
|
||||
0: "LABEL_DETECTION_MODE_UNSPECIFIED",
|
||||
1: "SHOT_MODE",
|
||||
2: "FRAME_MODE",
|
||||
3: "SHOT_AND_FRAME_MODE",
|
||||
}
|
||||
var LabelDetectionMode_value = map[string]int32{
|
||||
"LABEL_DETECTION_MODE_UNSPECIFIED": 0,
|
||||
"SHOT_MODE": 1,
|
||||
"FRAME_MODE": 2,
|
||||
"SHOT_AND_FRAME_MODE": 3,
|
||||
}
|
||||
|
||||
func (x LabelDetectionMode) String() string {
|
||||
return proto.EnumName(LabelDetectionMode_name, int32(x))
|
||||
}
|
||||
func (LabelDetectionMode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
||||
|
||||
// Bucketized representation of likelihood.
|
||||
type Likelihood int32
|
||||
|
||||
const (
|
||||
// Unknown likelihood.
|
||||
Likelihood_UNKNOWN Likelihood = 0
|
||||
// Very unlikely.
|
||||
Likelihood_VERY_UNLIKELY Likelihood = 1
|
||||
// Unlikely.
|
||||
Likelihood_UNLIKELY Likelihood = 2
|
||||
// Possible.
|
||||
Likelihood_POSSIBLE Likelihood = 3
|
||||
// Likely.
|
||||
Likelihood_LIKELY Likelihood = 4
|
||||
// Very likely.
|
||||
Likelihood_VERY_LIKELY Likelihood = 5
|
||||
)
|
||||
|
||||
var Likelihood_name = map[int32]string{
|
||||
0: "UNKNOWN",
|
||||
1: "VERY_UNLIKELY",
|
||||
2: "UNLIKELY",
|
||||
3: "POSSIBLE",
|
||||
4: "LIKELY",
|
||||
5: "VERY_LIKELY",
|
||||
}
|
||||
var Likelihood_value = map[string]int32{
|
||||
"UNKNOWN": 0,
|
||||
"VERY_UNLIKELY": 1,
|
||||
"UNLIKELY": 2,
|
||||
"POSSIBLE": 3,
|
||||
"LIKELY": 4,
|
||||
"VERY_LIKELY": 5,
|
||||
}
|
||||
|
||||
func (x Likelihood) String() string {
|
||||
return proto.EnumName(Likelihood_name, int32(x))
|
||||
}
|
||||
func (Likelihood) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
|
||||
|
||||
// Video annotation request.
|
||||
type AnnotateVideoRequest struct {
|
||||
// Input video location. 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).
|
||||
// A video URI may include wildcards in `object-id`, and thus identify
|
||||
// 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"`
|
||||
// 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"`
|
||||
// Requested video annotation features.
|
||||
Features []Feature `protobuf:"varint,2,rep,packed,name=features,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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetInputUri() string {
|
||||
if m != nil {
|
||||
return m.InputUri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AnnotateVideoRequest) GetInputContent() string {
|
||||
if m != nil {
|
||||
return m.InputContent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AnnotateVideoRequest) GetFeatures() []Feature {
|
||||
if m != nil {
|
||||
return m.Features
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AnnotateVideoRequest) GetVideoContext() *VideoContext {
|
||||
if m != nil {
|
||||
return m.VideoContext
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AnnotateVideoRequest) GetOutputUri() string {
|
||||
if m != nil {
|
||||
return m.OutputUri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AnnotateVideoRequest) GetLocationId() string {
|
||||
if m != nil {
|
||||
return m.LocationId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Video context and/or feature-specific parameters.
|
||||
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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetSegments() []*VideoSegment {
|
||||
if m != nil {
|
||||
return m.Segments
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *VideoContext) GetLabelDetectionMode() LabelDetectionMode {
|
||||
if m != nil {
|
||||
return m.LabelDetectionMode
|
||||
}
|
||||
return LabelDetectionMode_LABEL_DETECTION_MODE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *VideoContext) GetStationaryCamera() bool {
|
||||
if m != nil {
|
||||
return m.StationaryCamera
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *VideoContext) GetLabelDetectionModel() string {
|
||||
if m != nil {
|
||||
return m.LabelDetectionModel
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *VideoContext) GetFaceDetectionModel() string {
|
||||
if m != nil {
|
||||
return m.FaceDetectionModel
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *VideoContext) GetShotChangeDetectionModel() string {
|
||||
if m != nil {
|
||||
return m.ShotChangeDetectionModel
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *VideoContext) GetSafeSearchDetectionModel() string {
|
||||
if m != nil {
|
||||
return m.SafeSearchDetectionModel
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetStartTimeOffset() int64 {
|
||||
if m != nil {
|
||||
return m.StartTimeOffset
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *VideoSegment) GetEndTimeOffset() int64 {
|
||||
if m != nil {
|
||||
return m.EndTimeOffset
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// Label location.
|
||||
type LabelLocation struct {
|
||||
// Video segment. Set to [-1, -1] for video-level labels.
|
||||
// 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"`
|
||||
// Confidence that the label is accurate. Range: [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,2,opt,name=confidence" json:"confidence,omitempty"`
|
||||
// Label level.
|
||||
Level LabelLevel `protobuf:"varint,3,opt,name=level,enum=google.cloud.videointelligence.v1beta1.LabelLevel" json:"level,omitempty"`
|
||||
}
|
||||
|
||||
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) GetSegment() *VideoSegment {
|
||||
if m != nil {
|
||||
return m.Segment
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *LabelLocation) GetConfidence() float32 {
|
||||
if m != nil {
|
||||
return m.Confidence
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *LabelLocation) GetLevel() LabelLevel {
|
||||
if m != nil {
|
||||
return m.Level
|
||||
}
|
||||
return LabelLevel_LABEL_LEVEL_UNSPECIFIED
|
||||
}
|
||||
|
||||
// Label annotation.
|
||||
type LabelAnnotation struct {
|
||||
// Textual description, e.g. `Fixed-gear bicycle`.
|
||||
Description string `protobuf:"bytes,1,opt,name=description" 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"`
|
||||
// Where the label was detected and with what confidence.
|
||||
Locations []*LabelLocation `protobuf:"bytes,3,rep,name=locations" json:"locations,omitempty"`
|
||||
}
|
||||
|
||||
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) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *LabelAnnotation) GetLanguageCode() string {
|
||||
if m != nil {
|
||||
return m.LanguageCode
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *LabelAnnotation) GetLocations() []*LabelLocation {
|
||||
if m != nil {
|
||||
return m.Locations
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Safe search annotation (based on per-frame visual signals only).
|
||||
// If no unsafe content has been detected in a frame, no annotations
|
||||
// are present for that frame. If only some types of unsafe content
|
||||
// have been detected in a frame, the likelihood is set to `UNKNOWN`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// Likelihood of medical content.
|
||||
Medical Likelihood `protobuf:"varint,3,opt,name=medical,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"`
|
||||
// Likelihood of racy content.
|
||||
Racy Likelihood `protobuf:"varint,5,opt,name=racy,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"`
|
||||
}
|
||||
|
||||
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) GetAdult() Likelihood {
|
||||
if m != nil {
|
||||
return m.Adult
|
||||
}
|
||||
return Likelihood_UNKNOWN
|
||||
}
|
||||
|
||||
func (m *SafeSearchAnnotation) GetSpoof() Likelihood {
|
||||
if m != nil {
|
||||
return m.Spoof
|
||||
}
|
||||
return Likelihood_UNKNOWN
|
||||
}
|
||||
|
||||
func (m *SafeSearchAnnotation) GetMedical() Likelihood {
|
||||
if m != nil {
|
||||
return m.Medical
|
||||
}
|
||||
return Likelihood_UNKNOWN
|
||||
}
|
||||
|
||||
func (m *SafeSearchAnnotation) GetViolent() Likelihood {
|
||||
if m != nil {
|
||||
return m.Violent
|
||||
}
|
||||
return Likelihood_UNKNOWN
|
||||
}
|
||||
|
||||
func (m *SafeSearchAnnotation) GetRacy() Likelihood {
|
||||
if m != nil {
|
||||
return m.Racy
|
||||
}
|
||||
return Likelihood_UNKNOWN
|
||||
}
|
||||
|
||||
func (m *SafeSearchAnnotation) GetTimeOffset() int64 {
|
||||
if m != nil {
|
||||
return m.TimeOffset
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// Bounding box.
|
||||
type BoundingBox struct {
|
||||
// Left X coordinate.
|
||||
Left int32 `protobuf:"varint,1,opt,name=left" json:"left,omitempty"`
|
||||
// Right X coordinate.
|
||||
Right int32 `protobuf:"varint,2,opt,name=right" json:"right,omitempty"`
|
||||
// Bottom Y coordinate.
|
||||
Bottom int32 `protobuf:"varint,3,opt,name=bottom" json:"bottom,omitempty"`
|
||||
// Top Y coordinate.
|
||||
Top int32 `protobuf:"varint,4,opt,name=top" json:"top,omitempty"`
|
||||
}
|
||||
|
||||
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) GetLeft() int32 {
|
||||
if m != nil {
|
||||
return m.Left
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *BoundingBox) GetRight() int32 {
|
||||
if m != nil {
|
||||
return m.Right
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *BoundingBox) GetBottom() int32 {
|
||||
if m != nil {
|
||||
return m.Bottom
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *BoundingBox) GetTop() int32 {
|
||||
if m != nil {
|
||||
return m.Top
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// Video time offset in microseconds.
|
||||
TimeOffset int64 `protobuf:"varint,2,opt,name=time_offset,json=timeOffset" json:"time_offset,omitempty"`
|
||||
}
|
||||
|
||||
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) GetBoundingBox() *BoundingBox {
|
||||
if m != nil {
|
||||
return m.BoundingBox
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *FaceLocation) GetTimeOffset() int64 {
|
||||
if m != nil {
|
||||
return m.TimeOffset
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// 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"`
|
||||
// Face locations at one frame per second.
|
||||
Locations []*FaceLocation `protobuf:"bytes,3,rep,name=locations" json:"locations,omitempty"`
|
||||
}
|
||||
|
||||
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) GetThumbnail() string {
|
||||
if m != nil {
|
||||
return m.Thumbnail
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *FaceAnnotation) GetSegments() []*VideoSegment {
|
||||
if m != nil {
|
||||
return m.Segments
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *FaceAnnotation) GetLocations() []*FaceLocation {
|
||||
if m != nil {
|
||||
return m.Locations
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Annotation results for a single video.
|
||||
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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// Safe search annotations.
|
||||
SafeSearchAnnotations []*SafeSearchAnnotation `protobuf:"bytes,6,rep,name=safe_search_annotations,json=safeSearchAnnotations" 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"`
|
||||
}
|
||||
|
||||
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) GetInputUri() string {
|
||||
if m != nil {
|
||||
return m.InputUri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *VideoAnnotationResults) GetLabelAnnotations() []*LabelAnnotation {
|
||||
if m != nil {
|
||||
return m.LabelAnnotations
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *VideoAnnotationResults) GetFaceAnnotations() []*FaceAnnotation {
|
||||
if m != nil {
|
||||
return m.FaceAnnotations
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *VideoAnnotationResults) GetShotAnnotations() []*VideoSegment {
|
||||
if m != nil {
|
||||
return m.ShotAnnotations
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *VideoAnnotationResults) GetSafeSearchAnnotations() []*SafeSearchAnnotation {
|
||||
if m != nil {
|
||||
return m.SafeSearchAnnotations
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *VideoAnnotationResults) GetError() *google_rpc.Status {
|
||||
if m != nil {
|
||||
return m.Error
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Video annotation response. Included in the `response`
|
||||
// field of the `Operation` returned by the `GetOperation`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetAnnotationResults() []*VideoAnnotationResults {
|
||||
if m != nil {
|
||||
return m.AnnotationResults
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Annotation progress for a single video.
|
||||
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"`
|
||||
// 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"`
|
||||
// Time when the request was received.
|
||||
StartTime *google_protobuf3.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime" 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"`
|
||||
}
|
||||
|
||||
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) GetInputUri() string {
|
||||
if m != nil {
|
||||
return m.InputUri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *VideoAnnotationProgress) GetProgressPercent() int32 {
|
||||
if m != nil {
|
||||
return m.ProgressPercent
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *VideoAnnotationProgress) GetStartTime() *google_protobuf3.Timestamp {
|
||||
if m != nil {
|
||||
return m.StartTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *VideoAnnotationProgress) GetUpdateTime() *google_protobuf3.Timestamp {
|
||||
if m != nil {
|
||||
return m.UpdateTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Video annotation progress. Included in the `metadata`
|
||||
// field of the `Operation` returned by the `GetOperation`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) GetAnnotationProgress() []*VideoAnnotationProgress {
|
||||
if m != nil {
|
||||
return m.AnnotationProgress
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*AnnotateVideoRequest)(nil), "google.cloud.videointelligence.v1beta1.AnnotateVideoRequest")
|
||||
proto.RegisterType((*VideoContext)(nil), "google.cloud.videointelligence.v1beta1.VideoContext")
|
||||
proto.RegisterType((*VideoSegment)(nil), "google.cloud.videointelligence.v1beta1.VideoSegment")
|
||||
proto.RegisterType((*LabelLocation)(nil), "google.cloud.videointelligence.v1beta1.LabelLocation")
|
||||
proto.RegisterType((*LabelAnnotation)(nil), "google.cloud.videointelligence.v1beta1.LabelAnnotation")
|
||||
proto.RegisterType((*SafeSearchAnnotation)(nil), "google.cloud.videointelligence.v1beta1.SafeSearchAnnotation")
|
||||
proto.RegisterType((*BoundingBox)(nil), "google.cloud.videointelligence.v1beta1.BoundingBox")
|
||||
proto.RegisterType((*FaceLocation)(nil), "google.cloud.videointelligence.v1beta1.FaceLocation")
|
||||
proto.RegisterType((*FaceAnnotation)(nil), "google.cloud.videointelligence.v1beta1.FaceAnnotation")
|
||||
proto.RegisterType((*VideoAnnotationResults)(nil), "google.cloud.videointelligence.v1beta1.VideoAnnotationResults")
|
||||
proto.RegisterType((*AnnotateVideoResponse)(nil), "google.cloud.videointelligence.v1beta1.AnnotateVideoResponse")
|
||||
proto.RegisterType((*VideoAnnotationProgress)(nil), "google.cloud.videointelligence.v1beta1.VideoAnnotationProgress")
|
||||
proto.RegisterType((*AnnotateVideoProgress)(nil), "google.cloud.videointelligence.v1beta1.AnnotateVideoProgress")
|
||||
proto.RegisterEnum("google.cloud.videointelligence.v1beta1.Feature", Feature_name, Feature_value)
|
||||
proto.RegisterEnum("google.cloud.videointelligence.v1beta1.LabelLevel", LabelLevel_name, LabelLevel_value)
|
||||
proto.RegisterEnum("google.cloud.videointelligence.v1beta1.LabelDetectionMode", LabelDetectionMode_name, LabelDetectionMode_value)
|
||||
proto.RegisterEnum("google.cloud.videointelligence.v1beta1.Likelihood", Likelihood_name, Likelihood_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
|
||||
|
||||
// Client API for VideoIntelligenceService service
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
type videoIntelligenceServiceClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewVideoIntelligenceServiceClient(cc *grpc.ClientConn) VideoIntelligenceServiceClient {
|
||||
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...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// 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)
|
||||
}
|
||||
|
||||
func RegisterVideoIntelligenceServiceServer(s *grpc.Server, srv VideoIntelligenceServiceServer) {
|
||||
s.RegisterService(&_VideoIntelligenceService_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _VideoIntelligenceService_AnnotateVideo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AnnotateVideoRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(VideoIntelligenceServiceServer).AnnotateVideo(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.videointelligence.v1beta1.VideoIntelligenceService/AnnotateVideo",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(VideoIntelligenceServiceServer).AnnotateVideo(ctx, req.(*AnnotateVideoRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _VideoIntelligenceService_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.cloud.videointelligence.v1beta1.VideoIntelligenceService",
|
||||
HandlerType: (*VideoIntelligenceServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "AnnotateVideo",
|
||||
Handler: _VideoIntelligenceService_AnnotateVideo_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/cloud/videointelligence/v1beta1/video_intelligence.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/videointelligence/v1beta1/video_intelligence.proto", fileDescriptor0)
|
||||
}
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
// 1520 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0xcb, 0x6f, 0x1b, 0xd5,
|
||||
0x1a, 0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 0x0e, 0xbb, 0xd6, 0x98, 0x64,
|
||||
0x82, 0x4b, 0xae, 0x60, 0xd7, 0x1a, 0xc9, 0x15, 0xbf, 0x57, 0x60, 0x85, 0xd7, 0xa7, 0x29, 0x3b,
|
||||
0x0b, 0xb5, 0x60, 0x51, 0x36, 0x00, 0xc7, 0xbe, 0x6e, 0x17, 0x45, 0x20, 0xe8, 0xdf, 0x00, 0x26,
|
||||
0x71, 0x7b, 0xb6, 0xc5, 0x64, 0xb9, 0x13, 0x09, 0x2d, 0x46, 0x41, 0x47, 0x90, 0x76, 0xf0, 0x25,
|
||||
0x76, 0x78, 0xa9, 0x57, 0x2b, 0x95, 0xb9, 0xba, 0xaa, 0xc9, 0x34, 0x35, 0x01, 0x50, 0xfc, 0x5a,
|
||||
0x81, 0x1c, 0xa7, 0x56, 0x87, 0xd7, 0x19, 0xda, 0x85, 0xac, 0x85, 0x03, 0xd3, 0xb7, 0x3d, 0x76,
|
||||
0x94, 0x37, 0x4a, 0x9c, 0xc4, 0x2e, 0x15, 0xc7, 0x70, 0xfb, 0xa1, 0xd1, 0xc7, 0xba, 0x19, 0x75,
|
||||
0x77, 0x46, 0x5b, 0x8e, 0x88, 0x35, 0xd6, 0x9b, 0x1d, 0xc8, 0x44, 0xa3, 0x17, 0x14, 0x92, 0x7c,
|
||||
0xb8, 0xde, 0x9c, 0xcf, 0x51, 0xa9, 0xad, 0x8d, 0x70, 0x8a, 0xdf, 0x26, 0x61, 0xa3, 0x33, 0x2c,
|
||||
0x7e, 0xcc, 0xe9, 0x23, 0x48, 0x1b, 0x56, 0xe8, 0x88, 0x02, 0xcc, 0x93, 0x12, 0xfb, 0x43, 0xec,
|
||||
0xd8, 0x17, 0x84, 0x58, 0x9a, 0x00, 0x60, 0x48, 0x81, 0x47, 0x48, 0x4f, 0x8e, 0xec, 0xb5, 0x90,
|
||||
0x38, 0x00, 0x6a, 0xc2, 0xe2, 0x00, 0x5b, 0xb6, 0x69, 0xcc, 0x5f, 0xa8, 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x7e, 0x22, 0xc8, 0xe8, 0x1d, 0x80, 0xd1, 0xd2, 0x20, 0xd7,
|
||||
0xd7, 0xed, 0x28, 0x94, 0x68, 0x71, 0x2f, 0x9d, 0x46, 0x8b, 0xbb, 0x96, 0x19, 0x6e, 0x12, 0xe8,
|
||||
0x11, 0x64, 0x43, 0xcf, 0x32, 0x28, 0x16, 0xba, 0xa9, 0xd7, 0xea, 0x82, 0x10, 0x67, 0x84, 0xe2,
|
||||
0xe7, 0x93, 0x49, 0x1e, 0x46, 0xe6, 0xc1, 0x7a, 0x2c, 0xc9, 0x91, 0xbf, 0x32, 0xcb, 0x8f, 0xaf,
|
||||
0x99, 0xe5, 0x08, 0x5d, 0x8b, 0x15, 0x30, 0xa2, 0xed, 0x7f, 0xac, 0xc0, 0xa2, 0xdc, 0xed, 0xd1,
|
||||
0x16, 0xac, 0xd7, 0xd5, 0xea, 0xe9, 0x99, 0xa6, 0xea, 0x67, 0xad, 0xce, 0x89, 0x5a, 0x6b, 0xd4,
|
||||
0x1b, 0xea, 0x61, 0xfe, 0x06, 0x5a, 0x87, 0x5c, 0xb3, 0x7a, 0xa0, 0x36, 0xf5, 0x43, 0xf5, 0x54,
|
||||
0xad, 0x9d, 0x36, 0xda, 0xad, 0xbc, 0x82, 0x10, 0xac, 0xd6, 0xab, 0x35, 0x35, 0x46, 0x4b, 0xa0,
|
||||
0x7f, 0xc1, 0x66, 0xe7, 0xa8, 0x7d, 0xaa, 0xd7, 0x8e, 0xaa, 0xad, 0x27, 0x71, 0x56, 0x92, 0xb3,
|
||||
0xaa, 0x75, 0x55, 0xef, 0xa8, 0x55, 0xad, 0x76, 0x14, 0x63, 0xa5, 0xf6, 0x5d, 0x80, 0xd1, 0xc6,
|
||||
0x82, 0x6e, 0xc1, 0x96, 0x30, 0xd6, 0x54, 0xcf, 0xd5, 0xe6, 0x84, 0x27, 0x39, 0xc8, 0x9e, 0x37,
|
||||
0x0e, 0xd5, 0xb6, 0x60, 0xe6, 0x15, 0xb4, 0x06, 0x2b, 0x1d, 0xf5, 0xc9, 0xb1, 0xda, 0x3a, 0x95,
|
||||
0xa4, 0x04, 0x5a, 0x05, 0xe0, 0x4e, 0x88, 0x73, 0x92, 0xe9, 0xd4, 0xb5, 0xea, 0xb1, 0x2a, 0x09,
|
||||
0xa9, 0x7d, 0x1f, 0xd0, 0xf4, 0xde, 0x8d, 0xfe, 0x03, 0xbb, 0x13, 0x41, 0xea, 0xc7, 0xed, 0xc3,
|
||||
0xc9, 0x54, 0xac, 0x40, 0x86, 0x83, 0x33, 0x56, 0x5e, 0x61, 0xb6, 0x04, 0x36, 0x3f, 0x27, 0x58,
|
||||
0x0a, 0x39, 0xbb, 0xda, 0x3a, 0xd4, 0x63, 0x8c, 0xe4, 0x3e, 0x06, 0x18, 0xbd, 0xa9, 0x28, 0x0b,
|
||||
0x8b, 0x67, 0xad, 0xa7, 0xad, 0xf6, 0xb3, 0x56, 0xfe, 0x06, 0x0b, 0xe1, 0x5c, 0xd5, 0x9e, 0xeb,
|
||||
0x67, 0xad, 0x66, 0xe3, 0xa9, 0xda, 0x7c, 0x9e, 0x57, 0xd0, 0x32, 0x2c, 0x0d, 0x4f, 0x09, 0x76,
|
||||
0x3a, 0x69, 0x77, 0x3a, 0x8d, 0x83, 0xa6, 0x9a, 0x4f, 0x22, 0x80, 0x05, 0xc9, 0x49, 0xf1, 0x74,
|
||||
0x30, 0x55, 0x49, 0x48, 0x57, 0xbe, 0x51, 0xa0, 0xc0, 0xcb, 0xdf, 0x88, 0x35, 0x46, 0x07, 0xfb,
|
||||
0x97, 0xb6, 0x89, 0xd1, 0x17, 0x0a, 0xac, 0x8c, 0xf5, 0x1d, 0x9a, 0xf9, 0xb6, 0xb9, 0xea, 0x83,
|
||||
0x74, 0x7b, 0x27, 0xd2, 0x8e, 0x7d, 0x09, 0x97, 0xda, 0xd1, 0x97, 0x70, 0xf1, 0xee, 0x27, 0x3f,
|
||||
0xfe, 0xfa, 0x65, 0x62, 0xa7, 0x58, 0x18, 0xff, 0x30, 0x0f, 0x1e, 0xca, 0x36, 0xc4, 0x0f, 0x95,
|
||||
0xfd, 0x83, 0xdf, 0x14, 0xd8, 0x37, 0xc9, 0x60, 0x46, 0x3f, 0x0e, 0x76, 0xfe, 0x2c, 0xb8, 0x13,
|
||||
0x36, 0x72, 0x27, 0xca, 0x07, 0xcf, 0x24, 0x50, 0x9f, 0xb0, 0x25, 0xb5, 0x44, 0xfc, 0x7e, 0xb9,
|
||||
0x8f, 0x5d, 0x3e, 0x90, 0x65, 0xc1, 0x32, 0x3c, 0x3b, 0x78, 0xdd, 0x5f, 0x08, 0x8f, 0xa6, 0x38,
|
||||
0x5f, 0x25, 0xee, 0x3d, 0x11, 0xc8, 0x35, 0xee, 0xe2, 0x94, 0x1f, 0xa5, 0xf3, 0xfb, 0x07, 0x4c,
|
||||
0xf5, 0x87, 0x48, 0xf0, 0x05, 0x17, 0x7c, 0x31, 0x25, 0xf8, 0xe2, 0x5c, 0xd8, 0xe8, 0x2e, 0x70,
|
||||
0xaf, 0x1e, 0xfc, 0x11, 0x00, 0x00, 0xff, 0xff, 0xba, 0xc2, 0xb0, 0xa0, 0xd7, 0x10, 0x00, 0x00,
|
||||
}
|
1159
vendor/google.golang.org/genproto/googleapis/cloud/videointelligence/v1beta2/video_intelligence.pb.go
generated
vendored
Normal file
1159
vendor/google.golang.org/genproto/googleapis/cloud/videointelligence/v1beta2/video_intelligence.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
171
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1/geometry.pb.go
generated
vendored
Normal file
171
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1/geometry.pb.go
generated
vendored
Normal file
@ -0,0 +1,171 @@
|
||||
// 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
|
||||
ImageContext
|
||||
AnnotateImageRequest
|
||||
AnnotateImageResponse
|
||||
BatchAnnotateImagesRequest
|
||||
BatchAnnotateImagesResponse
|
||||
TextAnnotation
|
||||
Page
|
||||
Block
|
||||
Paragraph
|
||||
Word
|
||||
Symbol
|
||||
WebDetection
|
||||
*/
|
||||
package vision
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
// 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" json:"x,omitempty"`
|
||||
// Y coordinate.
|
||||
Y int32 `protobuf:"varint,2,opt,name=y" json:"y,omitempty"`
|
||||
}
|
||||
|
||||
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) GetX() int32 {
|
||||
if m != nil {
|
||||
return m.X
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Vertex) GetY() int32 {
|
||||
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"`
|
||||
}
|
||||
|
||||
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) GetVertices() []*Vertex {
|
||||
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" json:"x,omitempty"`
|
||||
// Y coordinate.
|
||||
Y float32 `protobuf:"fixed32,2,opt,name=y" json:"y,omitempty"`
|
||||
// Z coordinate (or depth).
|
||||
Z float32 `protobuf:"fixed32,3,opt,name=z" json:"z,omitempty"`
|
||||
}
|
||||
|
||||
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) 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.v1.Vertex")
|
||||
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,
|
||||
}
|
1438
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1/image_annotator.pb.go
generated
vendored
Normal file
1438
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1/image_annotator.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
537
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1/text_annotation.pb.go
generated
vendored
Normal file
537
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1/text_annotation.pb.go
generated
vendored
Normal file
@ -0,0 +1,537 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/vision/v1/text_annotation.proto
|
||||
|
||||
package vision
|
||||
|
||||
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
|
||||
|
||||
// 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
|
||||
TextAnnotation_DetectedBreak_HYPHEN TextAnnotation_DetectedBreak_BreakType = 4
|
||||
// not co-occur with SPACE, LEADER_SPACE, or
|
||||
// LINE_BREAK.
|
||||
// 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 fileDescriptor2, []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 fileDescriptor2, []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 [google.cloud.vision.v1.TextAnnotation.TextProperty][google.cloud.vision.v1.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" json:"pages,omitempty"`
|
||||
// UTF-8 text detected on the pages.
|
||||
Text string `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"`
|
||||
}
|
||||
|
||||
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) 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" json:"language_code,omitempty"`
|
||||
// Confidence of detected language. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,2,opt,name=confidence" json:"confidence,omitempty"`
|
||||
}
|
||||
|
||||
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}
|
||||
}
|
||||
|
||||
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 {
|
||||
Type TextAnnotation_DetectedBreak_BreakType `protobuf:"varint,1,opt,name=type,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"`
|
||||
}
|
||||
|
||||
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) 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" 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"`
|
||||
}
|
||||
|
||||
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) 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" 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"`
|
||||
// List of blocks of text, images etc on this page.
|
||||
Blocks []*Block `protobuf:"bytes,4,rep,name=blocks" json:"blocks,omitempty"`
|
||||
}
|
||||
|
||||
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) 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
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// 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" 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) 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
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// 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" json:"bounding_box,omitempty"`
|
||||
// List of words in this paragraph.
|
||||
Words []*Word `protobuf:"bytes,3,rep,name=words" json:"words,omitempty"`
|
||||
}
|
||||
|
||||
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) 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
|
||||
}
|
||||
|
||||
// A word representation.
|
||||
type Word struct {
|
||||
// Additional information detected for the word.
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" 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" 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"`
|
||||
}
|
||||
|
||||
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) 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
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// 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" json:"bounding_box,omitempty"`
|
||||
// The actual UTF-8 representation of the symbol.
|
||||
Text string `protobuf:"bytes,3,opt,name=text" json:"text,omitempty"`
|
||||
}
|
||||
|
||||
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) 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 init() {
|
||||
proto.RegisterType((*TextAnnotation)(nil), "google.cloud.vision.v1.TextAnnotation")
|
||||
proto.RegisterType((*TextAnnotation_DetectedLanguage)(nil), "google.cloud.vision.v1.TextAnnotation.DetectedLanguage")
|
||||
proto.RegisterType((*TextAnnotation_DetectedBreak)(nil), "google.cloud.vision.v1.TextAnnotation.DetectedBreak")
|
||||
proto.RegisterType((*TextAnnotation_TextProperty)(nil), "google.cloud.vision.v1.TextAnnotation.TextProperty")
|
||||
proto.RegisterType((*Page)(nil), "google.cloud.vision.v1.Page")
|
||||
proto.RegisterType((*Block)(nil), "google.cloud.vision.v1.Block")
|
||||
proto.RegisterType((*Paragraph)(nil), "google.cloud.vision.v1.Paragraph")
|
||||
proto.RegisterType((*Word)(nil), "google.cloud.vision.v1.Word")
|
||||
proto.RegisterType((*Symbol)(nil), "google.cloud.vision.v1.Symbol")
|
||||
proto.RegisterEnum("google.cloud.vision.v1.TextAnnotation_DetectedBreak_BreakType", TextAnnotation_DetectedBreak_BreakType_name, TextAnnotation_DetectedBreak_BreakType_value)
|
||||
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{
|
||||
// 744 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0x4f, 0x6f, 0xd3, 0x4e,
|
||||
0x10, 0xfd, 0xb9, 0xb1, 0xd3, 0x78, 0xd2, 0x46, 0xfe, 0x2d, 0xa8, 0x8a, 0x42, 0xa9, 0x8a, 0x01,
|
||||
0xd1, 0x03, 0x72, 0xd4, 0x14, 0x04, 0x12, 0x08, 0x29, 0x4e, 0x0d, 0xad, 0x1a, 0x25, 0xd6, 0x36,
|
||||
0x51, 0xf9, 0x73, 0xb0, 0xfc, 0x67, 0xeb, 0x58, 0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x5e, 0x0f, 0x24, 0x2e, 0x69, 0x99, 0x41, 0x5b, 0xed, 0x26, 0x2d, 0x52, 0x85,
|
||||
0x65, 0x7d, 0xbf, 0x33, 0x18, 0xe2, 0xa4, 0x37, 0x44, 0x10, 0xf0, 0xb0, 0xab, 0x61, 0x89, 0x4f,
|
||||
0xf2, 0x6a, 0x1b, 0x77, 0xfa, 0xbb, 0x9a, 0x24, 0xc8, 0x9f, 0x39, 0x10, 0x67, 0xaa, 0xaf, 0xf1,
|
||||
0x35, 0xb4, 0x40, 0xb8, 0xa0, 0xa1, 0x93, 0xdf, 0x40, 0xe1, 0x43, 0x7a, 0x44, 0x43, 0x07, 0xa7,
|
||||
0x50, 0xf9, 0x0b, 0x07, 0x7c, 0x12, 0x5f, 0x63, 0x5b, 0x4f, 0x61, 0x39, 0x9a, 0x9e, 0x5a, 0x74,
|
||||
0x9c, 0x1b, 0xdb, 0x28, 0xe2, 0x38, 0x64, 0x30, 0x9c, 0xc3, 0xe5, 0x0f, 0x1c, 0x94, 0xd3, 0xdc,
|
||||
0x35, 0xb6, 0x97, 0x8f, 0xb2, 0xd2, 0xe5, 0x28, 0x53, 0x63, 0x68, 0xd8, 0xf4, 0xb4, 0x80, 0x4b,
|
||||
0xbd, 0xb1, 0xa8, 0x50, 0x4f, 0x06, 0xab, 0xce, 0xbd, 0x7d, 0x9e, 0xc1, 0x5d, 0x9a, 0xbc, 0xd5,
|
||||
0x0a, 0x0d, 0xdd, 0xa6, 0x4b, 0x7c, 0x36, 0x76, 0x9b, 0xe9, 0x4f, 0x66, 0xe0, 0x45, 0x57, 0x07,
|
||||
0xf4, 0xb3, 0x74, 0xf5, 0x9d, 0xe3, 0xac, 0x32, 0xc3, 0xee, 0xfc, 0x08, 0x00, 0x00, 0xff, 0xff,
|
||||
0x80, 0x29, 0x2a, 0x3b, 0x2f, 0x08, 0x00, 0x00,
|
||||
}
|
193
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1/web_detection.pb.go
generated
vendored
Normal file
193
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1/web_detection.pb.go
generated
vendored
Normal file
@ -0,0 +1,193 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/vision/v1/web_detection.proto
|
||||
|
||||
package vision
|
||||
|
||||
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
|
||||
|
||||
// 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"`
|
||||
// Fully matching images from the Internet.
|
||||
// They're definite neardups and most often a copy of the query image with
|
||||
// merely a size change.
|
||||
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,2,rep,name=full_matching_images,json=fullMatchingImages" 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) 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
|
||||
}
|
||||
|
||||
// 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"`
|
||||
// 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"`
|
||||
// Canonical description of the entity, in English.
|
||||
Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
|
||||
}
|
||||
|
||||
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) 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" json:"url,omitempty"`
|
||||
// Overall relevancy score for the image.
|
||||
// Not normalized and not comparable across different image queries.
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
|
||||
}
|
||||
|
||||
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) 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" json:"url,omitempty"`
|
||||
// Overall relevancy score for the web page.
|
||||
// Not normalized and not comparable across different image queries.
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
|
||||
}
|
||||
|
||||
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) GetUrl() string {
|
||||
if m != nil {
|
||||
return m.Url
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebPage) GetScore() float32 {
|
||||
if m != nil {
|
||||
return m.Score
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*WebDetection)(nil), "google.cloud.vision.v1.WebDetection")
|
||||
proto.RegisterType((*WebDetection_WebEntity)(nil), "google.cloud.vision.v1.WebDetection.WebEntity")
|
||||
proto.RegisterType((*WebDetection_WebImage)(nil), "google.cloud.vision.v1.WebDetection.WebImage")
|
||||
proto.RegisterType((*WebDetection_WebPage)(nil), "google.cloud.vision.v1.WebDetection.WebPage")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/vision/v1/web_detection.proto", fileDescriptor3) }
|
||||
|
||||
var fileDescriptor3 = []byte{
|
||||
// 383 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x41, 0x4f, 0xea, 0x40,
|
||||
0x14, 0x85, 0x53, 0xca, 0x7b, 0x0f, 0x06, 0x16, 0xcf, 0x09, 0x4a, 0x53, 0x5d, 0x34, 0xae, 0x88,
|
||||
0xd1, 0x69, 0xc0, 0xa5, 0xae, 0x88, 0x2e, 0x58, 0x98, 0x60, 0x37, 0x24, 0x6e, 0xea, 0xd0, 0x8e,
|
||||
0xc3, 0x4d, 0xca, 0x4c, 0xd3, 0x19, 0x20, 0xfc, 0x58, 0xff, 0x87, 0x4b, 0x33, 0xd3, 0x62, 0x10,
|
||||
0x30, 0x21, 0xee, 0xee, 0xdc, 0x9e, 0xf3, 0x9d, 0xf6, 0xf6, 0x0e, 0xba, 0xe2, 0x52, 0xf2, 0x8c,
|
||||
0x85, 0x49, 0x26, 0x17, 0x69, 0xb8, 0x04, 0x05, 0x52, 0x84, 0xcb, 0x7e, 0xb8, 0x62, 0xd3, 0x38,
|
||||
0x65, 0x9a, 0x25, 0x1a, 0xa4, 0x20, 0x79, 0x21, 0xb5, 0xc4, 0x67, 0xa5, 0x96, 0x58, 0x2d,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0x5a, 0x29, 0x53, 0x49,
|
||||
0x01, 0xb9, 0xc9, 0xf3, 0x5c, 0x6b, 0xda, 0x6e, 0xf9, 0x03, 0xd4, 0xd8, 0x7c, 0x2f, 0xfe, 0x8f,
|
||||
0xdc, 0x45, 0x91, 0x55, 0x68, 0x53, 0x1e, 0xa6, 0xfa, 0x7d, 0xf4, 0xaf, 0x7a, 0xf3, 0x63, 0x2d,
|
||||
0xc3, 0x02, 0xf9, 0x89, 0x9c, 0xff, 0x30, 0x94, 0xe1, 0xc9, 0xf6, 0x54, 0xc6, 0x66, 0x21, 0xc7,
|
||||
0xce, 0xcb, 0x7d, 0x25, 0xe6, 0x32, 0xa3, 0x82, 0x13, 0x59, 0xf0, 0x90, 0x33, 0x61, 0xd7, 0x35,
|
||||
0x2c, 0x1f, 0xd1, 0x1c, 0xd4, 0xee, 0x9d, 0xb8, 0x2b, 0xab, 0x0f, 0xc7, 0x99, 0xfe, 0xb5, 0xda,
|
||||
0xdb, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x66, 0xd9, 0xde, 0x3f, 0x3e, 0x03, 0x00, 0x00,
|
||||
}
|
173
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1/geometry.pb.go
generated
vendored
Normal file
173
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1/geometry.pb.go
generated
vendored
Normal file
@ -0,0 +1,173 @@
|
||||
// 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
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
// 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" json:"x,omitempty"`
|
||||
// Y coordinate.
|
||||
Y int32 `protobuf:"varint,2,opt,name=y" json:"y,omitempty"`
|
||||
}
|
||||
|
||||
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) GetX() int32 {
|
||||
if m != nil {
|
||||
return m.X
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Vertex) GetY() int32 {
|
||||
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"`
|
||||
}
|
||||
|
||||
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) GetVertices() []*Vertex {
|
||||
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" json:"x,omitempty"`
|
||||
// Y coordinate.
|
||||
Y float32 `protobuf:"fixed32,2,opt,name=y" json:"y,omitempty"`
|
||||
// Z coordinate (or depth).
|
||||
Z float32 `protobuf:"fixed32,3,opt,name=z" json:"z,omitempty"`
|
||||
}
|
||||
|
||||
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) 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.v1p1beta1.Vertex")
|
||||
proto.RegisterType((*BoundingPoly)(nil), "google.cloud.vision.v1p1beta1.BoundingPoly")
|
||||
proto.RegisterType((*Position)(nil), "google.cloud.vision.v1p1beta1.Position")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/vision/v1p1beta1/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, 0x96, 0x72, 0xd6, 0x25, 0x53, 0x16, 0xa1, 0x06, 0x85, 0x0e, 0x72, 0x47,
|
||||
0xd4, 0xcd, 0xc9, 0x38, 0xb8, 0xc6, 0x0c, 0x0e, 0x6e, 0x69, 0xfa, 0x78, 0x1c, 0xa4, 0xf7, 0xc2,
|
||||
0xe5, 0x1a, 0x7a, 0xc5, 0x3f, 0xdc, 0x51, 0x7a, 0x57, 0x2a, 0x0e, 0x76, 0xfc, 0xdd, 0x7d, 0x8f,
|
||||
0x0f, 0x3e, 0x71, 0x4f, 0xcc, 0xd4, 0xa1, 0x6a, 0x3b, 0xde, 0xae, 0xd5, 0xa8, 0x07, 0xcd, 0x46,
|
||||
0x8d, 0x45, 0x5f, 0xac, 0xd0, 0x35, 0x85, 0x22, 0xe4, 0x0d, 0x3a, 0xeb, 0x65, 0x6f, 0xd9, 0x71,
|
||||
0x7a, 0x1d, 0x69, 0x19, 0x68, 0x19, 0x69, 0x79, 0xa2, 0xf3, 0x5b, 0x31, 0xfd, 0x40, 0xeb, 0x70,
|
||||
0x97, 0xce, 0x05, 0xec, 0x32, 0x58, 0xc0, 0xf2, 0xa2, 0x86, 0xb0, 0x7c, 0x96, 0xc4, 0xe5, 0xf3,
|
||||
0x77, 0x31, 0x2f, 0x79, 0x6b, 0xd6, 0xda, 0x50, 0xc5, 0x9d, 0x4f, 0x5f, 0xc4, 0x6c, 0x44, 0xeb,
|
||||
0x74, 0x8b, 0x43, 0x06, 0x8b, 0xc9, 0xf2, 0xf2, 0xe1, 0x4e, 0x9e, 0xf5, 0xc8, 0x28, 0xa9, 0x4f,
|
||||
0x67, 0xf9, 0x93, 0x98, 0x55, 0x3c, 0x68, 0xa7, 0xd9, 0xfc, 0xaa, 0x93, 0x3f, 0xea, 0xa4, 0x06,
|
||||
0x7f, 0x58, 0xfb, 0x6c, 0x12, 0xd7, 0xbe, 0xfc, 0x12, 0x37, 0x2d, 0x6f, 0xce, 0xbb, 0xca, 0xab,
|
||||
0xb7, 0x63, 0x82, 0xea, 0x50, 0xa0, 0x82, 0xcf, 0xd7, 0x23, 0x4f, 0xdc, 0x35, 0x86, 0x24, 0x5b,
|
||||
0x52, 0x84, 0x26, 0xf4, 0x51, 0xf1, 0xab, 0xe9, 0xf5, 0xf0, 0x4f, 0xd0, 0xe7, 0xf8, 0xf0, 0x0d,
|
||||
0xb0, 0x9a, 0x86, 0x93, 0xc7, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x91, 0xa5, 0x86, 0xce, 0x82,
|
||||
0x01, 0x00, 0x00,
|
||||
}
|
1503
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1/image_annotator.pb.go
generated
vendored
Normal file
1503
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1/image_annotator.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
587
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1/text_annotation.pb.go
generated
vendored
Normal file
587
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1/text_annotation.pb.go
generated
vendored
Normal file
@ -0,0 +1,587 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/vision/v1p1beta1/text_annotation.proto
|
||||
|
||||
package vision
|
||||
|
||||
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
|
||||
|
||||
// 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 fileDescriptor2, []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 fileDescriptor2, []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.v1p1beta1.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" json:"pages,omitempty"`
|
||||
// UTF-8 text detected on the pages.
|
||||
Text string `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"`
|
||||
}
|
||||
|
||||
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) 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" json:"language_code,omitempty"`
|
||||
// Confidence of detected language. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,2,opt,name=confidence" json:"confidence,omitempty"`
|
||||
}
|
||||
|
||||
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}
|
||||
}
|
||||
|
||||
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,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"`
|
||||
}
|
||||
|
||||
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) 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" 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"`
|
||||
}
|
||||
|
||||
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) 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" 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"`
|
||||
// List of blocks of text, images etc on this page.
|
||||
Blocks []*Block `protobuf:"bytes,4,rep,name=blocks" 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"`
|
||||
}
|
||||
|
||||
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) 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" 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" 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"`
|
||||
// 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"`
|
||||
// Confidence of the OCR results on the block. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence" json:"confidence,omitempty"`
|
||||
}
|
||||
|
||||
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) 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" 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" json:"bounding_box,omitempty"`
|
||||
// List of words in this paragraph.
|
||||
Words []*Word `protobuf:"bytes,3,rep,name=words" 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"`
|
||||
}
|
||||
|
||||
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) 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" 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" 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"`
|
||||
// Confidence of the OCR results for the word. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence" json:"confidence,omitempty"`
|
||||
}
|
||||
|
||||
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) 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" 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" json:"bounding_box,omitempty"`
|
||||
// The actual UTF-8 representation of the symbol.
|
||||
Text string `protobuf:"bytes,3,opt,name=text" 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"`
|
||||
}
|
||||
|
||||
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) 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.v1p1beta1.TextAnnotation")
|
||||
proto.RegisterType((*TextAnnotation_DetectedLanguage)(nil), "google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage")
|
||||
proto.RegisterType((*TextAnnotation_DetectedBreak)(nil), "google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak")
|
||||
proto.RegisterType((*TextAnnotation_TextProperty)(nil), "google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty")
|
||||
proto.RegisterType((*Page)(nil), "google.cloud.vision.v1p1beta1.Page")
|
||||
proto.RegisterType((*Block)(nil), "google.cloud.vision.v1p1beta1.Block")
|
||||
proto.RegisterType((*Paragraph)(nil), "google.cloud.vision.v1p1beta1.Paragraph")
|
||||
proto.RegisterType((*Word)(nil), "google.cloud.vision.v1p1beta1.Word")
|
||||
proto.RegisterType((*Symbol)(nil), "google.cloud.vision.v1p1beta1.Symbol")
|
||||
proto.RegisterEnum("google.cloud.vision.v1p1beta1.TextAnnotation_DetectedBreak_BreakType", TextAnnotation_DetectedBreak_BreakType_name, TextAnnotation_DetectedBreak_BreakType_value)
|
||||
proto.RegisterEnum("google.cloud.vision.v1p1beta1.Block_BlockType", Block_BlockType_name, Block_BlockType_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/vision/v1p1beta1/text_annotation.proto", fileDescriptor2)
|
||||
}
|
||||
|
||||
var fileDescriptor2 = []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, 0x2f, 0x83, 0xc4, 0x09, 0xf1, 0x01, 0x38, 0x22, 0x8f, 0xed, 0x34, 0x09, 0xa2,
|
||||
0xe6, 0x8f, 0x38, 0xf4, 0x12, 0xcd, 0x7b, 0x79, 0xbf, 0x37, 0xef, 0xf7, 0x7b, 0xf3, 0x3c, 0x03,
|
||||
0xdb, 0x0e, 0xa5, 0xce, 0x88, 0x34, 0xad, 0x11, 0xbd, 0xb0, 0x9b, 0x97, 0x6e, 0xe8, 0x52, 0xaf,
|
||||
0x79, 0xb9, 0xe5, 0x6f, 0x99, 0x24, 0x32, 0xb6, 0x9a, 0x11, 0x99, 0x44, 0xba, 0xe1, 0x79, 0x34,
|
||||
0x32, 0x22, 0x97, 0x7a, 0xb2, 0x1f, 0xd0, 0x88, 0xa2, 0xff, 0x13, 0x90, 0xcc, 0x40, 0x72, 0x02,
|
||||
0x92, 0x67, 0xa0, 0xfa, 0x7f, 0x69, 0x4e, 0xc3, 0x77, 0x9b, 0xd7, 0xd8, 0x30, 0x01, 0xd7, 0x1f,
|
||||
0xde, 0xbc, 0xa3, 0x43, 0xe8, 0x98, 0x44, 0xc1, 0x34, 0x89, 0x6e, 0xbc, 0x16, 0xa0, 0xda, 0x27,
|
||||
0x93, 0xa8, 0x3d, 0xcb, 0x83, 0x76, 0x40, 0xf0, 0x0d, 0x87, 0x84, 0x35, 0x6e, 0xbd, 0xb8, 0x59,
|
||||
0x69, 0x6d, 0xc8, 0x37, 0x56, 0x23, 0x6b, 0x86, 0x43, 0x70, 0x82, 0x40, 0x08, 0xf8, 0x98, 0x51,
|
||||
0xad, 0xb0, 0xce, 0x6d, 0x8a, 0x98, 0xad, 0xeb, 0x27, 0x20, 0xed, 0x91, 0x88, 0x58, 0x11, 0xb1,
|
||||
0xbb, 0x86, 0xe7, 0x5c, 0x18, 0x0e, 0x41, 0x1b, 0xb0, 0x36, 0x4a, 0xd7, 0xba, 0x45, 0x6d, 0x52,
|
||||
0xe3, 0x18, 0x60, 0x35, 0x73, 0x76, 0xa8, 0x4d, 0xd0, 0x1d, 0x00, 0x8b, 0x7a, 0x67, 0xae, 0x4d,
|
||||
0x3c, 0x8b, 0xb0, 0x94, 0x05, 0x3c, 0xe7, 0xa9, 0x7f, 0xe2, 0x60, 0x2d, 0xcb, 0xac, 0x04, 0xc4,
|
||||
0x38, 0x47, 0xa7, 0xc0, 0x47, 0x53, 0x3f, 0xc9, 0x56, 0x6d, 0xa9, 0x39, 0x85, 0x2f, 0xd2, 0x96,
|
||||
0x17, 0x52, 0xc9, 0xec, 0xb7, 0x3f, 0xf5, 0x09, 0x66, 0x29, 0xd1, 0xbf, 0x20, 0xba, 0xa1, 0xee,
|
||||
0x07, 0xe4, 0xcc, 0x9d, 0xb0, 0x5a, 0xca, 0xb8, 0xec, 0x86, 0x1a, 0xb3, 0x1b, 0x16, 0x88, 0xb3,
|
||||
0x78, 0x54, 0x81, 0x95, 0x41, 0xef, 0xb0, 0x77, 0x74, 0xd2, 0x93, 0xfe, 0x40, 0x22, 0x08, 0xc7,
|
||||
0x5a, 0xbb, 0xa3, 0x4a, 0x1c, 0xaa, 0x02, 0x1c, 0x0f, 0xb0, 0xaa, 0x27, 0x76, 0x01, 0x21, 0xa8,
|
||||
0xaa, 0x47, 0x5d, 0x7d, 0xce, 0x57, 0x44, 0x00, 0xa5, 0xfd, 0x53, 0x6d, 0x5f, 0xed, 0x49, 0x7c,
|
||||
0x1c, 0xdf, 0x3d, 0xe8, 0xa9, 0xba, 0x82, 0xd5, 0xf6, 0xa1, 0x24, 0xd4, 0xdf, 0x73, 0xb0, 0x1a,
|
||||
0x97, 0xac, 0x05, 0xd4, 0x27, 0x41, 0x34, 0x45, 0x63, 0x40, 0x76, 0x5a, 0xb3, 0x9e, 0x09, 0x97,
|
||||
0x35, 0xed, 0xc9, 0xcf, 0x71, 0xcf, 0x1a, 0x84, 0xff, 0xb4, 0x97, 0x3c, 0x21, 0x32, 0xa1, 0x3a,
|
||||
0xdb, 0xce, 0x8c, 0xd9, 0x32, 0x19, 0x2a, 0xad, 0xdd, 0x5f, 0x90, 0x19, 0xaf, 0xd9, 0xf3, 0x66,
|
||||
0xe3, 0x23, 0x07, 0x7c, 0x7c, 0x9e, 0xd0, 0x73, 0x28, 0xfb, 0x29, 0x4f, 0xd6, 0xcd, 0x4a, 0xeb,
|
||||
0xd1, 0x8f, 0x6d, 0x33, 0xaf, 0x14, 0x9e, 0xe5, 0x42, 0x7f, 0x83, 0x70, 0xe5, 0xda, 0xd1, 0x90,
|
||||
0xd5, 0x2e, 0xe0, 0xc4, 0x40, 0xff, 0x40, 0x69, 0x48, 0x5c, 0x67, 0x18, 0xd5, 0x8a, 0xcc, 0x9d,
|
||||
0x5a, 0xe8, 0x31, 0x94, 0xcc, 0x11, 0xb5, 0xce, 0xc3, 0x1a, 0xcf, 0x54, 0xbd, 0x97, 0x53, 0x83,
|
||||
0x12, 0x07, 0xe3, 0x14, 0xb3, 0x74, 0x7e, 0x85, 0xe5, 0xf3, 0xdb, 0x78, 0x57, 0x04, 0x81, 0x21,
|
||||
0x7e, 0x1b, 0xdb, 0x1e, 0xac, 0x9a, 0xf4, 0xc2, 0xb3, 0x5d, 0xcf, 0xd1, 0x4d, 0x3a, 0x49, 0x1b,
|
||||
0xf6, 0x20, 0x8f, 0x45, 0x0a, 0xd1, 0xe8, 0x68, 0x8a, 0x2b, 0x59, 0x02, 0x85, 0x4e, 0xd0, 0x3e,
|
||||
0x80, 0x6f, 0x04, 0x86, 0x13, 0x18, 0xfe, 0x30, 0xac, 0x15, 0x99, 0x26, 0x9b, 0xb9, 0x9f, 0x87,
|
||||
0x14, 0x80, 0xe7, 0xb0, 0xe8, 0x19, 0x00, 0x53, 0x49, 0x67, 0xf3, 0xca, 0xb3, 0x79, 0x95, 0xbf,
|
||||
0x47, 0xdd, 0xe4, 0x97, 0x0d, 0xa6, 0x68, 0x66, 0xcb, 0x5c, 0xa9, 0x31, 0x88, 0x33, 0xdc, 0xe2,
|
||||
0x80, 0x96, 0x81, 0xef, 0xab, 0x2f, 0xfa, 0x12, 0x17, 0x8f, 0x6a, 0xbf, 0xad, 0x74, 0xe3, 0xd1,
|
||||
0xac, 0xc0, 0x8a, 0x76, 0xd0, 0xe9, 0x0f, 0x70, 0x3c, 0x93, 0x22, 0x08, 0x78, 0xd0, 0x55, 0xb1,
|
||||
0xc4, 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, 0xb1,
|
||||
0xa1, 0x02, 0xbb, 0x71, 0x09, 0x00, 0x00,
|
||||
}
|
277
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1/web_detection.pb.go
generated
vendored
Normal file
277
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1/web_detection.pb.go
generated
vendored
Normal file
@ -0,0 +1,277 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/vision/v1p1beta1/web_detection.proto
|
||||
|
||||
package vision
|
||||
|
||||
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
|
||||
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
// The visually similar image results.
|
||||
VisuallySimilarImages []*WebDetection_WebImage `protobuf:"bytes,6,rep,name=visually_similar_images,json=visuallySimilarImages" 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"`
|
||||
}
|
||||
|
||||
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) 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" 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"`
|
||||
// Canonical description of the entity, in English.
|
||||
Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
|
||||
}
|
||||
|
||||
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) 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" json:"url,omitempty"`
|
||||
// (Deprecated) Overall relevancy score for the image.
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
|
||||
}
|
||||
|
||||
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) 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" json:"url,omitempty"`
|
||||
// (Deprecated) Overall relevancy score for the web page.
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score" 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"`
|
||||
// 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"`
|
||||
// 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"`
|
||||
}
|
||||
|
||||
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) 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" 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"`
|
||||
}
|
||||
|
||||
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) 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.v1p1beta1.WebDetection")
|
||||
proto.RegisterType((*WebDetection_WebEntity)(nil), "google.cloud.vision.v1p1beta1.WebDetection.WebEntity")
|
||||
proto.RegisterType((*WebDetection_WebImage)(nil), "google.cloud.vision.v1p1beta1.WebDetection.WebImage")
|
||||
proto.RegisterType((*WebDetection_WebPage)(nil), "google.cloud.vision.v1p1beta1.WebDetection.WebPage")
|
||||
proto.RegisterType((*WebDetection_WebLabel)(nil), "google.cloud.vision.v1p1beta1.WebDetection.WebLabel")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/vision/v1p1beta1/web_detection.proto", fileDescriptor3) }
|
||||
|
||||
var fileDescriptor3 = []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,
|
||||
0x94, 0xa8, 0x1b, 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, 0xce, 0x54, 0x51, 0x36, 0x31, 0x86, 0xb8, 0xf9, 0x7d, 0xac, 0xe7, 0xf9, 0xd9, 0xaf,
|
||||
0xff, 0x90, 0x49, 0x29, 0x65, 0x29, 0x78, 0x9c, 0x0b, 0xd9, 0x16, 0xf1, 0x02, 0x14, 0xc8, 0x2a,
|
||||
0x5e, 0x4c, 0xea, 0x49, 0xc6, 0x35, 0x9b, 0xc4, 0x4b, 0x9e, 0xa5, 0x05, 0xd7, 0x3c, 0xd7, 0x20,
|
||||
0xab, 0xa8, 0x6e, 0xa4, 0x96, 0xf4, 0xd0, 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, 0xbc, 0xe0, 0xd9, 0xdb, 0x2e, 0x93, 0x7e, 0x26, 0x43, 0x84, 0xf0, 0x4a, 0x83, 0x06, 0xae,
|
||||
0x02, 0x6f, 0xd4, 0x1f, 0x0f, 0x8e, 0x5e, 0x47, 0xb7, 0x42, 0xa2, 0xf5, 0x08, 0x2c, 0xce, 0xd0,
|
||||
0xbe, 0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
0x2a, 0x6f, 0xa0, 0x46, 0x50, 0xd0, 0x37, 0xa6, 0x75, 0x29, 0x3c, 0x22, 0xbb, 0xdd, 0x36, 0xe9,
|
||||
0x63, 0xd2, 0x6f, 0x1b, 0xe1, 0xa2, 0x71, 0xf8, 0xfb, 0xd4, 0xf0, 0x7b, 0x8f, 0x3c, 0x70, 0x47,
|
||||
0xf1, 0xa7, 0x1e, 0x7a, 0x48, 0x08, 0x1e, 0x5a, 0xaa, 0x41, 0x0b, 0xee, 0x16, 0xe2, 0xa3, 0xf2,
|
||||
0x09, 0x85, 0x1b, 0x1f, 0xc0, 0xd6, 0xff, 0x7b, 0x00, 0xdb, 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, 0x86, 0x9d, 0x78, 0x2a, 0x0b, 0x7e, 0xf2,
|
||||
0xd5, 0x23, 0xcf, 0x73, 0x39, 0xbf, 0x7d, 0x65, 0x27, 0x7b, 0xeb, 0x4b, 0x9b, 0xe2, 0x0f, 0x36,
|
||||
0xf5, 0xbe, 0x9c, 0x3a, 0x4f, 0x29, 0x31, 0x31, 0x92, 0x4d, 0x19, 0x97, 0xbc, 0x32, 0xff, 0x5b,
|
||||
0x6c, 0xa7, 0x58, 0x0d, 0xea, 0x86, 0x2f, 0xf5, 0x8d, 0x15, 0x7e, 0x78, 0x5e, 0xb6, 0x63, 0x2c,
|
||||
0xc7, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xa2, 0x19, 0xa7, 0x1d, 0x84, 0x05, 0x00, 0x00,
|
||||
}
|
Reference in New Issue
Block a user