mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
vendor cleanup: remove unused,non-go and test files
This commit is contained in:
54
vendor/google.golang.org/genproto/googleapis/api/annotations/annotations.pb.go
generated
vendored
54
vendor/google.golang.org/genproto/googleapis/api/annotations/annotations.pb.go
generated
vendored
@ -1,54 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/annotations.proto
|
||||
|
||||
package annotations // import "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
|
||||
|
||||
// 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
|
||||
|
||||
var E_Http = &proto.ExtensionDesc{
|
||||
ExtendedType: (*descriptor.MethodOptions)(nil),
|
||||
ExtensionType: (*HttpRule)(nil),
|
||||
Field: 72295728,
|
||||
Name: "google.api.http",
|
||||
Tag: "bytes,72295728,opt,name=http",
|
||||
Filename: "google/api/annotations.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterExtension(E_Http)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/api/annotations.proto", fileDescriptor_annotations_55609bb51d80951d)
|
||||
}
|
||||
|
||||
var fileDescriptor_annotations_55609bb51d80951d = []byte{
|
||||
// 208 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x49, 0xcf, 0xcf, 0x4f,
|
||||
0xcf, 0x49, 0xd5, 0x4f, 0x2c, 0xc8, 0xd4, 0x4f, 0xcc, 0xcb, 0xcb, 0x2f, 0x49, 0x2c, 0xc9, 0xcc,
|
||||
0xcf, 0x2b, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x82, 0xc8, 0xea, 0x25, 0x16, 0x64,
|
||||
0x4a, 0x89, 0x22, 0xa9, 0xcc, 0x28, 0x29, 0x29, 0x80, 0x28, 0x91, 0x52, 0x80, 0x0a, 0x83, 0x79,
|
||||
0x49, 0xa5, 0x69, 0xfa, 0x29, 0xa9, 0xc5, 0xc9, 0x45, 0x99, 0x05, 0x25, 0xf9, 0x45, 0x10, 0x15,
|
||||
0x56, 0xde, 0x5c, 0x2c, 0x20, 0xf5, 0x42, 0x72, 0x7a, 0x50, 0xd3, 0x60, 0x4a, 0xf5, 0x7c, 0x53,
|
||||
0x4b, 0x32, 0xf2, 0x53, 0xfc, 0x0b, 0xc0, 0x56, 0x4a, 0x6c, 0x38, 0xb5, 0x47, 0x49, 0x81, 0x51,
|
||||
0x83, 0xdb, 0x48, 0x44, 0x0f, 0x61, 0xad, 0x9e, 0x47, 0x49, 0x49, 0x41, 0x50, 0x69, 0x4e, 0x6a,
|
||||
0x10, 0xd8, 0x10, 0xa7, 0x3c, 0x2e, 0xbe, 0xe4, 0xfc, 0x5c, 0x24, 0x05, 0x4e, 0x02, 0x8e, 0x08,
|
||||
0x67, 0x07, 0x80, 0x4c, 0x0e, 0x60, 0x8c, 0x72, 0x84, 0xca, 0xa7, 0xe7, 0xe7, 0x24, 0xe6, 0xa5,
|
||||
0xeb, 0xe5, 0x17, 0xa5, 0xeb, 0xa7, 0xa7, 0xe6, 0x81, 0xed, 0xd5, 0x87, 0x48, 0x25, 0x16, 0x64,
|
||||
0x16, 0xa3, 0x7b, 0xda, 0x1a, 0x89, 0xbd, 0x88, 0x89, 0xc5, 0xdd, 0x31, 0xc0, 0x33, 0x89, 0x0d,
|
||||
0xac, 0xc9, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xe3, 0x29, 0x19, 0x62, 0x28, 0x01, 0x00, 0x00,
|
||||
}
|
676
vendor/google.golang.org/genproto/googleapis/api/annotations/http.pb.go
generated
vendored
676
vendor/google.golang.org/genproto/googleapis/api/annotations/http.pb.go
generated
vendored
@ -1,676 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/http.proto
|
||||
|
||||
package annotations // import "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Defines the HTTP configuration for an API service. It contains a list of
|
||||
// [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
|
||||
// to one or more HTTP REST API methods.
|
||||
type Http struct {
|
||||
// A list of HTTP configuration rules that apply to individual API methods.
|
||||
//
|
||||
// **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
Rules []*HttpRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
|
||||
// When set to true, URL path parmeters will be fully URI-decoded except in
|
||||
// cases of single segment matches in reserved expansion, where "%2F" will be
|
||||
// left encoded.
|
||||
//
|
||||
// The default behavior is to not decode RFC 6570 reserved characters in multi
|
||||
// segment matches.
|
||||
FullyDecodeReservedExpansion bool `protobuf:"varint,2,opt,name=fully_decode_reserved_expansion,json=fullyDecodeReservedExpansion,proto3" json:"fully_decode_reserved_expansion,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Http) Reset() { *m = Http{} }
|
||||
func (m *Http) String() string { return proto.CompactTextString(m) }
|
||||
func (*Http) ProtoMessage() {}
|
||||
func (*Http) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_http_98c2ff955ca74b42, []int{0}
|
||||
}
|
||||
func (m *Http) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Http.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Http) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Http.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Http) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Http.Merge(dst, src)
|
||||
}
|
||||
func (m *Http) XXX_Size() int {
|
||||
return xxx_messageInfo_Http.Size(m)
|
||||
}
|
||||
func (m *Http) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Http.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Http proto.InternalMessageInfo
|
||||
|
||||
func (m *Http) GetRules() []*HttpRule {
|
||||
if m != nil {
|
||||
return m.Rules
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Http) GetFullyDecodeReservedExpansion() bool {
|
||||
if m != nil {
|
||||
return m.FullyDecodeReservedExpansion
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// `HttpRule` defines the mapping of an RPC method to one or more HTTP
|
||||
// REST API methods. The mapping specifies how different portions of the RPC
|
||||
// request message are mapped to URL path, URL query parameters, and
|
||||
// HTTP request body. The mapping is typically specified as an
|
||||
// `google.api.http` annotation on the RPC method,
|
||||
// see "google/api/annotations.proto" for details.
|
||||
//
|
||||
// The mapping consists of a field specifying the path template and
|
||||
// method kind. The path template can refer to fields in the request
|
||||
// message, as in the example below which describes a REST GET
|
||||
// operation on a resource collection of messages:
|
||||
//
|
||||
//
|
||||
// service Messaging {
|
||||
// rpc GetMessage(GetMessageRequest) returns (Message) {
|
||||
// option (google.api.http).get = "/v1/messages/{message_id}/{sub.subfield}";
|
||||
// }
|
||||
// }
|
||||
// message GetMessageRequest {
|
||||
// message SubMessage {
|
||||
// string subfield = 1;
|
||||
// }
|
||||
// string message_id = 1; // mapped to the URL
|
||||
// SubMessage sub = 2; // `sub.subfield` is url-mapped
|
||||
// }
|
||||
// message Message {
|
||||
// string text = 1; // content of the resource
|
||||
// }
|
||||
//
|
||||
// The same http annotation can alternatively be expressed inside the
|
||||
// `GRPC API Configuration` YAML file.
|
||||
//
|
||||
// http:
|
||||
// rules:
|
||||
// - selector: <proto_package_name>.Messaging.GetMessage
|
||||
// get: /v1/messages/{message_id}/{sub.subfield}
|
||||
//
|
||||
// This definition enables an automatic, bidrectional mapping of HTTP
|
||||
// JSON to RPC. Example:
|
||||
//
|
||||
// HTTP | RPC
|
||||
// -----|-----
|
||||
// `GET /v1/messages/123456/foo` | `GetMessage(message_id: "123456" sub: SubMessage(subfield: "foo"))`
|
||||
//
|
||||
// In general, not only fields but also field paths can be referenced
|
||||
// from a path pattern. Fields mapped to the path pattern cannot be
|
||||
// repeated and must have a primitive (non-message) type.
|
||||
//
|
||||
// Any fields in the request message which are not bound by the path
|
||||
// pattern automatically become (optional) HTTP query
|
||||
// parameters. Assume the following definition of the request message:
|
||||
//
|
||||
//
|
||||
// service Messaging {
|
||||
// rpc GetMessage(GetMessageRequest) returns (Message) {
|
||||
// option (google.api.http).get = "/v1/messages/{message_id}";
|
||||
// }
|
||||
// }
|
||||
// message GetMessageRequest {
|
||||
// message SubMessage {
|
||||
// string subfield = 1;
|
||||
// }
|
||||
// string message_id = 1; // mapped to the URL
|
||||
// int64 revision = 2; // becomes a parameter
|
||||
// SubMessage sub = 3; // `sub.subfield` becomes a parameter
|
||||
// }
|
||||
//
|
||||
//
|
||||
// This enables a HTTP JSON to RPC mapping as below:
|
||||
//
|
||||
// HTTP | RPC
|
||||
// -----|-----
|
||||
// `GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: "foo"))`
|
||||
//
|
||||
// Note that fields which are mapped to HTTP parameters must have a
|
||||
// primitive type or a repeated primitive type. Message types are not
|
||||
// allowed. In the case of a repeated type, the parameter can be
|
||||
// repeated in the URL, as in `...?param=A¶m=B`.
|
||||
//
|
||||
// For HTTP method kinds which allow a request body, the `body` field
|
||||
// specifies the mapping. Consider a REST update method on the
|
||||
// message resource collection:
|
||||
//
|
||||
//
|
||||
// service Messaging {
|
||||
// rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
|
||||
// option (google.api.http) = {
|
||||
// put: "/v1/messages/{message_id}"
|
||||
// body: "message"
|
||||
// };
|
||||
// }
|
||||
// }
|
||||
// message UpdateMessageRequest {
|
||||
// string message_id = 1; // mapped to the URL
|
||||
// Message message = 2; // mapped to the body
|
||||
// }
|
||||
//
|
||||
//
|
||||
// The following HTTP JSON to RPC mapping is enabled, where the
|
||||
// representation of the JSON in the request body is determined by
|
||||
// protos JSON encoding:
|
||||
//
|
||||
// HTTP | RPC
|
||||
// -----|-----
|
||||
// `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
|
||||
//
|
||||
// The special name `*` can be used in the body mapping to define that
|
||||
// every field not bound by the path template should be mapped to the
|
||||
// request body. This enables the following alternative definition of
|
||||
// the update method:
|
||||
//
|
||||
// service Messaging {
|
||||
// rpc UpdateMessage(Message) returns (Message) {
|
||||
// option (google.api.http) = {
|
||||
// put: "/v1/messages/{message_id}"
|
||||
// body: "*"
|
||||
// };
|
||||
// }
|
||||
// }
|
||||
// message Message {
|
||||
// string message_id = 1;
|
||||
// string text = 2;
|
||||
// }
|
||||
//
|
||||
//
|
||||
// The following HTTP JSON to RPC mapping is enabled:
|
||||
//
|
||||
// HTTP | RPC
|
||||
// -----|-----
|
||||
// `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" text: "Hi!")`
|
||||
//
|
||||
// Note that when using `*` in the body mapping, it is not possible to
|
||||
// have HTTP parameters, as all fields not bound by the path end in
|
||||
// the body. This makes this option more rarely used in practice of
|
||||
// defining REST APIs. The common usage of `*` is in custom methods
|
||||
// which don't use the URL at all for transferring data.
|
||||
//
|
||||
// It is possible to define multiple HTTP methods for one RPC by using
|
||||
// the `additional_bindings` option. Example:
|
||||
//
|
||||
// service Messaging {
|
||||
// rpc GetMessage(GetMessageRequest) returns (Message) {
|
||||
// option (google.api.http) = {
|
||||
// get: "/v1/messages/{message_id}"
|
||||
// additional_bindings {
|
||||
// get: "/v1/users/{user_id}/messages/{message_id}"
|
||||
// }
|
||||
// };
|
||||
// }
|
||||
// }
|
||||
// message GetMessageRequest {
|
||||
// string message_id = 1;
|
||||
// string user_id = 2;
|
||||
// }
|
||||
//
|
||||
//
|
||||
// This enables the following two alternative HTTP JSON to RPC
|
||||
// mappings:
|
||||
//
|
||||
// HTTP | RPC
|
||||
// -----|-----
|
||||
// `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
|
||||
// `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: "123456")`
|
||||
//
|
||||
// # Rules for HTTP mapping
|
||||
//
|
||||
// The rules for mapping HTTP path, query parameters, and body fields
|
||||
// to the request message are as follows:
|
||||
//
|
||||
// 1. The `body` field specifies either `*` or a field path, or is
|
||||
// omitted. If omitted, it indicates there is no HTTP request body.
|
||||
// 2. Leaf fields (recursive expansion of nested messages in the
|
||||
// request) can be classified into three types:
|
||||
// (a) Matched in the URL template.
|
||||
// (b) Covered by body (if body is `*`, everything except (a) fields;
|
||||
// else everything under the body field)
|
||||
// (c) All other fields.
|
||||
// 3. URL query parameters found in the HTTP request are mapped to (c) fields.
|
||||
// 4. Any body sent with an HTTP request can contain only (b) fields.
|
||||
//
|
||||
// The syntax of the path template is as follows:
|
||||
//
|
||||
// Template = "/" Segments [ Verb ] ;
|
||||
// Segments = Segment { "/" Segment } ;
|
||||
// Segment = "*" | "**" | LITERAL | Variable ;
|
||||
// Variable = "{" FieldPath [ "=" Segments ] "}" ;
|
||||
// FieldPath = IDENT { "." IDENT } ;
|
||||
// Verb = ":" LITERAL ;
|
||||
//
|
||||
// The syntax `*` matches a single path segment. The syntax `**` matches zero
|
||||
// or more path segments, which must be the last part of the path except the
|
||||
// `Verb`. The syntax `LITERAL` matches literal text in the path.
|
||||
//
|
||||
// The syntax `Variable` matches part of the URL path as specified by its
|
||||
// template. A variable template must not contain other variables. If a variable
|
||||
// matches a single path segment, its template may be omitted, e.g. `{var}`
|
||||
// is equivalent to `{var=*}`.
|
||||
//
|
||||
// If a variable contains exactly one path segment, such as `"{var}"` or
|
||||
// `"{var=*}"`, when such a variable is expanded into a URL path, all characters
|
||||
// except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the
|
||||
// Discovery Document as `{var}`.
|
||||
//
|
||||
// If a variable contains one or more path segments, such as `"{var=foo/*}"`
|
||||
// or `"{var=**}"`, when such a variable is expanded into a URL path, all
|
||||
// characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables
|
||||
// show up in the Discovery Document as `{+var}`.
|
||||
//
|
||||
// NOTE: While the single segment variable matches the semantics of
|
||||
// [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2
|
||||
// Simple String Expansion, the multi segment variable **does not** match
|
||||
// RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion
|
||||
// does not expand special characters like `?` and `#`, which would lead
|
||||
// to invalid URLs.
|
||||
//
|
||||
// NOTE: the field paths in variables and in the `body` must not refer to
|
||||
// repeated fields or map fields.
|
||||
type HttpRule struct {
|
||||
// Selects methods to which this rule applies.
|
||||
//
|
||||
// Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
|
||||
Selector string `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
|
||||
// Determines the URL pattern is matched by this rules. This pattern can be
|
||||
// used with any of the {get|put|post|delete|patch} methods. A custom method
|
||||
// can be defined using the 'custom' field.
|
||||
//
|
||||
// Types that are valid to be assigned to Pattern:
|
||||
// *HttpRule_Get
|
||||
// *HttpRule_Put
|
||||
// *HttpRule_Post
|
||||
// *HttpRule_Delete
|
||||
// *HttpRule_Patch
|
||||
// *HttpRule_Custom
|
||||
Pattern isHttpRule_Pattern `protobuf_oneof:"pattern"`
|
||||
// The name of the request field whose value is mapped to the HTTP body, or
|
||||
// `*` for mapping all fields not captured by the path pattern to the HTTP
|
||||
// body. NOTE: the referred field must not be a repeated field and must be
|
||||
// present at the top-level of request message type.
|
||||
Body string `protobuf:"bytes,7,opt,name=body,proto3" json:"body,omitempty"`
|
||||
// Additional HTTP bindings for the selector. Nested bindings must
|
||||
// not contain an `additional_bindings` field themselves (that is,
|
||||
// the nesting may only be one level deep).
|
||||
AdditionalBindings []*HttpRule `protobuf:"bytes,11,rep,name=additional_bindings,json=additionalBindings,proto3" json:"additional_bindings,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *HttpRule) Reset() { *m = HttpRule{} }
|
||||
func (m *HttpRule) String() string { return proto.CompactTextString(m) }
|
||||
func (*HttpRule) ProtoMessage() {}
|
||||
func (*HttpRule) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_http_98c2ff955ca74b42, []int{1}
|
||||
}
|
||||
func (m *HttpRule) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_HttpRule.Unmarshal(m, b)
|
||||
}
|
||||
func (m *HttpRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_HttpRule.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *HttpRule) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_HttpRule.Merge(dst, src)
|
||||
}
|
||||
func (m *HttpRule) XXX_Size() int {
|
||||
return xxx_messageInfo_HttpRule.Size(m)
|
||||
}
|
||||
func (m *HttpRule) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_HttpRule.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_HttpRule proto.InternalMessageInfo
|
||||
|
||||
func (m *HttpRule) GetSelector() string {
|
||||
if m != nil {
|
||||
return m.Selector
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type isHttpRule_Pattern interface {
|
||||
isHttpRule_Pattern()
|
||||
}
|
||||
|
||||
type HttpRule_Get struct {
|
||||
Get string `protobuf:"bytes,2,opt,name=get,proto3,oneof"`
|
||||
}
|
||||
|
||||
type HttpRule_Put struct {
|
||||
Put string `protobuf:"bytes,3,opt,name=put,proto3,oneof"`
|
||||
}
|
||||
|
||||
type HttpRule_Post struct {
|
||||
Post string `protobuf:"bytes,4,opt,name=post,proto3,oneof"`
|
||||
}
|
||||
|
||||
type HttpRule_Delete struct {
|
||||
Delete string `protobuf:"bytes,5,opt,name=delete,proto3,oneof"`
|
||||
}
|
||||
|
||||
type HttpRule_Patch struct {
|
||||
Patch string `protobuf:"bytes,6,opt,name=patch,proto3,oneof"`
|
||||
}
|
||||
|
||||
type HttpRule_Custom struct {
|
||||
Custom *CustomHttpPattern `protobuf:"bytes,8,opt,name=custom,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*HttpRule_Get) isHttpRule_Pattern() {}
|
||||
|
||||
func (*HttpRule_Put) isHttpRule_Pattern() {}
|
||||
|
||||
func (*HttpRule_Post) isHttpRule_Pattern() {}
|
||||
|
||||
func (*HttpRule_Delete) isHttpRule_Pattern() {}
|
||||
|
||||
func (*HttpRule_Patch) isHttpRule_Pattern() {}
|
||||
|
||||
func (*HttpRule_Custom) isHttpRule_Pattern() {}
|
||||
|
||||
func (m *HttpRule) GetPattern() isHttpRule_Pattern {
|
||||
if m != nil {
|
||||
return m.Pattern
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *HttpRule) GetGet() string {
|
||||
if x, ok := m.GetPattern().(*HttpRule_Get); ok {
|
||||
return x.Get
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *HttpRule) GetPut() string {
|
||||
if x, ok := m.GetPattern().(*HttpRule_Put); ok {
|
||||
return x.Put
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *HttpRule) GetPost() string {
|
||||
if x, ok := m.GetPattern().(*HttpRule_Post); ok {
|
||||
return x.Post
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *HttpRule) GetDelete() string {
|
||||
if x, ok := m.GetPattern().(*HttpRule_Delete); ok {
|
||||
return x.Delete
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *HttpRule) GetPatch() string {
|
||||
if x, ok := m.GetPattern().(*HttpRule_Patch); ok {
|
||||
return x.Patch
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *HttpRule) GetCustom() *CustomHttpPattern {
|
||||
if x, ok := m.GetPattern().(*HttpRule_Custom); ok {
|
||||
return x.Custom
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *HttpRule) GetBody() string {
|
||||
if m != nil {
|
||||
return m.Body
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *HttpRule) GetAdditionalBindings() []*HttpRule {
|
||||
if m != nil {
|
||||
return m.AdditionalBindings
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*HttpRule) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _HttpRule_OneofMarshaler, _HttpRule_OneofUnmarshaler, _HttpRule_OneofSizer, []interface{}{
|
||||
(*HttpRule_Get)(nil),
|
||||
(*HttpRule_Put)(nil),
|
||||
(*HttpRule_Post)(nil),
|
||||
(*HttpRule_Delete)(nil),
|
||||
(*HttpRule_Patch)(nil),
|
||||
(*HttpRule_Custom)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _HttpRule_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*HttpRule)
|
||||
// pattern
|
||||
switch x := m.Pattern.(type) {
|
||||
case *HttpRule_Get:
|
||||
b.EncodeVarint(2<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.Get)
|
||||
case *HttpRule_Put:
|
||||
b.EncodeVarint(3<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.Put)
|
||||
case *HttpRule_Post:
|
||||
b.EncodeVarint(4<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.Post)
|
||||
case *HttpRule_Delete:
|
||||
b.EncodeVarint(5<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.Delete)
|
||||
case *HttpRule_Patch:
|
||||
b.EncodeVarint(6<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.Patch)
|
||||
case *HttpRule_Custom:
|
||||
b.EncodeVarint(8<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.Custom); err != nil {
|
||||
return err
|
||||
}
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("HttpRule.Pattern has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _HttpRule_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*HttpRule)
|
||||
switch tag {
|
||||
case 2: // pattern.get
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.Pattern = &HttpRule_Get{x}
|
||||
return true, err
|
||||
case 3: // pattern.put
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.Pattern = &HttpRule_Put{x}
|
||||
return true, err
|
||||
case 4: // pattern.post
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.Pattern = &HttpRule_Post{x}
|
||||
return true, err
|
||||
case 5: // pattern.delete
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.Pattern = &HttpRule_Delete{x}
|
||||
return true, err
|
||||
case 6: // pattern.patch
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.Pattern = &HttpRule_Patch{x}
|
||||
return true, err
|
||||
case 8: // pattern.custom
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(CustomHttpPattern)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Pattern = &HttpRule_Custom{msg}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _HttpRule_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*HttpRule)
|
||||
// pattern
|
||||
switch x := m.Pattern.(type) {
|
||||
case *HttpRule_Get:
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.Get)))
|
||||
n += len(x.Get)
|
||||
case *HttpRule_Put:
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.Put)))
|
||||
n += len(x.Put)
|
||||
case *HttpRule_Post:
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.Post)))
|
||||
n += len(x.Post)
|
||||
case *HttpRule_Delete:
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.Delete)))
|
||||
n += len(x.Delete)
|
||||
case *HttpRule_Patch:
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.Patch)))
|
||||
n += len(x.Patch)
|
||||
case *HttpRule_Custom:
|
||||
s := proto.Size(x.Custom)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// A custom pattern is used for defining custom HTTP verb.
|
||||
type CustomHttpPattern struct {
|
||||
// The name of this custom HTTP verb.
|
||||
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
|
||||
// The path matched by this custom verb.
|
||||
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CustomHttpPattern) Reset() { *m = CustomHttpPattern{} }
|
||||
func (m *CustomHttpPattern) String() string { return proto.CompactTextString(m) }
|
||||
func (*CustomHttpPattern) ProtoMessage() {}
|
||||
func (*CustomHttpPattern) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_http_98c2ff955ca74b42, []int{2}
|
||||
}
|
||||
func (m *CustomHttpPattern) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CustomHttpPattern.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CustomHttpPattern) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CustomHttpPattern.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *CustomHttpPattern) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CustomHttpPattern.Merge(dst, src)
|
||||
}
|
||||
func (m *CustomHttpPattern) XXX_Size() int {
|
||||
return xxx_messageInfo_CustomHttpPattern.Size(m)
|
||||
}
|
||||
func (m *CustomHttpPattern) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CustomHttpPattern.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CustomHttpPattern proto.InternalMessageInfo
|
||||
|
||||
func (m *CustomHttpPattern) GetKind() string {
|
||||
if m != nil {
|
||||
return m.Kind
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CustomHttpPattern) GetPath() string {
|
||||
if m != nil {
|
||||
return m.Path
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Http)(nil), "google.api.Http")
|
||||
proto.RegisterType((*HttpRule)(nil), "google.api.HttpRule")
|
||||
proto.RegisterType((*CustomHttpPattern)(nil), "google.api.CustomHttpPattern")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/api/http.proto", fileDescriptor_http_98c2ff955ca74b42) }
|
||||
|
||||
var fileDescriptor_http_98c2ff955ca74b42 = []byte{
|
||||
// 401 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0x41, 0xab, 0x13, 0x31,
|
||||
0x10, 0xc7, 0xdd, 0x76, 0xdb, 0xd7, 0x4e, 0x41, 0x30, 0x3e, 0x25, 0x88, 0x62, 0xe9, 0xa9, 0x78,
|
||||
0xd8, 0xc2, 0xf3, 0xe0, 0xe1, 0x9d, 0x5e, 0xb5, 0xf8, 0xbc, 0x95, 0x3d, 0x7a, 0x29, 0xe9, 0x66,
|
||||
0x4c, 0xa3, 0x79, 0x49, 0xd8, 0xcc, 0x8a, 0xfd, 0x3a, 0x7e, 0x07, 0xbf, 0x9b, 0x47, 0x49, 0x36,
|
||||
0xb5, 0x05, 0xc1, 0xdb, 0xfc, 0xff, 0xf3, 0xcb, 0xcc, 0x64, 0x18, 0x78, 0xa6, 0x9c, 0x53, 0x06,
|
||||
0x57, 0xc2, 0xeb, 0xd5, 0x81, 0xc8, 0x57, 0xbe, 0x75, 0xe4, 0x18, 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0xca, 0xbd, 0x93, 0x47, 0x7e, 0x95, 0x3e,
|
||||
0x90, 0x62, 0xb6, 0x81, 0xa7, 0x42, 0x4a, 0x4d, 0xda, 0x59, 0x61, 0x76, 0x7b, 0x6d, 0xa5, 0xb6,
|
||||
0x2a, 0xf0, 0xd9, 0x7f, 0xd6, 0xcc, 0xce, 0x0f, 0xd6, 0x99, 0x5f, 0x4f, 0xe1, 0xca, 0xf7, 0xfd,
|
||||
0x16, 0xb7, 0xf0, 0xe4, 0x9f, 0x21, 0x62, 0xeb, 0x6f, 0xda, 0xca, 0xbc, 0xbb, 0x14, 0x47, 0xcf,
|
||||
0x0b, 0x3a, 0xf4, 0x8b, 0xab, 0x53, 0xbc, 0xfe, 0x0a, 0x8f, 0x1b, 0xf7, 0x70, 0xd1, 0x76, 0x3d,
|
||||
0x4d, 0x65, 0xe2, 0x61, 0x6c, 0x8b, 0xcf, 0x77, 0x39, 0xa1, 0x9c, 0x11, 0x56, 0x55, 0xae, 0x55,
|
||||
0x2b, 0x85, 0x36, 0x9d, 0xcd, 0xaa, 0x4f, 0x09, 0xaf, 0x43, 0x3a, 0x28, 0x61, 0xad, 0x23, 0x11,
|
||||
0xc7, 0x0c, 0xb7, 0x17, 0xf1, 0xef, 0xa2, 0xf8, 0x39, 0x28, 0x3f, 0xde, 0x6d, 0x3f, 0xed, 0xc7,
|
||||
0xe9, 0xdd, 0xdb, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x73, 0x2c, 0xed, 0xfb, 0x87, 0x02, 0x00,
|
||||
0x00,
|
||||
}
|
93
vendor/google.golang.org/genproto/googleapis/api/authorization_config.pb.go
generated
vendored
93
vendor/google.golang.org/genproto/googleapis/api/authorization_config.pb.go
generated
vendored
@ -1,93 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/experimental/authorization_config.proto
|
||||
|
||||
package api // import "google.golang.org/genproto/googleapis/api"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Configuration of authorization.
|
||||
//
|
||||
// This section determines the authorization provider, if unspecified, then no
|
||||
// authorization check will be done.
|
||||
//
|
||||
// Example:
|
||||
//
|
||||
// experimental:
|
||||
// authorization:
|
||||
// provider: firebaserules.googleapis.com
|
||||
type AuthorizationConfig struct {
|
||||
// The name of the authorization provider, such as
|
||||
// firebaserules.googleapis.com.
|
||||
Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *AuthorizationConfig) Reset() { *m = AuthorizationConfig{} }
|
||||
func (m *AuthorizationConfig) String() string { return proto.CompactTextString(m) }
|
||||
func (*AuthorizationConfig) ProtoMessage() {}
|
||||
func (*AuthorizationConfig) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_authorization_config_87a128931232bc39, []int{0}
|
||||
}
|
||||
func (m *AuthorizationConfig) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_AuthorizationConfig.Unmarshal(m, b)
|
||||
}
|
||||
func (m *AuthorizationConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_AuthorizationConfig.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *AuthorizationConfig) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_AuthorizationConfig.Merge(dst, src)
|
||||
}
|
||||
func (m *AuthorizationConfig) XXX_Size() int {
|
||||
return xxx_messageInfo_AuthorizationConfig.Size(m)
|
||||
}
|
||||
func (m *AuthorizationConfig) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_AuthorizationConfig.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_AuthorizationConfig proto.InternalMessageInfo
|
||||
|
||||
func (m *AuthorizationConfig) GetProvider() string {
|
||||
if m != nil {
|
||||
return m.Provider
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*AuthorizationConfig)(nil), "google.api.AuthorizationConfig")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/api/experimental/authorization_config.proto", fileDescriptor_authorization_config_87a128931232bc39)
|
||||
}
|
||||
|
||||
var fileDescriptor_authorization_config_87a128931232bc39 = []byte{
|
||||
// 180 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x4a, 0xcf, 0xcf, 0x4f,
|
||||
0xcf, 0x49, 0xd5, 0x4f, 0x2c, 0xc8, 0xd4, 0x4f, 0xad, 0x28, 0x48, 0x2d, 0xca, 0xcc, 0x4d, 0xcd,
|
||||
0x2b, 0x49, 0xcc, 0xd1, 0x4f, 0x2c, 0x2d, 0xc9, 0xc8, 0x2f, 0xca, 0xac, 0x4a, 0x2c, 0xc9, 0xcc,
|
||||
0xcf, 0x8b, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2,
|
||||
0x82, 0xe8, 0xd1, 0x4b, 0x2c, 0xc8, 0x54, 0x32, 0xe4, 0x12, 0x76, 0x44, 0x56, 0xe9, 0x0c, 0x56,
|
||||
0x28, 0x24, 0xc5, 0xc5, 0x51, 0x50, 0x94, 0x5f, 0x96, 0x99, 0x92, 0x5a, 0x24, 0xc1, 0xa8, 0xc0,
|
||||
0xa8, 0xc1, 0x19, 0x04, 0xe7, 0x3b, 0x25, 0x71, 0xf1, 0x25, 0xe7, 0xe7, 0xea, 0x21, 0x0c, 0x71,
|
||||
0x92, 0xc0, 0x62, 0x44, 0x00, 0xc8, 0xaa, 0x00, 0xc6, 0x28, 0x5d, 0xa8, 0xba, 0xf4, 0xfc, 0x9c,
|
||||
0xc4, 0xbc, 0x74, 0xbd, 0xfc, 0xa2, 0x74, 0xfd, 0xf4, 0xd4, 0x3c, 0xb0, 0x43, 0xf4, 0x21, 0x52,
|
||||
0x89, 0x05, 0x99, 0xc5, 0x20, 0xf7, 0x5b, 0x27, 0x16, 0x64, 0x2e, 0x62, 0x62, 0x71, 0x77, 0x0c,
|
||||
0xf0, 0x4c, 0x62, 0x03, 0x2b, 0x30, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x52, 0x27, 0x0c, 0xba,
|
||||
0xdf, 0x00, 0x00, 0x00,
|
||||
}
|
227
vendor/google.golang.org/genproto/googleapis/api/configchange/config_change.pb.go
generated
vendored
227
vendor/google.golang.org/genproto/googleapis/api/configchange/config_change.pb.go
generated
vendored
@ -1,227 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/config_change.proto
|
||||
|
||||
package configchange // import "google.golang.org/genproto/googleapis/api/configchange"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Classifies set of possible modifications to an object in the service
|
||||
// configuration.
|
||||
type ChangeType int32
|
||||
|
||||
const (
|
||||
// No value was provided.
|
||||
ChangeType_CHANGE_TYPE_UNSPECIFIED ChangeType = 0
|
||||
// The changed object exists in the 'new' service configuration, but not
|
||||
// in the 'old' service configuration.
|
||||
ChangeType_ADDED ChangeType = 1
|
||||
// The changed object exists in the 'old' service configuration, but not
|
||||
// in the 'new' service configuration.
|
||||
ChangeType_REMOVED ChangeType = 2
|
||||
// The changed object exists in both service configurations, but its value
|
||||
// is different.
|
||||
ChangeType_MODIFIED ChangeType = 3
|
||||
)
|
||||
|
||||
var ChangeType_name = map[int32]string{
|
||||
0: "CHANGE_TYPE_UNSPECIFIED",
|
||||
1: "ADDED",
|
||||
2: "REMOVED",
|
||||
3: "MODIFIED",
|
||||
}
|
||||
var ChangeType_value = map[string]int32{
|
||||
"CHANGE_TYPE_UNSPECIFIED": 0,
|
||||
"ADDED": 1,
|
||||
"REMOVED": 2,
|
||||
"MODIFIED": 3,
|
||||
}
|
||||
|
||||
func (x ChangeType) String() string {
|
||||
return proto.EnumName(ChangeType_name, int32(x))
|
||||
}
|
||||
func (ChangeType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_config_change_575fa64fb42e14af, []int{0}
|
||||
}
|
||||
|
||||
// Output generated from semantically comparing two versions of a service
|
||||
// configuration.
|
||||
//
|
||||
// Includes detailed information about a field that have changed with
|
||||
// applicable advice about potential consequences for the change, such as
|
||||
// backwards-incompatibility.
|
||||
type ConfigChange struct {
|
||||
// Object hierarchy path to the change, with levels separated by a '.'
|
||||
// character. For repeated fields, an applicable unique identifier field is
|
||||
// used for the index (usually selector, name, or id). For maps, the term
|
||||
// 'key' is used. If the field has no unique identifier, the numeric index
|
||||
// is used.
|
||||
// Examples:
|
||||
// - visibility.rules[selector=="google.LibraryService.CreateBook"].restriction
|
||||
// - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value
|
||||
// - logging.producer_destinations[0]
|
||||
Element string `protobuf:"bytes,1,opt,name=element,proto3" json:"element,omitempty"`
|
||||
// Value of the changed object in the old Service configuration,
|
||||
// in JSON format. This field will not be populated if ChangeType == ADDED.
|
||||
OldValue string `protobuf:"bytes,2,opt,name=old_value,json=oldValue,proto3" json:"old_value,omitempty"`
|
||||
// Value of the changed object in the new Service configuration,
|
||||
// in JSON format. This field will not be populated if ChangeType == REMOVED.
|
||||
NewValue string `protobuf:"bytes,3,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty"`
|
||||
// The type for this change, either ADDED, REMOVED, or MODIFIED.
|
||||
ChangeType ChangeType `protobuf:"varint,4,opt,name=change_type,json=changeType,proto3,enum=google.api.ChangeType" json:"change_type,omitempty"`
|
||||
// Collection of advice provided for this change, useful for determining the
|
||||
// possible impact of this change.
|
||||
Advices []*Advice `protobuf:"bytes,5,rep,name=advices,proto3" json:"advices,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ConfigChange) Reset() { *m = ConfigChange{} }
|
||||
func (m *ConfigChange) String() string { return proto.CompactTextString(m) }
|
||||
func (*ConfigChange) ProtoMessage() {}
|
||||
func (*ConfigChange) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_config_change_575fa64fb42e14af, []int{0}
|
||||
}
|
||||
func (m *ConfigChange) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ConfigChange.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ConfigChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ConfigChange.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ConfigChange) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ConfigChange.Merge(dst, src)
|
||||
}
|
||||
func (m *ConfigChange) XXX_Size() int {
|
||||
return xxx_messageInfo_ConfigChange.Size(m)
|
||||
}
|
||||
func (m *ConfigChange) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ConfigChange.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ConfigChange proto.InternalMessageInfo
|
||||
|
||||
func (m *ConfigChange) GetElement() string {
|
||||
if m != nil {
|
||||
return m.Element
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ConfigChange) GetOldValue() string {
|
||||
if m != nil {
|
||||
return m.OldValue
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ConfigChange) GetNewValue() string {
|
||||
if m != nil {
|
||||
return m.NewValue
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ConfigChange) GetChangeType() ChangeType {
|
||||
if m != nil {
|
||||
return m.ChangeType
|
||||
}
|
||||
return ChangeType_CHANGE_TYPE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *ConfigChange) GetAdvices() []*Advice {
|
||||
if m != nil {
|
||||
return m.Advices
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Generated advice about this change, used for providing more
|
||||
// information about how a change will affect the existing service.
|
||||
type Advice struct {
|
||||
// Useful description for why this advice was applied and what actions should
|
||||
// be taken to mitigate any implied risks.
|
||||
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Advice) Reset() { *m = Advice{} }
|
||||
func (m *Advice) String() string { return proto.CompactTextString(m) }
|
||||
func (*Advice) ProtoMessage() {}
|
||||
func (*Advice) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_config_change_575fa64fb42e14af, []int{1}
|
||||
}
|
||||
func (m *Advice) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Advice.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Advice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Advice.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Advice) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Advice.Merge(dst, src)
|
||||
}
|
||||
func (m *Advice) XXX_Size() int {
|
||||
return xxx_messageInfo_Advice.Size(m)
|
||||
}
|
||||
func (m *Advice) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Advice.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Advice proto.InternalMessageInfo
|
||||
|
||||
func (m *Advice) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*ConfigChange)(nil), "google.api.ConfigChange")
|
||||
proto.RegisterType((*Advice)(nil), "google.api.Advice")
|
||||
proto.RegisterEnum("google.api.ChangeType", ChangeType_name, ChangeType_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/api/config_change.proto", fileDescriptor_config_change_575fa64fb42e14af)
|
||||
}
|
||||
|
||||
var fileDescriptor_config_change_575fa64fb42e14af = []byte{
|
||||
// 338 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x91, 0xcd, 0x4e, 0xc2, 0x40,
|
||||
0x14, 0x85, 0x2d, 0xff, 0xdc, 0x12, 0x82, 0xb3, 0xd0, 0x26, 0x24, 0xa6, 0x61, 0x45, 0x88, 0x69,
|
||||
0x13, 0x5c, 0xb8, 0x70, 0x55, 0xda, 0x8a, 0x2c, 0x80, 0xa6, 0x22, 0x89, 0x6e, 0x9a, 0xb1, 0x1d,
|
||||
0xc7, 0x49, 0xca, 0xcc, 0x08, 0x15, 0xc2, 0xeb, 0xf8, 0x36, 0xbe, 0x95, 0xa1, 0x03, 0xd2, 0xdd,
|
||||
0x9c, 0xf9, 0xce, 0xcd, 0x3d, 0x39,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c, 0xa0, 0x26, 0x54, 0x1d, 0xcf, 0xf3, 0xbd, 0x8e, 0x86, 0x74, 0xa8,
|
||||
0x87, 0xfe, 0x74, 0xbe, 0xf4, 0xbd, 0x4e, 0x09, 0xb5, 0xa0, 0x31, 0x9d, 0x7b, 0xca, 0x55, 0x1e,
|
||||
0x7d, 0x41, 0x3b, 0x16, 0xab, 0x42, 0xbc, 0xd1, 0x65, 0xb1, 0xd7, 0xe0, 0xd0, 0x7c, 0xa0, 0xbd,
|
||||
0xb9, 0x47, 0x03, 0x15, 0x29, 0xe6, 0xd4, 0x12, 0x6b, 0x6a, 0x53, 0xc2, 0xf3, 0xbb, 0xd8, 0x0a,
|
||||
0x61, 0xc9, 0x36, 0x85, 0xd3, 0xa9, 0x36, 0x1e, 0x8a, 0xe2, 0xa7, 0x54, 0x19, 0x3b, 0xc1, 0xe4,
|
||||
0xbd, 0x96, 0x8f, 0xdd, 0xfd, 0x05, 0x00, 0x00, 0xff, 0xff, 0x46, 0x8b, 0xd3, 0xf5, 0xf0, 0x01,
|
||||
0x00, 0x00,
|
||||
}
|
626
vendor/google.golang.org/genproto/googleapis/api/distribution/distribution.pb.go
generated
vendored
626
vendor/google.golang.org/genproto/googleapis/api/distribution/distribution.pb.go
generated
vendored
@ -1,626 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/distribution.proto
|
||||
|
||||
package distribution // import "google.golang.org/genproto/googleapis/api/distribution"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Distribution contains summary statistics for a population of values and,
|
||||
// optionally, a histogram representing the distribution of those values across
|
||||
// a specified set of histogram buckets.
|
||||
//
|
||||
// The summary statistics are the count, mean, sum of the squared deviation from
|
||||
// the mean, the minimum, and the maximum of the set of population of values.
|
||||
//
|
||||
// The histogram is based on a sequence of buckets and gives a count of values
|
||||
// that fall into each bucket. The boundaries of the buckets are given either
|
||||
// explicitly or by specifying parameters for a method of computing them
|
||||
// (buckets of fixed width or buckets of exponentially increasing width).
|
||||
//
|
||||
// Although it is not forbidden, it is generally a bad idea to include
|
||||
// non-finite values (infinities or NaNs) in the population of values, as this
|
||||
// will render the `mean` and `sum_of_squared_deviation` fields meaningless.
|
||||
type Distribution struct {
|
||||
// The number of values in the population. Must be non-negative.
|
||||
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
|
||||
// The arithmetic mean of the values in the population. If `count` is zero
|
||||
// then this field must be zero.
|
||||
Mean float64 `protobuf:"fixed64,2,opt,name=mean,proto3" json:"mean,omitempty"`
|
||||
// The sum of squared deviations from the mean of the values in the
|
||||
// population. For values x_i this is:
|
||||
//
|
||||
// Sum[i=1..n]((x_i - mean)^2)
|
||||
//
|
||||
// Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition
|
||||
// describes Welford's method for accumulating this sum in one pass.
|
||||
//
|
||||
// If `count` is zero then this field must be zero.
|
||||
SumOfSquaredDeviation float64 `protobuf:"fixed64,3,opt,name=sum_of_squared_deviation,json=sumOfSquaredDeviation,proto3" json:"sum_of_squared_deviation,omitempty"`
|
||||
// If specified, contains the range of the population values. The field
|
||||
// must not be present if the `count` is zero.
|
||||
Range *Distribution_Range `protobuf:"bytes,4,opt,name=range,proto3" json:"range,omitempty"`
|
||||
// Defines the histogram bucket boundaries.
|
||||
BucketOptions *Distribution_BucketOptions `protobuf:"bytes,6,opt,name=bucket_options,json=bucketOptions,proto3" json:"bucket_options,omitempty"`
|
||||
// If `bucket_options` is given, then the sum of the values in `bucket_counts`
|
||||
// must equal the value in `count`. If `bucket_options` is not given, no
|
||||
// `bucket_counts` fields may be given.
|
||||
//
|
||||
// Bucket counts are given in order under the numbering scheme described
|
||||
// above (the underflow bucket has number 0; the finite buckets, if any,
|
||||
// have numbers 1 through N-2; the overflow bucket has number N-1).
|
||||
//
|
||||
// The size of `bucket_counts` must be no greater than N as defined in
|
||||
// `bucket_options`.
|
||||
//
|
||||
// Any suffix of trailing zero bucket_count fields may be omitted.
|
||||
BucketCounts []int64 `protobuf:"varint,7,rep,packed,name=bucket_counts,json=bucketCounts,proto3" json:"bucket_counts,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Distribution) Reset() { *m = Distribution{} }
|
||||
func (m *Distribution) String() string { return proto.CompactTextString(m) }
|
||||
func (*Distribution) ProtoMessage() {}
|
||||
func (*Distribution) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_distribution_4362d2d5f4dd1b54, []int{0}
|
||||
}
|
||||
func (m *Distribution) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Distribution.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Distribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Distribution.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Distribution) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Distribution.Merge(dst, src)
|
||||
}
|
||||
func (m *Distribution) XXX_Size() int {
|
||||
return xxx_messageInfo_Distribution.Size(m)
|
||||
}
|
||||
func (m *Distribution) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Distribution.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Distribution proto.InternalMessageInfo
|
||||
|
||||
func (m *Distribution) GetCount() int64 {
|
||||
if m != nil {
|
||||
return m.Count
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Distribution) GetMean() float64 {
|
||||
if m != nil {
|
||||
return m.Mean
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Distribution) GetSumOfSquaredDeviation() float64 {
|
||||
if m != nil {
|
||||
return m.SumOfSquaredDeviation
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Distribution) GetRange() *Distribution_Range {
|
||||
if m != nil {
|
||||
return m.Range
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Distribution) GetBucketOptions() *Distribution_BucketOptions {
|
||||
if m != nil {
|
||||
return m.BucketOptions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Distribution) GetBucketCounts() []int64 {
|
||||
if m != nil {
|
||||
return m.BucketCounts
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// The range of the population values.
|
||||
type Distribution_Range struct {
|
||||
// The minimum of the population values.
|
||||
Min float64 `protobuf:"fixed64,1,opt,name=min,proto3" json:"min,omitempty"`
|
||||
// The maximum of the population values.
|
||||
Max float64 `protobuf:"fixed64,2,opt,name=max,proto3" json:"max,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Distribution_Range) Reset() { *m = Distribution_Range{} }
|
||||
func (m *Distribution_Range) String() string { return proto.CompactTextString(m) }
|
||||
func (*Distribution_Range) ProtoMessage() {}
|
||||
func (*Distribution_Range) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_distribution_4362d2d5f4dd1b54, []int{0, 0}
|
||||
}
|
||||
func (m *Distribution_Range) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Distribution_Range.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Distribution_Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Distribution_Range.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Distribution_Range) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Distribution_Range.Merge(dst, src)
|
||||
}
|
||||
func (m *Distribution_Range) XXX_Size() int {
|
||||
return xxx_messageInfo_Distribution_Range.Size(m)
|
||||
}
|
||||
func (m *Distribution_Range) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Distribution_Range.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Distribution_Range proto.InternalMessageInfo
|
||||
|
||||
func (m *Distribution_Range) GetMin() float64 {
|
||||
if m != nil {
|
||||
return m.Min
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Distribution_Range) GetMax() float64 {
|
||||
if m != nil {
|
||||
return m.Max
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// A Distribution may optionally contain a histogram of the values in the
|
||||
// population. The histogram is given in `bucket_counts` as counts of values
|
||||
// that fall into one of a sequence of non-overlapping buckets. The sequence
|
||||
// of buckets is described by `bucket_options`.
|
||||
//
|
||||
// A bucket specifies an inclusive lower bound and exclusive upper bound for
|
||||
// the values that are counted for that bucket. The upper bound of a bucket
|
||||
// is strictly greater than the lower bound.
|
||||
//
|
||||
// The sequence of N buckets for a Distribution consists of an underflow
|
||||
// bucket (number 0), zero or more finite buckets (number 1 through N - 2) and
|
||||
// an overflow bucket (number N - 1). The buckets are contiguous: the lower
|
||||
// bound of bucket i (i > 0) is the same as the upper bound of bucket i - 1.
|
||||
// The buckets span the whole range of finite values: lower bound of the
|
||||
// underflow bucket is -infinity and the upper bound of the overflow bucket is
|
||||
// +infinity. The finite buckets are so-called because both bounds are
|
||||
// finite.
|
||||
//
|
||||
// `BucketOptions` describes bucket boundaries in one of three ways. Two
|
||||
// describe the boundaries by giving parameters for a formula to generate
|
||||
// boundaries and one gives the bucket boundaries explicitly.
|
||||
//
|
||||
// If `bucket_boundaries` is not given, then no `bucket_counts` may be given.
|
||||
type Distribution_BucketOptions struct {
|
||||
// Exactly one of these three fields must be set.
|
||||
//
|
||||
// Types that are valid to be assigned to Options:
|
||||
// *Distribution_BucketOptions_LinearBuckets
|
||||
// *Distribution_BucketOptions_ExponentialBuckets
|
||||
// *Distribution_BucketOptions_ExplicitBuckets
|
||||
Options isDistribution_BucketOptions_Options `protobuf_oneof:"options"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Distribution_BucketOptions) Reset() { *m = Distribution_BucketOptions{} }
|
||||
func (m *Distribution_BucketOptions) String() string { return proto.CompactTextString(m) }
|
||||
func (*Distribution_BucketOptions) ProtoMessage() {}
|
||||
func (*Distribution_BucketOptions) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_distribution_4362d2d5f4dd1b54, []int{0, 1}
|
||||
}
|
||||
func (m *Distribution_BucketOptions) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Distribution_BucketOptions.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Distribution_BucketOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Distribution_BucketOptions.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Distribution_BucketOptions) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Distribution_BucketOptions.Merge(dst, src)
|
||||
}
|
||||
func (m *Distribution_BucketOptions) XXX_Size() int {
|
||||
return xxx_messageInfo_Distribution_BucketOptions.Size(m)
|
||||
}
|
||||
func (m *Distribution_BucketOptions) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Distribution_BucketOptions.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Distribution_BucketOptions proto.InternalMessageInfo
|
||||
|
||||
type isDistribution_BucketOptions_Options interface {
|
||||
isDistribution_BucketOptions_Options()
|
||||
}
|
||||
|
||||
type Distribution_BucketOptions_LinearBuckets struct {
|
||||
LinearBuckets *Distribution_BucketOptions_Linear `protobuf:"bytes,1,opt,name=linear_buckets,json=linearBuckets,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Distribution_BucketOptions_ExponentialBuckets struct {
|
||||
ExponentialBuckets *Distribution_BucketOptions_Exponential `protobuf:"bytes,2,opt,name=exponential_buckets,json=exponentialBuckets,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Distribution_BucketOptions_ExplicitBuckets struct {
|
||||
ExplicitBuckets *Distribution_BucketOptions_Explicit `protobuf:"bytes,3,opt,name=explicit_buckets,json=explicitBuckets,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*Distribution_BucketOptions_LinearBuckets) isDistribution_BucketOptions_Options() {}
|
||||
|
||||
func (*Distribution_BucketOptions_ExponentialBuckets) isDistribution_BucketOptions_Options() {}
|
||||
|
||||
func (*Distribution_BucketOptions_ExplicitBuckets) isDistribution_BucketOptions_Options() {}
|
||||
|
||||
func (m *Distribution_BucketOptions) GetOptions() isDistribution_BucketOptions_Options {
|
||||
if m != nil {
|
||||
return m.Options
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Distribution_BucketOptions) GetLinearBuckets() *Distribution_BucketOptions_Linear {
|
||||
if x, ok := m.GetOptions().(*Distribution_BucketOptions_LinearBuckets); ok {
|
||||
return x.LinearBuckets
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Distribution_BucketOptions) GetExponentialBuckets() *Distribution_BucketOptions_Exponential {
|
||||
if x, ok := m.GetOptions().(*Distribution_BucketOptions_ExponentialBuckets); ok {
|
||||
return x.ExponentialBuckets
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Distribution_BucketOptions) GetExplicitBuckets() *Distribution_BucketOptions_Explicit {
|
||||
if x, ok := m.GetOptions().(*Distribution_BucketOptions_ExplicitBuckets); ok {
|
||||
return x.ExplicitBuckets
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*Distribution_BucketOptions) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _Distribution_BucketOptions_OneofMarshaler, _Distribution_BucketOptions_OneofUnmarshaler, _Distribution_BucketOptions_OneofSizer, []interface{}{
|
||||
(*Distribution_BucketOptions_LinearBuckets)(nil),
|
||||
(*Distribution_BucketOptions_ExponentialBuckets)(nil),
|
||||
(*Distribution_BucketOptions_ExplicitBuckets)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _Distribution_BucketOptions_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*Distribution_BucketOptions)
|
||||
// options
|
||||
switch x := m.Options.(type) {
|
||||
case *Distribution_BucketOptions_LinearBuckets:
|
||||
b.EncodeVarint(1<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.LinearBuckets); err != nil {
|
||||
return err
|
||||
}
|
||||
case *Distribution_BucketOptions_ExponentialBuckets:
|
||||
b.EncodeVarint(2<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.ExponentialBuckets); err != nil {
|
||||
return err
|
||||
}
|
||||
case *Distribution_BucketOptions_ExplicitBuckets:
|
||||
b.EncodeVarint(3<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.ExplicitBuckets); err != nil {
|
||||
return err
|
||||
}
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("Distribution_BucketOptions.Options has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _Distribution_BucketOptions_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*Distribution_BucketOptions)
|
||||
switch tag {
|
||||
case 1: // options.linear_buckets
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(Distribution_BucketOptions_Linear)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Options = &Distribution_BucketOptions_LinearBuckets{msg}
|
||||
return true, err
|
||||
case 2: // options.exponential_buckets
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(Distribution_BucketOptions_Exponential)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Options = &Distribution_BucketOptions_ExponentialBuckets{msg}
|
||||
return true, err
|
||||
case 3: // options.explicit_buckets
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(Distribution_BucketOptions_Explicit)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Options = &Distribution_BucketOptions_ExplicitBuckets{msg}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _Distribution_BucketOptions_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*Distribution_BucketOptions)
|
||||
// options
|
||||
switch x := m.Options.(type) {
|
||||
case *Distribution_BucketOptions_LinearBuckets:
|
||||
s := proto.Size(x.LinearBuckets)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Distribution_BucketOptions_ExponentialBuckets:
|
||||
s := proto.Size(x.ExponentialBuckets)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Distribution_BucketOptions_ExplicitBuckets:
|
||||
s := proto.Size(x.ExplicitBuckets)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// Specify a sequence of buckets that all have the same width (except
|
||||
// overflow and underflow). Each bucket represents a constant absolute
|
||||
// uncertainty on the specific value in the bucket.
|
||||
//
|
||||
// Defines `num_finite_buckets + 2` (= N) buckets with these boundaries for
|
||||
// bucket `i`:
|
||||
//
|
||||
// Upper bound (0 <= i < N-1): offset + (width * i).
|
||||
// Lower bound (1 <= i < N): offset + (width * (i - 1)).
|
||||
type Distribution_BucketOptions_Linear struct {
|
||||
// Must be greater than 0.
|
||||
NumFiniteBuckets int32 `protobuf:"varint,1,opt,name=num_finite_buckets,json=numFiniteBuckets,proto3" json:"num_finite_buckets,omitempty"`
|
||||
// Must be greater than 0.
|
||||
Width float64 `protobuf:"fixed64,2,opt,name=width,proto3" json:"width,omitempty"`
|
||||
// Lower bound of the first bucket.
|
||||
Offset float64 `protobuf:"fixed64,3,opt,name=offset,proto3" json:"offset,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Distribution_BucketOptions_Linear) Reset() { *m = Distribution_BucketOptions_Linear{} }
|
||||
func (m *Distribution_BucketOptions_Linear) String() string { return proto.CompactTextString(m) }
|
||||
func (*Distribution_BucketOptions_Linear) ProtoMessage() {}
|
||||
func (*Distribution_BucketOptions_Linear) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_distribution_4362d2d5f4dd1b54, []int{0, 1, 0}
|
||||
}
|
||||
func (m *Distribution_BucketOptions_Linear) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Distribution_BucketOptions_Linear.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Distribution_BucketOptions_Linear) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Distribution_BucketOptions_Linear.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Distribution_BucketOptions_Linear) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Distribution_BucketOptions_Linear.Merge(dst, src)
|
||||
}
|
||||
func (m *Distribution_BucketOptions_Linear) XXX_Size() int {
|
||||
return xxx_messageInfo_Distribution_BucketOptions_Linear.Size(m)
|
||||
}
|
||||
func (m *Distribution_BucketOptions_Linear) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Distribution_BucketOptions_Linear.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Distribution_BucketOptions_Linear proto.InternalMessageInfo
|
||||
|
||||
func (m *Distribution_BucketOptions_Linear) GetNumFiniteBuckets() int32 {
|
||||
if m != nil {
|
||||
return m.NumFiniteBuckets
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Distribution_BucketOptions_Linear) GetWidth() float64 {
|
||||
if m != nil {
|
||||
return m.Width
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Distribution_BucketOptions_Linear) GetOffset() float64 {
|
||||
if m != nil {
|
||||
return m.Offset
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// Specify a sequence of buckets that have a width that is proportional to
|
||||
// the value of the lower bound. Each bucket represents a constant relative
|
||||
// uncertainty on a specific value in the bucket.
|
||||
//
|
||||
// Defines `num_finite_buckets + 2` (= N) buckets with these boundaries for
|
||||
// bucket i:
|
||||
//
|
||||
// Upper bound (0 <= i < N-1): scale * (growth_factor ^ i).
|
||||
// Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
|
||||
type Distribution_BucketOptions_Exponential struct {
|
||||
// Must be greater than 0.
|
||||
NumFiniteBuckets int32 `protobuf:"varint,1,opt,name=num_finite_buckets,json=numFiniteBuckets,proto3" json:"num_finite_buckets,omitempty"`
|
||||
// Must be greater than 1.
|
||||
GrowthFactor float64 `protobuf:"fixed64,2,opt,name=growth_factor,json=growthFactor,proto3" json:"growth_factor,omitempty"`
|
||||
// Must be greater than 0.
|
||||
Scale float64 `protobuf:"fixed64,3,opt,name=scale,proto3" json:"scale,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Distribution_BucketOptions_Exponential) Reset() {
|
||||
*m = Distribution_BucketOptions_Exponential{}
|
||||
}
|
||||
func (m *Distribution_BucketOptions_Exponential) String() string { return proto.CompactTextString(m) }
|
||||
func (*Distribution_BucketOptions_Exponential) ProtoMessage() {}
|
||||
func (*Distribution_BucketOptions_Exponential) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_distribution_4362d2d5f4dd1b54, []int{0, 1, 1}
|
||||
}
|
||||
func (m *Distribution_BucketOptions_Exponential) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Distribution_BucketOptions_Exponential.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Distribution_BucketOptions_Exponential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Distribution_BucketOptions_Exponential.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Distribution_BucketOptions_Exponential) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Distribution_BucketOptions_Exponential.Merge(dst, src)
|
||||
}
|
||||
func (m *Distribution_BucketOptions_Exponential) XXX_Size() int {
|
||||
return xxx_messageInfo_Distribution_BucketOptions_Exponential.Size(m)
|
||||
}
|
||||
func (m *Distribution_BucketOptions_Exponential) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Distribution_BucketOptions_Exponential.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Distribution_BucketOptions_Exponential proto.InternalMessageInfo
|
||||
|
||||
func (m *Distribution_BucketOptions_Exponential) GetNumFiniteBuckets() int32 {
|
||||
if m != nil {
|
||||
return m.NumFiniteBuckets
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Distribution_BucketOptions_Exponential) GetGrowthFactor() float64 {
|
||||
if m != nil {
|
||||
return m.GrowthFactor
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Distribution_BucketOptions_Exponential) GetScale() float64 {
|
||||
if m != nil {
|
||||
return m.Scale
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// A set of buckets with arbitrary widths.
|
||||
//
|
||||
// Defines `size(bounds) + 1` (= N) buckets with these boundaries for
|
||||
// bucket i:
|
||||
//
|
||||
// Upper bound (0 <= i < N-1): bounds[i]
|
||||
// Lower bound (1 <= i < N); bounds[i - 1]
|
||||
//
|
||||
// There must be at least one element in `bounds`. If `bounds` has only one
|
||||
// element, there are no finite buckets, and that single element is the
|
||||
// common boundary of the overflow and underflow buckets.
|
||||
type Distribution_BucketOptions_Explicit struct {
|
||||
// The values must be monotonically increasing.
|
||||
Bounds []float64 `protobuf:"fixed64,1,rep,packed,name=bounds,proto3" json:"bounds,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Distribution_BucketOptions_Explicit) Reset() { *m = Distribution_BucketOptions_Explicit{} }
|
||||
func (m *Distribution_BucketOptions_Explicit) String() string { return proto.CompactTextString(m) }
|
||||
func (*Distribution_BucketOptions_Explicit) ProtoMessage() {}
|
||||
func (*Distribution_BucketOptions_Explicit) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_distribution_4362d2d5f4dd1b54, []int{0, 1, 2}
|
||||
}
|
||||
func (m *Distribution_BucketOptions_Explicit) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Distribution_BucketOptions_Explicit.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Distribution_BucketOptions_Explicit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Distribution_BucketOptions_Explicit.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Distribution_BucketOptions_Explicit) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Distribution_BucketOptions_Explicit.Merge(dst, src)
|
||||
}
|
||||
func (m *Distribution_BucketOptions_Explicit) XXX_Size() int {
|
||||
return xxx_messageInfo_Distribution_BucketOptions_Explicit.Size(m)
|
||||
}
|
||||
func (m *Distribution_BucketOptions_Explicit) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Distribution_BucketOptions_Explicit.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Distribution_BucketOptions_Explicit proto.InternalMessageInfo
|
||||
|
||||
func (m *Distribution_BucketOptions_Explicit) GetBounds() []float64 {
|
||||
if m != nil {
|
||||
return m.Bounds
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Distribution)(nil), "google.api.Distribution")
|
||||
proto.RegisterType((*Distribution_Range)(nil), "google.api.Distribution.Range")
|
||||
proto.RegisterType((*Distribution_BucketOptions)(nil), "google.api.Distribution.BucketOptions")
|
||||
proto.RegisterType((*Distribution_BucketOptions_Linear)(nil), "google.api.Distribution.BucketOptions.Linear")
|
||||
proto.RegisterType((*Distribution_BucketOptions_Exponential)(nil), "google.api.Distribution.BucketOptions.Exponential")
|
||||
proto.RegisterType((*Distribution_BucketOptions_Explicit)(nil), "google.api.Distribution.BucketOptions.Explicit")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/api/distribution.proto", fileDescriptor_distribution_4362d2d5f4dd1b54)
|
||||
}
|
||||
|
||||
var fileDescriptor_distribution_4362d2d5f4dd1b54 = []byte{
|
||||
// 522 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x5d, 0x6b, 0xd4, 0x40,
|
||||
0x14, 0xdd, 0x34, 0xfb, 0xa1, 0x77, 0x3f, 0x5c, 0xc7, 0x2a, 0x21, 0xa8, 0x2c, 0x2d, 0xc8, 0x82,
|
||||
0x9a, 0x85, 0x55, 0xf0, 0xc1, 0xb7, 0x6d, 0x2d, 0xfb, 0xa0, 0xb4, 0x8c, 0xe0, 0x83, 0x08, 0x61,
|
||||
0x36, 0x99, 0xa4, 0xa3, 0xc9, 0x4c, 0xcc, 0x4c, 0xda, 0xfd, 0x01, 0xfe, 0x29, 0xff, 0x9d, 0xe4,
|
||||
0x4e, 0xb6, 0x4d, 0x11, 0x61, 0x7d, 0x9b, 0x73, 0xef, 0x99, 0x73, 0xce, 0xbd, 0x64, 0x02, 0xcf,
|
||||
0x52, 0xa5, 0xd2, 0x8c, 0x2f, 0x58, 0x21, 0x16, 0xb1, 0xd0, 0xa6, 0x14, 0x9b, 0xca, 0x08, 0x25,
|
||||
0x83, 0xa2, 0x54, 0x46, 0x11, 0xb0, 0xed, 0x80, 0x15, 0xc2, 0x7f, 0xda, 0xa2, 0x32, 0x29, 0x95,
|
||||
0x61, 0x35, 0x51, 0x5b, 0xe6, 0xd1, 0xaf, 0x01, 0x8c, 0x4e, 0x5b, 0x02, 0xe4, 0x10, 0x7a, 0x91,
|
||||
0xaa, 0xa4, 0xf1, 0x9c, 0x99, 0x33, 0x77, 0xa9, 0x05, 0x84, 0x40, 0x37, 0xe7, 0x4c, 0x7a, 0x07,
|
||||
0x33, 0x67, 0xee, 0x50, 0x3c, 0x93, 0x77, 0xe0, 0xe9, 0x2a, 0x0f, 0x55, 0x12, 0xea, 0x9f, 0x15,
|
||||
0x2b, 0x79, 0x1c, 0xc6, 0xfc, 0x4a, 0xa0, 0xba, 0xe7, 0x22, 0xef, 0xb1, 0xae, 0xf2, 0xf3, 0xe4,
|
||||
0xb3, 0xed, 0x9e, 0xee, 0x9a, 0xe4, 0x2d, 0xf4, 0x4a, 0x26, 0x53, 0xee, 0x75, 0x67, 0xce, 0x7c,
|
||||
0xb8, 0x7c, 0x1e, 0xdc, 0xa6, 0x0d, 0xda, 0x59, 0x02, 0x5a, 0xb3, 0xa8, 0x25, 0x93, 0x4f, 0x30,
|
||||
0x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, 0x0e, 0xa1,
|
||||
0x77, 0x2d, 0x62, 0x73, 0xd9, 0xac, 0xde, 0x02, 0xf2, 0x04, 0xfa, 0x2a, 0x49, 0x34, 0x37, 0xcd,
|
||||
0xa7, 0xd7, 0x20, 0xff, 0x0a, 0x86, 0xad, 0x41, 0xff, 0xd3, 0xea, 0x18, 0xc6, 0x69, 0xa9, 0xae,
|
||||
0xcd, 0x65, 0x98, 0xb0, 0xc8, 0xa8, 0xb2, 0xb1, 0x1c, 0xd9, 0xe2, 0x19, 0xd6, 0xea, 0x3c, 0x3a,
|
||||
0x62, 0x19, 0x6f, 0x8c, 0x2d, 0xf0, 0x8f, 0xe0, 0xde, 0x6e, 0xf8, 0x3a, 0xdb, 0x46, 0x55, 0x32,
|
||||
0xae, 0x8d, 0xdc, 0x3a, 0x9b, 0x45, 0xab, 0xfb, 0x30, 0x68, 0x3e, 0xe5, 0xd5, 0x77, 0x98, 0x44,
|
||||
0x2a, 0x6f, 0x6d, 0x75, 0xf5, 0xb0, 0xbd, 0xd6, 0x8b, 0xfa, 0xad, 0x5e, 0x38, 0x5f, 0x4f, 0x1a,
|
||||
0x42, 0xaa, 0x32, 0x26, 0xd3, 0x40, 0x95, 0xe9, 0x22, 0xe5, 0x12, 0x5f, 0xf2, 0xc2, 0xb6, 0x58,
|
||||
0x21, 0xf4, 0x5f, 0x7f, 0x85, 0xf7, 0x6d, 0xb0, 0xe9, 0x23, 0xff, 0xcd, 0x9f, 0x00, 0x00, 0x00,
|
||||
0xff, 0xff, 0x62, 0xb4, 0xef, 0x6b, 0x44, 0x04, 0x00, 0x00,
|
||||
}
|
86
vendor/google.golang.org/genproto/googleapis/api/experimental.pb.go
generated
vendored
86
vendor/google.golang.org/genproto/googleapis/api/experimental.pb.go
generated
vendored
@ -1,86 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/experimental/experimental.proto
|
||||
|
||||
package api // import "google.golang.org/genproto/googleapis/api"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Experimental service configuration. These configuration options can
|
||||
// only be used by whitelisted users.
|
||||
type Experimental struct {
|
||||
// Authorization configuration.
|
||||
Authorization *AuthorizationConfig `protobuf:"bytes,8,opt,name=authorization,proto3" json:"authorization,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Experimental) Reset() { *m = Experimental{} }
|
||||
func (m *Experimental) String() string { return proto.CompactTextString(m) }
|
||||
func (*Experimental) ProtoMessage() {}
|
||||
func (*Experimental) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_experimental_8ffd851a3879187f, []int{0}
|
||||
}
|
||||
func (m *Experimental) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Experimental.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Experimental) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Experimental.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Experimental) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Experimental.Merge(dst, src)
|
||||
}
|
||||
func (m *Experimental) XXX_Size() int {
|
||||
return xxx_messageInfo_Experimental.Size(m)
|
||||
}
|
||||
func (m *Experimental) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Experimental.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Experimental proto.InternalMessageInfo
|
||||
|
||||
func (m *Experimental) GetAuthorization() *AuthorizationConfig {
|
||||
if m != nil {
|
||||
return m.Authorization
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Experimental)(nil), "google.api.Experimental")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/api/experimental/experimental.proto", fileDescriptor_experimental_8ffd851a3879187f)
|
||||
}
|
||||
|
||||
var fileDescriptor_experimental_8ffd851a3879187f = []byte{
|
||||
// 204 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4a, 0xcf, 0xcf, 0x4f,
|
||||
0xcf, 0x49, 0xd5, 0x4f, 0x2c, 0xc8, 0xd4, 0x4f, 0xad, 0x28, 0x48, 0x2d, 0xca, 0xcc, 0x4d, 0xcd,
|
||||
0x2b, 0x49, 0xcc, 0x41, 0xe1, 0xe8, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x71, 0x41, 0xd4, 0xea,
|
||||
0x25, 0x16, 0x64, 0x4a, 0xc9, 0x20, 0xe9, 0x4b, 0xcc, 0xcb, 0xcb, 0x2f, 0x49, 0x2c, 0xc9, 0xcc,
|
||||
0xcf, 0x2b, 0x86, 0xa8, 0x94, 0x32, 0xc2, 0x65, 0x6a, 0x62, 0x69, 0x49, 0x46, 0x7e, 0x51, 0x66,
|
||||
0x15, 0x58, 0x75, 0x7c, 0x72, 0x7e, 0x5e, 0x5a, 0x66, 0x3a, 0x44, 0x8f, 0x52, 0x28, 0x17, 0x8f,
|
||||
0x2b, 0x92, 0x52, 0x21, 0x57, 0x2e, 0x5e, 0x14, 0xd5, 0x12, 0x1c, 0x0a, 0x8c, 0x1a, 0xdc, 0x46,
|
||||
0xf2, 0x7a, 0x08, 0x57, 0xe8, 0x39, 0x22, 0x2b, 0x70, 0x06, 0x9b, 0x16, 0x84, 0xaa, 0xcb, 0x29,
|
||||
0x9a, 0x8b, 0x2f, 0x39, 0x3f, 0x17, 0x49, 0x93, 0x93, 0x20, 0xb2, 0x35, 0x01, 0x20, 0xbb, 0x03,
|
||||
0x18, 0xa3, 0x74, 0xa1, 0x0a, 0xd2, 0xf3, 0x73, 0x12, 0xf3, 0xd2, 0xf5, 0xf2, 0x8b, 0xd2, 0xf5,
|
||||
0xd3, 0x53, 0xf3, 0xc0, 0x2e, 0xd3, 0x87, 0x48, 0x25, 0x16, 0x64, 0x16, 0x83, 0x3c, 0x64, 0x9d,
|
||||
0x58, 0x90, 0xb9, 0x88, 0x89, 0xc5, 0xdd, 0x31, 0xc0, 0x33, 0x89, 0x0d, 0xac, 0xc0, 0x18, 0x10,
|
||||
0x00, 0x00, 0xff, 0xff, 0xa0, 0x95, 0x20, 0xe5, 0x46, 0x01, 0x00, 0x00,
|
||||
}
|
141
vendor/google.golang.org/genproto/googleapis/api/httpbody/httpbody.pb.go
generated
vendored
141
vendor/google.golang.org/genproto/googleapis/api/httpbody/httpbody.pb.go
generated
vendored
@ -1,141 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/httpbody.proto
|
||||
|
||||
package httpbody // import "google.golang.org/genproto/googleapis/api/httpbody"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import any "github.com/golang/protobuf/ptypes/any"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Message that represents an arbitrary HTTP body. It should only be used for
|
||||
// payload formats that can't be represented as JSON, such as raw binary or
|
||||
// an HTML page.
|
||||
//
|
||||
//
|
||||
// This message can be used both in streaming and non-streaming API methods in
|
||||
// the request as well as the response.
|
||||
//
|
||||
// It can be used as a top-level request field, which is convenient if one
|
||||
// wants to extract parameters from either the URL or HTTP template into the
|
||||
// request fields and also want access to the raw HTTP body.
|
||||
//
|
||||
// Example:
|
||||
//
|
||||
// message GetResourceRequest {
|
||||
// // A unique request id.
|
||||
// string request_id = 1;
|
||||
//
|
||||
// // The raw HTTP body is bound to this field.
|
||||
// google.api.HttpBody http_body = 2;
|
||||
// }
|
||||
//
|
||||
// service ResourceService {
|
||||
// rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
|
||||
// rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty);
|
||||
// }
|
||||
//
|
||||
// Example with streaming methods:
|
||||
//
|
||||
// service CaldavService {
|
||||
// rpc GetCalendar(stream google.api.HttpBody)
|
||||
// returns (stream google.api.HttpBody);
|
||||
// rpc UpdateCalendar(stream google.api.HttpBody)
|
||||
// returns (stream google.api.HttpBody);
|
||||
// }
|
||||
//
|
||||
// Use of this type only changes how the request and response bodies are
|
||||
// handled, all other features will continue to work unchanged.
|
||||
type HttpBody struct {
|
||||
// The HTTP Content-Type string representing the content type of the body.
|
||||
ContentType string `protobuf:"bytes,1,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
|
||||
// HTTP body binary data.
|
||||
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
||||
// Application specific response metadata. Must be set in the first response
|
||||
// for streaming APIs.
|
||||
Extensions []*any.Any `protobuf:"bytes,3,rep,name=extensions,proto3" json:"extensions,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *HttpBody) Reset() { *m = HttpBody{} }
|
||||
func (m *HttpBody) String() string { return proto.CompactTextString(m) }
|
||||
func (*HttpBody) ProtoMessage() {}
|
||||
func (*HttpBody) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_httpbody_d3ca4c70025a4501, []int{0}
|
||||
}
|
||||
func (m *HttpBody) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_HttpBody.Unmarshal(m, b)
|
||||
}
|
||||
func (m *HttpBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_HttpBody.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *HttpBody) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_HttpBody.Merge(dst, src)
|
||||
}
|
||||
func (m *HttpBody) XXX_Size() int {
|
||||
return xxx_messageInfo_HttpBody.Size(m)
|
||||
}
|
||||
func (m *HttpBody) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_HttpBody.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_HttpBody proto.InternalMessageInfo
|
||||
|
||||
func (m *HttpBody) GetContentType() string {
|
||||
if m != nil {
|
||||
return m.ContentType
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *HttpBody) GetData() []byte {
|
||||
if m != nil {
|
||||
return m.Data
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *HttpBody) GetExtensions() []*any.Any {
|
||||
if m != nil {
|
||||
return m.Extensions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*HttpBody)(nil), "google.api.HttpBody")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/api/httpbody.proto", fileDescriptor_httpbody_d3ca4c70025a4501) }
|
||||
|
||||
var fileDescriptor_httpbody_d3ca4c70025a4501 = []byte{
|
||||
// 226 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x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xbc, 0xf3, 0x14, 0x2c, 0xef, 0x83, 0x0b, 0x48, 0xfd, 0x8b,
|
||||
0x6e, 0x40, 0x5e, 0xda, 0xee, 0xe0, 0xf3, 0xeb, 0x29, 0x7c, 0xcf, 0x16, 0xf7, 0x9b, 0xf2, 0xb1,
|
||||
0x3e, 0xea, 0xf5, 0xdb, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3c, 0x11, 0x70, 0x02, 0x2a, 0x01,
|
||||
0x00, 0x00,
|
||||
}
|
134
vendor/google.golang.org/genproto/googleapis/api/label/label.pb.go
generated
vendored
134
vendor/google.golang.org/genproto/googleapis/api/label/label.pb.go
generated
vendored
@ -1,134 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/label.proto
|
||||
|
||||
package label // import "google.golang.org/genproto/googleapis/api/label"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Value types that can be used as label values.
|
||||
type LabelDescriptor_ValueType int32
|
||||
|
||||
const (
|
||||
// A variable-length string. This is the default.
|
||||
LabelDescriptor_STRING LabelDescriptor_ValueType = 0
|
||||
// Boolean; true or false.
|
||||
LabelDescriptor_BOOL LabelDescriptor_ValueType = 1
|
||||
// A 64-bit signed integer.
|
||||
LabelDescriptor_INT64 LabelDescriptor_ValueType = 2
|
||||
)
|
||||
|
||||
var LabelDescriptor_ValueType_name = map[int32]string{
|
||||
0: "STRING",
|
||||
1: "BOOL",
|
||||
2: "INT64",
|
||||
}
|
||||
var LabelDescriptor_ValueType_value = map[string]int32{
|
||||
"STRING": 0,
|
||||
"BOOL": 1,
|
||||
"INT64": 2,
|
||||
}
|
||||
|
||||
func (x LabelDescriptor_ValueType) String() string {
|
||||
return proto.EnumName(LabelDescriptor_ValueType_name, int32(x))
|
||||
}
|
||||
func (LabelDescriptor_ValueType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_label_7ab1ab74ef036f1c, []int{0, 0}
|
||||
}
|
||||
|
||||
// A description of a label.
|
||||
type LabelDescriptor struct {
|
||||
// The label key.
|
||||
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
||||
// The type of data that can be assigned to the label.
|
||||
ValueType LabelDescriptor_ValueType `protobuf:"varint,2,opt,name=value_type,json=valueType,proto3,enum=google.api.LabelDescriptor_ValueType" json:"value_type,omitempty"`
|
||||
// A human-readable description for the label.
|
||||
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *LabelDescriptor) Reset() { *m = LabelDescriptor{} }
|
||||
func (m *LabelDescriptor) String() string { return proto.CompactTextString(m) }
|
||||
func (*LabelDescriptor) ProtoMessage() {}
|
||||
func (*LabelDescriptor) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_label_7ab1ab74ef036f1c, []int{0}
|
||||
}
|
||||
func (m *LabelDescriptor) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_LabelDescriptor.Unmarshal(m, b)
|
||||
}
|
||||
func (m *LabelDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_LabelDescriptor.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *LabelDescriptor) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_LabelDescriptor.Merge(dst, src)
|
||||
}
|
||||
func (m *LabelDescriptor) XXX_Size() int {
|
||||
return xxx_messageInfo_LabelDescriptor.Size(m)
|
||||
}
|
||||
func (m *LabelDescriptor) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_LabelDescriptor.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_LabelDescriptor proto.InternalMessageInfo
|
||||
|
||||
func (m *LabelDescriptor) GetKey() string {
|
||||
if m != nil {
|
||||
return m.Key
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *LabelDescriptor) GetValueType() LabelDescriptor_ValueType {
|
||||
if m != nil {
|
||||
return m.ValueType
|
||||
}
|
||||
return LabelDescriptor_STRING
|
||||
}
|
||||
|
||||
func (m *LabelDescriptor) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*LabelDescriptor)(nil), "google.api.LabelDescriptor")
|
||||
proto.RegisterEnum("google.api.LabelDescriptor_ValueType", LabelDescriptor_ValueType_name, LabelDescriptor_ValueType_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/api/label.proto", fileDescriptor_label_7ab1ab74ef036f1c) }
|
||||
|
||||
var fileDescriptor_label_7ab1ab74ef036f1c = []byte{
|
||||
// 252 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4b, 0xcf, 0xcf, 0x4f,
|
||||
0xcf, 0x49, 0xd5, 0x4f, 0x2c, 0xc8, 0xd4, 0xcf, 0x49, 0x4c, 0x4a, 0xcd, 0xd1, 0x2b, 0x28, 0xca,
|
||||
0x2f, 0xc9, 0x17, 0xe2, 0x82, 0x88, 0xeb, 0x25, 0x16, 0x64, 0x2a, 0xed, 0x64, 0xe4, 0xe2, 0xf7,
|
||||
0x01, 0xc9, 0xb9, 0xa4, 0x16, 0x27, 0x17, 0x65, 0x16, 0x94, 0xe4, 0x17, 0x09, 0x09, 0x70, 0x31,
|
||||
0x67, 0xa7, 0x56, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x81, 0x98, 0x42, 0x2e, 0x5c, 0x5c,
|
||||
0x65, 0x89, 0x39, 0xa5, 0xa9, 0xf1, 0x25, 0x95, 0x05, 0xa9, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0x7c,
|
||||
0x46, 0xaa, 0x7a, 0x08, 0x63, 0xf4, 0xd0, 0x8c, 0xd0, 0x0b, 0x03, 0xa9, 0x0e, 0xa9, 0x2c, 0x48,
|
||||
0x0d, 0xe2, 0x2c, 0x83, 0x31, 0x85, 0x14, 0xb8, 0xb8, 0x53, 0xa0, 0x4a, 0x32, 0xf3, 0xf3, 0x24,
|
||||
0x98, 0xc1, 0xe6, 0x23, 0x0b, 0x29, 0xe9, 0x70, 0x71, 0xc2, 0x75, 0x0a, 0x71, 0x71, 0xb1, 0x05,
|
||||
0x87, 0x04, 0x79, 0xfa, 0xb9, 0x0b, 0x30, 0x08, 0x71, 0x70, 0xb1, 0x38, 0xf9, 0xfb, 0xfb, 0x08,
|
||||
0x30, 0x0a, 0x71, 0x72, 0xb1, 0x7a, 0xfa, 0x85, 0x98, 0x99, 0x08, 0x30, 0x39, 0xc5, 0x73, 0xf1,
|
||||
0x25, 0xe7, 0xe7, 0x22, 0x39, 0xc3, 0x89, 0x0b, 0xec, 0x8e, 0x00, 0x90, 0x2f, 0x03, 0x18, 0xa3,
|
||||
0x4c, 0xa1, 0x32, 0xe9, 0xf9, 0x39, 0x89, 0x79, 0xe9, 0x7a, 0xf9, 0x45, 0xe9, 0xfa, 0xe9, 0xa9,
|
||||
0x79, 0xe0, 0x30, 0xd0, 0x87, 0x48, 0x25, 0x16, 0x64, 0x16, 0x23, 0x82, 0xc7, 0x1a, 0x4c, 0xfe,
|
||||
0x60, 0x64, 0x5c, 0xc4, 0xc4, 0xe2, 0xee, 0x18, 0xe0, 0x99, 0xc4, 0x06, 0x56, 0x6b, 0x0c, 0x08,
|
||||
0x00, 0x00, 0xff, 0xff, 0x57, 0x04, 0xaa, 0x1f, 0x49, 0x01, 0x00, 0x00,
|
||||
}
|
389
vendor/google.golang.org/genproto/googleapis/api/metric/metric.pb.go
generated
vendored
389
vendor/google.golang.org/genproto/googleapis/api/metric/metric.pb.go
generated
vendored
@ -1,389 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/metric.proto
|
||||
|
||||
package metric // import "google.golang.org/genproto/googleapis/api/metric"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import label "google.golang.org/genproto/googleapis/api/label"
|
||||
|
||||
// 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 kind of measurement. It describes how the data is reported.
|
||||
type MetricDescriptor_MetricKind int32
|
||||
|
||||
const (
|
||||
// Do not use this default value.
|
||||
MetricDescriptor_METRIC_KIND_UNSPECIFIED MetricDescriptor_MetricKind = 0
|
||||
// An instantaneous measurement of a value.
|
||||
MetricDescriptor_GAUGE MetricDescriptor_MetricKind = 1
|
||||
// The change in a value during a time interval.
|
||||
MetricDescriptor_DELTA MetricDescriptor_MetricKind = 2
|
||||
// A value accumulated over a time interval. Cumulative
|
||||
// measurements in a time series should have the same start time
|
||||
// and increasing end times, until an event resets the cumulative
|
||||
// value to zero and sets a new start time for the following
|
||||
// points.
|
||||
MetricDescriptor_CUMULATIVE MetricDescriptor_MetricKind = 3
|
||||
)
|
||||
|
||||
var MetricDescriptor_MetricKind_name = map[int32]string{
|
||||
0: "METRIC_KIND_UNSPECIFIED",
|
||||
1: "GAUGE",
|
||||
2: "DELTA",
|
||||
3: "CUMULATIVE",
|
||||
}
|
||||
var MetricDescriptor_MetricKind_value = map[string]int32{
|
||||
"METRIC_KIND_UNSPECIFIED": 0,
|
||||
"GAUGE": 1,
|
||||
"DELTA": 2,
|
||||
"CUMULATIVE": 3,
|
||||
}
|
||||
|
||||
func (x MetricDescriptor_MetricKind) String() string {
|
||||
return proto.EnumName(MetricDescriptor_MetricKind_name, int32(x))
|
||||
}
|
||||
func (MetricDescriptor_MetricKind) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_metric_18b95065d4b7f9c0, []int{0, 0}
|
||||
}
|
||||
|
||||
// The value type of a metric.
|
||||
type MetricDescriptor_ValueType int32
|
||||
|
||||
const (
|
||||
// Do not use this default value.
|
||||
MetricDescriptor_VALUE_TYPE_UNSPECIFIED MetricDescriptor_ValueType = 0
|
||||
// The value is a boolean.
|
||||
// This value type can be used only if the metric kind is `GAUGE`.
|
||||
MetricDescriptor_BOOL MetricDescriptor_ValueType = 1
|
||||
// The value is a signed 64-bit integer.
|
||||
MetricDescriptor_INT64 MetricDescriptor_ValueType = 2
|
||||
// The value is a double precision floating point number.
|
||||
MetricDescriptor_DOUBLE MetricDescriptor_ValueType = 3
|
||||
// The value is a text string.
|
||||
// This value type can be used only if the metric kind is `GAUGE`.
|
||||
MetricDescriptor_STRING MetricDescriptor_ValueType = 4
|
||||
// The value is a [`Distribution`][google.api.Distribution].
|
||||
MetricDescriptor_DISTRIBUTION MetricDescriptor_ValueType = 5
|
||||
// The value is money.
|
||||
MetricDescriptor_MONEY MetricDescriptor_ValueType = 6
|
||||
)
|
||||
|
||||
var MetricDescriptor_ValueType_name = map[int32]string{
|
||||
0: "VALUE_TYPE_UNSPECIFIED",
|
||||
1: "BOOL",
|
||||
2: "INT64",
|
||||
3: "DOUBLE",
|
||||
4: "STRING",
|
||||
5: "DISTRIBUTION",
|
||||
6: "MONEY",
|
||||
}
|
||||
var MetricDescriptor_ValueType_value = map[string]int32{
|
||||
"VALUE_TYPE_UNSPECIFIED": 0,
|
||||
"BOOL": 1,
|
||||
"INT64": 2,
|
||||
"DOUBLE": 3,
|
||||
"STRING": 4,
|
||||
"DISTRIBUTION": 5,
|
||||
"MONEY": 6,
|
||||
}
|
||||
|
||||
func (x MetricDescriptor_ValueType) String() string {
|
||||
return proto.EnumName(MetricDescriptor_ValueType_name, int32(x))
|
||||
}
|
||||
func (MetricDescriptor_ValueType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_metric_18b95065d4b7f9c0, []int{0, 1}
|
||||
}
|
||||
|
||||
// Defines a metric type and its schema. Once a metric descriptor is created,
|
||||
// deleting or altering it stops data collection and makes the metric type's
|
||||
// existing data unusable.
|
||||
type MetricDescriptor struct {
|
||||
// The resource name of the metric descriptor.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// The metric type, including its DNS name prefix. The type is not
|
||||
// URL-encoded. All user-defined custom metric types have the DNS name
|
||||
// `custom.googleapis.com`. Metric types should use a natural hierarchical
|
||||
// grouping. For example:
|
||||
//
|
||||
// "custom.googleapis.com/invoice/paid/amount"
|
||||
// "appengine.googleapis.com/http/server/response_latencies"
|
||||
Type string `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty"`
|
||||
// The set of labels that can be used to describe a specific
|
||||
// instance of this metric type. For example, the
|
||||
// `appengine.googleapis.com/http/server/response_latencies` metric
|
||||
// type has a label for the HTTP response code, `response_code`, so
|
||||
// you can look at latencies for successful responses or just
|
||||
// for responses that failed.
|
||||
Labels []*label.LabelDescriptor `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
|
||||
// Whether the metric records instantaneous values, changes to a value, etc.
|
||||
// Some combinations of `metric_kind` and `value_type` might not be supported.
|
||||
MetricKind MetricDescriptor_MetricKind `protobuf:"varint,3,opt,name=metric_kind,json=metricKind,proto3,enum=google.api.MetricDescriptor_MetricKind" json:"metric_kind,omitempty"`
|
||||
// Whether the measurement is an integer, a floating-point number, etc.
|
||||
// Some combinations of `metric_kind` and `value_type` might not be supported.
|
||||
ValueType MetricDescriptor_ValueType `protobuf:"varint,4,opt,name=value_type,json=valueType,proto3,enum=google.api.MetricDescriptor_ValueType" json:"value_type,omitempty"`
|
||||
// The unit in which the metric value is reported. It is only applicable
|
||||
// if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The
|
||||
// supported units are a subset of [The Unified Code for Units of
|
||||
// Measure](http://unitsofmeasure.org/ucum.html) standard:
|
||||
//
|
||||
// **Basic units (UNIT)**
|
||||
//
|
||||
// * `bit` bit
|
||||
// * `By` byte
|
||||
// * `s` second
|
||||
// * `min` minute
|
||||
// * `h` hour
|
||||
// * `d` day
|
||||
//
|
||||
// **Prefixes (PREFIX)**
|
||||
//
|
||||
// * `k` kilo (10**3)
|
||||
// * `M` mega (10**6)
|
||||
// * `G` giga (10**9)
|
||||
// * `T` tera (10**12)
|
||||
// * `P` peta (10**15)
|
||||
// * `E` exa (10**18)
|
||||
// * `Z` zetta (10**21)
|
||||
// * `Y` yotta (10**24)
|
||||
// * `m` milli (10**-3)
|
||||
// * `u` micro (10**-6)
|
||||
// * `n` nano (10**-9)
|
||||
// * `p` pico (10**-12)
|
||||
// * `f` femto (10**-15)
|
||||
// * `a` atto (10**-18)
|
||||
// * `z` zepto (10**-21)
|
||||
// * `y` yocto (10**-24)
|
||||
// * `Ki` kibi (2**10)
|
||||
// * `Mi` mebi (2**20)
|
||||
// * `Gi` gibi (2**30)
|
||||
// * `Ti` tebi (2**40)
|
||||
//
|
||||
// **Grammar**
|
||||
//
|
||||
// The grammar also includes these connectors:
|
||||
//
|
||||
// * `/` division (as an infix operator, e.g. `1/s`).
|
||||
// * `.` multiplication (as an infix operator, e.g. `GBy.d`)
|
||||
//
|
||||
// The grammar for a unit is as follows:
|
||||
//
|
||||
// Expression = Component { "." Component } { "/" Component } ;
|
||||
//
|
||||
// Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
|
||||
// | Annotation
|
||||
// | "1"
|
||||
// ;
|
||||
//
|
||||
// Annotation = "{" NAME "}" ;
|
||||
//
|
||||
// Notes:
|
||||
//
|
||||
// * `Annotation` is just a comment if it follows a `UNIT` and is
|
||||
// equivalent to `1` if it is used alone. For examples,
|
||||
// `{requests}/s == 1/s`, `By{transmitted}/s == By/s`.
|
||||
// * `NAME` is a sequence of non-blank printable ASCII characters not
|
||||
// containing '{' or '}'.
|
||||
// * `1` represents dimensionless value 1, such as in `1/s`.
|
||||
// * `%` represents dimensionless value 1/100, and annotates values giving
|
||||
// a percentage.
|
||||
Unit string `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit,omitempty"`
|
||||
// A detailed description of the metric, which can be used in documentation.
|
||||
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
|
||||
// A concise name for the metric, which can be displayed in user interfaces.
|
||||
// Use sentence case without an ending period, for example "Request count".
|
||||
// This field is optional but it is recommended to be set for any metrics
|
||||
// associated with user-visible concepts, such as Quota.
|
||||
DisplayName string `protobuf:"bytes,7,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *MetricDescriptor) Reset() { *m = MetricDescriptor{} }
|
||||
func (m *MetricDescriptor) String() string { return proto.CompactTextString(m) }
|
||||
func (*MetricDescriptor) ProtoMessage() {}
|
||||
func (*MetricDescriptor) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_metric_18b95065d4b7f9c0, []int{0}
|
||||
}
|
||||
func (m *MetricDescriptor) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_MetricDescriptor.Unmarshal(m, b)
|
||||
}
|
||||
func (m *MetricDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_MetricDescriptor.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *MetricDescriptor) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_MetricDescriptor.Merge(dst, src)
|
||||
}
|
||||
func (m *MetricDescriptor) XXX_Size() int {
|
||||
return xxx_messageInfo_MetricDescriptor.Size(m)
|
||||
}
|
||||
func (m *MetricDescriptor) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_MetricDescriptor.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_MetricDescriptor proto.InternalMessageInfo
|
||||
|
||||
func (m *MetricDescriptor) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *MetricDescriptor) GetType() string {
|
||||
if m != nil {
|
||||
return m.Type
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *MetricDescriptor) GetLabels() []*label.LabelDescriptor {
|
||||
if m != nil {
|
||||
return m.Labels
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *MetricDescriptor) GetMetricKind() MetricDescriptor_MetricKind {
|
||||
if m != nil {
|
||||
return m.MetricKind
|
||||
}
|
||||
return MetricDescriptor_METRIC_KIND_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *MetricDescriptor) GetValueType() MetricDescriptor_ValueType {
|
||||
if m != nil {
|
||||
return m.ValueType
|
||||
}
|
||||
return MetricDescriptor_VALUE_TYPE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *MetricDescriptor) GetUnit() string {
|
||||
if m != nil {
|
||||
return m.Unit
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *MetricDescriptor) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *MetricDescriptor) GetDisplayName() string {
|
||||
if m != nil {
|
||||
return m.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// A specific metric, identified by specifying values for all of the
|
||||
// labels of a [`MetricDescriptor`][google.api.MetricDescriptor].
|
||||
type Metric struct {
|
||||
// An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].
|
||||
// For example, `custom.googleapis.com/invoice/paid/amount`.
|
||||
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
|
||||
// The set of label values that uniquely identify this metric. All
|
||||
// labels listed in the `MetricDescriptor` must be assigned values.
|
||||
Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Metric) Reset() { *m = Metric{} }
|
||||
func (m *Metric) String() string { return proto.CompactTextString(m) }
|
||||
func (*Metric) ProtoMessage() {}
|
||||
func (*Metric) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_metric_18b95065d4b7f9c0, []int{1}
|
||||
}
|
||||
func (m *Metric) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Metric.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Metric.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Metric) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Metric.Merge(dst, src)
|
||||
}
|
||||
func (m *Metric) XXX_Size() int {
|
||||
return xxx_messageInfo_Metric.Size(m)
|
||||
}
|
||||
func (m *Metric) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Metric.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Metric proto.InternalMessageInfo
|
||||
|
||||
func (m *Metric) GetType() string {
|
||||
if m != nil {
|
||||
return m.Type
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Metric) GetLabels() map[string]string {
|
||||
if m != nil {
|
||||
return m.Labels
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*MetricDescriptor)(nil), "google.api.MetricDescriptor")
|
||||
proto.RegisterType((*Metric)(nil), "google.api.Metric")
|
||||
proto.RegisterMapType((map[string]string)(nil), "google.api.Metric.LabelsEntry")
|
||||
proto.RegisterEnum("google.api.MetricDescriptor_MetricKind", MetricDescriptor_MetricKind_name, MetricDescriptor_MetricKind_value)
|
||||
proto.RegisterEnum("google.api.MetricDescriptor_ValueType", MetricDescriptor_ValueType_name, MetricDescriptor_ValueType_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/api/metric.proto", fileDescriptor_metric_18b95065d4b7f9c0) }
|
||||
|
||||
var fileDescriptor_metric_18b95065d4b7f9c0 = []byte{
|
||||
// 506 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x53, 0x4d, 0x6f, 0xda, 0x40,
|
||||
0x10, 0xad, 0x3f, 0x70, 0xc3, 0x10, 0xa1, 0xd5, 0xaa, 0x4a, 0x2c, 0x22, 0x55, 0x94, 0x43, 0xcb,
|
||||
0x09, 0xa4, 0xa4, 0x4a, 0xbf, 0x4e, 0x80, 0xb7, 0xd4, 0x8a, 0xb1, 0x91, 0x63, 0x23, 0xa5, 0x17,
|
||||
0xcb, 0x81, 0x95, 0x65, 0xc5, 0xd8, 0xae, 0x71, 0x22, 0xf9, 0x57, 0xf4, 0x17, 0xf4, 0xd2, 0x5f,
|
||||
0x5a, 0xed, 0xae, 0x03, 0x16, 0x95, 0x72, 0xe2, 0xed, 0x9b, 0x37, 0x6f, 0x67, 0x96, 0x67, 0x38,
|
||||
0x8f, 0xb2, 0x2c, 0x4a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0x65,
|
||||
0xce, 0x89, 0xc3, 0x57, 0xf9, 0xb3, 0x34, 0x0d, 0xa0, 0xbb, 0xce, 0xb6, 0x8d, 0x7b, 0xa6, 0x1d,
|
||||
0x71, 0xd1, 0x92, 0x05, 0x7a, 0x29, 0xfd, 0xfc, 0x54, 0x97, 0xa2, 0x2c, 0x09, 0xd3, 0x68, 0x94,
|
||||
0x15, 0xd1, 0x38, 0xa2, 0x29, 0x8f, 0xfb, 0x58, 0x94, 0xc2, 0x3c, 0xde, 0x35, 0x3e, 0x97, 0x6f,
|
||||
0xe2, 0xe7, 0xaf, 0xac, 0xce, 0x27, 0x4b, 0xf3, 0x5e, 0xe3, 0xd2, 0xab, 0x7f, 0x01, 0x00, 0x00,
|
||||
0xff, 0xff, 0x18, 0x04, 0x05, 0x82, 0x58, 0x03, 0x00, 0x00,
|
||||
}
|
289
vendor/google.golang.org/genproto/googleapis/api/monitoredres/monitored_resource.pb.go
generated
vendored
289
vendor/google.golang.org/genproto/googleapis/api/monitoredres/monitored_resource.pb.go
generated
vendored
@ -1,289 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/monitored_resource.proto
|
||||
|
||||
package monitoredres // import "google.golang.org/genproto/googleapis/api/monitoredres"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _struct "github.com/golang/protobuf/ptypes/struct"
|
||||
import label "google.golang.org/genproto/googleapis/api/label"
|
||||
|
||||
// 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
|
||||
|
||||
// An object that describes the schema of a [MonitoredResource][google.api.MonitoredResource] object using a
|
||||
// type name and a set of labels. For example, the monitored resource
|
||||
// descriptor for Google Compute Engine VM instances has a type of
|
||||
// `"gce_instance"` and specifies the use of the labels `"instance_id"` and
|
||||
// `"zone"` to identify particular VM instances.
|
||||
//
|
||||
// Different APIs can support different monitored resource types. APIs generally
|
||||
// provide a `list` method that returns the monitored resource descriptors used
|
||||
// by the API.
|
||||
type MonitoredResourceDescriptor struct {
|
||||
// Optional. The resource name of the monitored resource descriptor:
|
||||
// `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
|
||||
// {type} is the value of the `type` field in this object and
|
||||
// {project_id} is a project ID that provides API-specific context for
|
||||
// accessing the type. APIs that do not use project information can use the
|
||||
// resource name format `"monitoredResourceDescriptors/{type}"`.
|
||||
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// Required. The monitored resource type. For example, the type
|
||||
// `"cloudsql_database"` represents databases in Google Cloud SQL.
|
||||
// The maximum length of this value is 256 characters.
|
||||
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
||||
// Optional. A concise name for the monitored resource type that might be
|
||||
// displayed in user interfaces. It should be a Title Cased Noun Phrase,
|
||||
// without any article or other determiners. For example,
|
||||
// `"Google Cloud SQL Database"`.
|
||||
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
||||
// Optional. A detailed description of the monitored resource type that might
|
||||
// be used in documentation.
|
||||
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
||||
// Required. A set of labels used to describe instances of this monitored
|
||||
// resource type. For example, an individual Google Cloud SQL database is
|
||||
// identified by values for the labels `"database_id"` and `"zone"`.
|
||||
Labels []*label.LabelDescriptor `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *MonitoredResourceDescriptor) Reset() { *m = MonitoredResourceDescriptor{} }
|
||||
func (m *MonitoredResourceDescriptor) String() string { return proto.CompactTextString(m) }
|
||||
func (*MonitoredResourceDescriptor) ProtoMessage() {}
|
||||
func (*MonitoredResourceDescriptor) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_monitored_resource_35ee91132be0d9ce, []int{0}
|
||||
}
|
||||
func (m *MonitoredResourceDescriptor) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_MonitoredResourceDescriptor.Unmarshal(m, b)
|
||||
}
|
||||
func (m *MonitoredResourceDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_MonitoredResourceDescriptor.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *MonitoredResourceDescriptor) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_MonitoredResourceDescriptor.Merge(dst, src)
|
||||
}
|
||||
func (m *MonitoredResourceDescriptor) XXX_Size() int {
|
||||
return xxx_messageInfo_MonitoredResourceDescriptor.Size(m)
|
||||
}
|
||||
func (m *MonitoredResourceDescriptor) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_MonitoredResourceDescriptor.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_MonitoredResourceDescriptor proto.InternalMessageInfo
|
||||
|
||||
func (m *MonitoredResourceDescriptor) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *MonitoredResourceDescriptor) GetType() string {
|
||||
if m != nil {
|
||||
return m.Type
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *MonitoredResourceDescriptor) GetDisplayName() string {
|
||||
if m != nil {
|
||||
return m.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *MonitoredResourceDescriptor) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *MonitoredResourceDescriptor) GetLabels() []*label.LabelDescriptor {
|
||||
if m != nil {
|
||||
return m.Labels
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// An object representing a resource that can be used for monitoring, logging,
|
||||
// billing, or other purposes. Examples include virtual machine instances,
|
||||
// databases, and storage devices such as disks. The `type` field identifies a
|
||||
// [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object that describes the resource's
|
||||
// schema. Information in the `labels` field identifies the actual resource and
|
||||
// its attributes according to the schema. For example, a particular Compute
|
||||
// Engine VM instance could be represented by the following object, because the
|
||||
// [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] for `"gce_instance"` has labels
|
||||
// `"instance_id"` and `"zone"`:
|
||||
//
|
||||
// { "type": "gce_instance",
|
||||
// "labels": { "instance_id": "12345678901234",
|
||||
// "zone": "us-central1-a" }}
|
||||
type MonitoredResource struct {
|
||||
// Required. The monitored resource type. This field must match
|
||||
// the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For
|
||||
// example, the type of a Compute Engine VM instance is `gce_instance`.
|
||||
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
||||
// Required. Values for all of the labels listed in the associated monitored
|
||||
// resource descriptor. For example, Compute Engine VM instances use the
|
||||
// labels `"project_id"`, `"instance_id"`, and `"zone"`.
|
||||
Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *MonitoredResource) Reset() { *m = MonitoredResource{} }
|
||||
func (m *MonitoredResource) String() string { return proto.CompactTextString(m) }
|
||||
func (*MonitoredResource) ProtoMessage() {}
|
||||
func (*MonitoredResource) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_monitored_resource_35ee91132be0d9ce, []int{1}
|
||||
}
|
||||
func (m *MonitoredResource) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_MonitoredResource.Unmarshal(m, b)
|
||||
}
|
||||
func (m *MonitoredResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_MonitoredResource.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *MonitoredResource) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_MonitoredResource.Merge(dst, src)
|
||||
}
|
||||
func (m *MonitoredResource) XXX_Size() int {
|
||||
return xxx_messageInfo_MonitoredResource.Size(m)
|
||||
}
|
||||
func (m *MonitoredResource) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_MonitoredResource.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_MonitoredResource proto.InternalMessageInfo
|
||||
|
||||
func (m *MonitoredResource) GetType() string {
|
||||
if m != nil {
|
||||
return m.Type
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *MonitoredResource) GetLabels() map[string]string {
|
||||
if m != nil {
|
||||
return m.Labels
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Auxiliary metadata for a [MonitoredResource][google.api.MonitoredResource] object.
|
||||
// [MonitoredResource][google.api.MonitoredResource] objects contain the minimum set of information to
|
||||
// uniquely identify a monitored resource instance. There is some other useful
|
||||
// auxiliary metadata. Google Stackdriver Monitoring & Logging uses an ingestion
|
||||
// pipeline to extract metadata for cloud resources of all types , and stores
|
||||
// the metadata in this message.
|
||||
type MonitoredResourceMetadata struct {
|
||||
// Output only. Values for predefined system metadata labels.
|
||||
// System labels are a kind of metadata extracted by Google Stackdriver.
|
||||
// Stackdriver determines what system labels are useful and how to obtain
|
||||
// their values. Some examples: "machine_image", "vpc", "subnet_id",
|
||||
// "security_group", "name", etc.
|
||||
// System label values can be only strings, Boolean values, or a list of
|
||||
// strings. For example:
|
||||
//
|
||||
// { "name": "my-test-instance",
|
||||
// "security_group": ["a", "b", "c"],
|
||||
// "spot_instance": false }
|
||||
SystemLabels *_struct.Struct `protobuf:"bytes,1,opt,name=system_labels,json=systemLabels,proto3" json:"system_labels,omitempty"`
|
||||
// Output only. A map of user-defined metadata labels.
|
||||
UserLabels map[string]string `protobuf:"bytes,2,rep,name=user_labels,json=userLabels,proto3" json:"user_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *MonitoredResourceMetadata) Reset() { *m = MonitoredResourceMetadata{} }
|
||||
func (m *MonitoredResourceMetadata) String() string { return proto.CompactTextString(m) }
|
||||
func (*MonitoredResourceMetadata) ProtoMessage() {}
|
||||
func (*MonitoredResourceMetadata) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_monitored_resource_35ee91132be0d9ce, []int{2}
|
||||
}
|
||||
func (m *MonitoredResourceMetadata) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_MonitoredResourceMetadata.Unmarshal(m, b)
|
||||
}
|
||||
func (m *MonitoredResourceMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_MonitoredResourceMetadata.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *MonitoredResourceMetadata) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_MonitoredResourceMetadata.Merge(dst, src)
|
||||
}
|
||||
func (m *MonitoredResourceMetadata) XXX_Size() int {
|
||||
return xxx_messageInfo_MonitoredResourceMetadata.Size(m)
|
||||
}
|
||||
func (m *MonitoredResourceMetadata) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_MonitoredResourceMetadata.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_MonitoredResourceMetadata proto.InternalMessageInfo
|
||||
|
||||
func (m *MonitoredResourceMetadata) GetSystemLabels() *_struct.Struct {
|
||||
if m != nil {
|
||||
return m.SystemLabels
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *MonitoredResourceMetadata) GetUserLabels() map[string]string {
|
||||
if m != nil {
|
||||
return m.UserLabels
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*MonitoredResourceDescriptor)(nil), "google.api.MonitoredResourceDescriptor")
|
||||
proto.RegisterType((*MonitoredResource)(nil), "google.api.MonitoredResource")
|
||||
proto.RegisterMapType((map[string]string)(nil), "google.api.MonitoredResource.LabelsEntry")
|
||||
proto.RegisterType((*MonitoredResourceMetadata)(nil), "google.api.MonitoredResourceMetadata")
|
||||
proto.RegisterMapType((map[string]string)(nil), "google.api.MonitoredResourceMetadata.UserLabelsEntry")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/api/monitored_resource.proto", fileDescriptor_monitored_resource_35ee91132be0d9ce)
|
||||
}
|
||||
|
||||
var fileDescriptor_monitored_resource_35ee91132be0d9ce = []byte{
|
||||
// 415 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x4d, 0xab, 0xd3, 0x40,
|
||||
0x14, 0x65, 0xd2, 0x0f, 0xf0, 0xa6, 0x7e, 0x0d, 0x52, 0x63, 0xea, 0xa2, 0xd6, 0x4d, 0xdd, 0x24,
|
||||
0xd0, 0x22, 0xf8, 0xb9, 0x68, 0x55, 0x44, 0xb0, 0x52, 0x22, 0xba, 0x70, 0x13, 0xa6, 0xc9, 0x18,
|
||||
0x82, 0x49, 0x26, 0xcc, 0x4c, 0x84, 0xfc, 0x1d, 0xc1, 0xdf, 0xe1, 0x5f, 0x72, 0xe9, 0x52, 0x32,
|
||||
0x33, 0x69, 0xd3, 0x97, 0xc7, 0x83, 0xb7, 0xbb, 0xf7, 0xdc, 0x73, 0xcf, 0x3d, 0x27, 0x43, 0xe0,
|
||||
0x71, 0xc2, 0x58, 0x92, 0x51, 0x9f, 0x94, 0xa9, 0x9f, 0xb3, 0x22, 0x95, 0x8c, 0xd3, 0x38, 0xe4,
|
||||
0x54, 0xb0, 0x8a, 0x47, 0xd4, 0x2b, 0x39, 0x93, 0x0c, 0x83, 0x26, 0x79, 0xa4, 0x4c, 0xdd, 0x69,
|
||||
0x67, 0x21, 0x23, 0x07, 0x9a, 0x69, 0x8e, 0xfb, 0xd0, 0xe0, 0xaa, 0x3b, 0x54, 0xdf, 0x7d, 0x21,
|
||||
0x79, 0x15, 0x49, 0x3d, 0x5d, 0xfc, 0x41, 0x30, 0xdb, 0xb5, 0xf2, 0x81, 0x51, 0x7f, 0x4b, 0x45,
|
||||
0xc4, 0xd3, 0x52, 0x32, 0x8e, 0x31, 0x0c, 0x0b, 0x92, 0x53, 0x67, 0x34, 0x47, 0xcb, 0x1b, 0x81,
|
||||
0xaa, 0x1b, 0x4c, 0xd6, 0x25, 0x75, 0x90, 0xc6, 0x9a, 0x1a, 0x3f, 0x82, 0x49, 0x9c, 0x8a, 0x32,
|
||||
0x23, 0x75, 0xa8, 0xf8, 0x96, 0x9a, 0xd9, 0x06, 0xfb, 0xd4, 0xac, 0xcd, 0xc1, 0x8e, 0x8d, 0x70,
|
||||
0xca, 0x0a, 0x67, 0x60, 0x18, 0x27, 0x08, 0xaf, 0x61, 0xac, 0x9c, 0x0b, 0x67, 0x38, 0x1f, 0x2c,
|
||||
0xed, 0xd5, 0xcc, 0x3b, 0xe5, 0xf3, 0x3e, 0x36, 0x93, 0x93, 0xb3, 0xc0, 0x50, 0x17, 0xbf, 0x11,
|
||||
0xdc, 0xed, 0x25, 0xb8, 0xd4, 0xe3, 0xe6, 0x28, 0x6f, 0x29, 0xf9, 0x27, 0x5d, 0x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, 0x47, 0x03, 0x00, 0x00,
|
||||
}
|
443
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/auth.pb.go
generated
vendored
443
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/auth.pb.go
generated
vendored
@ -1,443 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/auth.proto
|
||||
|
||||
package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// `Authentication` defines the authentication configuration for an API.
|
||||
//
|
||||
// Example for an API targeted for external use:
|
||||
//
|
||||
// name: calendar.googleapis.com
|
||||
// authentication:
|
||||
// providers:
|
||||
// - id: google_calendar_auth
|
||||
// jwks_uri: https://www.googleapis.com/oauth2/v1/certs
|
||||
// issuer: https://securetoken.google.com
|
||||
// rules:
|
||||
// - selector: "*"
|
||||
// requirements:
|
||||
// provider_id: google_calendar_auth
|
||||
type Authentication struct {
|
||||
// A list of authentication rules that apply to individual API methods.
|
||||
//
|
||||
// **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
Rules []*AuthenticationRule `protobuf:"bytes,3,rep,name=rules,proto3" json:"rules,omitempty"`
|
||||
// Defines a set of authentication providers that a service supports.
|
||||
Providers []*AuthProvider `protobuf:"bytes,4,rep,name=providers,proto3" json:"providers,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Authentication) Reset() { *m = Authentication{} }
|
||||
func (m *Authentication) String() string { return proto.CompactTextString(m) }
|
||||
func (*Authentication) ProtoMessage() {}
|
||||
func (*Authentication) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_auth_88c4f5ae0863ae9c, []int{0}
|
||||
}
|
||||
func (m *Authentication) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Authentication.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Authentication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Authentication.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Authentication) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Authentication.Merge(dst, src)
|
||||
}
|
||||
func (m *Authentication) XXX_Size() int {
|
||||
return xxx_messageInfo_Authentication.Size(m)
|
||||
}
|
||||
func (m *Authentication) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Authentication.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Authentication proto.InternalMessageInfo
|
||||
|
||||
func (m *Authentication) GetRules() []*AuthenticationRule {
|
||||
if m != nil {
|
||||
return m.Rules
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Authentication) GetProviders() []*AuthProvider {
|
||||
if m != nil {
|
||||
return m.Providers
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Authentication rules for the service.
|
||||
//
|
||||
// By default, if a method has any authentication requirements, every request
|
||||
// must include a valid credential matching one of the requirements.
|
||||
// It's an error to include more than one kind of credential in a single
|
||||
// request.
|
||||
//
|
||||
// If a method doesn't have any auth requirements, request credentials will be
|
||||
// ignored.
|
||||
type AuthenticationRule struct {
|
||||
// Selects the methods to which this rule applies.
|
||||
//
|
||||
// Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
|
||||
Selector string `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
|
||||
// The requirements for OAuth credentials.
|
||||
Oauth *OAuthRequirements `protobuf:"bytes,2,opt,name=oauth,proto3" json:"oauth,omitempty"`
|
||||
// If true, the service accepts API keys without any other credential.
|
||||
AllowWithoutCredential bool `protobuf:"varint,5,opt,name=allow_without_credential,json=allowWithoutCredential,proto3" json:"allow_without_credential,omitempty"`
|
||||
// Requirements for additional authentication providers.
|
||||
Requirements []*AuthRequirement `protobuf:"bytes,7,rep,name=requirements,proto3" json:"requirements,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *AuthenticationRule) Reset() { *m = AuthenticationRule{} }
|
||||
func (m *AuthenticationRule) String() string { return proto.CompactTextString(m) }
|
||||
func (*AuthenticationRule) ProtoMessage() {}
|
||||
func (*AuthenticationRule) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_auth_88c4f5ae0863ae9c, []int{1}
|
||||
}
|
||||
func (m *AuthenticationRule) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_AuthenticationRule.Unmarshal(m, b)
|
||||
}
|
||||
func (m *AuthenticationRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_AuthenticationRule.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *AuthenticationRule) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_AuthenticationRule.Merge(dst, src)
|
||||
}
|
||||
func (m *AuthenticationRule) XXX_Size() int {
|
||||
return xxx_messageInfo_AuthenticationRule.Size(m)
|
||||
}
|
||||
func (m *AuthenticationRule) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_AuthenticationRule.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_AuthenticationRule proto.InternalMessageInfo
|
||||
|
||||
func (m *AuthenticationRule) GetSelector() string {
|
||||
if m != nil {
|
||||
return m.Selector
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AuthenticationRule) GetOauth() *OAuthRequirements {
|
||||
if m != nil {
|
||||
return m.Oauth
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AuthenticationRule) GetAllowWithoutCredential() bool {
|
||||
if m != nil {
|
||||
return m.AllowWithoutCredential
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *AuthenticationRule) GetRequirements() []*AuthRequirement {
|
||||
if m != nil {
|
||||
return m.Requirements
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Configuration for an anthentication provider, including support for
|
||||
// [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
||||
type AuthProvider struct {
|
||||
// The unique identifier of the auth provider. It will be referred to by
|
||||
// `AuthRequirement.provider_id`.
|
||||
//
|
||||
// Example: "bookstore_auth".
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
// Identifies the principal that issued the JWT. See
|
||||
// https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
|
||||
// Usually a URL or an email address.
|
||||
//
|
||||
// Example: https://securetoken.google.com
|
||||
// Example: 1234567-compute@developer.gserviceaccount.com
|
||||
Issuer string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"`
|
||||
// URL of the provider's public key set to validate signature of the JWT. See
|
||||
// [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
|
||||
// Optional if the key set document:
|
||||
// - can be retrieved from
|
||||
// [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html
|
||||
// of the issuer.
|
||||
// - can be inferred from the email domain of the issuer (e.g. a Google service account).
|
||||
//
|
||||
// Example: https://www.googleapis.com/oauth2/v1/certs
|
||||
JwksUri string `protobuf:"bytes,3,opt,name=jwks_uri,json=jwksUri,proto3" json:"jwks_uri,omitempty"`
|
||||
// The list of JWT
|
||||
// [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
||||
// that are allowed to access. A JWT containing any of these audiences will
|
||||
// be accepted. When this setting is absent, only JWTs with audience
|
||||
// "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]"
|
||||
// will be accepted. For example, if no audiences are in the setting,
|
||||
// LibraryService API will only accept JWTs with the following audience
|
||||
// "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
|
||||
//
|
||||
// Example:
|
||||
//
|
||||
// audiences: bookstore_android.apps.googleusercontent.com,
|
||||
// bookstore_web.apps.googleusercontent.com
|
||||
Audiences string `protobuf:"bytes,4,opt,name=audiences,proto3" json:"audiences,omitempty"`
|
||||
// Redirect URL if JWT token is required but no present or is expired.
|
||||
// Implement authorizationUrl of securityDefinitions in OpenAPI spec.
|
||||
AuthorizationUrl string `protobuf:"bytes,5,opt,name=authorization_url,json=authorizationUrl,proto3" json:"authorization_url,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *AuthProvider) Reset() { *m = AuthProvider{} }
|
||||
func (m *AuthProvider) String() string { return proto.CompactTextString(m) }
|
||||
func (*AuthProvider) ProtoMessage() {}
|
||||
func (*AuthProvider) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_auth_88c4f5ae0863ae9c, []int{2}
|
||||
}
|
||||
func (m *AuthProvider) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_AuthProvider.Unmarshal(m, b)
|
||||
}
|
||||
func (m *AuthProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_AuthProvider.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *AuthProvider) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_AuthProvider.Merge(dst, src)
|
||||
}
|
||||
func (m *AuthProvider) XXX_Size() int {
|
||||
return xxx_messageInfo_AuthProvider.Size(m)
|
||||
}
|
||||
func (m *AuthProvider) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_AuthProvider.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_AuthProvider proto.InternalMessageInfo
|
||||
|
||||
func (m *AuthProvider) GetId() string {
|
||||
if m != nil {
|
||||
return m.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AuthProvider) GetIssuer() string {
|
||||
if m != nil {
|
||||
return m.Issuer
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AuthProvider) GetJwksUri() string {
|
||||
if m != nil {
|
||||
return m.JwksUri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AuthProvider) GetAudiences() string {
|
||||
if m != nil {
|
||||
return m.Audiences
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AuthProvider) GetAuthorizationUrl() string {
|
||||
if m != nil {
|
||||
return m.AuthorizationUrl
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// OAuth scopes are a way to define data and permissions on data. For example,
|
||||
// there are scopes defined for "Read-only access to Google Calendar" and
|
||||
// "Access to Cloud Platform". Users can consent to a scope for an application,
|
||||
// giving it permission to access that data on their behalf.
|
||||
//
|
||||
// OAuth scope specifications should be fairly coarse grained; a user will need
|
||||
// to see and understand the text description of what your scope means.
|
||||
//
|
||||
// In most cases: use one or at most two OAuth scopes for an entire family of
|
||||
// products. If your product has multiple APIs, you should probably be sharing
|
||||
// the OAuth scope across all of those APIs.
|
||||
//
|
||||
// When you need finer grained OAuth consent screens: talk with your product
|
||||
// management about how developers will use them in practice.
|
||||
//
|
||||
// Please note that even though each of the canonical scopes is enough for a
|
||||
// request to be accepted and passed to the backend, a request can still fail
|
||||
// due to the backend requiring additional scopes or permissions.
|
||||
type OAuthRequirements struct {
|
||||
// The list of publicly documented OAuth scopes that are allowed access. An
|
||||
// OAuth token containing any of these scopes will be accepted.
|
||||
//
|
||||
// Example:
|
||||
//
|
||||
// canonical_scopes: https://www.googleapis.com/auth/calendar,
|
||||
// https://www.googleapis.com/auth/calendar.read
|
||||
CanonicalScopes string `protobuf:"bytes,1,opt,name=canonical_scopes,json=canonicalScopes,proto3" json:"canonical_scopes,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *OAuthRequirements) Reset() { *m = OAuthRequirements{} }
|
||||
func (m *OAuthRequirements) String() string { return proto.CompactTextString(m) }
|
||||
func (*OAuthRequirements) ProtoMessage() {}
|
||||
func (*OAuthRequirements) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_auth_88c4f5ae0863ae9c, []int{3}
|
||||
}
|
||||
func (m *OAuthRequirements) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_OAuthRequirements.Unmarshal(m, b)
|
||||
}
|
||||
func (m *OAuthRequirements) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_OAuthRequirements.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *OAuthRequirements) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_OAuthRequirements.Merge(dst, src)
|
||||
}
|
||||
func (m *OAuthRequirements) XXX_Size() int {
|
||||
return xxx_messageInfo_OAuthRequirements.Size(m)
|
||||
}
|
||||
func (m *OAuthRequirements) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_OAuthRequirements.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_OAuthRequirements proto.InternalMessageInfo
|
||||
|
||||
func (m *OAuthRequirements) GetCanonicalScopes() string {
|
||||
if m != nil {
|
||||
return m.CanonicalScopes
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// User-defined authentication requirements, including support for
|
||||
// [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
||||
type AuthRequirement struct {
|
||||
// [id][google.api.AuthProvider.id] from authentication provider.
|
||||
//
|
||||
// Example:
|
||||
//
|
||||
// provider_id: bookstore_auth
|
||||
ProviderId string `protobuf:"bytes,1,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"`
|
||||
// NOTE: This will be deprecated soon, once AuthProvider.audiences is
|
||||
// implemented and accepted in all the runtime components.
|
||||
//
|
||||
// The list of JWT
|
||||
// [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
||||
// that are allowed to access. A JWT containing any of these audiences will
|
||||
// be accepted. When this setting is absent, only JWTs with audience
|
||||
// "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]"
|
||||
// will be accepted. For example, if no audiences are in the setting,
|
||||
// LibraryService API will only accept JWTs with the following audience
|
||||
// "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
|
||||
//
|
||||
// Example:
|
||||
//
|
||||
// audiences: bookstore_android.apps.googleusercontent.com,
|
||||
// bookstore_web.apps.googleusercontent.com
|
||||
Audiences string `protobuf:"bytes,2,opt,name=audiences,proto3" json:"audiences,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *AuthRequirement) Reset() { *m = AuthRequirement{} }
|
||||
func (m *AuthRequirement) String() string { return proto.CompactTextString(m) }
|
||||
func (*AuthRequirement) ProtoMessage() {}
|
||||
func (*AuthRequirement) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_auth_88c4f5ae0863ae9c, []int{4}
|
||||
}
|
||||
func (m *AuthRequirement) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_AuthRequirement.Unmarshal(m, b)
|
||||
}
|
||||
func (m *AuthRequirement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_AuthRequirement.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *AuthRequirement) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_AuthRequirement.Merge(dst, src)
|
||||
}
|
||||
func (m *AuthRequirement) XXX_Size() int {
|
||||
return xxx_messageInfo_AuthRequirement.Size(m)
|
||||
}
|
||||
func (m *AuthRequirement) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_AuthRequirement.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_AuthRequirement proto.InternalMessageInfo
|
||||
|
||||
func (m *AuthRequirement) GetProviderId() string {
|
||||
if m != nil {
|
||||
return m.ProviderId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AuthRequirement) GetAudiences() string {
|
||||
if m != nil {
|
||||
return m.Audiences
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Authentication)(nil), "google.api.Authentication")
|
||||
proto.RegisterType((*AuthenticationRule)(nil), "google.api.AuthenticationRule")
|
||||
proto.RegisterType((*AuthProvider)(nil), "google.api.AuthProvider")
|
||||
proto.RegisterType((*OAuthRequirements)(nil), "google.api.OAuthRequirements")
|
||||
proto.RegisterType((*AuthRequirement)(nil), "google.api.AuthRequirement")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/api/auth.proto", fileDescriptor_auth_88c4f5ae0863ae9c) }
|
||||
|
||||
var fileDescriptor_auth_88c4f5ae0863ae9c = []byte{
|
||||
// 465 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x52, 0x5f, 0x6b, 0x13, 0x4f,
|
||||
0x14, 0x65, 0x93, 0xa6, 0xcd, 0xde, 0x94, 0xb4, 0x1d, 0xf8, 0x95, 0xfd, 0xd5, 0xaa, 0x21, 0x4f,
|
||||
0x11, 0x61, 0x03, 0xad, 0x88, 0x20, 0x28, 0xad, 0x88, 0xf4, 0xc9, 0x30, 0x52, 0x04, 0x5f, 0x96,
|
||||
0x71, 0x76, 0xdc, 0x8c, 0x9d, 0xce, 0x5d, 0xe7, 0x4f, 0x03, 0x3e, 0xf8, 0x49, 0x7c, 0xf2, 0x93,
|
||||
0xf9, 0x51, 0x64, 0x67, 0xb7, 0xc9, 0x6e, 0xfa, 0x78, 0xef, 0x39, 0xe7, 0xde, 0x7b, 0xce, 0x0c,
|
||||
0xfc, 0x57, 0x20, 0x16, 0x4a, 0xcc, 0x59, 0x29, 0xe7, 0xcc, 0xbb, 0x65, 0x5a, 0x1a, 0x74, 0x48,
|
||||
0xa0, 0x6e, 0xa7, 0xac, 0x94, 0x27, 0xa7, 0x6d, 0x8a, 0xd6, 0xe8, 0x98, 0x93, 0xa8, 0x6d, 0xcd,
|
||||
0x9c, 0xfe, 0x82, 0xf1, 0x85, 0x77, 0x4b, 0xa1, 0x9d, 0xe4, 0x01, 0x20, 0x2f, 0x60, 0x60, 0xbc,
|
||||
0x12, 0x36, 0xe9, 0x4f, 0xfa, 0xb3, 0xd1, 0xd9, 0x93, 0x74, 0x33, 0x2b, 0xed, 0x52, 0xa9, 0x57,
|
||||
0x82, 0xd6, 0x64, 0xf2, 0x12, 0xe2, 0xd2, 0xe0, 0x9d, 0xcc, 0x85, 0xb1, 0xc9, 0x4e, 0x50, 0x26,
|
||||
0xdb, 0xca, 0x45, 0x43, 0xa0, 0x1b, 0xea, 0xf4, 0x6f, 0x04, 0xe4, 0xe1, 0x54, 0x72, 0x02, 0x43,
|
||||
0x2b, 0x94, 0xe0, 0x0e, 0x4d, 0x12, 0x4d, 0xa2, 0x59, 0x4c, 0xd7, 0x35, 0x39, 0x87, 0x01, 0x56,
|
||||
0x5e, 0x93, 0xde, 0x24, 0x9a, 0x8d, 0xce, 0x1e, 0xb7, 0xd7, 0x7c, 0xac, 0x66, 0x51, 0xf1, 0xc3,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xe1, 0xbe, 0x75,
|
||||
0x95, 0x77, 0xcf, 0xef, 0x6d, 0x9d, 0x7f, 0x79, 0x03, 0x63, 0x8e, 0xb7, 0xad, 0x80, 0x2f, 0xe3,
|
||||
0x26, 0x3f, 0x87, 0x8b, 0xe8, 0xcb, 0xfb, 0x06, 0x28, 0x50, 0x31, 0x5d, 0xa4, 0x68, 0x8a, 0x79,
|
||||
0x21, 0x74, 0xf8, 0xce, 0xf3, 0x1a, 0x62, 0xa5, 0xb4, 0xe1, 0xbf, 0x5b, 0x61, 0xee, 0x24, 0x17,
|
||||
0x1c, 0xf5, 0x37, 0x59, 0xbc, 0xee, 0x54, 0x7f, 0x7a, 0x3b, 0x1f, 0x2e, 0x16, 0x57, 0x5f, 0x77,
|
||||
0x83, 0xf0, 0xfc, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe5, 0xa3, 0x9d, 0xc6, 0x4a, 0x03, 0x00,
|
||||
0x00,
|
||||
}
|
159
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/backend.pb.go
generated
vendored
159
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/backend.pb.go
generated
vendored
@ -1,159 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/backend.proto
|
||||
|
||||
package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// `Backend` defines the backend configuration for a service.
|
||||
type Backend struct {
|
||||
// A list of API backend rules that apply to individual API methods.
|
||||
//
|
||||
// **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
Rules []*BackendRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Backend) Reset() { *m = Backend{} }
|
||||
func (m *Backend) String() string { return proto.CompactTextString(m) }
|
||||
func (*Backend) ProtoMessage() {}
|
||||
func (*Backend) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_backend_bb737a5d3bcbecd6, []int{0}
|
||||
}
|
||||
func (m *Backend) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Backend.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Backend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Backend.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Backend) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Backend.Merge(dst, src)
|
||||
}
|
||||
func (m *Backend) XXX_Size() int {
|
||||
return xxx_messageInfo_Backend.Size(m)
|
||||
}
|
||||
func (m *Backend) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Backend.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Backend proto.InternalMessageInfo
|
||||
|
||||
func (m *Backend) GetRules() []*BackendRule {
|
||||
if m != nil {
|
||||
return m.Rules
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A backend rule provides configuration for an individual API element.
|
||||
type BackendRule struct {
|
||||
// Selects the methods to which this rule applies.
|
||||
//
|
||||
// Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
|
||||
Selector string `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
|
||||
// The address of the API backend.
|
||||
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
|
||||
// The number of seconds to wait for a response from a request. The default
|
||||
// deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.
|
||||
Deadline float64 `protobuf:"fixed64,3,opt,name=deadline,proto3" json:"deadline,omitempty"`
|
||||
// Minimum deadline in seconds needed for this method. Calls having deadline
|
||||
// value lower than this will be rejected.
|
||||
MinDeadline float64 `protobuf:"fixed64,4,opt,name=min_deadline,json=minDeadline,proto3" json:"min_deadline,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *BackendRule) Reset() { *m = BackendRule{} }
|
||||
func (m *BackendRule) String() string { return proto.CompactTextString(m) }
|
||||
func (*BackendRule) ProtoMessage() {}
|
||||
func (*BackendRule) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_backend_bb737a5d3bcbecd6, []int{1}
|
||||
}
|
||||
func (m *BackendRule) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_BackendRule.Unmarshal(m, b)
|
||||
}
|
||||
func (m *BackendRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_BackendRule.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *BackendRule) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_BackendRule.Merge(dst, src)
|
||||
}
|
||||
func (m *BackendRule) XXX_Size() int {
|
||||
return xxx_messageInfo_BackendRule.Size(m)
|
||||
}
|
||||
func (m *BackendRule) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_BackendRule.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_BackendRule proto.InternalMessageInfo
|
||||
|
||||
func (m *BackendRule) GetSelector() string {
|
||||
if m != nil {
|
||||
return m.Selector
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *BackendRule) GetAddress() string {
|
||||
if m != nil {
|
||||
return m.Address
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *BackendRule) GetDeadline() float64 {
|
||||
if m != nil {
|
||||
return m.Deadline
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *BackendRule) GetMinDeadline() float64 {
|
||||
if m != nil {
|
||||
return m.MinDeadline
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Backend)(nil), "google.api.Backend")
|
||||
proto.RegisterType((*BackendRule)(nil), "google.api.BackendRule")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/api/backend.proto", fileDescriptor_backend_bb737a5d3bcbecd6) }
|
||||
|
||||
var fileDescriptor_backend_bb737a5d3bcbecd6 = []byte{
|
||||
// 246 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0xb1, 0x4e, 0xc3, 0x30,
|
||||
0x10, 0x86, 0xe5, 0xb6, 0x50, 0xb8, 0x54, 0x0c, 0x59, 0xb0, 0x98, 0x42, 0xa7, 0x2c, 0x38, 0x12,
|
||||
0x2c, 0x48, 0x4c, 0x44, 0x20, 0xc4, 0x16, 0x65, 0x64, 0x41, 0xae, 0x7d, 0x58, 0x16, 0x8e, 0x2f,
|
||||
0xb2, 0x5b, 0x1e, 0x80, 0x47, 0xe1, 0x49, 0x51, 0x9d, 0x10, 0xda, 0xf1, 0xbb, 0xef, 0x3f, 0xe9,
|
||||
0xee, 0x07, 0x6e, 0x88, 0x8c, 0xc3, 0x4a, 0xf6, 0xb6, 0xda, 0x48, 0xf5, 0x89, 0x5e, 0x8b, 0x3e,
|
||||
0xd0, 0x96, 0x72, 0x18, 0x8c, 0x90, 0xbd, 0x5d, 0xdf, 0xc3, 0xb2, 0x1e, 0x64, 0x7e, 0x03, 0x27,
|
||||
0x61, 0xe7, 0x30, 0x72, 0x56, 0xcc, 0xcb, 0xec, 0xf6, 0x52, 0xfc, 0xc7, 0xc4, 0x98, 0x69, 0x77,
|
||||
0x0e, 0xdb, 0x21, 0xb5, 0xfe, 0x66, 0x90, 0x1d, 0x8c, 0xf3, 0x2b, 0x38, 0x8b, 0xe8, 0x50, 0x6d,
|
||||
0x29, 0x70, 0x56, 0xb0, 0xf2, 0xbc, 0x9d, 0x38, 0xe7, 0xb0, 0x94, 0x5a, 0x07, 0x8c, 0x91, 0xcf,
|
||||
0x92, 0xfa, 0xc3, 0xfd, 0x96, 0x46, 0xa9, 0x9d, 0xf5, 0xc8, 0xe7, 0x05, 0x2b, 0x59, 0x3b, 0x71,
|
||||
0x7e, 0x0d, 0xab, 0xce, 0xfa, 0xf7, 0xc9, 0x2f, 0x92, 0xcf, 0x3a, 0xeb, 0x9f, 0xc6, 0x51, 0xed,
|
||||
0xe1, 0x42, 0x51, 0x77, 0x70, 0x69, 0xbd, 0x1a, 0x6f, 0x6a, 0xf6, 0xaf, 0x36, 0xec, 0xed, 0x79,
|
||||
0x74, 0x86, 0x9c, 0xf4, 0x46, 0x50, 0x30, 0x95, 0x41, 0x9f, 0x8a, 0xa8, 0x06, 0x25, 0x7b, 0x1b,
|
||||
0x53, 0x4b, 0x11, 0xc3, 0x97, 0x55, 0xa8, 0xc8, 0x7f, 0x58, 0xf3, 0x70, 0x44, 0x3f, 0xb3, 0xc5,
|
||||
0xcb, 0x63, 0xf3, 0xba, 0x39, 0x4d, 0x8b, 0x77, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x7d, 0xc3,
|
||||
0xd8, 0x52, 0x5d, 0x01, 0x00, 0x00,
|
||||
}
|
163
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/billing.pb.go
generated
vendored
163
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/billing.pb.go
generated
vendored
@ -1,163 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/billing.proto
|
||||
|
||||
package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Billing related configuration of the service.
|
||||
//
|
||||
// The following example shows how to configure monitored resources and metrics
|
||||
// for billing:
|
||||
//
|
||||
// monitored_resources:
|
||||
// - type: library.googleapis.com/branch
|
||||
// labels:
|
||||
// - key: /city
|
||||
// description: The city where the library branch is located in.
|
||||
// - key: /name
|
||||
// description: The name of the branch.
|
||||
// metrics:
|
||||
// - name: library.googleapis.com/book/borrowed_count
|
||||
// metric_kind: DELTA
|
||||
// value_type: INT64
|
||||
// billing:
|
||||
// consumer_destinations:
|
||||
// - monitored_resource: library.googleapis.com/branch
|
||||
// metrics:
|
||||
// - library.googleapis.com/book/borrowed_count
|
||||
type Billing struct {
|
||||
// Billing configurations for sending metrics to the consumer project.
|
||||
// There can be multiple consumer destinations per service, each one must have
|
||||
// a different monitored resource type. A metric can be used in at most
|
||||
// one consumer destination.
|
||||
ConsumerDestinations []*Billing_BillingDestination `protobuf:"bytes,8,rep,name=consumer_destinations,json=consumerDestinations,proto3" json:"consumer_destinations,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Billing) Reset() { *m = Billing{} }
|
||||
func (m *Billing) String() string { return proto.CompactTextString(m) }
|
||||
func (*Billing) ProtoMessage() {}
|
||||
func (*Billing) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_billing_36fc4fe99841ce3d, []int{0}
|
||||
}
|
||||
func (m *Billing) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Billing.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Billing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Billing.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Billing) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Billing.Merge(dst, src)
|
||||
}
|
||||
func (m *Billing) XXX_Size() int {
|
||||
return xxx_messageInfo_Billing.Size(m)
|
||||
}
|
||||
func (m *Billing) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Billing.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Billing proto.InternalMessageInfo
|
||||
|
||||
func (m *Billing) GetConsumerDestinations() []*Billing_BillingDestination {
|
||||
if m != nil {
|
||||
return m.ConsumerDestinations
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Configuration of a specific billing destination (Currently only support
|
||||
// bill against consumer project).
|
||||
type Billing_BillingDestination struct {
|
||||
// The monitored resource type. The type must be defined in
|
||||
// [Service.monitored_resources][google.api.Service.monitored_resources] section.
|
||||
MonitoredResource string `protobuf:"bytes,1,opt,name=monitored_resource,json=monitoredResource,proto3" json:"monitored_resource,omitempty"`
|
||||
// Names of the metrics to report to this billing destination.
|
||||
// Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
|
||||
Metrics []string `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Billing_BillingDestination) Reset() { *m = Billing_BillingDestination{} }
|
||||
func (m *Billing_BillingDestination) String() string { return proto.CompactTextString(m) }
|
||||
func (*Billing_BillingDestination) ProtoMessage() {}
|
||||
func (*Billing_BillingDestination) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_billing_36fc4fe99841ce3d, []int{0, 0}
|
||||
}
|
||||
func (m *Billing_BillingDestination) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Billing_BillingDestination.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Billing_BillingDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Billing_BillingDestination.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Billing_BillingDestination) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Billing_BillingDestination.Merge(dst, src)
|
||||
}
|
||||
func (m *Billing_BillingDestination) XXX_Size() int {
|
||||
return xxx_messageInfo_Billing_BillingDestination.Size(m)
|
||||
}
|
||||
func (m *Billing_BillingDestination) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Billing_BillingDestination.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Billing_BillingDestination proto.InternalMessageInfo
|
||||
|
||||
func (m *Billing_BillingDestination) GetMonitoredResource() string {
|
||||
if m != nil {
|
||||
return m.MonitoredResource
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Billing_BillingDestination) GetMetrics() []string {
|
||||
if m != nil {
|
||||
return m.Metrics
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Billing)(nil), "google.api.Billing")
|
||||
proto.RegisterType((*Billing_BillingDestination)(nil), "google.api.Billing.BillingDestination")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/api/billing.proto", fileDescriptor_billing_36fc4fe99841ce3d) }
|
||||
|
||||
var fileDescriptor_billing_36fc4fe99841ce3d = []byte{
|
||||
// 259 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0xc1, 0x4a, 0xf4, 0x30,
|
||||
0x10, 0xc7, 0xe9, 0xee, 0xc7, 0xb7, 0x6e, 0x14, 0xc1, 0xa0, 0x50, 0x16, 0x0f, 0xc5, 0x83, 0xf4,
|
||||
0x62, 0x0a, 0x7a, 0xf4, 0x64, 0x51, 0xc4, 0x5b, 0xe9, 0x51, 0x91, 0x25, 0x9b, 0x1d, 0xc3, 0x40,
|
||||
0x3b, 0x53, 0x92, 0xac, 0x0f, 0xe4, 0xbb, 0xf8, 0x5e, 0x62, 0xd3, 0xba, 0x15, 0x4f, 0x61, 0xf2,
|
||||
0xfb, 0xfd, 0x27, 0x99, 0x11, 0xa9, 0x65, 0xb6, 0x0d, 0x14, 0xba, 0xc3, 0x62, 0x83, 0x4d, 0x83,
|
||||
0x64, 0x55, 0xe7, 0x38, 0xb0, 0x14, 0x91, 0x28, 0xdd, 0xe1, 0xea, 0x7c, 0x62, 0x69, 0x22, 0x0e,
|
||||
0x3a, 0x20, 0x93, 0x8f, 0xe6, 0xc5, 0x67, 0x22, 0x16, 0x65, 0xcc, 0xca, 0x17, 0x71, 0x66, 0x98,
|
||||
0xfc, 0xae, 0x05, 0xb7, 0xde, 0x82, 0x0f, 0x48, 0x51, 0x4d, 0x0f, 0xb2, 0x79, 0x7e, 0x78, 0x7d,
|
||||
0xa9, 0xf6, 0x5d, 0xd5, 0x90, 0x19, 0xcf, 0xfb, 0xbd, 0x5e, 0x9f, 0x8e, 0x4d, 0x26, 0x97, 0x7e,
|
||||
0xf5, 0x2a, 0xe4, 0x5f, 0x57, 0x5e, 0x09, 0xd9, 0x32, 0x61, 0x60, 0x07, 0xdb, 0xb5, 0x03, 0xcf,
|
||||
0x3b, 0x67, 0x20, 0x4d, 0xb2, 0x24, 0x5f, 0xd6, 0x27, 0x3f, 0xa4, 0x1e, 0x80, 0x4c, 0xc5, 0xa2,
|
||||
0x85, 0xe0, 0xd0, 0xf8, 0x74, 0x96, 0xcd, 0xf3, 0x65, 0x3d, 0x96, 0x25, 0x89, 0x63, 0xc3, 0xed,
|
||||
0xe4, 0x87, 0xe5, 0xd1, 0xf0, 0x5c, 0xf5, 0x3d, 0x67, 0x95, 0x3c, 0x3f, 0x0c, 0xcc, 0x72, 0xa3,
|
||||
0xc9, 0x2a, 0x76, 0xb6, 0xb0, 0x40, 0xfd, 0x16, 0x8a, 0x88, 0x74, 0x87, 0xbe, 0x5f, 0x93, 0x07,
|
||||
0xf7, 0x8e, 0x06, 0x0c, 0xd3, 0x1b, 0xda, 0xdb, 0x5f, 0xd5, 0xc7, 0xec, 0xdf, 0xe3, 0x5d, 0xf5,
|
||||
0xb4, 0xf9, 0xdf, 0x07, 0x6f, 0xbe, 0x02, 0x00, 0x00, 0xff, 0xff, 0x82, 0x2a, 0x74, 0xa4, 0x84,
|
||||
0x01, 0x00, 0x00,
|
||||
}
|
210
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/consumer.pb.go
generated
vendored
210
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/consumer.pb.go
generated
vendored
@ -1,210 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/consumer.proto
|
||||
|
||||
package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Supported data type of the property values
|
||||
type Property_PropertyType int32
|
||||
|
||||
const (
|
||||
// The type is unspecified, and will result in an error.
|
||||
Property_UNSPECIFIED Property_PropertyType = 0
|
||||
// The type is `int64`.
|
||||
Property_INT64 Property_PropertyType = 1
|
||||
// The type is `bool`.
|
||||
Property_BOOL Property_PropertyType = 2
|
||||
// The type is `string`.
|
||||
Property_STRING Property_PropertyType = 3
|
||||
// The type is 'double'.
|
||||
Property_DOUBLE Property_PropertyType = 4
|
||||
)
|
||||
|
||||
var Property_PropertyType_name = map[int32]string{
|
||||
0: "UNSPECIFIED",
|
||||
1: "INT64",
|
||||
2: "BOOL",
|
||||
3: "STRING",
|
||||
4: "DOUBLE",
|
||||
}
|
||||
var Property_PropertyType_value = map[string]int32{
|
||||
"UNSPECIFIED": 0,
|
||||
"INT64": 1,
|
||||
"BOOL": 2,
|
||||
"STRING": 3,
|
||||
"DOUBLE": 4,
|
||||
}
|
||||
|
||||
func (x Property_PropertyType) String() string {
|
||||
return proto.EnumName(Property_PropertyType_name, int32(x))
|
||||
}
|
||||
func (Property_PropertyType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_consumer_f6466e3bd2853ce5, []int{1, 0}
|
||||
}
|
||||
|
||||
// A descriptor for defining project properties for a service. One service may
|
||||
// have many consumer projects, and the service may want to behave differently
|
||||
// depending on some properties on the project. For example, a project may be
|
||||
// associated with a school, or a business, or a government agency, a business
|
||||
// type property on the project may affect how a service responds to the client.
|
||||
// This descriptor defines which properties are allowed to be set on a project.
|
||||
//
|
||||
// Example:
|
||||
//
|
||||
// project_properties:
|
||||
// properties:
|
||||
// - name: NO_WATERMARK
|
||||
// type: BOOL
|
||||
// description: Allows usage of the API without watermarks.
|
||||
// - name: EXTENDED_TILE_CACHE_PERIOD
|
||||
// type: INT64
|
||||
type ProjectProperties struct {
|
||||
// List of per consumer project-specific properties.
|
||||
Properties []*Property `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ProjectProperties) Reset() { *m = ProjectProperties{} }
|
||||
func (m *ProjectProperties) String() string { return proto.CompactTextString(m) }
|
||||
func (*ProjectProperties) ProtoMessage() {}
|
||||
func (*ProjectProperties) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_consumer_f6466e3bd2853ce5, []int{0}
|
||||
}
|
||||
func (m *ProjectProperties) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ProjectProperties.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ProjectProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ProjectProperties.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ProjectProperties) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ProjectProperties.Merge(dst, src)
|
||||
}
|
||||
func (m *ProjectProperties) XXX_Size() int {
|
||||
return xxx_messageInfo_ProjectProperties.Size(m)
|
||||
}
|
||||
func (m *ProjectProperties) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ProjectProperties.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ProjectProperties proto.InternalMessageInfo
|
||||
|
||||
func (m *ProjectProperties) GetProperties() []*Property {
|
||||
if m != nil {
|
||||
return m.Properties
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Defines project properties.
|
||||
//
|
||||
// API services can define properties that can be assigned to consumer projects
|
||||
// so that backends can perform response customization without having to make
|
||||
// additional calls or maintain additional storage. For example, Maps API
|
||||
// defines properties that controls map tile cache period, or whether to embed a
|
||||
// watermark in a result.
|
||||
//
|
||||
// These values can be set via API producer console. Only API providers can
|
||||
// define and set these properties.
|
||||
type Property struct {
|
||||
// The name of the property (a.k.a key).
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// The type of this property.
|
||||
Type Property_PropertyType `protobuf:"varint,2,opt,name=type,proto3,enum=google.api.Property_PropertyType" json:"type,omitempty"`
|
||||
// The description of the property
|
||||
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Property) Reset() { *m = Property{} }
|
||||
func (m *Property) String() string { return proto.CompactTextString(m) }
|
||||
func (*Property) ProtoMessage() {}
|
||||
func (*Property) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_consumer_f6466e3bd2853ce5, []int{1}
|
||||
}
|
||||
func (m *Property) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Property.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Property.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Property) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Property.Merge(dst, src)
|
||||
}
|
||||
func (m *Property) XXX_Size() int {
|
||||
return xxx_messageInfo_Property.Size(m)
|
||||
}
|
||||
func (m *Property) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Property.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Property proto.InternalMessageInfo
|
||||
|
||||
func (m *Property) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Property) GetType() Property_PropertyType {
|
||||
if m != nil {
|
||||
return m.Type
|
||||
}
|
||||
return Property_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *Property) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*ProjectProperties)(nil), "google.api.ProjectProperties")
|
||||
proto.RegisterType((*Property)(nil), "google.api.Property")
|
||||
proto.RegisterEnum("google.api.Property_PropertyType", Property_PropertyType_name, Property_PropertyType_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/api/consumer.proto", fileDescriptor_consumer_f6466e3bd2853ce5) }
|
||||
|
||||
var fileDescriptor_consumer_f6466e3bd2853ce5 = []byte{
|
||||
// 299 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0x4f, 0x4f, 0xf2, 0x40,
|
||||
0x10, 0xc6, 0xdf, 0x85, 0xbe, 0x04, 0x06, 0xc5, 0xba, 0xf1, 0x50, 0x6f, 0x95, 0x13, 0xa7, 0x36,
|
||||
0x41, 0xf4, 0xe2, 0xad, 0x50, 0x4d, 0x13, 0x02, 0x4d, 0x81, 0x8b, 0xb7, 0x5a, 0xc7, 0x75, 0x0d,
|
||||
0xec, 0x6c, 0xb6, 0xd5, 0x84, 0x0f, 0xe8, 0xf7, 0x32, 0x2c, 0x88, 0x35, 0xf1, 0xf6, 0xcc, 0x3e,
|
||||
0x7f, 0xb2, 0xf9, 0xc1, 0xa5, 0x20, 0x12, 0x6b, 0x0c, 0x73, 0x2d, 0xc3, 0x82, 0x54, 0xf9, 0xbe,
|
||||
0x41, 0x13, 0x68, 0x43, 0x15, 0x71, 0xd8, 0x5b, 0x41, 0xae, 0x65, 0x3f, 0x81, 0xf3, 0xd4, 0xd0,
|
||||
0x1b, 0x16, 0x55, 0x6a, 0x48, 0xa3, 0xa9, 0x24, 0x96, 0x7c, 0x04, 0xa0, 0x8f, 0x97, 0xc7, 0xfc,
|
||||
0xe6, 0xa0, 0x3b, 0xbc, 0x08, 0x7e, 0x5a, 0xc1, 0x21, 0xbb, 0xcd, 0x6a, 0xb9, 0xfe, 0x27, 0x83,
|
||||
0xf6, 0xb7, 0xc1, 0x39, 0x38, 0x2a, 0xdf, 0xa0, 0xc7, 0x7c, 0x36, 0xe8, 0x64, 0x56, 0xf3, 0x1b,
|
||||
0x70, 0xaa, 0xad, 0x46, 0xaf, 0xe1, 0xb3, 0x41, 0x6f, 0x78, 0xf5, 0xd7, 0xe0, 0x51, 0x2c, 0xb7,
|
||||
0x1a, 0x33, 0x1b, 0xe7, 0x3e, 0x74, 0x9f, 0xb1, 0x2c, 0x8c, 0xd4, 0x95, 0x24, 0xe5, 0x35, 0xed,
|
||||
0x62, 0xfd, 0xa9, 0x3f, 0x85, 0x93, 0x7a, 0x8f, 0x9f, 0x41, 0x77, 0x35, 0x5b, 0xa4, 0xf1, 0x38,
|
||||
0xb9, 0x4f, 0xe2, 0x89, 0xfb, 0x8f, 0x77, 0xe0, 0x7f, 0x32, 0x5b, 0xde, 0x8e, 0x5c, 0xc6, 0xdb,
|
||||
0xe0, 0x44, 0xf3, 0xf9, 0xd4, 0x6d, 0x70, 0x80, 0xd6, 0x62, 0x99, 0x25, 0xb3, 0x07, 0xb7, 0xb9,
|
||||
0xd3, 0x93, 0xf9, 0x2a, 0x9a, 0xc6, 0xae, 0x13, 0xbd, 0x42, 0xaf, 0xa0, 0x4d, 0xed, 0x77, 0xd1,
|
||||
0xe9, 0xf8, 0x00, 0x30, 0xdd, 0xf1, 0x4b, 0xd9, 0x63, 0x7c, 0x30, 0x05, 0xad, 0x73, 0x25, 0x02,
|
||||
0x32, 0x22, 0x14, 0xa8, 0x2c, 0xdd, 0x70, 0x6f, 0xe5, 0x5a, 0x96, 0x96, 0x7d, 0x89, 0xe6, 0x43,
|
||||
0x16, 0x58, 0x90, 0x7a, 0x91, 0xe2, 0xee, 0xd7, 0xf5, 0xd4, 0xb2, 0x8d, 0xeb, 0xaf, 0x00, 0x00,
|
||||
0x00, 0xff, 0xff, 0xb7, 0xa4, 0x04, 0x2c, 0xac, 0x01, 0x00, 0x00,
|
||||
}
|
164
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/context.pb.go
generated
vendored
164
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/context.pb.go
generated
vendored
@ -1,164 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/context.proto
|
||||
|
||||
package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// `Context` defines which contexts an API requests.
|
||||
//
|
||||
// Example:
|
||||
//
|
||||
// context:
|
||||
// rules:
|
||||
// - selector: "*"
|
||||
// requested:
|
||||
// - google.rpc.context.ProjectContext
|
||||
// - google.rpc.context.OriginContext
|
||||
//
|
||||
// The above specifies that all methods in the API request
|
||||
// `google.rpc.context.ProjectContext` and
|
||||
// `google.rpc.context.OriginContext`.
|
||||
//
|
||||
// Available context types are defined in package
|
||||
// `google.rpc.context`.
|
||||
type Context struct {
|
||||
// A list of RPC context rules that apply to individual API methods.
|
||||
//
|
||||
// **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
Rules []*ContextRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Context) Reset() { *m = Context{} }
|
||||
func (m *Context) String() string { return proto.CompactTextString(m) }
|
||||
func (*Context) ProtoMessage() {}
|
||||
func (*Context) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_context_7f48bb214df6c175, []int{0}
|
||||
}
|
||||
func (m *Context) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Context.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Context) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Context.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Context) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Context.Merge(dst, src)
|
||||
}
|
||||
func (m *Context) XXX_Size() int {
|
||||
return xxx_messageInfo_Context.Size(m)
|
||||
}
|
||||
func (m *Context) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Context.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Context proto.InternalMessageInfo
|
||||
|
||||
func (m *Context) GetRules() []*ContextRule {
|
||||
if m != nil {
|
||||
return m.Rules
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A context rule provides information about the context for an individual API
|
||||
// element.
|
||||
type ContextRule struct {
|
||||
// Selects the methods to which this rule applies.
|
||||
//
|
||||
// Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
|
||||
Selector string `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
|
||||
// A list of full type names of requested contexts.
|
||||
Requested []string `protobuf:"bytes,2,rep,name=requested,proto3" json:"requested,omitempty"`
|
||||
// A list of full type names of provided contexts.
|
||||
Provided []string `protobuf:"bytes,3,rep,name=provided,proto3" json:"provided,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ContextRule) Reset() { *m = ContextRule{} }
|
||||
func (m *ContextRule) String() string { return proto.CompactTextString(m) }
|
||||
func (*ContextRule) ProtoMessage() {}
|
||||
func (*ContextRule) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_context_7f48bb214df6c175, []int{1}
|
||||
}
|
||||
func (m *ContextRule) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ContextRule.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ContextRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ContextRule.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ContextRule) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ContextRule.Merge(dst, src)
|
||||
}
|
||||
func (m *ContextRule) XXX_Size() int {
|
||||
return xxx_messageInfo_ContextRule.Size(m)
|
||||
}
|
||||
func (m *ContextRule) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ContextRule.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ContextRule proto.InternalMessageInfo
|
||||
|
||||
func (m *ContextRule) GetSelector() string {
|
||||
if m != nil {
|
||||
return m.Selector
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ContextRule) GetRequested() []string {
|
||||
if m != nil {
|
||||
return m.Requested
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ContextRule) GetProvided() []string {
|
||||
if m != nil {
|
||||
return m.Provided
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Context)(nil), "google.api.Context")
|
||||
proto.RegisterType((*ContextRule)(nil), "google.api.ContextRule")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/api/context.proto", fileDescriptor_context_7f48bb214df6c175) }
|
||||
|
||||
var fileDescriptor_context_7f48bb214df6c175 = []byte{
|
||||
// 231 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0x4f, 0x4b, 0xc4, 0x30,
|
||||
0x14, 0xc4, 0xe9, 0xd6, 0x7f, 0x7d, 0x2b, 0x1e, 0x7a, 0x31, 0x88, 0x87, 0xb2, 0xa7, 0x5e, 0x4c,
|
||||
0x41, 0x2f, 0x82, 0x27, 0x57, 0x44, 0xbc, 0x95, 0x1e, 0xbd, 0xc5, 0xf4, 0x19, 0x02, 0x31, 0x2f,
|
||||
0x26, 0xe9, 0xe2, 0xe7, 0xf1, 0x93, 0xca, 0x26, 0x65, 0xff, 0x1c, 0x67, 0x7e, 0x33, 0x24, 0xf3,
|
||||
0x80, 0x29, 0x22, 0x65, 0xb0, 0x13, 0x4e, 0x77, 0x92, 0x6c, 0xc4, 0xdf, 0xc8, 0x9d, 0xa7, 0x48,
|
||||
0x35, 0x64, 0xc2, 0x85, 0xd3, 0xab, 0x47, 0x38, 0x7f, 0xc9, 0xb0, 0xbe, 0x83, 0x53, 0x3f, 0x19,
|
||||
0x0c, 0xac, 0x68, 0xca, 0x76, 0x79, 0x7f, 0xcd, 0xf7, 0x31, 0x3e, 0x67, 0x86, 0xc9, 0xe0, 0x90,
|
||||
0x53, 0x2b, 0x09, 0xcb, 0x03, 0xb7, 0xbe, 0x81, 0x8b, 0x80, 0x06, 0x65, 0x24, 0xcf, 0x8a, 0xa6,
|
||||
0x68, 0xab, 0x61, 0xa7, 0xeb, 0x5b, 0xa8, 0x3c, 0xfe, 0x4c, 0x18, 0x22, 0x8e, 0x6c, 0xd1, 0x94,
|
||||
0x6d, 0x35, 0xec, 0x8d, 0x6d, 0xd3, 0x79, 0xda, 0xe8, 0x11, 0x47, 0x56, 0x26, 0xb8, 0xd3, 0x6b,
|
||||
0x0b, 0x57, 0x92, 0xbe, 0x0f, 0x7e, 0xb2, 0xbe, 0x9c, 0x1f, 0xed, 0xb7, 0x53, 0xfa, 0xe2, 0xe3,
|
||||
0x75, 0x66, 0x8a, 0x8c, 0xb0, 0x8a, 0x93, 0x57, 0x9d, 0x42, 0x9b, 0x86, 0x76, 0x19, 0x09, 0xa7,
|
||||
0x43, 0xba, 0x42, 0x40, 0xbf, 0xd1, 0x12, 0x25, 0xd9, 0x2f, 0xad, 0x9e, 0x8e, 0xd4, 0xdf, 0xe2,
|
||||
0xe4, 0xed, 0xb9, 0x7f, 0xff, 0x3c, 0x4b, 0xc5, 0x87, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb5,
|
||||
0x18, 0x98, 0x7a, 0x3d, 0x01, 0x00, 0x00,
|
||||
}
|
83
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/control.pb.go
generated
vendored
83
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/control.pb.go
generated
vendored
@ -1,83 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/control.proto
|
||||
|
||||
package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Selects and configures the service controller used by the service. The
|
||||
// service controller handles features like abuse, quota, billing, logging,
|
||||
// monitoring, etc.
|
||||
type Control struct {
|
||||
// The service control environment to use. If empty, no control plane
|
||||
// feature (like quota and billing) will be enabled.
|
||||
Environment string `protobuf:"bytes,1,opt,name=environment,proto3" json:"environment,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Control) Reset() { *m = Control{} }
|
||||
func (m *Control) String() string { return proto.CompactTextString(m) }
|
||||
func (*Control) ProtoMessage() {}
|
||||
func (*Control) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_control_f350b83573452faa, []int{0}
|
||||
}
|
||||
func (m *Control) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Control.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Control) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Control.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Control) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Control.Merge(dst, src)
|
||||
}
|
||||
func (m *Control) XXX_Size() int {
|
||||
return xxx_messageInfo_Control.Size(m)
|
||||
}
|
||||
func (m *Control) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Control.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Control proto.InternalMessageInfo
|
||||
|
||||
func (m *Control) GetEnvironment() string {
|
||||
if m != nil {
|
||||
return m.Environment
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Control)(nil), "google.api.Control")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/api/control.proto", fileDescriptor_control_f350b83573452faa) }
|
||||
|
||||
var fileDescriptor_control_f350b83573452faa = []byte{
|
||||
// 165 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x48, 0xcf, 0xcf, 0x4f,
|
||||
0xcf, 0x49, 0xd5, 0x4f, 0x2c, 0xc8, 0xd4, 0x4f, 0xce, 0xcf, 0x2b, 0x29, 0xca, 0xcf, 0xd1, 0x2b,
|
||||
0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x82, 0xc8, 0xe8, 0x25, 0x16, 0x64, 0x2a, 0x69, 0x73, 0xb1,
|
||||
0x3b, 0x43, 0x24, 0x85, 0x14, 0xb8, 0xb8, 0x53, 0xf3, 0xca, 0x32, 0x8b, 0xf2, 0xf3, 0x72, 0x53,
|
||||
0xf3, 0x4a, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x90, 0x85, 0x9c, 0xf2, 0xb8, 0xf8, 0x92,
|
||||
0xf3, 0x73, 0xf5, 0x10, 0xda, 0x9d, 0x78, 0xa0, 0x9a, 0x03, 0x40, 0x06, 0x07, 0x30, 0x46, 0xb9,
|
||||
0x42, 0xe5, 0xd2, 0xf3, 0x73, 0x12, 0xf3, 0xd2, 0xf5, 0xf2, 0x8b, 0xd2, 0xf5, 0xd3, 0x53, 0xf3,
|
||||
0xc0, 0xd6, 0xea, 0x43, 0xa4, 0x12, 0x0b, 0x32, 0x8b, 0xc1, 0x6e, 0x2a, 0x4e, 0x2d, 0x2a, 0xcb,
|
||||
0x4c, 0x4e, 0x4d, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xb7, 0x46, 0xe1, 0x2d, 0x62, 0x62, 0x71, 0x77,
|
||||
0x0c, 0xf0, 0x4c, 0x62, 0x03, 0x6b, 0x34, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x44, 0x6e, 0x78,
|
||||
0xbd, 0xcb, 0x00, 0x00, 0x00,
|
||||
}
|
339
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/documentation.pb.go
generated
vendored
339
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/documentation.pb.go
generated
vendored
@ -1,339 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/documentation.proto
|
||||
|
||||
package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// `Documentation` provides the information for describing a service.
|
||||
//
|
||||
// Example:
|
||||
// <pre><code>documentation:
|
||||
// summary: >
|
||||
// The Google Calendar API gives access
|
||||
// to most calendar features.
|
||||
// pages:
|
||||
// - name: Overview
|
||||
// content: (== include google/foo/overview.md ==)
|
||||
// - name: Tutorial
|
||||
// content: (== include google/foo/tutorial.md ==)
|
||||
// subpages;
|
||||
// - name: Java
|
||||
// content: (== include google/foo/tutorial_java.md ==)
|
||||
// rules:
|
||||
// - selector: google.calendar.Calendar.Get
|
||||
// description: >
|
||||
// ...
|
||||
// - selector: google.calendar.Calendar.Put
|
||||
// description: >
|
||||
// ...
|
||||
// </code></pre>
|
||||
// Documentation is provided in markdown syntax. In addition to
|
||||
// standard markdown features, definition lists, tables and fenced
|
||||
// code blocks are supported. Section headers can be provided and are
|
||||
// interpreted relative to the section nesting of the context where
|
||||
// a documentation fragment is embedded.
|
||||
//
|
||||
// Documentation from the IDL is merged with documentation defined
|
||||
// via the config at normalization time, where documentation provided
|
||||
// by config rules overrides IDL provided.
|
||||
//
|
||||
// A number of constructs specific to the API platform are supported
|
||||
// in documentation text.
|
||||
//
|
||||
// In order to reference a proto element, the following
|
||||
// notation can be used:
|
||||
// <pre><code>[fully.qualified.proto.name][]</code></pre>
|
||||
// To override the display text used for the link, this can be used:
|
||||
// <pre><code>[display text][fully.qualified.proto.name]</code></pre>
|
||||
// Text can be excluded from doc using the following notation:
|
||||
// <pre><code>(-- internal comment --)</code></pre>
|
||||
//
|
||||
// A few directives are available in documentation. Note that
|
||||
// directives must appear on a single line to be properly
|
||||
// identified. The `include` directive includes a markdown file from
|
||||
// an external source:
|
||||
// <pre><code>(== include path/to/file ==)</code></pre>
|
||||
// The `resource_for` directive marks a message to be the resource of
|
||||
// a collection in REST view. If it is not specified, tools attempt
|
||||
// to infer the resource from the operations in a collection:
|
||||
// <pre><code>(== resource_for v1.shelves.books ==)</code></pre>
|
||||
// The directive `suppress_warning` does not directly affect documentation
|
||||
// and is documented together with service config validation.
|
||||
type Documentation struct {
|
||||
// A short summary of what the service does. Can only be provided by
|
||||
// plain text.
|
||||
Summary string `protobuf:"bytes,1,opt,name=summary,proto3" json:"summary,omitempty"`
|
||||
// The top level pages for the documentation set.
|
||||
Pages []*Page `protobuf:"bytes,5,rep,name=pages,proto3" json:"pages,omitempty"`
|
||||
// A list of documentation rules that apply to individual API elements.
|
||||
//
|
||||
// **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
Rules []*DocumentationRule `protobuf:"bytes,3,rep,name=rules,proto3" json:"rules,omitempty"`
|
||||
// The URL to the root of documentation.
|
||||
DocumentationRootUrl string `protobuf:"bytes,4,opt,name=documentation_root_url,json=documentationRootUrl,proto3" json:"documentation_root_url,omitempty"`
|
||||
// Declares a single overview page. For example:
|
||||
// <pre><code>documentation:
|
||||
// summary: ...
|
||||
// overview: (== include overview.md ==)
|
||||
// </code></pre>
|
||||
// This is a shortcut for the following declaration (using pages style):
|
||||
// <pre><code>documentation:
|
||||
// summary: ...
|
||||
// pages:
|
||||
// - name: Overview
|
||||
// content: (== include overview.md ==)
|
||||
// </code></pre>
|
||||
// Note: you cannot specify both `overview` field and `pages` field.
|
||||
Overview string `protobuf:"bytes,2,opt,name=overview,proto3" json:"overview,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Documentation) Reset() { *m = Documentation{} }
|
||||
func (m *Documentation) String() string { return proto.CompactTextString(m) }
|
||||
func (*Documentation) ProtoMessage() {}
|
||||
func (*Documentation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_documentation_ed988d5b3c756a43, []int{0}
|
||||
}
|
||||
func (m *Documentation) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Documentation.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Documentation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Documentation.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Documentation) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Documentation.Merge(dst, src)
|
||||
}
|
||||
func (m *Documentation) XXX_Size() int {
|
||||
return xxx_messageInfo_Documentation.Size(m)
|
||||
}
|
||||
func (m *Documentation) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Documentation.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Documentation proto.InternalMessageInfo
|
||||
|
||||
func (m *Documentation) GetSummary() string {
|
||||
if m != nil {
|
||||
return m.Summary
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Documentation) GetPages() []*Page {
|
||||
if m != nil {
|
||||
return m.Pages
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Documentation) GetRules() []*DocumentationRule {
|
||||
if m != nil {
|
||||
return m.Rules
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Documentation) GetDocumentationRootUrl() string {
|
||||
if m != nil {
|
||||
return m.DocumentationRootUrl
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Documentation) GetOverview() string {
|
||||
if m != nil {
|
||||
return m.Overview
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// A documentation rule provides information about individual API elements.
|
||||
type DocumentationRule struct {
|
||||
// The selector is a comma-separated list of patterns. Each pattern is a
|
||||
// qualified name of the element which may end in "*", indicating a wildcard.
|
||||
// Wildcards are only allowed at the end and for a whole component of the
|
||||
// qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". To
|
||||
// specify a default for all applicable elements, the whole pattern "*"
|
||||
// is used.
|
||||
Selector string `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
|
||||
// Description of the selected API(s).
|
||||
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
||||
// Deprecation description of the selected element(s). It can be provided if an
|
||||
// element is marked as `deprecated`.
|
||||
DeprecationDescription string `protobuf:"bytes,3,opt,name=deprecation_description,json=deprecationDescription,proto3" json:"deprecation_description,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *DocumentationRule) Reset() { *m = DocumentationRule{} }
|
||||
func (m *DocumentationRule) String() string { return proto.CompactTextString(m) }
|
||||
func (*DocumentationRule) ProtoMessage() {}
|
||||
func (*DocumentationRule) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_documentation_ed988d5b3c756a43, []int{1}
|
||||
}
|
||||
func (m *DocumentationRule) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_DocumentationRule.Unmarshal(m, b)
|
||||
}
|
||||
func (m *DocumentationRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_DocumentationRule.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *DocumentationRule) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DocumentationRule.Merge(dst, src)
|
||||
}
|
||||
func (m *DocumentationRule) XXX_Size() int {
|
||||
return xxx_messageInfo_DocumentationRule.Size(m)
|
||||
}
|
||||
func (m *DocumentationRule) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_DocumentationRule.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_DocumentationRule proto.InternalMessageInfo
|
||||
|
||||
func (m *DocumentationRule) GetSelector() string {
|
||||
if m != nil {
|
||||
return m.Selector
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *DocumentationRule) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *DocumentationRule) GetDeprecationDescription() string {
|
||||
if m != nil {
|
||||
return m.DeprecationDescription
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Represents a documentation page. A page can contain subpages to represent
|
||||
// nested documentation set structure.
|
||||
type Page struct {
|
||||
// The name of the page. It will be used as an identity of the page to
|
||||
// generate URI of the page, text of the link to this page in navigation,
|
||||
// etc. The full page name (start from the root page name to this page
|
||||
// concatenated with `.`) can be used as reference to the page in your
|
||||
// documentation. For example:
|
||||
// <pre><code>pages:
|
||||
// - name: Tutorial
|
||||
// content: (== include tutorial.md ==)
|
||||
// subpages:
|
||||
// - name: Java
|
||||
// content: (== include tutorial_java.md ==)
|
||||
// </code></pre>
|
||||
// You can reference `Java` page using Markdown reference link syntax:
|
||||
// `[Java][Tutorial.Java]`.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// The Markdown content of the page. You can use <code>(== include {path} ==)</code>
|
||||
// to include content from a Markdown file.
|
||||
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
|
||||
// Subpages of this page. The order of subpages specified here will be
|
||||
// honored in the generated docset.
|
||||
Subpages []*Page `protobuf:"bytes,3,rep,name=subpages,proto3" json:"subpages,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Page) Reset() { *m = Page{} }
|
||||
func (m *Page) String() string { return proto.CompactTextString(m) }
|
||||
func (*Page) ProtoMessage() {}
|
||||
func (*Page) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_documentation_ed988d5b3c756a43, []int{2}
|
||||
}
|
||||
func (m *Page) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Page.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Page) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Page.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Page) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Page.Merge(dst, src)
|
||||
}
|
||||
func (m *Page) XXX_Size() int {
|
||||
return xxx_messageInfo_Page.Size(m)
|
||||
}
|
||||
func (m *Page) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Page.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Page proto.InternalMessageInfo
|
||||
|
||||
func (m *Page) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Page) GetContent() string {
|
||||
if m != nil {
|
||||
return m.Content
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Page) GetSubpages() []*Page {
|
||||
if m != nil {
|
||||
return m.Subpages
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Documentation)(nil), "google.api.Documentation")
|
||||
proto.RegisterType((*DocumentationRule)(nil), "google.api.DocumentationRule")
|
||||
proto.RegisterType((*Page)(nil), "google.api.Page")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/api/documentation.proto", fileDescriptor_documentation_ed988d5b3c756a43)
|
||||
}
|
||||
|
||||
var fileDescriptor_documentation_ed988d5b3c756a43 = []byte{
|
||||
// 356 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x6a, 0xe3, 0x30,
|
||||
0x14, 0x45, 0x71, 0xec, 0xcc, 0x64, 0x5e, 0x98, 0x61, 0x46, 0x0c, 0x19, 0x33, 0xd0, 0x12, 0xb2,
|
||||
0x28, 0x59, 0x14, 0x1b, 0x9a, 0x42, 0x17, 0x5d, 0x35, 0xa4, 0x94, 0xee, 0x8c, 0xa1, 0x9b, 0x6e,
|
||||
0x82, 0xa2, 0xbc, 0x0a, 0x83, 0xad, 0x67, 0x24, 0x39, 0xa5, 0xbf, 0xd0, 0xcf, 0xe8, 0x57, 0xf5,
|
||||
0x73, 0x8a, 0x65, 0x27, 0xb1,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, 0x7d, 0x47, 0x4f, 0x3a, 0xf6, 0xea, 0xe8, 0xce, 0x36, 0x10, 0xd4, 0x15, 0x31, 0x06,
|
||||
0x81, 0xe2, 0x05, 0xb6, 0xd1, 0xee, 0xbb, 0x6e, 0x5c, 0x90, 0xb2, 0xa8, 0x6c, 0x1b, 0xb9, 0x97,
|
||||
0xec, 0x1c, 0x46, 0xa6, 0xda, 0x34, 0xa5, 0xfb, 0x5f, 0x94, 0x7e, 0x20, 0x96, 0x16, 0x7e, 0x09,
|
||||
0x2a, 0x3a, 0xc0, 0x92, 0xf5, 0xce, 0x9f, 0xd4, 0xb7, 0x9f, 0x78, 0x8f, 0xb7, 0x2d, 0x21, 0x29,
|
||||
0xe7, 0x4a, 0x46, 0xa4, 0x65, 0x2c, 0x51, 0xb9, 0xb7, 0x11, 0x37, 0x16, 0x2f, 0x33, 0xe3, 0x9e,
|
||||
0x8f, 0xa9, 0xbb, 0x14, 0x28, 0x48, 0x3d, 0x65, 0xf2, 0xba, 0xa7, 0xde, 0x06, 0xc1, 0xdd, 0x4d,
|
||||
0x72, 0xbf, 0xf9, 0xe6, 0x16, 0x2e, 0x3e, 0x02, 0x00, 0x00, 0xff, 0xff, 0x3e, 0x04, 0x32, 0xbf,
|
||||
0x76, 0x02, 0x00, 0x00,
|
||||
}
|
149
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/endpoint.pb.go
generated
vendored
149
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/endpoint.pb.go
generated
vendored
@ -1,149 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/endpoint.proto
|
||||
|
||||
package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// `Endpoint` describes a network endpoint that serves a set of APIs.
|
||||
// A service may expose any number of endpoints, and all endpoints share the
|
||||
// same service configuration, such as quota configuration and monitoring
|
||||
// configuration.
|
||||
//
|
||||
// Example service configuration:
|
||||
//
|
||||
// name: library-example.googleapis.com
|
||||
// endpoints:
|
||||
// # Below entry makes 'google.example.library.v1.Library'
|
||||
// # API be served from endpoint address library-example.googleapis.com.
|
||||
// # It also allows HTTP OPTIONS calls to be passed to the backend, for
|
||||
// # it to decide whether the subsequent cross-origin request is
|
||||
// # allowed to proceed.
|
||||
// - name: library-example.googleapis.com
|
||||
// allow_cors: true
|
||||
type Endpoint struct {
|
||||
// The canonical name of this endpoint.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// DEPRECATED: This field is no longer supported. Instead of using aliases,
|
||||
// please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended
|
||||
// aliases.
|
||||
//
|
||||
// Additional names that this endpoint will be hosted on.
|
||||
Aliases []string `protobuf:"bytes,2,rep,name=aliases,proto3" json:"aliases,omitempty"`
|
||||
// The list of features enabled on this endpoint.
|
||||
Features []string `protobuf:"bytes,4,rep,name=features,proto3" json:"features,omitempty"`
|
||||
// The specification of an Internet routable address of API frontend that will
|
||||
// handle requests to this [API Endpoint](https://cloud.google.com/apis/design/glossary).
|
||||
// It should be either a valid IPv4 address or a fully-qualified domain name.
|
||||
// For example, "8.8.8.8" or "myservice.appspot.com".
|
||||
Target string `protobuf:"bytes,101,opt,name=target,proto3" json:"target,omitempty"`
|
||||
// Allowing
|
||||
// [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
|
||||
// cross-domain traffic, would allow the backends served from this endpoint to
|
||||
// receive and respond to HTTP OPTIONS requests. The response will be used by
|
||||
// the browser to determine whether the subsequent cross-origin request is
|
||||
// allowed to proceed.
|
||||
AllowCors bool `protobuf:"varint,5,opt,name=allow_cors,json=allowCors,proto3" json:"allow_cors,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Endpoint) Reset() { *m = Endpoint{} }
|
||||
func (m *Endpoint) String() string { return proto.CompactTextString(m) }
|
||||
func (*Endpoint) ProtoMessage() {}
|
||||
func (*Endpoint) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_endpoint_d87650ae3428bec5, []int{0}
|
||||
}
|
||||
func (m *Endpoint) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Endpoint.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Endpoint.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Endpoint) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Endpoint.Merge(dst, src)
|
||||
}
|
||||
func (m *Endpoint) XXX_Size() int {
|
||||
return xxx_messageInfo_Endpoint.Size(m)
|
||||
}
|
||||
func (m *Endpoint) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Endpoint.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Endpoint proto.InternalMessageInfo
|
||||
|
||||
func (m *Endpoint) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Endpoint) GetAliases() []string {
|
||||
if m != nil {
|
||||
return m.Aliases
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Endpoint) GetFeatures() []string {
|
||||
if m != nil {
|
||||
return m.Features
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Endpoint) GetTarget() string {
|
||||
if m != nil {
|
||||
return m.Target
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Endpoint) GetAllowCors() bool {
|
||||
if m != nil {
|
||||
return m.AllowCors
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Endpoint)(nil), "google.api.Endpoint")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/api/endpoint.proto", fileDescriptor_endpoint_d87650ae3428bec5) }
|
||||
|
||||
var fileDescriptor_endpoint_d87650ae3428bec5 = []byte{
|
||||
// 245 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8f, 0xb1, 0x4e, 0xc3, 0x30,
|
||||
0x10, 0x86, 0xe5, 0x12, 0x4a, 0x72, 0x12, 0x0c, 0x1e, 0x90, 0xa9, 0x40, 0x8a, 0x98, 0x32, 0x25,
|
||||
0x03, 0x23, 0x13, 0x45, 0x15, 0x62, 0x8b, 0x32, 0xb2, 0xa0, 0x23, 0x5c, 0x2d, 0x4b, 0xae, 0xcf,
|
||||
0xb2, 0x0d, 0x3c, 0x04, 0x6f, 0xc1, 0x93, 0x22, 0x9c, 0x14, 0xe8, 0xe6, 0xcf, 0xdf, 0xdd, 0xe9,
|
||||
0xff, 0xe1, 0x42, 0x33, 0x6b, 0x4b, 0x1d, 0x7a, 0xd3, 0x91, 0x7b, 0xf5, 0x6c, 0x5c, 0x6a, 0x7d,
|
||||
0xe0, 0xc4, 0x12, 0x26, 0xd5, 0xa2, 0x37, 0xab, 0xcb, 0x7f, 0x63, 0xe8, 0x1c, 0x27, 0x4c, 0x86,
|
||||
0x5d, 0x9c, 0x26, 0xaf, 0x3f, 0x05, 0x94, 0x9b, 0x79, 0x59, 0x4a, 0x28, 0x1c, 0xee, 0x48, 0x89,
|
||||
0x5a, 0x34, 0xd5, 0x90, 0xdf, 0x52, 0xc1, 0x09, 0x5a, 0x83, 0x91, 0xa2, 0x5a, 0xd4, 0x47, 0x4d,
|
||||
0x35, 0xec, 0x51, 0xae, 0xa0, 0xdc, 0x12, 0xa6, 0xb7, 0x40, 0x51, 0x15, 0x59, 0xfd, 0xb2, 0x3c,
|
||||
0x87, 0x65, 0xc2, 0xa0, 0x29, 0x29, 0xca, 0xb7, 0x66, 0x92, 0x57, 0x00, 0x68, 0x2d, 0x7f, 0x3c,
|
||||
0x8f, 0x1c, 0xa2, 0x3a, 0xae, 0x45, 0x53, 0x0e, 0x55, 0xfe, 0xb9, 0xe7, 0x10, 0xd7, 0x0c, 0x67,
|
||||
0x23, 0xef, 0xda, 0xbf, 0xf4, 0xeb, 0xd3, 0x7d, 0xb8, 0xfe, 0x27, 0x6e, 0x2f, 0x9e, 0x36, 0xb3,
|
||||
0xd4, 0x6c, 0xd1, 0xe9, 0x96, 0x83, 0xee, 0x34, 0xb9, 0x5c, 0xa6, 0x9b, 0x14, 0x7a, 0x13, 0x73,
|
||||
0xdb, 0x48, 0xe1, 0xdd, 0x8c, 0x34, 0xb2, 0xdb, 0x1a, 0x7d, 0x7b, 0x40, 0x5f, 0x8b, 0xe2, 0xe1,
|
||||
0xae, 0x7f, 0x7c, 0x59, 0xe6, 0xc5, 0x9b, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc8, 0x32, 0xa4,
|
||||
0x36, 0x4c, 0x01, 0x00, 0x00,
|
||||
}
|
126
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/log.pb.go
generated
vendored
126
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/log.pb.go
generated
vendored
@ -1,126 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/log.proto
|
||||
|
||||
package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import label "google.golang.org/genproto/googleapis/api/label"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// A description of a log type. Example in YAML format:
|
||||
//
|
||||
// - name: library.googleapis.com/activity_history
|
||||
// description: The history of borrowing and returning library items.
|
||||
// display_name: Activity
|
||||
// labels:
|
||||
// - key: /customer_id
|
||||
// description: Identifier of a library customer
|
||||
type LogDescriptor struct {
|
||||
// The name of the log. It must be less than 512 characters long and can
|
||||
// include the following characters: upper- and lower-case alphanumeric
|
||||
// characters [A-Za-z0-9], and punctuation characters including
|
||||
// slash, underscore, hyphen, period [/_-.].
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// The set of labels that are available to describe a specific log entry.
|
||||
// Runtime requests that contain labels not specified here are
|
||||
// considered invalid.
|
||||
Labels []*label.LabelDescriptor `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
|
||||
// A human-readable description of this log. This information appears in
|
||||
// the documentation and can contain details.
|
||||
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
||||
// The human-readable name for this log. This information appears on
|
||||
// the user interface and should be concise.
|
||||
DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *LogDescriptor) Reset() { *m = LogDescriptor{} }
|
||||
func (m *LogDescriptor) String() string { return proto.CompactTextString(m) }
|
||||
func (*LogDescriptor) ProtoMessage() {}
|
||||
func (*LogDescriptor) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_log_43ef3b42193db0e6, []int{0}
|
||||
}
|
||||
func (m *LogDescriptor) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_LogDescriptor.Unmarshal(m, b)
|
||||
}
|
||||
func (m *LogDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_LogDescriptor.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *LogDescriptor) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_LogDescriptor.Merge(dst, src)
|
||||
}
|
||||
func (m *LogDescriptor) XXX_Size() int {
|
||||
return xxx_messageInfo_LogDescriptor.Size(m)
|
||||
}
|
||||
func (m *LogDescriptor) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_LogDescriptor.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_LogDescriptor proto.InternalMessageInfo
|
||||
|
||||
func (m *LogDescriptor) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *LogDescriptor) GetLabels() []*label.LabelDescriptor {
|
||||
if m != nil {
|
||||
return m.Labels
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *LogDescriptor) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *LogDescriptor) GetDisplayName() string {
|
||||
if m != nil {
|
||||
return m.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*LogDescriptor)(nil), "google.api.LogDescriptor")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/api/log.proto", fileDescriptor_log_43ef3b42193db0e6) }
|
||||
|
||||
var fileDescriptor_log_43ef3b42193db0e6 = []byte{
|
||||
// 238 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8f, 0xc1, 0x4a, 0xc3, 0x40,
|
||||
0x10, 0x86, 0x49, 0x1b, 0x8a, 0x6e, 0xd5, 0xc3, 0x22, 0x12, 0xf4, 0x12, 0x3d, 0xf5, 0xb4, 0x01,
|
||||
0x7b, 0xf4, 0x64, 0x51, 0x44, 0x08, 0x12, 0x7a, 0xf4, 0x22, 0xd3, 0x74, 0x1c, 0x46, 0x36, 0x3b,
|
||||
0xcb, 0x6e, 0x11, 0x7c, 0x18, 0x2f, 0x3e, 0xa9, 0x74, 0x13, 0x68, 0x7a, 0xdb, 0xfd, 0xe6, 0x9b,
|
||||
0x7f, 0x66, 0xd4, 0x25, 0x89, 0x90, 0xc5, 0x0a, 0x3c, 0x57, 0x56, 0xc8, 0xf8, 0x20, 0x3b, 0xd1,
|
||||
0xaa, 0xa7, 0x06, 0x3c, 0x5f, 0x5f, 0x8d, 0x0d, 0xd8, 0xa0, 0xed, 0x9d, 0xbb, 0xdf, 0x4c, 0x9d,
|
||||
0xd7, 0x42, 0x4f, 0x18, 0xdb, 0xc0, 0x7e, 0x27, 0x41, 0x6b, 0x95, 0x3b, 0xe8, 0xb0, 0xc8, 0xca,
|
||||
0x6c, 0x71, 0xba, 0x4e, 0x6f, 0xbd, 0x54, 0xb3, 0xd4, 0x14, 0x8b, 0x49, 0x39, 0x5d, 0xcc, 0xef,
|
||||
0x6f, 0xcc, 0x21, 0xda, 0xd4, 0xfb, 0xca, 0x21, 0x60, 0x3d, 0xa8, 0xba, 0x54, 0xf3, 0xed, 0x40,
|
||||
0x59, 0x5c, 0x31, 0x4d, 0x79, 0x63, 0xa4, 0x6f, 0xd5, 0xd9, 0x96, 0xa3, 0xb7, 0xf0, 0xf3, 0x91,
|
||||
0x46, 0xe6, 0x83, 0xd2, 0xb3, 0x37, 0xe8, 0x70, 0xf5, 0xa5, 0x2e, 0x5a, 0xe9, 0x46, 0xe3, 0x56,
|
||||
0x27, 0xb5, 0x50, 0xb3, 0xdf, 0xbd, 0xc9, 0xde, 0x9f, 0x07, 0x4e, 0x62, 0xc1, 0x91, 0x91, 0x40,
|
||||
0x15, 0xa1, 0x4b, 0x97, 0x55, 0x7d, 0x09, 0x3c, 0xc7, 0x74, 0x74, 0xc4, 0xf0, 0xcd, 0x2d, 0xb6,
|
||||
0xe2, 0x3e, 0x99, 0x1e, 0x8e, 0x7e, 0x7f, 0x93, 0xfc, 0xe5, 0xb1, 0x79, 0xdd, 0xcc, 0x52, 0xe3,
|
||||
0xf2, 0x3f, 0x00, 0x00, 0xff, 0xff, 0x25, 0x6c, 0x32, 0xff, 0x4e, 0x01, 0x00, 0x00,
|
||||
}
|
185
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/logging.pb.go
generated
vendored
185
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/logging.pb.go
generated
vendored
@ -1,185 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/logging.proto
|
||||
|
||||
package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Logging configuration of the service.
|
||||
//
|
||||
// The following example shows how to configure logs to be sent to the
|
||||
// producer and consumer projects. In the example, the `activity_history`
|
||||
// log is sent to both the producer and consumer projects, whereas the
|
||||
// `purchase_history` log is only sent to the producer project.
|
||||
//
|
||||
// monitored_resources:
|
||||
// - type: library.googleapis.com/branch
|
||||
// labels:
|
||||
// - key: /city
|
||||
// description: The city where the library branch is located in.
|
||||
// - key: /name
|
||||
// description: The name of the branch.
|
||||
// logs:
|
||||
// - name: activity_history
|
||||
// labels:
|
||||
// - key: /customer_id
|
||||
// - name: purchase_history
|
||||
// logging:
|
||||
// producer_destinations:
|
||||
// - monitored_resource: library.googleapis.com/branch
|
||||
// logs:
|
||||
// - activity_history
|
||||
// - purchase_history
|
||||
// consumer_destinations:
|
||||
// - monitored_resource: library.googleapis.com/branch
|
||||
// logs:
|
||||
// - activity_history
|
||||
type Logging struct {
|
||||
// Logging configurations for sending logs to the producer project.
|
||||
// There can be multiple producer destinations, each one must have a
|
||||
// different monitored resource type. A log can be used in at most
|
||||
// one producer destination.
|
||||
ProducerDestinations []*Logging_LoggingDestination `protobuf:"bytes,1,rep,name=producer_destinations,json=producerDestinations,proto3" json:"producer_destinations,omitempty"`
|
||||
// Logging configurations for sending logs to the consumer project.
|
||||
// There can be multiple consumer destinations, each one must have a
|
||||
// different monitored resource type. A log can be used in at most
|
||||
// one consumer destination.
|
||||
ConsumerDestinations []*Logging_LoggingDestination `protobuf:"bytes,2,rep,name=consumer_destinations,json=consumerDestinations,proto3" json:"consumer_destinations,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Logging) Reset() { *m = Logging{} }
|
||||
func (m *Logging) String() string { return proto.CompactTextString(m) }
|
||||
func (*Logging) ProtoMessage() {}
|
||||
func (*Logging) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_logging_d4ad8a3d4a3a3050, []int{0}
|
||||
}
|
||||
func (m *Logging) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Logging.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Logging) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Logging.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Logging) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Logging.Merge(dst, src)
|
||||
}
|
||||
func (m *Logging) XXX_Size() int {
|
||||
return xxx_messageInfo_Logging.Size(m)
|
||||
}
|
||||
func (m *Logging) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Logging.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Logging proto.InternalMessageInfo
|
||||
|
||||
func (m *Logging) GetProducerDestinations() []*Logging_LoggingDestination {
|
||||
if m != nil {
|
||||
return m.ProducerDestinations
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Logging) GetConsumerDestinations() []*Logging_LoggingDestination {
|
||||
if m != nil {
|
||||
return m.ConsumerDestinations
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Configuration of a specific logging destination (the producer project
|
||||
// or the consumer project).
|
||||
type Logging_LoggingDestination struct {
|
||||
// The monitored resource type. The type must be defined in the
|
||||
// [Service.monitored_resources][google.api.Service.monitored_resources] section.
|
||||
MonitoredResource string `protobuf:"bytes,3,opt,name=monitored_resource,json=monitoredResource,proto3" json:"monitored_resource,omitempty"`
|
||||
// Names of the logs to be sent to this destination. Each name must
|
||||
// be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
|
||||
// not a domain scoped name, it will be automatically prefixed with
|
||||
// the service name followed by "/".
|
||||
Logs []string `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Logging_LoggingDestination) Reset() { *m = Logging_LoggingDestination{} }
|
||||
func (m *Logging_LoggingDestination) String() string { return proto.CompactTextString(m) }
|
||||
func (*Logging_LoggingDestination) ProtoMessage() {}
|
||||
func (*Logging_LoggingDestination) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_logging_d4ad8a3d4a3a3050, []int{0, 0}
|
||||
}
|
||||
func (m *Logging_LoggingDestination) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Logging_LoggingDestination.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Logging_LoggingDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Logging_LoggingDestination.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Logging_LoggingDestination) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Logging_LoggingDestination.Merge(dst, src)
|
||||
}
|
||||
func (m *Logging_LoggingDestination) XXX_Size() int {
|
||||
return xxx_messageInfo_Logging_LoggingDestination.Size(m)
|
||||
}
|
||||
func (m *Logging_LoggingDestination) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Logging_LoggingDestination.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Logging_LoggingDestination proto.InternalMessageInfo
|
||||
|
||||
func (m *Logging_LoggingDestination) GetMonitoredResource() string {
|
||||
if m != nil {
|
||||
return m.MonitoredResource
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Logging_LoggingDestination) GetLogs() []string {
|
||||
if m != nil {
|
||||
return m.Logs
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Logging)(nil), "google.api.Logging")
|
||||
proto.RegisterType((*Logging_LoggingDestination)(nil), "google.api.Logging.LoggingDestination")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/api/logging.proto", fileDescriptor_logging_d4ad8a3d4a3a3050) }
|
||||
|
||||
var fileDescriptor_logging_d4ad8a3d4a3a3050 = []byte{
|
||||
// 270 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x90, 0x4f, 0x4b, 0xc4, 0x30,
|
||||
0x10, 0xc5, 0x69, 0x77, 0x51, 0x36, 0x8a, 0x60, 0x50, 0x28, 0x8b, 0x87, 0xc5, 0x83, 0xec, 0xc5,
|
||||
0x14, 0xf4, 0xe8, 0xc9, 0x45, 0x11, 0xc1, 0x43, 0xe9, 0x45, 0xd0, 0xc3, 0x12, 0xd3, 0x38, 0x04,
|
||||
0xda, 0x99, 0x90, 0xa4, 0x7e, 0x1a, 0x4f, 0x7e, 0x52, 0xd9, 0xa6, 0x75, 0xab, 0x9e, 0xf6, 0x94,
|
||||
0x3f, 0xef, 0xbd, 0x5f, 0x32, 0x8f, 0x65, 0x40, 0x04, 0xb5, 0xce, 0xa5, 0x35, 0x79, 0x4d, 0x00,
|
||||
0x06, 0x41, 0x58, 0x47, 0x81, 0x38, 0x8b, 0x8a, 0x90, 0xd6, 0xcc, 0xcf, 0x46, 0x2e, 0x89, 0x48,
|
||||
0x41, 0x06, 0x43, 0xe8, 0xa3, 0xf3, 0xfc, 0x33, 0x65, 0xfb, 0x4f, 0x31, 0xcb, 0x5f, 0xd9, 0xa9,
|
||||
0x75, 0x54, 0xb5, 0x4a, 0xbb, 0x75, 0xa5, 0x7d, 0x30, 0x18, 0xad, 0x59, 0xb2, 0x98, 0x2c, 0x0f,
|
||||
0xae, 0x2e, 0xc4, 0x96, 0x2a, 0xfa, 0xcc, 0xb0, 0xde, 0x6d, 0xed, 0xe5, 0xc9, 0x00, 0x19, 0x5d,
|
||||
0xfa, 0x0d, 0x5c, 0x11, 0xfa, 0xb6, 0xf9, 0x0b, 0x4f, 0x77, 0x83, 0x0f, 0x90, 0x31, 0x7c, 0xfe,
|
||||
0xcc, 0xf8, 0x7f, 0x2f, 0xbf, 0x64, 0xbc, 0x21, 0x34, 0x81, 0x9c, 0xae, 0xd6, 0x4e, 0x7b, 0x6a,
|
||||
0x9d, 0xd2, 0xd9, 0x64, 0x91, 0x2c, 0x67, 0xe5, 0xf1, 0x8f, 0x52, 0xf6, 0x02, 0xe7, 0x6c, 0x5a,
|
||||
0x13, 0xc4, 0x69, 0x67, 0x65, 0xb7, 0x5f, 0x21, 0x3b, 0x52, 0xd4, 0x8c, 0xfe, 0xb6, 0x3a, 0xec,
|
||||
0x1f, 0x2a, 0x36, 0xf5, 0x15, 0xc9, 0xcb, 0x7d, 0xaf, 0x01, 0xd5, 0x12, 0x41, 0x90, 0x83, 0x1c,
|
||||
0x34, 0x76, 0xe5, 0xe6, 0x51, 0x92, 0xd6, 0xf8, 0xae, 0x7d, 0xaf, 0xdd, 0x87, 0x51, 0x5a, 0x11,
|
||||
0xbe, 0x1b, 0xb8, 0xf9, 0x75, 0xfa, 0x4a, 0xa7, 0x0f, 0xb7, 0xc5, 0xe3, 0xdb, 0x5e, 0x17, 0xbc,
|
||||
0xfe, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x73, 0x4f, 0x86, 0x6e, 0xdb, 0x01, 0x00, 0x00,
|
||||
}
|
193
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/monitoring.pb.go
generated
vendored
193
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/monitoring.pb.go
generated
vendored
@ -1,193 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/monitoring.proto
|
||||
|
||||
package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Monitoring configuration of the service.
|
||||
//
|
||||
// The example below shows how to configure monitored resources and metrics
|
||||
// for monitoring. In the example, a monitored resource and two metrics are
|
||||
// defined. The `library.googleapis.com/book/returned_count` metric is sent
|
||||
// to both producer and consumer projects, whereas the
|
||||
// `library.googleapis.com/book/overdue_count` metric is only sent to the
|
||||
// consumer project.
|
||||
//
|
||||
// monitored_resources:
|
||||
// - type: library.googleapis.com/branch
|
||||
// labels:
|
||||
// - key: /city
|
||||
// description: The city where the library branch is located in.
|
||||
// - key: /name
|
||||
// description: The name of the branch.
|
||||
// metrics:
|
||||
// - name: library.googleapis.com/book/returned_count
|
||||
// metric_kind: DELTA
|
||||
// value_type: INT64
|
||||
// labels:
|
||||
// - key: /customer_id
|
||||
// - name: library.googleapis.com/book/overdue_count
|
||||
// metric_kind: GAUGE
|
||||
// value_type: INT64
|
||||
// labels:
|
||||
// - key: /customer_id
|
||||
// monitoring:
|
||||
// producer_destinations:
|
||||
// - monitored_resource: library.googleapis.com/branch
|
||||
// metrics:
|
||||
// - library.googleapis.com/book/returned_count
|
||||
// consumer_destinations:
|
||||
// - monitored_resource: library.googleapis.com/branch
|
||||
// metrics:
|
||||
// - library.googleapis.com/book/returned_count
|
||||
// - library.googleapis.com/book/overdue_count
|
||||
type Monitoring struct {
|
||||
// Monitoring configurations for sending metrics to the producer project.
|
||||
// There can be multiple producer destinations, each one must have a
|
||||
// different monitored resource type. A metric can be used in at most
|
||||
// one producer destination.
|
||||
ProducerDestinations []*Monitoring_MonitoringDestination `protobuf:"bytes,1,rep,name=producer_destinations,json=producerDestinations,proto3" json:"producer_destinations,omitempty"`
|
||||
// Monitoring configurations for sending metrics to the consumer project.
|
||||
// There can be multiple consumer destinations, each one must have a
|
||||
// different monitored resource type. A metric can be used in at most
|
||||
// one consumer destination.
|
||||
ConsumerDestinations []*Monitoring_MonitoringDestination `protobuf:"bytes,2,rep,name=consumer_destinations,json=consumerDestinations,proto3" json:"consumer_destinations,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Monitoring) Reset() { *m = Monitoring{} }
|
||||
func (m *Monitoring) String() string { return proto.CompactTextString(m) }
|
||||
func (*Monitoring) ProtoMessage() {}
|
||||
func (*Monitoring) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_monitoring_96ebaeded677bc82, []int{0}
|
||||
}
|
||||
func (m *Monitoring) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Monitoring.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Monitoring) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Monitoring.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Monitoring) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Monitoring.Merge(dst, src)
|
||||
}
|
||||
func (m *Monitoring) XXX_Size() int {
|
||||
return xxx_messageInfo_Monitoring.Size(m)
|
||||
}
|
||||
func (m *Monitoring) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Monitoring.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Monitoring proto.InternalMessageInfo
|
||||
|
||||
func (m *Monitoring) GetProducerDestinations() []*Monitoring_MonitoringDestination {
|
||||
if m != nil {
|
||||
return m.ProducerDestinations
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Monitoring) GetConsumerDestinations() []*Monitoring_MonitoringDestination {
|
||||
if m != nil {
|
||||
return m.ConsumerDestinations
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Configuration of a specific monitoring destination (the producer project
|
||||
// or the consumer project).
|
||||
type Monitoring_MonitoringDestination struct {
|
||||
// The monitored resource type. The type must be defined in
|
||||
// [Service.monitored_resources][google.api.Service.monitored_resources] section.
|
||||
MonitoredResource string `protobuf:"bytes,1,opt,name=monitored_resource,json=monitoredResource,proto3" json:"monitored_resource,omitempty"`
|
||||
// Names of the metrics to report to this monitoring destination.
|
||||
// Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
|
||||
Metrics []string `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Monitoring_MonitoringDestination) Reset() { *m = Monitoring_MonitoringDestination{} }
|
||||
func (m *Monitoring_MonitoringDestination) String() string { return proto.CompactTextString(m) }
|
||||
func (*Monitoring_MonitoringDestination) ProtoMessage() {}
|
||||
func (*Monitoring_MonitoringDestination) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_monitoring_96ebaeded677bc82, []int{0, 0}
|
||||
}
|
||||
func (m *Monitoring_MonitoringDestination) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Monitoring_MonitoringDestination.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Monitoring_MonitoringDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Monitoring_MonitoringDestination.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Monitoring_MonitoringDestination) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Monitoring_MonitoringDestination.Merge(dst, src)
|
||||
}
|
||||
func (m *Monitoring_MonitoringDestination) XXX_Size() int {
|
||||
return xxx_messageInfo_Monitoring_MonitoringDestination.Size(m)
|
||||
}
|
||||
func (m *Monitoring_MonitoringDestination) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Monitoring_MonitoringDestination.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Monitoring_MonitoringDestination proto.InternalMessageInfo
|
||||
|
||||
func (m *Monitoring_MonitoringDestination) GetMonitoredResource() string {
|
||||
if m != nil {
|
||||
return m.MonitoredResource
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Monitoring_MonitoringDestination) GetMetrics() []string {
|
||||
if m != nil {
|
||||
return m.Metrics
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Monitoring)(nil), "google.api.Monitoring")
|
||||
proto.RegisterType((*Monitoring_MonitoringDestination)(nil), "google.api.Monitoring.MonitoringDestination")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/api/monitoring.proto", fileDescriptor_monitoring_96ebaeded677bc82)
|
||||
}
|
||||
|
||||
var fileDescriptor_monitoring_96ebaeded677bc82 = []byte{
|
||||
// 271 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x51, 0xcd, 0x4a, 0xc4, 0x30,
|
||||
0x10, 0xa6, 0x55, 0x94, 0x8d, 0xa0, 0x58, 0x5c, 0x28, 0xab, 0x87, 0xc5, 0xd3, 0x1e, 0xb4, 0x05,
|
||||
0x3d, 0x7a, 0x72, 0x51, 0xc4, 0x83, 0x50, 0x7a, 0xf4, 0xb2, 0xc6, 0x74, 0x0c, 0x03, 0xdb, 0x99,
|
||||
0x9a, 0xa4, 0x3e, 0x90, 0xcf, 0xe0, 0x03, 0xca, 0x36, 0xed, 0x36, 0x8a, 0x27, 0x6f, 0x99, 0x7c,
|
||||
0x7f, 0xc3, 0x37, 0xe2, 0x54, 0x33, 0xeb, 0x35, 0xe4, 0xb2, 0xc1, 0xbc, 0x66, 0x42, 0xc7, 0x06,
|
||||
0x49, 0x67, 0x8d, 0x61, 0xc7, 0x89, 0xf0, 0x60, 0x26, 0x1b, 0x9c, 0x9d, 0x05, 0x44, 0x49, 0xc4,
|
||||
0x4e, 0x3a, 0x64, 0xb2, 0x9e, 0x79, 0xfe, 0x15, 0x0b, 0xf1, 0xb4, 0x95, 0x27, 0x52, 0x4c, 0x1b,
|
||||
0xc3, 0x55, 0xab, 0xc0, 0xac, 0x2a, 0xb0, 0x0e, 0xc9, 0xb3, 0xd3, 0x68, 0xbe, 0xb3, 0x38, 0xb8,
|
||||
0xba, 0xc8, 0x46, 0xe3, 0x6c, 0x94, 0x05, 0xcf, 0xbb, 0x51, 0x54, 0x9e, 0x0c, 0x56, 0xc1, 0xa7,
|
||||
0xdd, 0x44, 0x28, 0x26, 0xdb, 0xd6, 0xbf, 0x23, 0xe2, 0xff, 0x44, 0x0c, 0x56, 0x61, 0xc4, 0xec,
|
||||
0x45, 0x4c, 0xff, 0xa4, 0x27, 0x97, 0x22, 0xe9, 0xbb, 0x82, 0x6a, 0x65, 0xc0, 0x72, 0x6b, 0x14,
|
||||
0xa4, 0xd1, 0x3c, 0x5a, 0x4c, 0xca, 0xe3, 0x2d, 0x52, 0xf6, 0x40, 0x92, 0x8a, 0xfd, 0x1a, 0x9c,
|
||||
0x41, 0xe5, 0x97, 0x9b, 0x94, 0xc3, 0xb8, 0x7c, 0x17, 0x87, 0x8a, 0xeb, 0x60, 0xd5, 0xe5, 0xd1,
|
||||
0x98, 0x58, 0x6c, 0x9a, 0x2d, 0xa2, 0xe7, 0xfb, 0x1e, 0xd6, 0xbc, 0x96, 0xa4, 0x33, 0x36, 0x3a,
|
||||
0xd7, 0x40, 0x5d, 0xef, 0xb9, 0x87, 0x64, 0x83, 0xb6, 0x3b, 0x8c, 0x05, 0xf3, 0x81, 0x0a, 0x14,
|
||||
0xd3, 0x1b, 0xea, 0x9b, 0x1f, 0xd3, 0x67, 0xbc, 0xfb, 0x70, 0x5b, 0x3c, 0xbe, 0xee, 0x75, 0xc2,
|
||||
0xeb, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x51, 0x35, 0xf3, 0xe2, 0xf9, 0x01, 0x00, 0x00,
|
||||
}
|
465
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/quota.pb.go
generated
vendored
465
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/quota.pb.go
generated
vendored
@ -1,465 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/quota.proto
|
||||
|
||||
package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Quota configuration helps to achieve fairness and budgeting in service
|
||||
// usage.
|
||||
//
|
||||
// The quota configuration works this way:
|
||||
// - The service configuration defines a set of metrics.
|
||||
// - For API calls, the quota.metric_rules maps methods to metrics with
|
||||
// corresponding costs.
|
||||
// - The quota.limits defines limits on the metrics, which will be used for
|
||||
// quota checks at runtime.
|
||||
//
|
||||
// An example quota configuration in yaml format:
|
||||
//
|
||||
// quota:
|
||||
// limits:
|
||||
//
|
||||
// - name: apiWriteQpsPerProject
|
||||
// metric: library.googleapis.com/write_calls
|
||||
// unit: "1/min/{project}" # rate limit for consumer projects
|
||||
// values:
|
||||
// STANDARD: 10000
|
||||
//
|
||||
// # The metric rules bind all methods to the read_calls metric,
|
||||
// # except for the UpdateBook and DeleteBook methods. These two methods
|
||||
// # are mapped to the write_calls metric, with the UpdateBook method
|
||||
// # consuming at twice rate as the DeleteBook method.
|
||||
// metric_rules:
|
||||
// - selector: "*"
|
||||
// metric_costs:
|
||||
// library.googleapis.com/read_calls: 1
|
||||
// - selector: google.example.library.v1.LibraryService.UpdateBook
|
||||
// metric_costs:
|
||||
// library.googleapis.com/write_calls: 2
|
||||
// - selector: google.example.library.v1.LibraryService.DeleteBook
|
||||
// metric_costs:
|
||||
// library.googleapis.com/write_calls: 1
|
||||
//
|
||||
// Corresponding Metric definition:
|
||||
//
|
||||
// metrics:
|
||||
// - name: library.googleapis.com/read_calls
|
||||
// display_name: Read requests
|
||||
// metric_kind: DELTA
|
||||
// value_type: INT64
|
||||
//
|
||||
// - name: library.googleapis.com/write_calls
|
||||
// display_name: Write requests
|
||||
// metric_kind: DELTA
|
||||
// value_type: INT64
|
||||
//
|
||||
type Quota struct {
|
||||
// List of `QuotaLimit` definitions for the service.
|
||||
//
|
||||
// Used by metric-based quotas only.
|
||||
Limits []*QuotaLimit `protobuf:"bytes,3,rep,name=limits,proto3" json:"limits,omitempty"`
|
||||
// List of `MetricRule` definitions, each one mapping a selected method to one
|
||||
// or more metrics.
|
||||
//
|
||||
// Used by metric-based quotas only.
|
||||
MetricRules []*MetricRule `protobuf:"bytes,4,rep,name=metric_rules,json=metricRules,proto3" json:"metric_rules,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Quota) Reset() { *m = Quota{} }
|
||||
func (m *Quota) String() string { return proto.CompactTextString(m) }
|
||||
func (*Quota) ProtoMessage() {}
|
||||
func (*Quota) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_quota_8acf07194df27b7e, []int{0}
|
||||
}
|
||||
func (m *Quota) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Quota.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Quota) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Quota.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Quota) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Quota.Merge(dst, src)
|
||||
}
|
||||
func (m *Quota) XXX_Size() int {
|
||||
return xxx_messageInfo_Quota.Size(m)
|
||||
}
|
||||
func (m *Quota) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Quota.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Quota proto.InternalMessageInfo
|
||||
|
||||
func (m *Quota) GetLimits() []*QuotaLimit {
|
||||
if m != nil {
|
||||
return m.Limits
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Quota) GetMetricRules() []*MetricRule {
|
||||
if m != nil {
|
||||
return m.MetricRules
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Bind API methods to metrics. Binding a method to a metric causes that
|
||||
// metric's configured quota, billing, and monitoring behaviors to apply to the
|
||||
// method call.
|
||||
//
|
||||
// Used by metric-based quotas only.
|
||||
type MetricRule struct {
|
||||
// Selects the methods to which this rule applies.
|
||||
//
|
||||
// Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
|
||||
Selector string `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
|
||||
// Metrics to update when the selected methods are called, and the associated
|
||||
// cost applied to each metric.
|
||||
//
|
||||
// The key of the map is the metric name, and the values are the amount
|
||||
// increased for the metric against which the quota limits are defined.
|
||||
// The value must not be negative.
|
||||
MetricCosts map[string]int64 `protobuf:"bytes,2,rep,name=metric_costs,json=metricCosts,proto3" json:"metric_costs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *MetricRule) Reset() { *m = MetricRule{} }
|
||||
func (m *MetricRule) String() string { return proto.CompactTextString(m) }
|
||||
func (*MetricRule) ProtoMessage() {}
|
||||
func (*MetricRule) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_quota_8acf07194df27b7e, []int{1}
|
||||
}
|
||||
func (m *MetricRule) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_MetricRule.Unmarshal(m, b)
|
||||
}
|
||||
func (m *MetricRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_MetricRule.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *MetricRule) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_MetricRule.Merge(dst, src)
|
||||
}
|
||||
func (m *MetricRule) XXX_Size() int {
|
||||
return xxx_messageInfo_MetricRule.Size(m)
|
||||
}
|
||||
func (m *MetricRule) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_MetricRule.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_MetricRule proto.InternalMessageInfo
|
||||
|
||||
func (m *MetricRule) GetSelector() string {
|
||||
if m != nil {
|
||||
return m.Selector
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *MetricRule) GetMetricCosts() map[string]int64 {
|
||||
if m != nil {
|
||||
return m.MetricCosts
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// `QuotaLimit` defines a specific limit that applies over a specified duration
|
||||
// for a limit type. There can be at most one limit for a duration and limit
|
||||
// type combination defined within a `QuotaGroup`.
|
||||
type QuotaLimit struct {
|
||||
// Name of the quota limit. The name is used to refer to the limit when
|
||||
// overriding the default limit on per-consumer basis.
|
||||
//
|
||||
// For group-based quota limits, the name must be unique within the quota
|
||||
// group. If a name is not provided, it will be generated from the limit_by
|
||||
// and duration fields.
|
||||
//
|
||||
// For metric-based quota limits, the name must be provided, and it must be
|
||||
// unique within the service. The name can only include alphanumeric
|
||||
// characters as well as '-'.
|
||||
//
|
||||
// The maximum length of the limit name is 64 characters.
|
||||
//
|
||||
// The name of a limit is used as a unique identifier for this limit.
|
||||
// Therefore, once a limit has been put into use, its name should be
|
||||
// immutable. You can use the display_name field to provide a user-friendly
|
||||
// name for the limit. The display name can be evolved over time without
|
||||
// affecting the identity of the limit.
|
||||
Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// Optional. User-visible, extended description for this quota limit.
|
||||
// Should be used only when more context is needed to understand this limit
|
||||
// than provided by the limit's display name (see: `display_name`).
|
||||
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
||||
// Default number of tokens that can be consumed during the specified
|
||||
// duration. This is the number of tokens assigned when a client
|
||||
// application developer activates the service for his/her project.
|
||||
//
|
||||
// Specifying a value of 0 will block all requests. This can be used if you
|
||||
// are provisioning quota to selected consumers and blocking others.
|
||||
// Similarly, a value of -1 will indicate an unlimited quota. No other
|
||||
// negative values are allowed.
|
||||
//
|
||||
// Used by group-based quotas only.
|
||||
DefaultLimit int64 `protobuf:"varint,3,opt,name=default_limit,json=defaultLimit,proto3" json:"default_limit,omitempty"`
|
||||
// Maximum number of tokens that can be consumed during the specified
|
||||
// duration. Client application developers can override the default limit up
|
||||
// to this maximum. If specified, this value cannot be set to a value less
|
||||
// than the default limit. If not specified, it is set to the default limit.
|
||||
//
|
||||
// To allow clients to apply overrides with no upper bound, set this to -1,
|
||||
// indicating unlimited maximum quota.
|
||||
//
|
||||
// Used by group-based quotas only.
|
||||
MaxLimit int64 `protobuf:"varint,4,opt,name=max_limit,json=maxLimit,proto3" json:"max_limit,omitempty"`
|
||||
// Free tier value displayed in the Developers Console for this limit.
|
||||
// The free tier is the number of tokens that will be subtracted from the
|
||||
// billed amount when billing is enabled.
|
||||
// This field can only be set on a limit with duration "1d", in a billable
|
||||
// group; it is invalid on any other limit. If this field is not set, it
|
||||
// defaults to 0, indicating that there is no free tier for this service.
|
||||
//
|
||||
// Used by group-based quotas only.
|
||||
FreeTier int64 `protobuf:"varint,7,opt,name=free_tier,json=freeTier,proto3" json:"free_tier,omitempty"`
|
||||
// Duration of this limit in textual notation. Example: "100s", "24h", "1d".
|
||||
// For duration longer than a day, only multiple of days is supported. We
|
||||
// support only "100s" and "1d" for now. Additional support will be added in
|
||||
// the future. "0" indicates indefinite duration.
|
||||
//
|
||||
// Used by group-based quotas only.
|
||||
Duration string `protobuf:"bytes,5,opt,name=duration,proto3" json:"duration,omitempty"`
|
||||
// The name of the metric this quota limit applies to. The quota limits with
|
||||
// the same metric will be checked together during runtime. The metric must be
|
||||
// defined within the service config.
|
||||
//
|
||||
// Used by metric-based quotas only.
|
||||
Metric string `protobuf:"bytes,8,opt,name=metric,proto3" json:"metric,omitempty"`
|
||||
// Specify the unit of the quota limit. It uses the same syntax as
|
||||
// [Metric.unit][]. The supported unit kinds are determined by the quota
|
||||
// backend system.
|
||||
//
|
||||
// The [Google Service Control](https://cloud.google.com/service-control)
|
||||
// supports the following unit components:
|
||||
// * One of the time intevals:
|
||||
// * "/min" for quota every minute.
|
||||
// * "/d" for quota every 24 hours, starting 00:00 US Pacific Time.
|
||||
// * Otherwise the quota won't be reset by time, such as storage limit.
|
||||
// * One and only one of the granted containers:
|
||||
// * "/{organization}" quota for an organization.
|
||||
// * "/{project}" quota for a project.
|
||||
// * "/{folder}" quota for a folder.
|
||||
// * "/{resource}" quota for a universal resource.
|
||||
// * Zero or more quota segmentation dimension. Not all combos are valid.
|
||||
// * "/{region}" quota for every region. Not to be used with time intervals.
|
||||
// * Otherwise the resources granted on the target is not segmented.
|
||||
// * "/{zone}" quota for every zone. Not to be used with time intervals.
|
||||
// * Otherwise the resources granted on the target is not segmented.
|
||||
// * "/{resource}" quota for a resource associated with a project or org.
|
||||
//
|
||||
// Here are some examples:
|
||||
// * "1/min/{project}" for quota per minute per project.
|
||||
// * "1/min/{user}" for quota per minute per user.
|
||||
// * "1/min/{organization}" for quota per minute per organization.
|
||||
//
|
||||
// Note: the order of unit components is insignificant.
|
||||
// The "1" at the beginning is required to follow the metric unit syntax.
|
||||
//
|
||||
// Used by metric-based quotas only.
|
||||
Unit string `protobuf:"bytes,9,opt,name=unit,proto3" json:"unit,omitempty"`
|
||||
// Tiered limit values. Also allows for regional or zone overrides for these
|
||||
// values if "/{region}" or "/{zone}" is specified in the unit field.
|
||||
//
|
||||
// Currently supported tiers from low to high:
|
||||
// VERY_LOW, LOW, STANDARD, HIGH, VERY_HIGH
|
||||
//
|
||||
// To apply different limit values for users according to their tiers, specify
|
||||
// the values for the tiers you want to differentiate. For example:
|
||||
// {LOW:100, STANDARD:500, HIGH:1000, VERY_HIGH:5000}
|
||||
//
|
||||
// The limit value for each tier is optional except for the tier STANDARD.
|
||||
// The limit value for an unspecified tier falls to the value of its next
|
||||
// tier towards tier STANDARD. For the above example, the limit value for tier
|
||||
// STANDARD is 500.
|
||||
//
|
||||
// To apply the same limit value for all users, just specify limit value for
|
||||
// tier STANDARD. For example: {STANDARD:500}.
|
||||
//
|
||||
// To apply a regional overide for a tier, add a map entry with key
|
||||
// "<TIER>/<region>", where <region> is a region name. Similarly, for a zone
|
||||
// override, add a map entry with key "<TIER>/{zone}".
|
||||
// Further, a wildcard can be used at the end of a zone name in order to
|
||||
// specify zone level overrides. For example:
|
||||
// LOW: 10, STANDARD: 50, HIGH: 100,
|
||||
// LOW/us-central1: 20, STANDARD/us-central1: 60, HIGH/us-central1: 200,
|
||||
// LOW/us-central1-*: 10, STANDARD/us-central1-*: 20, HIGH/us-central1-*: 80
|
||||
//
|
||||
// The regional overrides tier set for each region must be the same as
|
||||
// the tier set for default limit values. Same rule applies for zone overrides
|
||||
// tier as well.
|
||||
//
|
||||
// Used by metric-based quotas only.
|
||||
Values map[string]int64 `protobuf:"bytes,10,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
|
||||
// User-visible display name for this limit.
|
||||
// Optional. If not set, the UI will provide a default display name based on
|
||||
// the quota configuration. This field can be used to override the default
|
||||
// display name generated from the configuration.
|
||||
DisplayName string `protobuf:"bytes,12,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *QuotaLimit) Reset() { *m = QuotaLimit{} }
|
||||
func (m *QuotaLimit) String() string { return proto.CompactTextString(m) }
|
||||
func (*QuotaLimit) ProtoMessage() {}
|
||||
func (*QuotaLimit) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_quota_8acf07194df27b7e, []int{2}
|
||||
}
|
||||
func (m *QuotaLimit) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_QuotaLimit.Unmarshal(m, b)
|
||||
}
|
||||
func (m *QuotaLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_QuotaLimit.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *QuotaLimit) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_QuotaLimit.Merge(dst, src)
|
||||
}
|
||||
func (m *QuotaLimit) XXX_Size() int {
|
||||
return xxx_messageInfo_QuotaLimit.Size(m)
|
||||
}
|
||||
func (m *QuotaLimit) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_QuotaLimit.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_QuotaLimit proto.InternalMessageInfo
|
||||
|
||||
func (m *QuotaLimit) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *QuotaLimit) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *QuotaLimit) GetDefaultLimit() int64 {
|
||||
if m != nil {
|
||||
return m.DefaultLimit
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *QuotaLimit) GetMaxLimit() int64 {
|
||||
if m != nil {
|
||||
return m.MaxLimit
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *QuotaLimit) GetFreeTier() int64 {
|
||||
if m != nil {
|
||||
return m.FreeTier
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *QuotaLimit) GetDuration() string {
|
||||
if m != nil {
|
||||
return m.Duration
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *QuotaLimit) GetMetric() string {
|
||||
if m != nil {
|
||||
return m.Metric
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *QuotaLimit) GetUnit() string {
|
||||
if m != nil {
|
||||
return m.Unit
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *QuotaLimit) GetValues() map[string]int64 {
|
||||
if m != nil {
|
||||
return m.Values
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *QuotaLimit) GetDisplayName() string {
|
||||
if m != nil {
|
||||
return m.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Quota)(nil), "google.api.Quota")
|
||||
proto.RegisterType((*MetricRule)(nil), "google.api.MetricRule")
|
||||
proto.RegisterMapType((map[string]int64)(nil), "google.api.MetricRule.MetricCostsEntry")
|
||||
proto.RegisterType((*QuotaLimit)(nil), "google.api.QuotaLimit")
|
||||
proto.RegisterMapType((map[string]int64)(nil), "google.api.QuotaLimit.ValuesEntry")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/api/quota.proto", fileDescriptor_quota_8acf07194df27b7e) }
|
||||
|
||||
var fileDescriptor_quota_8acf07194df27b7e = []byte{
|
||||
// 466 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0xc1, 0x8e, 0xd3, 0x30,
|
||||
0x10, 0x55, 0x9a, 0xb6, 0xb4, 0xd3, 0x82, 0x56, 0x16, 0xaa, 0xac, 0xc2, 0xa1, 0x94, 0x03, 0x3d,
|
||||
0xa5, 0x12, 0x5c, 0xd8, 0x45, 0x42, 0x62, 0xd1, 0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 0x09, 0xec, 0x04, 0xd2, 0xef, 0xb8, 0x8b, 0xb6, 0xbe,
|
||||
0x64, 0xf7, 0xa1, 0x77, 0x29, 0x54, 0x8b, 0xbc, 0x33, 0x4b, 0x16, 0x69, 0x1e, 0x9a, 0xb3, 0xce,
|
||||
0xf3, 0x64, 0xfe, 0x33, 0x05, 0x38, 0x04, 0xc1, 0x18, 0x74, 0x6b, 0x51, 0x21, 0xef, 0x93, 0x96,
|
||||
0x6a, 0x36, 0x83, 0xd1, 0x06, 0x6d, 0x61, 0x64, 0xe3, 0x33, 0xa6, 0x23, 0x86, 0xf9, 0xf1, 0x88,
|
||||
0x3d, 0x86, 0xbb, 0x1b, 0xdc, 0x8a, 0x56, 0xb9, 0x35, 0x05, 0xc9, 0x53, 0xb2, 0x19, 0xc7, 0x61,
|
||||
0x38, 0xfa, 0x01, 0x0c, 0x2b, 0x71, 0x15, 0x09, 0x5d, 0x22, 0x0c, 0x2a, 0x71, 0xb5, 0x07, 0xb7,
|
||||
0x06, 0x71, 0xed, 0x24, 0x1a, 0x7e, 0x27, 0x80, 0x7e, 0xf0, 0x59, 0xa2, 0xf1, 0x59, 0x6e, 0x5a,
|
||||
0x43, 0x2f, 0xcc, 0x7b, 0x21, 0xcb, 0xeb, 0x9e, 0x4d, 0xa0, 0x1f, 0xe2, 0xe0, 0x03, 0x42, 0x62,
|
||||
0xe7, 0x2f, 0xd2, 0xd6, 0xd2, 0xf1, 0x61, 0xb8, 0x88, 0xaf, 0xd9, 0x19, 0xf4, 0xe9, 0xe2, 0x96,
|
||||
0x03, 0x25, 0x3e, 0xbf, 0x79, 0x1b, 0xb2, 0x2f, 0x44, 0x0a, 0x61, 0x47, 0x05, 0x7b, 0x04, 0xe3,
|
||||
0x8d, 0xb4, 0x8d, 0x12, 0xbb, 0x35, 0x05, 0x34, 0x8e, 0x29, 0x84, 0xd9, 0x47, 0x51, 0xe1, 0xf4,
|
||||
0x14, 0x46, 0x47, 0xca, 0xdb, 0xbc, 0xc2, 0xb9, 0x82, 0x7b, 0x85, 0xae, 0x8e, 0x3e, 0xe7, 0x3c,
|
||||
0x3c, 0xca, 0xca, 0xaf, 0xf3, 0x2a, 0xf9, 0x7a, 0x11, 0x91, 0x52, 0x2b, 0x51, 0x97, 0x99, 0x36,
|
||||
0xe5, 0xb2, 0xc4, 0x9a, 0x96, 0x7d, 0x19, 0x20, 0xd1, 0x48, 0x4b, 0x7f, 0x83, 0x45, 0x73, 0x29,
|
||||
0x0b, 0x2c, 0x74, 0xbd, 0x95, 0xe5, 0x8b, 0xbf, 0xba, 0x5f, 0x9d, 0xee, 0x9b, 0x57, 0xab, 0xb7,
|
||||
0xdf, 0xfa, 0x24, 0x7c, 0xf6, 0x27, 0x00, 0x00, 0xff, 0xff, 0x90, 0x7e, 0xf5, 0xab, 0x69, 0x03,
|
||||
0x00, 0x00,
|
||||
}
|
389
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/service.pb.go
generated
vendored
389
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/service.pb.go
generated
vendored
@ -1,389 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/service.proto
|
||||
|
||||
package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import wrappers "github.com/golang/protobuf/ptypes/wrappers"
|
||||
import annotations "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import metric "google.golang.org/genproto/googleapis/api/metric"
|
||||
import monitoredres "google.golang.org/genproto/googleapis/api/monitoredres"
|
||||
import api "google.golang.org/genproto/protobuf/api"
|
||||
import ptype "google.golang.org/genproto/protobuf/ptype"
|
||||
|
||||
// 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
|
||||
|
||||
// `Service` is the root object of Google service configuration schema. It
|
||||
// describes basic information about a service, such as the name and the
|
||||
// title, and delegates other aspects to sub-sections. Each sub-section is
|
||||
// either a proto message or a repeated proto message that configures a
|
||||
// specific aspect, such as auth. See each proto message definition for details.
|
||||
//
|
||||
// Example:
|
||||
//
|
||||
// type: google.api.Service
|
||||
// config_version: 3
|
||||
// name: calendar.googleapis.com
|
||||
// title: Google Calendar API
|
||||
// apis:
|
||||
// - name: google.calendar.v3.Calendar
|
||||
// authentication:
|
||||
// providers:
|
||||
// - id: google_calendar_auth
|
||||
// jwks_uri: https://www.googleapis.com/oauth2/v1/certs
|
||||
// issuer: https://securetoken.google.com
|
||||
// rules:
|
||||
// - selector: "*"
|
||||
// requirements:
|
||||
// provider_id: google_calendar_auth
|
||||
type Service struct {
|
||||
// The semantic version of the service configuration. The config version
|
||||
// affects the interpretation of the service configuration. For example,
|
||||
// certain features are enabled by default for certain config versions.
|
||||
// The latest config version is `3`.
|
||||
ConfigVersion *wrappers.UInt32Value `protobuf:"bytes,20,opt,name=config_version,json=configVersion,proto3" json:"config_version,omitempty"`
|
||||
// The DNS address at which this service is available,
|
||||
// e.g. `calendar.googleapis.com`.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// A unique ID for a specific instance of this message, typically assigned
|
||||
// by the client for tracking purpose. If empty, the server may choose to
|
||||
// generate one instead.
|
||||
Id string `protobuf:"bytes,33,opt,name=id,proto3" json:"id,omitempty"`
|
||||
// The product title for this service.
|
||||
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
|
||||
// The Google project that owns this service.
|
||||
ProducerProjectId string `protobuf:"bytes,22,opt,name=producer_project_id,json=producerProjectId,proto3" json:"producer_project_id,omitempty"`
|
||||
// A list of API interfaces exported by this service. Only the `name` field
|
||||
// of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
|
||||
// author, as the remaining fields will be derived from the IDL during the
|
||||
// normalization process. It is an error to specify an API interface here
|
||||
// which cannot be resolved against the associated IDL files.
|
||||
Apis []*api.Api `protobuf:"bytes,3,rep,name=apis,proto3" json:"apis,omitempty"`
|
||||
// A list of all proto message types included in this API service.
|
||||
// Types referenced directly or indirectly by the `apis` are
|
||||
// automatically included. Messages which are not referenced but
|
||||
// shall be included, such as types used by the `google.protobuf.Any` type,
|
||||
// should be listed here by name. Example:
|
||||
//
|
||||
// types:
|
||||
// - name: google.protobuf.Int32
|
||||
Types []*ptype.Type `protobuf:"bytes,4,rep,name=types,proto3" json:"types,omitempty"`
|
||||
// A list of all enum types included in this API service. Enums
|
||||
// referenced directly or indirectly by the `apis` are automatically
|
||||
// included. Enums which are not referenced but shall be included
|
||||
// should be listed here by name. Example:
|
||||
//
|
||||
// enums:
|
||||
// - name: google.someapi.v1.SomeEnum
|
||||
Enums []*ptype.Enum `protobuf:"bytes,5,rep,name=enums,proto3" json:"enums,omitempty"`
|
||||
// Additional API documentation.
|
||||
Documentation *Documentation `protobuf:"bytes,6,opt,name=documentation,proto3" json:"documentation,omitempty"`
|
||||
// API backend configuration.
|
||||
Backend *Backend `protobuf:"bytes,8,opt,name=backend,proto3" json:"backend,omitempty"`
|
||||
// HTTP configuration.
|
||||
Http *annotations.Http `protobuf:"bytes,9,opt,name=http,proto3" json:"http,omitempty"`
|
||||
// Quota configuration.
|
||||
Quota *Quota `protobuf:"bytes,10,opt,name=quota,proto3" json:"quota,omitempty"`
|
||||
// Auth configuration.
|
||||
Authentication *Authentication `protobuf:"bytes,11,opt,name=authentication,proto3" json:"authentication,omitempty"`
|
||||
// Context configuration.
|
||||
Context *Context `protobuf:"bytes,12,opt,name=context,proto3" json:"context,omitempty"`
|
||||
// Configuration controlling usage of this service.
|
||||
Usage *Usage `protobuf:"bytes,15,opt,name=usage,proto3" json:"usage,omitempty"`
|
||||
// Configuration for network endpoints. If this is empty, then an endpoint
|
||||
// with the same name as the service is automatically generated to service all
|
||||
// defined APIs.
|
||||
Endpoints []*Endpoint `protobuf:"bytes,18,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
|
||||
// Configuration for the service control plane.
|
||||
Control *Control `protobuf:"bytes,21,opt,name=control,proto3" json:"control,omitempty"`
|
||||
// Defines the logs used by this service.
|
||||
Logs []*LogDescriptor `protobuf:"bytes,23,rep,name=logs,proto3" json:"logs,omitempty"`
|
||||
// Defines the metrics used by this service.
|
||||
Metrics []*metric.MetricDescriptor `protobuf:"bytes,24,rep,name=metrics,proto3" json:"metrics,omitempty"`
|
||||
// Defines the monitored resources used by this service. This is required
|
||||
// by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
|
||||
MonitoredResources []*monitoredres.MonitoredResourceDescriptor `protobuf:"bytes,25,rep,name=monitored_resources,json=monitoredResources,proto3" json:"monitored_resources,omitempty"`
|
||||
// Billing configuration.
|
||||
Billing *Billing `protobuf:"bytes,26,opt,name=billing,proto3" json:"billing,omitempty"`
|
||||
// Logging configuration.
|
||||
Logging *Logging `protobuf:"bytes,27,opt,name=logging,proto3" json:"logging,omitempty"`
|
||||
// Monitoring configuration.
|
||||
Monitoring *Monitoring `protobuf:"bytes,28,opt,name=monitoring,proto3" json:"monitoring,omitempty"`
|
||||
// System parameter configuration.
|
||||
SystemParameters *SystemParameters `protobuf:"bytes,29,opt,name=system_parameters,json=systemParameters,proto3" json:"system_parameters,omitempty"`
|
||||
// Output only. The source information for this configuration if available.
|
||||
SourceInfo *SourceInfo `protobuf:"bytes,37,opt,name=source_info,json=sourceInfo,proto3" json:"source_info,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Service) Reset() { *m = Service{} }
|
||||
func (m *Service) String() string { return proto.CompactTextString(m) }
|
||||
func (*Service) ProtoMessage() {}
|
||||
func (*Service) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_service_e641d3f3e04723a1, []int{0}
|
||||
}
|
||||
func (m *Service) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Service.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Service.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Service) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Service.Merge(dst, src)
|
||||
}
|
||||
func (m *Service) XXX_Size() int {
|
||||
return xxx_messageInfo_Service.Size(m)
|
||||
}
|
||||
func (m *Service) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Service.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Service proto.InternalMessageInfo
|
||||
|
||||
func (m *Service) GetConfigVersion() *wrappers.UInt32Value {
|
||||
if m != nil {
|
||||
return m.ConfigVersion
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Service) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Service) GetId() string {
|
||||
if m != nil {
|
||||
return m.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Service) GetTitle() string {
|
||||
if m != nil {
|
||||
return m.Title
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Service) GetProducerProjectId() string {
|
||||
if m != nil {
|
||||
return m.ProducerProjectId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Service) GetApis() []*api.Api {
|
||||
if m != nil {
|
||||
return m.Apis
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Service) GetTypes() []*ptype.Type {
|
||||
if m != nil {
|
||||
return m.Types
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Service) GetEnums() []*ptype.Enum {
|
||||
if m != nil {
|
||||
return m.Enums
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Service) GetDocumentation() *Documentation {
|
||||
if m != nil {
|
||||
return m.Documentation
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Service) GetBackend() *Backend {
|
||||
if m != nil {
|
||||
return m.Backend
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Service) GetHttp() *annotations.Http {
|
||||
if m != nil {
|
||||
return m.Http
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Service) GetQuota() *Quota {
|
||||
if m != nil {
|
||||
return m.Quota
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Service) GetAuthentication() *Authentication {
|
||||
if m != nil {
|
||||
return m.Authentication
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Service) GetContext() *Context {
|
||||
if m != nil {
|
||||
return m.Context
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Service) GetUsage() *Usage {
|
||||
if m != nil {
|
||||
return m.Usage
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Service) GetEndpoints() []*Endpoint {
|
||||
if m != nil {
|
||||
return m.Endpoints
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Service) GetControl() *Control {
|
||||
if m != nil {
|
||||
return m.Control
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Service) GetLogs() []*LogDescriptor {
|
||||
if m != nil {
|
||||
return m.Logs
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Service) GetMetrics() []*metric.MetricDescriptor {
|
||||
if m != nil {
|
||||
return m.Metrics
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Service) GetMonitoredResources() []*monitoredres.MonitoredResourceDescriptor {
|
||||
if m != nil {
|
||||
return m.MonitoredResources
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Service) GetBilling() *Billing {
|
||||
if m != nil {
|
||||
return m.Billing
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Service) GetLogging() *Logging {
|
||||
if m != nil {
|
||||
return m.Logging
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Service) GetMonitoring() *Monitoring {
|
||||
if m != nil {
|
||||
return m.Monitoring
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Service) GetSystemParameters() *SystemParameters {
|
||||
if m != nil {
|
||||
return m.SystemParameters
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Service) GetSourceInfo() *SourceInfo {
|
||||
if m != nil {
|
||||
return m.SourceInfo
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Service)(nil), "google.api.Service")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/api/service.proto", fileDescriptor_service_e641d3f3e04723a1) }
|
||||
|
||||
var fileDescriptor_service_e641d3f3e04723a1 = []byte{
|
||||
// 791 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x95, 0xdd, 0x6e, 0xdb, 0x36,
|
||||
0x14, 0xc7, 0x61, 0xd7, 0x6e, 0x6a, 0xba, 0xcd, 0x12, 0xc6, 0x49, 0x19, 0xd7, 0x1b, 0xd2, 0x7d,
|
||||
0xa0, 0x06, 0x86, 0xca, 0x80, 0x0b, 0x74, 0x17, 0xbb, 0x18, 0xe2, 0x36, 0xd8, 0x3c, 0x74, 0x80,
|
||||
0xc7, 0xac, 0xc1, 0xb0, 0x1b, 0x43, 0x91, 0x68, 0x85, 0x9b, 0x44, 0x72, 0x24, 0x95, 0x2d, 0xaf,
|
||||
0xb3, 0xd7, 0xda, 0xcb, 0x14, 0xfc, 0x50, 0x4c, 0x59, 0xca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e2, 0x8c, 0xec, 0x7c, 0x2d, 0xfb, 0x74, 0x5d,
|
||||
0x6e, 0x8c, 0xe0, 0xd1, 0x78, 0x17, 0xe9, 0x3b, 0x41, 0x76, 0x36, 0xe1, 0x9e, 0xfd, 0x23, 0x63,
|
||||
0x21, 0x88, 0xf4, 0x67, 0xe4, 0xcb, 0xff, 0x07, 0x60, 0xef, 0xd2, 0x9d, 0x2f, 0xf8, 0x0e, 0xec,
|
||||
0x27, 0x9c, 0x6d, 0x68, 0xb6, 0xbe, 0x25, 0x52, 0x51, 0xce, 0xd0, 0xe8, 0xac, 0x33, 0x1d, 0xce,
|
||||
0x27, 0x91, 0x3f, 0x72, 0x55, 0x93, 0xe8, 0xe3, 0x92, 0xe9, 0x37, 0xf3, 0xab, 0x38, 0x2f, 0x09,
|
||||
0x7e, 0xe6, 0x6a, 0xae, 0x5c, 0x09, 0x84, 0xa0, 0xc7, 0xe2, 0x82, 0xa0, 0xce, 0x59, 0x67, 0x3a,
|
||||
0xc0, 0xf6, 0x37, 0xdc, 0x07, 0x5d, 0x9a, 0xa2, 0x97, 0x76, 0xa5, 0x4b, 0x53, 0x38, 0x02, 0x7d,
|
||||
0x4d, 0x75, 0x4e, 0x50, 0xd7, 0x2e, 0xb9, 0x07, 0x18, 0x81, 0x23, 0x21, 0x79, 0x5a, 0x26, 0x44,
|
||||
0xae, 0x85, 0xe4, 0x7f, 0x92, 0x44, 0xaf, 0x69, 0x8a, 0x4e, 0xac, 0x73, 0x58, 0xa1, 0x95, 0x23,
|
||||
0xcb, 0x14, 0x4e, 0x41, 0x2f, 0x16, 0x54, 0xa1, 0x47, 0x67, 0x8f, 0xa6, 0xc3, 0xf9, 0xa8, 0x31,
|
||||
0xe4, 0xb9, 0xa0, 0xd8, 0x1a, 0xf0, 0x5b, 0xd0, 0x37, 0x9f, 0x44, 0xa1, 0x9e, 0x55, 0x8f, 0x1b,
|
||||
0xea, 0x6f, 0x77, 0x82, 0x60, 0xe7, 0x18, 0x99, 0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ab, 0xe5, 0xf5, 0x63, 0x5b, 0xf8, 0xe6, 0x53, 0x00, 0x00, 0x00, 0xff, 0xff, 0x22,
|
||||
0xb3, 0x0f, 0xc7, 0xbe, 0x07, 0x00, 0x00,
|
||||
}
|
85
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/source_info.pb.go
generated
vendored
85
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/source_info.pb.go
generated
vendored
@ -1,85 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/source_info.proto
|
||||
|
||||
package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import any "github.com/golang/protobuf/ptypes/any"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Source information used to create a Service Config
|
||||
type SourceInfo struct {
|
||||
// All files used during config generation.
|
||||
SourceFiles []*any.Any `protobuf:"bytes,1,rep,name=source_files,json=sourceFiles,proto3" json:"source_files,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *SourceInfo) Reset() { *m = SourceInfo{} }
|
||||
func (m *SourceInfo) String() string { return proto.CompactTextString(m) }
|
||||
func (*SourceInfo) ProtoMessage() {}
|
||||
func (*SourceInfo) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_source_info_65b7b902b6df926b, []int{0}
|
||||
}
|
||||
func (m *SourceInfo) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_SourceInfo.Unmarshal(m, b)
|
||||
}
|
||||
func (m *SourceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_SourceInfo.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *SourceInfo) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_SourceInfo.Merge(dst, src)
|
||||
}
|
||||
func (m *SourceInfo) XXX_Size() int {
|
||||
return xxx_messageInfo_SourceInfo.Size(m)
|
||||
}
|
||||
func (m *SourceInfo) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_SourceInfo.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_SourceInfo proto.InternalMessageInfo
|
||||
|
||||
func (m *SourceInfo) GetSourceFiles() []*any.Any {
|
||||
if m != nil {
|
||||
return m.SourceFiles
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*SourceInfo)(nil), "google.api.SourceInfo")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/api/source_info.proto", fileDescriptor_source_info_65b7b902b6df926b)
|
||||
}
|
||||
|
||||
var fileDescriptor_source_info_65b7b902b6df926b = []byte{
|
||||
// 198 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x49, 0xcf, 0xcf, 0x4f,
|
||||
0xcf, 0x49, 0xd5, 0x4f, 0x2c, 0xc8, 0xd4, 0x2f, 0xce, 0x2f, 0x2d, 0x4a, 0x4e, 0x8d, 0xcf, 0xcc,
|
||||
0x4b, 0xcb, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x82, 0xc8, 0xea, 0x25, 0x16, 0x64,
|
||||
0x4a, 0x49, 0x42, 0x55, 0x82, 0x65, 0x92, 0x4a, 0xd3, 0xf4, 0x13, 0xf3, 0x2a, 0x21, 0xca, 0x94,
|
||||
0x5c, 0xb9, 0xb8, 0x82, 0xc1, 0x7a, 0x3d, 0xf3, 0xd2, 0xf2, 0x85, 0xcc, 0xb9, 0x78, 0xa0, 0x26,
|
||||
0xa5, 0x65, 0xe6, 0xa4, 0x16, 0x4b, 0x30, 0x2a, 0x30, 0x6b, 0x70, 0x1b, 0x89, 0xe8, 0x41, 0xcd,
|
||||
0x82, 0xe9, 0xd7, 0x73, 0xcc, 0xab, 0x0c, 0xe2, 0x86, 0xa8, 0x74, 0x03, 0x29, 0x74, 0x2a, 0xe4,
|
||||
0xe2, 0x4b, 0xce, 0xcf, 0xd5, 0x43, 0xd8, 0xe9, 0xc4, 0x8f, 0x30, 0x36, 0x00, 0xa4, 0x2d, 0x80,
|
||||
0x31, 0xca, 0x15, 0x2a, 0x9d, 0x9e, 0x9f, 0x93, 0x98, 0x97, 0xae, 0x97, 0x5f, 0x94, 0xae, 0x9f,
|
||||
0x9e, 0x9a, 0x07, 0x36, 0x54, 0x1f, 0x22, 0x95, 0x58, 0x90, 0x59, 0x0c, 0xf1, 0x4f, 0x6a, 0x51,
|
||||
0x59, 0x66, 0x72, 0x6a, 0x72, 0x7e, 0x5e, 0x5a, 0x66, 0xba, 0x35, 0x0a, 0x6f, 0x11, 0x13, 0x8b,
|
||||
0xbb, 0x63, 0x80, 0x67, 0x12, 0x1b, 0x58, 0xa3, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xd4, 0x78,
|
||||
0x5d, 0xab, 0x07, 0x01, 0x00, 0x00,
|
||||
}
|
243
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/system_parameter.pb.go
generated
vendored
243
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/system_parameter.pb.go
generated
vendored
@ -1,243 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/system_parameter.proto
|
||||
|
||||
package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// ### System parameter configuration
|
||||
//
|
||||
// A system parameter is a special kind of parameter defined by the API
|
||||
// system, not by an individual API. It is typically mapped to an HTTP header
|
||||
// and/or a URL query parameter. This configuration specifies which methods
|
||||
// change the names of the system parameters.
|
||||
type SystemParameters struct {
|
||||
// Define system parameters.
|
||||
//
|
||||
// The parameters defined here will override the default parameters
|
||||
// implemented by the system. If this field is missing from the service
|
||||
// config, default system parameters will be used. Default system parameters
|
||||
// and names is implementation-dependent.
|
||||
//
|
||||
// Example: define api key for all methods
|
||||
//
|
||||
// system_parameters
|
||||
// rules:
|
||||
// - selector: "*"
|
||||
// parameters:
|
||||
// - name: api_key
|
||||
// url_query_parameter: api_key
|
||||
//
|
||||
//
|
||||
// Example: define 2 api key names for a specific method.
|
||||
//
|
||||
// system_parameters
|
||||
// rules:
|
||||
// - selector: "/ListShelves"
|
||||
// parameters:
|
||||
// - name: api_key
|
||||
// http_header: Api-Key1
|
||||
// - name: api_key
|
||||
// http_header: Api-Key2
|
||||
//
|
||||
// **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
Rules []*SystemParameterRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *SystemParameters) Reset() { *m = SystemParameters{} }
|
||||
func (m *SystemParameters) String() string { return proto.CompactTextString(m) }
|
||||
func (*SystemParameters) ProtoMessage() {}
|
||||
func (*SystemParameters) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_system_parameter_260dda33a71a8c82, []int{0}
|
||||
}
|
||||
func (m *SystemParameters) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_SystemParameters.Unmarshal(m, b)
|
||||
}
|
||||
func (m *SystemParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_SystemParameters.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *SystemParameters) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_SystemParameters.Merge(dst, src)
|
||||
}
|
||||
func (m *SystemParameters) XXX_Size() int {
|
||||
return xxx_messageInfo_SystemParameters.Size(m)
|
||||
}
|
||||
func (m *SystemParameters) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_SystemParameters.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_SystemParameters proto.InternalMessageInfo
|
||||
|
||||
func (m *SystemParameters) GetRules() []*SystemParameterRule {
|
||||
if m != nil {
|
||||
return m.Rules
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Define a system parameter rule mapping system parameter definitions to
|
||||
// methods.
|
||||
type SystemParameterRule struct {
|
||||
// Selects the methods to which this rule applies. Use '*' to indicate all
|
||||
// methods in all APIs.
|
||||
//
|
||||
// Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
|
||||
Selector string `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
|
||||
// Define parameters. Multiple names may be defined for a parameter.
|
||||
// For a given method call, only one of them should be used. If multiple
|
||||
// names are used the behavior is implementation-dependent.
|
||||
// If none of the specified names are present the behavior is
|
||||
// parameter-dependent.
|
||||
Parameters []*SystemParameter `protobuf:"bytes,2,rep,name=parameters,proto3" json:"parameters,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *SystemParameterRule) Reset() { *m = SystemParameterRule{} }
|
||||
func (m *SystemParameterRule) String() string { return proto.CompactTextString(m) }
|
||||
func (*SystemParameterRule) ProtoMessage() {}
|
||||
func (*SystemParameterRule) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_system_parameter_260dda33a71a8c82, []int{1}
|
||||
}
|
||||
func (m *SystemParameterRule) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_SystemParameterRule.Unmarshal(m, b)
|
||||
}
|
||||
func (m *SystemParameterRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_SystemParameterRule.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *SystemParameterRule) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_SystemParameterRule.Merge(dst, src)
|
||||
}
|
||||
func (m *SystemParameterRule) XXX_Size() int {
|
||||
return xxx_messageInfo_SystemParameterRule.Size(m)
|
||||
}
|
||||
func (m *SystemParameterRule) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_SystemParameterRule.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_SystemParameterRule proto.InternalMessageInfo
|
||||
|
||||
func (m *SystemParameterRule) GetSelector() string {
|
||||
if m != nil {
|
||||
return m.Selector
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *SystemParameterRule) GetParameters() []*SystemParameter {
|
||||
if m != nil {
|
||||
return m.Parameters
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Define a parameter's name and location. The parameter may be passed as either
|
||||
// an HTTP header or a URL query parameter, and if both are passed the behavior
|
||||
// is implementation-dependent.
|
||||
type SystemParameter struct {
|
||||
// Define the name of the parameter, such as "api_key" . It is case sensitive.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// Define the HTTP header name to use for the parameter. It is case
|
||||
// insensitive.
|
||||
HttpHeader string `protobuf:"bytes,2,opt,name=http_header,json=httpHeader,proto3" json:"http_header,omitempty"`
|
||||
// Define the URL query parameter name to use for the parameter. It is case
|
||||
// sensitive.
|
||||
UrlQueryParameter string `protobuf:"bytes,3,opt,name=url_query_parameter,json=urlQueryParameter,proto3" json:"url_query_parameter,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *SystemParameter) Reset() { *m = SystemParameter{} }
|
||||
func (m *SystemParameter) String() string { return proto.CompactTextString(m) }
|
||||
func (*SystemParameter) ProtoMessage() {}
|
||||
func (*SystemParameter) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_system_parameter_260dda33a71a8c82, []int{2}
|
||||
}
|
||||
func (m *SystemParameter) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_SystemParameter.Unmarshal(m, b)
|
||||
}
|
||||
func (m *SystemParameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_SystemParameter.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *SystemParameter) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_SystemParameter.Merge(dst, src)
|
||||
}
|
||||
func (m *SystemParameter) XXX_Size() int {
|
||||
return xxx_messageInfo_SystemParameter.Size(m)
|
||||
}
|
||||
func (m *SystemParameter) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_SystemParameter.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_SystemParameter proto.InternalMessageInfo
|
||||
|
||||
func (m *SystemParameter) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *SystemParameter) GetHttpHeader() string {
|
||||
if m != nil {
|
||||
return m.HttpHeader
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *SystemParameter) GetUrlQueryParameter() string {
|
||||
if m != nil {
|
||||
return m.UrlQueryParameter
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*SystemParameters)(nil), "google.api.SystemParameters")
|
||||
proto.RegisterType((*SystemParameterRule)(nil), "google.api.SystemParameterRule")
|
||||
proto.RegisterType((*SystemParameter)(nil), "google.api.SystemParameter")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/api/system_parameter.proto", fileDescriptor_system_parameter_260dda33a71a8c82)
|
||||
}
|
||||
|
||||
var fileDescriptor_system_parameter_260dda33a71a8c82 = []byte{
|
||||
// 286 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xbf, 0x4e, 0xc3, 0x30,
|
||||
0x10, 0x87, 0x95, 0xb6, 0x20, 0xb8, 0x4a, 0xfc, 0x71, 0x19, 0x22, 0x18, 0x5a, 0x3a, 0x75, 0x72,
|
||||
0x24, 0x10, 0x53, 0x27, 0x2a, 0x21, 0xe8, 0x16, 0xca, 0xc6, 0x12, 0x99, 0x70, 0xb8, 0x91, 0x9c,
|
||||
0xd8, 0x9c, 0x9d, 0x48, 0x7d, 0x1d, 0x9e, 0x14, 0xc5, 0x29, 0x69, 0x89, 0x10, 0x9b, 0xef, 0xbe,
|
||||
0xcf, 0xfa, 0x9d, 0xee, 0xe0, 0x5a, 0x6a, 0x2d, 0x15, 0x46, 0xc2, 0x64, 0x91, 0xdd, 0x58, 0x87,
|
||||
0x79, 0x62, 0x04, 0x89, 0x1c, 0x1d, 0x12, 0x37, 0xa4, 0x9d, 0x66, 0xd0, 0x28, 0x5c, 0x98, 0x6c,
|
||||
0xba, 0x84, 0xb3, 0x17, 0x6f, 0xc5, 0x3f, 0x92, 0x65, 0x77, 0x70, 0x40, 0xa5, 0x42, 0x1b, 0x06,
|
||||
0x93, 0xfe, 0x6c, 0x78, 0x33, 0xe6, 0x3b, 0x9f, 0x77, 0xe4, 0x55, 0xa9, 0x70, 0xd5, 0xd8, 0xd3,
|
||||
0x02, 0x46, 0x7f, 0x50, 0x76, 0x09, 0x47, 0x16, 0x15, 0xa6, 0x4e, 0x53, 0x18, 0x4c, 0x82, 0xd9,
|
||||
0xf1, 0xaa, 0xad, 0xd9, 0x1c, 0xa0, 0x1d, 0xce, 0x86, 0x3d, 0x1f, 0x77, 0xf5, 0x5f, 0xdc, 0x9e,
|
||||
0x3e, 0xad, 0xe0, 0xb4, 0x83, 0x19, 0x83, 0x41, 0x21, 0x72, 0xdc, 0xe6, 0xf8, 0x37, 0x1b, 0xc3,
|
||||
0x70, 0xed, 0x9c, 0x49, 0xd6, 0x28, 0xde, 0x91, 0xc2, 0x9e, 0x47, 0x50, 0xb7, 0x9e, 0x7c, 0x87,
|
||||
0x71, 0x18, 0x95, 0xa4, 0x92, 0xcf, 0x12, 0x69, 0xb3, 0xdb, 0x55, 0xd8, 0xf7, 0xe2, 0x79, 0x49,
|
||||
0xea, 0xb9, 0x26, 0x6d, 0xc8, 0xa2, 0x82, 0x93, 0x54, 0xe7, 0x7b, 0x53, 0x2e, 0x2e, 0x3a, 0x73,
|
||||
0xc4, 0xf5, 0x9a, 0xe3, 0xe0, 0xf5, 0x61, 0xeb, 0x48, 0xad, 0x44, 0x21, 0xb9, 0x26, 0x19, 0x49,
|
||||
0x2c, 0xfc, 0x11, 0xa2, 0x06, 0x09, 0x93, 0xd9, 0xe6, 0x54, 0x48, 0x55, 0x96, 0x62, 0xaa, 0x8b,
|
||||
0x8f, 0x4c, 0xce, 0x7f, 0x55, 0x5f, 0xbd, 0xc1, 0xe3, 0x7d, 0xbc, 0x7c, 0x3b, 0xf4, 0x1f, 0x6f,
|
||||
0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x5e, 0xdf, 0x2e, 0x09, 0xe2, 0x01, 0x00, 0x00,
|
||||
}
|
210
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/usage.pb.go
generated
vendored
210
vendor/google.golang.org/genproto/googleapis/api/serviceconfig/usage.pb.go
generated
vendored
@ -1,210 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/usage.proto
|
||||
|
||||
package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Configuration controlling usage of a service.
|
||||
type Usage struct {
|
||||
// Requirements that must be satisfied before a consumer project can use the
|
||||
// service. Each requirement is of the form <service.name>/<requirement-id>;
|
||||
// for example 'serviceusage.googleapis.com/billing-enabled'.
|
||||
Requirements []string `protobuf:"bytes,1,rep,name=requirements,proto3" json:"requirements,omitempty"`
|
||||
// A list of usage rules that apply to individual API methods.
|
||||
//
|
||||
// **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
Rules []*UsageRule `protobuf:"bytes,6,rep,name=rules,proto3" json:"rules,omitempty"`
|
||||
// The full resource name of a channel used for sending notifications to the
|
||||
// service producer.
|
||||
//
|
||||
// Google Service Management currently only supports
|
||||
// [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
|
||||
// channel. To use Google Cloud Pub/Sub as the channel, this must be the name
|
||||
// of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format
|
||||
// documented in https://cloud.google.com/pubsub/docs/overview.
|
||||
ProducerNotificationChannel string `protobuf:"bytes,7,opt,name=producer_notification_channel,json=producerNotificationChannel,proto3" json:"producer_notification_channel,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Usage) Reset() { *m = Usage{} }
|
||||
func (m *Usage) String() string { return proto.CompactTextString(m) }
|
||||
func (*Usage) ProtoMessage() {}
|
||||
func (*Usage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_usage_d93cb687fa4d5498, []int{0}
|
||||
}
|
||||
func (m *Usage) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Usage.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Usage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Usage.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Usage) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Usage.Merge(dst, src)
|
||||
}
|
||||
func (m *Usage) XXX_Size() int {
|
||||
return xxx_messageInfo_Usage.Size(m)
|
||||
}
|
||||
func (m *Usage) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Usage.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Usage proto.InternalMessageInfo
|
||||
|
||||
func (m *Usage) GetRequirements() []string {
|
||||
if m != nil {
|
||||
return m.Requirements
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Usage) GetRules() []*UsageRule {
|
||||
if m != nil {
|
||||
return m.Rules
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Usage) GetProducerNotificationChannel() string {
|
||||
if m != nil {
|
||||
return m.ProducerNotificationChannel
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Usage configuration rules for the service.
|
||||
//
|
||||
// NOTE: Under development.
|
||||
//
|
||||
//
|
||||
// Use this rule to configure unregistered calls for the service. Unregistered
|
||||
// calls are calls that do not contain consumer project identity.
|
||||
// (Example: calls that do not contain an API key).
|
||||
// By default, API methods do not allow unregistered calls, and each method call
|
||||
// must be identified by a consumer project identity. Use this rule to
|
||||
// allow/disallow unregistered calls.
|
||||
//
|
||||
// Example of an API that wants to allow unregistered calls for entire service.
|
||||
//
|
||||
// usage:
|
||||
// rules:
|
||||
// - selector: "*"
|
||||
// allow_unregistered_calls: true
|
||||
//
|
||||
// Example of a method that wants to allow unregistered calls.
|
||||
//
|
||||
// usage:
|
||||
// rules:
|
||||
// - selector: "google.example.library.v1.LibraryService.CreateBook"
|
||||
// allow_unregistered_calls: true
|
||||
type UsageRule struct {
|
||||
// Selects the methods to which this rule applies. Use '*' to indicate all
|
||||
// methods in all APIs.
|
||||
//
|
||||
// Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
|
||||
Selector string `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
|
||||
// If true, the selected method allows unregistered calls, e.g. calls
|
||||
// that don't identify any user or application.
|
||||
AllowUnregisteredCalls bool `protobuf:"varint,2,opt,name=allow_unregistered_calls,json=allowUnregisteredCalls,proto3" json:"allow_unregistered_calls,omitempty"`
|
||||
// If true, the selected method should skip service control and the control
|
||||
// plane features, such as quota and billing, will not be available.
|
||||
// This flag is used by Google Cloud Endpoints to bypass checks for internal
|
||||
// methods, such as service health check methods.
|
||||
SkipServiceControl bool `protobuf:"varint,3,opt,name=skip_service_control,json=skipServiceControl,proto3" json:"skip_service_control,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *UsageRule) Reset() { *m = UsageRule{} }
|
||||
func (m *UsageRule) String() string { return proto.CompactTextString(m) }
|
||||
func (*UsageRule) ProtoMessage() {}
|
||||
func (*UsageRule) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_usage_d93cb687fa4d5498, []int{1}
|
||||
}
|
||||
func (m *UsageRule) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_UsageRule.Unmarshal(m, b)
|
||||
}
|
||||
func (m *UsageRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_UsageRule.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *UsageRule) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_UsageRule.Merge(dst, src)
|
||||
}
|
||||
func (m *UsageRule) XXX_Size() int {
|
||||
return xxx_messageInfo_UsageRule.Size(m)
|
||||
}
|
||||
func (m *UsageRule) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_UsageRule.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_UsageRule proto.InternalMessageInfo
|
||||
|
||||
func (m *UsageRule) GetSelector() string {
|
||||
if m != nil {
|
||||
return m.Selector
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *UsageRule) GetAllowUnregisteredCalls() bool {
|
||||
if m != nil {
|
||||
return m.AllowUnregisteredCalls
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *UsageRule) GetSkipServiceControl() bool {
|
||||
if m != nil {
|
||||
return m.SkipServiceControl
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Usage)(nil), "google.api.Usage")
|
||||
proto.RegisterType((*UsageRule)(nil), "google.api.UsageRule")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/api/usage.proto", fileDescriptor_usage_d93cb687fa4d5498) }
|
||||
|
||||
var fileDescriptor_usage_d93cb687fa4d5498 = []byte{
|
||||
// 331 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0xc1, 0x4b, 0xfb, 0x30,
|
||||
0x14, 0xc7, 0xe9, 0xf6, 0xdb, 0x7e, 0x5b, 0x14, 0x0f, 0x41, 0x47, 0x99, 0x0a, 0x65, 0xa7, 0x82,
|
||||
0xd0, 0x8a, 0x5e, 0x04, 0x4f, 0x6e, 0x88, 0x78, 0x91, 0x51, 0xd9, 0xc5, 0x4b, 0x89, 0xd9, 0x5b,
|
||||
0x0c, 0x66, 0x79, 0x35, 0x49, 0xf5, 0x0f, 0xf1, 0xea, 0xc9, 0xbf, 0x54, 0x9a, 0xcc, 0xd9, 0x1d,
|
||||
0xdf, 0xfb, 0x7c, 0xbe, 0xef, 0xb5, 0x2f, 0x64, 0x24, 0x10, 0x85, 0x82, 0x9c, 0x55, 0x32, 0xaf,
|
||||
0x2d, 0x13, 0x90, 0x55, 0x06, 0x1d, 0x52, 0x12, 0xfa, 0x19, 0xab, 0xe4, 0xf8, 0xa4, 0xe5, 0x30,
|
||||
0xad, 0xd1, 0x31, 0x27, 0x51, 0xdb, 0x60, 0x4e, 0xbe, 0x22, 0xd2, 0x5b, 0x34, 0x49, 0x3a, 0x21,
|
||||
0xfb, 0x06, 0xde, 0x6a, 0x69, 0x60, 0x0d, 0xda, 0xd9, 0x38, 0x4a, 0xba, 0xe9, 0xb0, 0xd8, 0xe9,
|
||||
0xd1, 0x33, 0xd2, 0x33, 0xb5, 0x02, 0x1b, 0xf7, 0x93, 0x6e, 0xba, 0x77, 0x71, 0x94, 0xfd, 0xed,
|
||||
0xc9, 0xfc, 0x94, 0xa2, 0x56, 0x50, 0x04, 0x87, 0x4e, 0xc9, 0x69, 0x65, 0x70, 0x59, 0x73, 0x30,
|
||||
0xa5, 0x46, 0x27, 0x57, 0x92, 0xfb, 0xd5, 0x25, 0x7f, 0x61, 0x5a, 0x83, 0x8a, 0xff, 0x27, 0x51,
|
||||
0x3a, 0x2c, 0x8e, 0x7f, 0xa5, 0x87, 0x96, 0x33, 0x0b, 0xca, 0xe4, 0x33, 0x22, 0xc3, 0xed, 0x60,
|
||||
0x3a, 0x26, 0x03, 0x0b, 0x0a, 0xb8, 0x43, 0x13, 0x47, 0x3e, 0xbc, 0xad, 0xe9, 0x15, 0x89, 0x99,
|
||||
0x52, 0xf8, 0x51, 0xd6, 0xda, 0x80, 0x90, 0xd6, 0x81, 0x81, 0x65, 0xc9, 0x99, 0x52, 0x36, 0xee,
|
||||
0x24, 0x51, 0x3a, 0x28, 0x46, 0x9e, 0x2f, 0x5a, 0x78, 0xd6, 0x50, 0x7a, 0x4e, 0x0e, 0xed, 0xab,
|
||||
0xac, 0x4a, 0x0b, 0xe6, 0x5d, 0x72, 0x28, 0x39, 0x6a, 0x67, 0x50, 0xc5, 0x5d, 0x9f, 0xa2, 0x0d,
|
||||
0x7b, 0x0c, 0x68, 0x16, 0xc8, 0x54, 0x91, 0x03, 0x8e, 0xeb, 0xd6, 0xcf, 0x4f, 0x89, 0xff, 0xc8,
|
||||
0x79, 0x73, 0xd2, 0x79, 0xf4, 0x74, 0xbb, 0x21, 0x02, 0x15, 0xd3, 0x22, 0x43, 0x23, 0x72, 0x01,
|
||||
0xda, 0x1f, 0x3c, 0x0f, 0x88, 0x55, 0xd2, 0xfa, 0x17, 0xd9, 0x2c, 0xe5, 0xa8, 0x57, 0x52, 0x5c,
|
||||
0xef, 0x54, 0xdf, 0x9d, 0x7f, 0x77, 0x37, 0xf3, 0xfb, 0xe7, 0xbe, 0x0f, 0x5e, 0xfe, 0x04, 0x00,
|
||||
0x00, 0xff, 0xff, 0x9c, 0x4b, 0x8c, 0x57, 0xed, 0x01, 0x00, 0x00,
|
||||
}
|
205
vendor/google.golang.org/genproto/googleapis/api/servicecontrol/v1/check_error.pb.go
generated
vendored
205
vendor/google.golang.org/genproto/googleapis/api/servicecontrol/v1/check_error.pb.go
generated
vendored
@ -1,205 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/servicecontrol/v1/check_error.proto
|
||||
|
||||
package servicecontrol // import "google.golang.org/genproto/googleapis/api/servicecontrol/v1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Error codes for Check responses.
|
||||
type CheckError_Code int32
|
||||
|
||||
const (
|
||||
// This is never used in `CheckResponse`.
|
||||
CheckError_ERROR_CODE_UNSPECIFIED CheckError_Code = 0
|
||||
// The consumer's project id was not found.
|
||||
// Same as [google.rpc.Code.NOT_FOUND][].
|
||||
CheckError_NOT_FOUND CheckError_Code = 5
|
||||
// The consumer doesn't have access to the specified resource.
|
||||
// Same as [google.rpc.Code.PERMISSION_DENIED][].
|
||||
CheckError_PERMISSION_DENIED CheckError_Code = 7
|
||||
// Quota check failed. Same as [google.rpc.Code.RESOURCE_EXHAUSTED][].
|
||||
CheckError_RESOURCE_EXHAUSTED CheckError_Code = 8
|
||||
// The consumer hasn't activated the service.
|
||||
CheckError_SERVICE_NOT_ACTIVATED CheckError_Code = 104
|
||||
// The consumer cannot access the service because billing is disabled.
|
||||
CheckError_BILLING_DISABLED CheckError_Code = 107
|
||||
// The consumer's project has been marked as deleted (soft deletion).
|
||||
CheckError_PROJECT_DELETED CheckError_Code = 108
|
||||
// The consumer's project number or id does not represent a valid project.
|
||||
CheckError_PROJECT_INVALID CheckError_Code = 114
|
||||
// The IP address of the consumer is invalid for the specific consumer
|
||||
// project.
|
||||
CheckError_IP_ADDRESS_BLOCKED CheckError_Code = 109
|
||||
// The referer address of the consumer request is invalid for the specific
|
||||
// consumer project.
|
||||
CheckError_REFERER_BLOCKED CheckError_Code = 110
|
||||
// The client application of the consumer request is invalid for the
|
||||
// specific consumer project.
|
||||
CheckError_CLIENT_APP_BLOCKED CheckError_Code = 111
|
||||
// The consumer's API key is invalid.
|
||||
CheckError_API_KEY_INVALID CheckError_Code = 105
|
||||
// The consumer's API Key has expired.
|
||||
CheckError_API_KEY_EXPIRED CheckError_Code = 112
|
||||
// The consumer's API Key was not found in config record.
|
||||
CheckError_API_KEY_NOT_FOUND CheckError_Code = 113
|
||||
// The backend server for looking up project id/number is unavailable.
|
||||
CheckError_NAMESPACE_LOOKUP_UNAVAILABLE CheckError_Code = 300
|
||||
// The backend server for checking service status is unavailable.
|
||||
CheckError_SERVICE_STATUS_UNAVAILABLE CheckError_Code = 301
|
||||
// The backend server for checking billing status is unavailable.
|
||||
CheckError_BILLING_STATUS_UNAVAILABLE CheckError_Code = 302
|
||||
)
|
||||
|
||||
var CheckError_Code_name = map[int32]string{
|
||||
0: "ERROR_CODE_UNSPECIFIED",
|
||||
5: "NOT_FOUND",
|
||||
7: "PERMISSION_DENIED",
|
||||
8: "RESOURCE_EXHAUSTED",
|
||||
104: "SERVICE_NOT_ACTIVATED",
|
||||
107: "BILLING_DISABLED",
|
||||
108: "PROJECT_DELETED",
|
||||
114: "PROJECT_INVALID",
|
||||
109: "IP_ADDRESS_BLOCKED",
|
||||
110: "REFERER_BLOCKED",
|
||||
111: "CLIENT_APP_BLOCKED",
|
||||
105: "API_KEY_INVALID",
|
||||
112: "API_KEY_EXPIRED",
|
||||
113: "API_KEY_NOT_FOUND",
|
||||
300: "NAMESPACE_LOOKUP_UNAVAILABLE",
|
||||
301: "SERVICE_STATUS_UNAVAILABLE",
|
||||
302: "BILLING_STATUS_UNAVAILABLE",
|
||||
}
|
||||
var CheckError_Code_value = map[string]int32{
|
||||
"ERROR_CODE_UNSPECIFIED": 0,
|
||||
"NOT_FOUND": 5,
|
||||
"PERMISSION_DENIED": 7,
|
||||
"RESOURCE_EXHAUSTED": 8,
|
||||
"SERVICE_NOT_ACTIVATED": 104,
|
||||
"BILLING_DISABLED": 107,
|
||||
"PROJECT_DELETED": 108,
|
||||
"PROJECT_INVALID": 114,
|
||||
"IP_ADDRESS_BLOCKED": 109,
|
||||
"REFERER_BLOCKED": 110,
|
||||
"CLIENT_APP_BLOCKED": 111,
|
||||
"API_KEY_INVALID": 105,
|
||||
"API_KEY_EXPIRED": 112,
|
||||
"API_KEY_NOT_FOUND": 113,
|
||||
"NAMESPACE_LOOKUP_UNAVAILABLE": 300,
|
||||
"SERVICE_STATUS_UNAVAILABLE": 301,
|
||||
"BILLING_STATUS_UNAVAILABLE": 302,
|
||||
}
|
||||
|
||||
func (x CheckError_Code) String() string {
|
||||
return proto.EnumName(CheckError_Code_name, int32(x))
|
||||
}
|
||||
func (CheckError_Code) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_check_error_1be1bde99e60d1aa, []int{0, 0}
|
||||
}
|
||||
|
||||
// Defines the errors to be returned in
|
||||
// [google.api.servicecontrol.v1.CheckResponse.check_errors][google.api.servicecontrol.v1.CheckResponse.check_errors].
|
||||
type CheckError struct {
|
||||
// The error code.
|
||||
Code CheckError_Code `protobuf:"varint,1,opt,name=code,proto3,enum=google.api.servicecontrol.v1.CheckError_Code" json:"code,omitempty"`
|
||||
// Free-form text providing details on the error cause of the error.
|
||||
Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CheckError) Reset() { *m = CheckError{} }
|
||||
func (m *CheckError) String() string { return proto.CompactTextString(m) }
|
||||
func (*CheckError) ProtoMessage() {}
|
||||
func (*CheckError) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_check_error_1be1bde99e60d1aa, []int{0}
|
||||
}
|
||||
func (m *CheckError) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CheckError.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CheckError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CheckError.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *CheckError) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CheckError.Merge(dst, src)
|
||||
}
|
||||
func (m *CheckError) XXX_Size() int {
|
||||
return xxx_messageInfo_CheckError.Size(m)
|
||||
}
|
||||
func (m *CheckError) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CheckError.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CheckError proto.InternalMessageInfo
|
||||
|
||||
func (m *CheckError) GetCode() CheckError_Code {
|
||||
if m != nil {
|
||||
return m.Code
|
||||
}
|
||||
return CheckError_ERROR_CODE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *CheckError) GetDetail() string {
|
||||
if m != nil {
|
||||
return m.Detail
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*CheckError)(nil), "google.api.servicecontrol.v1.CheckError")
|
||||
proto.RegisterEnum("google.api.servicecontrol.v1.CheckError_Code", CheckError_Code_name, CheckError_Code_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/api/servicecontrol/v1/check_error.proto", fileDescriptor_check_error_1be1bde99e60d1aa)
|
||||
}
|
||||
|
||||
var fileDescriptor_check_error_1be1bde99e60d1aa = []byte{
|
||||
// 484 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xdd, 0x6e, 0xd3, 0x3e,
|
||||
0x18, 0xc6, 0xff, 0xe9, 0xbf, 0x0c, 0x66, 0x09, 0x16, 0x0c, 0xab, 0x46, 0x55, 0x89, 0xb2, 0xa3,
|
||||
0x9d, 0x90, 0x68, 0x70, 0xc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x09, 0xa0, 0x7c, 0xc8, 0x81, 0xb9, 0xff, 0xe1, 0xa7, 0xe8, 0x30, 0x8c, 0x62, 0x3d, 0x8c,
|
||||
0x92, 0x90, 0xb9, 0x8f, 0xf0, 0x31, 0x7a, 0x2e, 0x40, 0x5e, 0x72, 0xa5, 0x78, 0x14, 0x6a, 0x06,
|
||||
0xa1, 0xa5, 0x1e, 0xe3, 0x0e, 0xc2, 0x12, 0x54, 0x94, 0x48, 0x0a, 0x1a, 0xae, 0x3e, 0x91, 0x44,
|
||||
0xc5, 0xc0, 0xdc, 0x27, 0xf8, 0x15, 0x3a, 0x56, 0x20, 0xc7, 0x9c, 0x82, 0xb6, 0x29, 0x84, 0xc6,
|
||||
0x7c, 0x4c, 0x6c, 0xe9, 0x1a, 0xbf, 0x44, 0xee, 0x80, 0x07, 0x01, 0x0f, 0x3f, 0x6a, 0xc6, 0x15,
|
||||
0x19, 0x04, 0xc0, 0xdc, 0x1b, 0xfc, 0x02, 0x1d, 0x09, 0x19, 0x5d, 0x00, 0x8d, 0x35, 0x83, 0x00,
|
||||
0x2c, 0x3a, 0xdd, 0x15, 0x79, 0x38, 0x26, 0x01, 0x67, 0x6e, 0x6d, 0xbf, 0xe4, 0x42, 0x13, 0xc6,
|
||||
0x24, 0x28, 0xa5, 0x07, 0x41, 0x44, 0x47, 0xc0, 0xdc, 0x5b, 0x0b, 0x4b, 0x18, 0x82, 0x04, 0xb9,
|
||||
0x11, 0x2b, 0x0b, 0xd3, 0x80, 0x43, 0x18, 0x6b, 0x22, 0xc4, 0x46, 0x37, 0x16, 0x26, 0x82, 0xeb,
|
||||
0x11, 0x7c, 0xde, 0x24, 0x97, 0xbb, 0x22, 0x5c, 0x09, 0x2e, 0x81, 0xb9, 0x33, 0xdb, 0xf8, 0x5a,
|
||||
0xdc, 0xce, 0xe3, 0x1b, 0x7e, 0x83, 0x7a, 0x21, 0xb9, 0x04, 0x25, 0x08, 0x05, 0x1d, 0x44, 0xd1,
|
||||
0x28, 0x11, 0x3a, 0x09, 0xc9, 0x98, 0xf0, 0xc0, 0xb6, 0xe4, 0xfe, 0x6a, 0xe1, 0xd7, 0xa8, 0xbb,
|
||||
0x9e, 0x81, 0x8a, 0x49, 0x9c, 0xa8, 0x3d, 0xe0, 0xf7, 0x12, 0x58, 0x4f, 0xe2, 0x1e, 0xe0, 0x4f,
|
||||
0x6b, 0xf0, 0xdd, 0x41, 0xfd, 0xcc, 0xdc, 0x3e, 0xb8, 0xfb, 0xc1, 0xd1, 0x76, 0xf9, 0xc2, 0x1e,
|
||||
0x92, 0x70, 0xbe, 0x5c, 0xdc, 0x19, 0x0a, 0x33, 0x4d, 0xab, 0xc2, 0x33, 0x75, 0xe1, 0x17, 0x79,
|
||||
0xb5, 0x3c, 0x33, 0x7f, 0x55, 0x4a, 0x67, 0xe5, 0xfc, 0xfe, 0xab, 0xfe, 0xb0, 0xaf, 0xfc, 0x75,
|
||||
0x9c, 0xaf, 0x07, 0x4b, 0xe7, 0xfb, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x7d, 0x65, 0x26, 0xbf,
|
||||
0x0e, 0x03, 0x00, 0x00,
|
||||
}
|
528
vendor/google.golang.org/genproto/googleapis/api/servicecontrol/v1/distribution.pb.go
generated
vendored
528
vendor/google.golang.org/genproto/googleapis/api/servicecontrol/v1/distribution.pb.go
generated
vendored
@ -1,528 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/servicecontrol/v1/distribution.proto
|
||||
|
||||
package servicecontrol // import "google.golang.org/genproto/googleapis/api/servicecontrol/v1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Distribution represents a frequency distribution of double-valued sample
|
||||
// points. It contains the size of the population of sample points plus
|
||||
// additional optional information:
|
||||
//
|
||||
// - the arithmetic mean of the samples
|
||||
// - the minimum and maximum of the samples
|
||||
// - the sum-squared-deviation of the samples, used to compute variance
|
||||
// - a histogram of the values of the sample points
|
||||
type Distribution struct {
|
||||
// The total number of samples in the distribution. Must be >= 0.
|
||||
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
|
||||
// The arithmetic mean of the samples in the distribution. If `count` is
|
||||
// zero then this field must be zero.
|
||||
Mean float64 `protobuf:"fixed64,2,opt,name=mean,proto3" json:"mean,omitempty"`
|
||||
// The minimum of the population of values. Ignored if `count` is zero.
|
||||
Minimum float64 `protobuf:"fixed64,3,opt,name=minimum,proto3" json:"minimum,omitempty"`
|
||||
// The maximum of the population of values. Ignored if `count` is zero.
|
||||
Maximum float64 `protobuf:"fixed64,4,opt,name=maximum,proto3" json:"maximum,omitempty"`
|
||||
// The sum of squared deviations from the mean:
|
||||
// Sum[i=1..count]((x_i - mean)^2)
|
||||
// where each x_i is a sample values. If `count` is zero then this field
|
||||
// must be zero, otherwise validation of the request fails.
|
||||
SumOfSquaredDeviation float64 `protobuf:"fixed64,5,opt,name=sum_of_squared_deviation,json=sumOfSquaredDeviation,proto3" json:"sum_of_squared_deviation,omitempty"`
|
||||
// The number of samples in each histogram bucket. `bucket_counts` are
|
||||
// optional. If present, they must sum to the `count` value.
|
||||
//
|
||||
// The buckets are defined below in `bucket_option`. There are N buckets.
|
||||
// `bucket_counts[0]` is the number of samples in the underflow bucket.
|
||||
// `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples
|
||||
// in each of the finite buckets. And `bucket_counts[N] is the number
|
||||
// of samples in the overflow bucket. See the comments of `bucket_option`
|
||||
// below for more details.
|
||||
//
|
||||
// Any suffix of trailing zeros may be omitted.
|
||||
BucketCounts []int64 `protobuf:"varint,6,rep,packed,name=bucket_counts,json=bucketCounts,proto3" json:"bucket_counts,omitempty"`
|
||||
// Defines the buckets in the histogram. `bucket_option` and `bucket_counts`
|
||||
// must be both set, or both unset.
|
||||
//
|
||||
// Buckets are numbered in the range of [0, N], with a total of N+1 buckets.
|
||||
// There must be at least two buckets (a single-bucket histogram gives
|
||||
// no information that isn't already provided by `count`).
|
||||
//
|
||||
// The first bucket is the underflow bucket which has a lower bound
|
||||
// of -inf. The last bucket is the overflow bucket which has an
|
||||
// upper bound of +inf. All other buckets (if any) are called "finite"
|
||||
// buckets because they have finite lower and upper bounds. As described
|
||||
// below, there are three ways to define the finite buckets.
|
||||
//
|
||||
// (1) Buckets with constant width.
|
||||
// (2) Buckets with exponentially growing widths.
|
||||
// (3) Buckets with arbitrary user-provided widths.
|
||||
//
|
||||
// In all cases, the buckets cover the entire real number line (-inf,
|
||||
// +inf). Bucket upper bounds are exclusive and lower bounds are
|
||||
// inclusive. The upper bound of the underflow bucket is equal to the
|
||||
// lower bound of the smallest finite bucket; the lower bound of the
|
||||
// overflow bucket is equal to the upper bound of the largest finite
|
||||
// bucket.
|
||||
//
|
||||
// Types that are valid to be assigned to BucketOption:
|
||||
// *Distribution_LinearBuckets_
|
||||
// *Distribution_ExponentialBuckets_
|
||||
// *Distribution_ExplicitBuckets_
|
||||
BucketOption isDistribution_BucketOption `protobuf_oneof:"bucket_option"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Distribution) Reset() { *m = Distribution{} }
|
||||
func (m *Distribution) String() string { return proto.CompactTextString(m) }
|
||||
func (*Distribution) ProtoMessage() {}
|
||||
func (*Distribution) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_distribution_dac88fdcde0e4047, []int{0}
|
||||
}
|
||||
func (m *Distribution) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Distribution.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Distribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Distribution.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Distribution) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Distribution.Merge(dst, src)
|
||||
}
|
||||
func (m *Distribution) XXX_Size() int {
|
||||
return xxx_messageInfo_Distribution.Size(m)
|
||||
}
|
||||
func (m *Distribution) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Distribution.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Distribution proto.InternalMessageInfo
|
||||
|
||||
func (m *Distribution) GetCount() int64 {
|
||||
if m != nil {
|
||||
return m.Count
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Distribution) GetMean() float64 {
|
||||
if m != nil {
|
||||
return m.Mean
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Distribution) GetMinimum() float64 {
|
||||
if m != nil {
|
||||
return m.Minimum
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Distribution) GetMaximum() float64 {
|
||||
if m != nil {
|
||||
return m.Maximum
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Distribution) GetSumOfSquaredDeviation() float64 {
|
||||
if m != nil {
|
||||
return m.SumOfSquaredDeviation
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Distribution) GetBucketCounts() []int64 {
|
||||
if m != nil {
|
||||
return m.BucketCounts
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type isDistribution_BucketOption interface {
|
||||
isDistribution_BucketOption()
|
||||
}
|
||||
|
||||
type Distribution_LinearBuckets_ struct {
|
||||
LinearBuckets *Distribution_LinearBuckets `protobuf:"bytes,7,opt,name=linear_buckets,json=linearBuckets,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Distribution_ExponentialBuckets_ struct {
|
||||
ExponentialBuckets *Distribution_ExponentialBuckets `protobuf:"bytes,8,opt,name=exponential_buckets,json=exponentialBuckets,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Distribution_ExplicitBuckets_ struct {
|
||||
ExplicitBuckets *Distribution_ExplicitBuckets `protobuf:"bytes,9,opt,name=explicit_buckets,json=explicitBuckets,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*Distribution_LinearBuckets_) isDistribution_BucketOption() {}
|
||||
|
||||
func (*Distribution_ExponentialBuckets_) isDistribution_BucketOption() {}
|
||||
|
||||
func (*Distribution_ExplicitBuckets_) isDistribution_BucketOption() {}
|
||||
|
||||
func (m *Distribution) GetBucketOption() isDistribution_BucketOption {
|
||||
if m != nil {
|
||||
return m.BucketOption
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Distribution) GetLinearBuckets() *Distribution_LinearBuckets {
|
||||
if x, ok := m.GetBucketOption().(*Distribution_LinearBuckets_); ok {
|
||||
return x.LinearBuckets
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Distribution) GetExponentialBuckets() *Distribution_ExponentialBuckets {
|
||||
if x, ok := m.GetBucketOption().(*Distribution_ExponentialBuckets_); ok {
|
||||
return x.ExponentialBuckets
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Distribution) GetExplicitBuckets() *Distribution_ExplicitBuckets {
|
||||
if x, ok := m.GetBucketOption().(*Distribution_ExplicitBuckets_); ok {
|
||||
return x.ExplicitBuckets
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*Distribution) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _Distribution_OneofMarshaler, _Distribution_OneofUnmarshaler, _Distribution_OneofSizer, []interface{}{
|
||||
(*Distribution_LinearBuckets_)(nil),
|
||||
(*Distribution_ExponentialBuckets_)(nil),
|
||||
(*Distribution_ExplicitBuckets_)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _Distribution_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*Distribution)
|
||||
// bucket_option
|
||||
switch x := m.BucketOption.(type) {
|
||||
case *Distribution_LinearBuckets_:
|
||||
b.EncodeVarint(7<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.LinearBuckets); err != nil {
|
||||
return err
|
||||
}
|
||||
case *Distribution_ExponentialBuckets_:
|
||||
b.EncodeVarint(8<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.ExponentialBuckets); err != nil {
|
||||
return err
|
||||
}
|
||||
case *Distribution_ExplicitBuckets_:
|
||||
b.EncodeVarint(9<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.ExplicitBuckets); err != nil {
|
||||
return err
|
||||
}
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("Distribution.BucketOption has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _Distribution_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*Distribution)
|
||||
switch tag {
|
||||
case 7: // bucket_option.linear_buckets
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(Distribution_LinearBuckets)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.BucketOption = &Distribution_LinearBuckets_{msg}
|
||||
return true, err
|
||||
case 8: // bucket_option.exponential_buckets
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(Distribution_ExponentialBuckets)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.BucketOption = &Distribution_ExponentialBuckets_{msg}
|
||||
return true, err
|
||||
case 9: // bucket_option.explicit_buckets
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(Distribution_ExplicitBuckets)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.BucketOption = &Distribution_ExplicitBuckets_{msg}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _Distribution_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*Distribution)
|
||||
// bucket_option
|
||||
switch x := m.BucketOption.(type) {
|
||||
case *Distribution_LinearBuckets_:
|
||||
s := proto.Size(x.LinearBuckets)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Distribution_ExponentialBuckets_:
|
||||
s := proto.Size(x.ExponentialBuckets)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Distribution_ExplicitBuckets_:
|
||||
s := proto.Size(x.ExplicitBuckets)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// Describing buckets with constant width.
|
||||
type Distribution_LinearBuckets struct {
|
||||
// The number of finite buckets. With the underflow and overflow buckets,
|
||||
// the total number of buckets is `num_finite_buckets` + 2.
|
||||
// See comments on `bucket_options` for details.
|
||||
NumFiniteBuckets int32 `protobuf:"varint,1,opt,name=num_finite_buckets,json=numFiniteBuckets,proto3" json:"num_finite_buckets,omitempty"`
|
||||
// The i'th linear bucket covers the interval
|
||||
// [offset + (i-1) * width, offset + i * width)
|
||||
// where i ranges from 1 to num_finite_buckets, inclusive.
|
||||
// Must be strictly positive.
|
||||
Width float64 `protobuf:"fixed64,2,opt,name=width,proto3" json:"width,omitempty"`
|
||||
// The i'th linear bucket covers the interval
|
||||
// [offset + (i-1) * width, offset + i * width)
|
||||
// where i ranges from 1 to num_finite_buckets, inclusive.
|
||||
Offset float64 `protobuf:"fixed64,3,opt,name=offset,proto3" json:"offset,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Distribution_LinearBuckets) Reset() { *m = Distribution_LinearBuckets{} }
|
||||
func (m *Distribution_LinearBuckets) String() string { return proto.CompactTextString(m) }
|
||||
func (*Distribution_LinearBuckets) ProtoMessage() {}
|
||||
func (*Distribution_LinearBuckets) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_distribution_dac88fdcde0e4047, []int{0, 0}
|
||||
}
|
||||
func (m *Distribution_LinearBuckets) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Distribution_LinearBuckets.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Distribution_LinearBuckets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Distribution_LinearBuckets.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Distribution_LinearBuckets) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Distribution_LinearBuckets.Merge(dst, src)
|
||||
}
|
||||
func (m *Distribution_LinearBuckets) XXX_Size() int {
|
||||
return xxx_messageInfo_Distribution_LinearBuckets.Size(m)
|
||||
}
|
||||
func (m *Distribution_LinearBuckets) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Distribution_LinearBuckets.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Distribution_LinearBuckets proto.InternalMessageInfo
|
||||
|
||||
func (m *Distribution_LinearBuckets) GetNumFiniteBuckets() int32 {
|
||||
if m != nil {
|
||||
return m.NumFiniteBuckets
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Distribution_LinearBuckets) GetWidth() float64 {
|
||||
if m != nil {
|
||||
return m.Width
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Distribution_LinearBuckets) GetOffset() float64 {
|
||||
if m != nil {
|
||||
return m.Offset
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// Describing buckets with exponentially growing width.
|
||||
type Distribution_ExponentialBuckets struct {
|
||||
// The number of finite buckets. With the underflow and overflow buckets,
|
||||
// the total number of buckets is `num_finite_buckets` + 2.
|
||||
// See comments on `bucket_options` for details.
|
||||
NumFiniteBuckets int32 `protobuf:"varint,1,opt,name=num_finite_buckets,json=numFiniteBuckets,proto3" json:"num_finite_buckets,omitempty"`
|
||||
// The i'th exponential bucket covers the interval
|
||||
// [scale * growth_factor^(i-1), scale * growth_factor^i)
|
||||
// where i ranges from 1 to num_finite_buckets inclusive.
|
||||
// Must be larger than 1.0.
|
||||
GrowthFactor float64 `protobuf:"fixed64,2,opt,name=growth_factor,json=growthFactor,proto3" json:"growth_factor,omitempty"`
|
||||
// The i'th exponential bucket covers the interval
|
||||
// [scale * growth_factor^(i-1), scale * growth_factor^i)
|
||||
// where i ranges from 1 to num_finite_buckets inclusive.
|
||||
// Must be > 0.
|
||||
Scale float64 `protobuf:"fixed64,3,opt,name=scale,proto3" json:"scale,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Distribution_ExponentialBuckets) Reset() { *m = Distribution_ExponentialBuckets{} }
|
||||
func (m *Distribution_ExponentialBuckets) String() string { return proto.CompactTextString(m) }
|
||||
func (*Distribution_ExponentialBuckets) ProtoMessage() {}
|
||||
func (*Distribution_ExponentialBuckets) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_distribution_dac88fdcde0e4047, []int{0, 1}
|
||||
}
|
||||
func (m *Distribution_ExponentialBuckets) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Distribution_ExponentialBuckets.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Distribution_ExponentialBuckets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Distribution_ExponentialBuckets.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Distribution_ExponentialBuckets) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Distribution_ExponentialBuckets.Merge(dst, src)
|
||||
}
|
||||
func (m *Distribution_ExponentialBuckets) XXX_Size() int {
|
||||
return xxx_messageInfo_Distribution_ExponentialBuckets.Size(m)
|
||||
}
|
||||
func (m *Distribution_ExponentialBuckets) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Distribution_ExponentialBuckets.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Distribution_ExponentialBuckets proto.InternalMessageInfo
|
||||
|
||||
func (m *Distribution_ExponentialBuckets) GetNumFiniteBuckets() int32 {
|
||||
if m != nil {
|
||||
return m.NumFiniteBuckets
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Distribution_ExponentialBuckets) GetGrowthFactor() float64 {
|
||||
if m != nil {
|
||||
return m.GrowthFactor
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Distribution_ExponentialBuckets) GetScale() float64 {
|
||||
if m != nil {
|
||||
return m.Scale
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// Describing buckets with arbitrary user-provided width.
|
||||
type Distribution_ExplicitBuckets struct {
|
||||
// 'bound' is a list of strictly increasing boundaries between
|
||||
// buckets. Note that a list of length N-1 defines N buckets because
|
||||
// of fenceposting. See comments on `bucket_options` for details.
|
||||
//
|
||||
// The i'th finite bucket covers the interval
|
||||
// [bound[i-1], bound[i])
|
||||
// where i ranges from 1 to bound_size() - 1. Note that there are no
|
||||
// finite buckets at all if 'bound' only contains a single element; in
|
||||
// that special case the single bound defines the boundary between the
|
||||
// underflow and overflow buckets.
|
||||
//
|
||||
// bucket number lower bound upper bound
|
||||
// i == 0 (underflow) -inf bound[i]
|
||||
// 0 < i < bound_size() bound[i-1] bound[i]
|
||||
// i == bound_size() (overflow) bound[i-1] +inf
|
||||
Bounds []float64 `protobuf:"fixed64,1,rep,packed,name=bounds,proto3" json:"bounds,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Distribution_ExplicitBuckets) Reset() { *m = Distribution_ExplicitBuckets{} }
|
||||
func (m *Distribution_ExplicitBuckets) String() string { return proto.CompactTextString(m) }
|
||||
func (*Distribution_ExplicitBuckets) ProtoMessage() {}
|
||||
func (*Distribution_ExplicitBuckets) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_distribution_dac88fdcde0e4047, []int{0, 2}
|
||||
}
|
||||
func (m *Distribution_ExplicitBuckets) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Distribution_ExplicitBuckets.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Distribution_ExplicitBuckets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Distribution_ExplicitBuckets.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Distribution_ExplicitBuckets) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Distribution_ExplicitBuckets.Merge(dst, src)
|
||||
}
|
||||
func (m *Distribution_ExplicitBuckets) XXX_Size() int {
|
||||
return xxx_messageInfo_Distribution_ExplicitBuckets.Size(m)
|
||||
}
|
||||
func (m *Distribution_ExplicitBuckets) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Distribution_ExplicitBuckets.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Distribution_ExplicitBuckets proto.InternalMessageInfo
|
||||
|
||||
func (m *Distribution_ExplicitBuckets) GetBounds() []float64 {
|
||||
if m != nil {
|
||||
return m.Bounds
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Distribution)(nil), "google.api.servicecontrol.v1.Distribution")
|
||||
proto.RegisterType((*Distribution_LinearBuckets)(nil), "google.api.servicecontrol.v1.Distribution.LinearBuckets")
|
||||
proto.RegisterType((*Distribution_ExponentialBuckets)(nil), "google.api.servicecontrol.v1.Distribution.ExponentialBuckets")
|
||||
proto.RegisterType((*Distribution_ExplicitBuckets)(nil), "google.api.servicecontrol.v1.Distribution.ExplicitBuckets")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/api/servicecontrol/v1/distribution.proto", fileDescriptor_distribution_dac88fdcde0e4047)
|
||||
}
|
||||
|
||||
var fileDescriptor_distribution_dac88fdcde0e4047 = []byte{
|
||||
// 486 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x4d, 0x6f, 0xd3, 0x40,
|
||||
0x10, 0x86, 0x31, 0x6e, 0x52, 0x18, 0x12, 0x52, 0x96, 0x82, 0xac, 0x88, 0x83, 0x45, 0x2f, 0x41,
|
||||
0x42, 0xb6, 0x0a, 0x07, 0x10, 0x88, 0x4b, 0x28, 0x15, 0x42, 0x48, 0x54, 0xe6, 0xc6, 0xc5, 0xda,
|
||||
0xd8, 0x6b, 0x77, 0x55, 0x7b, 0xc7, 0xec, 0x47, 0x9a, 0x0b, 0x57, 0x7e, 0x0f, 0x3f, 0x8f, 0x23,
|
||||
0xf2, 0xae, 0xf3, 0x45, 0xab, 0x48, 0xb9, 0xf9, 0x7d, 0xc7, 0x33, 0xcf, 0xec, 0x68, 0x06, 0xe2,
|
||||
0x12, 0xb1, 0xac, 0x58, 0x4c, 0x1b, 0x1e, 0x2b, 0x26, 0xe7, 0x3c, 0x63, 0x19, 0x0a, 0x2d, 0xb1,
|
||||
0x8a, 0xe7, 0xa7, 0x71, 0xce, 0x95, 0x96, 0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b8, 0x64, 0xc2, 0x9e, 0x69, 0x77, 0xd6, 0xb4, 0xe1, 0xea, 0xf6, 0xd3, 0x7e, 0xbf,
|
||||
0xed, 0xfc, 0xf5, 0xbc, 0x59, 0xdf, 0x66, 0xbe, 0xfe, 0x17, 0x00, 0x00, 0xff, 0xff, 0x14, 0x52,
|
||||
0xaf, 0xef, 0x13, 0x04, 0x00, 0x00,
|
||||
}
|
293
vendor/google.golang.org/genproto/googleapis/api/servicecontrol/v1/log_entry.pb.go
generated
vendored
293
vendor/google.golang.org/genproto/googleapis/api/servicecontrol/v1/log_entry.pb.go
generated
vendored
@ -1,293 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/servicecontrol/v1/log_entry.proto
|
||||
|
||||
package servicecontrol // import "google.golang.org/genproto/googleapis/api/servicecontrol/v1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import any "github.com/golang/protobuf/ptypes/any"
|
||||
import _struct "github.com/golang/protobuf/ptypes/struct"
|
||||
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import _type "google.golang.org/genproto/googleapis/logging/type"
|
||||
|
||||
// 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
|
||||
|
||||
// An individual log entry.
|
||||
type LogEntry struct {
|
||||
// Required. The log to which this log entry belongs. Examples: `"syslog"`,
|
||||
// `"book_log"`.
|
||||
Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// The time the event described by the log entry occurred. If
|
||||
// omitted, defaults to operation start time.
|
||||
Timestamp *timestamp.Timestamp `protobuf:"bytes,11,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
||||
// The severity of the log entry. The default value is
|
||||
// `LogSeverity.DEFAULT`.
|
||||
Severity _type.LogSeverity `protobuf:"varint,12,opt,name=severity,proto3,enum=google.logging.type.LogSeverity" json:"severity,omitempty"`
|
||||
// A unique ID for the log entry used for deduplication. If omitted,
|
||||
// the implementation will generate one based on operation_id.
|
||||
InsertId string `protobuf:"bytes,4,opt,name=insert_id,json=insertId,proto3" json:"insert_id,omitempty"`
|
||||
// A set of user-defined (key, value) data that provides additional
|
||||
// information about the log entry.
|
||||
Labels map[string]string `protobuf:"bytes,13,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
// The log entry payload, which can be one of multiple types.
|
||||
//
|
||||
// Types that are valid to be assigned to Payload:
|
||||
// *LogEntry_ProtoPayload
|
||||
// *LogEntry_TextPayload
|
||||
// *LogEntry_StructPayload
|
||||
Payload isLogEntry_Payload `protobuf_oneof:"payload"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *LogEntry) Reset() { *m = LogEntry{} }
|
||||
func (m *LogEntry) String() string { return proto.CompactTextString(m) }
|
||||
func (*LogEntry) ProtoMessage() {}
|
||||
func (*LogEntry) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_log_entry_1cf8a0cea23f865a, []int{0}
|
||||
}
|
||||
func (m *LogEntry) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_LogEntry.Unmarshal(m, b)
|
||||
}
|
||||
func (m *LogEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_LogEntry.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *LogEntry) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_LogEntry.Merge(dst, src)
|
||||
}
|
||||
func (m *LogEntry) XXX_Size() int {
|
||||
return xxx_messageInfo_LogEntry.Size(m)
|
||||
}
|
||||
func (m *LogEntry) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_LogEntry.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_LogEntry proto.InternalMessageInfo
|
||||
|
||||
func (m *LogEntry) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *LogEntry) GetTimestamp() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.Timestamp
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *LogEntry) GetSeverity() _type.LogSeverity {
|
||||
if m != nil {
|
||||
return m.Severity
|
||||
}
|
||||
return _type.LogSeverity_DEFAULT
|
||||
}
|
||||
|
||||
func (m *LogEntry) GetInsertId() string {
|
||||
if m != nil {
|
||||
return m.InsertId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *LogEntry) GetLabels() map[string]string {
|
||||
if m != nil {
|
||||
return m.Labels
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type isLogEntry_Payload interface {
|
||||
isLogEntry_Payload()
|
||||
}
|
||||
|
||||
type LogEntry_ProtoPayload struct {
|
||||
ProtoPayload *any.Any `protobuf:"bytes,2,opt,name=proto_payload,json=protoPayload,proto3,oneof"`
|
||||
}
|
||||
|
||||
type LogEntry_TextPayload struct {
|
||||
TextPayload string `protobuf:"bytes,3,opt,name=text_payload,json=textPayload,proto3,oneof"`
|
||||
}
|
||||
|
||||
type LogEntry_StructPayload struct {
|
||||
StructPayload *_struct.Struct `protobuf:"bytes,6,opt,name=struct_payload,json=structPayload,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*LogEntry_ProtoPayload) isLogEntry_Payload() {}
|
||||
|
||||
func (*LogEntry_TextPayload) isLogEntry_Payload() {}
|
||||
|
||||
func (*LogEntry_StructPayload) isLogEntry_Payload() {}
|
||||
|
||||
func (m *LogEntry) GetPayload() isLogEntry_Payload {
|
||||
if m != nil {
|
||||
return m.Payload
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *LogEntry) GetProtoPayload() *any.Any {
|
||||
if x, ok := m.GetPayload().(*LogEntry_ProtoPayload); ok {
|
||||
return x.ProtoPayload
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *LogEntry) GetTextPayload() string {
|
||||
if x, ok := m.GetPayload().(*LogEntry_TextPayload); ok {
|
||||
return x.TextPayload
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *LogEntry) GetStructPayload() *_struct.Struct {
|
||||
if x, ok := m.GetPayload().(*LogEntry_StructPayload); ok {
|
||||
return x.StructPayload
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*LogEntry) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _LogEntry_OneofMarshaler, _LogEntry_OneofUnmarshaler, _LogEntry_OneofSizer, []interface{}{
|
||||
(*LogEntry_ProtoPayload)(nil),
|
||||
(*LogEntry_TextPayload)(nil),
|
||||
(*LogEntry_StructPayload)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _LogEntry_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*LogEntry)
|
||||
// payload
|
||||
switch x := m.Payload.(type) {
|
||||
case *LogEntry_ProtoPayload:
|
||||
b.EncodeVarint(2<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.ProtoPayload); err != nil {
|
||||
return err
|
||||
}
|
||||
case *LogEntry_TextPayload:
|
||||
b.EncodeVarint(3<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.TextPayload)
|
||||
case *LogEntry_StructPayload:
|
||||
b.EncodeVarint(6<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.StructPayload); err != nil {
|
||||
return err
|
||||
}
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("LogEntry.Payload has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _LogEntry_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*LogEntry)
|
||||
switch tag {
|
||||
case 2: // payload.proto_payload
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(any.Any)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Payload = &LogEntry_ProtoPayload{msg}
|
||||
return true, err
|
||||
case 3: // payload.text_payload
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.Payload = &LogEntry_TextPayload{x}
|
||||
return true, err
|
||||
case 6: // payload.struct_payload
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(_struct.Struct)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Payload = &LogEntry_StructPayload{msg}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _LogEntry_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*LogEntry)
|
||||
// payload
|
||||
switch x := m.Payload.(type) {
|
||||
case *LogEntry_ProtoPayload:
|
||||
s := proto.Size(x.ProtoPayload)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *LogEntry_TextPayload:
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.TextPayload)))
|
||||
n += len(x.TextPayload)
|
||||
case *LogEntry_StructPayload:
|
||||
s := proto.Size(x.StructPayload)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*LogEntry)(nil), "google.api.servicecontrol.v1.LogEntry")
|
||||
proto.RegisterMapType((map[string]string)(nil), "google.api.servicecontrol.v1.LogEntry.LabelsEntry")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/api/servicecontrol/v1/log_entry.proto", fileDescriptor_log_entry_1cf8a0cea23f865a)
|
||||
}
|
||||
|
||||
var fileDescriptor_log_entry_1cf8a0cea23f865a = []byte{
|
||||
// 454 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0x4f, 0x8f, 0xd3, 0x30,
|
||||
0x10, 0xc5, 0x9b, 0xed, 0x52, 0x1a, 0xa7, 0x5d, 0x21, 0x6b, 0x25, 0x42, 0xa8, 0x44, 0x04, 0x12,
|
||||
0xea, 0x01, 0x39, 0xda, 0x72, 0x59, 0x58, 0x0e, 0x50, 0x09, 0xa9, 0xac, 0x7a, 0x58, 0x65, 0x39,
|
||||
0x71, 0xa9, 0xdc, 0xd6, 0x58, 0x16, 0xae, 0x27, 0x4a, 0xdc, 0x88, 0x9c, 0xf8, 0xbc, 0x7c, 0x0b,
|
||||
0x94, 0xb1, 0x53, 0xf6, 0x9f, 0xf6, 0xe6, 0xf1, 0xfb, 0xbd, 0x99, 0x79, 0x8e, 0x42, 0xde, 0x49,
|
||||
0x00, 0xa9, 0x45, 0xc6, 0x0b, 0x95, 0x55, 0xa2, 0xac, 0xd5, 0x46, 0x6c, 0xc0, 0xd8, 0x12, 0x74,
|
||||
0x56, 0x9f, 0x65, 0x1a, 0xe4, 0x4a, 0x18, 0x5b, 0x36, 0xac, 0x28, 0xc1, 0x02, 0x9d, 0x38, 0x9a,
|
||||
0xf1, 0x42, 0xb1, 0xdb, 0x34, 0xab, 0xcf, 0x92, 0xc9, 0x8d, 0x5e, 0xdc, 0x18, 0xb0, 0xdc, 0x2a,
|
||||
0x30, 0x95, 0xf3, 0x26, 0x6f, 0xbd, 0xaa, 0x41, 0x4a, 0x65, 0x64, 0x66, 0x9b, 0x02, 0x8b, 0x55,
|
||||
0x25, 0x6a, 0x51, 0x2a, 0xeb, 0x67, 0x24, 0x2f, 0x3c, 0x87, 0xd5, 0x7a, 0xff, 0x33, 0xe3, 0xa6,
|
||||
0x93, 0x26, 0x77, 0xa5, 0xca, 0x96, 0xfb, 0x8d, 0xf5, 0xea, 0xab, 0xbb, 0xaa, 0x55, 0x3b, 0x51,
|
||||
0x59, 0xbe, 0x2b, 0x1c, 0xf0, 0xfa, 0x6f, 0x9f, 0x0c, 0x97, 0x20, 0xbf, 0xb6, 0x81, 0x28, 0x25,
|
||||
0xc7, 0x86, 0xef, 0x44, 0x4c, 0xd2, 0x60, 0x1a, 0xe6, 0x78, 0xa6, 0xe7, 0x24, 0x3c, 0x78, 0xe2,
|
||||
0x28, 0x0d, 0xa6, 0xd1, 0x2c, 0x61, 0x3e, 0x72, 0xd7, 0x95, 0x7d, 0xef, 0x88, 0xfc, 0x3f, 0x4c,
|
||||
0x3f, 0x91, 0x61, 0x17, 0x23, 0x1e, 0xa5, 0xc1, 0xf4, 0x64, 0x96, 0x76, 0x46, 0x9f, 0x97, 0xb5,
|
||||
0x79, 0xd9, 0x12, 0xe4, 0xb5, 0xe7, 0xf2, 0x83, 0x83, 0xbe, 0x24, 0xa1, 0x32, 0x95, 0x28, 0xed,
|
||||
0x4a, 0x6d, 0xe3, 0x63, 0x5c, 0x68, 0xe8, 0x2e, 0xbe, 0x6d, 0xe9, 0x25, 0x19, 0x68, 0xbe, 0x16,
|
||||
0xba, 0x8a, 0xc7, 0x69, 0x7f, 0x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x13, 0x61, 0x03, 0x00, 0x00,
|
||||
}
|
385
vendor/google.golang.org/genproto/googleapis/api/servicecontrol/v1/metric_value.pb.go
generated
vendored
385
vendor/google.golang.org/genproto/googleapis/api/servicecontrol/v1/metric_value.pb.go
generated
vendored
@ -1,385 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/servicecontrol/v1/metric_value.proto
|
||||
|
||||
package servicecontrol // import "google.golang.org/genproto/googleapis/api/servicecontrol/v1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import _ "google.golang.org/genproto/googleapis/type/money"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Represents a single metric value.
|
||||
type MetricValue struct {
|
||||
// The labels describing the metric value.
|
||||
// See comments on [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels] for
|
||||
// the overriding relationship.
|
||||
Labels map[string]string `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
// The start of the time period over which this metric value's measurement
|
||||
// applies. The time period has different semantics for different metric
|
||||
// types (cumulative, delta, and gauge). See the metric definition
|
||||
// documentation in the service configuration for details.
|
||||
StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
|
||||
// The end of the time period over which this metric value's measurement
|
||||
// applies.
|
||||
EndTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
|
||||
// The value. The type of value used in the request must
|
||||
// agree with the metric definition in the service configuration, otherwise
|
||||
// the MetricValue is rejected.
|
||||
//
|
||||
// Types that are valid to be assigned to Value:
|
||||
// *MetricValue_BoolValue
|
||||
// *MetricValue_Int64Value
|
||||
// *MetricValue_DoubleValue
|
||||
// *MetricValue_StringValue
|
||||
// *MetricValue_DistributionValue
|
||||
Value isMetricValue_Value `protobuf_oneof:"value"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *MetricValue) Reset() { *m = MetricValue{} }
|
||||
func (m *MetricValue) String() string { return proto.CompactTextString(m) }
|
||||
func (*MetricValue) ProtoMessage() {}
|
||||
func (*MetricValue) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_metric_value_8054f3e00bcbeeb9, []int{0}
|
||||
}
|
||||
func (m *MetricValue) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_MetricValue.Unmarshal(m, b)
|
||||
}
|
||||
func (m *MetricValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_MetricValue.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *MetricValue) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_MetricValue.Merge(dst, src)
|
||||
}
|
||||
func (m *MetricValue) XXX_Size() int {
|
||||
return xxx_messageInfo_MetricValue.Size(m)
|
||||
}
|
||||
func (m *MetricValue) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_MetricValue.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_MetricValue proto.InternalMessageInfo
|
||||
|
||||
func (m *MetricValue) GetLabels() map[string]string {
|
||||
if m != nil {
|
||||
return m.Labels
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *MetricValue) GetStartTime() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.StartTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *MetricValue) GetEndTime() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.EndTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type isMetricValue_Value interface {
|
||||
isMetricValue_Value()
|
||||
}
|
||||
|
||||
type MetricValue_BoolValue struct {
|
||||
BoolValue bool `protobuf:"varint,4,opt,name=bool_value,json=boolValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
type MetricValue_Int64Value struct {
|
||||
Int64Value int64 `protobuf:"varint,5,opt,name=int64_value,json=int64Value,proto3,oneof"`
|
||||
}
|
||||
|
||||
type MetricValue_DoubleValue struct {
|
||||
DoubleValue float64 `protobuf:"fixed64,6,opt,name=double_value,json=doubleValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
type MetricValue_StringValue struct {
|
||||
StringValue string `protobuf:"bytes,7,opt,name=string_value,json=stringValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
type MetricValue_DistributionValue struct {
|
||||
DistributionValue *Distribution `protobuf:"bytes,8,opt,name=distribution_value,json=distributionValue,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*MetricValue_BoolValue) isMetricValue_Value() {}
|
||||
|
||||
func (*MetricValue_Int64Value) isMetricValue_Value() {}
|
||||
|
||||
func (*MetricValue_DoubleValue) isMetricValue_Value() {}
|
||||
|
||||
func (*MetricValue_StringValue) isMetricValue_Value() {}
|
||||
|
||||
func (*MetricValue_DistributionValue) isMetricValue_Value() {}
|
||||
|
||||
func (m *MetricValue) GetValue() isMetricValue_Value {
|
||||
if m != nil {
|
||||
return m.Value
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *MetricValue) GetBoolValue() bool {
|
||||
if x, ok := m.GetValue().(*MetricValue_BoolValue); ok {
|
||||
return x.BoolValue
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *MetricValue) GetInt64Value() int64 {
|
||||
if x, ok := m.GetValue().(*MetricValue_Int64Value); ok {
|
||||
return x.Int64Value
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *MetricValue) GetDoubleValue() float64 {
|
||||
if x, ok := m.GetValue().(*MetricValue_DoubleValue); ok {
|
||||
return x.DoubleValue
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *MetricValue) GetStringValue() string {
|
||||
if x, ok := m.GetValue().(*MetricValue_StringValue); ok {
|
||||
return x.StringValue
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *MetricValue) GetDistributionValue() *Distribution {
|
||||
if x, ok := m.GetValue().(*MetricValue_DistributionValue); ok {
|
||||
return x.DistributionValue
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*MetricValue) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _MetricValue_OneofMarshaler, _MetricValue_OneofUnmarshaler, _MetricValue_OneofSizer, []interface{}{
|
||||
(*MetricValue_BoolValue)(nil),
|
||||
(*MetricValue_Int64Value)(nil),
|
||||
(*MetricValue_DoubleValue)(nil),
|
||||
(*MetricValue_StringValue)(nil),
|
||||
(*MetricValue_DistributionValue)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _MetricValue_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*MetricValue)
|
||||
// value
|
||||
switch x := m.Value.(type) {
|
||||
case *MetricValue_BoolValue:
|
||||
t := uint64(0)
|
||||
if x.BoolValue {
|
||||
t = 1
|
||||
}
|
||||
b.EncodeVarint(4<<3 | proto.WireVarint)
|
||||
b.EncodeVarint(t)
|
||||
case *MetricValue_Int64Value:
|
||||
b.EncodeVarint(5<<3 | proto.WireVarint)
|
||||
b.EncodeVarint(uint64(x.Int64Value))
|
||||
case *MetricValue_DoubleValue:
|
||||
b.EncodeVarint(6<<3 | proto.WireFixed64)
|
||||
b.EncodeFixed64(math.Float64bits(x.DoubleValue))
|
||||
case *MetricValue_StringValue:
|
||||
b.EncodeVarint(7<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.StringValue)
|
||||
case *MetricValue_DistributionValue:
|
||||
b.EncodeVarint(8<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.DistributionValue); err != nil {
|
||||
return err
|
||||
}
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("MetricValue.Value has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _MetricValue_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*MetricValue)
|
||||
switch tag {
|
||||
case 4: // value.bool_value
|
||||
if wire != proto.WireVarint {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeVarint()
|
||||
m.Value = &MetricValue_BoolValue{x != 0}
|
||||
return true, err
|
||||
case 5: // value.int64_value
|
||||
if wire != proto.WireVarint {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeVarint()
|
||||
m.Value = &MetricValue_Int64Value{int64(x)}
|
||||
return true, err
|
||||
case 6: // value.double_value
|
||||
if wire != proto.WireFixed64 {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeFixed64()
|
||||
m.Value = &MetricValue_DoubleValue{math.Float64frombits(x)}
|
||||
return true, err
|
||||
case 7: // value.string_value
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.Value = &MetricValue_StringValue{x}
|
||||
return true, err
|
||||
case 8: // value.distribution_value
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(Distribution)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Value = &MetricValue_DistributionValue{msg}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _MetricValue_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*MetricValue)
|
||||
// value
|
||||
switch x := m.Value.(type) {
|
||||
case *MetricValue_BoolValue:
|
||||
n += 1 // tag and wire
|
||||
n += 1
|
||||
case *MetricValue_Int64Value:
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(x.Int64Value))
|
||||
case *MetricValue_DoubleValue:
|
||||
n += 1 // tag and wire
|
||||
n += 8
|
||||
case *MetricValue_StringValue:
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.StringValue)))
|
||||
n += len(x.StringValue)
|
||||
case *MetricValue_DistributionValue:
|
||||
s := proto.Size(x.DistributionValue)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// Represents a set of metric values in the same metric.
|
||||
// Each metric value in the set should have a unique combination of start time,
|
||||
// end time, and label values.
|
||||
type MetricValueSet struct {
|
||||
// The metric name defined in the service configuration.
|
||||
MetricName string `protobuf:"bytes,1,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"`
|
||||
// The values in this metric.
|
||||
MetricValues []*MetricValue `protobuf:"bytes,2,rep,name=metric_values,json=metricValues,proto3" json:"metric_values,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *MetricValueSet) Reset() { *m = MetricValueSet{} }
|
||||
func (m *MetricValueSet) String() string { return proto.CompactTextString(m) }
|
||||
func (*MetricValueSet) ProtoMessage() {}
|
||||
func (*MetricValueSet) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_metric_value_8054f3e00bcbeeb9, []int{1}
|
||||
}
|
||||
func (m *MetricValueSet) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_MetricValueSet.Unmarshal(m, b)
|
||||
}
|
||||
func (m *MetricValueSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_MetricValueSet.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *MetricValueSet) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_MetricValueSet.Merge(dst, src)
|
||||
}
|
||||
func (m *MetricValueSet) XXX_Size() int {
|
||||
return xxx_messageInfo_MetricValueSet.Size(m)
|
||||
}
|
||||
func (m *MetricValueSet) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_MetricValueSet.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_MetricValueSet proto.InternalMessageInfo
|
||||
|
||||
func (m *MetricValueSet) GetMetricName() string {
|
||||
if m != nil {
|
||||
return m.MetricName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *MetricValueSet) GetMetricValues() []*MetricValue {
|
||||
if m != nil {
|
||||
return m.MetricValues
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*MetricValue)(nil), "google.api.servicecontrol.v1.MetricValue")
|
||||
proto.RegisterMapType((map[string]string)(nil), "google.api.servicecontrol.v1.MetricValue.LabelsEntry")
|
||||
proto.RegisterType((*MetricValueSet)(nil), "google.api.servicecontrol.v1.MetricValueSet")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/api/servicecontrol/v1/metric_value.proto", fileDescriptor_metric_value_8054f3e00bcbeeb9)
|
||||
}
|
||||
|
||||
var fileDescriptor_metric_value_8054f3e00bcbeeb9 = []byte{
|
||||
// 482 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcf, 0x8b, 0xd3, 0x40,
|
||||
0x14, 0xc7, 0x3b, 0x8d, 0xdb, 0x1f, 0x2f, 0xab, 0x68, 0x14, 0x0c, 0x65, 0xa1, 0x71, 0xbd, 0x44,
|
||||
0x0f, 0x13, 0x76, 0x75, 0xc5, 0xd5, 0x5b, 0x51, 0x28, 0xe2, 0x2e, 0x4b, 0x14, 0x0f, 0x7a, 0x58,
|
||||
0x26, 0xed, 0x33, 0x0c, 0x26, 0x33, 0x21, 0x33, 0x2d, 0xf4, 0xe8, 0xcd, 0x3f, 0xd9, 0x8b, 0x20,
|
||||
0xf3, 0xa3, 0x9a, 0x82, 0xd4, 0xbd, 0xe5, 0x7d, 0xf3, 0xfd, 0xbc, 0x7c, 0x27, 0xef, 0x0d, 0x64,
|
||||
0xa5, 0x94, 0x65, 0x85, 0x19, 0x6b, 0x78, 0xa6, 0xb0, 0x5d, 0xf3, 0x05, 0x2e, 0xa4, 0xd0, 0xad,
|
||||
0xac, 0xb2, 0xf5, 0x49, 0x56, 0xa3, 0x6e, 0xf9, 0xe2, 0x7a, 0xcd, 0xaa, 0x15, 0xd2, 0xa6, 0x95,
|
||||
0x5a, 0x46, 0x47, 0x0e, 0xa0, 0xac, 0xe1, 0x74, 0x17, 0xa0, 0xeb, 0x93, 0xc9, 0x51, 0xa7, 0x1d,
|
||||
0x13, 0x42, 0x6a, 0xa6, 0xb9, 0x14, 0xca, 0xb1, 0x93, 0xfd, 0x1f, 0x5b, 0x72, 0xa5, 0x5b, 0x5e,
|
||||
0xac, 0x0c, 0xe1, 0x81, 0xa9, 0x07, 0x6c, 0x55, 0xac, 0xbe, 0x66, 0x9a, 0xd7, 0xa8, 0x34, 0xab,
|
||||
0x1b, 0x6f, 0x78, 0xe8, 0x0d, 0x7a, 0xd3, 0x60, 0x56, 0x4b, 0x81, 0x1b, 0xf7, 0xe2, 0xf8, 0x57,
|
||||
0x00, 0xe1, 0x85, 0x4d, 0xff, 0xc9, 0x84, 0x8f, 0x2e, 0x60, 0x50, 0xb1, 0x02, 0x2b, 0x15, 0x93,
|
||||
0x24, 0x48, 0xc3, 0xd3, 0x33, 0xba, 0xef, 0x1c, 0xb4, 0x83, 0xd2, 0xf7, 0x96, 0x7b, 0x2b, 0x74,
|
||||
0xbb, 0xc9, 0x7d, 0x93, 0xe8, 0x1c, 0x40, 0x69, 0xd6, 0xea, 0x6b, 0x13, 0x28, 0xee, 0x27, 0x24,
|
||||
0x0d, 0x4f, 0x27, 0xdb, 0x96, 0xdb, 0xb4, 0xf4, 0xe3, 0x36, 0x6d, 0x3e, 0xb6, 0x6e, 0x53, 0x47,
|
||||
0x67, 0x30, 0x42, 0xb1, 0x74, 0x60, 0xf0, 0x5f, 0x70, 0x88, 0x62, 0x69, 0xb1, 0x29, 0x40, 0x21,
|
||||
0x65, 0xe5, 0x66, 0x11, 0xdf, 0x4a, 0x48, 0x3a, 0x9a, 0xf7, 0xf2, 0xb1, 0xd1, 0xdc, 0x09, 0x1f,
|
||||
0x41, 0xc8, 0x85, 0x7e, 0xf1, 0xdc, 0x3b, 0x0e, 0x12, 0x92, 0x06, 0xf3, 0x5e, 0x0e, 0x56, 0x74,
|
||||
0x96, 0xc7, 0x70, 0xb8, 0x94, 0xab, 0xa2, 0x42, 0xef, 0x19, 0x24, 0x24, 0x25, 0xf3, 0x5e, 0x1e,
|
||||
0x3a, 0xf5, 0x8f, 0xc9, 0xcc, 0x41, 0x94, 0xde, 0x34, 0x4c, 0x48, 0x3a, 0x36, 0x26, 0xa7, 0x3a,
|
||||
0xd3, 0x17, 0x88, 0xba, 0xe3, 0xf2, 0xd6, 0x91, 0x3d, 0xce, 0xd3, 0xfd, 0xbf, 0xf6, 0x4d, 0x87,
|
||||
0x9b, 0xf7, 0xf2, 0x7b, 0xdd, 0x3e, 0xb6, 0xf9, 0xe4, 0x1c, 0xc2, 0xce, 0x3f, 0x8f, 0xee, 0x42,
|
||||
0xf0, 0x0d, 0x37, 0x31, 0x31, 0x39, 0x72, 0xf3, 0x18, 0x3d, 0x80, 0x03, 0xf7, 0xc1, 0xbe, 0xd5,
|
||||
0x5c, 0xf1, 0xaa, 0xff, 0x92, 0xcc, 0x86, 0xfe, 0xcd, 0xf1, 0x77, 0x02, 0x77, 0x3a, 0x43, 0xfc,
|
||||
0x80, 0x3a, 0x9a, 0x42, 0xe8, 0xf7, 0x59, 0xb0, 0x1a, 0x7d, 0x3f, 0x70, 0xd2, 0x25, 0xab, 0x31,
|
||||
0xba, 0x84, 0xdb, 0xdd, 0x85, 0x57, 0x71, 0xdf, 0xae, 0xca, 0x93, 0x1b, 0xaf, 0x4a, 0x7e, 0x58,
|
||||
0xff, 0x2d, 0xd4, 0xec, 0x07, 0x81, 0x64, 0x21, 0xeb, 0xbd, 0xf8, 0xec, 0xfe, 0x6e, 0xca, 0x2b,
|
||||
0xb3, 0x02, 0x57, 0xe4, 0xf3, 0x3b, 0x0f, 0x95, 0xb2, 0x62, 0xa2, 0xa4, 0xb2, 0x2d, 0xb3, 0x12,
|
||||
0x85, 0x5d, 0x10, 0x7f, 0x8b, 0x58, 0xc3, 0xd5, 0xbf, 0x6f, 0xd2, 0xeb, 0x5d, 0xe5, 0x27, 0x21,
|
||||
0xc5, 0xc0, 0x92, 0xcf, 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff, 0xdb, 0x00, 0x1a, 0xde, 0xef, 0x03,
|
||||
0x00, 0x00,
|
||||
}
|
248
vendor/google.golang.org/genproto/googleapis/api/servicecontrol/v1/operation.pb.go
generated
vendored
248
vendor/google.golang.org/genproto/googleapis/api/servicecontrol/v1/operation.pb.go
generated
vendored
@ -1,248 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/servicecontrol/v1/operation.proto
|
||||
|
||||
package servicecontrol // import "google.golang.org/genproto/googleapis/api/servicecontrol/v1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
// 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
|
||||
|
||||
// Defines the importance of the data contained in the operation.
|
||||
type Operation_Importance int32
|
||||
|
||||
const (
|
||||
// The API implementation may cache and aggregate the data.
|
||||
// The data may be lost when rare and unexpected system failures occur.
|
||||
Operation_LOW Operation_Importance = 0
|
||||
// The API implementation doesn't cache and aggregate the data.
|
||||
// If the method returns successfully, it's guaranteed that the data has
|
||||
// been persisted in durable storage.
|
||||
Operation_HIGH Operation_Importance = 1
|
||||
)
|
||||
|
||||
var Operation_Importance_name = map[int32]string{
|
||||
0: "LOW",
|
||||
1: "HIGH",
|
||||
}
|
||||
var Operation_Importance_value = map[string]int32{
|
||||
"LOW": 0,
|
||||
"HIGH": 1,
|
||||
}
|
||||
|
||||
func (x Operation_Importance) String() string {
|
||||
return proto.EnumName(Operation_Importance_name, int32(x))
|
||||
}
|
||||
func (Operation_Importance) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_operation_b9b924901f6a3776, []int{0, 0}
|
||||
}
|
||||
|
||||
// Represents information regarding an operation.
|
||||
type Operation struct {
|
||||
// Identity of the operation. This must be unique within the scope of the
|
||||
// service that generated the operation. If the service calls
|
||||
// Check() and Report() on the same operation, the two calls should carry
|
||||
// the same id.
|
||||
//
|
||||
// UUID version 4 is recommended, though not required.
|
||||
// In scenarios where an operation is computed from existing information
|
||||
// and an idempotent id is desirable for deduplication purpose, UUID version 5
|
||||
// is recommended. See RFC 4122 for details.
|
||||
OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
|
||||
// Fully qualified name of the operation. Reserved for future use.
|
||||
OperationName string `protobuf:"bytes,2,opt,name=operation_name,json=operationName,proto3" json:"operation_name,omitempty"`
|
||||
// Identity of the consumer who is using the service.
|
||||
// This field should be filled in for the operations initiated by a
|
||||
// consumer, but not for service-initiated operations that are
|
||||
// not related to a specific consumer.
|
||||
//
|
||||
// This can be in one of the following formats:
|
||||
// project:<project_id>,
|
||||
// project_number:<project_number>,
|
||||
// api_key:<api_key>.
|
||||
ConsumerId string `protobuf:"bytes,3,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
|
||||
// Required. Start time of the operation.
|
||||
StartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
|
||||
// End time of the operation.
|
||||
// Required when the operation is used in [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report],
|
||||
// but optional when the operation is used in [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check].
|
||||
EndTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
|
||||
// Labels describing the operation. Only the following labels are allowed:
|
||||
//
|
||||
// - Labels describing monitored resources as defined in
|
||||
// the service configuration.
|
||||
// - Default labels of metric values. When specified, labels defined in the
|
||||
// metric value override these default.
|
||||
// - The following labels defined by Google Cloud Platform:
|
||||
// - `cloud.googleapis.com/location` describing the location where the
|
||||
// operation happened,
|
||||
// - `servicecontrol.googleapis.com/user_agent` describing the user agent
|
||||
// of the API request,
|
||||
// - `servicecontrol.googleapis.com/service_agent` describing the service
|
||||
// used to handle the API request (e.g. ESP),
|
||||
// - `servicecontrol.googleapis.com/platform` describing the platform
|
||||
// where the API is served (e.g. GAE, GCE, GKE).
|
||||
Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
// Represents information about this operation. Each MetricValueSet
|
||||
// corresponds to a metric defined in the service configuration.
|
||||
// The data type used in the MetricValueSet must agree with
|
||||
// the data type specified in the metric definition.
|
||||
//
|
||||
// Within a single operation, it is not allowed to have more than one
|
||||
// MetricValue instances that have the same metric names and identical
|
||||
// label value combinations. If a request has such duplicated MetricValue
|
||||
// instances, the entire request is rejected with
|
||||
// an invalid argument error.
|
||||
MetricValueSets []*MetricValueSet `protobuf:"bytes,7,rep,name=metric_value_sets,json=metricValueSets,proto3" json:"metric_value_sets,omitempty"`
|
||||
// Represents information to be logged.
|
||||
LogEntries []*LogEntry `protobuf:"bytes,8,rep,name=log_entries,json=logEntries,proto3" json:"log_entries,omitempty"`
|
||||
// DO NOT USE. This is an experimental field.
|
||||
Importance Operation_Importance `protobuf:"varint,11,opt,name=importance,proto3,enum=google.api.servicecontrol.v1.Operation_Importance" json:"importance,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Operation) Reset() { *m = Operation{} }
|
||||
func (m *Operation) String() string { return proto.CompactTextString(m) }
|
||||
func (*Operation) ProtoMessage() {}
|
||||
func (*Operation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_operation_b9b924901f6a3776, []int{0}
|
||||
}
|
||||
func (m *Operation) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Operation.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Operation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Operation.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Operation) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Operation.Merge(dst, src)
|
||||
}
|
||||
func (m *Operation) XXX_Size() int {
|
||||
return xxx_messageInfo_Operation.Size(m)
|
||||
}
|
||||
func (m *Operation) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Operation.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Operation proto.InternalMessageInfo
|
||||
|
||||
func (m *Operation) GetOperationId() string {
|
||||
if m != nil {
|
||||
return m.OperationId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Operation) GetOperationName() string {
|
||||
if m != nil {
|
||||
return m.OperationName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Operation) GetConsumerId() string {
|
||||
if m != nil {
|
||||
return m.ConsumerId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Operation) GetStartTime() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.StartTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Operation) GetEndTime() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.EndTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Operation) GetLabels() map[string]string {
|
||||
if m != nil {
|
||||
return m.Labels
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Operation) GetMetricValueSets() []*MetricValueSet {
|
||||
if m != nil {
|
||||
return m.MetricValueSets
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Operation) GetLogEntries() []*LogEntry {
|
||||
if m != nil {
|
||||
return m.LogEntries
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Operation) GetImportance() Operation_Importance {
|
||||
if m != nil {
|
||||
return m.Importance
|
||||
}
|
||||
return Operation_LOW
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Operation)(nil), "google.api.servicecontrol.v1.Operation")
|
||||
proto.RegisterMapType((map[string]string)(nil), "google.api.servicecontrol.v1.Operation.LabelsEntry")
|
||||
proto.RegisterEnum("google.api.servicecontrol.v1.Operation_Importance", Operation_Importance_name, Operation_Importance_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/api/servicecontrol/v1/operation.proto", fileDescriptor_operation_b9b924901f6a3776)
|
||||
}
|
||||
|
||||
var fileDescriptor_operation_b9b924901f6a3776 = []byte{
|
||||
// 483 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcf, 0x6b, 0x13, 0x41,
|
||||
0x14, 0xc7, 0x9d, 0xa6, 0xf9, 0xf5, 0x56, 0x63, 0x1c, 0x3c, 0x2c, 0xa1, 0x90, 0x58, 0x50, 0x72,
|
||||
0x28, 0xb3, 0x34, 0x45, 0xb0, 0x7a, 0x2b, 0x48, 0x1b, 0x8d, 0xb6, 0xac, 0xa2, 0xe2, 0x25, 0x4c,
|
||||
0x36, 0xcf, 0x65, 0x70, 0x77, 0x66, 0x99, 0x99, 0x04, 0x7a, 0xf6, 0xe2, 0x9f, 0xec, 0x51, 0x76,
|
||||
0xf6, 0x47, 0x13, 0x90, 0xb5, 0xb7, 0x7d, 0x8f, 0xef, 0xe7, 0xbb, 0xdf, 0x79, 0x6f, 0x06, 0x4e,
|
||||
0x62, 0xa5, 0xe2, 0x04, 0x03, 0x9e, 0x89, 0xc0, 0xa0, 0xde, 0x8a, 0x08, 0x23, 0x25, 0xad, 0x56,
|
||||
0x49, 0xb0, 0x3d, 0x0d, 0x54, 0x86, 0x9a, 0x5b, 0xa1, 0x24, 0xcb, 0xb4, 0xb2, 0x8a, 0x1e, 0x15,
|
||||
0x6a, 0xc6, 0x33, 0xc1, 0xf6, 0xd5, 0x6c, 0x7b, 0x3a, 0x3a, 0xda, 0xf1, 0xe2, 0x52, 0x2a, 0xeb,
|
||||
0x50, 0x53, 0xb0, 0xa3, 0xe6, 0x3f, 0x25, 0x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, 0x00, 0x00,
|
||||
}
|
588
vendor/google.golang.org/genproto/googleapis/api/servicecontrol/v1/quota_controller.pb.go
generated
vendored
588
vendor/google.golang.org/genproto/googleapis/api/servicecontrol/v1/quota_controller.pb.go
generated
vendored
@ -1,588 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/servicecontrol/v1/quota_controller.proto
|
||||
|
||||
package servicecontrol // import "google.golang.org/genproto/googleapis/api/servicecontrol/v1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
import (
|
||||
context "golang.org/x/net/context"
|
||||
grpc "google.golang.org/grpc"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Supported quota modes.
|
||||
type QuotaOperation_QuotaMode int32
|
||||
|
||||
const (
|
||||
// Guard against implicit default. Must not be used.
|
||||
QuotaOperation_UNSPECIFIED QuotaOperation_QuotaMode = 0
|
||||
// For AllocateQuota request, allocates quota for the amount specified in
|
||||
// the service configuration or specified using the quota metrics. If the
|
||||
// amount is higher than the available quota, allocation error will be
|
||||
// returned and no quota will be allocated.
|
||||
QuotaOperation_NORMAL QuotaOperation_QuotaMode = 1
|
||||
// The operation allocates quota for the amount specified in the service
|
||||
// configuration or specified using the quota metrics. If the amount is
|
||||
// higher than the available quota, request does not fail but all available
|
||||
// quota will be allocated.
|
||||
QuotaOperation_BEST_EFFORT QuotaOperation_QuotaMode = 2
|
||||
// For AllocateQuota request, only checks if there is enough quota
|
||||
// available and does not change the available quota. No lock is placed on
|
||||
// the available quota either.
|
||||
QuotaOperation_CHECK_ONLY QuotaOperation_QuotaMode = 3
|
||||
)
|
||||
|
||||
var QuotaOperation_QuotaMode_name = map[int32]string{
|
||||
0: "UNSPECIFIED",
|
||||
1: "NORMAL",
|
||||
2: "BEST_EFFORT",
|
||||
3: "CHECK_ONLY",
|
||||
}
|
||||
var QuotaOperation_QuotaMode_value = map[string]int32{
|
||||
"UNSPECIFIED": 0,
|
||||
"NORMAL": 1,
|
||||
"BEST_EFFORT": 2,
|
||||
"CHECK_ONLY": 3,
|
||||
}
|
||||
|
||||
func (x QuotaOperation_QuotaMode) String() string {
|
||||
return proto.EnumName(QuotaOperation_QuotaMode_name, int32(x))
|
||||
}
|
||||
func (QuotaOperation_QuotaMode) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_quota_controller_5358e5cb4c246776, []int{1, 0}
|
||||
}
|
||||
|
||||
// Error codes related to project config validations are deprecated since the
|
||||
// quota controller methods do not perform these validations. Instead services
|
||||
// have to call the Check method, without quota_properties field, to perform
|
||||
// these validations before calling the quota controller methods. These
|
||||
// methods check only for project deletion to be wipe out compliant.
|
||||
type QuotaError_Code int32
|
||||
|
||||
const (
|
||||
// This is never used.
|
||||
QuotaError_UNSPECIFIED QuotaError_Code = 0
|
||||
// Quota allocation failed.
|
||||
// Same as [google.rpc.Code.RESOURCE_EXHAUSTED][].
|
||||
QuotaError_RESOURCE_EXHAUSTED QuotaError_Code = 8
|
||||
// Consumer cannot access the service because the service requires active
|
||||
// billing.
|
||||
QuotaError_BILLING_NOT_ACTIVE QuotaError_Code = 107
|
||||
// Consumer's project has been marked as deleted (soft deletion).
|
||||
QuotaError_PROJECT_DELETED QuotaError_Code = 108
|
||||
// Specified API key is invalid.
|
||||
QuotaError_API_KEY_INVALID QuotaError_Code = 105
|
||||
// Specified API Key has expired.
|
||||
QuotaError_API_KEY_EXPIRED QuotaError_Code = 112
|
||||
)
|
||||
|
||||
var QuotaError_Code_name = map[int32]string{
|
||||
0: "UNSPECIFIED",
|
||||
8: "RESOURCE_EXHAUSTED",
|
||||
107: "BILLING_NOT_ACTIVE",
|
||||
108: "PROJECT_DELETED",
|
||||
105: "API_KEY_INVALID",
|
||||
112: "API_KEY_EXPIRED",
|
||||
}
|
||||
var QuotaError_Code_value = map[string]int32{
|
||||
"UNSPECIFIED": 0,
|
||||
"RESOURCE_EXHAUSTED": 8,
|
||||
"BILLING_NOT_ACTIVE": 107,
|
||||
"PROJECT_DELETED": 108,
|
||||
"API_KEY_INVALID": 105,
|
||||
"API_KEY_EXPIRED": 112,
|
||||
}
|
||||
|
||||
func (x QuotaError_Code) String() string {
|
||||
return proto.EnumName(QuotaError_Code_name, int32(x))
|
||||
}
|
||||
func (QuotaError_Code) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_quota_controller_5358e5cb4c246776, []int{3, 0}
|
||||
}
|
||||
|
||||
// Request message for the AllocateQuota method.
|
||||
type AllocateQuotaRequest struct {
|
||||
// Name of the service as specified in the service configuration. For example,
|
||||
// `"pubsub.googleapis.com"`.
|
||||
//
|
||||
// See [google.api.Service][google.api.Service] for the definition of a service name.
|
||||
ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
|
||||
// Operation that describes the quota allocation.
|
||||
AllocateOperation *QuotaOperation `protobuf:"bytes,2,opt,name=allocate_operation,json=allocateOperation,proto3" json:"allocate_operation,omitempty"`
|
||||
// Specifies which version of service configuration should be used to process
|
||||
// the request. If unspecified or no matching version can be found, the latest
|
||||
// one will be used.
|
||||
ServiceConfigId string `protobuf:"bytes,4,opt,name=service_config_id,json=serviceConfigId,proto3" json:"service_config_id,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *AllocateQuotaRequest) Reset() { *m = AllocateQuotaRequest{} }
|
||||
func (m *AllocateQuotaRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*AllocateQuotaRequest) ProtoMessage() {}
|
||||
func (*AllocateQuotaRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_quota_controller_5358e5cb4c246776, []int{0}
|
||||
}
|
||||
func (m *AllocateQuotaRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_AllocateQuotaRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *AllocateQuotaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_AllocateQuotaRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *AllocateQuotaRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_AllocateQuotaRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *AllocateQuotaRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_AllocateQuotaRequest.Size(m)
|
||||
}
|
||||
func (m *AllocateQuotaRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_AllocateQuotaRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_AllocateQuotaRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *AllocateQuotaRequest) GetServiceName() string {
|
||||
if m != nil {
|
||||
return m.ServiceName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AllocateQuotaRequest) GetAllocateOperation() *QuotaOperation {
|
||||
if m != nil {
|
||||
return m.AllocateOperation
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AllocateQuotaRequest) GetServiceConfigId() string {
|
||||
if m != nil {
|
||||
return m.ServiceConfigId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Represents information regarding a quota operation.
|
||||
type QuotaOperation struct {
|
||||
// Identity of the operation. This is expected to be unique within the scope
|
||||
// of the service that generated the operation, and guarantees idempotency in
|
||||
// case of retries.
|
||||
//
|
||||
// UUID version 4 is recommended, though not required. In scenarios where an
|
||||
// operation is computed from existing information and an idempotent id is
|
||||
// desirable for deduplication purpose, UUID version 5 is recommended. See
|
||||
// RFC 4122 for details.
|
||||
OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
|
||||
// Fully qualified name of the API method for which this quota operation is
|
||||
// requested. This name is used for matching quota rules or metric rules and
|
||||
// billing status rules defined in service configuration. This field is not
|
||||
// required if the quota operation is performed on non-API resources.
|
||||
//
|
||||
// Example of an RPC method name:
|
||||
// google.example.library.v1.LibraryService.CreateShelf
|
||||
MethodName string `protobuf:"bytes,2,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"`
|
||||
// Identity of the consumer for whom this quota operation is being performed.
|
||||
//
|
||||
// This can be in one of the following formats:
|
||||
// project:<project_id>,
|
||||
// project_number:<project_number>,
|
||||
// api_key:<api_key>.
|
||||
ConsumerId string `protobuf:"bytes,3,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
|
||||
// Labels describing the operation.
|
||||
Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
// Represents information about this operation. Each MetricValueSet
|
||||
// corresponds to a metric defined in the service configuration.
|
||||
// The data type used in the MetricValueSet must agree with
|
||||
// the data type specified in the metric definition.
|
||||
//
|
||||
// Within a single operation, it is not allowed to have more than one
|
||||
// MetricValue instances that have the same metric names and identical
|
||||
// label value combinations. If a request has such duplicated MetricValue
|
||||
// instances, the entire request is rejected with
|
||||
// an invalid argument error.
|
||||
QuotaMetrics []*MetricValueSet `protobuf:"bytes,5,rep,name=quota_metrics,json=quotaMetrics,proto3" json:"quota_metrics,omitempty"`
|
||||
// Quota mode for this operation.
|
||||
QuotaMode QuotaOperation_QuotaMode `protobuf:"varint,6,opt,name=quota_mode,json=quotaMode,proto3,enum=google.api.servicecontrol.v1.QuotaOperation_QuotaMode" json:"quota_mode,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *QuotaOperation) Reset() { *m = QuotaOperation{} }
|
||||
func (m *QuotaOperation) String() string { return proto.CompactTextString(m) }
|
||||
func (*QuotaOperation) ProtoMessage() {}
|
||||
func (*QuotaOperation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_quota_controller_5358e5cb4c246776, []int{1}
|
||||
}
|
||||
func (m *QuotaOperation) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_QuotaOperation.Unmarshal(m, b)
|
||||
}
|
||||
func (m *QuotaOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_QuotaOperation.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *QuotaOperation) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_QuotaOperation.Merge(dst, src)
|
||||
}
|
||||
func (m *QuotaOperation) XXX_Size() int {
|
||||
return xxx_messageInfo_QuotaOperation.Size(m)
|
||||
}
|
||||
func (m *QuotaOperation) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_QuotaOperation.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_QuotaOperation proto.InternalMessageInfo
|
||||
|
||||
func (m *QuotaOperation) GetOperationId() string {
|
||||
if m != nil {
|
||||
return m.OperationId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *QuotaOperation) GetMethodName() string {
|
||||
if m != nil {
|
||||
return m.MethodName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *QuotaOperation) GetConsumerId() string {
|
||||
if m != nil {
|
||||
return m.ConsumerId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *QuotaOperation) GetLabels() map[string]string {
|
||||
if m != nil {
|
||||
return m.Labels
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *QuotaOperation) GetQuotaMetrics() []*MetricValueSet {
|
||||
if m != nil {
|
||||
return m.QuotaMetrics
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *QuotaOperation) GetQuotaMode() QuotaOperation_QuotaMode {
|
||||
if m != nil {
|
||||
return m.QuotaMode
|
||||
}
|
||||
return QuotaOperation_UNSPECIFIED
|
||||
}
|
||||
|
||||
// Response message for the AllocateQuota method.
|
||||
type AllocateQuotaResponse struct {
|
||||
// The same operation_id value used in the AllocateQuotaRequest. Used for
|
||||
// logging and diagnostics purposes.
|
||||
OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
|
||||
// Indicates the decision of the allocate.
|
||||
AllocateErrors []*QuotaError `protobuf:"bytes,2,rep,name=allocate_errors,json=allocateErrors,proto3" json:"allocate_errors,omitempty"`
|
||||
// Quota metrics to indicate the result of allocation. Depending on the
|
||||
// request, one or more of the following metrics will be included:
|
||||
//
|
||||
// 1. Per quota group or per quota metric incremental usage will be specified
|
||||
// using the following delta metric :
|
||||
// "serviceruntime.googleapis.com/api/consumer/quota_used_count"
|
||||
//
|
||||
// 2. The quota limit reached condition will be specified using the following
|
||||
// boolean metric :
|
||||
// "serviceruntime.googleapis.com/quota/exceeded"
|
||||
QuotaMetrics []*MetricValueSet `protobuf:"bytes,3,rep,name=quota_metrics,json=quotaMetrics,proto3" json:"quota_metrics,omitempty"`
|
||||
// ID of the actual config used to process the request.
|
||||
ServiceConfigId string `protobuf:"bytes,4,opt,name=service_config_id,json=serviceConfigId,proto3" json:"service_config_id,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *AllocateQuotaResponse) Reset() { *m = AllocateQuotaResponse{} }
|
||||
func (m *AllocateQuotaResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*AllocateQuotaResponse) ProtoMessage() {}
|
||||
func (*AllocateQuotaResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_quota_controller_5358e5cb4c246776, []int{2}
|
||||
}
|
||||
func (m *AllocateQuotaResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_AllocateQuotaResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *AllocateQuotaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_AllocateQuotaResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *AllocateQuotaResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_AllocateQuotaResponse.Merge(dst, src)
|
||||
}
|
||||
func (m *AllocateQuotaResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_AllocateQuotaResponse.Size(m)
|
||||
}
|
||||
func (m *AllocateQuotaResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_AllocateQuotaResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_AllocateQuotaResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *AllocateQuotaResponse) GetOperationId() string {
|
||||
if m != nil {
|
||||
return m.OperationId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *AllocateQuotaResponse) GetAllocateErrors() []*QuotaError {
|
||||
if m != nil {
|
||||
return m.AllocateErrors
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AllocateQuotaResponse) GetQuotaMetrics() []*MetricValueSet {
|
||||
if m != nil {
|
||||
return m.QuotaMetrics
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AllocateQuotaResponse) GetServiceConfigId() string {
|
||||
if m != nil {
|
||||
return m.ServiceConfigId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Represents error information for [QuotaOperation][google.api.servicecontrol.v1.QuotaOperation].
|
||||
type QuotaError struct {
|
||||
// Error code.
|
||||
Code QuotaError_Code `protobuf:"varint,1,opt,name=code,proto3,enum=google.api.servicecontrol.v1.QuotaError_Code" json:"code,omitempty"`
|
||||
// Subject to whom this error applies. See the specific enum for more details
|
||||
// on this field. For example, "clientip:<ip address of client>" or
|
||||
// "project:<Google developer project id>".
|
||||
Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
|
||||
// Free-form text that provides details on the cause of the error.
|
||||
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *QuotaError) Reset() { *m = QuotaError{} }
|
||||
func (m *QuotaError) String() string { return proto.CompactTextString(m) }
|
||||
func (*QuotaError) ProtoMessage() {}
|
||||
func (*QuotaError) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_quota_controller_5358e5cb4c246776, []int{3}
|
||||
}
|
||||
func (m *QuotaError) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_QuotaError.Unmarshal(m, b)
|
||||
}
|
||||
func (m *QuotaError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_QuotaError.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *QuotaError) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_QuotaError.Merge(dst, src)
|
||||
}
|
||||
func (m *QuotaError) XXX_Size() int {
|
||||
return xxx_messageInfo_QuotaError.Size(m)
|
||||
}
|
||||
func (m *QuotaError) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_QuotaError.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_QuotaError proto.InternalMessageInfo
|
||||
|
||||
func (m *QuotaError) GetCode() QuotaError_Code {
|
||||
if m != nil {
|
||||
return m.Code
|
||||
}
|
||||
return QuotaError_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *QuotaError) GetSubject() string {
|
||||
if m != nil {
|
||||
return m.Subject
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *QuotaError) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*AllocateQuotaRequest)(nil), "google.api.servicecontrol.v1.AllocateQuotaRequest")
|
||||
proto.RegisterType((*QuotaOperation)(nil), "google.api.servicecontrol.v1.QuotaOperation")
|
||||
proto.RegisterMapType((map[string]string)(nil), "google.api.servicecontrol.v1.QuotaOperation.LabelsEntry")
|
||||
proto.RegisterType((*AllocateQuotaResponse)(nil), "google.api.servicecontrol.v1.AllocateQuotaResponse")
|
||||
proto.RegisterType((*QuotaError)(nil), "google.api.servicecontrol.v1.QuotaError")
|
||||
proto.RegisterEnum("google.api.servicecontrol.v1.QuotaOperation_QuotaMode", QuotaOperation_QuotaMode_name, QuotaOperation_QuotaMode_value)
|
||||
proto.RegisterEnum("google.api.servicecontrol.v1.QuotaError_Code", QuotaError_Code_name, QuotaError_Code_value)
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc.ClientConn
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion4
|
||||
|
||||
// QuotaControllerClient is the client API for QuotaController service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type QuotaControllerClient interface {
|
||||
// Attempts to allocate quota for the specified consumer. It should be called
|
||||
// before the operation is executed.
|
||||
//
|
||||
// This method requires the `servicemanagement.services.quota`
|
||||
// permission on the specified service. For more information, see
|
||||
// [Cloud IAM](https://cloud.google.com/iam).
|
||||
//
|
||||
// **NOTE:** The client **must** fail-open on server errors `INTERNAL`,
|
||||
// `UNKNOWN`, `DEADLINE_EXCEEDED`, and `UNAVAILABLE`. To ensure system
|
||||
// reliability, the server may inject these errors to prohibit any hard
|
||||
// dependency on the quota functionality.
|
||||
AllocateQuota(ctx context.Context, in *AllocateQuotaRequest, opts ...grpc.CallOption) (*AllocateQuotaResponse, error)
|
||||
}
|
||||
|
||||
type quotaControllerClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewQuotaControllerClient(cc *grpc.ClientConn) QuotaControllerClient {
|
||||
return "aControllerClient{cc}
|
||||
}
|
||||
|
||||
func (c *quotaControllerClient) AllocateQuota(ctx context.Context, in *AllocateQuotaRequest, opts ...grpc.CallOption) (*AllocateQuotaResponse, error) {
|
||||
out := new(AllocateQuotaResponse)
|
||||
err := c.cc.Invoke(ctx, "/google.api.servicecontrol.v1.QuotaController/AllocateQuota", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// QuotaControllerServer is the server API for QuotaController service.
|
||||
type QuotaControllerServer interface {
|
||||
// Attempts to allocate quota for the specified consumer. It should be called
|
||||
// before the operation is executed.
|
||||
//
|
||||
// This method requires the `servicemanagement.services.quota`
|
||||
// permission on the specified service. For more information, see
|
||||
// [Cloud IAM](https://cloud.google.com/iam).
|
||||
//
|
||||
// **NOTE:** The client **must** fail-open on server errors `INTERNAL`,
|
||||
// `UNKNOWN`, `DEADLINE_EXCEEDED`, and `UNAVAILABLE`. To ensure system
|
||||
// reliability, the server may inject these errors to prohibit any hard
|
||||
// dependency on the quota functionality.
|
||||
AllocateQuota(context.Context, *AllocateQuotaRequest) (*AllocateQuotaResponse, error)
|
||||
}
|
||||
|
||||
func RegisterQuotaControllerServer(s *grpc.Server, srv QuotaControllerServer) {
|
||||
s.RegisterService(&_QuotaController_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _QuotaController_AllocateQuota_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AllocateQuotaRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(QuotaControllerServer).AllocateQuota(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.api.servicecontrol.v1.QuotaController/AllocateQuota",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QuotaControllerServer).AllocateQuota(ctx, req.(*AllocateQuotaRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _QuotaController_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.api.servicecontrol.v1.QuotaController",
|
||||
HandlerType: (*QuotaControllerServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "AllocateQuota",
|
||||
Handler: _QuotaController_AllocateQuota_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/api/servicecontrol/v1/quota_controller.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/api/servicecontrol/v1/quota_controller.proto", fileDescriptor_quota_controller_5358e5cb4c246776)
|
||||
}
|
||||
|
||||
var fileDescriptor_quota_controller_5358e5cb4c246776 = []byte{
|
||||
// 775 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xc1, 0x6e, 0xea, 0x46,
|
||||
0x14, 0xed, 0x18, 0x42, 0x9b, 0xeb, 0x04, 0x9c, 0x69, 0x5a, 0x59, 0x28, 0x52, 0x28, 0x2b, 0x1a,
|
||||
0xb5, 0x46, 0x21, 0x55, 0x95, 0xa6, 0x2b, 0x30, 0x93, 0xc6, 0x09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 0xa7, 0x01, 0x8f, 0x44, 0x16, 0x4a, 0xa8,
|
||||
0x22, 0xd6, 0xbe, 0x52, 0x56, 0x65, 0xa1, 0xf0, 0xa3, 0x3a, 0x53, 0x8e, 0xbe, 0x33, 0xd5, 0x99,
|
||||
0x41, 0xf8, 0x00, 0x76, 0xa6, 0xe7, 0x5b, 0xcc, 0xfb, 0xd9, 0x19, 0x1a, 0x8e, 0x2d, 0x67, 0x79,
|
||||
0x10, 0x85, 0xf4, 0x87, 0xca, 0x71, 0xcd, 0x2e, 0xbf, 0xce, 0x40, 0x7e, 0x51, 0x31, 0x0e, 0x7f,
|
||||
0x16, 0x52, 0xcc, 0x4c, 0xc3, 0x9f, 0x61, 0x9a, 0x8d, 0xf7, 0x41, 0x1c, 0xd1, 0xe8, 0x17, 0x66,
|
||||
0x27, 0x09, 0x0a, 0x7c, 0x07, 0x24, 0x10, 0xcf, 0x6f, 0x1f, 0x44, 0x8b, 0x79, 0xe1, 0x78, 0x44,
|
||||
0x83, 0x58, 0x22, 0x93, 0x6c, 0x98, 0x42, 0x9a, 0x8d, 0xbb, 0x90, 0x73, 0xcd, 0x3b, 0xea, 0x86,
|
||||
0x72, 0xb6, 0x94, 0xa9, 0x88, 0xb5, 0xe3, 0x75, 0x92, 0x56, 0x5a, 0x9c, 0x4a, 0xbc, 0x28, 0x78,
|
||||
0xd4, 0x53, 0x1d, 0x7c, 0x05, 0xdb, 0x49, 0x57, 0x24, 0x56, 0x85, 0xf2, 0x06, 0x17, 0x7e, 0x4f,
|
||||
0x35, 0x2f, 0xf9, 0xe6, 0xeb, 0xd8, 0xd6, 0x1e, 0x8d, 0xf4, 0x2d, 0x2e, 0x91, 0x80, 0x21, 0x1e,
|
||||
0x00, 0xa4, 0x92, 0xcc, 0xa6, 0x72, 0xae, 0x84, 0x2a, 0xf9, 0xda, 0xb7, 0x6b, 0x05, 0xca, 0x97,
|
||||
0x97, 0xcc, 0xa6, 0xfa, 0xe6, 0xc3, 0xf4, 0xb3,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0x1e, 0x7f, 0x02, 0xd2, 0x27, 0xc3, 0xf4, 0x9d, 0x70, 0xf9, 0xb3, 0xf1,
|
||||
0xfd, 0x22, 0xf2, 0x06, 0xa1, 0xbb, 0x1c, 0x67, 0x1e, 0xbd, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xbb,
|
||||
0x98, 0x03, 0x4f, 0xe0, 0x06, 0x00, 0x00,
|
||||
}
|
648
vendor/google.golang.org/genproto/googleapis/api/servicecontrol/v1/service_controller.pb.go
generated
vendored
648
vendor/google.golang.org/genproto/googleapis/api/servicecontrol/v1/service_controller.pb.go
generated
vendored
@ -1,648 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/api/servicecontrol/v1/service_controller.proto
|
||||
|
||||
package servicecontrol // import "google.golang.org/genproto/googleapis/api/servicecontrol/v1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import status "google.golang.org/genproto/googleapis/rpc/status"
|
||||
|
||||
import (
|
||||
context "golang.org/x/net/context"
|
||||
grpc "google.golang.org/grpc"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Request message for the Check method.
|
||||
type CheckRequest struct {
|
||||
// The service name as specified in its service configuration. For example,
|
||||
// `"pubsub.googleapis.com"`.
|
||||
//
|
||||
// See
|
||||
// [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
|
||||
// for the definition of a service name.
|
||||
ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
|
||||
// The operation to be checked.
|
||||
Operation *Operation `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"`
|
||||
// Specifies which version of service configuration should be used to process
|
||||
// the request.
|
||||
//
|
||||
// If unspecified or no matching version can be found, the
|
||||
// latest one will be used.
|
||||
ServiceConfigId string `protobuf:"bytes,4,opt,name=service_config_id,json=serviceConfigId,proto3" json:"service_config_id,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CheckRequest) Reset() { *m = CheckRequest{} }
|
||||
func (m *CheckRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*CheckRequest) ProtoMessage() {}
|
||||
func (*CheckRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_service_controller_3b2da1557482bc9c, []int{0}
|
||||
}
|
||||
func (m *CheckRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CheckRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CheckRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *CheckRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CheckRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *CheckRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_CheckRequest.Size(m)
|
||||
}
|
||||
func (m *CheckRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CheckRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CheckRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *CheckRequest) GetServiceName() string {
|
||||
if m != nil {
|
||||
return m.ServiceName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CheckRequest) GetOperation() *Operation {
|
||||
if m != nil {
|
||||
return m.Operation
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *CheckRequest) GetServiceConfigId() string {
|
||||
if m != nil {
|
||||
return m.ServiceConfigId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Response message for the Check method.
|
||||
type CheckResponse struct {
|
||||
// The same operation_id value used in the [CheckRequest][google.api.servicecontrol.v1.CheckRequest].
|
||||
// Used for logging and diagnostics purposes.
|
||||
OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
|
||||
// Indicate the decision of the check.
|
||||
//
|
||||
// If no check errors are present, the service should process the operation.
|
||||
// Otherwise the service should use the list of errors to determine the
|
||||
// appropriate action.
|
||||
CheckErrors []*CheckError `protobuf:"bytes,2,rep,name=check_errors,json=checkErrors,proto3" json:"check_errors,omitempty"`
|
||||
// The actual config id used to process the request.
|
||||
ServiceConfigId string `protobuf:"bytes,5,opt,name=service_config_id,json=serviceConfigId,proto3" json:"service_config_id,omitempty"`
|
||||
// Feedback data returned from the server during processing a Check request.
|
||||
CheckInfo *CheckResponse_CheckInfo `protobuf:"bytes,6,opt,name=check_info,json=checkInfo,proto3" json:"check_info,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CheckResponse) Reset() { *m = CheckResponse{} }
|
||||
func (m *CheckResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*CheckResponse) ProtoMessage() {}
|
||||
func (*CheckResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_service_controller_3b2da1557482bc9c, []int{1}
|
||||
}
|
||||
func (m *CheckResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CheckResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CheckResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *CheckResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CheckResponse.Merge(dst, src)
|
||||
}
|
||||
func (m *CheckResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_CheckResponse.Size(m)
|
||||
}
|
||||
func (m *CheckResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CheckResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CheckResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *CheckResponse) GetOperationId() string {
|
||||
if m != nil {
|
||||
return m.OperationId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CheckResponse) GetCheckErrors() []*CheckError {
|
||||
if m != nil {
|
||||
return m.CheckErrors
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *CheckResponse) GetServiceConfigId() string {
|
||||
if m != nil {
|
||||
return m.ServiceConfigId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CheckResponse) GetCheckInfo() *CheckResponse_CheckInfo {
|
||||
if m != nil {
|
||||
return m.CheckInfo
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type CheckResponse_CheckInfo struct {
|
||||
// Consumer info of this check.
|
||||
ConsumerInfo *CheckResponse_ConsumerInfo `protobuf:"bytes,2,opt,name=consumer_info,json=consumerInfo,proto3" json:"consumer_info,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CheckResponse_CheckInfo) Reset() { *m = CheckResponse_CheckInfo{} }
|
||||
func (m *CheckResponse_CheckInfo) String() string { return proto.CompactTextString(m) }
|
||||
func (*CheckResponse_CheckInfo) ProtoMessage() {}
|
||||
func (*CheckResponse_CheckInfo) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_service_controller_3b2da1557482bc9c, []int{1, 0}
|
||||
}
|
||||
func (m *CheckResponse_CheckInfo) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CheckResponse_CheckInfo.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CheckResponse_CheckInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CheckResponse_CheckInfo.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *CheckResponse_CheckInfo) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CheckResponse_CheckInfo.Merge(dst, src)
|
||||
}
|
||||
func (m *CheckResponse_CheckInfo) XXX_Size() int {
|
||||
return xxx_messageInfo_CheckResponse_CheckInfo.Size(m)
|
||||
}
|
||||
func (m *CheckResponse_CheckInfo) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CheckResponse_CheckInfo.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CheckResponse_CheckInfo proto.InternalMessageInfo
|
||||
|
||||
func (m *CheckResponse_CheckInfo) GetConsumerInfo() *CheckResponse_ConsumerInfo {
|
||||
if m != nil {
|
||||
return m.ConsumerInfo
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// `ConsumerInfo` provides information about the consumer project.
|
||||
type CheckResponse_ConsumerInfo struct {
|
||||
// The Google cloud project number, e.g. 1234567890. A value of 0 indicates
|
||||
// no project number is found.
|
||||
ProjectNumber int64 `protobuf:"varint,1,opt,name=project_number,json=projectNumber,proto3" json:"project_number,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CheckResponse_ConsumerInfo) Reset() { *m = CheckResponse_ConsumerInfo{} }
|
||||
func (m *CheckResponse_ConsumerInfo) String() string { return proto.CompactTextString(m) }
|
||||
func (*CheckResponse_ConsumerInfo) ProtoMessage() {}
|
||||
func (*CheckResponse_ConsumerInfo) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_service_controller_3b2da1557482bc9c, []int{1, 1}
|
||||
}
|
||||
func (m *CheckResponse_ConsumerInfo) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CheckResponse_ConsumerInfo.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CheckResponse_ConsumerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CheckResponse_ConsumerInfo.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *CheckResponse_ConsumerInfo) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CheckResponse_ConsumerInfo.Merge(dst, src)
|
||||
}
|
||||
func (m *CheckResponse_ConsumerInfo) XXX_Size() int {
|
||||
return xxx_messageInfo_CheckResponse_ConsumerInfo.Size(m)
|
||||
}
|
||||
func (m *CheckResponse_ConsumerInfo) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CheckResponse_ConsumerInfo.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CheckResponse_ConsumerInfo proto.InternalMessageInfo
|
||||
|
||||
func (m *CheckResponse_ConsumerInfo) GetProjectNumber() int64 {
|
||||
if m != nil {
|
||||
return m.ProjectNumber
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// Request message for the Report method.
|
||||
type ReportRequest struct {
|
||||
// The service name as specified in its service configuration. For example,
|
||||
// `"pubsub.googleapis.com"`.
|
||||
//
|
||||
// See
|
||||
// [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
|
||||
// for the definition of a service name.
|
||||
ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
|
||||
// Operations to be reported.
|
||||
//
|
||||
// Typically the service should report one operation per request.
|
||||
// Putting multiple operations into a single request is allowed, but should
|
||||
// be used only when multiple operations are natually available at the time
|
||||
// of the report.
|
||||
//
|
||||
// If multiple operations are in a single request, the total request size
|
||||
// should be no larger than 1MB. See [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for
|
||||
// partial failure behavior.
|
||||
Operations []*Operation `protobuf:"bytes,2,rep,name=operations,proto3" json:"operations,omitempty"`
|
||||
// Specifies which version of service config should be used to process the
|
||||
// request.
|
||||
//
|
||||
// If unspecified or no matching version can be found, the
|
||||
// latest one will be used.
|
||||
ServiceConfigId string `protobuf:"bytes,3,opt,name=service_config_id,json=serviceConfigId,proto3" json:"service_config_id,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ReportRequest) Reset() { *m = ReportRequest{} }
|
||||
func (m *ReportRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ReportRequest) ProtoMessage() {}
|
||||
func (*ReportRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_service_controller_3b2da1557482bc9c, []int{2}
|
||||
}
|
||||
func (m *ReportRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ReportRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ReportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ReportRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ReportRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ReportRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *ReportRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_ReportRequest.Size(m)
|
||||
}
|
||||
func (m *ReportRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ReportRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ReportRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *ReportRequest) GetServiceName() string {
|
||||
if m != nil {
|
||||
return m.ServiceName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ReportRequest) GetOperations() []*Operation {
|
||||
if m != nil {
|
||||
return m.Operations
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ReportRequest) GetServiceConfigId() string {
|
||||
if m != nil {
|
||||
return m.ServiceConfigId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Response message for the Report method.
|
||||
type ReportResponse struct {
|
||||
// Partial failures, one for each `Operation` in the request that failed
|
||||
// processing. There are three possible combinations of the RPC status:
|
||||
//
|
||||
// 1. The combination of a successful RPC status and an empty `report_errors`
|
||||
// list indicates a complete success where all `Operations` in the
|
||||
// request are processed successfully.
|
||||
// 2. The combination of a successful RPC status and a non-empty
|
||||
// `report_errors` list indicates a partial success where some
|
||||
// `Operations` in the request succeeded. Each
|
||||
// `Operation` that failed processing has a corresponding item
|
||||
// in this list.
|
||||
// 3. A failed RPC status indicates a general non-deterministic failure.
|
||||
// When this happens, it's impossible to know which of the
|
||||
// 'Operations' in the request succeeded or failed.
|
||||
ReportErrors []*ReportResponse_ReportError `protobuf:"bytes,1,rep,name=report_errors,json=reportErrors,proto3" json:"report_errors,omitempty"`
|
||||
// The actual config id used to process the request.
|
||||
ServiceConfigId string `protobuf:"bytes,2,opt,name=service_config_id,json=serviceConfigId,proto3" json:"service_config_id,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ReportResponse) Reset() { *m = ReportResponse{} }
|
||||
func (m *ReportResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ReportResponse) ProtoMessage() {}
|
||||
func (*ReportResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_service_controller_3b2da1557482bc9c, []int{3}
|
||||
}
|
||||
func (m *ReportResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ReportResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ReportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ReportResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ReportResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ReportResponse.Merge(dst, src)
|
||||
}
|
||||
func (m *ReportResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_ReportResponse.Size(m)
|
||||
}
|
||||
func (m *ReportResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ReportResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ReportResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *ReportResponse) GetReportErrors() []*ReportResponse_ReportError {
|
||||
if m != nil {
|
||||
return m.ReportErrors
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ReportResponse) GetServiceConfigId() string {
|
||||
if m != nil {
|
||||
return m.ServiceConfigId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Represents the processing error of one [Operation][google.api.servicecontrol.v1.Operation] in the request.
|
||||
type ReportResponse_ReportError struct {
|
||||
// The [Operation.operation_id][google.api.servicecontrol.v1.Operation.operation_id] value from the request.
|
||||
OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
|
||||
// Details of the error when processing the [Operation][google.api.servicecontrol.v1.Operation].
|
||||
Status *status.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ReportResponse_ReportError) Reset() { *m = ReportResponse_ReportError{} }
|
||||
func (m *ReportResponse_ReportError) String() string { return proto.CompactTextString(m) }
|
||||
func (*ReportResponse_ReportError) ProtoMessage() {}
|
||||
func (*ReportResponse_ReportError) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_service_controller_3b2da1557482bc9c, []int{3, 0}
|
||||
}
|
||||
func (m *ReportResponse_ReportError) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ReportResponse_ReportError.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ReportResponse_ReportError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ReportResponse_ReportError.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ReportResponse_ReportError) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ReportResponse_ReportError.Merge(dst, src)
|
||||
}
|
||||
func (m *ReportResponse_ReportError) XXX_Size() int {
|
||||
return xxx_messageInfo_ReportResponse_ReportError.Size(m)
|
||||
}
|
||||
func (m *ReportResponse_ReportError) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ReportResponse_ReportError.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ReportResponse_ReportError proto.InternalMessageInfo
|
||||
|
||||
func (m *ReportResponse_ReportError) GetOperationId() string {
|
||||
if m != nil {
|
||||
return m.OperationId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ReportResponse_ReportError) GetStatus() *status.Status {
|
||||
if m != nil {
|
||||
return m.Status
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*CheckRequest)(nil), "google.api.servicecontrol.v1.CheckRequest")
|
||||
proto.RegisterType((*CheckResponse)(nil), "google.api.servicecontrol.v1.CheckResponse")
|
||||
proto.RegisterType((*CheckResponse_CheckInfo)(nil), "google.api.servicecontrol.v1.CheckResponse.CheckInfo")
|
||||
proto.RegisterType((*CheckResponse_ConsumerInfo)(nil), "google.api.servicecontrol.v1.CheckResponse.ConsumerInfo")
|
||||
proto.RegisterType((*ReportRequest)(nil), "google.api.servicecontrol.v1.ReportRequest")
|
||||
proto.RegisterType((*ReportResponse)(nil), "google.api.servicecontrol.v1.ReportResponse")
|
||||
proto.RegisterType((*ReportResponse_ReportError)(nil), "google.api.servicecontrol.v1.ReportResponse.ReportError")
|
||||
}
|
||||
|
||||
// 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
|
||||
|
||||
// ServiceControllerClient is the client API for ServiceController service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type ServiceControllerClient interface {
|
||||
// Checks an operation with Google Service Control to decide whether
|
||||
// the given operation should proceed. It should be called before the
|
||||
// operation is executed.
|
||||
//
|
||||
// If feasible, the client should cache the check results and reuse them for
|
||||
// 60 seconds. In case of server errors, the client can rely on the cached
|
||||
// results for longer time.
|
||||
//
|
||||
// NOTE: the [CheckRequest][google.api.servicecontrol.v1.CheckRequest] has the size limit of 64KB.
|
||||
//
|
||||
// This method requires the `servicemanagement.services.check` permission
|
||||
// on the specified service. For more information, see
|
||||
// [Google Cloud IAM](https://cloud.google.com/iam).
|
||||
Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error)
|
||||
// Reports operation results to Google Service Control, such as logs and
|
||||
// metrics. It should be called after an operation is completed.
|
||||
//
|
||||
// If feasible, the client should aggregate reporting data for up to 5
|
||||
// seconds to reduce API traffic. Limiting aggregation to 5 seconds is to
|
||||
// reduce data loss during client crashes. Clients should carefully choose
|
||||
// the aggregation time window to avoid data loss risk more than 0.01%
|
||||
// for business and compliance reasons.
|
||||
//
|
||||
// NOTE: the [ReportRequest][google.api.servicecontrol.v1.ReportRequest] has the size limit of 1MB.
|
||||
//
|
||||
// This method requires the `servicemanagement.services.report` permission
|
||||
// on the specified service. For more information, see
|
||||
// [Google Cloud IAM](https://cloud.google.com/iam).
|
||||
Report(ctx context.Context, in *ReportRequest, opts ...grpc.CallOption) (*ReportResponse, error)
|
||||
}
|
||||
|
||||
type serviceControllerClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewServiceControllerClient(cc *grpc.ClientConn) ServiceControllerClient {
|
||||
return &serviceControllerClient{cc}
|
||||
}
|
||||
|
||||
func (c *serviceControllerClient) Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) {
|
||||
out := new(CheckResponse)
|
||||
err := c.cc.Invoke(ctx, "/google.api.servicecontrol.v1.ServiceController/Check", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *serviceControllerClient) Report(ctx context.Context, in *ReportRequest, opts ...grpc.CallOption) (*ReportResponse, error) {
|
||||
out := new(ReportResponse)
|
||||
err := c.cc.Invoke(ctx, "/google.api.servicecontrol.v1.ServiceController/Report", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// ServiceControllerServer is the server API for ServiceController service.
|
||||
type ServiceControllerServer interface {
|
||||
// Checks an operation with Google Service Control to decide whether
|
||||
// the given operation should proceed. It should be called before the
|
||||
// operation is executed.
|
||||
//
|
||||
// If feasible, the client should cache the check results and reuse them for
|
||||
// 60 seconds. In case of server errors, the client can rely on the cached
|
||||
// results for longer time.
|
||||
//
|
||||
// NOTE: the [CheckRequest][google.api.servicecontrol.v1.CheckRequest] has the size limit of 64KB.
|
||||
//
|
||||
// This method requires the `servicemanagement.services.check` permission
|
||||
// on the specified service. For more information, see
|
||||
// [Google Cloud IAM](https://cloud.google.com/iam).
|
||||
Check(context.Context, *CheckRequest) (*CheckResponse, error)
|
||||
// Reports operation results to Google Service Control, such as logs and
|
||||
// metrics. It should be called after an operation is completed.
|
||||
//
|
||||
// If feasible, the client should aggregate reporting data for up to 5
|
||||
// seconds to reduce API traffic. Limiting aggregation to 5 seconds is to
|
||||
// reduce data loss during client crashes. Clients should carefully choose
|
||||
// the aggregation time window to avoid data loss risk more than 0.01%
|
||||
// for business and compliance reasons.
|
||||
//
|
||||
// NOTE: the [ReportRequest][google.api.servicecontrol.v1.ReportRequest] has the size limit of 1MB.
|
||||
//
|
||||
// This method requires the `servicemanagement.services.report` permission
|
||||
// on the specified service. For more information, see
|
||||
// [Google Cloud IAM](https://cloud.google.com/iam).
|
||||
Report(context.Context, *ReportRequest) (*ReportResponse, error)
|
||||
}
|
||||
|
||||
func RegisterServiceControllerServer(s *grpc.Server, srv ServiceControllerServer) {
|
||||
s.RegisterService(&_ServiceController_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _ServiceController_Check_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CheckRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ServiceControllerServer).Check(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.api.servicecontrol.v1.ServiceController/Check",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ServiceControllerServer).Check(ctx, req.(*CheckRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ServiceController_Report_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ReportRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ServiceControllerServer).Report(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.api.servicecontrol.v1.ServiceController/Report",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ServiceControllerServer).Report(ctx, req.(*ReportRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _ServiceController_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.api.servicecontrol.v1.ServiceController",
|
||||
HandlerType: (*ServiceControllerServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Check",
|
||||
Handler: _ServiceController_Check_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Report",
|
||||
Handler: _ServiceController_Report_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/api/servicecontrol/v1/service_controller.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/api/servicecontrol/v1/service_controller.proto", fileDescriptor_service_controller_3b2da1557482bc9c)
|
||||
}
|
||||
|
||||
var fileDescriptor_service_controller_3b2da1557482bc9c = []byte{
|
||||
// 619 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xc1, 0x6e, 0xd3, 0x4c,
|
||||
0x10, 0xd6, 0x3a, 0x6d, 0xa4, 0x4c, 0x9c, 0xfe, 0xea, 0x1e, 0x7e, 0x22, 0xab, 0x87, 0xd4, 0x12,
|
||||
0x34, 0x4a, 0x8b, 0xad, 0x16, 0x55, 0x42, 0xe1, 0x44, 0xa3, 0xaa, 0x0a, 0x48, 0xa5, 0x72, 0x38,
|
||||
0x21, 0xaa, 0xc8, 0xdd, 0x6c, 0x8c, 0x4b, 0xb2, 0x6b, 0xd6, 0x4e, 0x2e, 0x88, 0x0b, 0x0f, 0xc0,
|
||||
0xa1, 0xbc, 0x01, 0xaa, 0xc4, 0x33, 0xf0, 0x1c, 0xbc, 0x02, 0x0f, 0x01, 0x37, 0x94,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0x7a, 0x57, 0x55, 0x59, 0xe0, 0xd1, 0xef, 0x00, 0x00,
|
||||
0x00, 0xff, 0xff, 0x5e, 0x28, 0x7b, 0xe6, 0xb7, 0x06, 0x00, 0x00,
|
||||
}
|
1036
vendor/google.golang.org/genproto/googleapis/api/servicemanagement/v1/resources.pb.go
generated
vendored
1036
vendor/google.golang.org/genproto/googleapis/api/servicemanagement/v1/resources.pb.go
generated
vendored
File diff suppressed because it is too large
Load Diff
2007
vendor/google.golang.org/genproto/googleapis/api/servicemanagement/v1/servicemanager.pb.go
generated
vendored
2007
vendor/google.golang.org/genproto/googleapis/api/servicemanagement/v1/servicemanager.pb.go
generated
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user