Add generated file

This PR adds generated files under pkg/client and vendor folder.
This commit is contained in:
xing-yang
2018-07-12 10:55:15 -07:00
parent 36b1de0341
commit e213d1890d
17729 changed files with 5090889 additions and 0 deletions

View 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,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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,
}

View 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, 0x3a, 0xdc, 0x13, 0x21, 0xd8, 0xa8, 0xcd, 0xec, 0xd7, 0xe7,
0xae, 0xcb, 0x3d, 0x9d, 0x52, 0xd1, 0x29, 0xea, 0xeb, 0x62, 0x74, 0x65, 0x31, 0xd7, 0x97, 0x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