Variables
Case_State_name, Case_State_value
var
(
Case_State_name
=
map
[
int32
]
string
{
0
:
"STATE_UNSPECIFIED"
,
1
:
"NEW"
,
2
:
"IN_PROGRESS_GOOGLE_SUPPORT"
,
3
:
"ACTION_REQUIRED"
,
4
:
"SOLUTION_PROVIDED"
,
5
:
"CLOSED"
,
}
Case_State_value
=
map
[
string
]
int32
{
"STATE_UNSPECIFIED"
:
0
,
"NEW"
:
1
,
"IN_PROGRESS_GOOGLE_SUPPORT"
:
2
,
"ACTION_REQUIRED"
:
3
,
"SOLUTION_PROVIDED"
:
4
,
"CLOSED"
:
5
,
}
)
Enum value maps for Case_State.
Case_Priority_name, Case_Priority_value
var
(
Case_Priority_name
=
map
[
int32
]
string
{
0
:
"PRIORITY_UNSPECIFIED"
,
1
:
"P0"
,
2
:
"P1"
,
3
:
"P2"
,
4
:
"P3"
,
5
:
"P4"
,
}
Case_Priority_value
=
map
[
string
]
int32
{
"PRIORITY_UNSPECIFIED"
:
0
,
"P0"
:
1
,
"P1"
:
2
,
"P2"
:
3
,
"P3"
:
4
,
"P4"
:
5
,
}
)
Enum value maps for Case_Priority.
Escalation_Reason_name, Escalation_Reason_value
var
(
Escalation_Reason_name
=
map
[
int32
]
string
{
0
:
"REASON_UNSPECIFIED"
,
1
:
"RESOLUTION_TIME"
,
2
:
"TECHNICAL_EXPERTISE"
,
3
:
"BUSINESS_IMPACT"
,
}
Escalation_Reason_value
=
map
[
string
]
int32
{
"REASON_UNSPECIFIED"
:
0
,
"RESOLUTION_TIME"
:
1
,
"TECHNICAL_EXPERTISE"
:
2
,
"BUSINESS_IMPACT"
:
3
,
}
)
Enum value maps for Escalation_Reason.
File_google_cloud_support_v2_actor_proto
var
File_google_cloud_support_v2_actor_proto
protoreflect
.
FileDescriptor
File_google_cloud_support_v2_attachment_proto
var
File_google_cloud_support_v2_attachment_proto
protoreflect
.
FileDescriptor
File_google_cloud_support_v2_attachment_service_proto
var
File_google_cloud_support_v2_attachment_service_proto
protoreflect
.
FileDescriptor
File_google_cloud_support_v2_case_proto
var
File_google_cloud_support_v2_case_proto
protoreflect
.
FileDescriptor
File_google_cloud_support_v2_case_service_proto
var
File_google_cloud_support_v2_case_service_proto
protoreflect
.
FileDescriptor
File_google_cloud_support_v2_comment_proto
var
File_google_cloud_support_v2_comment_proto
protoreflect
.
FileDescriptor
File_google_cloud_support_v2_comment_service_proto
var
File_google_cloud_support_v2_comment_service_proto
protoreflect
.
FileDescriptor
File_google_cloud_support_v2_escalation_proto
var
File_google_cloud_support_v2_escalation_proto
protoreflect
.
FileDescriptor
Functions
func RegisterCaseAttachmentServiceServer
func
RegisterCaseAttachmentServiceServer
(
s
*
grpc
.
Server
,
srv
CaseAttachmentServiceServer
)
func RegisterCaseServiceServer
func
RegisterCaseServiceServer
(
s
*
grpc
.
Server
,
srv
CaseServiceServer
)
func RegisterCommentServiceServer
func
RegisterCommentServiceServer
(
s
*
grpc
.
Server
,
srv
CommentServiceServer
)
Actor
type
Actor
struct
{
// The name to display for the actor. If not provided, it is inferred from
// credentials supplied during case creation. When an email is provided, a
// display name must also be provided. This will be obfuscated if the user
// is a Google Support agent.
DisplayName
string
`protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// The email address of the actor. If not provided, it is inferred from the
// credentials supplied during case creation. When a name is provided, an
// email must also be provided. If the user is a Google Support agent, this is
// obfuscated.
//
// This field is deprecated. Use `username` instead.
//
// Deprecated: Marked as deprecated in google/cloud/support/v2/actor.proto.
Email
string
`protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
// Output only. Whether the actor is a Google support actor.
GoogleSupport
bool
`protobuf:"varint,4,opt,name=google_support,json=googleSupport,proto3" json:"google_support,omitempty"`
// Output only. The username of the actor. It may look like an email or other
// format provided by the identity provider. If not provided, it is inferred
// from the credentials supplied. When a name is provided, a username must
// also be provided. If the user is a Google Support agent, this will not be
// set.
Username
string
`protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"`
// contains filtered or unexported fields
}
An Actor represents an entity that performed an action. For example, an actor could be a user who posted a comment on a support case, a user who uploaded an attachment, or a service account that created a support case.
func (*Actor) Descriptor
Deprecated: Use Actor.ProtoReflect.Descriptor instead.
func (*Actor) GetDisplayName
func (*Actor) GetEmail
Deprecated: Marked as deprecated in google/cloud/support/v2/actor.proto.
func (*Actor) GetGoogleSupport
func (*Actor) GetUsername
func (*Actor) ProtoMessage
func
(
*
Actor
)
ProtoMessage
()
func (*Actor) ProtoReflect
func
(
x
*
Actor
)
ProtoReflect
()
protoreflect
.
Message
func (*Actor) Reset
func
(
x
*
Actor
)
Reset
()
func (*Actor) String
Attachment
type
Attachment
struct
{
// Output only. Identifier. The resource name of the attachment.
Name
string
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The time at which the attachment was created.
CreateTime
*
timestamppb
.
Timestamp
`protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The user who uploaded the attachment. Note, the name and email
// will be obfuscated if the attachment was uploaded by Google support.
Creator
*
Actor
`protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"`
// The filename of the attachment (e.g. `"graph.jpg"`).
Filename
string
`protobuf:"bytes,4,opt,name=filename,proto3" json:"filename,omitempty"`
// Output only. The MIME type of the attachment (e.g. text/plain).
MimeType
string
`protobuf:"bytes,5,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
// Output only. The size of the attachment in bytes.
SizeBytes
int64
`protobuf:"varint,6,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
// contains filtered or unexported fields
}
An Attachment contains metadata about a file that was uploaded to a
case - it is NOT a file itself. That being said, the name of an Attachment
object can be used to download its accompanying file through the media.download
endpoint.
While attachments can be uploaded in the console at the same time as a comment, they're associated on a "case" level, not a "comment" level.
func (*Attachment) Descriptor
func
(
*
Attachment
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use Attachment.ProtoReflect.Descriptor instead.
func (*Attachment) GetCreateTime
func
(
x
*
Attachment
)
GetCreateTime
()
*
timestamppb
.
Timestamp
func (*Attachment) GetCreator
func
(
x
*
Attachment
)
GetCreator
()
*
Actor
func (*Attachment) GetFilename
func
(
x
*
Attachment
)
GetFilename
()
string
func (*Attachment) GetMimeType
func
(
x
*
Attachment
)
GetMimeType
()
string
func (*Attachment) GetName
func
(
x
*
Attachment
)
GetName
()
string
func (*Attachment) GetSizeBytes
func
(
x
*
Attachment
)
GetSizeBytes
()
int64
func (*Attachment) ProtoMessage
func
(
*
Attachment
)
ProtoMessage
()
func (*Attachment) ProtoReflect
func
(
x
*
Attachment
)
ProtoReflect
()
protoreflect
.
Message
func (*Attachment) Reset
func
(
x
*
Attachment
)
Reset
()
func (*Attachment) String
func
(
x
*
Attachment
)
String
()
string
Case
type
Case
struct
{
// Identifier. The resource name for the case.
Name
string
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The short summary of the issue reported in this case.
DisplayName
string
`protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// A broad description of the issue.
Description
string
`protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// The issue classification applicable to this case.
Classification
*
CaseClassification
`protobuf:"bytes,4,opt,name=classification,proto3" json:"classification,omitempty"`
// The timezone of the user who created the support case.
// It should be in a format IANA recognizes: https://www.iana.org/time-zones.
// There is no additional validation done by the API.
TimeZone
string
`protobuf:"bytes,8,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
// The email addresses to receive updates on this case.
SubscriberEmailAddresses
[]
string
`protobuf:"bytes,9,rep,name=subscriber_email_addresses,json=subscriberEmailAddresses,proto3" json:"subscriber_email_addresses,omitempty"`
// Output only. The current status of the support case.
State
Case_State
`protobuf:"varint,12,opt,name=state,proto3,enum=google.cloud.support.v2.Case_State" json:"state,omitempty"`
// Output only. The time this case was created.
CreateTime
*
timestamppb
.
Timestamp
`protobuf:"bytes,13,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time this case was last updated.
UpdateTime
*
timestamppb
.
Timestamp
`protobuf:"bytes,14,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// The user who created the case.
//
// Note: The name and email will be obfuscated if the case was created by
// Google Support.
Creator
*
Actor
`protobuf:"bytes,15,opt,name=creator,proto3" json:"creator,omitempty"`
// A user-supplied email address to send case update notifications for. This
// should only be used in BYOID flows, where we cannot infer the user's email
// address directly from their EUCs.
ContactEmail
string
`protobuf:"bytes,35,opt,name=contact_email,json=contactEmail,proto3" json:"contact_email,omitempty"`
// Whether the case is currently escalated.
Escalated
bool
`protobuf:"varint,17,opt,name=escalated,proto3" json:"escalated,omitempty"`
// Whether this case was created for internal API testing and should not be
// acted on by the support team.
TestCase
bool
`protobuf:"varint,19,opt,name=test_case,json=testCase,proto3" json:"test_case,omitempty"`
// The language the user has requested to receive support in. This should be a
// BCP 47 language code (e.g., `"en"`, `"zh-CN"`, `"zh-TW"`, `"ja"`, `"ko"`).
// If no language or an unsupported language is specified, this field defaults
// to English (en).
//
// Language selection during case creation may affect your available support
// options. For a list of supported languages and their support working hours,
// see: https://cloud.google.com/support/docs/language-working-hours
LanguageCode
string
`protobuf:"bytes,23,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// The priority of this case.
Priority
Case_Priority
`protobuf:"varint,32,opt,name=priority,proto3,enum=google.cloud.support.v2.Case_Priority" json:"priority,omitempty"`
// contains filtered or unexported fields
}
A Case is an object that contains the details of a support case. It contains fields for the time it was created, its priority, its classification, and more. Cases can also have comments and attachments that get added over time.
A case is parented by a Google Cloud organization or project.
Organizations are identified by a number, so the name of a case parented by an organization would look like this:
organizations/123/cases/456
Projects have two unique identifiers, an ID and a number, and they look like this:
projects/abc/cases/456
projects/123/cases/456
You can use either of them when calling the API. To learn more about project identifiers, see AIP-2510 .
func (*Case) Descriptor
Deprecated: Use Case.ProtoReflect.Descriptor instead.
func (*Case) GetClassification
func
(
x
*
Case
)
GetClassification
()
*
CaseClassification
func (*Case) GetContactEmail
func (*Case) GetCreateTime
func
(
x
*
Case
)
GetCreateTime
()
*
timestamppb
.
Timestamp
func (*Case) GetCreator
func (*Case) GetDescription
func (*Case) GetDisplayName
func (*Case) GetEscalated
func (*Case) GetLanguageCode
func (*Case) GetName
func (*Case) GetPriority
func
(
x
*
Case
)
GetPriority
()
Case_Priority
func (*Case) GetState
func
(
x
*
Case
)
GetState
()
Case_State
func (*Case) GetSubscriberEmailAddresses
func (*Case) GetTestCase
func (*Case) GetTimeZone
func (*Case) GetUpdateTime
func
(
x
*
Case
)
GetUpdateTime
()
*
timestamppb
.
Timestamp
func (*Case) ProtoMessage
func
(
*
Case
)
ProtoMessage
()
func (*Case) ProtoReflect
func
(
x
*
Case
)
ProtoReflect
()
protoreflect
.
Message
func (*Case) Reset
func
(
x
*
Case
)
Reset
()
func (*Case) String
CaseAttachmentServiceClient
type
CaseAttachmentServiceClient
interface
{
// List all the attachments associated with a support case.
ListAttachments
(
ctx
context
.
Context
,
in
*
ListAttachmentsRequest
,
opts
...
grpc
.
CallOption
)
(
*
ListAttachmentsResponse
,
error
)
}
CaseAttachmentServiceClient is the client API for CaseAttachmentService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream .
func NewCaseAttachmentServiceClient
func
NewCaseAttachmentServiceClient
(
cc
grpc
.
ClientConnInterface
)
CaseAttachmentServiceClient
CaseAttachmentServiceServer
type
CaseAttachmentServiceServer
interface
{
// List all the attachments associated with a support case.
ListAttachments
(
context
.
Context
,
*
ListAttachmentsRequest
)
(
*
ListAttachmentsResponse
,
error
)
}
CaseAttachmentServiceServer is the server API for CaseAttachmentService service.
CaseClassification
type
CaseClassification
struct
{
// The unique ID for a classification. Must be specified for case creation.
//
// To retrieve valid classification IDs for case creation, use
// `caseClassifications.search`.
//
// Classification IDs returned by `caseClassifications.search` are guaranteed
// to be valid for at least 6 months. If a given classification is
// deactiveated, it will immediately stop being returned. After 6 months,
// `case.create` requests using the classification ID will fail.
Id
string
`protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
// A display name for the classification.
//
// The display name is not static and can change. To uniquely and consistently
// identify classifications, use the `CaseClassification.id` field.
DisplayName
string
`protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// contains filtered or unexported fields
}
A Case Classification represents the topic that a case is about. It's very important to use accurate classifications, because they're used to route your cases to specialists who can help you.
A classification always has an ID that is its unique identifier. A valid ID is required when creating a case.
func (*CaseClassification) Descriptor
func
(
*
CaseClassification
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use CaseClassification.ProtoReflect.Descriptor instead.
func (*CaseClassification) GetDisplayName
func
(
x
*
CaseClassification
)
GetDisplayName
()
string
func (*CaseClassification) GetId
func
(
x
*
CaseClassification
)
GetId
()
string
func (*CaseClassification) ProtoMessage
func
(
*
CaseClassification
)
ProtoMessage
()
func (*CaseClassification) ProtoReflect
func
(
x
*
CaseClassification
)
ProtoReflect
()
protoreflect
.
Message
func (*CaseClassification) Reset
func
(
x
*
CaseClassification
)
Reset
()
func (*CaseClassification) String
func
(
x
*
CaseClassification
)
String
()
string
CaseServiceClient
type
CaseServiceClient
interface
{
// Retrieve a case.
GetCase
(
ctx
context
.
Context
,
in
*
GetCaseRequest
,
opts
...
grpc
.
CallOption
)
(
*
Case
,
error
)
// Retrieve all cases under a parent, but not its children.
//
// For example, listing cases under an organization only returns the cases
// that are directly parented by that organization. To retrieve cases
// under an organization and its projects, use `cases.search`.
ListCases
(
ctx
context
.
Context
,
in
*
ListCasesRequest
,
opts
...
grpc
.
CallOption
)
(
*
ListCasesResponse
,
error
)
// Search for cases using a query.
SearchCases
(
ctx
context
.
Context
,
in
*
SearchCasesRequest
,
opts
...
grpc
.
CallOption
)
(
*
SearchCasesResponse
,
error
)
// Create a new case and associate it with a parent.
//
// It must have the following fields set: `display_name`, `description`,
// `classification`, and `priority`. If you're just testing the API and don't
// want to route your case to an agent, set `testCase=true`.
CreateCase
(
ctx
context
.
Context
,
in
*
CreateCaseRequest
,
opts
...
grpc
.
CallOption
)
(
*
Case
,
error
)
// Update a case. Only some fields can be updated.
UpdateCase
(
ctx
context
.
Context
,
in
*
UpdateCaseRequest
,
opts
...
grpc
.
CallOption
)
(
*
Case
,
error
)
// Escalate a case, starting the Google Cloud Support escalation management
// process.
//
// This operation is only available for some support services. Go to
// https://cloud.google.com/support and look for 'Technical support
// escalations' in the feature list to find out which ones let you
// do that.
EscalateCase
(
ctx
context
.
Context
,
in
*
EscalateCaseRequest
,
opts
...
grpc
.
CallOption
)
(
*
Case
,
error
)
// Close a case.
CloseCase
(
ctx
context
.
Context
,
in
*
CloseCaseRequest
,
opts
...
grpc
.
CallOption
)
(
*
Case
,
error
)
// Retrieve valid classifications to use when creating a support case.
//
// Classifications are hierarchical. Each classification is a string
// containing all levels of the hierarchy separated by `" > "`. For example,
// `"Technical Issue > Compute > Compute Engine"`.
//
// Classification IDs returned by this endpoint are valid for at least six
// months. When a classification is deactivated, this endpoint immediately
// stops returning it. After six months, `case.create` requests using the
// classification will fail.
SearchCaseClassifications
(
ctx
context
.
Context
,
in
*
SearchCaseClassificationsRequest
,
opts
...
grpc
.
CallOption
)
(
*
SearchCaseClassificationsResponse
,
error
)
}
CaseServiceClient is the client API for CaseService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream .
func NewCaseServiceClient
func
NewCaseServiceClient
(
cc
grpc
.
ClientConnInterface
)
CaseServiceClient
CaseServiceServer
type
CaseServiceServer
interface
{
// Retrieve a case.
GetCase
(
context
.
Context
,
*
GetCaseRequest
)
(
*
Case
,
error
)
// Retrieve all cases under a parent, but not its children.
//
// For example, listing cases under an organization only returns the cases
// that are directly parented by that organization. To retrieve cases
// under an organization and its projects, use `cases.search`.
ListCases
(
context
.
Context
,
*
ListCasesRequest
)
(
*
ListCasesResponse
,
error
)
// Search for cases using a query.
SearchCases
(
context
.
Context
,
*
SearchCasesRequest
)
(
*
SearchCasesResponse
,
error
)
// Create a new case and associate it with a parent.
//
// It must have the following fields set: `display_name`, `description`,
// `classification`, and `priority`. If you're just testing the API and don't
// want to route your case to an agent, set `testCase=true`.
CreateCase
(
context
.
Context
,
*
CreateCaseRequest
)
(
*
Case
,
error
)
// Update a case. Only some fields can be updated.
UpdateCase
(
context
.
Context
,
*
UpdateCaseRequest
)
(
*
Case
,
error
)
// Escalate a case, starting the Google Cloud Support escalation management
// process.
//
// This operation is only available for some support services. Go to
// https://cloud.google.com/support and look for 'Technical support
// escalations' in the feature list to find out which ones let you
// do that.
EscalateCase
(
context
.
Context
,
*
EscalateCaseRequest
)
(
*
Case
,
error
)
// Close a case.
CloseCase
(
context
.
Context
,
*
CloseCaseRequest
)
(
*
Case
,
error
)
// Retrieve valid classifications to use when creating a support case.
//
// Classifications are hierarchical. Each classification is a string
// containing all levels of the hierarchy separated by `" > "`. For example,
// `"Technical Issue > Compute > Compute Engine"`.
//
// Classification IDs returned by this endpoint are valid for at least six
// months. When a classification is deactivated, this endpoint immediately
// stops returning it. After six months, `case.create` requests using the
// classification will fail.
SearchCaseClassifications
(
context
.
Context
,
*
SearchCaseClassificationsRequest
)
(
*
SearchCaseClassificationsResponse
,
error
)
}
CaseServiceServer is the server API for CaseService service.
Case_Priority
type
Case_Priority
int32
The case Priority. P0 is most urgent and P4 the least.
Case_PRIORITY_UNSPECIFIED, Case_P0, Case_P1, Case_P2, Case_P3, Case_P4
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
)
func (Case_Priority) Descriptor
func
(
Case_Priority
)
Descriptor
()
protoreflect
.
EnumDescriptor
func (Case_Priority) Enum
func
(
x
Case_Priority
)
Enum
()
*
Case_Priority
func (Case_Priority) EnumDescriptor
func
(
Case_Priority
)
EnumDescriptor
()
([]
byte
,
[]
int
)
Deprecated: Use Case_Priority.Descriptor instead.
func (Case_Priority) Number
func
(
x
Case_Priority
)
Number
()
protoreflect
.
EnumNumber
func (Case_Priority) String
func
(
x
Case_Priority
)
String
()
string
func (Case_Priority) Type
func
(
Case_Priority
)
Type
()
protoreflect
.
EnumType
Case_State
type
Case_State
int32
The status of a support case.
Case_STATE_UNSPECIFIED, Case_NEW, Case_IN_PROGRESS_GOOGLE_SUPPORT, Case_ACTION_REQUIRED, Case_SOLUTION_PROVIDED, Case_CLOSED
const
(
// Case is in an unknown state.
Case_STATE_UNSPECIFIED
Case_State
=
0
// The case has been created but no one is assigned to work on it yet.
Case_NEW
Case_State
=
1
// The case is currently being handled by Google support.
Case_IN_PROGRESS_GOOGLE_SUPPORT
Case_State
=
2
// Google is waiting for a response.
Case_ACTION_REQUIRED
Case_State
=
3
// A solution has been offered for the case, but it isn't yet closed.
Case_SOLUTION_PROVIDED
Case_State
=
4
// The case has been resolved.
Case_CLOSED
Case_State
=
5
)
func (Case_State) Descriptor
func
(
Case_State
)
Descriptor
()
protoreflect
.
EnumDescriptor
func (Case_State) Enum
func
(
x
Case_State
)
Enum
()
*
Case_State
func (Case_State) EnumDescriptor
func
(
Case_State
)
EnumDescriptor
()
([]
byte
,
[]
int
)
Deprecated: Use Case_State.Descriptor instead.
func (Case_State) Number
func
(
x
Case_State
)
Number
()
protoreflect
.
EnumNumber
func (Case_State) String
func
(
x
Case_State
)
String
()
string
func (Case_State) Type
func
(
Case_State
)
Type
()
protoreflect
.
EnumType
CloseCaseRequest
type
CloseCaseRequest
struct
{
// Required. The name of the case to close.
Name
string
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
The request message for the CloseCase endpoint.
func (*CloseCaseRequest) Descriptor
func
(
*
CloseCaseRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use CloseCaseRequest.ProtoReflect.Descriptor instead.
func (*CloseCaseRequest) GetName
func
(
x
*
CloseCaseRequest
)
GetName
()
string
func (*CloseCaseRequest) ProtoMessage
func
(
*
CloseCaseRequest
)
ProtoMessage
()
func (*CloseCaseRequest) ProtoReflect
func
(
x
*
CloseCaseRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*CloseCaseRequest) Reset
func
(
x
*
CloseCaseRequest
)
Reset
()
func (*CloseCaseRequest) String
func
(
x
*
CloseCaseRequest
)
String
()
string
Comment
type
Comment
struct
{
// Output only. Identifier. The resource name of the comment.
Name
string
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The time when the comment was created.
CreateTime
*
timestamppb
.
Timestamp
`protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The user or Google Support agent who created the comment.
Creator
*
Actor
`protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"`
// The full comment body.
//
// Maximum of 12800 characters.
Body
string
`protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
// Output only. DEPRECATED. DO NOT USE.
//
// A duplicate of the `body` field.
//
// This field is only present for legacy reasons.
//
// Deprecated: Marked as deprecated in google/cloud/support/v2/comment.proto.
PlainTextBody
string
`protobuf:"bytes,5,opt,name=plain_text_body,json=plainTextBody,proto3" json:"plain_text_body,omitempty"`
// contains filtered or unexported fields
}
A comment associated with a support case.
Case comments are the primary way for Google Support to communicate with a user who has opened a case. When a user responds to Google Support, the user's responses also appear as comments.
func (*Comment) Descriptor
Deprecated: Use Comment.ProtoReflect.Descriptor instead.
func (*Comment) GetBody
func (*Comment) GetCreateTime
func
(
x
*
Comment
)
GetCreateTime
()
*
timestamppb
.
Timestamp
func (*Comment) GetCreator
func (*Comment) GetName
func (*Comment) GetPlainTextBody
Deprecated: Marked as deprecated in google/cloud/support/v2/comment.proto.
func (*Comment) ProtoMessage
func
(
*
Comment
)
ProtoMessage
()
func (*Comment) ProtoReflect
func
(
x
*
Comment
)
ProtoReflect
()
protoreflect
.
Message
func (*Comment) Reset
func
(
x
*
Comment
)
Reset
()
func (*Comment) String
CommentServiceClient
type
CommentServiceClient
interface
{
// List all the comments associated with a case.
ListComments
(
ctx
context
.
Context
,
in
*
ListCommentsRequest
,
opts
...
grpc
.
CallOption
)
(
*
ListCommentsResponse
,
error
)
// Add a new comment to a case.
//
// The comment must have the following fields set: `body`.
CreateComment
(
ctx
context
.
Context
,
in
*
CreateCommentRequest
,
opts
...
grpc
.
CallOption
)
(
*
Comment
,
error
)
}
CommentServiceClient is the client API for CommentService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream .
func NewCommentServiceClient
func
NewCommentServiceClient
(
cc
grpc
.
ClientConnInterface
)
CommentServiceClient
CommentServiceServer
type
CommentServiceServer
interface
{
// List all the comments associated with a case.
ListComments
(
context
.
Context
,
*
ListCommentsRequest
)
(
*
ListCommentsResponse
,
error
)
// Add a new comment to a case.
//
// The comment must have the following fields set: `body`.
CreateComment
(
context
.
Context
,
*
CreateCommentRequest
)
(
*
Comment
,
error
)
}
CommentServiceServer is the server API for CommentService service.
CreateCaseRequest
type
CreateCaseRequest
struct
{
// Required. The name of the parent under which the case should be created.
Parent
string
`protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The case to be created.
Case
*
Case
`protobuf:"bytes,2,opt,name=case,proto3" json:"case,omitempty"`
// contains filtered or unexported fields
}
The request message for the CreateCase endpoint.
func (*CreateCaseRequest) Descriptor
func
(
*
CreateCaseRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use CreateCaseRequest.ProtoReflect.Descriptor instead.
func (*CreateCaseRequest) GetCase
func
(
x
*
CreateCaseRequest
)
GetCase
()
*
Case
func (*CreateCaseRequest) GetParent
func
(
x
*
CreateCaseRequest
)
GetParent
()
string
func (*CreateCaseRequest) ProtoMessage
func
(
*
CreateCaseRequest
)
ProtoMessage
()
func (*CreateCaseRequest) ProtoReflect
func
(
x
*
CreateCaseRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*CreateCaseRequest) Reset
func
(
x
*
CreateCaseRequest
)
Reset
()
func (*CreateCaseRequest) String
func
(
x
*
CreateCaseRequest
)
String
()
string
CreateCommentRequest
type
CreateCommentRequest
struct
{
// Required. The name of the case to which the comment should be added.
Parent
string
`protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The comment to be added.
Comment
*
Comment
`protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
// contains filtered or unexported fields
}
The request message for the CreateComment endpoint.
func (*CreateCommentRequest) Descriptor
func
(
*
CreateCommentRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use CreateCommentRequest.ProtoReflect.Descriptor instead.
func (*CreateCommentRequest) GetComment
func
(
x
*
CreateCommentRequest
)
GetComment
()
*
Comment
func (*CreateCommentRequest) GetParent
func
(
x
*
CreateCommentRequest
)
GetParent
()
string
func (*CreateCommentRequest) ProtoMessage
func
(
*
CreateCommentRequest
)
ProtoMessage
()
func (*CreateCommentRequest) ProtoReflect
func
(
x
*
CreateCommentRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*CreateCommentRequest) Reset
func
(
x
*
CreateCommentRequest
)
Reset
()
func (*CreateCommentRequest) String
func
(
x
*
CreateCommentRequest
)
String
()
string
EscalateCaseRequest
type
EscalateCaseRequest
struct
{
// Required. The name of the case to be escalated.
Name
string
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The escalation information to be sent with the escalation request.
Escalation
*
Escalation
`protobuf:"bytes,2,opt,name=escalation,proto3" json:"escalation,omitempty"`
// contains filtered or unexported fields
}
The request message for the EscalateCase endpoint.
func (*EscalateCaseRequest) Descriptor
func
(
*
EscalateCaseRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use EscalateCaseRequest.ProtoReflect.Descriptor instead.
func (*EscalateCaseRequest) GetEscalation
func
(
x
*
EscalateCaseRequest
)
GetEscalation
()
*
Escalation
func (*EscalateCaseRequest) GetName
func
(
x
*
EscalateCaseRequest
)
GetName
()
string
func (*EscalateCaseRequest) ProtoMessage
func
(
*
EscalateCaseRequest
)
ProtoMessage
()
func (*EscalateCaseRequest) ProtoReflect
func
(
x
*
EscalateCaseRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*EscalateCaseRequest) Reset
func
(
x
*
EscalateCaseRequest
)
Reset
()
func (*EscalateCaseRequest) String
func
(
x
*
EscalateCaseRequest
)
String
()
string
Escalation
type
Escalation
struct
{
// Required. The reason why the Case is being escalated.
Reason
Escalation_Reason
`protobuf:"varint,4,opt,name=reason,proto3,enum=google.cloud.support.v2.Escalation_Reason" json:"reason,omitempty"`
// Required. A free text description to accompany the `reason` field above.
// Provides additional context on why the case is being escalated.
Justification
string
`protobuf:"bytes,5,opt,name=justification,proto3" json:"justification,omitempty"`
// contains filtered or unexported fields
}
An escalation of a support case.
func (*Escalation) Descriptor
func
(
*
Escalation
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use Escalation.ProtoReflect.Descriptor instead.
func (*Escalation) GetJustification
func
(
x
*
Escalation
)
GetJustification
()
string
func (*Escalation) GetReason
func
(
x
*
Escalation
)
GetReason
()
Escalation_Reason
func (*Escalation) ProtoMessage
func
(
*
Escalation
)
ProtoMessage
()
func (*Escalation) ProtoReflect
func
(
x
*
Escalation
)
ProtoReflect
()
protoreflect
.
Message
func (*Escalation) Reset
func
(
x
*
Escalation
)
Reset
()
func (*Escalation) String
func
(
x
*
Escalation
)
String
()
string
Escalation_Reason
type
Escalation_Reason
int32
An enum detailing the possible reasons a case may be escalated.
Escalation_REASON_UNSPECIFIED, Escalation_RESOLUTION_TIME, Escalation_TECHNICAL_EXPERTISE, Escalation_BUSINESS_IMPACT
const
(
// The escalation reason is in an unknown state or has not been specified.
Escalation_REASON_UNSPECIFIED
Escalation_Reason
=
0
// The case is taking too long to resolve.
Escalation_RESOLUTION_TIME
Escalation_Reason
=
1
// The support agent does not have the expertise required to successfully
// resolve the issue.
Escalation_TECHNICAL_EXPERTISE
Escalation_Reason
=
2
// The issue is having a significant business impact.
Escalation_BUSINESS_IMPACT
Escalation_Reason
=
3
)
func (Escalation_Reason) Descriptor
func
(
Escalation_Reason
)
Descriptor
()
protoreflect
.
EnumDescriptor
func (Escalation_Reason) Enum
func
(
x
Escalation_Reason
)
Enum
()
*
Escalation_Reason
func (Escalation_Reason) EnumDescriptor
func
(
Escalation_Reason
)
EnumDescriptor
()
([]
byte
,
[]
int
)
Deprecated: Use Escalation_Reason.Descriptor instead.
func (Escalation_Reason) Number
func
(
x
Escalation_Reason
)
Number
()
protoreflect
.
EnumNumber
func (Escalation_Reason) String
func
(
x
Escalation_Reason
)
String
()
string
func (Escalation_Reason) Type
func
(
Escalation_Reason
)
Type
()
protoreflect
.
EnumType
GetCaseRequest
type
GetCaseRequest
struct
{
// Required. The full name of a case to be retrieved.
Name
string
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
The request message for the GetCase endpoint.
func (*GetCaseRequest) Descriptor
func
(
*
GetCaseRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use GetCaseRequest.ProtoReflect.Descriptor instead.
func (*GetCaseRequest) GetName
func
(
x
*
GetCaseRequest
)
GetName
()
string
func (*GetCaseRequest) ProtoMessage
func
(
*
GetCaseRequest
)
ProtoMessage
()
func (*GetCaseRequest) ProtoReflect
func
(
x
*
GetCaseRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*GetCaseRequest) Reset
func
(
x
*
GetCaseRequest
)
Reset
()
func (*GetCaseRequest) String
func
(
x
*
GetCaseRequest
)
String
()
string
ListAttachmentsRequest
type
ListAttachmentsRequest
struct
{
// Required. The name of the case for which attachments should be listed.
Parent
string
`protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of attachments fetched with each request.
//
// If not provided, the default is 10. The maximum page size that will be
// returned is 100.
//
// The size of each page can be smaller than the requested page size and can
// include zero. For example, you could request 100 attachments on one page,
// receive 0, and then on the next page, receive 90.
PageSize
int32
`protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A token identifying the page of results to return. If unspecified, the
// first page is retrieved.
PageToken
string
`protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
The request message for the ListAttachments endpoint.
func (*ListAttachmentsRequest) Descriptor
func
(
*
ListAttachmentsRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use ListAttachmentsRequest.ProtoReflect.Descriptor instead.
func (*ListAttachmentsRequest) GetPageSize
func
(
x
*
ListAttachmentsRequest
)
GetPageSize
()
int32
func (*ListAttachmentsRequest) GetPageToken
func
(
x
*
ListAttachmentsRequest
)
GetPageToken
()
string
func (*ListAttachmentsRequest) GetParent
func
(
x
*
ListAttachmentsRequest
)
GetParent
()
string
func (*ListAttachmentsRequest) ProtoMessage
func
(
*
ListAttachmentsRequest
)
ProtoMessage
()
func (*ListAttachmentsRequest) ProtoReflect
func
(
x
*
ListAttachmentsRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*ListAttachmentsRequest) Reset
func
(
x
*
ListAttachmentsRequest
)
Reset
()
func (*ListAttachmentsRequest) String
func
(
x
*
ListAttachmentsRequest
)
String
()
string
ListAttachmentsResponse
type
ListAttachmentsResponse
struct
{
// The list of attachments associated with a case.
Attachments
[]
*
Attachment
`protobuf:"bytes,1,rep,name=attachments,proto3" json:"attachments,omitempty"`
// A token to retrieve the next page of results. Set this in the `page_token`
// field of subsequent `cases.attachments.list` requests. If unspecified,
// there are no more results to retrieve.
NextPageToken
string
`protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
The response message for the ListAttachments endpoint.
func (*ListAttachmentsResponse) Descriptor
func
(
*
ListAttachmentsResponse
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use ListAttachmentsResponse.ProtoReflect.Descriptor instead.
func (*ListAttachmentsResponse) GetAttachments
func
(
x
*
ListAttachmentsResponse
)
GetAttachments
()
[]
*
Attachment
func (*ListAttachmentsResponse) GetNextPageToken
func
(
x
*
ListAttachmentsResponse
)
GetNextPageToken
()
string
func (*ListAttachmentsResponse) ProtoMessage
func
(
*
ListAttachmentsResponse
)
ProtoMessage
()
func (*ListAttachmentsResponse) ProtoReflect
func
(
x
*
ListAttachmentsResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*ListAttachmentsResponse) Reset
func
(
x
*
ListAttachmentsResponse
)
Reset
()
func (*ListAttachmentsResponse) String
func
(
x
*
ListAttachmentsResponse
)
String
()
string
ListCasesRequest
type
ListCasesRequest
struct
{
// Required. The name of a parent to list cases under.
Parent
string
`protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// An expression used to filter cases.
//
// If it's an empty string, then no filtering happens. Otherwise, the endpoint
// returns the cases that match the filter.
//
// Expressions use the following fields separated by `AND` and specified with
// `=`:
//
// - `state`: Can be `OPEN` or `CLOSED`.
// - `priority`: Can be `P0`, `P1`, `P2`, `P3`, or `P4`. You
// can specify multiple values for priority using the `OR` operator. For
// example, `priority=P1 OR priority=P2`.
// - `creator.email`: The email address of the case creator.
//
// EXAMPLES:
//
// - `state=CLOSED`
// - `state=OPEN AND creator.email="tester@example.com"`
// - `state=OPEN AND (priority=P0 OR priority=P1)`
Filter
string
`protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// The maximum number of cases fetched with each request. Defaults to 10.
PageSize
int32
`protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A token identifying the page of results to return. If unspecified, the
// first page is retrieved.
PageToken
string
`protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
The request message for the ListCases endpoint.
func (*ListCasesRequest) Descriptor
func
(
*
ListCasesRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use ListCasesRequest.ProtoReflect.Descriptor instead.
func (*ListCasesRequest) GetFilter
func
(
x
*
ListCasesRequest
)
GetFilter
()
string
func (*ListCasesRequest) GetPageSize
func
(
x
*
ListCasesRequest
)
GetPageSize
()
int32
func (*ListCasesRequest) GetPageToken
func
(
x
*
ListCasesRequest
)
GetPageToken
()
string
func (*ListCasesRequest) GetParent
func
(
x
*
ListCasesRequest
)
GetParent
()
string
func (*ListCasesRequest) ProtoMessage
func
(
*
ListCasesRequest
)
ProtoMessage
()
func (*ListCasesRequest) ProtoReflect
func
(
x
*
ListCasesRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*ListCasesRequest) Reset
func
(
x
*
ListCasesRequest
)
Reset
()
func (*ListCasesRequest) String
func
(
x
*
ListCasesRequest
)
String
()
string
ListCasesResponse
type
ListCasesResponse
struct
{
// The list of cases associated with the parent after any
// filters have been applied.
Cases
[]
*
Case
`protobuf:"bytes,1,rep,name=cases,proto3" json:"cases,omitempty"`
// A token to retrieve the next page of results. Set this in the `page_token`
// field of subsequent `cases.list` requests. If unspecified, there are no
// more results to retrieve.
NextPageToken
string
`protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
The response message for the ListCases endpoint.
func (*ListCasesResponse) Descriptor
func
(
*
ListCasesResponse
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use ListCasesResponse.ProtoReflect.Descriptor instead.
func (*ListCasesResponse) GetCases
func
(
x
*
ListCasesResponse
)
GetCases
()
[]
*
Case
func (*ListCasesResponse) GetNextPageToken
func
(
x
*
ListCasesResponse
)
GetNextPageToken
()
string
func (*ListCasesResponse) ProtoMessage
func
(
*
ListCasesResponse
)
ProtoMessage
()
func (*ListCasesResponse) ProtoReflect
func
(
x
*
ListCasesResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*ListCasesResponse) Reset
func
(
x
*
ListCasesResponse
)
Reset
()
func (*ListCasesResponse) String
func
(
x
*
ListCasesResponse
)
String
()
string
ListCommentsRequest
type
ListCommentsRequest
struct
{
// Required. The name of the case for which to list comments.
Parent
string
`protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of comments to fetch. Defaults to 10.
PageSize
int32
`protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A token identifying the page of results to return. If unspecified, the
// first page is returned.
PageToken
string
`protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
The request message for the ListComments endpoint.
func (*ListCommentsRequest) Descriptor
func
(
*
ListCommentsRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use ListCommentsRequest.ProtoReflect.Descriptor instead.
func (*ListCommentsRequest) GetPageSize
func
(
x
*
ListCommentsRequest
)
GetPageSize
()
int32
func (*ListCommentsRequest) GetPageToken
func
(
x
*
ListCommentsRequest
)
GetPageToken
()
string
func (*ListCommentsRequest) GetParent
func
(
x
*
ListCommentsRequest
)
GetParent
()
string
func (*ListCommentsRequest) ProtoMessage
func
(
*
ListCommentsRequest
)
ProtoMessage
()
func (*ListCommentsRequest) ProtoReflect
func
(
x
*
ListCommentsRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*ListCommentsRequest) Reset
func
(
x
*
ListCommentsRequest
)
Reset
()
func (*ListCommentsRequest) String
func
(
x
*
ListCommentsRequest
)
String
()
string
ListCommentsResponse
type
ListCommentsResponse
struct
{
// List of the comments associated with the case.
Comments
[]
*
Comment
`protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"`
// A token to retrieve the next page of results. Set this in the `page_token`
// field of subsequent `cases.comments.list` requests. If unspecified, there
// are no more results to retrieve.
NextPageToken
string
`protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
The response message for the ListComments endpoint.
func (*ListCommentsResponse) Descriptor
func
(
*
ListCommentsResponse
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use ListCommentsResponse.ProtoReflect.Descriptor instead.
func (*ListCommentsResponse) GetComments
func
(
x
*
ListCommentsResponse
)
GetComments
()
[]
*
Comment
func (*ListCommentsResponse) GetNextPageToken
func
(
x
*
ListCommentsResponse
)
GetNextPageToken
()
string
func (*ListCommentsResponse) ProtoMessage
func
(
*
ListCommentsResponse
)
ProtoMessage
()
func (*ListCommentsResponse) ProtoReflect
func
(
x
*
ListCommentsResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*ListCommentsResponse) Reset
func
(
x
*
ListCommentsResponse
)
Reset
()
func (*ListCommentsResponse) String
func
(
x
*
ListCommentsResponse
)
String
()
string
SearchCaseClassificationsRequest
type
SearchCaseClassificationsRequest
struct
{
// An expression used to filter case classifications.
//
// If it's an empty string, then no filtering happens. Otherwise, case
// classifications will be returned that match the filter.
Query
string
`protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
// The maximum number of classifications fetched with each request.
PageSize
int32
`protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A token identifying the page of results to return. If unspecified, the
// first page is retrieved.
PageToken
string
`protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
The request message for the SearchCaseClassifications endpoint.
func (*SearchCaseClassificationsRequest) Descriptor
func
(
*
SearchCaseClassificationsRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use SearchCaseClassificationsRequest.ProtoReflect.Descriptor instead.
func (*SearchCaseClassificationsRequest) GetPageSize
func
(
x
*
SearchCaseClassificationsRequest
)
GetPageSize
()
int32
func (*SearchCaseClassificationsRequest) GetPageToken
func
(
x
*
SearchCaseClassificationsRequest
)
GetPageToken
()
string
func (*SearchCaseClassificationsRequest) GetQuery
func
(
x
*
SearchCaseClassificationsRequest
)
GetQuery
()
string
func (*SearchCaseClassificationsRequest) ProtoMessage
func
(
*
SearchCaseClassificationsRequest
)
ProtoMessage
()
func (*SearchCaseClassificationsRequest) ProtoReflect
func
(
x
*
SearchCaseClassificationsRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*SearchCaseClassificationsRequest) Reset
func
(
x
*
SearchCaseClassificationsRequest
)
Reset
()
func (*SearchCaseClassificationsRequest) String
func
(
x
*
SearchCaseClassificationsRequest
)
String
()
string
SearchCaseClassificationsResponse
type
SearchCaseClassificationsResponse
struct
{
// The classifications retrieved.
CaseClassifications
[]
*
CaseClassification
`protobuf:"bytes,1,rep,name=case_classifications,json=caseClassifications,proto3" json:"case_classifications,omitempty"`
// A token to retrieve the next page of results. Set this in the `page_token`
// field of subsequent `caseClassifications.list` requests. If unspecified,
// there are no more results to retrieve.
NextPageToken
string
`protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
The response message for SearchCaseClassifications endpoint.
func (*SearchCaseClassificationsResponse) Descriptor
func
(
*
SearchCaseClassificationsResponse
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use SearchCaseClassificationsResponse.ProtoReflect.Descriptor instead.
func (*SearchCaseClassificationsResponse) GetCaseClassifications
func
(
x
*
SearchCaseClassificationsResponse
)
GetCaseClassifications
()
[]
*
CaseClassification
func (*SearchCaseClassificationsResponse) GetNextPageToken
func
(
x
*
SearchCaseClassificationsResponse
)
GetNextPageToken
()
string
func (*SearchCaseClassificationsResponse) ProtoMessage
func
(
*
SearchCaseClassificationsResponse
)
ProtoMessage
()
func (*SearchCaseClassificationsResponse) ProtoReflect
func
(
x
*
SearchCaseClassificationsResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*SearchCaseClassificationsResponse) Reset
func
(
x
*
SearchCaseClassificationsResponse
)
Reset
()
func (*SearchCaseClassificationsResponse) String
func
(
x
*
SearchCaseClassificationsResponse
)
String
()
string
SearchCasesRequest
type
SearchCasesRequest
struct
{
// The name of the parent resource to search for cases under.
Parent
string
`protobuf:"bytes,4,opt,name=parent,proto3" json:"parent,omitempty"`
// An expression used to filter cases.
//
// Expressions use the following fields separated by `AND` and specified with
// `=`:
//
// - `organization`: An organization name in the form
// `organizations/
The request message for the SearchCases endpoint.
func (*SearchCasesRequest) Descriptor
func
(
*
SearchCasesRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use SearchCasesRequest.ProtoReflect.Descriptor instead.
func (*SearchCasesRequest) GetPageSize
func
(
x
*
SearchCasesRequest
)
GetPageSize
()
int32
func (*SearchCasesRequest) GetPageToken
func
(
x
*
SearchCasesRequest
)
GetPageToken
()
string
func (*SearchCasesRequest) GetParent
func
(
x
*
SearchCasesRequest
)
GetParent
()
string
func (*SearchCasesRequest) GetQuery
func
(
x
*
SearchCasesRequest
)
GetQuery
()
string
func (*SearchCasesRequest) ProtoMessage
func
(
*
SearchCasesRequest
)
ProtoMessage
()
func (*SearchCasesRequest) ProtoReflect
func
(
x
*
SearchCasesRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*SearchCasesRequest) Reset
func
(
x
*
SearchCasesRequest
)
Reset
()
func (*SearchCasesRequest) String
func
(
x
*
SearchCasesRequest
)
String
()
string
SearchCasesResponse
type
SearchCasesResponse
struct
{
// The list of cases associated with the parent after any
// filters have been applied.
Cases
[]
*
Case
`protobuf:"bytes,1,rep,name=cases,proto3" json:"cases,omitempty"`
// A token to retrieve the next page of results. Set this in the
// `page_token` field of subsequent `cases.search` requests. If unspecified,
// there are no more results to retrieve.
NextPageToken
string
`protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
The response message for the SearchCases endpoint.
func (*SearchCasesResponse) Descriptor
func
(
*
SearchCasesResponse
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use SearchCasesResponse.ProtoReflect.Descriptor instead.
func (*SearchCasesResponse) GetCases
func
(
x
*
SearchCasesResponse
)
GetCases
()
[]
*
Case
func (*SearchCasesResponse) GetNextPageToken
func
(
x
*
SearchCasesResponse
)
GetNextPageToken
()
string
func (*SearchCasesResponse) ProtoMessage
func
(
*
SearchCasesResponse
)
ProtoMessage
()
func (*SearchCasesResponse) ProtoReflect
func
(
x
*
SearchCasesResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*SearchCasesResponse) Reset
func
(
x
*
SearchCasesResponse
)
Reset
()
func (*SearchCasesResponse) String
func
(
x
*
SearchCasesResponse
)
String
()
string
UnimplementedCaseAttachmentServiceServer
type
UnimplementedCaseAttachmentServiceServer
struct
{
}
UnimplementedCaseAttachmentServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCaseAttachmentServiceServer) ListAttachments
func
(
*
UnimplementedCaseAttachmentServiceServer
)
ListAttachments
(
context
.
Context
,
*
ListAttachmentsRequest
)
(
*
ListAttachmentsResponse
,
error
)
UnimplementedCaseServiceServer
type
UnimplementedCaseServiceServer
struct
{
}
UnimplementedCaseServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCaseServiceServer) CloseCase
func
(
*
UnimplementedCaseServiceServer
)
CloseCase
(
context
.
Context
,
*
CloseCaseRequest
)
(
*
Case
,
error
)
func (*UnimplementedCaseServiceServer) CreateCase
func
(
*
UnimplementedCaseServiceServer
)
CreateCase
(
context
.
Context
,
*
CreateCaseRequest
)
(
*
Case
,
error
)
func (*UnimplementedCaseServiceServer) EscalateCase
func
(
*
UnimplementedCaseServiceServer
)
EscalateCase
(
context
.
Context
,
*
EscalateCaseRequest
)
(
*
Case
,
error
)
func (*UnimplementedCaseServiceServer) GetCase
func
(
*
UnimplementedCaseServiceServer
)
GetCase
(
context
.
Context
,
*
GetCaseRequest
)
(
*
Case
,
error
)
func (*UnimplementedCaseServiceServer) ListCases
func
(
*
UnimplementedCaseServiceServer
)
ListCases
(
context
.
Context
,
*
ListCasesRequest
)
(
*
ListCasesResponse
,
error
)
func (*UnimplementedCaseServiceServer) SearchCaseClassifications
func
(
*
UnimplementedCaseServiceServer
)
SearchCaseClassifications
(
context
.
Context
,
*
SearchCaseClassificationsRequest
)
(
*
SearchCaseClassificationsResponse
,
error
)
func (*UnimplementedCaseServiceServer) SearchCases
func
(
*
UnimplementedCaseServiceServer
)
SearchCases
(
context
.
Context
,
*
SearchCasesRequest
)
(
*
SearchCasesResponse
,
error
)
func (*UnimplementedCaseServiceServer) UpdateCase
func
(
*
UnimplementedCaseServiceServer
)
UpdateCase
(
context
.
Context
,
*
UpdateCaseRequest
)
(
*
Case
,
error
)
UnimplementedCommentServiceServer
type
UnimplementedCommentServiceServer
struct
{
}
UnimplementedCommentServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCommentServiceServer) CreateComment
func
(
*
UnimplementedCommentServiceServer
)
CreateComment
(
context
.
Context
,
*
CreateCommentRequest
)
(
*
Comment
,
error
)
func (*UnimplementedCommentServiceServer) ListComments
func
(
*
UnimplementedCommentServiceServer
)
ListComments
(
context
.
Context
,
*
ListCommentsRequest
)
(
*
ListCommentsResponse
,
error
)
UpdateCaseRequest
type
UpdateCaseRequest
struct
{
// Required. The case to update.
Case
*
Case
`protobuf:"bytes,1,opt,name=case,proto3" json:"case,omitempty"`
// A list of attributes of the case that should be updated. Supported values
// are `priority`, `display_name`, and `subscriber_email_addresses`. If no
// fields are specified, all supported fields are updated.
//
// Be careful - if you do not provide a field mask, then you might
// accidentally clear some fields. For example, if you leave the field mask
// empty and do not provide a value for `subscriber_email_addresses`, then
// `subscriber_email_addresses` is updated to empty.
UpdateMask
*
fieldmaskpb
.
FieldMask
`protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}
The request message for the UpdateCase endpoint
func (*UpdateCaseRequest) Descriptor
func
(
*
UpdateCaseRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use UpdateCaseRequest.ProtoReflect.Descriptor instead.
func (*UpdateCaseRequest) GetCase
func
(
x
*
UpdateCaseRequest
)
GetCase
()
*
Case
func (*UpdateCaseRequest) GetUpdateMask
func
(
x
*
UpdateCaseRequest
)
GetUpdateMask
()
*
fieldmaskpb
.
FieldMask
func (*UpdateCaseRequest) ProtoMessage
func
(
*
UpdateCaseRequest
)
ProtoMessage
()
func (*UpdateCaseRequest) ProtoReflect
func
(
x
*
UpdateCaseRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*UpdateCaseRequest) Reset
func
(
x
*
UpdateCaseRequest
)
Reset
()
func (*UpdateCaseRequest) String
func
(
x
*
UpdateCaseRequest
)
String
()
string