Merge pull request #10158 from Direnol/yandex-add-support-iam-auth

Added support for IAM credential in the token field and YC_TOKEN env
This commit is contained in:
Megan Marsh 2020-10-23 09:39:46 -07:00 committed by GitHub
commit 8f67f939f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
276 changed files with 165257 additions and 72039 deletions

1
.gitignore vendored
View File

@ -27,3 +27,4 @@ Thumbs.db
/packer.exe
.project
cache
/.vscode/

View File

@ -22,7 +22,9 @@ type AccessConfig struct {
// is an alternative method to authenticate to Yandex.Cloud. Alternatively you may set environment variable
// `YC_SERVICE_ACCOUNT_KEY_FILE`.
ServiceAccountKeyFile string `mapstructure:"service_account_key_file" required:"false"`
// OAuth token to use to authenticate to Yandex.Cloud. Alternatively you may set
// [OAuth token](https://cloud.yandex.com/docs/iam/concepts/authorization/oauth-token)
// or [IAM token](https://cloud.yandex.com/docs/iam/concepts/authorization/iam-token)
// to use to authenticate to Yandex.Cloud. Alternatively you may set
// value by environment variable `YC_TOKEN`.
Token string `mapstructure:"token" required:"true"`
// The maximum number of times an API request is being executed.

View File

@ -4,6 +4,7 @@ import (
"context"
"fmt"
"log"
"strings"
"time"
grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware"
@ -48,9 +49,13 @@ func NewDriverYC(ui packer.Ui, ac *AccessConfig) (Driver, error) {
sdkConfig.Credentials = ycsdk.InstanceServiceAccount()
case ac.Token != "":
log.Printf("[INFO] Use OAuth token for authentication")
sdkConfig.Credentials = ycsdk.OAuthToken(ac.Token)
if strings.HasPrefix(ac.Token, "t1.") && strings.Count(ac.Token, ".") == 2 {
log.Printf("[INFO] Use IAM token for authentication")
sdkConfig.Credentials = ycsdk.NewIAMTokenCredentials(ac.Token)
} else {
log.Printf("[INFO] Use OAuth token for authentication")
sdkConfig.Credentials = ycsdk.OAuthToken(ac.Token)
}
case ac.ServiceAccountKeyFile != "":
log.Printf("[INFO] Use Service Account key file %q for authentication", ac.ServiceAccountKeyFile)
key, err := iamkey.ReadFromJSONFile(ac.ServiceAccountKeyFile)

5
go.mod
View File

@ -93,6 +93,7 @@ require (
github.com/mitchellh/go-homedir v1.1.0
github.com/mitchellh/go-testing-interface v1.0.3 // indirect
github.com/mitchellh/go-vnc v0.0.0-20150629162542-723ed9867aed
github.com/mitchellh/gox v1.0.1 // indirect
github.com/mitchellh/iochan v1.0.0
github.com/mitchellh/mapstructure v1.2.3
github.com/mitchellh/panicwrap v1.0.0
@ -127,8 +128,8 @@ require (
github.com/ulikunitz/xz v0.5.5
github.com/vmware/govmomi v0.23.1
github.com/xanzy/go-cloudstack v0.0.0-20190526095453-42f262b63ed0
github.com/yandex-cloud/go-genproto v0.0.0-20200608085315-d6e7ef5ceb97
github.com/yandex-cloud/go-sdk v0.0.0-20200610100221-ae86895efb97
github.com/yandex-cloud/go-genproto v0.0.0-20200915125933-33de72a328bd
github.com/yandex-cloud/go-sdk v0.0.0-20200921111412-ef15ded2014c
github.com/zclconf/go-cty v1.4.0
github.com/zclconf/go-cty-yaml v1.0.1
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9

7
go.sum
View File

@ -377,6 +377,7 @@ github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1
github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE=
github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
github.com/hashicorp/go-version v1.0.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
github.com/hashicorp/go-version v1.1.0 h1:bPIoEKD27tNdebFGGxxYwcL4nepeY4j1QP23PFRGzg0=
github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
github.com/hashicorp/go-version v1.2.0 h1:3vNe/fWF5CBgRIguda1meWhsZHy3m8gCJ5wx+dIzX/E=
@ -511,6 +512,8 @@ github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZX
github.com/mitchellh/go-wordwrap v1.0.0 h1:6GlHJ/LTGMrIJbwgdqdl2eEH8o+Exx/0m8ir9Gns0u4=
github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo=
github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg=
github.com/mitchellh/gox v1.0.1 h1:x0jD3dcHk9a9xPSDN6YEL4xL6Qz0dvNYm8yZqui5chI=
github.com/mitchellh/gox v1.0.1/go.mod h1:ED6BioOGXMswlXa2zxfh/xdd5QhwYliBFn9V18Ap4z4=
github.com/mitchellh/iochan v1.0.0 h1:C+X3KsSTLFVBr/tK1eYN/vs4rJcvsiLU338UhYPJWeY=
github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY=
github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
@ -635,8 +638,12 @@ github.com/xanzy/go-cloudstack v0.0.0-20190526095453-42f262b63ed0 h1:NJrcIkdzq0C
github.com/xanzy/go-cloudstack v0.0.0-20190526095453-42f262b63ed0/go.mod h1:sBh287mCRwCz6zyXHMmw7sSZGPohVpnx+o+OY4M+i3A=
github.com/yandex-cloud/go-genproto v0.0.0-20200608085315-d6e7ef5ceb97 h1:DoqSUxQkBLislVgA1qkM0u7g04It4VRMidyLBH/O/as=
github.com/yandex-cloud/go-genproto v0.0.0-20200608085315-d6e7ef5ceb97/go.mod h1:HEUYX/p8966tMUHHT+TsS0hF/Ca/NYwqprC5WXSDMfE=
github.com/yandex-cloud/go-genproto v0.0.0-20200915125933-33de72a328bd h1:o4pvS7D4OErKOM6y+/q6IfOa65OaentKbEDh1ABirE8=
github.com/yandex-cloud/go-genproto v0.0.0-20200915125933-33de72a328bd/go.mod h1:HEUYX/p8966tMUHHT+TsS0hF/Ca/NYwqprC5WXSDMfE=
github.com/yandex-cloud/go-sdk v0.0.0-20200610100221-ae86895efb97 h1:8KwSw9xtQBeyeX1EpOlOjRc0JaHlh8B8GglKA6iXt08=
github.com/yandex-cloud/go-sdk v0.0.0-20200610100221-ae86895efb97/go.mod h1:3p2xVpQrHyPxV4UCKnKozt9n+g1LRENOQ33CH8rqLnY=
github.com/yandex-cloud/go-sdk v0.0.0-20200921111412-ef15ded2014c h1:LJrgyICodRAgtBvOO2eCbhDDIoaJgeLa1tGQecqW9ac=
github.com/yandex-cloud/go-sdk v0.0.0-20200921111412-ef15ded2014c/go.mod h1:Zn/U9YKH0w8n83ezLps5eB6Jftc4gSoZWxVR8hgXgoY=
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,148 +1,245 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/ai/translate/v2/translation.proto
package translate
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type TranslatedText struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Translated text.
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
// The language code of the source text.
// Specified in [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) format (for example, `` en ``).
DetectedLanguageCode string `protobuf:"bytes,2,opt,name=detected_language_code,json=detectedLanguageCode,proto3" json:"detected_language_code,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
DetectedLanguageCode string `protobuf:"bytes,2,opt,name=detected_language_code,json=detectedLanguageCode,proto3" json:"detected_language_code,omitempty"`
}
func (m *TranslatedText) Reset() { *m = TranslatedText{} }
func (m *TranslatedText) String() string { return proto.CompactTextString(m) }
func (*TranslatedText) ProtoMessage() {}
func (x *TranslatedText) Reset() {
*x = TranslatedText{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_ai_translate_v2_translation_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TranslatedText) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TranslatedText) ProtoMessage() {}
func (x *TranslatedText) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_ai_translate_v2_translation_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TranslatedText.ProtoReflect.Descriptor instead.
func (*TranslatedText) Descriptor() ([]byte, []int) {
return fileDescriptor_a844663219943b98, []int{0}
return file_yandex_cloud_ai_translate_v2_translation_proto_rawDescGZIP(), []int{0}
}
func (m *TranslatedText) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TranslatedText.Unmarshal(m, b)
}
func (m *TranslatedText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TranslatedText.Marshal(b, m, deterministic)
}
func (m *TranslatedText) XXX_Merge(src proto.Message) {
xxx_messageInfo_TranslatedText.Merge(m, src)
}
func (m *TranslatedText) XXX_Size() int {
return xxx_messageInfo_TranslatedText.Size(m)
}
func (m *TranslatedText) XXX_DiscardUnknown() {
xxx_messageInfo_TranslatedText.DiscardUnknown(m)
}
var xxx_messageInfo_TranslatedText proto.InternalMessageInfo
func (m *TranslatedText) GetText() string {
if m != nil {
return m.Text
func (x *TranslatedText) GetText() string {
if x != nil {
return x.Text
}
return ""
}
func (m *TranslatedText) GetDetectedLanguageCode() string {
if m != nil {
return m.DetectedLanguageCode
func (x *TranslatedText) GetDetectedLanguageCode() string {
if x != nil {
return x.DetectedLanguageCode
}
return ""
}
type Language struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The language code.
// Specified in [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) format (for example, `` en ``).
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
// The name of the language (for example, `` English ``).
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
}
func (m *Language) Reset() { *m = Language{} }
func (m *Language) String() string { return proto.CompactTextString(m) }
func (*Language) ProtoMessage() {}
func (x *Language) Reset() {
*x = Language{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_ai_translate_v2_translation_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Language) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Language) ProtoMessage() {}
func (x *Language) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_ai_translate_v2_translation_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Language.ProtoReflect.Descriptor instead.
func (*Language) Descriptor() ([]byte, []int) {
return fileDescriptor_a844663219943b98, []int{1}
return file_yandex_cloud_ai_translate_v2_translation_proto_rawDescGZIP(), []int{1}
}
func (m *Language) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Language.Unmarshal(m, b)
}
func (m *Language) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Language.Marshal(b, m, deterministic)
}
func (m *Language) XXX_Merge(src proto.Message) {
xxx_messageInfo_Language.Merge(m, src)
}
func (m *Language) XXX_Size() int {
return xxx_messageInfo_Language.Size(m)
}
func (m *Language) XXX_DiscardUnknown() {
xxx_messageInfo_Language.DiscardUnknown(m)
}
var xxx_messageInfo_Language proto.InternalMessageInfo
func (m *Language) GetCode() string {
if m != nil {
return m.Code
func (x *Language) GetCode() string {
if x != nil {
return x.Code
}
return ""
}
func (m *Language) GetName() string {
if m != nil {
return m.Name
func (x *Language) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func init() {
proto.RegisterType((*TranslatedText)(nil), "yandex.cloud.ai.translate.v2.TranslatedText")
proto.RegisterType((*Language)(nil), "yandex.cloud.ai.translate.v2.Language")
var File_yandex_cloud_ai_translate_v2_translation_proto protoreflect.FileDescriptor
var file_yandex_cloud_ai_translate_v2_translation_proto_rawDesc = []byte{
0x0a, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
0x69, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x32, 0x2f, 0x74,
0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x1c, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61,
0x69, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x32, 0x22, 0x5a,
0x0a, 0x0e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x54, 0x65, 0x78, 0x74,
0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
0x74, 0x65, 0x78, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64,
0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02,
0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x4c, 0x61,
0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x32, 0x0a, 0x08, 0x4c, 0x61,
0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x6e,
0x0a, 0x20, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x61, 0x69, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x2e,
0x76, 0x32, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79,
0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67,
0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63,
0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74,
0x65, 0x2f, 0x76, 0x32, 0x3b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/ai/translate/v2/translation.proto", fileDescriptor_a844663219943b98)
var (
file_yandex_cloud_ai_translate_v2_translation_proto_rawDescOnce sync.Once
file_yandex_cloud_ai_translate_v2_translation_proto_rawDescData = file_yandex_cloud_ai_translate_v2_translation_proto_rawDesc
)
func file_yandex_cloud_ai_translate_v2_translation_proto_rawDescGZIP() []byte {
file_yandex_cloud_ai_translate_v2_translation_proto_rawDescOnce.Do(func() {
file_yandex_cloud_ai_translate_v2_translation_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_ai_translate_v2_translation_proto_rawDescData)
})
return file_yandex_cloud_ai_translate_v2_translation_proto_rawDescData
}
var fileDescriptor_a844663219943b98 = []byte{
// 217 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0xb1, 0x4b, 0xc5, 0x30,
0x10, 0xc6, 0x79, 0x22, 0xa2, 0x19, 0x1c, 0x82, 0xc8, 0x1b, 0x1c, 0x1e, 0x9d, 0x5c, 0x9a, 0x40,
0x75, 0x73, 0xd3, 0x4d, 0x9c, 0xa4, 0x53, 0x97, 0x72, 0x4d, 0x8e, 0x18, 0x68, 0x73, 0xa5, 0x5e,
0x4b, 0xfd, 0xef, 0xa5, 0x69, 0x53, 0xd0, 0xe1, 0x6d, 0xdf, 0x2f, 0xf7, 0xe3, 0xe3, 0x72, 0x42,
0xfd, 0x40, 0xb0, 0x38, 0x6b, 0xd3, 0xd2, 0x68, 0x35, 0x78, 0xcd, 0x03, 0x84, 0xef, 0x16, 0x18,
0xf5, 0x54, 0xec, 0xe0, 0x29, 0xa8, 0x7e, 0x20, 0x26, 0xf9, 0xb0, 0xfa, 0x2a, 0xfa, 0x0a, 0xbc,
0xda, 0x7d, 0x35, 0x15, 0x59, 0x25, 0x6e, 0xcb, 0xc4, 0xb6, 0xc4, 0x99, 0xa5, 0x14, 0x97, 0x8c,
0x33, 0x1f, 0x0f, 0xa7, 0xc3, 0xe3, 0xcd, 0x67, 0xcc, 0xf2, 0x59, 0xdc, 0x5b, 0x64, 0x34, 0x8c,
0xb6, 0x6e, 0x21, 0xb8, 0x11, 0x1c, 0xd6, 0x86, 0x2c, 0x1e, 0x2f, 0xa2, 0x75, 0x97, 0xa6, 0x1f,
0xdb, 0xf0, 0x8d, 0x2c, 0x66, 0x85, 0xb8, 0x4e, 0xbc, 0xb4, 0x46, 0x7f, 0x6b, 0x5d, 0xf2, 0xf2,
0x16, 0xa0, 0x4b, 0x1d, 0x31, 0xbf, 0x06, 0x71, 0xfa, 0xbb, 0x6f, 0xef, 0xff, 0xef, 0x5c, 0xbd,
0x3b, 0xcf, 0x5f, 0x63, 0xa3, 0x0c, 0x75, 0x7a, 0x95, 0xf3, 0xf5, 0x18, 0x8e, 0x72, 0x87, 0x21,
0x7e, 0x5b, 0x9f, 0xbb, 0xd2, 0xcb, 0x0e, 0xcd, 0x55, 0xb4, 0x9f, 0x7e, 0x03, 0x00, 0x00, 0xff,
0xff, 0x10, 0xbd, 0x4e, 0x82, 0x56, 0x01, 0x00, 0x00,
var file_yandex_cloud_ai_translate_v2_translation_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_ai_translate_v2_translation_proto_goTypes = []interface{}{
(*TranslatedText)(nil), // 0: yandex.cloud.ai.translate.v2.TranslatedText
(*Language)(nil), // 1: yandex.cloud.ai.translate.v2.Language
}
var file_yandex_cloud_ai_translate_v2_translation_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_yandex_cloud_ai_translate_v2_translation_proto_init() }
func file_yandex_cloud_ai_translate_v2_translation_proto_init() {
if File_yandex_cloud_ai_translate_v2_translation_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_ai_translate_v2_translation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TranslatedText); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_ai_translate_v2_translation_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Language); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_ai_translate_v2_translation_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_ai_translate_v2_translation_proto_goTypes,
DependencyIndexes: file_yandex_cloud_ai_translate_v2_translation_proto_depIdxs,
MessageInfos: file_yandex_cloud_ai_translate_v2_translation_proto_msgTypes,
}.Build()
File_yandex_cloud_ai_translate_v2_translation_proto = out.File
file_yandex_cloud_ai_translate_v2_translation_proto_rawDesc = nil
file_yandex_cloud_ai_translate_v2_translation_proto_goTypes = nil
file_yandex_cloud_ai_translate_v2_translation_proto_depIdxs = nil
}

View File

@ -1,141 +1,238 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/ai/vision/v1/classification.proto
package vision
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type ClassAnnotation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Properties extracted by a specified model.
//
// For example, if you ask to evaluate the image quality,
// the service could return such properties as `good` and `bad`.
Properties []*Property `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Properties []*Property `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty"`
}
func (m *ClassAnnotation) Reset() { *m = ClassAnnotation{} }
func (m *ClassAnnotation) String() string { return proto.CompactTextString(m) }
func (*ClassAnnotation) ProtoMessage() {}
func (x *ClassAnnotation) Reset() {
*x = ClassAnnotation{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_ai_vision_v1_classification_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClassAnnotation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClassAnnotation) ProtoMessage() {}
func (x *ClassAnnotation) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_ai_vision_v1_classification_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ClassAnnotation.ProtoReflect.Descriptor instead.
func (*ClassAnnotation) Descriptor() ([]byte, []int) {
return fileDescriptor_4b6a3b28cb9191ec, []int{0}
return file_yandex_cloud_ai_vision_v1_classification_proto_rawDescGZIP(), []int{0}
}
func (m *ClassAnnotation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClassAnnotation.Unmarshal(m, b)
}
func (m *ClassAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClassAnnotation.Marshal(b, m, deterministic)
}
func (m *ClassAnnotation) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClassAnnotation.Merge(m, src)
}
func (m *ClassAnnotation) XXX_Size() int {
return xxx_messageInfo_ClassAnnotation.Size(m)
}
func (m *ClassAnnotation) XXX_DiscardUnknown() {
xxx_messageInfo_ClassAnnotation.DiscardUnknown(m)
}
var xxx_messageInfo_ClassAnnotation proto.InternalMessageInfo
func (m *ClassAnnotation) GetProperties() []*Property {
if m != nil {
return m.Properties
func (x *ClassAnnotation) GetProperties() []*Property {
if x != nil {
return x.Properties
}
return nil
}
type Property struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Property name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Probability of the property, from 0 to 1.
Probability float64 `protobuf:"fixed64,2,opt,name=probability,proto3" json:"probability,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Probability float64 `protobuf:"fixed64,2,opt,name=probability,proto3" json:"probability,omitempty"`
}
func (m *Property) Reset() { *m = Property{} }
func (m *Property) String() string { return proto.CompactTextString(m) }
func (*Property) ProtoMessage() {}
func (x *Property) Reset() {
*x = Property{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_ai_vision_v1_classification_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Property) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Property) ProtoMessage() {}
func (x *Property) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_ai_vision_v1_classification_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Property.ProtoReflect.Descriptor instead.
func (*Property) Descriptor() ([]byte, []int) {
return fileDescriptor_4b6a3b28cb9191ec, []int{1}
return file_yandex_cloud_ai_vision_v1_classification_proto_rawDescGZIP(), []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 (m *Property) XXX_Merge(src proto.Message) {
xxx_messageInfo_Property.Merge(m, 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
func (x *Property) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *Property) GetProbability() float64 {
if m != nil {
return m.Probability
func (x *Property) GetProbability() float64 {
if x != nil {
return x.Probability
}
return 0
}
func init() {
proto.RegisterType((*ClassAnnotation)(nil), "yandex.cloud.ai.vision.v1.ClassAnnotation")
proto.RegisterType((*Property)(nil), "yandex.cloud.ai.vision.v1.Property")
var File_yandex_cloud_ai_vision_v1_classification_proto protoreflect.FileDescriptor
var file_yandex_cloud_ai_vision_v1_classification_proto_rawDesc = []byte{
0x0a, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
0x69, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73,
0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x19, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61,
0x69, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x22, 0x56, 0x0a, 0x0f, 0x43,
0x6c, 0x61, 0x73, 0x73, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x43,
0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x23, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2e, 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50,
0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
0x69, 0x65, 0x73, 0x22, 0x40, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12,
0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x62, 0x61, 0x62, 0x69, 0x6c, 0x69,
0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x62, 0x61, 0x62,
0x69, 0x6c, 0x69, 0x74, 0x79, 0x42, 0x65, 0x0a, 0x1d, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73,
0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f,
0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x2f, 0x76, 0x69, 0x73, 0x69,
0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/ai/vision/v1/classification.proto", fileDescriptor_4b6a3b28cb9191ec)
var (
file_yandex_cloud_ai_vision_v1_classification_proto_rawDescOnce sync.Once
file_yandex_cloud_ai_vision_v1_classification_proto_rawDescData = file_yandex_cloud_ai_vision_v1_classification_proto_rawDesc
)
func file_yandex_cloud_ai_vision_v1_classification_proto_rawDescGZIP() []byte {
file_yandex_cloud_ai_vision_v1_classification_proto_rawDescOnce.Do(func() {
file_yandex_cloud_ai_vision_v1_classification_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_ai_vision_v1_classification_proto_rawDescData)
})
return file_yandex_cloud_ai_vision_v1_classification_proto_rawDescData
}
var fileDescriptor_4b6a3b28cb9191ec = []byte{
// 225 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0x31, 0x4b, 0x04, 0x31,
0x10, 0x85, 0x89, 0x8a, 0xe8, 0x5c, 0x21, 0xa4, 0x5a, 0x0b, 0x61, 0x39, 0x9b, 0x6d, 0x6e, 0xc2,
0x69, 0x69, 0xa3, 0x9e, 0x3f, 0x40, 0xb6, 0xb0, 0xb0, 0x4b, 0x72, 0x71, 0x1d, 0xd8, 0xcb, 0x84,
0x24, 0xb7, 0xb8, 0xff, 0x5e, 0x4c, 0x10, 0xee, 0x8a, 0xeb, 0x1e, 0x8f, 0xef, 0xcd, 0x63, 0x1e,
0xe0, 0xac, 0xfd, 0xd6, 0xfd, 0x28, 0x3b, 0xf2, 0x7e, 0xab, 0x34, 0xa9, 0x89, 0x12, 0xb1, 0x57,
0xd3, 0x5a, 0xd9, 0x51, 0xa7, 0x44, 0x5f, 0x64, 0x75, 0x26, 0xf6, 0x18, 0x22, 0x67, 0x96, 0xb7,
0x95, 0xc7, 0xc2, 0xa3, 0x26, 0xac, 0x3c, 0x4e, 0xeb, 0xe5, 0x07, 0xdc, 0x6c, 0xfe, 0x22, 0x2f,
0xde, 0x73, 0x2e, 0x19, 0xb9, 0x01, 0x08, 0x91, 0x83, 0x8b, 0x99, 0x5c, 0x6a, 0x44, 0x7b, 0xde,
0x2d, 0x1e, 0xee, 0xf1, 0xe4, 0x09, 0x7c, 0xaf, 0xf0, 0xdc, 0x1f, 0xc4, 0x96, 0xcf, 0x70, 0xf5,
0xef, 0x4b, 0x09, 0x17, 0x5e, 0xef, 0x5c, 0x23, 0x5a, 0xd1, 0x5d, 0xf7, 0x45, 0xcb, 0x16, 0x16,
0x21, 0xb2, 0xd1, 0x86, 0x46, 0xca, 0x73, 0x73, 0xd6, 0x8a, 0x4e, 0xf4, 0x87, 0xd6, 0xab, 0x83,
0xbb, 0xe3, 0xce, 0x40, 0x47, 0xbd, 0x9f, 0x6f, 0x03, 0xe5, 0xef, 0xbd, 0x41, 0xcb, 0x3b, 0x55,
0xc9, 0x55, 0x1d, 0x64, 0xe0, 0xd5, 0xe0, 0x7c, 0x79, 0x5d, 0x9d, 0x5c, 0xea, 0xa9, 0x2a, 0x73,
0x59, 0xb8, 0xc7, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xde, 0xdf, 0xa0, 0x72, 0x54, 0x01, 0x00,
0x00,
var file_yandex_cloud_ai_vision_v1_classification_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_ai_vision_v1_classification_proto_goTypes = []interface{}{
(*ClassAnnotation)(nil), // 0: yandex.cloud.ai.vision.v1.ClassAnnotation
(*Property)(nil), // 1: yandex.cloud.ai.vision.v1.Property
}
var file_yandex_cloud_ai_vision_v1_classification_proto_depIdxs = []int32{
1, // 0: yandex.cloud.ai.vision.v1.ClassAnnotation.properties:type_name -> yandex.cloud.ai.vision.v1.Property
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_yandex_cloud_ai_vision_v1_classification_proto_init() }
func file_yandex_cloud_ai_vision_v1_classification_proto_init() {
if File_yandex_cloud_ai_vision_v1_classification_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_ai_vision_v1_classification_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ClassAnnotation); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_ai_vision_v1_classification_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Property); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_ai_vision_v1_classification_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_ai_vision_v1_classification_proto_goTypes,
DependencyIndexes: file_yandex_cloud_ai_vision_v1_classification_proto_depIdxs,
MessageInfos: file_yandex_cloud_ai_vision_v1_classification_proto_msgTypes,
}.Build()
File_yandex_cloud_ai_vision_v1_classification_proto = out.File
file_yandex_cloud_ai_vision_v1_classification_proto_rawDesc = nil
file_yandex_cloud_ai_vision_v1_classification_proto_goTypes = nil
file_yandex_cloud_ai_vision_v1_classification_proto_depIdxs = nil
}

View File

@ -1,129 +1,231 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/ai/vision/v1/face_detection.proto
package vision
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type FaceAnnotation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// An array of detected faces for the specified image.
Faces []*Face `protobuf:"bytes,1,rep,name=faces,proto3" json:"faces,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Faces []*Face `protobuf:"bytes,1,rep,name=faces,proto3" json:"faces,omitempty"`
}
func (m *FaceAnnotation) Reset() { *m = FaceAnnotation{} }
func (m *FaceAnnotation) String() string { return proto.CompactTextString(m) }
func (*FaceAnnotation) ProtoMessage() {}
func (x *FaceAnnotation) Reset() {
*x = FaceAnnotation{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_ai_vision_v1_face_detection_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FaceAnnotation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FaceAnnotation) ProtoMessage() {}
func (x *FaceAnnotation) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_ai_vision_v1_face_detection_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FaceAnnotation.ProtoReflect.Descriptor instead.
func (*FaceAnnotation) Descriptor() ([]byte, []int) {
return fileDescriptor_88a95cd8b6371094, []int{0}
return file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDescGZIP(), []int{0}
}
func (m *FaceAnnotation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FaceAnnotation.Unmarshal(m, b)
}
func (m *FaceAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FaceAnnotation.Marshal(b, m, deterministic)
}
func (m *FaceAnnotation) XXX_Merge(src proto.Message) {
xxx_messageInfo_FaceAnnotation.Merge(m, src)
}
func (m *FaceAnnotation) XXX_Size() int {
return xxx_messageInfo_FaceAnnotation.Size(m)
}
func (m *FaceAnnotation) XXX_DiscardUnknown() {
xxx_messageInfo_FaceAnnotation.DiscardUnknown(m)
}
var xxx_messageInfo_FaceAnnotation proto.InternalMessageInfo
func (m *FaceAnnotation) GetFaces() []*Face {
if m != nil {
return m.Faces
func (x *FaceAnnotation) GetFaces() []*Face {
if x != nil {
return x.Faces
}
return nil
}
type Face struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Area on the image where the face is located.
BoundingBox *Polygon `protobuf:"bytes,1,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
BoundingBox *Polygon `protobuf:"bytes,1,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
}
func (m *Face) Reset() { *m = Face{} }
func (m *Face) String() string { return proto.CompactTextString(m) }
func (*Face) ProtoMessage() {}
func (x *Face) Reset() {
*x = Face{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_ai_vision_v1_face_detection_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Face) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Face) ProtoMessage() {}
func (x *Face) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_ai_vision_v1_face_detection_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Face.ProtoReflect.Descriptor instead.
func (*Face) Descriptor() ([]byte, []int) {
return fileDescriptor_88a95cd8b6371094, []int{1}
return file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDescGZIP(), []int{1}
}
func (m *Face) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Face.Unmarshal(m, b)
}
func (m *Face) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Face.Marshal(b, m, deterministic)
}
func (m *Face) XXX_Merge(src proto.Message) {
xxx_messageInfo_Face.Merge(m, src)
}
func (m *Face) XXX_Size() int {
return xxx_messageInfo_Face.Size(m)
}
func (m *Face) XXX_DiscardUnknown() {
xxx_messageInfo_Face.DiscardUnknown(m)
}
var xxx_messageInfo_Face proto.InternalMessageInfo
func (m *Face) GetBoundingBox() *Polygon {
if m != nil {
return m.BoundingBox
func (x *Face) GetBoundingBox() *Polygon {
if x != nil {
return x.BoundingBox
}
return nil
}
func init() {
proto.RegisterType((*FaceAnnotation)(nil), "yandex.cloud.ai.vision.v1.FaceAnnotation")
proto.RegisterType((*Face)(nil), "yandex.cloud.ai.vision.v1.Face")
var File_yandex_cloud_ai_vision_v1_face_detection_proto protoreflect.FileDescriptor
var file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDesc = []byte{
0x0a, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
0x69, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x66, 0x61, 0x63, 0x65,
0x5f, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x19, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61,
0x69, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x1a, 0x2a, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x2f, 0x76, 0x69, 0x73,
0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65,
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x47, 0x0a, 0x0e, 0x46, 0x61, 0x63, 0x65, 0x41,
0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x05, 0x66, 0x61, 0x63,
0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f,
0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x63, 0x65, 0x52, 0x05, 0x66, 0x61, 0x63, 0x65, 0x73,
0x22, 0x4d, 0x0a, 0x04, 0x46, 0x61, 0x63, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x62, 0x6f, 0x75, 0x6e,
0x64, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x6f, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22,
0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69,
0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x79, 0x67,
0x6f, 0x6e, 0x52, 0x0b, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x78, 0x42,
0x65, 0x0a, 0x1d, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31,
0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f,
0x75, 0x64, 0x2f, 0x61, 0x69, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b,
0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/ai/vision/v1/face_detection.proto", fileDescriptor_88a95cd8b6371094)
var (
file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDescOnce sync.Once
file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDescData = file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDesc
)
func file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDescGZIP() []byte {
file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDescOnce.Do(func() {
file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDescData)
})
return file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDescData
}
var fileDescriptor_88a95cd8b6371094 = []byte{
// 234 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0x3d, 0x6b, 0xc3, 0x30,
0x10, 0x40, 0x31, 0xfd, 0x18, 0xe4, 0xd2, 0xc1, 0x53, 0x5a, 0x28, 0x0d, 0x9e, 0x42, 0x21, 0x27,
0x92, 0xd2, 0xa9, 0x53, 0x43, 0x3f, 0xa6, 0x42, 0xc9, 0xd8, 0x25, 0xc8, 0xf2, 0x55, 0x3d, 0x48,
0xee, 0x4c, 0x2c, 0x0b, 0xe7, 0xdf, 0x17, 0x59, 0x74, 0xc8, 0xe0, 0x6c, 0x12, 0xbc, 0xf7, 0x8e,
0x3b, 0x05, 0x07, 0xc3, 0x35, 0xf6, 0xda, 0x6e, 0xa5, 0xab, 0xb5, 0x21, 0x1d, 0xa8, 0x25, 0x61,
0x1d, 0x16, 0xfa, 0xc7, 0x58, 0xdc, 0xd4, 0xe8, 0xd1, 0x7a, 0x12, 0x86, 0x66, 0x2f, 0x5e, 0x8a,
0x9b, 0xc4, 0xc3, 0xc0, 0x83, 0x21, 0x48, 0x3c, 0x84, 0xc5, 0xed, 0xc3, 0x78, 0xaa, 0xd9, 0xd3,
0x8e, 0x3c, 0x05, 0x6c, 0x53, 0xa6, 0xfc, 0x50, 0xd7, 0xef, 0xc6, 0xe2, 0x0b, 0xb3, 0x78, 0x13,
0xf3, 0xc5, 0x93, 0xba, 0x88, 0x03, 0xdb, 0x49, 0x36, 0x3d, 0x9b, 0xe5, 0xcb, 0x7b, 0x18, 0x1d,
0x04, 0xd1, 0x5c, 0x27, 0xba, 0xfc, 0x54, 0xe7, 0xf1, 0x5b, 0xbc, 0xa9, 0xab, 0x4a, 0x3a, 0xae,
0x89, 0xdd, 0xa6, 0x92, 0x7e, 0x92, 0x4d, 0xb3, 0x59, 0xbe, 0x2c, 0x4f, 0x54, 0xbe, 0x64, 0x7b,
0x70, 0xc2, 0xeb, 0xfc, 0xdf, 0x5b, 0x49, 0xbf, 0x42, 0x75, 0x77, 0x6c, 0x34, 0x74, 0x64, 0x7d,
0xbf, 0x3a, 0xf2, 0xbf, 0x5d, 0x05, 0x56, 0x76, 0x3a, 0x91, 0xf3, 0xb4, 0xaf, 0x93, 0xb9, 0x43,
0x1e, 0xb6, 0xd3, 0xa3, 0x87, 0x78, 0x4e, 0xaf, 0xea, 0x72, 0xe0, 0x1e, 0xff, 0x02, 0x00, 0x00,
0xff, 0xff, 0xf7, 0xd2, 0x42, 0xad, 0x7e, 0x01, 0x00, 0x00,
var file_yandex_cloud_ai_vision_v1_face_detection_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_ai_vision_v1_face_detection_proto_goTypes = []interface{}{
(*FaceAnnotation)(nil), // 0: yandex.cloud.ai.vision.v1.FaceAnnotation
(*Face)(nil), // 1: yandex.cloud.ai.vision.v1.Face
(*Polygon)(nil), // 2: yandex.cloud.ai.vision.v1.Polygon
}
var file_yandex_cloud_ai_vision_v1_face_detection_proto_depIdxs = []int32{
1, // 0: yandex.cloud.ai.vision.v1.FaceAnnotation.faces:type_name -> yandex.cloud.ai.vision.v1.Face
2, // 1: yandex.cloud.ai.vision.v1.Face.bounding_box:type_name -> yandex.cloud.ai.vision.v1.Polygon
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_yandex_cloud_ai_vision_v1_face_detection_proto_init() }
func file_yandex_cloud_ai_vision_v1_face_detection_proto_init() {
if File_yandex_cloud_ai_vision_v1_face_detection_proto != nil {
return
}
file_yandex_cloud_ai_vision_v1_primitives_proto_init()
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_ai_vision_v1_face_detection_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FaceAnnotation); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_ai_vision_v1_face_detection_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Face); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_ai_vision_v1_face_detection_proto_goTypes,
DependencyIndexes: file_yandex_cloud_ai_vision_v1_face_detection_proto_depIdxs,
MessageInfos: file_yandex_cloud_ai_vision_v1_face_detection_proto_msgTypes,
}.Build()
File_yandex_cloud_ai_vision_v1_face_detection_proto = out.File
file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDesc = nil
file_yandex_cloud_ai_vision_v1_face_detection_proto_goTypes = nil
file_yandex_cloud_ai_vision_v1_face_detection_proto_depIdxs = nil
}

View File

@ -1,75 +1,92 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/ai/vision/v1/image_copy_search.proto
package vision
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type ImageCopySearchAnnotation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Number of image copies
CopyCount int64 `protobuf:"varint,1,opt,name=copy_count,json=copyCount,proto3" json:"copy_count,omitempty"`
// Top relevance result of image copy search
TopResults []*CopyMatch `protobuf:"bytes,2,rep,name=top_results,json=topResults,proto3" json:"top_results,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
TopResults []*CopyMatch `protobuf:"bytes,2,rep,name=top_results,json=topResults,proto3" json:"top_results,omitempty"`
}
func (m *ImageCopySearchAnnotation) Reset() { *m = ImageCopySearchAnnotation{} }
func (m *ImageCopySearchAnnotation) String() string { return proto.CompactTextString(m) }
func (*ImageCopySearchAnnotation) ProtoMessage() {}
func (x *ImageCopySearchAnnotation) Reset() {
*x = ImageCopySearchAnnotation{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_ai_vision_v1_image_copy_search_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ImageCopySearchAnnotation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ImageCopySearchAnnotation) ProtoMessage() {}
func (x *ImageCopySearchAnnotation) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_ai_vision_v1_image_copy_search_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ImageCopySearchAnnotation.ProtoReflect.Descriptor instead.
func (*ImageCopySearchAnnotation) Descriptor() ([]byte, []int) {
return fileDescriptor_6781c0cf9dfefbb7, []int{0}
return file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDescGZIP(), []int{0}
}
func (m *ImageCopySearchAnnotation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImageCopySearchAnnotation.Unmarshal(m, b)
}
func (m *ImageCopySearchAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImageCopySearchAnnotation.Marshal(b, m, deterministic)
}
func (m *ImageCopySearchAnnotation) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImageCopySearchAnnotation.Merge(m, src)
}
func (m *ImageCopySearchAnnotation) XXX_Size() int {
return xxx_messageInfo_ImageCopySearchAnnotation.Size(m)
}
func (m *ImageCopySearchAnnotation) XXX_DiscardUnknown() {
xxx_messageInfo_ImageCopySearchAnnotation.DiscardUnknown(m)
}
var xxx_messageInfo_ImageCopySearchAnnotation proto.InternalMessageInfo
func (m *ImageCopySearchAnnotation) GetCopyCount() int64 {
if m != nil {
return m.CopyCount
func (x *ImageCopySearchAnnotation) GetCopyCount() int64 {
if x != nil {
return x.CopyCount
}
return 0
}
func (m *ImageCopySearchAnnotation) GetTopResults() []*CopyMatch {
if m != nil {
return m.TopResults
func (x *ImageCopySearchAnnotation) GetTopResults() []*CopyMatch {
if x != nil {
return x.TopResults
}
return nil
}
type CopyMatch struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
//url of image
ImageUrl string `protobuf:"bytes,1,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
//url of page that contains image
@ -77,92 +94,175 @@ type CopyMatch struct {
//page title that contains image
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
//image description
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
}
func (m *CopyMatch) Reset() { *m = CopyMatch{} }
func (m *CopyMatch) String() string { return proto.CompactTextString(m) }
func (*CopyMatch) ProtoMessage() {}
func (x *CopyMatch) Reset() {
*x = CopyMatch{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_ai_vision_v1_image_copy_search_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CopyMatch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CopyMatch) ProtoMessage() {}
func (x *CopyMatch) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_ai_vision_v1_image_copy_search_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CopyMatch.ProtoReflect.Descriptor instead.
func (*CopyMatch) Descriptor() ([]byte, []int) {
return fileDescriptor_6781c0cf9dfefbb7, []int{1}
return file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDescGZIP(), []int{1}
}
func (m *CopyMatch) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CopyMatch.Unmarshal(m, b)
}
func (m *CopyMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CopyMatch.Marshal(b, m, deterministic)
}
func (m *CopyMatch) XXX_Merge(src proto.Message) {
xxx_messageInfo_CopyMatch.Merge(m, src)
}
func (m *CopyMatch) XXX_Size() int {
return xxx_messageInfo_CopyMatch.Size(m)
}
func (m *CopyMatch) XXX_DiscardUnknown() {
xxx_messageInfo_CopyMatch.DiscardUnknown(m)
}
var xxx_messageInfo_CopyMatch proto.InternalMessageInfo
func (m *CopyMatch) GetImageUrl() string {
if m != nil {
return m.ImageUrl
func (x *CopyMatch) GetImageUrl() string {
if x != nil {
return x.ImageUrl
}
return ""
}
func (m *CopyMatch) GetPageUrl() string {
if m != nil {
return m.PageUrl
func (x *CopyMatch) GetPageUrl() string {
if x != nil {
return x.PageUrl
}
return ""
}
func (m *CopyMatch) GetTitle() string {
if m != nil {
return m.Title
func (x *CopyMatch) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (m *CopyMatch) GetDescription() string {
if m != nil {
return m.Description
func (x *CopyMatch) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func init() {
proto.RegisterType((*ImageCopySearchAnnotation)(nil), "yandex.cloud.ai.vision.v1.ImageCopySearchAnnotation")
proto.RegisterType((*CopyMatch)(nil), "yandex.cloud.ai.vision.v1.CopyMatch")
var File_yandex_cloud_ai_vision_v1_image_copy_search_proto protoreflect.FileDescriptor
var file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDesc = []byte{
0x0a, 0x31, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
0x69, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6d, 0x61, 0x67,
0x65, 0x5f, 0x63, 0x6f, 0x70, 0x79, 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x12, 0x19, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2e, 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x22, 0x81,
0x01, 0x0a, 0x19, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x53, 0x65, 0x61, 0x72,
0x63, 0x68, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a,
0x63, 0x6f, 0x70, 0x79, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
0x52, 0x09, 0x63, 0x6f, 0x70, 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x45, 0x0a, 0x0b, 0x74,
0x6f, 0x70, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x24, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x70,
0x79, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x0a, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x73, 0x75, 0x6c,
0x74, 0x73, 0x22, 0x7b, 0x0a, 0x09, 0x43, 0x6f, 0x70, 0x79, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x12,
0x1b, 0x0a, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x08, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x19, 0x0a, 0x08,
0x70, 0x61, 0x67, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
0x70, 0x61, 0x67, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a,
0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01,
0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42,
0x65, 0x0a, 0x1d, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31,
0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f,
0x75, 0x64, 0x2f, 0x61, 0x69, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b,
0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/ai/vision/v1/image_copy_search.proto", fileDescriptor_6781c0cf9dfefbb7)
var (
file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDescOnce sync.Once
file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDescData = file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDesc
)
func file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDescGZIP() []byte {
file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDescOnce.Do(func() {
file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDescData)
})
return file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDescData
}
var fileDescriptor_6781c0cf9dfefbb7 = []byte{
// 288 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xb1, 0x4f, 0xf3, 0x30,
0x10, 0xc5, 0xd5, 0xf6, 0xfb, 0xa0, 0xb9, 0x6c, 0x16, 0x43, 0x22, 0x54, 0x29, 0xaa, 0x18, 0xba,
0xd4, 0x56, 0x60, 0x64, 0x82, 0xc2, 0xc0, 0xc0, 0x12, 0xc4, 0xc2, 0x12, 0xb9, 0x8e, 0x95, 0x58,
0x4a, 0x7d, 0x96, 0xe3, 0x44, 0x44, 0x4c, 0xfc, 0xe7, 0x28, 0x36, 0x20, 0x3a, 0x74, 0xb3, 0xdf,
0xbb, 0x9f, 0xdf, 0xdd, 0x19, 0xf2, 0x91, 0xeb, 0x4a, 0xbe, 0x33, 0xd1, 0x62, 0x5f, 0x31, 0xae,
0xd8, 0xa0, 0x3a, 0x85, 0x9a, 0x0d, 0x39, 0x53, 0x07, 0x5e, 0xcb, 0x52, 0xa0, 0x19, 0xcb, 0x4e,
0x72, 0x2b, 0x1a, 0x6a, 0x2c, 0x3a, 0x24, 0x69, 0x40, 0xa8, 0x47, 0x28, 0x57, 0x34, 0x20, 0x74,
0xc8, 0xd7, 0x9f, 0x33, 0x48, 0x9f, 0x26, 0x6c, 0x87, 0x66, 0x7c, 0xf1, 0xd0, 0x9d, 0xd6, 0xe8,
0xb8, 0x53, 0xa8, 0xc9, 0x0a, 0xc0, 0xbf, 0x26, 0xb0, 0xd7, 0x2e, 0x99, 0x65, 0xb3, 0xcd, 0xa2,
0x88, 0x26, 0x65, 0x37, 0x09, 0xe4, 0x11, 0x62, 0x87, 0xa6, 0xb4, 0xb2, 0xeb, 0x5b, 0xd7, 0x25,
0xf3, 0x6c, 0xb1, 0x89, 0xaf, 0xaf, 0xe8, 0xc9, 0x34, 0x3a, 0x85, 0x3c, 0x73, 0x27, 0x9a, 0x02,
0x1c, 0x9a, 0x22, 0x70, 0xeb, 0x0f, 0x88, 0x7e, 0x0d, 0x72, 0x09, 0x51, 0x18, 0xa3, 0xb7, 0xad,
0x4f, 0x8c, 0x8a, 0xa5, 0x17, 0x5e, 0x6d, 0x4b, 0x52, 0x58, 0x9a, 0x1f, 0x6f, 0xee, 0xbd, 0x73,
0xf3, 0x6d, 0x5d, 0xc0, 0x7f, 0xa7, 0x5c, 0x2b, 0x93, 0x85, 0xd7, 0xc3, 0x85, 0x64, 0x10, 0x57,
0xb2, 0x13, 0x56, 0x99, 0x69, 0x9e, 0xe4, 0x9f, 0xf7, 0xfe, 0x4a, 0xf7, 0x12, 0x56, 0xc7, 0xfd,
0x1a, 0x75, 0xd4, 0xf3, 0xdb, 0x43, 0xad, 0x5c, 0xd3, 0xef, 0xa9, 0xc0, 0x03, 0x0b, 0x95, 0xdb,
0xb0, 0xfa, 0x1a, 0xb7, 0xb5, 0xd4, 0x7e, 0xc3, 0xec, 0xe4, 0x9f, 0xdc, 0x86, 0xd3, 0xfe, 0xcc,
0xd7, 0xdd, 0x7c, 0x05, 0x00, 0x00, 0xff, 0xff, 0xe3, 0xf6, 0xdf, 0xb9, 0xbe, 0x01, 0x00, 0x00,
var file_yandex_cloud_ai_vision_v1_image_copy_search_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_ai_vision_v1_image_copy_search_proto_goTypes = []interface{}{
(*ImageCopySearchAnnotation)(nil), // 0: yandex.cloud.ai.vision.v1.ImageCopySearchAnnotation
(*CopyMatch)(nil), // 1: yandex.cloud.ai.vision.v1.CopyMatch
}
var file_yandex_cloud_ai_vision_v1_image_copy_search_proto_depIdxs = []int32{
1, // 0: yandex.cloud.ai.vision.v1.ImageCopySearchAnnotation.top_results:type_name -> yandex.cloud.ai.vision.v1.CopyMatch
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_yandex_cloud_ai_vision_v1_image_copy_search_proto_init() }
func file_yandex_cloud_ai_vision_v1_image_copy_search_proto_init() {
if File_yandex_cloud_ai_vision_v1_image_copy_search_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_ai_vision_v1_image_copy_search_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ImageCopySearchAnnotation); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_ai_vision_v1_image_copy_search_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CopyMatch); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_ai_vision_v1_image_copy_search_proto_goTypes,
DependencyIndexes: file_yandex_cloud_ai_vision_v1_image_copy_search_proto_depIdxs,
MessageInfos: file_yandex_cloud_ai_vision_v1_image_copy_search_proto_msgTypes,
}.Build()
File_yandex_cloud_ai_vision_v1_image_copy_search_proto = out.File
file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDesc = nil
file_yandex_cloud_ai_vision_v1_image_copy_search_proto_goTypes = nil
file_yandex_cloud_ai_vision_v1_image_copy_search_proto_depIdxs = nil
}

View File

@ -1,136 +1,232 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/ai/vision/v1/primitives.proto
package vision
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type Polygon struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The bounding polygon vertices.
Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
}
func (m *Polygon) Reset() { *m = Polygon{} }
func (m *Polygon) String() string { return proto.CompactTextString(m) }
func (*Polygon) ProtoMessage() {}
func (x *Polygon) Reset() {
*x = Polygon{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_ai_vision_v1_primitives_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Polygon) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Polygon) ProtoMessage() {}
func (x *Polygon) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_ai_vision_v1_primitives_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Polygon.ProtoReflect.Descriptor instead.
func (*Polygon) Descriptor() ([]byte, []int) {
return fileDescriptor_9f9f7b59bd69f434, []int{0}
return file_yandex_cloud_ai_vision_v1_primitives_proto_rawDescGZIP(), []int{0}
}
func (m *Polygon) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Polygon.Unmarshal(m, b)
}
func (m *Polygon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Polygon.Marshal(b, m, deterministic)
}
func (m *Polygon) XXX_Merge(src proto.Message) {
xxx_messageInfo_Polygon.Merge(m, src)
}
func (m *Polygon) XXX_Size() int {
return xxx_messageInfo_Polygon.Size(m)
}
func (m *Polygon) XXX_DiscardUnknown() {
xxx_messageInfo_Polygon.DiscardUnknown(m)
}
var xxx_messageInfo_Polygon proto.InternalMessageInfo
func (m *Polygon) GetVertices() []*Vertex {
if m != nil {
return m.Vertices
func (x *Polygon) GetVertices() []*Vertex {
if x != nil {
return x.Vertices
}
return nil
}
type Vertex struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// X coordinate in pixels.
X int64 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
// Y coordinate in pixels.
Y int64 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Y int64 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
}
func (m *Vertex) Reset() { *m = Vertex{} }
func (m *Vertex) String() string { return proto.CompactTextString(m) }
func (*Vertex) ProtoMessage() {}
func (x *Vertex) Reset() {
*x = Vertex{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_ai_vision_v1_primitives_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Vertex) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Vertex) ProtoMessage() {}
func (x *Vertex) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_ai_vision_v1_primitives_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Vertex.ProtoReflect.Descriptor instead.
func (*Vertex) Descriptor() ([]byte, []int) {
return fileDescriptor_9f9f7b59bd69f434, []int{1}
return file_yandex_cloud_ai_vision_v1_primitives_proto_rawDescGZIP(), []int{1}
}
func (m *Vertex) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Vertex.Unmarshal(m, b)
}
func (m *Vertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Vertex.Marshal(b, m, deterministic)
}
func (m *Vertex) XXX_Merge(src proto.Message) {
xxx_messageInfo_Vertex.Merge(m, src)
}
func (m *Vertex) XXX_Size() int {
return xxx_messageInfo_Vertex.Size(m)
}
func (m *Vertex) XXX_DiscardUnknown() {
xxx_messageInfo_Vertex.DiscardUnknown(m)
}
var xxx_messageInfo_Vertex proto.InternalMessageInfo
func (m *Vertex) GetX() int64 {
if m != nil {
return m.X
func (x *Vertex) GetX() int64 {
if x != nil {
return x.X
}
return 0
}
func (m *Vertex) GetY() int64 {
if m != nil {
return m.Y
func (x *Vertex) GetY() int64 {
if x != nil {
return x.Y
}
return 0
}
func init() {
proto.RegisterType((*Polygon)(nil), "yandex.cloud.ai.vision.v1.Polygon")
proto.RegisterType((*Vertex)(nil), "yandex.cloud.ai.vision.v1.Vertex")
var File_yandex_cloud_ai_vision_v1_primitives_proto protoreflect.FileDescriptor
var file_yandex_cloud_ai_vision_v1_primitives_proto_rawDesc = []byte{
0x0a, 0x2a, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
0x69, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x69, 0x6d,
0x69, 0x74, 0x69, 0x76, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x79, 0x61,
0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x2e, 0x76, 0x69,
0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x22, 0x48, 0x0a, 0x07, 0x50, 0x6f, 0x6c, 0x79, 0x67,
0x6f, 0x6e, 0x12, 0x3d, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31,
0x2e, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x52, 0x08, 0x76, 0x65, 0x72, 0x74, 0x69, 0x63, 0x65,
0x73, 0x22, 0x24, 0x0a, 0x06, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x78,
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02,
0x20, 0x01, 0x28, 0x03, 0x52, 0x01, 0x79, 0x42, 0x65, 0x0a, 0x1d, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x69, 0x2e, 0x76,
0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61,
0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x2f, 0x76, 0x69,
0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/ai/vision/v1/primitives.proto", fileDescriptor_9f9f7b59bd69f434)
var (
file_yandex_cloud_ai_vision_v1_primitives_proto_rawDescOnce sync.Once
file_yandex_cloud_ai_vision_v1_primitives_proto_rawDescData = file_yandex_cloud_ai_vision_v1_primitives_proto_rawDesc
)
func file_yandex_cloud_ai_vision_v1_primitives_proto_rawDescGZIP() []byte {
file_yandex_cloud_ai_vision_v1_primitives_proto_rawDescOnce.Do(func() {
file_yandex_cloud_ai_vision_v1_primitives_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_ai_vision_v1_primitives_proto_rawDescData)
})
return file_yandex_cloud_ai_vision_v1_primitives_proto_rawDescData
}
var fileDescriptor_9f9f7b59bd69f434 = []byte{
// 203 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xaa, 0x4c, 0xcc, 0x4b,
0x49, 0xad, 0xd0, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0x4f, 0xcc, 0xd4, 0x2f, 0xcb, 0x2c, 0xce,
0xcc, 0xcf, 0xd3, 0x2f, 0x33, 0xd4, 0x2f, 0x28, 0xca, 0xcc, 0xcd, 0x2c, 0xc9, 0x2c, 0x4b, 0x2d,
0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x84, 0xa8, 0xd5, 0x03, 0xab, 0xd5, 0x4b, 0xcc,
0xd4, 0x83, 0xa8, 0xd5, 0x2b, 0x33, 0x54, 0xf2, 0xe0, 0x62, 0x0f, 0xc8, 0xcf, 0xa9, 0x4c, 0xcf,
0xcf, 0x13, 0xb2, 0xe5, 0xe2, 0x28, 0x4b, 0x2d, 0x2a, 0xc9, 0x4c, 0x4e, 0x2d, 0x96, 0x60, 0x54,
0x60, 0xd6, 0xe0, 0x36, 0x52, 0xd4, 0xc3, 0xa9, 0x51, 0x2f, 0x2c, 0xb5, 0xa8, 0x24, 0xb5, 0x22,
0x08, 0xae, 0x45, 0x49, 0x85, 0x8b, 0x0d, 0x22, 0x26, 0xc4, 0xc3, 0xc5, 0x58, 0x21, 0xc1, 0xa8,
0xc0, 0xa8, 0xc1, 0x1c, 0xc4, 0x08, 0xe6, 0x55, 0x4a, 0x30, 0x41, 0x78, 0x95, 0x4e, 0xa9, 0x5c,
0xb2, 0xa8, 0x66, 0x16, 0x64, 0xa2, 0x98, 0x1b, 0xe5, 0x92, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4,
0x97, 0x9c, 0x9f, 0xab, 0x0f, 0x51, 0xa9, 0x0b, 0xf1, 0x62, 0x7a, 0xbe, 0x6e, 0x7a, 0x6a, 0x1e,
0xd8, 0x43, 0xfa, 0x38, 0xfd, 0x6e, 0x0d, 0x61, 0x25, 0xb1, 0x81, 0xd5, 0x19, 0x03, 0x02, 0x00,
0x00, 0xff, 0xff, 0x4e, 0xdd, 0xc9, 0x53, 0x26, 0x01, 0x00, 0x00,
var file_yandex_cloud_ai_vision_v1_primitives_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_ai_vision_v1_primitives_proto_goTypes = []interface{}{
(*Polygon)(nil), // 0: yandex.cloud.ai.vision.v1.Polygon
(*Vertex)(nil), // 1: yandex.cloud.ai.vision.v1.Vertex
}
var file_yandex_cloud_ai_vision_v1_primitives_proto_depIdxs = []int32{
1, // 0: yandex.cloud.ai.vision.v1.Polygon.vertices:type_name -> yandex.cloud.ai.vision.v1.Vertex
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_yandex_cloud_ai_vision_v1_primitives_proto_init() }
func file_yandex_cloud_ai_vision_v1_primitives_proto_init() {
if File_yandex_cloud_ai_vision_v1_primitives_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_ai_vision_v1_primitives_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Polygon); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_ai_vision_v1_primitives_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Vertex); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_ai_vision_v1_primitives_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_ai_vision_v1_primitives_proto_goTypes,
DependencyIndexes: file_yandex_cloud_ai_vision_v1_primitives_proto_depIdxs,
MessageInfos: file_yandex_cloud_ai_vision_v1_primitives_proto_msgTypes,
}.Build()
File_yandex_cloud_ai_vision_v1_primitives_proto = out.File
file_yandex_cloud_ai_vision_v1_primitives_proto_rawDesc = nil
file_yandex_cloud_ai_vision_v1_primitives_proto_goTypes = nil
file_yandex_cloud_ai_vision_v1_primitives_proto_depIdxs = nil
}

View File

@ -1,68 +1,85 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/ai/vision/v1/text_detection.proto
package vision
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type TextAnnotation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Pages of the recognized file.
//
// For JPEG and PNG files contains only 1 page.
Pages []*Page `protobuf:"bytes,1,rep,name=pages,proto3" json:"pages,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Pages []*Page `protobuf:"bytes,1,rep,name=pages,proto3" json:"pages,omitempty"`
}
func (m *TextAnnotation) Reset() { *m = TextAnnotation{} }
func (m *TextAnnotation) String() string { return proto.CompactTextString(m) }
func (*TextAnnotation) ProtoMessage() {}
func (x *TextAnnotation) Reset() {
*x = TextAnnotation{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TextAnnotation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TextAnnotation) ProtoMessage() {}
func (x *TextAnnotation) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TextAnnotation.ProtoReflect.Descriptor instead.
func (*TextAnnotation) Descriptor() ([]byte, []int) {
return fileDescriptor_a4d5be2606a8f8f0, []int{0}
return file_yandex_cloud_ai_vision_v1_text_detection_proto_rawDescGZIP(), []int{0}
}
func (m *TextAnnotation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextAnnotation.Unmarshal(m, b)
}
func (m *TextAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextAnnotation.Marshal(b, m, deterministic)
}
func (m *TextAnnotation) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextAnnotation.Merge(m, src)
}
func (m *TextAnnotation) XXX_Size() int {
return xxx_messageInfo_TextAnnotation.Size(m)
}
func (m *TextAnnotation) XXX_DiscardUnknown() {
xxx_messageInfo_TextAnnotation.DiscardUnknown(m)
}
var xxx_messageInfo_TextAnnotation proto.InternalMessageInfo
func (m *TextAnnotation) GetPages() []*Page {
if m != nil {
return m.Pages
func (x *TextAnnotation) GetPages() []*Page {
if x != nil {
return x.Pages
}
return nil
}
type Page struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Page width in pixels.
Width int64 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"`
// Page height in pixels.
@ -70,222 +87,254 @@ type Page struct {
// Recognized text blocks in this page.
Blocks []*Block `protobuf:"bytes,3,rep,name=blocks,proto3" json:"blocks,omitempty"`
// Recognized entities
Entities []*Entity `protobuf:"bytes,4,rep,name=entities,proto3" json:"entities,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Entities []*Entity `protobuf:"bytes,4,rep,name=entities,proto3" json:"entities,omitempty"`
}
func (m *Page) Reset() { *m = Page{} }
func (m *Page) String() string { return proto.CompactTextString(m) }
func (*Page) ProtoMessage() {}
func (x *Page) Reset() {
*x = Page{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Page) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Page) ProtoMessage() {}
func (x *Page) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Page.ProtoReflect.Descriptor instead.
func (*Page) Descriptor() ([]byte, []int) {
return fileDescriptor_a4d5be2606a8f8f0, []int{1}
return file_yandex_cloud_ai_vision_v1_text_detection_proto_rawDescGZIP(), []int{1}
}
func (m *Page) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Page.Unmarshal(m, b)
}
func (m *Page) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Page.Marshal(b, m, deterministic)
}
func (m *Page) XXX_Merge(src proto.Message) {
xxx_messageInfo_Page.Merge(m, 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) GetWidth() int64 {
if m != nil {
return m.Width
func (x *Page) GetWidth() int64 {
if x != nil {
return x.Width
}
return 0
}
func (m *Page) GetHeight() int64 {
if m != nil {
return m.Height
func (x *Page) GetHeight() int64 {
if x != nil {
return x.Height
}
return 0
}
func (m *Page) GetBlocks() []*Block {
if m != nil {
return m.Blocks
func (x *Page) GetBlocks() []*Block {
if x != nil {
return x.Blocks
}
return nil
}
func (m *Page) GetEntities() []*Entity {
if m != nil {
return m.Entities
func (x *Page) GetEntities() []*Entity {
if x != nil {
return x.Entities
}
return nil
}
type Entity struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Entity name
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Recognized entity text
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
}
func (m *Entity) Reset() { *m = Entity{} }
func (m *Entity) String() string { return proto.CompactTextString(m) }
func (*Entity) ProtoMessage() {}
func (x *Entity) Reset() {
*x = Entity{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Entity) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Entity) ProtoMessage() {}
func (x *Entity) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Entity.ProtoReflect.Descriptor instead.
func (*Entity) Descriptor() ([]byte, []int) {
return fileDescriptor_a4d5be2606a8f8f0, []int{2}
return file_yandex_cloud_ai_vision_v1_text_detection_proto_rawDescGZIP(), []int{2}
}
func (m *Entity) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Entity.Unmarshal(m, b)
}
func (m *Entity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Entity.Marshal(b, m, deterministic)
}
func (m *Entity) XXX_Merge(src proto.Message) {
xxx_messageInfo_Entity.Merge(m, src)
}
func (m *Entity) XXX_Size() int {
return xxx_messageInfo_Entity.Size(m)
}
func (m *Entity) XXX_DiscardUnknown() {
xxx_messageInfo_Entity.DiscardUnknown(m)
}
var xxx_messageInfo_Entity proto.InternalMessageInfo
func (m *Entity) GetName() string {
if m != nil {
return m.Name
func (x *Entity) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *Entity) GetText() string {
if m != nil {
return m.Text
func (x *Entity) GetText() string {
if x != nil {
return x.Text
}
return ""
}
type Block struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Area on the page where the text block is located.
BoundingBox *Polygon `protobuf:"bytes,1,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
// Recognized lines in this block.
Lines []*Line `protobuf:"bytes,2,rep,name=lines,proto3" json:"lines,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Lines []*Line `protobuf:"bytes,2,rep,name=lines,proto3" json:"lines,omitempty"`
}
func (m *Block) Reset() { *m = Block{} }
func (m *Block) String() string { return proto.CompactTextString(m) }
func (*Block) ProtoMessage() {}
func (x *Block) Reset() {
*x = Block{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Block) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Block) ProtoMessage() {}
func (x *Block) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Block.ProtoReflect.Descriptor instead.
func (*Block) Descriptor() ([]byte, []int) {
return fileDescriptor_a4d5be2606a8f8f0, []int{3}
return file_yandex_cloud_ai_vision_v1_text_detection_proto_rawDescGZIP(), []int{3}
}
func (m *Block) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Block.Unmarshal(m, b)
}
func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Block.Marshal(b, m, deterministic)
}
func (m *Block) XXX_Merge(src proto.Message) {
xxx_messageInfo_Block.Merge(m, src)
}
func (m *Block) XXX_Size() int {
return xxx_messageInfo_Block.Size(m)
}
func (m *Block) XXX_DiscardUnknown() {
xxx_messageInfo_Block.DiscardUnknown(m)
}
var xxx_messageInfo_Block proto.InternalMessageInfo
func (m *Block) GetBoundingBox() *Polygon {
if m != nil {
return m.BoundingBox
func (x *Block) GetBoundingBox() *Polygon {
if x != nil {
return x.BoundingBox
}
return nil
}
func (m *Block) GetLines() []*Line {
if m != nil {
return m.Lines
func (x *Block) GetLines() []*Line {
if x != nil {
return x.Lines
}
return nil
}
type Line struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Area on the page where the line is located.
BoundingBox *Polygon `protobuf:"bytes,1,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
// Recognized words in this line.
Words []*Word `protobuf:"bytes,2,rep,name=words,proto3" json:"words,omitempty"`
// Confidence of the OCR results for the line. Range [0, 1].
Confidence float64 `protobuf:"fixed64,3,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Confidence float64 `protobuf:"fixed64,3,opt,name=confidence,proto3" json:"confidence,omitempty"`
}
func (m *Line) Reset() { *m = Line{} }
func (m *Line) String() string { return proto.CompactTextString(m) }
func (*Line) ProtoMessage() {}
func (x *Line) Reset() {
*x = Line{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Line) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Line) ProtoMessage() {}
func (x *Line) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Line.ProtoReflect.Descriptor instead.
func (*Line) Descriptor() ([]byte, []int) {
return fileDescriptor_a4d5be2606a8f8f0, []int{4}
return file_yandex_cloud_ai_vision_v1_text_detection_proto_rawDescGZIP(), []int{4}
}
func (m *Line) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Line.Unmarshal(m, b)
}
func (m *Line) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Line.Marshal(b, m, deterministic)
}
func (m *Line) XXX_Merge(src proto.Message) {
xxx_messageInfo_Line.Merge(m, src)
}
func (m *Line) XXX_Size() int {
return xxx_messageInfo_Line.Size(m)
}
func (m *Line) XXX_DiscardUnknown() {
xxx_messageInfo_Line.DiscardUnknown(m)
}
var xxx_messageInfo_Line proto.InternalMessageInfo
func (m *Line) GetBoundingBox() *Polygon {
if m != nil {
return m.BoundingBox
func (x *Line) GetBoundingBox() *Polygon {
if x != nil {
return x.BoundingBox
}
return nil
}
func (m *Line) GetWords() []*Word {
if m != nil {
return m.Words
func (x *Line) GetWords() []*Word {
if x != nil {
return x.Words
}
return nil
}
func (m *Line) GetConfidence() float64 {
if m != nil {
return m.Confidence
func (x *Line) GetConfidence() float64 {
if x != nil {
return x.Confidence
}
return 0
}
type Word struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Area on the page where the word is located.
BoundingBox *Polygon `protobuf:"bytes,1,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
// Recognized word value.
@ -295,166 +344,359 @@ type Word struct {
// A list of detected languages together with confidence.
Languages []*Word_DetectedLanguage `protobuf:"bytes,4,rep,name=languages,proto3" json:"languages,omitempty"`
// Id of recognized word in entities array
EntityIndex int64 `protobuf:"varint,5,opt,name=entity_index,json=entityIndex,proto3" json:"entity_index,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
EntityIndex int64 `protobuf:"varint,5,opt,name=entity_index,json=entityIndex,proto3" json:"entity_index,omitempty"`
}
func (m *Word) Reset() { *m = Word{} }
func (m *Word) String() string { return proto.CompactTextString(m) }
func (*Word) ProtoMessage() {}
func (x *Word) Reset() {
*x = Word{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Word) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Word) ProtoMessage() {}
func (x *Word) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Word.ProtoReflect.Descriptor instead.
func (*Word) Descriptor() ([]byte, []int) {
return fileDescriptor_a4d5be2606a8f8f0, []int{5}
return file_yandex_cloud_ai_vision_v1_text_detection_proto_rawDescGZIP(), []int{5}
}
func (m *Word) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Word.Unmarshal(m, b)
}
func (m *Word) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Word.Marshal(b, m, deterministic)
}
func (m *Word) XXX_Merge(src proto.Message) {
xxx_messageInfo_Word.Merge(m, src)
}
func (m *Word) XXX_Size() int {
return xxx_messageInfo_Word.Size(m)
}
func (m *Word) XXX_DiscardUnknown() {
xxx_messageInfo_Word.DiscardUnknown(m)
}
var xxx_messageInfo_Word proto.InternalMessageInfo
func (m *Word) GetBoundingBox() *Polygon {
if m != nil {
return m.BoundingBox
func (x *Word) GetBoundingBox() *Polygon {
if x != nil {
return x.BoundingBox
}
return nil
}
func (m *Word) GetText() string {
if m != nil {
return m.Text
func (x *Word) GetText() string {
if x != nil {
return x.Text
}
return ""
}
func (m *Word) GetConfidence() float64 {
if m != nil {
return m.Confidence
func (x *Word) GetConfidence() float64 {
if x != nil {
return x.Confidence
}
return 0
}
func (m *Word) GetLanguages() []*Word_DetectedLanguage {
if m != nil {
return m.Languages
func (x *Word) GetLanguages() []*Word_DetectedLanguage {
if x != nil {
return x.Languages
}
return nil
}
func (m *Word) GetEntityIndex() int64 {
if m != nil {
return m.EntityIndex
func (x *Word) GetEntityIndex() int64 {
if x != nil {
return x.EntityIndex
}
return 0
}
type Word_DetectedLanguage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Detected language code.
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// Confidence of detected language. Range [0, 1].
Confidence float64 `protobuf:"fixed64,2,opt,name=confidence,proto3" json:"confidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Confidence float64 `protobuf:"fixed64,2,opt,name=confidence,proto3" json:"confidence,omitempty"`
}
func (m *Word_DetectedLanguage) Reset() { *m = Word_DetectedLanguage{} }
func (m *Word_DetectedLanguage) String() string { return proto.CompactTextString(m) }
func (*Word_DetectedLanguage) ProtoMessage() {}
func (x *Word_DetectedLanguage) Reset() {
*x = Word_DetectedLanguage{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Word_DetectedLanguage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Word_DetectedLanguage) ProtoMessage() {}
func (x *Word_DetectedLanguage) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Word_DetectedLanguage.ProtoReflect.Descriptor instead.
func (*Word_DetectedLanguage) Descriptor() ([]byte, []int) {
return fileDescriptor_a4d5be2606a8f8f0, []int{5, 0}
return file_yandex_cloud_ai_vision_v1_text_detection_proto_rawDescGZIP(), []int{5, 0}
}
func (m *Word_DetectedLanguage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Word_DetectedLanguage.Unmarshal(m, b)
}
func (m *Word_DetectedLanguage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Word_DetectedLanguage.Marshal(b, m, deterministic)
}
func (m *Word_DetectedLanguage) XXX_Merge(src proto.Message) {
xxx_messageInfo_Word_DetectedLanguage.Merge(m, src)
}
func (m *Word_DetectedLanguage) XXX_Size() int {
return xxx_messageInfo_Word_DetectedLanguage.Size(m)
}
func (m *Word_DetectedLanguage) XXX_DiscardUnknown() {
xxx_messageInfo_Word_DetectedLanguage.DiscardUnknown(m)
}
var xxx_messageInfo_Word_DetectedLanguage proto.InternalMessageInfo
func (m *Word_DetectedLanguage) GetLanguageCode() string {
if m != nil {
return m.LanguageCode
func (x *Word_DetectedLanguage) GetLanguageCode() string {
if x != nil {
return x.LanguageCode
}
return ""
}
func (m *Word_DetectedLanguage) GetConfidence() float64 {
if m != nil {
return m.Confidence
func (x *Word_DetectedLanguage) GetConfidence() float64 {
if x != nil {
return x.Confidence
}
return 0
}
func init() {
proto.RegisterType((*TextAnnotation)(nil), "yandex.cloud.ai.vision.v1.TextAnnotation")
proto.RegisterType((*Page)(nil), "yandex.cloud.ai.vision.v1.Page")
proto.RegisterType((*Entity)(nil), "yandex.cloud.ai.vision.v1.Entity")
proto.RegisterType((*Block)(nil), "yandex.cloud.ai.vision.v1.Block")
proto.RegisterType((*Line)(nil), "yandex.cloud.ai.vision.v1.Line")
proto.RegisterType((*Word)(nil), "yandex.cloud.ai.vision.v1.Word")
proto.RegisterType((*Word_DetectedLanguage)(nil), "yandex.cloud.ai.vision.v1.Word.DetectedLanguage")
var File_yandex_cloud_ai_vision_v1_text_detection_proto protoreflect.FileDescriptor
var file_yandex_cloud_ai_vision_v1_text_detection_proto_rawDesc = []byte{
0x0a, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
0x69, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x65, 0x78, 0x74,
0x5f, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x19, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61,
0x69, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x1a, 0x2a, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x2f, 0x76, 0x69, 0x73,
0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65,
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x47, 0x0a, 0x0e, 0x54, 0x65, 0x78, 0x74, 0x41,
0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x05, 0x70, 0x61, 0x67,
0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f,
0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x05, 0x70, 0x61, 0x67, 0x65, 0x73,
0x22, 0xad, 0x01, 0x0a, 0x04, 0x50, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x69, 0x64,
0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x12,
0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x38, 0x0a, 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e,
0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x73, 0x12, 0x3d, 0x0a, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f,
0x75, 0x64, 0x2e, 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e,
0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73,
0x22, 0x30, 0x0a, 0x06, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12,
0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65,
0x78, 0x74, 0x22, 0x85, 0x01, 0x0a, 0x05, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x45, 0x0a, 0x0c,
0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x6f, 0x78, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x22, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2e, 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50,
0x6f, 0x6c, 0x79, 0x67, 0x6f, 0x6e, 0x52, 0x0b, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67,
0x42, 0x6f, 0x78, 0x12, 0x35, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2e, 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c,
0x69, 0x6e, 0x65, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x22, 0xa4, 0x01, 0x0a, 0x04, 0x4c,
0x69, 0x6e, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f,
0x62, 0x6f, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x69,
0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x79, 0x67, 0x6f, 0x6e, 0x52, 0x0b, 0x62,
0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x78, 0x12, 0x35, 0x0a, 0x05, 0x77, 0x6f,
0x72, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x69,
0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x64, 0x52, 0x05, 0x77, 0x6f, 0x72, 0x64,
0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18,
0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63,
0x65, 0x22, 0xcd, 0x02, 0x0a, 0x04, 0x57, 0x6f, 0x72, 0x64, 0x12, 0x45, 0x0a, 0x0c, 0x62, 0x6f,
0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x6f, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x22, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c,
0x79, 0x67, 0x6f, 0x6e, 0x52, 0x0b, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6f,
0x78, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65,
0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69,
0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x4e, 0x0a, 0x09, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67,
0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f,
0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x64, 0x2e, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74,
0x65, 0x64, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x52, 0x09, 0x6c, 0x61, 0x6e, 0x67,
0x75, 0x61, 0x67, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f,
0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x65, 0x6e, 0x74,
0x69, 0x74, 0x79, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x1a, 0x57, 0x0a, 0x10, 0x44, 0x65, 0x74, 0x65,
0x63, 0x74, 0x65, 0x64, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x0d,
0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64,
0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63,
0x65, 0x42, 0x65, 0x0a, 0x1d, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e,
0x76, 0x31, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79,
0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67,
0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63,
0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76,
0x31, 0x3b, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/ai/vision/v1/text_detection.proto", fileDescriptor_a4d5be2606a8f8f0)
var (
file_yandex_cloud_ai_vision_v1_text_detection_proto_rawDescOnce sync.Once
file_yandex_cloud_ai_vision_v1_text_detection_proto_rawDescData = file_yandex_cloud_ai_vision_v1_text_detection_proto_rawDesc
)
func file_yandex_cloud_ai_vision_v1_text_detection_proto_rawDescGZIP() []byte {
file_yandex_cloud_ai_vision_v1_text_detection_proto_rawDescOnce.Do(func() {
file_yandex_cloud_ai_vision_v1_text_detection_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_ai_vision_v1_text_detection_proto_rawDescData)
})
return file_yandex_cloud_ai_vision_v1_text_detection_proto_rawDescData
}
var fileDescriptor_a4d5be2606a8f8f0 = []byte{
// 489 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xd1, 0x6a, 0x13, 0x41,
0x14, 0x65, 0x93, 0x4d, 0x30, 0x37, 0x51, 0x64, 0x10, 0x59, 0x0b, 0x6a, 0xba, 0xbe, 0x04, 0xa1,
0xb3, 0x6d, 0x45, 0x10, 0xc4, 0x07, 0x63, 0x8b, 0x08, 0x45, 0x64, 0x10, 0x0a, 0xbe, 0x84, 0xdd,
0x9d, 0xeb, 0x66, 0x70, 0x33, 0x37, 0x64, 0x27, 0xe9, 0xe6, 0x03, 0xfc, 0x13, 0x5f, 0xfd, 0x14,
0xff, 0x49, 0x66, 0x26, 0x51, 0x1b, 0x4c, 0xd2, 0x87, 0xbe, 0xcd, 0x3d, 0x9c, 0x73, 0xe6, 0xdc,
0xbb, 0x77, 0x07, 0xf8, 0x32, 0xd5, 0x12, 0xeb, 0x24, 0x2f, 0x69, 0x2e, 0x93, 0x54, 0x25, 0x0b,
0x55, 0x29, 0xd2, 0xc9, 0xe2, 0x24, 0x31, 0x58, 0x9b, 0x91, 0x44, 0x83, 0xb9, 0x51, 0xa4, 0xf9,
0x74, 0x46, 0x86, 0xd8, 0x23, 0xcf, 0xe7, 0x8e, 0xcf, 0x53, 0xc5, 0x3d, 0x9f, 0x2f, 0x4e, 0x0e,
0x9e, 0x6f, 0xb7, 0x9a, 0xce, 0xd4, 0x44, 0x19, 0xb5, 0xc0, 0xca, 0xdb, 0xc4, 0xef, 0xe1, 0xde,
0x67, 0xac, 0xcd, 0x5b, 0xad, 0xc9, 0xa4, 0xd6, 0x9e, 0xbd, 0x84, 0xd6, 0x34, 0x2d, 0xb0, 0x8a,
0x82, 0x7e, 0x73, 0xd0, 0x3d, 0x7d, 0xca, 0xb7, 0x5e, 0xc4, 0x3f, 0xa5, 0x05, 0x0a, 0xcf, 0x8e,
0x7f, 0x06, 0x10, 0xda, 0x9a, 0x3d, 0x80, 0xd6, 0x95, 0x92, 0x66, 0x1c, 0x05, 0xfd, 0x60, 0xd0,
0x14, 0xbe, 0x60, 0x0f, 0xa1, 0x3d, 0x46, 0x55, 0x8c, 0x4d, 0xd4, 0x70, 0xf0, 0xaa, 0x62, 0xaf,
0xa0, 0x9d, 0x95, 0x94, 0x7f, 0xab, 0xa2, 0xa6, 0xbb, 0xae, 0xbf, 0xe3, 0xba, 0xa1, 0x25, 0x8a,
0x15, 0x9f, 0xbd, 0x81, 0x3b, 0xa8, 0x8d, 0x32, 0x0a, 0xab, 0x28, 0x74, 0xda, 0xc3, 0x1d, 0xda,
0x73, 0x4b, 0x5d, 0x8a, 0x3f, 0x92, 0xf8, 0x18, 0xda, 0x1e, 0x63, 0x0c, 0x42, 0x9d, 0x4e, 0xd0,
0xe5, 0xed, 0x08, 0x77, 0xb6, 0x98, 0x9d, 0xba, 0x0b, 0xdb, 0x11, 0xee, 0x1c, 0x7f, 0x0f, 0xa0,
0xe5, 0x22, 0xb0, 0x73, 0xe8, 0x65, 0x34, 0xd7, 0x52, 0xe9, 0x62, 0x94, 0x51, 0xed, 0x94, 0xdd,
0xd3, 0x78, 0xd7, 0xa4, 0xa8, 0x5c, 0x16, 0xa4, 0x45, 0x77, 0xad, 0x1b, 0x52, 0x6d, 0x27, 0x5d,
0x2a, 0x8d, 0x55, 0xd4, 0xd8, 0x3b, 0xe9, 0x0b, 0xa5, 0x51, 0x78, 0x76, 0xfc, 0x23, 0x80, 0xd0,
0xd6, 0xb7, 0x18, 0xe3, 0x8a, 0x66, 0xf2, 0x26, 0x31, 0x2e, 0x69, 0x26, 0x85, 0x67, 0xb3, 0x27,
0x00, 0x39, 0xe9, 0xaf, 0x4a, 0xa2, 0xce, 0x31, 0x6a, 0xf6, 0x83, 0x41, 0x20, 0xfe, 0x41, 0xe2,
0x5f, 0x0d, 0x08, 0x2d, 0xff, 0xb6, 0x62, 0xfe, 0xe7, 0x93, 0xec, 0xcb, 0xc0, 0x3e, 0x42, 0xa7,
0x4c, 0x75, 0x31, 0x77, 0xfb, 0xec, 0x97, 0xe4, 0x78, 0x4f, 0x7b, 0xfc, 0xcc, 0xfd, 0x68, 0x28,
0x2f, 0x56, 0x42, 0xf1, 0xd7, 0x82, 0x1d, 0x42, 0xcf, 0x2d, 0xd0, 0x72, 0xa4, 0xac, 0x47, 0xd4,
0x72, 0xbb, 0xdc, 0xf5, 0xd8, 0x07, 0x0b, 0x1d, 0x5c, 0xc2, 0xfd, 0x4d, 0x07, 0xf6, 0x0c, 0xee,
0xae, 0x3d, 0x46, 0x39, 0xc9, 0xf5, 0xaa, 0xf5, 0xd6, 0xe0, 0x3b, 0x92, 0xb8, 0xd1, 0x4b, 0x63,
0xb3, 0x97, 0x21, 0xc2, 0xe3, 0xeb, 0xc9, 0xa7, 0xea, 0x5a, 0xfa, 0x2f, 0x67, 0x85, 0x32, 0xe3,
0x79, 0xc6, 0x73, 0x9a, 0x24, 0x9e, 0x79, 0xe4, 0x5f, 0x80, 0x82, 0x8e, 0x0a, 0xd4, 0xee, 0x7f,
0x4f, 0xb6, 0x3e, 0x0d, 0xaf, 0xfd, 0x29, 0x6b, 0x3b, 0xde, 0x8b, 0xdf, 0x01, 0x00, 0x00, 0xff,
0xff, 0x00, 0xe2, 0x5b, 0x71, 0x90, 0x04, 0x00, 0x00,
var file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_yandex_cloud_ai_vision_v1_text_detection_proto_goTypes = []interface{}{
(*TextAnnotation)(nil), // 0: yandex.cloud.ai.vision.v1.TextAnnotation
(*Page)(nil), // 1: yandex.cloud.ai.vision.v1.Page
(*Entity)(nil), // 2: yandex.cloud.ai.vision.v1.Entity
(*Block)(nil), // 3: yandex.cloud.ai.vision.v1.Block
(*Line)(nil), // 4: yandex.cloud.ai.vision.v1.Line
(*Word)(nil), // 5: yandex.cloud.ai.vision.v1.Word
(*Word_DetectedLanguage)(nil), // 6: yandex.cloud.ai.vision.v1.Word.DetectedLanguage
(*Polygon)(nil), // 7: yandex.cloud.ai.vision.v1.Polygon
}
var file_yandex_cloud_ai_vision_v1_text_detection_proto_depIdxs = []int32{
1, // 0: yandex.cloud.ai.vision.v1.TextAnnotation.pages:type_name -> yandex.cloud.ai.vision.v1.Page
3, // 1: yandex.cloud.ai.vision.v1.Page.blocks:type_name -> yandex.cloud.ai.vision.v1.Block
2, // 2: yandex.cloud.ai.vision.v1.Page.entities:type_name -> yandex.cloud.ai.vision.v1.Entity
7, // 3: yandex.cloud.ai.vision.v1.Block.bounding_box:type_name -> yandex.cloud.ai.vision.v1.Polygon
4, // 4: yandex.cloud.ai.vision.v1.Block.lines:type_name -> yandex.cloud.ai.vision.v1.Line
7, // 5: yandex.cloud.ai.vision.v1.Line.bounding_box:type_name -> yandex.cloud.ai.vision.v1.Polygon
5, // 6: yandex.cloud.ai.vision.v1.Line.words:type_name -> yandex.cloud.ai.vision.v1.Word
7, // 7: yandex.cloud.ai.vision.v1.Word.bounding_box:type_name -> yandex.cloud.ai.vision.v1.Polygon
6, // 8: yandex.cloud.ai.vision.v1.Word.languages:type_name -> yandex.cloud.ai.vision.v1.Word.DetectedLanguage
9, // [9:9] is the sub-list for method output_type
9, // [9:9] is the sub-list for method input_type
9, // [9:9] is the sub-list for extension type_name
9, // [9:9] is the sub-list for extension extendee
0, // [0:9] is the sub-list for field type_name
}
func init() { file_yandex_cloud_ai_vision_v1_text_detection_proto_init() }
func file_yandex_cloud_ai_vision_v1_text_detection_proto_init() {
if File_yandex_cloud_ai_vision_v1_text_detection_proto != nil {
return
}
file_yandex_cloud_ai_vision_v1_primitives_proto_init()
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TextAnnotation); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Page); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Entity); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Block); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Line); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Word); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Word_DetectedLanguage); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_ai_vision_v1_text_detection_proto_rawDesc,
NumEnums: 0,
NumMessages: 7,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_ai_vision_v1_text_detection_proto_goTypes,
DependencyIndexes: file_yandex_cloud_ai_vision_v1_text_detection_proto_depIdxs,
MessageInfos: file_yandex_cloud_ai_vision_v1_text_detection_proto_msgTypes,
}.Build()
File_yandex_cloud_ai_vision_v1_text_detection_proto = out.File
file_yandex_cloud_ai_vision_v1_text_detection_proto_rawDesc = nil
file_yandex_cloud_ai_vision_v1_text_detection_proto_goTypes = nil
file_yandex_cloud_ai_vision_v1_text_detection_proto_depIdxs = nil
}

File diff suppressed because it is too large Load Diff

View File

@ -1,112 +1,198 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/api/operation.proto
package api
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// Operation is annotation for rpc that returns longrunning operation, describes
// message types that will be returned in metadata [google.protobuf.Any], and
// in response [google.protobuf.Any] (for successful operation).
type Operation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Optional. If present, rpc returns operation which metadata field will
// contains message of specified type.
Metadata string `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
Metadata string `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // Optional.
// Required. rpc returns operation, in case of success response will contains message of
// specified field.
Response string `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Response string `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"` // Required.
}
func (m *Operation) Reset() { *m = Operation{} }
func (m *Operation) String() string { return proto.CompactTextString(m) }
func (*Operation) ProtoMessage() {}
func (x *Operation) Reset() {
*x = Operation{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_api_operation_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Operation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Operation) ProtoMessage() {}
func (x *Operation) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_api_operation_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Operation.ProtoReflect.Descriptor instead.
func (*Operation) Descriptor() ([]byte, []int) {
return fileDescriptor_6f0479639ad85daa, []int{0}
return file_yandex_cloud_api_operation_proto_rawDescGZIP(), []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 (m *Operation) XXX_Merge(src proto.Message) {
xxx_messageInfo_Operation.Merge(m, 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) GetMetadata() string {
if m != nil {
return m.Metadata
func (x *Operation) GetMetadata() string {
if x != nil {
return x.Metadata
}
return ""
}
func (m *Operation) GetResponse() string {
if m != nil {
return m.Response
func (x *Operation) GetResponse() string {
if x != nil {
return x.Response
}
return ""
}
var E_Operation = &proto.ExtensionDesc{
ExtendedType: (*descriptor.MethodOptions)(nil),
ExtensionType: (*Operation)(nil),
Field: 87334,
Name: "yandex.cloud.api.operation",
Tag: "bytes,87334,opt,name=operation",
Filename: "yandex/cloud/api/operation.proto",
var file_yandex_cloud_api_operation_proto_extTypes = []protoimpl.ExtensionInfo{
{
ExtendedType: (*descriptor.MethodOptions)(nil),
ExtensionType: (*Operation)(nil),
Field: 87334,
Name: "yandex.cloud.api.operation",
Tag: "bytes,87334,opt,name=operation",
Filename: "yandex/cloud/api/operation.proto",
},
}
func init() {
proto.RegisterType((*Operation)(nil), "yandex.cloud.api.Operation")
proto.RegisterExtension(E_Operation)
// Extension fields to descriptor.MethodOptions.
var (
// optional yandex.cloud.api.Operation operation = 87334;
E_Operation = &file_yandex_cloud_api_operation_proto_extTypes[0]
)
var File_yandex_cloud_api_operation_proto protoreflect.FileDescriptor
var file_yandex_cloud_api_operation_proto_rawDesc = []byte{
0x0a, 0x20, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x12, 0x10, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2e, 0x61, 0x70, 0x69, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x43, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12,
0x1a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x3a, 0x5b, 0x0a, 0x09, 0x6f,
0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f,
0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xa6, 0xaa, 0x05, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x1b, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x6f,
0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x69, 0x74, 0x68,
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x70, 0x69,
0x3b, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/api/operation.proto", fileDescriptor_6f0479639ad85daa)
var (
file_yandex_cloud_api_operation_proto_rawDescOnce sync.Once
file_yandex_cloud_api_operation_proto_rawDescData = file_yandex_cloud_api_operation_proto_rawDesc
)
func file_yandex_cloud_api_operation_proto_rawDescGZIP() []byte {
file_yandex_cloud_api_operation_proto_rawDescOnce.Do(func() {
file_yandex_cloud_api_operation_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_api_operation_proto_rawDescData)
})
return file_yandex_cloud_api_operation_proto_rawDescData
}
var fileDescriptor_6f0479639ad85daa = []byte{
// 222 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0xbf, 0x4a, 0x03, 0x41,
0x10, 0xc6, 0x39, 0x41, 0xf1, 0xce, 0x46, 0xae, 0x3a, 0x22, 0xc8, 0x62, 0x95, 0x26, 0xb3, 0xa0,
0x8d, 0xc4, 0x4e, 0x6b, 0x09, 0xa4, 0xd4, 0x6a, 0xee, 0x76, 0xdc, 0x2c, 0x24, 0x3b, 0xc3, 0xee,
0x1e, 0xe8, 0x0b, 0x59, 0xf8, 0x94, 0x92, 0x5d, 0xee, 0x02, 0x29, 0x87, 0xdf, 0x7c, 0x7f, 0xf8,
0x1a, 0xf5, 0x83, 0xde, 0xd0, 0xb7, 0x1e, 0xf6, 0x3c, 0x1a, 0x8d, 0xe2, 0x34, 0x0b, 0x05, 0x4c,
0x8e, 0x3d, 0x48, 0xe0, 0xc4, 0xed, 0x6d, 0xf9, 0x80, 0xfc, 0x01, 0x28, 0x6e, 0xa1, 0x2c, 0xb3,
0xdd, 0x93, 0xce, 0xbc, 0x1f, 0xbf, 0xb4, 0xa1, 0x38, 0x04, 0x27, 0x89, 0x43, 0xd1, 0x3c, 0xbc,
0x35, 0xf5, 0x66, 0xb2, 0x69, 0x17, 0xcd, 0xf5, 0x81, 0x12, 0x1a, 0x4c, 0xd8, 0x55, 0xaa, 0x5a,
0xd6, 0xdb, 0xf9, 0x3e, 0xb2, 0x40, 0x51, 0xd8, 0x47, 0xea, 0x2e, 0x0a, 0x9b, 0xee, 0xf5, 0x67,
0x53, 0xcf, 0x5d, 0xda, 0x7b, 0x28, 0xa1, 0x30, 0x85, 0xc2, 0x3b, 0xa5, 0x1d, 0x9b, 0x8d, 0x1c,
0x71, 0xec, 0x7e, 0xff, 0x2e, 0x55, 0xb5, 0xbc, 0x79, 0xbc, 0x83, 0xf3, 0xba, 0x30, 0x37, 0xd9,
0x9e, 0xfc, 0x5e, 0xd7, 0x1f, 0xcf, 0xd6, 0xa5, 0xdd, 0xd8, 0xc3, 0xc0, 0x07, 0x5d, 0x34, 0xab,
0x32, 0x82, 0xe5, 0x95, 0x25, 0x9f, 0x73, 0xf4, 0xf9, 0x3a, 0x2f, 0x28, 0xae, 0xbf, 0xca, 0xec,
0xe9, 0x3f, 0x00, 0x00, 0xff, 0xff, 0x01, 0x79, 0x72, 0xab, 0x3c, 0x01, 0x00, 0x00,
var file_yandex_cloud_api_operation_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_api_operation_proto_goTypes = []interface{}{
(*Operation)(nil), // 0: yandex.cloud.api.Operation
(*descriptor.MethodOptions)(nil), // 1: google.protobuf.MethodOptions
}
var file_yandex_cloud_api_operation_proto_depIdxs = []int32{
1, // 0: yandex.cloud.api.operation:extendee -> google.protobuf.MethodOptions
0, // 1: yandex.cloud.api.operation:type_name -> yandex.cloud.api.Operation
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
1, // [1:2] is the sub-list for extension type_name
0, // [0:1] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_yandex_cloud_api_operation_proto_init() }
func file_yandex_cloud_api_operation_proto_init() {
if File_yandex_cloud_api_operation_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_api_operation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Operation); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_api_operation_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 1,
NumServices: 0,
},
GoTypes: file_yandex_cloud_api_operation_proto_goTypes,
DependencyIndexes: file_yandex_cloud_api_operation_proto_depIdxs,
MessageInfos: file_yandex_cloud_api_operation_proto_msgTypes,
ExtensionInfos: file_yandex_cloud_api_operation_proto_extTypes,
}.Build()
File_yandex_cloud_api_operation_proto = out.File
file_yandex_cloud_api_operation_proto_rawDesc = nil
file_yandex_cloud_api_operation_proto_goTypes = nil
file_yandex_cloud_api_operation_proto_depIdxs = nil
}

View File

@ -0,0 +1,989 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/certificatemanager/v1/certificate.proto
package certificatemanager
import (
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// Supported certificate types.
type CertificateType int32
const (
CertificateType_CERTIFICATE_TYPE_UNSPECIFIED CertificateType = 0
// The certificate was imported by user
CertificateType_IMPORTED CertificateType = 1
// The certificate was created by service
CertificateType_MANAGED CertificateType = 2
)
// Enum value maps for CertificateType.
var (
CertificateType_name = map[int32]string{
0: "CERTIFICATE_TYPE_UNSPECIFIED",
1: "IMPORTED",
2: "MANAGED",
}
CertificateType_value = map[string]int32{
"CERTIFICATE_TYPE_UNSPECIFIED": 0,
"IMPORTED": 1,
"MANAGED": 2,
}
)
func (x CertificateType) Enum() *CertificateType {
p := new(CertificateType)
*p = x
return p
}
func (x CertificateType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CertificateType) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_certificatemanager_v1_certificate_proto_enumTypes[0].Descriptor()
}
func (CertificateType) Type() protoreflect.EnumType {
return &file_yandex_cloud_certificatemanager_v1_certificate_proto_enumTypes[0]
}
func (x CertificateType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CertificateType.Descriptor instead.
func (CertificateType) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_certificatemanager_v1_certificate_proto_rawDescGZIP(), []int{0}
}
// Supported domain validation types.
type ChallengeType int32
const (
ChallengeType_CHALLENGE_TYPE_UNSPECIFIED ChallengeType = 0
// Domain validation type that using DNS-records.
ChallengeType_DNS ChallengeType = 1
// Domain validation type that using HTTP-files.
ChallengeType_HTTP ChallengeType = 2
)
// Enum value maps for ChallengeType.
var (
ChallengeType_name = map[int32]string{
0: "CHALLENGE_TYPE_UNSPECIFIED",
1: "DNS",
2: "HTTP",
}
ChallengeType_value = map[string]int32{
"CHALLENGE_TYPE_UNSPECIFIED": 0,
"DNS": 1,
"HTTP": 2,
}
)
func (x ChallengeType) Enum() *ChallengeType {
p := new(ChallengeType)
*p = x
return p
}
func (x ChallengeType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ChallengeType) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_certificatemanager_v1_certificate_proto_enumTypes[1].Descriptor()
}
func (ChallengeType) Type() protoreflect.EnumType {
return &file_yandex_cloud_certificatemanager_v1_certificate_proto_enumTypes[1]
}
func (x ChallengeType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ChallengeType.Descriptor instead.
func (ChallengeType) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_certificatemanager_v1_certificate_proto_rawDescGZIP(), []int{1}
}
type Certificate_Status int32
const (
Certificate_STATUS_UNSPECIFIED Certificate_Status = 0
// The certificate domains validation are required. Used only for MANAGED certificates.
Certificate_VALIDATING Certificate_Status = 1
// The certificate issuance was failed. Used only for MANAGED certificates.
Certificate_INVALID Certificate_Status = 2
// The certificate was issued.
Certificate_ISSUED Certificate_Status = 3
// The certificate was revoked.
Certificate_REVOKED Certificate_Status = 4
// The certificate renewal was started. Used only for MANAGED certificates.
Certificate_RENEWING Certificate_Status = 5
// The certificate renewal was failed. Used only for MANAGED certificates.
Certificate_RENEWAL_FAILED Certificate_Status = 6
)
// Enum value maps for Certificate_Status.
var (
Certificate_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "VALIDATING",
2: "INVALID",
3: "ISSUED",
4: "REVOKED",
5: "RENEWING",
6: "RENEWAL_FAILED",
}
Certificate_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"VALIDATING": 1,
"INVALID": 2,
"ISSUED": 3,
"REVOKED": 4,
"RENEWING": 5,
"RENEWAL_FAILED": 6,
}
)
func (x Certificate_Status) Enum() *Certificate_Status {
p := new(Certificate_Status)
*p = x
return p
}
func (x Certificate_Status) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Certificate_Status) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_certificatemanager_v1_certificate_proto_enumTypes[2].Descriptor()
}
func (Certificate_Status) Type() protoreflect.EnumType {
return &file_yandex_cloud_certificatemanager_v1_certificate_proto_enumTypes[2]
}
func (x Certificate_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Certificate_Status.Descriptor instead.
func (Certificate_Status) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_certificatemanager_v1_certificate_proto_rawDescGZIP(), []int{0, 0}
}
type Challenge_Status int32
const (
Challenge_STATUS_UNSPECIFIED Challenge_Status = 0
Challenge_PENDING Challenge_Status = 1
Challenge_PROCESSING Challenge_Status = 2
Challenge_VALID Challenge_Status = 3
Challenge_INVALID Challenge_Status = 4
)
// Enum value maps for Challenge_Status.
var (
Challenge_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "PENDING",
2: "PROCESSING",
3: "VALID",
4: "INVALID",
}
Challenge_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"PENDING": 1,
"PROCESSING": 2,
"VALID": 3,
"INVALID": 4,
}
)
func (x Challenge_Status) Enum() *Challenge_Status {
p := new(Challenge_Status)
*p = x
return p
}
func (x Challenge_Status) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Challenge_Status) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_certificatemanager_v1_certificate_proto_enumTypes[3].Descriptor()
}
func (Challenge_Status) Type() protoreflect.EnumType {
return &file_yandex_cloud_certificatemanager_v1_certificate_proto_enumTypes[3]
}
func (x Challenge_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Challenge_Status.Descriptor instead.
func (Challenge_Status) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_certificatemanager_v1_certificate_proto_rawDescGZIP(), []int{1, 0}
}
// A certificate.
type Certificate struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the certificate.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// ID of the folder that the certificate belongs to.
FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
// Time when the certificate was created.
CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// Name of the certificate.
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
// Description of the certificate.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// Certificate labels as `key:value` pairs. Maximum 64 per certificate.
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"`
// Type of the certificate.
Type CertificateType `protobuf:"varint,7,opt,name=type,proto3,enum=yandex.cloud.certificatemanager.v1.CertificateType" json:"type,omitempty"`
// Fully qualified domain names of the certificate.
Domains []string `protobuf:"bytes,8,rep,name=domains,proto3" json:"domains,omitempty"`
// Status of the certificate.
Status Certificate_Status `protobuf:"varint,9,opt,name=status,proto3,enum=yandex.cloud.certificatemanager.v1.Certificate_Status" json:"status,omitempty"`
// Name of the certificate authority that issued the certificate.
Issuer string `protobuf:"bytes,10,opt,name=issuer,proto3" json:"issuer,omitempty"`
// Name of the entity that is associated with the public key contained in the certificate.
Subject string `protobuf:"bytes,11,opt,name=subject,proto3" json:"subject,omitempty"`
// Serial number of the certificate
Serial string `protobuf:"bytes,12,opt,name=serial,proto3" json:"serial,omitempty"`
// Time when the certificate was updated
UpdatedAt *timestamp.Timestamp `protobuf:"bytes,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
// Time when the certificate was issued
IssuedAt *timestamp.Timestamp `protobuf:"bytes,14,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
// Time after which the certificate is not valid.
NotAfter *timestamp.Timestamp `protobuf:"bytes,15,opt,name=not_after,json=notAfter,proto3" json:"not_after,omitempty"`
// Time before which the certificate is not valid.
NotBefore *timestamp.Timestamp `protobuf:"bytes,16,opt,name=not_before,json=notBefore,proto3" json:"not_before,omitempty"`
// Domains validation challenges of the certificate. Used only for MANAGED certificates.
Challenges []*Challenge `protobuf:"bytes,17,rep,name=challenges,proto3" json:"challenges,omitempty"`
}
func (x *Certificate) Reset() {
*x = Certificate{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_certificatemanager_v1_certificate_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Certificate) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Certificate) ProtoMessage() {}
func (x *Certificate) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_certificatemanager_v1_certificate_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Certificate.ProtoReflect.Descriptor instead.
func (*Certificate) Descriptor() ([]byte, []int) {
return file_yandex_cloud_certificatemanager_v1_certificate_proto_rawDescGZIP(), []int{0}
}
func (x *Certificate) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Certificate) GetFolderId() string {
if x != nil {
return x.FolderId
}
return ""
}
func (x *Certificate) GetCreatedAt() *timestamp.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *Certificate) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Certificate) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *Certificate) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *Certificate) GetType() CertificateType {
if x != nil {
return x.Type
}
return CertificateType_CERTIFICATE_TYPE_UNSPECIFIED
}
func (x *Certificate) GetDomains() []string {
if x != nil {
return x.Domains
}
return nil
}
func (x *Certificate) GetStatus() Certificate_Status {
if x != nil {
return x.Status
}
return Certificate_STATUS_UNSPECIFIED
}
func (x *Certificate) GetIssuer() string {
if x != nil {
return x.Issuer
}
return ""
}
func (x *Certificate) GetSubject() string {
if x != nil {
return x.Subject
}
return ""
}
func (x *Certificate) GetSerial() string {
if x != nil {
return x.Serial
}
return ""
}
func (x *Certificate) GetUpdatedAt() *timestamp.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
func (x *Certificate) GetIssuedAt() *timestamp.Timestamp {
if x != nil {
return x.IssuedAt
}
return nil
}
func (x *Certificate) GetNotAfter() *timestamp.Timestamp {
if x != nil {
return x.NotAfter
}
return nil
}
func (x *Certificate) GetNotBefore() *timestamp.Timestamp {
if x != nil {
return x.NotBefore
}
return nil
}
func (x *Certificate) GetChallenges() []*Challenge {
if x != nil {
return x.Challenges
}
return nil
}
// Domain validation challenge.
type Challenge struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Domain of the challenge.
Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
// Type of the challenge.
Type ChallengeType `protobuf:"varint,2,opt,name=type,proto3,enum=yandex.cloud.certificatemanager.v1.ChallengeType" json:"type,omitempty"`
// Time when the challenge was created.
CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// Time when the challenge was updated.
UpdatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
// Status of the challenge.
Status Challenge_Status `protobuf:"varint,5,opt,name=status,proto3,enum=yandex.cloud.certificatemanager.v1.Challenge_Status" json:"status,omitempty"`
// Description of the challenge.
Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"`
// Error of the challenge.
Error string `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"`
// Data of the challenge.
//
// Types that are assignable to Challenge:
// *Challenge_DnsChallenge
// *Challenge_HttpChallenge
Challenge isChallenge_Challenge `protobuf_oneof:"challenge"`
}
func (x *Challenge) Reset() {
*x = Challenge{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_certificatemanager_v1_certificate_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Challenge) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Challenge) ProtoMessage() {}
func (x *Challenge) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_certificatemanager_v1_certificate_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Challenge.ProtoReflect.Descriptor instead.
func (*Challenge) Descriptor() ([]byte, []int) {
return file_yandex_cloud_certificatemanager_v1_certificate_proto_rawDescGZIP(), []int{1}
}
func (x *Challenge) GetDomain() string {
if x != nil {
return x.Domain
}
return ""
}
func (x *Challenge) GetType() ChallengeType {
if x != nil {
return x.Type
}
return ChallengeType_CHALLENGE_TYPE_UNSPECIFIED
}
func (x *Challenge) GetCreatedAt() *timestamp.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *Challenge) GetUpdatedAt() *timestamp.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
func (x *Challenge) GetStatus() Challenge_Status {
if x != nil {
return x.Status
}
return Challenge_STATUS_UNSPECIFIED
}
func (x *Challenge) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *Challenge) GetError() string {
if x != nil {
return x.Error
}
return ""
}
func (m *Challenge) GetChallenge() isChallenge_Challenge {
if m != nil {
return m.Challenge
}
return nil
}
func (x *Challenge) GetDnsChallenge() *Challenge_DnsRecord {
if x, ok := x.GetChallenge().(*Challenge_DnsChallenge); ok {
return x.DnsChallenge
}
return nil
}
func (x *Challenge) GetHttpChallenge() *Challenge_HttpFile {
if x, ok := x.GetChallenge().(*Challenge_HttpChallenge); ok {
return x.HttpChallenge
}
return nil
}
type isChallenge_Challenge interface {
isChallenge_Challenge()
}
type Challenge_DnsChallenge struct {
// DNS record.
DnsChallenge *Challenge_DnsRecord `protobuf:"bytes,8,opt,name=dns_challenge,json=dnsChallenge,proto3,oneof"`
}
type Challenge_HttpChallenge struct {
// HTTP file.
HttpChallenge *Challenge_HttpFile `protobuf:"bytes,9,opt,name=http_challenge,json=httpChallenge,proto3,oneof"`
}
func (*Challenge_DnsChallenge) isChallenge_Challenge() {}
func (*Challenge_HttpChallenge) isChallenge_Challenge() {}
type Challenge_DnsRecord struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name of the DNS record.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Type of the DNS record.
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// Value of the DNS record.
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
}
func (x *Challenge_DnsRecord) Reset() {
*x = Challenge_DnsRecord{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_certificatemanager_v1_certificate_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Challenge_DnsRecord) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Challenge_DnsRecord) ProtoMessage() {}
func (x *Challenge_DnsRecord) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_certificatemanager_v1_certificate_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Challenge_DnsRecord.ProtoReflect.Descriptor instead.
func (*Challenge_DnsRecord) Descriptor() ([]byte, []int) {
return file_yandex_cloud_certificatemanager_v1_certificate_proto_rawDescGZIP(), []int{1, 0}
}
func (x *Challenge_DnsRecord) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Challenge_DnsRecord) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *Challenge_DnsRecord) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
type Challenge_HttpFile struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Location of the HTTP file.
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// Content of the HTTP file.
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
}
func (x *Challenge_HttpFile) Reset() {
*x = Challenge_HttpFile{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_certificatemanager_v1_certificate_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Challenge_HttpFile) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Challenge_HttpFile) ProtoMessage() {}
func (x *Challenge_HttpFile) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_certificatemanager_v1_certificate_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Challenge_HttpFile.ProtoReflect.Descriptor instead.
func (*Challenge_HttpFile) Descriptor() ([]byte, []int) {
return file_yandex_cloud_certificatemanager_v1_certificate_proto_rawDescGZIP(), []int{1, 1}
}
func (x *Challenge_HttpFile) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
func (x *Challenge_HttpFile) GetContent() string {
if x != nil {
return x.Content
}
return ""
}
var File_yandex_cloud_certificatemanager_v1_certificate_proto protoreflect.FileDescriptor
var file_yandex_cloud_certificatemanager_v1_certificate_proto_rawDesc = []byte{
0x0a, 0x34, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65,
0x72, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63,
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65,
0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe9, 0x07, 0x0a, 0x0b,
0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x66,
0x6f, 0x6c, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61,
0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
0x64, 0x41, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65,
0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x53, 0x0a, 0x06, 0x6c, 0x61, 0x62,
0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69,
0x63, 0x61, 0x74, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x43,
0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c,
0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x47,
0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x79,
0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x65, 0x72, 0x74,
0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76,
0x31, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70,
0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69,
0x6e, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
0x73, 0x12, 0x4e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28,
0x0e, 0x32, 0x36, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x6d, 0x61, 0x6e, 0x61,
0x67, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,
0x74, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
0x73, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28,
0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62,
0x6a, 0x65, 0x63, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a,
0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x18, 0x0c, 0x20,
0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x12, 0x39, 0x0a, 0x0a, 0x75,
0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64,
0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x37, 0x0a, 0x09, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64,
0x5f, 0x61, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x08, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x41, 0x74, 0x12,
0x37, 0x0a, 0x09, 0x6e, 0x6f, 0x74, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x18, 0x0f, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x08,
0x6e, 0x6f, 0x74, 0x41, 0x66, 0x74, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x0a, 0x6e, 0x6f, 0x74, 0x5f,
0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x6e, 0x6f, 0x74, 0x42, 0x65, 0x66,
0x6f, 0x72, 0x65, 0x12, 0x4d, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65,
0x73, 0x18, 0x11, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,
0x74, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61,
0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67,
0x65, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72,
0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x78, 0x0a,
0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55,
0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
0x0e, 0x0a, 0x0a, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12,
0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06,
0x49, 0x53, 0x53, 0x55, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x56, 0x4f,
0x4b, 0x45, 0x44, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x45, 0x4e, 0x45, 0x57, 0x49, 0x4e,
0x47, 0x10, 0x05, 0x12, 0x12, 0x0a, 0x0e, 0x52, 0x45, 0x4e, 0x45, 0x57, 0x41, 0x4c, 0x5f, 0x46,
0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x06, 0x22, 0x86, 0x06, 0x0a, 0x09, 0x43, 0x68, 0x61, 0x6c,
0x6c, 0x65, 0x6e, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x45, 0x0a,
0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x79, 0x61,
0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69,
0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31,
0x2e, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04,
0x74, 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12,
0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,
0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x4c, 0x0a, 0x06, 0x73, 0x74,
0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66,
0x69, 0x63, 0x61, 0x74, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e,
0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28,
0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x5e, 0x0a, 0x0d, 0x64, 0x6e, 0x73, 0x5f,
0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x37, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63,
0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65,
0x72, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x2e, 0x44,
0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x6e, 0x73, 0x43,
0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x12, 0x5f, 0x0a, 0x0e, 0x68, 0x74, 0x74, 0x70,
0x5f, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x36, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67,
0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x2e,
0x48, 0x74, 0x74, 0x70, 0x46, 0x69, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x68, 0x74, 0x74, 0x70,
0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x1a, 0x49, 0x0a, 0x09, 0x44, 0x6e, 0x73,
0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79,
0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14,
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x1a, 0x36, 0x0a, 0x08, 0x48, 0x74, 0x74, 0x70, 0x46, 0x69, 0x6c, 0x65,
0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75,
0x72, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x55, 0x0a, 0x06,
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53,
0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b,
0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x50,
0x52, 0x4f, 0x43, 0x45, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x56,
0x41, 0x4c, 0x49, 0x44, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49,
0x44, 0x10, 0x04, 0x42, 0x0b, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65,
0x2a, 0x4e, 0x0a, 0x0f, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54,
0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x43, 0x45, 0x52, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41,
0x54, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,
0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54, 0x45,
0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x41, 0x4e, 0x41, 0x47, 0x45, 0x44, 0x10, 0x02,
0x2a, 0x42, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70,
0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x43, 0x48, 0x41, 0x4c, 0x4c, 0x45, 0x4e, 0x47, 0x45, 0x5f, 0x54,
0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
0x00, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x4e, 0x53, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x54,
0x54, 0x50, 0x10, 0x02, 0x42, 0x83, 0x01, 0x0a, 0x26, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66,
0x69, 0x63, 0x61, 0x74, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x5a,
0x59, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x6d, 0x61, 0x6e,
0x61, 0x67, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63,
0x61, 0x74, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
var (
file_yandex_cloud_certificatemanager_v1_certificate_proto_rawDescOnce sync.Once
file_yandex_cloud_certificatemanager_v1_certificate_proto_rawDescData = file_yandex_cloud_certificatemanager_v1_certificate_proto_rawDesc
)
func file_yandex_cloud_certificatemanager_v1_certificate_proto_rawDescGZIP() []byte {
file_yandex_cloud_certificatemanager_v1_certificate_proto_rawDescOnce.Do(func() {
file_yandex_cloud_certificatemanager_v1_certificate_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_certificatemanager_v1_certificate_proto_rawDescData)
})
return file_yandex_cloud_certificatemanager_v1_certificate_proto_rawDescData
}
var file_yandex_cloud_certificatemanager_v1_certificate_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
var file_yandex_cloud_certificatemanager_v1_certificate_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_yandex_cloud_certificatemanager_v1_certificate_proto_goTypes = []interface{}{
(CertificateType)(0), // 0: yandex.cloud.certificatemanager.v1.CertificateType
(ChallengeType)(0), // 1: yandex.cloud.certificatemanager.v1.ChallengeType
(Certificate_Status)(0), // 2: yandex.cloud.certificatemanager.v1.Certificate.Status
(Challenge_Status)(0), // 3: yandex.cloud.certificatemanager.v1.Challenge.Status
(*Certificate)(nil), // 4: yandex.cloud.certificatemanager.v1.Certificate
(*Challenge)(nil), // 5: yandex.cloud.certificatemanager.v1.Challenge
nil, // 6: yandex.cloud.certificatemanager.v1.Certificate.LabelsEntry
(*Challenge_DnsRecord)(nil), // 7: yandex.cloud.certificatemanager.v1.Challenge.DnsRecord
(*Challenge_HttpFile)(nil), // 8: yandex.cloud.certificatemanager.v1.Challenge.HttpFile
(*timestamp.Timestamp)(nil), // 9: google.protobuf.Timestamp
}
var file_yandex_cloud_certificatemanager_v1_certificate_proto_depIdxs = []int32{
9, // 0: yandex.cloud.certificatemanager.v1.Certificate.created_at:type_name -> google.protobuf.Timestamp
6, // 1: yandex.cloud.certificatemanager.v1.Certificate.labels:type_name -> yandex.cloud.certificatemanager.v1.Certificate.LabelsEntry
0, // 2: yandex.cloud.certificatemanager.v1.Certificate.type:type_name -> yandex.cloud.certificatemanager.v1.CertificateType
2, // 3: yandex.cloud.certificatemanager.v1.Certificate.status:type_name -> yandex.cloud.certificatemanager.v1.Certificate.Status
9, // 4: yandex.cloud.certificatemanager.v1.Certificate.updated_at:type_name -> google.protobuf.Timestamp
9, // 5: yandex.cloud.certificatemanager.v1.Certificate.issued_at:type_name -> google.protobuf.Timestamp
9, // 6: yandex.cloud.certificatemanager.v1.Certificate.not_after:type_name -> google.protobuf.Timestamp
9, // 7: yandex.cloud.certificatemanager.v1.Certificate.not_before:type_name -> google.protobuf.Timestamp
5, // 8: yandex.cloud.certificatemanager.v1.Certificate.challenges:type_name -> yandex.cloud.certificatemanager.v1.Challenge
1, // 9: yandex.cloud.certificatemanager.v1.Challenge.type:type_name -> yandex.cloud.certificatemanager.v1.ChallengeType
9, // 10: yandex.cloud.certificatemanager.v1.Challenge.created_at:type_name -> google.protobuf.Timestamp
9, // 11: yandex.cloud.certificatemanager.v1.Challenge.updated_at:type_name -> google.protobuf.Timestamp
3, // 12: yandex.cloud.certificatemanager.v1.Challenge.status:type_name -> yandex.cloud.certificatemanager.v1.Challenge.Status
7, // 13: yandex.cloud.certificatemanager.v1.Challenge.dns_challenge:type_name -> yandex.cloud.certificatemanager.v1.Challenge.DnsRecord
8, // 14: yandex.cloud.certificatemanager.v1.Challenge.http_challenge:type_name -> yandex.cloud.certificatemanager.v1.Challenge.HttpFile
15, // [15:15] is the sub-list for method output_type
15, // [15:15] is the sub-list for method input_type
15, // [15:15] is the sub-list for extension type_name
15, // [15:15] is the sub-list for extension extendee
0, // [0:15] is the sub-list for field type_name
}
func init() { file_yandex_cloud_certificatemanager_v1_certificate_proto_init() }
func file_yandex_cloud_certificatemanager_v1_certificate_proto_init() {
if File_yandex_cloud_certificatemanager_v1_certificate_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_certificatemanager_v1_certificate_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Certificate); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_certificatemanager_v1_certificate_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Challenge); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_certificatemanager_v1_certificate_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Challenge_DnsRecord); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_certificatemanager_v1_certificate_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Challenge_HttpFile); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_yandex_cloud_certificatemanager_v1_certificate_proto_msgTypes[1].OneofWrappers = []interface{}{
(*Challenge_DnsChallenge)(nil),
(*Challenge_HttpChallenge)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_certificatemanager_v1_certificate_proto_rawDesc,
NumEnums: 4,
NumMessages: 5,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_certificatemanager_v1_certificate_proto_goTypes,
DependencyIndexes: file_yandex_cloud_certificatemanager_v1_certificate_proto_depIdxs,
EnumInfos: file_yandex_cloud_certificatemanager_v1_certificate_proto_enumTypes,
MessageInfos: file_yandex_cloud_certificatemanager_v1_certificate_proto_msgTypes,
}.Build()
File_yandex_cloud_certificatemanager_v1_certificate_proto = out.File
file_yandex_cloud_certificatemanager_v1_certificate_proto_rawDesc = nil
file_yandex_cloud_certificatemanager_v1_certificate_proto_goTypes = nil
file_yandex_cloud_certificatemanager_v1_certificate_proto_depIdxs = nil
}

View File

@ -0,0 +1,141 @@
// Code generated by protoc-gen-goext. DO NOT EDIT.
package certificatemanager
import (
timestamp "github.com/golang/protobuf/ptypes/timestamp"
)
func (m *Certificate) SetId(v string) {
m.Id = v
}
func (m *Certificate) SetFolderId(v string) {
m.FolderId = v
}
func (m *Certificate) SetCreatedAt(v *timestamp.Timestamp) {
m.CreatedAt = v
}
func (m *Certificate) SetName(v string) {
m.Name = v
}
func (m *Certificate) SetDescription(v string) {
m.Description = v
}
func (m *Certificate) SetLabels(v map[string]string) {
m.Labels = v
}
func (m *Certificate) SetType(v CertificateType) {
m.Type = v
}
func (m *Certificate) SetDomains(v []string) {
m.Domains = v
}
func (m *Certificate) SetStatus(v Certificate_Status) {
m.Status = v
}
func (m *Certificate) SetIssuer(v string) {
m.Issuer = v
}
func (m *Certificate) SetSubject(v string) {
m.Subject = v
}
func (m *Certificate) SetSerial(v string) {
m.Serial = v
}
func (m *Certificate) SetUpdatedAt(v *timestamp.Timestamp) {
m.UpdatedAt = v
}
func (m *Certificate) SetIssuedAt(v *timestamp.Timestamp) {
m.IssuedAt = v
}
func (m *Certificate) SetNotAfter(v *timestamp.Timestamp) {
m.NotAfter = v
}
func (m *Certificate) SetNotBefore(v *timestamp.Timestamp) {
m.NotBefore = v
}
func (m *Certificate) SetChallenges(v []*Challenge) {
m.Challenges = v
}
type Challenge_Challenge = isChallenge_Challenge
func (m *Challenge) SetChallenge(v Challenge_Challenge) {
m.Challenge = v
}
func (m *Challenge) SetDomain(v string) {
m.Domain = v
}
func (m *Challenge) SetType(v ChallengeType) {
m.Type = v
}
func (m *Challenge) SetCreatedAt(v *timestamp.Timestamp) {
m.CreatedAt = v
}
func (m *Challenge) SetUpdatedAt(v *timestamp.Timestamp) {
m.UpdatedAt = v
}
func (m *Challenge) SetStatus(v Challenge_Status) {
m.Status = v
}
func (m *Challenge) SetMessage(v string) {
m.Message = v
}
func (m *Challenge) SetError(v string) {
m.Error = v
}
func (m *Challenge) SetDnsChallenge(v *Challenge_DnsRecord) {
m.Challenge = &Challenge_DnsChallenge{
DnsChallenge: v,
}
}
func (m *Challenge) SetHttpChallenge(v *Challenge_HttpFile) {
m.Challenge = &Challenge_HttpChallenge{
HttpChallenge: v,
}
}
func (m *Challenge_DnsRecord) SetName(v string) {
m.Name = v
}
func (m *Challenge_DnsRecord) SetType(v string) {
m.Type = v
}
func (m *Challenge_DnsRecord) SetValue(v string) {
m.Value = v
}
func (m *Challenge_HttpFile) SetUrl(v string) {
m.Url = v
}
func (m *Challenge_HttpFile) SetContent(v string) {
m.Content = v
}

View File

@ -0,0 +1,360 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/certificatemanager/v1/certificate_content_service.proto
package certificatemanager
import (
context "context"
proto "github.com/golang/protobuf/proto"
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type GetCertificateContentResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the certificate
CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"`
// PEM-encoded certificate chain content of the certificate.
CertificateChain []string `protobuf:"bytes,3,rep,name=certificate_chain,json=certificateChain,proto3" json:"certificate_chain,omitempty"`
// PEM-encoded private key content of the certificate.
PrivateKey string `protobuf:"bytes,4,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
}
func (x *GetCertificateContentResponse) Reset() {
*x = GetCertificateContentResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetCertificateContentResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetCertificateContentResponse) ProtoMessage() {}
func (x *GetCertificateContentResponse) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetCertificateContentResponse.ProtoReflect.Descriptor instead.
func (*GetCertificateContentResponse) Descriptor() ([]byte, []int) {
return file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_rawDescGZIP(), []int{0}
}
func (x *GetCertificateContentResponse) GetCertificateId() string {
if x != nil {
return x.CertificateId
}
return ""
}
func (x *GetCertificateContentResponse) GetCertificateChain() []string {
if x != nil {
return x.CertificateChain
}
return nil
}
func (x *GetCertificateContentResponse) GetPrivateKey() string {
if x != nil {
return x.PrivateKey
}
return ""
}
type GetCertificateContentRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the certificate to download content.
CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"`
}
func (x *GetCertificateContentRequest) Reset() {
*x = GetCertificateContentRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetCertificateContentRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetCertificateContentRequest) ProtoMessage() {}
func (x *GetCertificateContentRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetCertificateContentRequest.ProtoReflect.Descriptor instead.
func (*GetCertificateContentRequest) Descriptor() ([]byte, []int) {
return file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_rawDescGZIP(), []int{1}
}
func (x *GetCertificateContentRequest) GetCertificateId() string {
if x != nil {
return x.CertificateId
}
return ""
}
var File_yandex_cloud_certificatemanager_v1_certificate_content_service_proto protoreflect.FileDescriptor
var file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_rawDesc = []byte{
0x0a, 0x44, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65,
0x72, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65,
0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63,
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65,
0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x94, 0x01, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x43,
0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x65, 0x72,
0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0d, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x64,
0x12, 0x2b, 0x0a, 0x11, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x63, 0x65, 0x72,
0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x1f, 0x0a,
0x0b, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01,
0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x22, 0x45,
0x0a, 0x1c, 0x47, 0x65, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65,
0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25,
0x0a, 0x0e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63,
0x61, 0x74, 0x65, 0x49, 0x64, 0x32, 0xf2, 0x01, 0x0a, 0x19, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66,
0x69, 0x63, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76,
0x69, 0x63, 0x65, 0x12, 0xd4, 0x01, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x40, 0x2e, 0x79, 0x61,
0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69,
0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31,
0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x43,
0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x41, 0x2e,
0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x65, 0x72,
0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e,
0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x22, 0x48, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x12, 0x40, 0x2f, 0x63, 0x65, 0x72, 0x74, 0x69,
0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2d, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x76,
0x31, 0x2f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x2f, 0x7b,
0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x3a,
0x67, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x83, 0x01, 0x0a, 0x26, 0x79,
0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67,
0x65, 0x72, 0x2e, 0x76, 0x31, 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67,
0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63,
0x61, 0x74, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x65,
0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_rawDescOnce sync.Once
file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_rawDescData = file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_rawDesc
)
func file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_rawDescGZIP() []byte {
file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_rawDescOnce.Do(func() {
file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_rawDescData)
})
return file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_rawDescData
}
var file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_goTypes = []interface{}{
(*GetCertificateContentResponse)(nil), // 0: yandex.cloud.certificatemanager.v1.GetCertificateContentResponse
(*GetCertificateContentRequest)(nil), // 1: yandex.cloud.certificatemanager.v1.GetCertificateContentRequest
}
var file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_depIdxs = []int32{
1, // 0: yandex.cloud.certificatemanager.v1.CertificateContentService.Get:input_type -> yandex.cloud.certificatemanager.v1.GetCertificateContentRequest
0, // 1: yandex.cloud.certificatemanager.v1.CertificateContentService.Get:output_type -> yandex.cloud.certificatemanager.v1.GetCertificateContentResponse
1, // [1:2] is the sub-list for method output_type
0, // [0:1] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_init() }
func file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_init() {
if File_yandex_cloud_certificatemanager_v1_certificate_content_service_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetCertificateContentResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetCertificateContentRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_goTypes,
DependencyIndexes: file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_depIdxs,
MessageInfos: file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_msgTypes,
}.Build()
File_yandex_cloud_certificatemanager_v1_certificate_content_service_proto = out.File
file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_rawDesc = nil
file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_goTypes = nil
file_yandex_cloud_certificatemanager_v1_certificate_content_service_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// 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.SupportPackageIsVersion6
// CertificateContentServiceClient is the client API for CertificateContentService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CertificateContentServiceClient interface {
// Returns chain and private key of the specified certificate
Get(ctx context.Context, in *GetCertificateContentRequest, opts ...grpc.CallOption) (*GetCertificateContentResponse, error)
}
type certificateContentServiceClient struct {
cc grpc.ClientConnInterface
}
func NewCertificateContentServiceClient(cc grpc.ClientConnInterface) CertificateContentServiceClient {
return &certificateContentServiceClient{cc}
}
func (c *certificateContentServiceClient) Get(ctx context.Context, in *GetCertificateContentRequest, opts ...grpc.CallOption) (*GetCertificateContentResponse, error) {
out := new(GetCertificateContentResponse)
err := c.cc.Invoke(ctx, "/yandex.cloud.certificatemanager.v1.CertificateContentService/Get", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// CertificateContentServiceServer is the server API for CertificateContentService service.
type CertificateContentServiceServer interface {
// Returns chain and private key of the specified certificate
Get(context.Context, *GetCertificateContentRequest) (*GetCertificateContentResponse, error)
}
// UnimplementedCertificateContentServiceServer can be embedded to have forward compatible implementations.
type UnimplementedCertificateContentServiceServer struct {
}
func (*UnimplementedCertificateContentServiceServer) Get(context.Context, *GetCertificateContentRequest) (*GetCertificateContentResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
}
func RegisterCertificateContentServiceServer(s *grpc.Server, srv CertificateContentServiceServer) {
s.RegisterService(&_CertificateContentService_serviceDesc, srv)
}
func _CertificateContentService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetCertificateContentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CertificateContentServiceServer).Get(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/yandex.cloud.certificatemanager.v1.CertificateContentService/Get",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CertificateContentServiceServer).Get(ctx, req.(*GetCertificateContentRequest))
}
return interceptor(ctx, in, info, handler)
}
var _CertificateContentService_serviceDesc = grpc.ServiceDesc{
ServiceName: "yandex.cloud.certificatemanager.v1.CertificateContentService",
HandlerType: (*CertificateContentServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Get",
Handler: _CertificateContentService_Get_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "yandex/cloud/certificatemanager/v1/certificate_content_service.proto",
}

View File

@ -0,0 +1,19 @@
// Code generated by protoc-gen-goext. DO NOT EDIT.
package certificatemanager
func (m *GetCertificateContentResponse) SetCertificateId(v string) {
m.CertificateId = v
}
func (m *GetCertificateContentResponse) SetCertificateChain(v []string) {
m.CertificateChain = v
}
func (m *GetCertificateContentResponse) SetPrivateKey(v string) {
m.PrivateKey = v
}
func (m *GetCertificateContentRequest) SetCertificateId(v string) {
m.CertificateId = v
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,164 @@
// Code generated by protoc-gen-goext. DO NOT EDIT.
package certificatemanager
import (
operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation"
field_mask "google.golang.org/genproto/protobuf/field_mask"
)
func (m *GetCertificateRequest) SetCertificateId(v string) {
m.CertificateId = v
}
func (m *GetCertificateRequest) SetView(v CertificateView) {
m.View = v
}
func (m *ListCertificatesRequest) SetFolderId(v string) {
m.FolderId = v
}
func (m *ListCertificatesRequest) SetPageSize(v int64) {
m.PageSize = v
}
func (m *ListCertificatesRequest) SetPageToken(v string) {
m.PageToken = v
}
func (m *ListCertificatesRequest) SetView(v CertificateView) {
m.View = v
}
func (m *ListCertificatesResponse) SetCertificates(v []*Certificate) {
m.Certificates = v
}
func (m *ListCertificatesResponse) SetNextPageToken(v string) {
m.NextPageToken = v
}
func (m *CreateCertificateRequest) SetFolderId(v string) {
m.FolderId = v
}
func (m *CreateCertificateRequest) SetName(v string) {
m.Name = v
}
func (m *CreateCertificateRequest) SetDescription(v string) {
m.Description = v
}
func (m *CreateCertificateRequest) SetLabels(v map[string]string) {
m.Labels = v
}
func (m *CreateCertificateRequest) SetCertificate(v string) {
m.Certificate = v
}
func (m *CreateCertificateRequest) SetChain(v string) {
m.Chain = v
}
func (m *CreateCertificateRequest) SetPrivateKey(v string) {
m.PrivateKey = v
}
func (m *CreateCertificateMetadata) SetCertificateId(v string) {
m.CertificateId = v
}
func (m *UpdateCertificateRequest) SetCertificateId(v string) {
m.CertificateId = v
}
func (m *UpdateCertificateRequest) SetUpdateMask(v *field_mask.FieldMask) {
m.UpdateMask = v
}
func (m *UpdateCertificateRequest) SetName(v string) {
m.Name = v
}
func (m *UpdateCertificateRequest) SetDescription(v string) {
m.Description = v
}
func (m *UpdateCertificateRequest) SetLabels(v map[string]string) {
m.Labels = v
}
func (m *UpdateCertificateRequest) SetCertificate(v string) {
m.Certificate = v
}
func (m *UpdateCertificateRequest) SetChain(v string) {
m.Chain = v
}
func (m *UpdateCertificateRequest) SetPrivateKey(v string) {
m.PrivateKey = v
}
func (m *UpdateCertificateMetadata) SetCertificateId(v string) {
m.CertificateId = v
}
func (m *DeleteCertificateRequest) SetCertificateId(v string) {
m.CertificateId = v
}
func (m *DeleteCertificateMetadata) SetCertificateId(v string) {
m.CertificateId = v
}
func (m *RequestNewCertificateRequest) SetFolderId(v string) {
m.FolderId = v
}
func (m *RequestNewCertificateRequest) SetName(v string) {
m.Name = v
}
func (m *RequestNewCertificateRequest) SetDescription(v string) {
m.Description = v
}
func (m *RequestNewCertificateRequest) SetLabels(v map[string]string) {
m.Labels = v
}
func (m *RequestNewCertificateRequest) SetDomains(v []string) {
m.Domains = v
}
func (m *RequestNewCertificateRequest) SetChallengeType(v ChallengeType) {
m.ChallengeType = v
}
func (m *RequestNewCertificateMetadata) SetCertificateId(v string) {
m.CertificateId = v
}
func (m *ListCertificateOperationsRequest) SetCertificateId(v string) {
m.CertificateId = v
}
func (m *ListCertificateOperationsRequest) SetPageSize(v int64) {
m.PageSize = v
}
func (m *ListCertificateOperationsRequest) SetPageToken(v string) {
m.PageToken = v
}
func (m *ListCertificateOperationsResponse) SetOperations(v []*operation.Operation) {
m.Operations = v
}
func (m *ListCertificateOperationsResponse) SetNextPageToken(v string) {
m.NextPageToken = v
}

View File

@ -1,25 +1,30 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/compute/v1/disk.proto
package compute
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type Disk_Status int32
@ -35,32 +40,57 @@ const (
Disk_DELETING Disk_Status = 4
)
var Disk_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "CREATING",
2: "READY",
3: "ERROR",
4: "DELETING",
}
// Enum value maps for Disk_Status.
var (
Disk_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "CREATING",
2: "READY",
3: "ERROR",
4: "DELETING",
}
Disk_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"CREATING": 1,
"READY": 2,
"ERROR": 3,
"DELETING": 4,
}
)
var Disk_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"CREATING": 1,
"READY": 2,
"ERROR": 3,
"DELETING": 4,
func (x Disk_Status) Enum() *Disk_Status {
p := new(Disk_Status)
*p = x
return p
}
func (x Disk_Status) String() string {
return proto.EnumName(Disk_Status_name, int32(x))
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Disk_Status) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_compute_v1_disk_proto_enumTypes[0].Descriptor()
}
func (Disk_Status) Type() protoreflect.EnumType {
return &file_yandex_cloud_compute_v1_disk_proto_enumTypes[0]
}
func (x Disk_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Disk_Status.Descriptor instead.
func (Disk_Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_6ed05fced9465d11, []int{0, 0}
return file_yandex_cloud_compute_v1_disk_proto_rawDescGZIP(), []int{0, 0}
}
// A Disk resource. For more information, see [Disks](/docs/compute/concepts/disk).
type Disk struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the disk.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// ID of the folder that the disk belongs to.
@ -91,142 +121,132 @@ type Disk struct {
ProductIds []string `protobuf:"bytes,10,rep,name=product_ids,json=productIds,proto3" json:"product_ids,omitempty"`
// Current status of the disk.
Status Disk_Status `protobuf:"varint,11,opt,name=status,proto3,enum=yandex.cloud.compute.v1.Disk_Status" json:"status,omitempty"`
// Types that are valid to be assigned to Source:
// Types that are assignable to Source:
// *Disk_SourceImageId
// *Disk_SourceSnapshotId
Source isDisk_Source `protobuf_oneof:"source"`
// Array of instances to which the disk is attached.
InstanceIds []string `protobuf:"bytes,14,rep,name=instance_ids,json=instanceIds,proto3" json:"instance_ids,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
InstanceIds []string `protobuf:"bytes,14,rep,name=instance_ids,json=instanceIds,proto3" json:"instance_ids,omitempty"`
// Placement policy configuration.
DiskPlacementPolicy *DiskPlacementPolicy `protobuf:"bytes,16,opt,name=disk_placement_policy,json=diskPlacementPolicy,proto3" json:"disk_placement_policy,omitempty"`
}
func (m *Disk) Reset() { *m = Disk{} }
func (m *Disk) String() string { return proto.CompactTextString(m) }
func (*Disk) ProtoMessage() {}
func (x *Disk) Reset() {
*x = Disk{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_disk_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Disk) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Disk) ProtoMessage() {}
func (x *Disk) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_disk_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Disk.ProtoReflect.Descriptor instead.
func (*Disk) Descriptor() ([]byte, []int) {
return fileDescriptor_6ed05fced9465d11, []int{0}
return file_yandex_cloud_compute_v1_disk_proto_rawDescGZIP(), []int{0}
}
func (m *Disk) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Disk.Unmarshal(m, b)
}
func (m *Disk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Disk.Marshal(b, m, deterministic)
}
func (m *Disk) XXX_Merge(src proto.Message) {
xxx_messageInfo_Disk.Merge(m, src)
}
func (m *Disk) XXX_Size() int {
return xxx_messageInfo_Disk.Size(m)
}
func (m *Disk) XXX_DiscardUnknown() {
xxx_messageInfo_Disk.DiscardUnknown(m)
}
var xxx_messageInfo_Disk proto.InternalMessageInfo
func (m *Disk) GetId() string {
if m != nil {
return m.Id
func (x *Disk) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (m *Disk) GetFolderId() string {
if m != nil {
return m.FolderId
func (x *Disk) GetFolderId() string {
if x != nil {
return x.FolderId
}
return ""
}
func (m *Disk) GetCreatedAt() *timestamp.Timestamp {
if m != nil {
return m.CreatedAt
func (x *Disk) GetCreatedAt() *timestamp.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (m *Disk) GetName() string {
if m != nil {
return m.Name
func (x *Disk) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *Disk) GetDescription() string {
if m != nil {
return m.Description
func (x *Disk) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (m *Disk) GetLabels() map[string]string {
if m != nil {
return m.Labels
func (x *Disk) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (m *Disk) GetTypeId() string {
if m != nil {
return m.TypeId
func (x *Disk) GetTypeId() string {
if x != nil {
return x.TypeId
}
return ""
}
func (m *Disk) GetZoneId() string {
if m != nil {
return m.ZoneId
func (x *Disk) GetZoneId() string {
if x != nil {
return x.ZoneId
}
return ""
}
func (m *Disk) GetSize() int64 {
if m != nil {
return m.Size
func (x *Disk) GetSize() int64 {
if x != nil {
return x.Size
}
return 0
}
func (m *Disk) GetBlockSize() int64 {
if m != nil {
return m.BlockSize
func (x *Disk) GetBlockSize() int64 {
if x != nil {
return x.BlockSize
}
return 0
}
func (m *Disk) GetProductIds() []string {
if m != nil {
return m.ProductIds
func (x *Disk) GetProductIds() []string {
if x != nil {
return x.ProductIds
}
return nil
}
func (m *Disk) GetStatus() Disk_Status {
if m != nil {
return m.Status
func (x *Disk) GetStatus() Disk_Status {
if x != nil {
return x.Status
}
return Disk_STATUS_UNSPECIFIED
}
type isDisk_Source interface {
isDisk_Source()
}
type Disk_SourceImageId struct {
SourceImageId string `protobuf:"bytes,12,opt,name=source_image_id,json=sourceImageId,proto3,oneof"`
}
type Disk_SourceSnapshotId struct {
SourceSnapshotId string `protobuf:"bytes,13,opt,name=source_snapshot_id,json=sourceSnapshotId,proto3,oneof"`
}
func (*Disk_SourceImageId) isDisk_Source() {}
func (*Disk_SourceSnapshotId) isDisk_Source() {}
func (m *Disk) GetSource() isDisk_Source {
if m != nil {
return m.Source
@ -234,80 +254,258 @@ func (m *Disk) GetSource() isDisk_Source {
return nil
}
func (m *Disk) GetSourceImageId() string {
if x, ok := m.GetSource().(*Disk_SourceImageId); ok {
func (x *Disk) GetSourceImageId() string {
if x, ok := x.GetSource().(*Disk_SourceImageId); ok {
return x.SourceImageId
}
return ""
}
func (m *Disk) GetSourceSnapshotId() string {
if x, ok := m.GetSource().(*Disk_SourceSnapshotId); ok {
func (x *Disk) GetSourceSnapshotId() string {
if x, ok := x.GetSource().(*Disk_SourceSnapshotId); ok {
return x.SourceSnapshotId
}
return ""
}
func (m *Disk) GetInstanceIds() []string {
if m != nil {
return m.InstanceIds
func (x *Disk) GetInstanceIds() []string {
if x != nil {
return x.InstanceIds
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*Disk) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*Disk_SourceImageId)(nil),
(*Disk_SourceSnapshotId)(nil),
func (x *Disk) GetDiskPlacementPolicy() *DiskPlacementPolicy {
if x != nil {
return x.DiskPlacementPolicy
}
return nil
}
type isDisk_Source interface {
isDisk_Source()
}
type Disk_SourceImageId struct {
// ID of the image that was used for disk creation.
SourceImageId string `protobuf:"bytes,12,opt,name=source_image_id,json=sourceImageId,proto3,oneof"`
}
type Disk_SourceSnapshotId struct {
// ID of the snapshot that was used for disk creation.
SourceSnapshotId string `protobuf:"bytes,13,opt,name=source_snapshot_id,json=sourceSnapshotId,proto3,oneof"`
}
func (*Disk_SourceImageId) isDisk_Source() {}
func (*Disk_SourceSnapshotId) isDisk_Source() {}
type DiskPlacementPolicy struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Placement group ID.
PlacementGroupId string `protobuf:"bytes,1,opt,name=placement_group_id,json=placementGroupId,proto3" json:"placement_group_id,omitempty"`
}
func (x *DiskPlacementPolicy) Reset() {
*x = DiskPlacementPolicy{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_disk_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func init() {
proto.RegisterEnum("yandex.cloud.compute.v1.Disk_Status", Disk_Status_name, Disk_Status_value)
proto.RegisterType((*Disk)(nil), "yandex.cloud.compute.v1.Disk")
proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.compute.v1.Disk.LabelsEntry")
func (x *DiskPlacementPolicy) String() string {
return protoimpl.X.MessageStringOf(x)
}
func init() {
proto.RegisterFile("yandex/cloud/compute/v1/disk.proto", fileDescriptor_6ed05fced9465d11)
func (*DiskPlacementPolicy) ProtoMessage() {}
func (x *DiskPlacementPolicy) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_disk_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var fileDescriptor_6ed05fced9465d11 = []byte{
// 557 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0x4d, 0x4f, 0xdc, 0x3c,
0x14, 0x85, 0xc9, 0x7c, 0x84, 0xc9, 0x0d, 0x1f, 0x23, 0xeb, 0xd5, 0x4b, 0x04, 0xaa, 0x48, 0x51,
0x17, 0xe9, 0x82, 0x44, 0xd0, 0x4d, 0x69, 0xbb, 0x19, 0x98, 0xb4, 0x8d, 0x84, 0x68, 0xe5, 0x19,
0x16, 0xed, 0x66, 0xe4, 0x89, 0x4d, 0xb0, 0x26, 0x13, 0x47, 0xb1, 0x83, 0x3a, 0xfc, 0xbb, 0xfe,
0xb3, 0xca, 0x76, 0x90, 0xe8, 0x82, 0xee, 0xae, 0xcf, 0x79, 0xec, 0x7b, 0x8f, 0x65, 0xc3, 0xc9,
0x86, 0x54, 0x94, 0xfd, 0x4a, 0xf2, 0x52, 0xb4, 0x34, 0xc9, 0xc5, 0xba, 0x6e, 0x15, 0x4b, 0x1e,
0xce, 0x12, 0xca, 0xe5, 0x2a, 0xae, 0x1b, 0xa1, 0x04, 0x3a, 0xb0, 0x4c, 0x6c, 0x98, 0xb8, 0x63,
0xe2, 0x87, 0xb3, 0xc3, 0xe3, 0x42, 0x88, 0xa2, 0x64, 0x89, 0xc1, 0x96, 0xed, 0x5d, 0xa2, 0xf8,
0x9a, 0x49, 0x45, 0xd6, 0xb5, 0xdd, 0x79, 0xf2, 0x7b, 0x08, 0x83, 0x29, 0x97, 0x2b, 0xb4, 0x07,
0x3d, 0x4e, 0x03, 0x27, 0x74, 0x22, 0x0f, 0xf7, 0x38, 0x45, 0x47, 0xe0, 0xdd, 0x89, 0x92, 0xb2,
0x66, 0xc1, 0x69, 0xd0, 0x33, 0xf2, 0xc8, 0x0a, 0x19, 0x45, 0x17, 0x00, 0x79, 0xc3, 0x88, 0x62,
0x74, 0x41, 0x54, 0xd0, 0x0f, 0x9d, 0xc8, 0x3f, 0x3f, 0x8c, 0x6d, 0xaf, 0xf8, 0xa9, 0x57, 0x3c,
0x7f, 0xea, 0x85, 0xbd, 0x8e, 0x9e, 0x28, 0x84, 0x60, 0x50, 0x91, 0x35, 0x0b, 0x06, 0xe6, 0x48,
0x53, 0xa3, 0x10, 0x7c, 0xca, 0x64, 0xde, 0xf0, 0x5a, 0x71, 0x51, 0x05, 0x43, 0x63, 0x3d, 0x97,
0xd0, 0x04, 0xdc, 0x92, 0x2c, 0x59, 0x29, 0x03, 0x37, 0xec, 0x47, 0xfe, 0xf9, 0xdb, 0xf8, 0x85,
0xc4, 0xb1, 0x0e, 0x13, 0x5f, 0x1b, 0x36, 0xad, 0x54, 0xb3, 0xc1, 0xdd, 0x46, 0x74, 0x00, 0xdb,
0x6a, 0x53, 0x33, 0x1d, 0x67, 0xdb, 0x34, 0x70, 0xf5, 0x32, 0xa3, 0xda, 0x78, 0x14, 0x95, 0x31,
0x46, 0xd6, 0xd0, 0xcb, 0x8c, 0xea, 0x51, 0x25, 0x7f, 0x64, 0x81, 0x17, 0x3a, 0x51, 0x1f, 0x9b,
0x1a, 0xbd, 0x02, 0x58, 0x96, 0x22, 0x5f, 0x2d, 0x8c, 0xb3, 0x6f, 0x1c, 0xcf, 0x28, 0x33, 0x6d,
0x1f, 0x83, 0x5f, 0x37, 0x82, 0xb6, 0xb9, 0x5a, 0x70, 0x2a, 0x03, 0x08, 0xfb, 0x91, 0x87, 0xa1,
0x93, 0x32, 0x2a, 0xd1, 0x27, 0x70, 0xa5, 0x22, 0xaa, 0x95, 0x81, 0x1f, 0x3a, 0xd1, 0xde, 0xf9,
0x9b, 0x7f, 0x07, 0x99, 0x19, 0x16, 0x77, 0x7b, 0x50, 0x04, 0xfb, 0x52, 0xb4, 0x4d, 0xce, 0x16,
0x7c, 0x4d, 0x0a, 0x33, 0xf2, 0x8e, 0x1e, 0xf9, 0xeb, 0x16, 0xde, 0xb5, 0x46, 0xa6, 0xf5, 0x8c,
0xa2, 0x18, 0x50, 0x47, 0xca, 0x8a, 0xd4, 0xf2, 0x5e, 0xe8, 0x81, 0x82, 0xdd, 0x0e, 0x1e, 0x5b,
0x6f, 0xd6, 0x59, 0x19, 0x45, 0xaf, 0x61, 0x87, 0x57, 0x52, 0x91, 0x4a, 0x9f, 0x4d, 0x65, 0xb0,
0x67, 0x26, 0xf7, 0x9f, 0xb4, 0x8c, 0xca, 0xc3, 0x0b, 0xf0, 0x9f, 0xdd, 0x2b, 0x1a, 0x43, 0x7f,
0xc5, 0x36, 0xdd, 0x8b, 0xd1, 0x25, 0xfa, 0x0f, 0x86, 0x0f, 0xa4, 0x6c, 0x59, 0xf7, 0x5c, 0xec,
0xe2, 0x43, 0xef, 0xbd, 0x73, 0x82, 0xc1, 0xb5, 0x49, 0xd0, 0xff, 0x80, 0x66, 0xf3, 0xc9, 0xfc,
0x76, 0xb6, 0xb8, 0xbd, 0x99, 0x7d, 0x4f, 0xaf, 0xb2, 0xcf, 0x59, 0x3a, 0x1d, 0x6f, 0xa1, 0x1d,
0x18, 0x5d, 0xe1, 0x74, 0x32, 0xcf, 0x6e, 0xbe, 0x8c, 0x1d, 0xe4, 0xc1, 0x10, 0xa7, 0x93, 0xe9,
0x8f, 0x71, 0x4f, 0x97, 0x29, 0xc6, 0xdf, 0xf0, 0xb8, 0xaf, 0x99, 0x69, 0x7a, 0x9d, 0x1a, 0x66,
0x70, 0x39, 0x02, 0xd7, 0xa6, 0xb8, 0x5c, 0xc2, 0xd1, 0x5f, 0x97, 0x48, 0x6a, 0xfe, 0xec, 0x22,
0x7f, 0x5e, 0x15, 0x5c, 0xdd, 0xb7, 0x4b, 0x2d, 0x25, 0x96, 0x3b, 0xb5, 0x7f, 0xa9, 0x10, 0xa7,
0x05, 0xab, 0xcc, 0x73, 0x4d, 0x5e, 0xf8, 0x64, 0x1f, 0xbb, 0x72, 0xe9, 0x1a, 0xec, 0xdd, 0x9f,
0x00, 0x00, 0x00, 0xff, 0xff, 0x3c, 0xfe, 0x79, 0xb6, 0x8e, 0x03, 0x00, 0x00,
// Deprecated: Use DiskPlacementPolicy.ProtoReflect.Descriptor instead.
func (*DiskPlacementPolicy) Descriptor() ([]byte, []int) {
return file_yandex_cloud_compute_v1_disk_proto_rawDescGZIP(), []int{1}
}
func (x *DiskPlacementPolicy) GetPlacementGroupId() string {
if x != nil {
return x.PlacementGroupId
}
return ""
}
var File_yandex_cloud_compute_v1_disk_proto protoreflect.FileDescriptor
var file_yandex_cloud_compute_v1_disk_proto_rawDesc = []byte{
0x0a, 0x22, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x69, 0x73, 0x6b, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f,
0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3,
0x06, 0x0a, 0x04, 0x44, 0x69, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x6f, 0x6c, 0x64, 0x65,
0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x6f, 0x6c, 0x64,
0x65, 0x72, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12,
0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18,
0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63,
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x44, 0x69, 0x73, 0x6b, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x79, 0x70, 0x65,
0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x79, 0x70, 0x65, 0x49,
0x64, 0x12, 0x17, 0x0a, 0x07, 0x7a, 0x6f, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01,
0x28, 0x09, 0x52, 0x06, 0x7a, 0x6f, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69,
0x7a, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x1d,
0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x0f, 0x20, 0x01,
0x28, 0x03, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1f, 0x0a,
0x0b, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x0a, 0x20, 0x03,
0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x49, 0x64, 0x73, 0x12, 0x3c,
0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24,
0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f,
0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x2e, 0x53, 0x74,
0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x28, 0x0a, 0x0f,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18,
0x0c, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49,
0x6d, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x12, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01,
0x28, 0x09, 0x48, 0x00, 0x52, 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x6e, 0x61, 0x70,
0x73, 0x68, 0x6f, 0x74, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
0x63, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x6e,
0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x73, 0x12, 0x60, 0x0a, 0x15, 0x64, 0x69, 0x73,
0x6b, 0x5f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x6f, 0x6c, 0x69,
0x63, 0x79, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74,
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x13, 0x64, 0x69, 0x73, 0x6b, 0x50, 0x6c, 0x61, 0x63,
0x65, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x1a, 0x39, 0x0a, 0x0b, 0x4c,
0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x52, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x52, 0x45, 0x41,
0x54, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x45, 0x41, 0x44, 0x59, 0x10,
0x02, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08,
0x44, 0x45, 0x4c, 0x45, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x22, 0x43, 0x0a, 0x13, 0x44, 0x69, 0x73, 0x6b, 0x50, 0x6c, 0x61, 0x63,
0x65, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2c, 0x0a, 0x12, 0x70,
0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65,
0x6e, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x42, 0x62, 0x0a, 0x1b, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f,
0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x5a, 0x43, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61,
0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75,
0x74, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_yandex_cloud_compute_v1_disk_proto_rawDescOnce sync.Once
file_yandex_cloud_compute_v1_disk_proto_rawDescData = file_yandex_cloud_compute_v1_disk_proto_rawDesc
)
func file_yandex_cloud_compute_v1_disk_proto_rawDescGZIP() []byte {
file_yandex_cloud_compute_v1_disk_proto_rawDescOnce.Do(func() {
file_yandex_cloud_compute_v1_disk_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_compute_v1_disk_proto_rawDescData)
})
return file_yandex_cloud_compute_v1_disk_proto_rawDescData
}
var file_yandex_cloud_compute_v1_disk_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_compute_v1_disk_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_compute_v1_disk_proto_goTypes = []interface{}{
(Disk_Status)(0), // 0: yandex.cloud.compute.v1.Disk.Status
(*Disk)(nil), // 1: yandex.cloud.compute.v1.Disk
(*DiskPlacementPolicy)(nil), // 2: yandex.cloud.compute.v1.DiskPlacementPolicy
nil, // 3: yandex.cloud.compute.v1.Disk.LabelsEntry
(*timestamp.Timestamp)(nil), // 4: google.protobuf.Timestamp
}
var file_yandex_cloud_compute_v1_disk_proto_depIdxs = []int32{
4, // 0: yandex.cloud.compute.v1.Disk.created_at:type_name -> google.protobuf.Timestamp
3, // 1: yandex.cloud.compute.v1.Disk.labels:type_name -> yandex.cloud.compute.v1.Disk.LabelsEntry
0, // 2: yandex.cloud.compute.v1.Disk.status:type_name -> yandex.cloud.compute.v1.Disk.Status
2, // 3: yandex.cloud.compute.v1.Disk.disk_placement_policy:type_name -> yandex.cloud.compute.v1.DiskPlacementPolicy
4, // [4:4] is the sub-list for method output_type
4, // [4:4] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_yandex_cloud_compute_v1_disk_proto_init() }
func file_yandex_cloud_compute_v1_disk_proto_init() {
if File_yandex_cloud_compute_v1_disk_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_compute_v1_disk_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Disk); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_compute_v1_disk_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DiskPlacementPolicy); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_yandex_cloud_compute_v1_disk_proto_msgTypes[0].OneofWrappers = []interface{}{
(*Disk_SourceImageId)(nil),
(*Disk_SourceSnapshotId)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_compute_v1_disk_proto_rawDesc,
NumEnums: 1,
NumMessages: 3,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_compute_v1_disk_proto_goTypes,
DependencyIndexes: file_yandex_cloud_compute_v1_disk_proto_depIdxs,
EnumInfos: file_yandex_cloud_compute_v1_disk_proto_enumTypes,
MessageInfos: file_yandex_cloud_compute_v1_disk_proto_msgTypes,
}.Build()
File_yandex_cloud_compute_v1_disk_proto = out.File
file_yandex_cloud_compute_v1_disk_proto_rawDesc = nil
file_yandex_cloud_compute_v1_disk_proto_goTypes = nil
file_yandex_cloud_compute_v1_disk_proto_depIdxs = nil
}

View File

@ -75,3 +75,11 @@ func (m *Disk) SetSourceSnapshotId(v string) {
func (m *Disk) SetInstanceIds(v []string) {
m.InstanceIds = v
}
func (m *Disk) SetDiskPlacementPolicy(v *DiskPlacementPolicy) {
m.DiskPlacementPolicy = v
}
func (m *DiskPlacementPolicy) SetPlacementGroupId(v string) {
m.PlacementGroupId = v
}

View File

@ -0,0 +1,408 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/compute/v1/disk_placement_group.proto
package compute
import (
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type DiskPlacementGroup_Status int32
const (
DiskPlacementGroup_STATUS_UNSPECIFIED DiskPlacementGroup_Status = 0
DiskPlacementGroup_CREATING DiskPlacementGroup_Status = 1
DiskPlacementGroup_READY DiskPlacementGroup_Status = 2
DiskPlacementGroup_DELETING DiskPlacementGroup_Status = 4
)
// Enum value maps for DiskPlacementGroup_Status.
var (
DiskPlacementGroup_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "CREATING",
2: "READY",
4: "DELETING",
}
DiskPlacementGroup_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"CREATING": 1,
"READY": 2,
"DELETING": 4,
}
)
func (x DiskPlacementGroup_Status) Enum() *DiskPlacementGroup_Status {
p := new(DiskPlacementGroup_Status)
*p = x
return p
}
func (x DiskPlacementGroup_Status) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DiskPlacementGroup_Status) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_compute_v1_disk_placement_group_proto_enumTypes[0].Descriptor()
}
func (DiskPlacementGroup_Status) Type() protoreflect.EnumType {
return &file_yandex_cloud_compute_v1_disk_placement_group_proto_enumTypes[0]
}
func (x DiskPlacementGroup_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DiskPlacementGroup_Status.Descriptor instead.
func (DiskPlacementGroup_Status) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDescGZIP(), []int{0, 0}
}
type DiskPlacementGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the placement group.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// ID of the folder that the placement group belongs to.
FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
// Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// Name of the placement group.
// The name is unique within the folder.
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
// Description of the placement group.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// Resource labels as `key:value` pairs.
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"`
// ID of the availability zone where the placement group resides.
ZoneId string `protobuf:"bytes,7,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"`
// Current status of the placement group
Status DiskPlacementGroup_Status `protobuf:"varint,11,opt,name=status,proto3,enum=yandex.cloud.compute.v1.DiskPlacementGroup_Status" json:"status,omitempty"`
// Placement strategy.
//
// Types that are assignable to PlacementStrategy:
// *DiskPlacementGroup_SpreadPlacementStrategy
PlacementStrategy isDiskPlacementGroup_PlacementStrategy `protobuf_oneof:"placement_strategy"`
}
func (x *DiskPlacementGroup) Reset() {
*x = DiskPlacementGroup{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_disk_placement_group_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DiskPlacementGroup) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DiskPlacementGroup) ProtoMessage() {}
func (x *DiskPlacementGroup) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_disk_placement_group_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DiskPlacementGroup.ProtoReflect.Descriptor instead.
func (*DiskPlacementGroup) Descriptor() ([]byte, []int) {
return file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDescGZIP(), []int{0}
}
func (x *DiskPlacementGroup) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *DiskPlacementGroup) GetFolderId() string {
if x != nil {
return x.FolderId
}
return ""
}
func (x *DiskPlacementGroup) GetCreatedAt() *timestamp.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *DiskPlacementGroup) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *DiskPlacementGroup) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *DiskPlacementGroup) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *DiskPlacementGroup) GetZoneId() string {
if x != nil {
return x.ZoneId
}
return ""
}
func (x *DiskPlacementGroup) GetStatus() DiskPlacementGroup_Status {
if x != nil {
return x.Status
}
return DiskPlacementGroup_STATUS_UNSPECIFIED
}
func (m *DiskPlacementGroup) GetPlacementStrategy() isDiskPlacementGroup_PlacementStrategy {
if m != nil {
return m.PlacementStrategy
}
return nil
}
func (x *DiskPlacementGroup) GetSpreadPlacementStrategy() *DiskSpreadPlacementStrategy {
if x, ok := x.GetPlacementStrategy().(*DiskPlacementGroup_SpreadPlacementStrategy); ok {
return x.SpreadPlacementStrategy
}
return nil
}
type isDiskPlacementGroup_PlacementStrategy interface {
isDiskPlacementGroup_PlacementStrategy()
}
type DiskPlacementGroup_SpreadPlacementStrategy struct {
// Distribute instances over distinct failure domains.
SpreadPlacementStrategy *DiskSpreadPlacementStrategy `protobuf:"bytes,8,opt,name=spread_placement_strategy,json=spreadPlacementStrategy,proto3,oneof"`
}
func (*DiskPlacementGroup_SpreadPlacementStrategy) isDiskPlacementGroup_PlacementStrategy() {}
type DiskSpreadPlacementStrategy struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *DiskSpreadPlacementStrategy) Reset() {
*x = DiskSpreadPlacementStrategy{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_disk_placement_group_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DiskSpreadPlacementStrategy) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DiskSpreadPlacementStrategy) ProtoMessage() {}
func (x *DiskSpreadPlacementStrategy) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_disk_placement_group_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DiskSpreadPlacementStrategy.ProtoReflect.Descriptor instead.
func (*DiskSpreadPlacementStrategy) Descriptor() ([]byte, []int) {
return file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDescGZIP(), []int{1}
}
var File_yandex_cloud_compute_v1_disk_placement_group_proto protoreflect.FileDescriptor
var file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDesc = []byte{
0x0a, 0x32, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x70,
0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f,
0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf6,
0x04, 0x0a, 0x12, 0x44, 0x69, 0x73, 0x6b, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74,
0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x5f,
0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72,
0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74,
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x12, 0x0a,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f,
0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69,
0x73, 0x6b, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70,
0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61,
0x62, 0x65, 0x6c, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x7a, 0x6f, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18,
0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x7a, 0x6f, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x4a, 0x0a,
0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e,
0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d,
0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x50, 0x6c, 0x61, 0x63,
0x65, 0x6d, 0x65, 0x6e, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75,
0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x72, 0x0a, 0x19, 0x73, 0x70, 0x72,
0x65, 0x61, 0x64, 0x5f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74,
0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x79,
0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70,
0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x53, 0x70, 0x72, 0x65, 0x61,
0x64, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65,
0x67, 0x79, 0x48, 0x00, 0x52, 0x17, 0x73, 0x70, 0x72, 0x65, 0x61, 0x64, 0x50, 0x6c, 0x61, 0x63,
0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x1a, 0x39, 0x0a,
0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x47, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74,
0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53,
0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x52,
0x45, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x45, 0x41, 0x44,
0x59, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x49, 0x4e, 0x47, 0x10,
0x04, 0x42, 0x14, 0x0a, 0x12, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73,
0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x22, 0x1d, 0x0a, 0x1b, 0x44, 0x69, 0x73, 0x6b, 0x53,
0x70, 0x72, 0x65, 0x61, 0x64, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74,
0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x42, 0x62, 0x0a, 0x1b, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75,
0x74, 0x65, 0x2e, 0x76, 0x31, 0x5a, 0x43, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67,
0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f,
0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
var (
file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDescOnce sync.Once
file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDescData = file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDesc
)
func file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDescGZIP() []byte {
file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDescOnce.Do(func() {
file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDescData)
})
return file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDescData
}
var file_yandex_cloud_compute_v1_disk_placement_group_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_compute_v1_disk_placement_group_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_compute_v1_disk_placement_group_proto_goTypes = []interface{}{
(DiskPlacementGroup_Status)(0), // 0: yandex.cloud.compute.v1.DiskPlacementGroup.Status
(*DiskPlacementGroup)(nil), // 1: yandex.cloud.compute.v1.DiskPlacementGroup
(*DiskSpreadPlacementStrategy)(nil), // 2: yandex.cloud.compute.v1.DiskSpreadPlacementStrategy
nil, // 3: yandex.cloud.compute.v1.DiskPlacementGroup.LabelsEntry
(*timestamp.Timestamp)(nil), // 4: google.protobuf.Timestamp
}
var file_yandex_cloud_compute_v1_disk_placement_group_proto_depIdxs = []int32{
4, // 0: yandex.cloud.compute.v1.DiskPlacementGroup.created_at:type_name -> google.protobuf.Timestamp
3, // 1: yandex.cloud.compute.v1.DiskPlacementGroup.labels:type_name -> yandex.cloud.compute.v1.DiskPlacementGroup.LabelsEntry
0, // 2: yandex.cloud.compute.v1.DiskPlacementGroup.status:type_name -> yandex.cloud.compute.v1.DiskPlacementGroup.Status
2, // 3: yandex.cloud.compute.v1.DiskPlacementGroup.spread_placement_strategy:type_name -> yandex.cloud.compute.v1.DiskSpreadPlacementStrategy
4, // [4:4] is the sub-list for method output_type
4, // [4:4] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_yandex_cloud_compute_v1_disk_placement_group_proto_init() }
func file_yandex_cloud_compute_v1_disk_placement_group_proto_init() {
if File_yandex_cloud_compute_v1_disk_placement_group_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_compute_v1_disk_placement_group_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DiskPlacementGroup); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_compute_v1_disk_placement_group_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DiskSpreadPlacementStrategy); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_yandex_cloud_compute_v1_disk_placement_group_proto_msgTypes[0].OneofWrappers = []interface{}{
(*DiskPlacementGroup_SpreadPlacementStrategy)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDesc,
NumEnums: 1,
NumMessages: 3,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_compute_v1_disk_placement_group_proto_goTypes,
DependencyIndexes: file_yandex_cloud_compute_v1_disk_placement_group_proto_depIdxs,
EnumInfos: file_yandex_cloud_compute_v1_disk_placement_group_proto_enumTypes,
MessageInfos: file_yandex_cloud_compute_v1_disk_placement_group_proto_msgTypes,
}.Build()
File_yandex_cloud_compute_v1_disk_placement_group_proto = out.File
file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDesc = nil
file_yandex_cloud_compute_v1_disk_placement_group_proto_goTypes = nil
file_yandex_cloud_compute_v1_disk_placement_group_proto_depIdxs = nil
}

View File

@ -0,0 +1,51 @@
// Code generated by protoc-gen-goext. DO NOT EDIT.
package compute
import (
timestamp "github.com/golang/protobuf/ptypes/timestamp"
)
type DiskPlacementGroup_PlacementStrategy = isDiskPlacementGroup_PlacementStrategy
func (m *DiskPlacementGroup) SetPlacementStrategy(v DiskPlacementGroup_PlacementStrategy) {
m.PlacementStrategy = v
}
func (m *DiskPlacementGroup) SetId(v string) {
m.Id = v
}
func (m *DiskPlacementGroup) SetFolderId(v string) {
m.FolderId = v
}
func (m *DiskPlacementGroup) SetCreatedAt(v *timestamp.Timestamp) {
m.CreatedAt = v
}
func (m *DiskPlacementGroup) SetName(v string) {
m.Name = v
}
func (m *DiskPlacementGroup) SetDescription(v string) {
m.Description = v
}
func (m *DiskPlacementGroup) SetLabels(v map[string]string) {
m.Labels = v
}
func (m *DiskPlacementGroup) SetZoneId(v string) {
m.ZoneId = v
}
func (m *DiskPlacementGroup) SetStatus(v DiskPlacementGroup_Status) {
m.Status = v
}
func (m *DiskPlacementGroup) SetSpreadPlacementStrategy(v *DiskSpreadPlacementStrategy) {
m.PlacementStrategy = &DiskPlacementGroup_SpreadPlacementStrategy{
SpreadPlacementStrategy: v,
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,144 @@
// Code generated by protoc-gen-goext. DO NOT EDIT.
package compute
import (
operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation"
field_mask "google.golang.org/genproto/protobuf/field_mask"
)
func (m *GetDiskPlacementGroupRequest) SetDiskPlacementGroupId(v string) {
m.DiskPlacementGroupId = v
}
func (m *ListDiskPlacementGroupsRequest) SetFolderId(v string) {
m.FolderId = v
}
func (m *ListDiskPlacementGroupsRequest) SetPageSize(v int64) {
m.PageSize = v
}
func (m *ListDiskPlacementGroupsRequest) SetPageToken(v string) {
m.PageToken = v
}
func (m *ListDiskPlacementGroupsRequest) SetFilter(v string) {
m.Filter = v
}
func (m *ListDiskPlacementGroupsResponse) SetDiskPlacementGroups(v []*DiskPlacementGroup) {
m.DiskPlacementGroups = v
}
func (m *ListDiskPlacementGroupsResponse) SetNextPageToken(v string) {
m.NextPageToken = v
}
type CreateDiskPlacementGroupRequest_PlacementStrategy = isCreateDiskPlacementGroupRequest_PlacementStrategy
func (m *CreateDiskPlacementGroupRequest) SetPlacementStrategy(v CreateDiskPlacementGroupRequest_PlacementStrategy) {
m.PlacementStrategy = v
}
func (m *CreateDiskPlacementGroupRequest) SetFolderId(v string) {
m.FolderId = v
}
func (m *CreateDiskPlacementGroupRequest) SetName(v string) {
m.Name = v
}
func (m *CreateDiskPlacementGroupRequest) SetDescription(v string) {
m.Description = v
}
func (m *CreateDiskPlacementGroupRequest) SetLabels(v map[string]string) {
m.Labels = v
}
func (m *CreateDiskPlacementGroupRequest) SetZoneId(v string) {
m.ZoneId = v
}
func (m *CreateDiskPlacementGroupRequest) SetSpreadPlacementStrategy(v *DiskSpreadPlacementStrategy) {
m.PlacementStrategy = &CreateDiskPlacementGroupRequest_SpreadPlacementStrategy{
SpreadPlacementStrategy: v,
}
}
func (m *CreateDiskPlacementGroupMetadata) SetDiskPlacementGroupId(v string) {
m.DiskPlacementGroupId = v
}
func (m *UpdateDiskPlacementGroupRequest) SetDiskPlacementGroupId(v string) {
m.DiskPlacementGroupId = v
}
func (m *UpdateDiskPlacementGroupRequest) SetUpdateMask(v *field_mask.FieldMask) {
m.UpdateMask = v
}
func (m *UpdateDiskPlacementGroupRequest) SetName(v string) {
m.Name = v
}
func (m *UpdateDiskPlacementGroupRequest) SetDescription(v string) {
m.Description = v
}
func (m *UpdateDiskPlacementGroupRequest) SetLabels(v map[string]string) {
m.Labels = v
}
func (m *UpdateDiskPlacementGroupMetadata) SetDiskPlacementGroupId(v string) {
m.DiskPlacementGroupId = v
}
func (m *DeleteDiskPlacementGroupRequest) SetDiskPlacementGroupId(v string) {
m.DiskPlacementGroupId = v
}
func (m *DeleteDiskPlacementGroupMetadata) SetDiskPlacementGroupId(v string) {
m.DiskPlacementGroupId = v
}
func (m *ListDiskPlacementGroupDisksRequest) SetDiskPlacementGroupId(v string) {
m.DiskPlacementGroupId = v
}
func (m *ListDiskPlacementGroupDisksRequest) SetPageSize(v int64) {
m.PageSize = v
}
func (m *ListDiskPlacementGroupDisksRequest) SetPageToken(v string) {
m.PageToken = v
}
func (m *ListDiskPlacementGroupDisksResponse) SetDisks(v []*Disk) {
m.Disks = v
}
func (m *ListDiskPlacementGroupDisksResponse) SetNextPageToken(v string) {
m.NextPageToken = v
}
func (m *ListDiskPlacementGroupOperationsRequest) SetDiskPlacementGroupId(v string) {
m.DiskPlacementGroupId = v
}
func (m *ListDiskPlacementGroupOperationsRequest) SetPageSize(v int64) {
m.PageSize = v
}
func (m *ListDiskPlacementGroupOperationsRequest) SetPageToken(v string) {
m.PageToken = v
}
func (m *ListDiskPlacementGroupOperationsResponse) SetOperations(v []*operation.Operation) {
m.Operations = v
}
func (m *ListDiskPlacementGroupOperationsResponse) SetNextPageToken(v string) {
m.NextPageToken = v
}

File diff suppressed because it is too large Load Diff

View File

@ -85,6 +85,10 @@ func (m *CreateDiskRequest) SetBlockSize(v int64) {
m.BlockSize = v
}
func (m *CreateDiskRequest) SetDiskPlacementPolicy(v *DiskPlacementPolicy) {
m.DiskPlacementPolicy = v
}
func (m *CreateDiskMetadata) SetDiskId(v string) {
m.DiskId = v
}
@ -113,6 +117,10 @@ func (m *UpdateDiskRequest) SetSize(v int64) {
m.Size = v
}
func (m *UpdateDiskRequest) SetDiskPlacementPolicy(v *DiskPlacementPolicy) {
m.DiskPlacementPolicy = v
}
func (m *UpdateDiskMetadata) SetDiskId(v string) {
m.DiskId = v
}

View File

@ -1,104 +1,177 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/compute/v1/disk_type.proto
package compute
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type DiskType struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the disk type.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Description of the disk type. 0-256 characters long.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Array of availability zones where the disk type is available.
ZoneIds []string `protobuf:"bytes,3,rep,name=zone_ids,json=zoneIds,proto3" json:"zone_ids,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
ZoneIds []string `protobuf:"bytes,3,rep,name=zone_ids,json=zoneIds,proto3" json:"zone_ids,omitempty"`
}
func (m *DiskType) Reset() { *m = DiskType{} }
func (m *DiskType) String() string { return proto.CompactTextString(m) }
func (*DiskType) ProtoMessage() {}
func (x *DiskType) Reset() {
*x = DiskType{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_disk_type_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DiskType) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DiskType) ProtoMessage() {}
func (x *DiskType) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_disk_type_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DiskType.ProtoReflect.Descriptor instead.
func (*DiskType) Descriptor() ([]byte, []int) {
return fileDescriptor_1766b4de885b3ba4, []int{0}
return file_yandex_cloud_compute_v1_disk_type_proto_rawDescGZIP(), []int{0}
}
func (m *DiskType) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DiskType.Unmarshal(m, b)
}
func (m *DiskType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DiskType.Marshal(b, m, deterministic)
}
func (m *DiskType) XXX_Merge(src proto.Message) {
xxx_messageInfo_DiskType.Merge(m, src)
}
func (m *DiskType) XXX_Size() int {
return xxx_messageInfo_DiskType.Size(m)
}
func (m *DiskType) XXX_DiscardUnknown() {
xxx_messageInfo_DiskType.DiscardUnknown(m)
}
var xxx_messageInfo_DiskType proto.InternalMessageInfo
func (m *DiskType) GetId() string {
if m != nil {
return m.Id
func (x *DiskType) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (m *DiskType) GetDescription() string {
if m != nil {
return m.Description
func (x *DiskType) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (m *DiskType) GetZoneIds() []string {
if m != nil {
return m.ZoneIds
func (x *DiskType) GetZoneIds() []string {
if x != nil {
return x.ZoneIds
}
return nil
}
func init() {
proto.RegisterType((*DiskType)(nil), "yandex.cloud.compute.v1.DiskType")
var File_yandex_cloud_compute_v1_disk_type_proto protoreflect.FileDescriptor
var file_yandex_cloud_compute_v1_disk_type_proto_rawDesc = []byte{
0x0a, 0x27, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x74,
0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e,
0x76, 0x31, 0x22, 0x57, 0x0a, 0x08, 0x44, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e,
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x20,
0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
0x12, 0x19, 0x0a, 0x08, 0x7a, 0x6f, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03,
0x28, 0x09, 0x52, 0x07, 0x7a, 0x6f, 0x6e, 0x65, 0x49, 0x64, 0x73, 0x42, 0x62, 0x0a, 0x1b, 0x79,
0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x5a, 0x43, 0x67, 0x69, 0x74, 0x68,
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6d,
0x70, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/compute/v1/disk_type.proto", fileDescriptor_1766b4de885b3ba4)
var (
file_yandex_cloud_compute_v1_disk_type_proto_rawDescOnce sync.Once
file_yandex_cloud_compute_v1_disk_type_proto_rawDescData = file_yandex_cloud_compute_v1_disk_type_proto_rawDesc
)
func file_yandex_cloud_compute_v1_disk_type_proto_rawDescGZIP() []byte {
file_yandex_cloud_compute_v1_disk_type_proto_rawDescOnce.Do(func() {
file_yandex_cloud_compute_v1_disk_type_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_compute_v1_disk_type_proto_rawDescData)
})
return file_yandex_cloud_compute_v1_disk_type_proto_rawDescData
}
var fileDescriptor_1766b4de885b3ba4 = []byte{
// 199 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xaf, 0x4c, 0xcc, 0x4b,
0x49, 0xad, 0xd0, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0x4f, 0xce, 0xcf, 0x2d, 0x28, 0x2d, 0x49,
0xd5, 0x2f, 0x33, 0xd4, 0x4f, 0xc9, 0x2c, 0xce, 0x8e, 0x2f, 0xa9, 0x2c, 0x48, 0xd5, 0x2b, 0x28,
0xca, 0x2f, 0xc9, 0x17, 0x12, 0x87, 0x28, 0xd4, 0x03, 0x2b, 0xd4, 0x83, 0x2a, 0xd4, 0x2b, 0x33,
0x54, 0x0a, 0xe7, 0xe2, 0x70, 0xc9, 0x2c, 0xce, 0x0e, 0xa9, 0x2c, 0x48, 0x15, 0xe2, 0xe3, 0x62,
0xca, 0x4c, 0x91, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x62, 0xca, 0x4c, 0x11, 0x52, 0xe0, 0xe2,
0x4e, 0x49, 0x2d, 0x4e, 0x2e, 0xca, 0x2c, 0x28, 0xc9, 0xcc, 0xcf, 0x93, 0x60, 0x02, 0x4b, 0x20,
0x0b, 0x09, 0x49, 0x72, 0x71, 0x54, 0xe5, 0xe7, 0xa5, 0xc6, 0x67, 0xa6, 0x14, 0x4b, 0x30, 0x2b,
0x30, 0x6b, 0x70, 0x06, 0xb1, 0x83, 0xf8, 0x9e, 0x29, 0xc5, 0x4e, 0x49, 0x5c, 0xd2, 0x28, 0x76,
0x26, 0x16, 0x64, 0x22, 0xd9, 0x1b, 0xe5, 0x9c, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0x04, 0x12, 0xd2,
0x87, 0xa8, 0xd3, 0x85, 0x78, 0x22, 0x3d, 0x5f, 0x37, 0x3d, 0x35, 0x0f, 0xec, 0x6a, 0x7d, 0x1c,
0xbe, 0xb3, 0x86, 0x32, 0x93, 0xd8, 0xc0, 0xca, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x20,
0xf6, 0x52, 0x89, 0x07, 0x01, 0x00, 0x00,
var file_yandex_cloud_compute_v1_disk_type_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_compute_v1_disk_type_proto_goTypes = []interface{}{
(*DiskType)(nil), // 0: yandex.cloud.compute.v1.DiskType
}
var file_yandex_cloud_compute_v1_disk_type_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_yandex_cloud_compute_v1_disk_type_proto_init() }
func file_yandex_cloud_compute_v1_disk_type_proto_init() {
if File_yandex_cloud_compute_v1_disk_type_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_compute_v1_disk_type_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DiskType); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_compute_v1_disk_type_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_compute_v1_disk_type_proto_goTypes,
DependencyIndexes: file_yandex_cloud_compute_v1_disk_type_proto_depIdxs,
MessageInfos: file_yandex_cloud_compute_v1_disk_type_proto_msgTypes,
}.Build()
File_yandex_cloud_compute_v1_disk_type_proto = out.File
file_yandex_cloud_compute_v1_disk_type_proto_rawDesc = nil
file_yandex_cloud_compute_v1_disk_type_proto_goTypes = nil
file_yandex_cloud_compute_v1_disk_type_proto_depIdxs = nil
}

View File

@ -1,73 +1,90 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/compute/v1/disk_type_service.proto
package compute
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type GetDiskTypeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the disk type to return information about.
// To get the disk type ID use a [DiskTypeService.List] request.
DiskTypeId string `protobuf:"bytes,1,opt,name=disk_type_id,json=diskTypeId,proto3" json:"disk_type_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
DiskTypeId string `protobuf:"bytes,1,opt,name=disk_type_id,json=diskTypeId,proto3" json:"disk_type_id,omitempty"`
}
func (m *GetDiskTypeRequest) Reset() { *m = GetDiskTypeRequest{} }
func (m *GetDiskTypeRequest) String() string { return proto.CompactTextString(m) }
func (*GetDiskTypeRequest) ProtoMessage() {}
func (x *GetDiskTypeRequest) Reset() {
*x = GetDiskTypeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_disk_type_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetDiskTypeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetDiskTypeRequest) ProtoMessage() {}
func (x *GetDiskTypeRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_disk_type_service_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetDiskTypeRequest.ProtoReflect.Descriptor instead.
func (*GetDiskTypeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0433b2f525f69d83, []int{0}
return file_yandex_cloud_compute_v1_disk_type_service_proto_rawDescGZIP(), []int{0}
}
func (m *GetDiskTypeRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetDiskTypeRequest.Unmarshal(m, b)
}
func (m *GetDiskTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetDiskTypeRequest.Marshal(b, m, deterministic)
}
func (m *GetDiskTypeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetDiskTypeRequest.Merge(m, src)
}
func (m *GetDiskTypeRequest) XXX_Size() int {
return xxx_messageInfo_GetDiskTypeRequest.Size(m)
}
func (m *GetDiskTypeRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetDiskTypeRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetDiskTypeRequest proto.InternalMessageInfo
func (m *GetDiskTypeRequest) GetDiskTypeId() string {
if m != nil {
return m.DiskTypeId
func (x *GetDiskTypeRequest) GetDiskTypeId() string {
if x != nil {
return x.DiskTypeId
}
return ""
}
type ListDiskTypesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of results per page to return. If the number of available
// results is larger than [page_size],
// the service returns a [ListDiskTypesResponse.next_page_token]
@ -75,52 +92,60 @@ type ListDiskTypesRequest struct {
PageSize int64 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Page token. To get the next page of results, set [page_token] to the
// [ListDiskTypesResponse.next_page_token] returned by a previous list request.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
}
func (m *ListDiskTypesRequest) Reset() { *m = ListDiskTypesRequest{} }
func (m *ListDiskTypesRequest) String() string { return proto.CompactTextString(m) }
func (*ListDiskTypesRequest) ProtoMessage() {}
func (x *ListDiskTypesRequest) Reset() {
*x = ListDiskTypesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_disk_type_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListDiskTypesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListDiskTypesRequest) ProtoMessage() {}
func (x *ListDiskTypesRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_disk_type_service_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListDiskTypesRequest.ProtoReflect.Descriptor instead.
func (*ListDiskTypesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0433b2f525f69d83, []int{1}
return file_yandex_cloud_compute_v1_disk_type_service_proto_rawDescGZIP(), []int{1}
}
func (m *ListDiskTypesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListDiskTypesRequest.Unmarshal(m, b)
}
func (m *ListDiskTypesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListDiskTypesRequest.Marshal(b, m, deterministic)
}
func (m *ListDiskTypesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListDiskTypesRequest.Merge(m, src)
}
func (m *ListDiskTypesRequest) XXX_Size() int {
return xxx_messageInfo_ListDiskTypesRequest.Size(m)
}
func (m *ListDiskTypesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListDiskTypesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListDiskTypesRequest proto.InternalMessageInfo
func (m *ListDiskTypesRequest) GetPageSize() int64 {
if m != nil {
return m.PageSize
func (x *ListDiskTypesRequest) GetPageSize() int64 {
if x != nil {
return x.PageSize
}
return 0
}
func (m *ListDiskTypesRequest) GetPageToken() string {
if m != nil {
return m.PageToken
func (x *ListDiskTypesRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
type ListDiskTypesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// List of disk types.
DiskTypes []*DiskType `protobuf:"bytes,1,rep,name=disk_types,json=diskTypes,proto3" json:"disk_types,omitempty"`
// This token allows you to get the next page of results for list requests. If the number of results
@ -129,91 +154,209 @@ type ListDiskTypesResponse struct {
// for the [ListDiskTypesRequest.page_token] query parameter
// in the next list request. Each subsequent list request will have its own
// [next_page_token] to continue paging through the results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (m *ListDiskTypesResponse) Reset() { *m = ListDiskTypesResponse{} }
func (m *ListDiskTypesResponse) String() string { return proto.CompactTextString(m) }
func (*ListDiskTypesResponse) ProtoMessage() {}
func (x *ListDiskTypesResponse) Reset() {
*x = ListDiskTypesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_disk_type_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListDiskTypesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListDiskTypesResponse) ProtoMessage() {}
func (x *ListDiskTypesResponse) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_disk_type_service_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListDiskTypesResponse.ProtoReflect.Descriptor instead.
func (*ListDiskTypesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0433b2f525f69d83, []int{2}
return file_yandex_cloud_compute_v1_disk_type_service_proto_rawDescGZIP(), []int{2}
}
func (m *ListDiskTypesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListDiskTypesResponse.Unmarshal(m, b)
}
func (m *ListDiskTypesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListDiskTypesResponse.Marshal(b, m, deterministic)
}
func (m *ListDiskTypesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListDiskTypesResponse.Merge(m, src)
}
func (m *ListDiskTypesResponse) XXX_Size() int {
return xxx_messageInfo_ListDiskTypesResponse.Size(m)
}
func (m *ListDiskTypesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListDiskTypesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListDiskTypesResponse proto.InternalMessageInfo
func (m *ListDiskTypesResponse) GetDiskTypes() []*DiskType {
if m != nil {
return m.DiskTypes
func (x *ListDiskTypesResponse) GetDiskTypes() []*DiskType {
if x != nil {
return x.DiskTypes
}
return nil
}
func (m *ListDiskTypesResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
func (x *ListDiskTypesResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
func init() {
proto.RegisterType((*GetDiskTypeRequest)(nil), "yandex.cloud.compute.v1.GetDiskTypeRequest")
proto.RegisterType((*ListDiskTypesRequest)(nil), "yandex.cloud.compute.v1.ListDiskTypesRequest")
proto.RegisterType((*ListDiskTypesResponse)(nil), "yandex.cloud.compute.v1.ListDiskTypesResponse")
var File_yandex_cloud_compute_v1_disk_type_service_proto protoreflect.FileDescriptor
var file_yandex_cloud_compute_v1_disk_type_service_proto_rawDesc = []byte{
0x0a, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x74,
0x79, 0x70, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x17, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76,
0x31, 0x2f, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x1d, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f,
0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0x3c, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x44, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x74,
0x79, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe8, 0xc7,
0x31, 0x01, 0x52, 0x0a, 0x64, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x64, 0x22, 0x69,
0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73,
0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x42, 0x0a, 0xfa, 0xc7, 0x31, 0x06, 0x3c,
0x3d, 0x31, 0x30, 0x30, 0x30, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12,
0x28, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x42, 0x09, 0x8a, 0xc8, 0x31, 0x05, 0x3c, 0x3d, 0x31, 0x30, 0x30, 0x52, 0x09,
0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x81, 0x01, 0x0a, 0x15, 0x4c, 0x69,
0x73, 0x74, 0x44, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x0a, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65,
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x64, 0x69, 0x73, 0x6b,
0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61,
0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0x9e, 0x02,
0x0a, 0x0f, 0x44, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x12, 0x83, 0x01, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x2b, 0x2e, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x44, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02,
0x26, 0x12, 0x24, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x64,
0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x7b, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x74,
0x79, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x84, 0x01, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74,
0x12, 0x2d, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44,
0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x2e, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63,
0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x69,
0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74,
0x65, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x42, 0x62,
0x0a, 0x1b, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x5a, 0x43, 0x67,
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f,
0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6d, 0x70, 0x75,
0x74, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/compute/v1/disk_type_service.proto", fileDescriptor_0433b2f525f69d83)
var (
file_yandex_cloud_compute_v1_disk_type_service_proto_rawDescOnce sync.Once
file_yandex_cloud_compute_v1_disk_type_service_proto_rawDescData = file_yandex_cloud_compute_v1_disk_type_service_proto_rawDesc
)
func file_yandex_cloud_compute_v1_disk_type_service_proto_rawDescGZIP() []byte {
file_yandex_cloud_compute_v1_disk_type_service_proto_rawDescOnce.Do(func() {
file_yandex_cloud_compute_v1_disk_type_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_compute_v1_disk_type_service_proto_rawDescData)
})
return file_yandex_cloud_compute_v1_disk_type_service_proto_rawDescData
}
var fileDescriptor_0433b2f525f69d83 = []byte{
// 436 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xcf, 0x8b, 0xd3, 0x40,
0x14, 0x26, 0xed, 0xba, 0x98, 0xa7, 0xb2, 0x30, 0xb8, 0x6c, 0x89, 0x2e, 0xac, 0x41, 0xba, 0x05,
0x6d, 0xa6, 0x59, 0x8f, 0xae, 0x20, 0x55, 0x58, 0x04, 0x0f, 0x92, 0xdd, 0x93, 0x97, 0x90, 0x36,
0x8f, 0x38, 0xb4, 0xce, 0x8c, 0x3b, 0x93, 0xd0, 0x56, 0x3c, 0xf8, 0xe3, 0xe4, 0xd5, 0xbb, 0xff,
0x4e, 0xbd, 0xfb, 0x2f, 0x78, 0xf0, 0x6f, 0xf0, 0x24, 0x99, 0x24, 0xb5, 0xad, 0x0d, 0xdd, 0xdb,
0x30, 0xef, 0xfb, 0xbe, 0xf7, 0xcd, 0xfb, 0xe6, 0x01, 0x9d, 0x46, 0x3c, 0xc6, 0x09, 0x1d, 0x8e,
0x45, 0x1a, 0xd3, 0xa1, 0x78, 0x2b, 0x53, 0x8d, 0x34, 0xf3, 0x69, 0xcc, 0xd4, 0x28, 0xd4, 0x53,
0x89, 0xa1, 0xc2, 0xcb, 0x8c, 0x0d, 0xd1, 0x93, 0x97, 0x42, 0x0b, 0x72, 0x50, 0x10, 0x3c, 0x43,
0xf0, 0x4a, 0x82, 0x97, 0xf9, 0xce, 0xdd, 0x44, 0x88, 0x64, 0x8c, 0x34, 0x92, 0x8c, 0x46, 0x9c,
0x0b, 0x1d, 0x69, 0x26, 0xb8, 0x2a, 0x68, 0xce, 0xf1, 0xd6, 0x3e, 0x25, 0xf0, 0x70, 0x05, 0x98,
0x45, 0x63, 0x16, 0x1b, 0xa1, 0xa2, 0xec, 0x9e, 0x02, 0x39, 0x43, 0xfd, 0x9c, 0xa9, 0xd1, 0xc5,
0x54, 0x62, 0x80, 0xef, 0x52, 0x54, 0x9a, 0xb4, 0xe1, 0xe6, 0x3f, 0xbf, 0x2c, 0x6e, 0x59, 0x47,
0x56, 0xc7, 0xee, 0xef, 0xfc, 0x9e, 0xfb, 0x56, 0x00, 0x71, 0x09, 0x7e, 0x11, 0xbb, 0x0c, 0x6e,
0xbf, 0x64, 0x6a, 0x41, 0x57, 0x15, 0xff, 0x18, 0x6c, 0x19, 0x25, 0x18, 0x2a, 0x36, 0x43, 0x43,
0x6e, 0xf6, 0xe1, 0xcf, 0xdc, 0xdf, 0x3d, 0x7d, 0xe2, 0xf7, 0x7a, 0xbd, 0xe0, 0x7a, 0x5e, 0x3c,
0x67, 0x33, 0x24, 0x1d, 0x00, 0x03, 0xd4, 0x62, 0x84, 0xbc, 0xd5, 0x30, 0x6d, 0xec, 0xaf, 0x3f,
0xfc, 0x6b, 0x06, 0x19, 0x18, 0x95, 0x8b, 0xbc, 0xe6, 0x7e, 0xb4, 0x60, 0x7f, 0xad, 0x97, 0x92,
0x82, 0x2b, 0x24, 0x4f, 0x01, 0x16, 0x66, 0x55, 0xcb, 0x3a, 0x6a, 0x76, 0x6e, 0x9c, 0xdc, 0xf3,
0x6a, 0xc6, 0xea, 0x2d, 0x9e, 0x6a, 0x57, 0xef, 0x50, 0xa4, 0x0d, 0x7b, 0x1c, 0x27, 0x3a, 0x5c,
0xb7, 0x12, 0xdc, 0xca, 0xaf, 0x5f, 0x55, 0x1e, 0x4e, 0xbe, 0x37, 0x60, 0xaf, 0xe2, 0x9f, 0x17,
0x29, 0x92, 0xcf, 0x16, 0x34, 0xcf, 0x50, 0x93, 0x07, 0xb5, 0x1d, 0xff, 0x9f, 0xaf, 0xb3, 0xdd,
0x9e, 0xfb, 0xf0, 0xd3, 0xcf, 0x5f, 0xdf, 0x1a, 0x6d, 0x72, 0x7f, 0x3d, 0x5c, 0x63, 0x99, 0xbe,
0x5f, 0xce, 0xe7, 0x03, 0xf9, 0x62, 0xc1, 0x4e, 0x3e, 0x1d, 0xd2, 0xad, 0x55, 0xde, 0x14, 0x94,
0xe3, 0x5d, 0x15, 0x5e, 0xcc, 0xda, 0x3d, 0x34, 0xae, 0x0e, 0xc8, 0xfe, 0x46, 0x57, 0xfd, 0x01,
0xdc, 0x59, 0xd1, 0x8b, 0x24, 0x5b, 0xd2, 0x7c, 0xfd, 0x2c, 0x61, 0xfa, 0x4d, 0x3a, 0xc8, 0xaf,
0xca, 0x3d, 0xe9, 0x16, 0xdf, 0x32, 0x11, 0xdd, 0x04, 0xb9, 0xf9, 0x91, 0x75, 0x0b, 0xf4, 0xb8,
0x3c, 0x0e, 0x76, 0x0d, 0xec, 0xd1, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x68, 0xcb, 0xd9, 0xc1,
0x6a, 0x03, 0x00, 0x00,
var file_yandex_cloud_compute_v1_disk_type_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_compute_v1_disk_type_service_proto_goTypes = []interface{}{
(*GetDiskTypeRequest)(nil), // 0: yandex.cloud.compute.v1.GetDiskTypeRequest
(*ListDiskTypesRequest)(nil), // 1: yandex.cloud.compute.v1.ListDiskTypesRequest
(*ListDiskTypesResponse)(nil), // 2: yandex.cloud.compute.v1.ListDiskTypesResponse
(*DiskType)(nil), // 3: yandex.cloud.compute.v1.DiskType
}
var file_yandex_cloud_compute_v1_disk_type_service_proto_depIdxs = []int32{
3, // 0: yandex.cloud.compute.v1.ListDiskTypesResponse.disk_types:type_name -> yandex.cloud.compute.v1.DiskType
0, // 1: yandex.cloud.compute.v1.DiskTypeService.Get:input_type -> yandex.cloud.compute.v1.GetDiskTypeRequest
1, // 2: yandex.cloud.compute.v1.DiskTypeService.List:input_type -> yandex.cloud.compute.v1.ListDiskTypesRequest
3, // 3: yandex.cloud.compute.v1.DiskTypeService.Get:output_type -> yandex.cloud.compute.v1.DiskType
2, // 4: yandex.cloud.compute.v1.DiskTypeService.List:output_type -> yandex.cloud.compute.v1.ListDiskTypesResponse
3, // [3:5] is the sub-list for method output_type
1, // [1:3] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_yandex_cloud_compute_v1_disk_type_service_proto_init() }
func file_yandex_cloud_compute_v1_disk_type_service_proto_init() {
if File_yandex_cloud_compute_v1_disk_type_service_proto != nil {
return
}
file_yandex_cloud_compute_v1_disk_type_proto_init()
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_compute_v1_disk_type_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetDiskTypeRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_compute_v1_disk_type_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListDiskTypesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_compute_v1_disk_type_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListDiskTypesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_compute_v1_disk_type_service_proto_rawDesc,
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_yandex_cloud_compute_v1_disk_type_service_proto_goTypes,
DependencyIndexes: file_yandex_cloud_compute_v1_disk_type_service_proto_depIdxs,
MessageInfos: file_yandex_cloud_compute_v1_disk_type_service_proto_msgTypes,
}.Build()
File_yandex_cloud_compute_v1_disk_type_service_proto = out.File
file_yandex_cloud_compute_v1_disk_type_service_proto_rawDesc = nil
file_yandex_cloud_compute_v1_disk_type_service_proto_goTypes = nil
file_yandex_cloud_compute_v1_disk_type_service_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
@ -276,10 +419,10 @@ type DiskTypeServiceServer interface {
type UnimplementedDiskTypeServiceServer struct {
}
func (*UnimplementedDiskTypeServiceServer) Get(ctx context.Context, req *GetDiskTypeRequest) (*DiskType, error) {
func (*UnimplementedDiskTypeServiceServer) Get(context.Context, *GetDiskTypeRequest) (*DiskType, error) {
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
}
func (*UnimplementedDiskTypeServiceServer) List(ctx context.Context, req *ListDiskTypesRequest) (*ListDiskTypesResponse, error) {
func (*UnimplementedDiskTypeServiceServer) List(context.Context, *ListDiskTypesRequest) (*ListDiskTypesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
}

View File

@ -0,0 +1,705 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/compute/v1/host_group.proto
package compute
import (
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type MaintenancePolicy int32
const (
MaintenancePolicy_MAINTENANCE_POLICY_UNSPECIFIED MaintenancePolicy = 0
// Restart instances on the same host after maintenance event
MaintenancePolicy_RESTART MaintenancePolicy = 1
// Migrate instances to another host before maintenance event
MaintenancePolicy_MIGRATE MaintenancePolicy = 2
)
// Enum value maps for MaintenancePolicy.
var (
MaintenancePolicy_name = map[int32]string{
0: "MAINTENANCE_POLICY_UNSPECIFIED",
1: "RESTART",
2: "MIGRATE",
}
MaintenancePolicy_value = map[string]int32{
"MAINTENANCE_POLICY_UNSPECIFIED": 0,
"RESTART": 1,
"MIGRATE": 2,
}
)
func (x MaintenancePolicy) Enum() *MaintenancePolicy {
p := new(MaintenancePolicy)
*p = x
return p
}
func (x MaintenancePolicy) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MaintenancePolicy) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_compute_v1_host_group_proto_enumTypes[0].Descriptor()
}
func (MaintenancePolicy) Type() protoreflect.EnumType {
return &file_yandex_cloud_compute_v1_host_group_proto_enumTypes[0]
}
func (x MaintenancePolicy) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MaintenancePolicy.Descriptor instead.
func (MaintenancePolicy) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_compute_v1_host_group_proto_rawDescGZIP(), []int{0}
}
type HostGroup_Status int32
const (
HostGroup_STATUS_UNSPECIFIED HostGroup_Status = 0
HostGroup_CREATING HostGroup_Status = 1
HostGroup_READY HostGroup_Status = 2
HostGroup_UPDATING HostGroup_Status = 3
HostGroup_DELETING HostGroup_Status = 4
)
// Enum value maps for HostGroup_Status.
var (
HostGroup_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "CREATING",
2: "READY",
3: "UPDATING",
4: "DELETING",
}
HostGroup_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"CREATING": 1,
"READY": 2,
"UPDATING": 3,
"DELETING": 4,
}
)
func (x HostGroup_Status) Enum() *HostGroup_Status {
p := new(HostGroup_Status)
*p = x
return p
}
func (x HostGroup_Status) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (HostGroup_Status) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_compute_v1_host_group_proto_enumTypes[1].Descriptor()
}
func (HostGroup_Status) Type() protoreflect.EnumType {
return &file_yandex_cloud_compute_v1_host_group_proto_enumTypes[1]
}
func (x HostGroup_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use HostGroup_Status.Descriptor instead.
func (HostGroup_Status) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_compute_v1_host_group_proto_rawDescGZIP(), []int{0, 0}
}
type Host_Status int32
const (
Host_STATUS_UNSPECIFIED Host_Status = 0
Host_UP Host_Status = 1
Host_DOWN Host_Status = 2
)
// Enum value maps for Host_Status.
var (
Host_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "UP",
2: "DOWN",
}
Host_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"UP": 1,
"DOWN": 2,
}
)
func (x Host_Status) Enum() *Host_Status {
p := new(Host_Status)
*p = x
return p
}
func (x Host_Status) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Host_Status) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_compute_v1_host_group_proto_enumTypes[2].Descriptor()
}
func (Host_Status) Type() protoreflect.EnumType {
return &file_yandex_cloud_compute_v1_host_group_proto_enumTypes[2]
}
func (x Host_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Host_Status.Descriptor instead.
func (Host_Status) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_compute_v1_host_group_proto_rawDescGZIP(), []int{1, 0}
}
// Represents group of dedicated hosts
type HostGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the group
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// ID of the folder that the group belongs to.
FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
// Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// Name of the group. The name is unique within the folder.
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
// Description of the group.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// Resource labels as `key:value` pairs.
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"`
// Availability zone where all dedicated hosts are allocated
ZoneId string `protobuf:"bytes,7,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"`
// Status of the group
Status HostGroup_Status `protobuf:"varint,8,opt,name=status,proto3,enum=yandex.cloud.compute.v1.HostGroup_Status" json:"status,omitempty"`
// ID of host type. Resources provided by each host of the group
TypeId string `protobuf:"bytes,9,opt,name=type_id,json=typeId,proto3" json:"type_id,omitempty"`
// Behaviour on maintenance events
MaintenancePolicy MaintenancePolicy `protobuf:"varint,10,opt,name=maintenance_policy,json=maintenancePolicy,proto3,enum=yandex.cloud.compute.v1.MaintenancePolicy" json:"maintenance_policy,omitempty"`
// Scale policy. Only fixed number of hosts are supported at this moment.
ScalePolicy *ScalePolicy `protobuf:"bytes,11,opt,name=scale_policy,json=scalePolicy,proto3" json:"scale_policy,omitempty"`
}
func (x *HostGroup) Reset() {
*x = HostGroup{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_host_group_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HostGroup) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HostGroup) ProtoMessage() {}
func (x *HostGroup) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_host_group_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use HostGroup.ProtoReflect.Descriptor instead.
func (*HostGroup) Descriptor() ([]byte, []int) {
return file_yandex_cloud_compute_v1_host_group_proto_rawDescGZIP(), []int{0}
}
func (x *HostGroup) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *HostGroup) GetFolderId() string {
if x != nil {
return x.FolderId
}
return ""
}
func (x *HostGroup) GetCreatedAt() *timestamp.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *HostGroup) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *HostGroup) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *HostGroup) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *HostGroup) GetZoneId() string {
if x != nil {
return x.ZoneId
}
return ""
}
func (x *HostGroup) GetStatus() HostGroup_Status {
if x != nil {
return x.Status
}
return HostGroup_STATUS_UNSPECIFIED
}
func (x *HostGroup) GetTypeId() string {
if x != nil {
return x.TypeId
}
return ""
}
func (x *HostGroup) GetMaintenancePolicy() MaintenancePolicy {
if x != nil {
return x.MaintenancePolicy
}
return MaintenancePolicy_MAINTENANCE_POLICY_UNSPECIFIED
}
func (x *HostGroup) GetScalePolicy() *ScalePolicy {
if x != nil {
return x.ScalePolicy
}
return nil
}
// Represents a dedicated host
type Host struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the host.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Current status of the host. New instances are unable to start on host in DOWN status.
Status Host_Status `protobuf:"varint,2,opt,name=status,proto3,enum=yandex.cloud.compute.v1.Host_Status" json:"status,omitempty"`
// ID of the physical server that the host belongs to.
ServerId string `protobuf:"bytes,3,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
}
func (x *Host) Reset() {
*x = Host{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_host_group_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Host) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Host) ProtoMessage() {}
func (x *Host) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_host_group_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Host.ProtoReflect.Descriptor instead.
func (*Host) Descriptor() ([]byte, []int) {
return file_yandex_cloud_compute_v1_host_group_proto_rawDescGZIP(), []int{1}
}
func (x *Host) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Host) GetStatus() Host_Status {
if x != nil {
return x.Status
}
return Host_STATUS_UNSPECIFIED
}
func (x *Host) GetServerId() string {
if x != nil {
return x.ServerId
}
return ""
}
type ScalePolicy struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to ScaleType:
// *ScalePolicy_FixedScale_
ScaleType isScalePolicy_ScaleType `protobuf_oneof:"scale_type"`
}
func (x *ScalePolicy) Reset() {
*x = ScalePolicy{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_host_group_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ScalePolicy) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ScalePolicy) ProtoMessage() {}
func (x *ScalePolicy) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_host_group_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ScalePolicy.ProtoReflect.Descriptor instead.
func (*ScalePolicy) Descriptor() ([]byte, []int) {
return file_yandex_cloud_compute_v1_host_group_proto_rawDescGZIP(), []int{2}
}
func (m *ScalePolicy) GetScaleType() isScalePolicy_ScaleType {
if m != nil {
return m.ScaleType
}
return nil
}
func (x *ScalePolicy) GetFixedScale() *ScalePolicy_FixedScale {
if x, ok := x.GetScaleType().(*ScalePolicy_FixedScale_); ok {
return x.FixedScale
}
return nil
}
type isScalePolicy_ScaleType interface {
isScalePolicy_ScaleType()
}
type ScalePolicy_FixedScale_ struct {
FixedScale *ScalePolicy_FixedScale `protobuf:"bytes,1,opt,name=fixed_scale,json=fixedScale,proto3,oneof"`
}
func (*ScalePolicy_FixedScale_) isScalePolicy_ScaleType() {}
type ScalePolicy_FixedScale struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
}
func (x *ScalePolicy_FixedScale) Reset() {
*x = ScalePolicy_FixedScale{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_host_group_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ScalePolicy_FixedScale) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ScalePolicy_FixedScale) ProtoMessage() {}
func (x *ScalePolicy_FixedScale) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_host_group_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ScalePolicy_FixedScale.ProtoReflect.Descriptor instead.
func (*ScalePolicy_FixedScale) Descriptor() ([]byte, []int) {
return file_yandex_cloud_compute_v1_host_group_proto_rawDescGZIP(), []int{2, 0}
}
func (x *ScalePolicy_FixedScale) GetSize() int64 {
if x != nil {
return x.Size
}
return 0
}
var File_yandex_cloud_compute_v1_host_group_proto protoreflect.FileDescriptor
var file_yandex_cloud_compute_v1_host_group_proto_rawDesc = []byte{
0x0a, 0x28, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x67,
0x72, 0x6f, 0x75, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65,
0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9c, 0x05, 0x0a, 0x09, 0x48, 0x6f, 0x73, 0x74, 0x47, 0x72, 0x6f,
0x75, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12,
0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,
0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20,
0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
0x12, 0x46, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x2e, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x47,
0x72, 0x6f, 0x75, 0x70, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x7a, 0x6f, 0x6e, 0x65,
0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x7a, 0x6f, 0x6e, 0x65, 0x49,
0x64, 0x12, 0x41, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28,
0x0e, 0x32, 0x29, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x6f, 0x73, 0x74,
0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74,
0x61, 0x74, 0x75, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x18,
0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x79, 0x70, 0x65, 0x49, 0x64, 0x12, 0x59, 0x0a,
0x12, 0x6d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x70, 0x6f, 0x6c,
0x69, 0x63, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x50,
0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x11, 0x6d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e,
0x63, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x47, 0x0a, 0x0c, 0x73, 0x63, 0x61, 0x6c,
0x65, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24,
0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f,
0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x61, 0x6c, 0x65, 0x50, 0x6f,
0x6c, 0x69, 0x63, 0x79, 0x52, 0x0b, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63,
0x79, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x55, 0x0a, 0x06,
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53,
0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c,
0x0a, 0x08, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05,
0x52, 0x45, 0x41, 0x44, 0x59, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x55, 0x50, 0x44, 0x41, 0x54,
0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x49, 0x4e,
0x47, 0x10, 0x04, 0x22, 0xa5, 0x01, 0x0a, 0x04, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3c, 0x0a, 0x06,
0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x79,
0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70,
0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74,
0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65,
0x72, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73,
0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x22, 0x32, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75,
0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50,
0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x55, 0x50, 0x10,
0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x22, 0x91, 0x01, 0x0a, 0x0b,
0x53, 0x63, 0x61, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x52, 0x0a, 0x0b, 0x66,
0x69, 0x78, 0x65, 0x64, 0x5f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x2f, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x61, 0x6c, 0x65,
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x46, 0x69, 0x78, 0x65, 0x64, 0x53, 0x63, 0x61, 0x6c,
0x65, 0x48, 0x00, 0x52, 0x0a, 0x66, 0x69, 0x78, 0x65, 0x64, 0x53, 0x63, 0x61, 0x6c, 0x65, 0x1a,
0x20, 0x0a, 0x0a, 0x46, 0x69, 0x78, 0x65, 0x64, 0x53, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x12, 0x0a,
0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a,
0x65, 0x42, 0x0c, 0x0a, 0x0a, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2a,
0x51, 0x0a, 0x11, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x6f,
0x6c, 0x69, 0x63, 0x79, 0x12, 0x22, 0x0a, 0x1e, 0x4d, 0x41, 0x49, 0x4e, 0x54, 0x45, 0x4e, 0x41,
0x4e, 0x43, 0x45, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x53, 0x54,
0x41, 0x52, 0x54, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45,
0x10, 0x02, 0x42, 0x62, 0x0a, 0x1b, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f,
0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76,
0x31, 0x5a, 0x43, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61,
0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65,
0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x63,
0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_yandex_cloud_compute_v1_host_group_proto_rawDescOnce sync.Once
file_yandex_cloud_compute_v1_host_group_proto_rawDescData = file_yandex_cloud_compute_v1_host_group_proto_rawDesc
)
func file_yandex_cloud_compute_v1_host_group_proto_rawDescGZIP() []byte {
file_yandex_cloud_compute_v1_host_group_proto_rawDescOnce.Do(func() {
file_yandex_cloud_compute_v1_host_group_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_compute_v1_host_group_proto_rawDescData)
})
return file_yandex_cloud_compute_v1_host_group_proto_rawDescData
}
var file_yandex_cloud_compute_v1_host_group_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
var file_yandex_cloud_compute_v1_host_group_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_yandex_cloud_compute_v1_host_group_proto_goTypes = []interface{}{
(MaintenancePolicy)(0), // 0: yandex.cloud.compute.v1.MaintenancePolicy
(HostGroup_Status)(0), // 1: yandex.cloud.compute.v1.HostGroup.Status
(Host_Status)(0), // 2: yandex.cloud.compute.v1.Host.Status
(*HostGroup)(nil), // 3: yandex.cloud.compute.v1.HostGroup
(*Host)(nil), // 4: yandex.cloud.compute.v1.Host
(*ScalePolicy)(nil), // 5: yandex.cloud.compute.v1.ScalePolicy
nil, // 6: yandex.cloud.compute.v1.HostGroup.LabelsEntry
(*ScalePolicy_FixedScale)(nil), // 7: yandex.cloud.compute.v1.ScalePolicy.FixedScale
(*timestamp.Timestamp)(nil), // 8: google.protobuf.Timestamp
}
var file_yandex_cloud_compute_v1_host_group_proto_depIdxs = []int32{
8, // 0: yandex.cloud.compute.v1.HostGroup.created_at:type_name -> google.protobuf.Timestamp
6, // 1: yandex.cloud.compute.v1.HostGroup.labels:type_name -> yandex.cloud.compute.v1.HostGroup.LabelsEntry
1, // 2: yandex.cloud.compute.v1.HostGroup.status:type_name -> yandex.cloud.compute.v1.HostGroup.Status
0, // 3: yandex.cloud.compute.v1.HostGroup.maintenance_policy:type_name -> yandex.cloud.compute.v1.MaintenancePolicy
5, // 4: yandex.cloud.compute.v1.HostGroup.scale_policy:type_name -> yandex.cloud.compute.v1.ScalePolicy
2, // 5: yandex.cloud.compute.v1.Host.status:type_name -> yandex.cloud.compute.v1.Host.Status
7, // 6: yandex.cloud.compute.v1.ScalePolicy.fixed_scale:type_name -> yandex.cloud.compute.v1.ScalePolicy.FixedScale
7, // [7:7] is the sub-list for method output_type
7, // [7:7] is the sub-list for method input_type
7, // [7:7] is the sub-list for extension type_name
7, // [7:7] is the sub-list for extension extendee
0, // [0:7] is the sub-list for field type_name
}
func init() { file_yandex_cloud_compute_v1_host_group_proto_init() }
func file_yandex_cloud_compute_v1_host_group_proto_init() {
if File_yandex_cloud_compute_v1_host_group_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_compute_v1_host_group_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HostGroup); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_compute_v1_host_group_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Host); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_compute_v1_host_group_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ScalePolicy); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_compute_v1_host_group_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ScalePolicy_FixedScale); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_yandex_cloud_compute_v1_host_group_proto_msgTypes[2].OneofWrappers = []interface{}{
(*ScalePolicy_FixedScale_)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_compute_v1_host_group_proto_rawDesc,
NumEnums: 3,
NumMessages: 5,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_compute_v1_host_group_proto_goTypes,
DependencyIndexes: file_yandex_cloud_compute_v1_host_group_proto_depIdxs,
EnumInfos: file_yandex_cloud_compute_v1_host_group_proto_enumTypes,
MessageInfos: file_yandex_cloud_compute_v1_host_group_proto_msgTypes,
}.Build()
File_yandex_cloud_compute_v1_host_group_proto = out.File
file_yandex_cloud_compute_v1_host_group_proto_rawDesc = nil
file_yandex_cloud_compute_v1_host_group_proto_goTypes = nil
file_yandex_cloud_compute_v1_host_group_proto_depIdxs = nil
}

View File

@ -0,0 +1,79 @@
// Code generated by protoc-gen-goext. DO NOT EDIT.
package compute
import (
timestamp "github.com/golang/protobuf/ptypes/timestamp"
)
func (m *HostGroup) SetId(v string) {
m.Id = v
}
func (m *HostGroup) SetFolderId(v string) {
m.FolderId = v
}
func (m *HostGroup) SetCreatedAt(v *timestamp.Timestamp) {
m.CreatedAt = v
}
func (m *HostGroup) SetName(v string) {
m.Name = v
}
func (m *HostGroup) SetDescription(v string) {
m.Description = v
}
func (m *HostGroup) SetLabels(v map[string]string) {
m.Labels = v
}
func (m *HostGroup) SetZoneId(v string) {
m.ZoneId = v
}
func (m *HostGroup) SetStatus(v HostGroup_Status) {
m.Status = v
}
func (m *HostGroup) SetTypeId(v string) {
m.TypeId = v
}
func (m *HostGroup) SetMaintenancePolicy(v MaintenancePolicy) {
m.MaintenancePolicy = v
}
func (m *HostGroup) SetScalePolicy(v *ScalePolicy) {
m.ScalePolicy = v
}
func (m *Host) SetId(v string) {
m.Id = v
}
func (m *Host) SetStatus(v Host_Status) {
m.Status = v
}
func (m *Host) SetServerId(v string) {
m.ServerId = v
}
type ScalePolicy_ScaleType = isScalePolicy_ScaleType
func (m *ScalePolicy) SetScaleType(v ScalePolicy_ScaleType) {
m.ScaleType = v
}
func (m *ScalePolicy) SetFixedScale(v *ScalePolicy_FixedScale) {
m.ScaleType = &ScalePolicy_FixedScale_{
FixedScale: v,
}
}
func (m *ScalePolicy_FixedScale) SetSize(v int64) {
m.Size = v
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,176 @@
// Code generated by protoc-gen-goext. DO NOT EDIT.
package compute
import (
operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation"
field_mask "google.golang.org/genproto/protobuf/field_mask"
)
func (m *GetHostGroupRequest) SetHostGroupId(v string) {
m.HostGroupId = v
}
func (m *ListHostGroupsRequest) SetFolderId(v string) {
m.FolderId = v
}
func (m *ListHostGroupsRequest) SetPageSize(v int64) {
m.PageSize = v
}
func (m *ListHostGroupsRequest) SetPageToken(v string) {
m.PageToken = v
}
func (m *ListHostGroupsRequest) SetFilter(v string) {
m.Filter = v
}
func (m *ListHostGroupsResponse) SetHostGroups(v []*HostGroup) {
m.HostGroups = v
}
func (m *ListHostGroupsResponse) SetNextPageToken(v string) {
m.NextPageToken = v
}
func (m *CreateHostGroupRequest) SetFolderId(v string) {
m.FolderId = v
}
func (m *CreateHostGroupRequest) SetName(v string) {
m.Name = v
}
func (m *CreateHostGroupRequest) SetDescription(v string) {
m.Description = v
}
func (m *CreateHostGroupRequest) SetLabels(v map[string]string) {
m.Labels = v
}
func (m *CreateHostGroupRequest) SetZoneId(v string) {
m.ZoneId = v
}
func (m *CreateHostGroupRequest) SetTypeId(v string) {
m.TypeId = v
}
func (m *CreateHostGroupRequest) SetMaintenancePolicy(v MaintenancePolicy) {
m.MaintenancePolicy = v
}
func (m *CreateHostGroupRequest) SetScalePolicy(v *ScalePolicy) {
m.ScalePolicy = v
}
func (m *CreateHostGroupMetadata) SetHostGroupId(v string) {
m.HostGroupId = v
}
func (m *UpdateHostGroupRequest) SetHostGroupId(v string) {
m.HostGroupId = v
}
func (m *UpdateHostGroupRequest) SetUpdateMask(v *field_mask.FieldMask) {
m.UpdateMask = v
}
func (m *UpdateHostGroupRequest) SetName(v string) {
m.Name = v
}
func (m *UpdateHostGroupRequest) SetDescription(v string) {
m.Description = v
}
func (m *UpdateHostGroupRequest) SetLabels(v map[string]string) {
m.Labels = v
}
func (m *UpdateHostGroupRequest) SetMaintenancePolicy(v MaintenancePolicy) {
m.MaintenancePolicy = v
}
func (m *UpdateHostGroupRequest) SetScalePolicy(v *ScalePolicy) {
m.ScalePolicy = v
}
func (m *UpdateHostGroupMetadata) SetHostGroupId(v string) {
m.HostGroupId = v
}
func (m *DeleteHostGroupRequest) SetHostGroupId(v string) {
m.HostGroupId = v
}
func (m *DeleteHostGroupMetadata) SetHostGroupId(v string) {
m.HostGroupId = v
}
func (m *ListHostGroupInstancesRequest) SetHostGroupId(v string) {
m.HostGroupId = v
}
func (m *ListHostGroupInstancesRequest) SetPageSize(v int64) {
m.PageSize = v
}
func (m *ListHostGroupInstancesRequest) SetPageToken(v string) {
m.PageToken = v
}
func (m *ListHostGroupInstancesRequest) SetFilter(v string) {
m.Filter = v
}
func (m *ListHostGroupInstancesResponse) SetInstances(v []*Instance) {
m.Instances = v
}
func (m *ListHostGroupInstancesResponse) SetNextPageToken(v string) {
m.NextPageToken = v
}
func (m *ListHostGroupHostsRequest) SetHostGroupId(v string) {
m.HostGroupId = v
}
func (m *ListHostGroupHostsRequest) SetPageSize(v int64) {
m.PageSize = v
}
func (m *ListHostGroupHostsRequest) SetPageToken(v string) {
m.PageToken = v
}
func (m *ListHostGroupHostsResponse) SetHosts(v []*Host) {
m.Hosts = v
}
func (m *ListHostGroupHostsResponse) SetNextPageToken(v string) {
m.NextPageToken = v
}
func (m *ListHostGroupOperationsRequest) SetHostGroupId(v string) {
m.HostGroupId = v
}
func (m *ListHostGroupOperationsRequest) SetPageSize(v int64) {
m.PageSize = v
}
func (m *ListHostGroupOperationsRequest) SetPageToken(v string) {
m.PageToken = v
}
func (m *ListHostGroupOperationsResponse) SetOperations(v []*operation.Operation) {
m.Operations = v
}
func (m *ListHostGroupOperationsResponse) SetNextPageToken(v string) {
m.NextPageToken = v
}

View File

@ -0,0 +1,179 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/compute/v1/host_type.proto
package compute
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// Represents host resources
// Note: Platform can use hosts with different number of memory and cores
// TODO: Do we need sockets here?
type HostType struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Unique type identifier
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Total number of cores available for instances
Cores int64 `protobuf:"varint,2,opt,name=cores,proto3" json:"cores,omitempty"`
// Ammount of memory available for instances
Memory int64 `protobuf:"varint,3,opt,name=memory,proto3" json:"memory,omitempty"`
}
func (x *HostType) Reset() {
*x = HostType{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_host_type_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HostType) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HostType) ProtoMessage() {}
func (x *HostType) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_host_type_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use HostType.ProtoReflect.Descriptor instead.
func (*HostType) Descriptor() ([]byte, []int) {
return file_yandex_cloud_compute_v1_host_type_proto_rawDescGZIP(), []int{0}
}
func (x *HostType) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *HostType) GetCores() int64 {
if x != nil {
return x.Cores
}
return 0
}
func (x *HostType) GetMemory() int64 {
if x != nil {
return x.Memory
}
return 0
}
var File_yandex_cloud_compute_v1_host_type_proto protoreflect.FileDescriptor
var file_yandex_cloud_compute_v1_host_type_proto_rawDesc = []byte{
0x0a, 0x27, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x74,
0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e,
0x76, 0x31, 0x22, 0x48, 0x0a, 0x08, 0x48, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e,
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14,
0x0a, 0x05, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63,
0x6f, 0x72, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x03,
0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x42, 0x62, 0x0a, 0x1b,
0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x5a, 0x43, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63,
0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f,
0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_yandex_cloud_compute_v1_host_type_proto_rawDescOnce sync.Once
file_yandex_cloud_compute_v1_host_type_proto_rawDescData = file_yandex_cloud_compute_v1_host_type_proto_rawDesc
)
func file_yandex_cloud_compute_v1_host_type_proto_rawDescGZIP() []byte {
file_yandex_cloud_compute_v1_host_type_proto_rawDescOnce.Do(func() {
file_yandex_cloud_compute_v1_host_type_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_compute_v1_host_type_proto_rawDescData)
})
return file_yandex_cloud_compute_v1_host_type_proto_rawDescData
}
var file_yandex_cloud_compute_v1_host_type_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_compute_v1_host_type_proto_goTypes = []interface{}{
(*HostType)(nil), // 0: yandex.cloud.compute.v1.HostType
}
var file_yandex_cloud_compute_v1_host_type_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_yandex_cloud_compute_v1_host_type_proto_init() }
func file_yandex_cloud_compute_v1_host_type_proto_init() {
if File_yandex_cloud_compute_v1_host_type_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_compute_v1_host_type_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HostType); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_compute_v1_host_type_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_compute_v1_host_type_proto_goTypes,
DependencyIndexes: file_yandex_cloud_compute_v1_host_type_proto_depIdxs,
MessageInfos: file_yandex_cloud_compute_v1_host_type_proto_msgTypes,
}.Build()
File_yandex_cloud_compute_v1_host_type_proto = out.File
file_yandex_cloud_compute_v1_host_type_proto_rawDesc = nil
file_yandex_cloud_compute_v1_host_type_proto_goTypes = nil
file_yandex_cloud_compute_v1_host_type_proto_depIdxs = nil
}

View File

@ -0,0 +1,15 @@
// Code generated by protoc-gen-goext. DO NOT EDIT.
package compute
func (m *HostType) SetId(v string) {
m.Id = v
}
func (m *HostType) SetCores(v int64) {
m.Cores = v
}
func (m *HostType) SetMemory(v int64) {
m.Memory = v
}

View File

@ -0,0 +1,482 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/compute/v1/host_type_service.proto
package compute
import (
context "context"
proto "github.com/golang/protobuf/proto"
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type GetHostTypeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the host type to return.
//
// To get a host type ID make a [HostTypeService.List] request.
HostTypeId string `protobuf:"bytes,1,opt,name=host_type_id,json=hostTypeId,proto3" json:"host_type_id,omitempty"`
}
func (x *GetHostTypeRequest) Reset() {
*x = GetHostTypeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_host_type_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetHostTypeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetHostTypeRequest) ProtoMessage() {}
func (x *GetHostTypeRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_host_type_service_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetHostTypeRequest.ProtoReflect.Descriptor instead.
func (*GetHostTypeRequest) Descriptor() ([]byte, []int) {
return file_yandex_cloud_compute_v1_host_type_service_proto_rawDescGZIP(), []int{0}
}
func (x *GetHostTypeRequest) GetHostTypeId() string {
if x != nil {
return x.HostTypeId
}
return ""
}
type ListHostTypesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of results per page to return. If the number of available
// results is larger than [page_size],
// the service returns a [ListHostTypesResponse.next_page_token]
// that can be used to get the next page of results in subsequent list requests.
PageSize int64 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Page token. To get the next page of results,
// set [page_token] to the [ListHostTypesResponse.next_page_token]
// returned by a previous list request.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
}
func (x *ListHostTypesRequest) Reset() {
*x = ListHostTypesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_host_type_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListHostTypesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListHostTypesRequest) ProtoMessage() {}
func (x *ListHostTypesRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_host_type_service_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListHostTypesRequest.ProtoReflect.Descriptor instead.
func (*ListHostTypesRequest) Descriptor() ([]byte, []int) {
return file_yandex_cloud_compute_v1_host_type_service_proto_rawDescGZIP(), []int{1}
}
func (x *ListHostTypesRequest) GetPageSize() int64 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListHostTypesRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
type ListHostTypesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Lists host types.
HostTypes []*HostType `protobuf:"bytes,1,rep,name=host_types,json=hostTypes,proto3" json:"host_types,omitempty"`
// Token for getting the next page of the list. If the number of results is greater than
// the specified [ListHostTypesRequest.page_size], use `next_page_token` as the value
// for the [ListHostTypesRequest.page_token] parameter in the next list request.
//
// Each subsequent page will have its own `next_page_token` to continue paging through the results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListHostTypesResponse) Reset() {
*x = ListHostTypesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_host_type_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListHostTypesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListHostTypesResponse) ProtoMessage() {}
func (x *ListHostTypesResponse) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_host_type_service_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListHostTypesResponse.ProtoReflect.Descriptor instead.
func (*ListHostTypesResponse) Descriptor() ([]byte, []int) {
return file_yandex_cloud_compute_v1_host_type_service_proto_rawDescGZIP(), []int{2}
}
func (x *ListHostTypesResponse) GetHostTypes() []*HostType {
if x != nil {
return x.HostTypes
}
return nil
}
func (x *ListHostTypesResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
var File_yandex_cloud_compute_v1_host_type_service_proto protoreflect.FileDescriptor
var file_yandex_cloud_compute_v1_host_type_service_proto_rawDesc = []byte{
0x0a, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x74,
0x79, 0x70, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x17, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76,
0x31, 0x2f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x1d, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f,
0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0x44, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x0c, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x74,
0x79, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0c, 0xe8, 0xc7,
0x31, 0x01, 0x8a, 0xc8, 0x31, 0x04, 0x3c, 0x3d, 0x35, 0x30, 0x52, 0x0a, 0x68, 0x6f, 0x73, 0x74,
0x54, 0x79, 0x70, 0x65, 0x49, 0x64, 0x22, 0x69, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x6f,
0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27,
0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x03, 0x42, 0x0a, 0xfa, 0xc7, 0x31, 0x06, 0x3c, 0x3d, 0x31, 0x30, 0x30, 0x30, 0x52, 0x08, 0x70,
0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x28, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f,
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x09, 0x8a, 0xc8, 0x31,
0x05, 0x3c, 0x3d, 0x31, 0x30, 0x30, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65,
0x6e, 0x22, 0x81, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x6f, 0x73, 0x74, 0x54, 0x79,
0x70, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x0a, 0x68,
0x6f, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x21, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63,
0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x54, 0x79,
0x70, 0x65, 0x52, 0x09, 0x68, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x26, 0x0a,
0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65,
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0x9e, 0x02, 0x0a, 0x0f, 0x48, 0x6f, 0x73, 0x74, 0x54, 0x79,
0x70, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x83, 0x01, 0x0a, 0x03, 0x47, 0x65,
0x74, 0x12, 0x2b, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x48,
0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21,
0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f,
0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70,
0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, 0x63, 0x6f, 0x6d, 0x70,
0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73,
0x2f, 0x7b, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x12,
0x84, 0x01, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2d, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12,
0x15, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x6f, 0x73,
0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x42, 0x62, 0x0a, 0x1b, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75,
0x74, 0x65, 0x2e, 0x76, 0x31, 0x5a, 0x43, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67,
0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f,
0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
var (
file_yandex_cloud_compute_v1_host_type_service_proto_rawDescOnce sync.Once
file_yandex_cloud_compute_v1_host_type_service_proto_rawDescData = file_yandex_cloud_compute_v1_host_type_service_proto_rawDesc
)
func file_yandex_cloud_compute_v1_host_type_service_proto_rawDescGZIP() []byte {
file_yandex_cloud_compute_v1_host_type_service_proto_rawDescOnce.Do(func() {
file_yandex_cloud_compute_v1_host_type_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_compute_v1_host_type_service_proto_rawDescData)
})
return file_yandex_cloud_compute_v1_host_type_service_proto_rawDescData
}
var file_yandex_cloud_compute_v1_host_type_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_compute_v1_host_type_service_proto_goTypes = []interface{}{
(*GetHostTypeRequest)(nil), // 0: yandex.cloud.compute.v1.GetHostTypeRequest
(*ListHostTypesRequest)(nil), // 1: yandex.cloud.compute.v1.ListHostTypesRequest
(*ListHostTypesResponse)(nil), // 2: yandex.cloud.compute.v1.ListHostTypesResponse
(*HostType)(nil), // 3: yandex.cloud.compute.v1.HostType
}
var file_yandex_cloud_compute_v1_host_type_service_proto_depIdxs = []int32{
3, // 0: yandex.cloud.compute.v1.ListHostTypesResponse.host_types:type_name -> yandex.cloud.compute.v1.HostType
0, // 1: yandex.cloud.compute.v1.HostTypeService.Get:input_type -> yandex.cloud.compute.v1.GetHostTypeRequest
1, // 2: yandex.cloud.compute.v1.HostTypeService.List:input_type -> yandex.cloud.compute.v1.ListHostTypesRequest
3, // 3: yandex.cloud.compute.v1.HostTypeService.Get:output_type -> yandex.cloud.compute.v1.HostType
2, // 4: yandex.cloud.compute.v1.HostTypeService.List:output_type -> yandex.cloud.compute.v1.ListHostTypesResponse
3, // [3:5] is the sub-list for method output_type
1, // [1:3] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_yandex_cloud_compute_v1_host_type_service_proto_init() }
func file_yandex_cloud_compute_v1_host_type_service_proto_init() {
if File_yandex_cloud_compute_v1_host_type_service_proto != nil {
return
}
file_yandex_cloud_compute_v1_host_type_proto_init()
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_compute_v1_host_type_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetHostTypeRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_compute_v1_host_type_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListHostTypesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_compute_v1_host_type_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListHostTypesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_compute_v1_host_type_service_proto_rawDesc,
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_yandex_cloud_compute_v1_host_type_service_proto_goTypes,
DependencyIndexes: file_yandex_cloud_compute_v1_host_type_service_proto_depIdxs,
MessageInfos: file_yandex_cloud_compute_v1_host_type_service_proto_msgTypes,
}.Build()
File_yandex_cloud_compute_v1_host_type_service_proto = out.File
file_yandex_cloud_compute_v1_host_type_service_proto_rawDesc = nil
file_yandex_cloud_compute_v1_host_type_service_proto_goTypes = nil
file_yandex_cloud_compute_v1_host_type_service_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// 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.SupportPackageIsVersion6
// HostTypeServiceClient is the client API for HostTypeService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type HostTypeServiceClient interface {
// Returns information about specified host type
Get(ctx context.Context, in *GetHostTypeRequest, opts ...grpc.CallOption) (*HostType, error)
// List avaliable host types
List(ctx context.Context, in *ListHostTypesRequest, opts ...grpc.CallOption) (*ListHostTypesResponse, error)
}
type hostTypeServiceClient struct {
cc grpc.ClientConnInterface
}
func NewHostTypeServiceClient(cc grpc.ClientConnInterface) HostTypeServiceClient {
return &hostTypeServiceClient{cc}
}
func (c *hostTypeServiceClient) Get(ctx context.Context, in *GetHostTypeRequest, opts ...grpc.CallOption) (*HostType, error) {
out := new(HostType)
err := c.cc.Invoke(ctx, "/yandex.cloud.compute.v1.HostTypeService/Get", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *hostTypeServiceClient) List(ctx context.Context, in *ListHostTypesRequest, opts ...grpc.CallOption) (*ListHostTypesResponse, error) {
out := new(ListHostTypesResponse)
err := c.cc.Invoke(ctx, "/yandex.cloud.compute.v1.HostTypeService/List", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// HostTypeServiceServer is the server API for HostTypeService service.
type HostTypeServiceServer interface {
// Returns information about specified host type
Get(context.Context, *GetHostTypeRequest) (*HostType, error)
// List avaliable host types
List(context.Context, *ListHostTypesRequest) (*ListHostTypesResponse, error)
}
// UnimplementedHostTypeServiceServer can be embedded to have forward compatible implementations.
type UnimplementedHostTypeServiceServer struct {
}
func (*UnimplementedHostTypeServiceServer) Get(context.Context, *GetHostTypeRequest) (*HostType, error) {
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
}
func (*UnimplementedHostTypeServiceServer) List(context.Context, *ListHostTypesRequest) (*ListHostTypesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
}
func RegisterHostTypeServiceServer(s *grpc.Server, srv HostTypeServiceServer) {
s.RegisterService(&_HostTypeService_serviceDesc, srv)
}
func _HostTypeService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetHostTypeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(HostTypeServiceServer).Get(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/yandex.cloud.compute.v1.HostTypeService/Get",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HostTypeServiceServer).Get(ctx, req.(*GetHostTypeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _HostTypeService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListHostTypesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(HostTypeServiceServer).List(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/yandex.cloud.compute.v1.HostTypeService/List",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HostTypeServiceServer).List(ctx, req.(*ListHostTypesRequest))
}
return interceptor(ctx, in, info, handler)
}
var _HostTypeService_serviceDesc = grpc.ServiceDesc{
ServiceName: "yandex.cloud.compute.v1.HostTypeService",
HandlerType: (*HostTypeServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Get",
Handler: _HostTypeService_Get_Handler,
},
{
MethodName: "List",
Handler: _HostTypeService_List_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "yandex/cloud/compute/v1/host_type_service.proto",
}

View File

@ -0,0 +1,23 @@
// Code generated by protoc-gen-goext. DO NOT EDIT.
package compute
func (m *GetHostTypeRequest) SetHostTypeId(v string) {
m.HostTypeId = v
}
func (m *ListHostTypesRequest) SetPageSize(v int64) {
m.PageSize = v
}
func (m *ListHostTypesRequest) SetPageToken(v string) {
m.PageToken = v
}
func (m *ListHostTypesResponse) SetHostTypes(v []*HostType) {
m.HostTypes = v
}
func (m *ListHostTypesResponse) SetNextPageToken(v string) {
m.NextPageToken = v
}

View File

@ -1,25 +1,30 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/compute/v1/image.proto
package compute
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type Image_Status int32
@ -35,28 +40,49 @@ const (
Image_DELETING Image_Status = 4
)
var Image_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "CREATING",
2: "READY",
3: "ERROR",
4: "DELETING",
}
// Enum value maps for Image_Status.
var (
Image_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "CREATING",
2: "READY",
3: "ERROR",
4: "DELETING",
}
Image_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"CREATING": 1,
"READY": 2,
"ERROR": 3,
"DELETING": 4,
}
)
var Image_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"CREATING": 1,
"READY": 2,
"ERROR": 3,
"DELETING": 4,
func (x Image_Status) Enum() *Image_Status {
p := new(Image_Status)
*p = x
return p
}
func (x Image_Status) String() string {
return proto.EnumName(Image_Status_name, int32(x))
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Image_Status) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_compute_v1_image_proto_enumTypes[0].Descriptor()
}
func (Image_Status) Type() protoreflect.EnumType {
return &file_yandex_cloud_compute_v1_image_proto_enumTypes[0]
}
func (x Image_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Image_Status.Descriptor instead.
func (Image_Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_c226a196eae12730, []int{0, 0}
return file_yandex_cloud_compute_v1_image_proto_rawDescGZIP(), []int{0, 0}
}
type Os_Type int32
@ -69,28 +95,53 @@ const (
Os_WINDOWS Os_Type = 2
)
var Os_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "LINUX",
2: "WINDOWS",
}
// Enum value maps for Os_Type.
var (
Os_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "LINUX",
2: "WINDOWS",
}
Os_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"LINUX": 1,
"WINDOWS": 2,
}
)
var Os_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"LINUX": 1,
"WINDOWS": 2,
func (x Os_Type) Enum() *Os_Type {
p := new(Os_Type)
*p = x
return p
}
func (x Os_Type) String() string {
return proto.EnumName(Os_Type_name, int32(x))
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Os_Type) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_compute_v1_image_proto_enumTypes[1].Descriptor()
}
func (Os_Type) Type() protoreflect.EnumType {
return &file_yandex_cloud_compute_v1_image_proto_enumTypes[1]
}
func (x Os_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Os_Type.Descriptor instead.
func (Os_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_c226a196eae12730, []int{1, 0}
return file_yandex_cloud_compute_v1_image_proto_rawDescGZIP(), []int{1, 0}
}
// An Image resource.
type Image struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the image.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// ID of the folder that the image belongs to.
@ -124,211 +175,322 @@ type Image struct {
// Current status of the image.
Status Image_Status `protobuf:"varint,11,opt,name=status,proto3,enum=yandex.cloud.compute.v1.Image_Status" json:"status,omitempty"`
// Operating system that is contained in the image.
Os *Os `protobuf:"bytes,12,opt,name=os,proto3" json:"os,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Os *Os `protobuf:"bytes,12,opt,name=os,proto3" json:"os,omitempty"`
}
func (m *Image) Reset() { *m = Image{} }
func (m *Image) String() string { return proto.CompactTextString(m) }
func (*Image) ProtoMessage() {}
func (x *Image) Reset() {
*x = Image{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_image_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Image) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Image) ProtoMessage() {}
func (x *Image) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_image_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Image.ProtoReflect.Descriptor instead.
func (*Image) Descriptor() ([]byte, []int) {
return fileDescriptor_c226a196eae12730, []int{0}
return file_yandex_cloud_compute_v1_image_proto_rawDescGZIP(), []int{0}
}
func (m *Image) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Image.Unmarshal(m, b)
}
func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Image.Marshal(b, m, deterministic)
}
func (m *Image) XXX_Merge(src proto.Message) {
xxx_messageInfo_Image.Merge(m, src)
}
func (m *Image) XXX_Size() int {
return xxx_messageInfo_Image.Size(m)
}
func (m *Image) XXX_DiscardUnknown() {
xxx_messageInfo_Image.DiscardUnknown(m)
}
var xxx_messageInfo_Image proto.InternalMessageInfo
func (m *Image) GetId() string {
if m != nil {
return m.Id
func (x *Image) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (m *Image) GetFolderId() string {
if m != nil {
return m.FolderId
func (x *Image) GetFolderId() string {
if x != nil {
return x.FolderId
}
return ""
}
func (m *Image) GetCreatedAt() *timestamp.Timestamp {
if m != nil {
return m.CreatedAt
func (x *Image) GetCreatedAt() *timestamp.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (m *Image) GetName() string {
if m != nil {
return m.Name
func (x *Image) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *Image) GetDescription() string {
if m != nil {
return m.Description
func (x *Image) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (m *Image) GetLabels() map[string]string {
if m != nil {
return m.Labels
func (x *Image) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (m *Image) GetFamily() string {
if m != nil {
return m.Family
func (x *Image) GetFamily() string {
if x != nil {
return x.Family
}
return ""
}
func (m *Image) GetStorageSize() int64 {
if m != nil {
return m.StorageSize
func (x *Image) GetStorageSize() int64 {
if x != nil {
return x.StorageSize
}
return 0
}
func (m *Image) GetMinDiskSize() int64 {
if m != nil {
return m.MinDiskSize
func (x *Image) GetMinDiskSize() int64 {
if x != nil {
return x.MinDiskSize
}
return 0
}
func (m *Image) GetProductIds() []string {
if m != nil {
return m.ProductIds
func (x *Image) GetProductIds() []string {
if x != nil {
return x.ProductIds
}
return nil
}
func (m *Image) GetStatus() Image_Status {
if m != nil {
return m.Status
func (x *Image) GetStatus() Image_Status {
if x != nil {
return x.Status
}
return Image_STATUS_UNSPECIFIED
}
func (m *Image) GetOs() *Os {
if m != nil {
return m.Os
func (x *Image) GetOs() *Os {
if x != nil {
return x.Os
}
return nil
}
type Os struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Operating system type. The default is `LINUX`.
//
// This field is used to correctly emulate a vCPU and calculate the cost of using an instance.
Type Os_Type `protobuf:"varint,1,opt,name=type,proto3,enum=yandex.cloud.compute.v1.Os_Type" json:"type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Type Os_Type `protobuf:"varint,1,opt,name=type,proto3,enum=yandex.cloud.compute.v1.Os_Type" json:"type,omitempty"`
}
func (m *Os) Reset() { *m = Os{} }
func (m *Os) String() string { return proto.CompactTextString(m) }
func (*Os) ProtoMessage() {}
func (x *Os) Reset() {
*x = Os{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_image_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Os) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Os) ProtoMessage() {}
func (x *Os) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_image_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Os.ProtoReflect.Descriptor instead.
func (*Os) Descriptor() ([]byte, []int) {
return fileDescriptor_c226a196eae12730, []int{1}
return file_yandex_cloud_compute_v1_image_proto_rawDescGZIP(), []int{1}
}
func (m *Os) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Os.Unmarshal(m, b)
}
func (m *Os) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Os.Marshal(b, m, deterministic)
}
func (m *Os) XXX_Merge(src proto.Message) {
xxx_messageInfo_Os.Merge(m, src)
}
func (m *Os) XXX_Size() int {
return xxx_messageInfo_Os.Size(m)
}
func (m *Os) XXX_DiscardUnknown() {
xxx_messageInfo_Os.DiscardUnknown(m)
}
var xxx_messageInfo_Os proto.InternalMessageInfo
func (m *Os) GetType() Os_Type {
if m != nil {
return m.Type
func (x *Os) GetType() Os_Type {
if x != nil {
return x.Type
}
return Os_TYPE_UNSPECIFIED
}
func init() {
proto.RegisterEnum("yandex.cloud.compute.v1.Image_Status", Image_Status_name, Image_Status_value)
proto.RegisterEnum("yandex.cloud.compute.v1.Os_Type", Os_Type_name, Os_Type_value)
proto.RegisterType((*Image)(nil), "yandex.cloud.compute.v1.Image")
proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.compute.v1.Image.LabelsEntry")
proto.RegisterType((*Os)(nil), "yandex.cloud.compute.v1.Os")
var File_yandex_cloud_compute_v1_image_proto protoreflect.FileDescriptor
var file_yandex_cloud_compute_v1_image_proto_rawDesc = []byte{
0x0a, 0x23, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1f,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
0xe4, 0x04, 0x0a, 0x05, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x6f, 0x6c,
0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x6f,
0x6c, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d,
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41,
0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63,
0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c,
0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e,
0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x66,
0x61, 0x6d, 0x69, 0x6c, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x61, 0x6d,
0x69, 0x6c, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x73,
0x69, 0x7a, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61,
0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x6d, 0x69, 0x6e, 0x5f, 0x64, 0x69,
0x73, 0x6b, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6d,
0x69, 0x6e, 0x44, 0x69, 0x73, 0x6b, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72,
0x6f, 0x64, 0x75, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52,
0x0a, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x49, 0x64, 0x73, 0x12, 0x3d, 0x0a, 0x06, 0x73,
0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x79, 0x61,
0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75,
0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74,
0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2b, 0x0a, 0x02, 0x6f, 0x73,
0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x4f, 0x73, 0x52, 0x02, 0x6f, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c,
0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
0x38, 0x01, 0x22, 0x52, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12,
0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4e, 0x47,
0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x45, 0x41, 0x44, 0x59, 0x10, 0x02, 0x12, 0x09, 0x0a,
0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x45, 0x4c, 0x45,
0x54, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x22, 0x70, 0x0a, 0x02, 0x4f, 0x73, 0x12, 0x34, 0x0a, 0x04,
0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x73, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79,
0x70, 0x65, 0x22, 0x34, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59,
0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
0x12, 0x09, 0x0a, 0x05, 0x4c, 0x49, 0x4e, 0x55, 0x58, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57,
0x49, 0x4e, 0x44, 0x4f, 0x57, 0x53, 0x10, 0x02, 0x42, 0x62, 0x0a, 0x1b, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d,
0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x5a, 0x43, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74,
0x65, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/compute/v1/image.proto", fileDescriptor_c226a196eae12730)
var (
file_yandex_cloud_compute_v1_image_proto_rawDescOnce sync.Once
file_yandex_cloud_compute_v1_image_proto_rawDescData = file_yandex_cloud_compute_v1_image_proto_rawDesc
)
func file_yandex_cloud_compute_v1_image_proto_rawDescGZIP() []byte {
file_yandex_cloud_compute_v1_image_proto_rawDescOnce.Do(func() {
file_yandex_cloud_compute_v1_image_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_compute_v1_image_proto_rawDescData)
})
return file_yandex_cloud_compute_v1_image_proto_rawDescData
}
var fileDescriptor_c226a196eae12730 = []byte{
// 564 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0x5f, 0x6b, 0xdb, 0x3c,
0x14, 0xc6, 0x5f, 0x3b, 0x7f, 0x5a, 0x1f, 0xf7, 0x2d, 0x46, 0x94, 0xce, 0xb4, 0x17, 0xf5, 0x32,
0x06, 0x61, 0xa3, 0x36, 0xcd, 0x7a, 0xb1, 0x6e, 0xec, 0x22, 0x6d, 0xbc, 0x61, 0x28, 0x49, 0x51,
0x52, 0xba, 0xee, 0x26, 0x28, 0x91, 0xea, 0x89, 0xda, 0x96, 0xb1, 0xe4, 0x32, 0xf7, 0xf3, 0xee,
0x83, 0x0c, 0xcb, 0x2e, 0x74, 0x83, 0x6c, 0x77, 0xe7, 0x3c, 0xfe, 0x9d, 0xf3, 0xe8, 0x48, 0x3e,
0xf0, 0xaa, 0x22, 0x19, 0x65, 0x3f, 0x82, 0x75, 0x22, 0x4a, 0x1a, 0xac, 0x45, 0x9a, 0x97, 0x8a,
0x05, 0x0f, 0x27, 0x01, 0x4f, 0x49, 0xcc, 0xfc, 0xbc, 0x10, 0x4a, 0xa0, 0x17, 0x0d, 0xe4, 0x6b,
0xc8, 0x6f, 0x21, 0xff, 0xe1, 0xe4, 0xe0, 0x28, 0x16, 0x22, 0x4e, 0x58, 0xa0, 0xb1, 0x55, 0x79,
0x17, 0x28, 0x9e, 0x32, 0xa9, 0x48, 0x9a, 0x37, 0x95, 0x83, 0x9f, 0x5d, 0xe8, 0x45, 0x75, 0x27,
0xb4, 0x0b, 0x26, 0xa7, 0xae, 0xe1, 0x19, 0x43, 0x0b, 0x9b, 0x9c, 0xa2, 0x43, 0xb0, 0xee, 0x44,
0x42, 0x59, 0xb1, 0xe4, 0xd4, 0x35, 0xb5, 0xbc, 0xdd, 0x08, 0x11, 0x45, 0x67, 0x00, 0xeb, 0x82,
0x11, 0xc5, 0xe8, 0x92, 0x28, 0xb7, 0xe3, 0x19, 0x43, 0x7b, 0x74, 0xe0, 0x37, 0x66, 0xfe, 0x93,
0x99, 0xbf, 0x78, 0x32, 0xc3, 0x56, 0x4b, 0x8f, 0x15, 0x42, 0xd0, 0xcd, 0x48, 0xca, 0xdc, 0xae,
0x6e, 0xa9, 0x63, 0xe4, 0x81, 0x4d, 0x99, 0x5c, 0x17, 0x3c, 0x57, 0x5c, 0x64, 0x6e, 0x4f, 0x7f,
0x7a, 0x2e, 0xa1, 0x73, 0xe8, 0x27, 0x64, 0xc5, 0x12, 0xe9, 0xf6, 0xbd, 0xce, 0xd0, 0x1e, 0xbd,
0xf1, 0x37, 0x8c, 0xec, 0xeb, 0x69, 0xfc, 0x4b, 0x0d, 0x87, 0x99, 0x2a, 0x2a, 0xdc, 0x56, 0xa2,
0x7d, 0xe8, 0xdf, 0x91, 0x94, 0x27, 0x95, 0xbb, 0xa5, 0x0d, 0xda, 0x0c, 0xbd, 0x84, 0x1d, 0xa9,
0x44, 0x41, 0x62, 0xb6, 0x94, 0xfc, 0x91, 0xb9, 0xdb, 0x9e, 0x31, 0xec, 0x60, 0xbb, 0xd5, 0xe6,
0xfc, 0x91, 0xa1, 0x01, 0xfc, 0x9f, 0xf2, 0x6c, 0x49, 0xb9, 0xbc, 0x6f, 0x18, 0xab, 0x61, 0x52,
0x9e, 0x4d, 0xb8, 0xbc, 0xd7, 0xcc, 0x11, 0xd8, 0x79, 0x21, 0x68, 0xb9, 0x56, 0x4b, 0x4e, 0xa5,
0x0b, 0x5e, 0x67, 0x68, 0x61, 0x68, 0xa5, 0x88, 0x4a, 0xf4, 0x09, 0xfa, 0x52, 0x11, 0x55, 0x4a,
0xd7, 0xf6, 0x8c, 0xe1, 0xee, 0xe8, 0xf5, 0x3f, 0x66, 0x98, 0x6b, 0x18, 0xb7, 0x45, 0xe8, 0x2d,
0x98, 0x42, 0xba, 0x3b, 0xfa, 0xae, 0x0f, 0x37, 0x96, 0xce, 0x24, 0x36, 0x85, 0x3c, 0x38, 0x03,
0xfb, 0xd9, 0x15, 0x20, 0x07, 0x3a, 0xf7, 0xac, 0x6a, 0x5f, 0xb7, 0x0e, 0xd1, 0x1e, 0xf4, 0x1e,
0x48, 0x52, 0xb2, 0xf6, 0x69, 0x9b, 0xe4, 0x83, 0xf9, 0xde, 0x18, 0x60, 0xe8, 0x37, 0xce, 0x68,
0x1f, 0xd0, 0x7c, 0x31, 0x5e, 0x5c, 0xcf, 0x97, 0xd7, 0xd3, 0xf9, 0x55, 0x78, 0x11, 0x7d, 0x8e,
0xc2, 0x89, 0xf3, 0x1f, 0xda, 0x81, 0xed, 0x0b, 0x1c, 0x8e, 0x17, 0xd1, 0xf4, 0x8b, 0x63, 0x20,
0x0b, 0x7a, 0x38, 0x1c, 0x4f, 0x6e, 0x1d, 0xb3, 0x0e, 0x43, 0x8c, 0x67, 0xd8, 0xe9, 0xd4, 0xcc,
0x24, 0xbc, 0x0c, 0x35, 0xd3, 0x1d, 0xe4, 0x60, 0xce, 0x24, 0x3a, 0x85, 0xae, 0xaa, 0x72, 0xa6,
0x8f, 0xb1, 0x3b, 0xf2, 0xfe, 0x32, 0x83, 0xbf, 0xa8, 0x72, 0x86, 0x35, 0x3d, 0x38, 0x85, 0x6e,
0x9d, 0xa1, 0x3d, 0x70, 0x16, 0xb7, 0x57, 0xe1, 0x1f, 0x67, 0xb1, 0xa0, 0x77, 0x19, 0x4d, 0xaf,
0xbf, 0x3a, 0x06, 0xb2, 0x61, 0xeb, 0x26, 0x9a, 0x4e, 0x66, 0x37, 0x73, 0xc7, 0x3c, 0x5f, 0xc1,
0xe1, 0x6f, 0xed, 0x49, 0xce, 0x9f, 0x59, 0x7c, 0xbb, 0x88, 0xb9, 0xfa, 0x5e, 0xae, 0x6a, 0x29,
0x68, 0xb8, 0xe3, 0x66, 0xc3, 0x62, 0x71, 0x1c, 0xb3, 0x4c, 0xff, 0xc2, 0xc1, 0x86, 0xd5, 0xfb,
0xd8, 0x86, 0xab, 0xbe, 0xc6, 0xde, 0xfd, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xea, 0x21, 0x47, 0xea,
0xa4, 0x03, 0x00, 0x00,
var file_yandex_cloud_compute_v1_image_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_yandex_cloud_compute_v1_image_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_compute_v1_image_proto_goTypes = []interface{}{
(Image_Status)(0), // 0: yandex.cloud.compute.v1.Image.Status
(Os_Type)(0), // 1: yandex.cloud.compute.v1.Os.Type
(*Image)(nil), // 2: yandex.cloud.compute.v1.Image
(*Os)(nil), // 3: yandex.cloud.compute.v1.Os
nil, // 4: yandex.cloud.compute.v1.Image.LabelsEntry
(*timestamp.Timestamp)(nil), // 5: google.protobuf.Timestamp
}
var file_yandex_cloud_compute_v1_image_proto_depIdxs = []int32{
5, // 0: yandex.cloud.compute.v1.Image.created_at:type_name -> google.protobuf.Timestamp
4, // 1: yandex.cloud.compute.v1.Image.labels:type_name -> yandex.cloud.compute.v1.Image.LabelsEntry
0, // 2: yandex.cloud.compute.v1.Image.status:type_name -> yandex.cloud.compute.v1.Image.Status
3, // 3: yandex.cloud.compute.v1.Image.os:type_name -> yandex.cloud.compute.v1.Os
1, // 4: yandex.cloud.compute.v1.Os.type:type_name -> yandex.cloud.compute.v1.Os.Type
5, // [5:5] is the sub-list for method output_type
5, // [5:5] is the sub-list for method input_type
5, // [5:5] is the sub-list for extension type_name
5, // [5:5] is the sub-list for extension extendee
0, // [0:5] is the sub-list for field type_name
}
func init() { file_yandex_cloud_compute_v1_image_proto_init() }
func file_yandex_cloud_compute_v1_image_proto_init() {
if File_yandex_cloud_compute_v1_image_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_compute_v1_image_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Image); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_compute_v1_image_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Os); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_compute_v1_image_proto_rawDesc,
NumEnums: 2,
NumMessages: 3,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_compute_v1_image_proto_goTypes,
DependencyIndexes: file_yandex_cloud_compute_v1_image_proto_depIdxs,
EnumInfos: file_yandex_cloud_compute_v1_image_proto_enumTypes,
MessageInfos: file_yandex_cloud_compute_v1_image_proto_msgTypes,
}.Build()
File_yandex_cloud_compute_v1_image_proto = out.File
file_yandex_cloud_compute_v1_image_proto_rawDesc = nil
file_yandex_cloud_compute_v1_image_proto_goTypes = nil
file_yandex_cloud_compute_v1_image_proto_depIdxs = nil
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -165,3 +165,19 @@ func (m *NetworkSettings) SetType(v NetworkSettings_Type) {
func (m *PlacementPolicy) SetPlacementGroupId(v string) {
m.PlacementGroupId = v
}
func (m *PlacementPolicy) SetHostAffinityRules(v []*PlacementPolicy_HostAffinityRule) {
m.HostAffinityRules = v
}
func (m *PlacementPolicy_HostAffinityRule) SetKey(v string) {
m.Key = v
}
func (m *PlacementPolicy_HostAffinityRule) SetOp(v PlacementPolicy_HostAffinityRule_Operator) {
m.Op = v
}
func (m *PlacementPolicy_HostAffinityRule) SetValues(v []string) {
m.Values = v
}

File diff suppressed because it is too large Load Diff

View File

@ -421,6 +421,10 @@ func (m *AttachedDiskSpec_DiskSpec) SetSize(v int64) {
m.Size = v
}
func (m *AttachedDiskSpec_DiskSpec) SetDiskPlacementPolicy(v *DiskPlacementPolicy) {
m.DiskPlacementPolicy = v
}
func (m *AttachedDiskSpec_DiskSpec) SetImageId(v string) {
m.Source = &AttachedDiskSpec_DiskSpec_ImageId{
ImageId: v,

View File

@ -253,6 +253,10 @@ func (m *DeployPolicy) SetStartupDuration(v *duration.Duration) {
m.StartupDuration = v
}
func (m *DeployPolicy) SetStrategy(v DeployPolicy_Strategy) {
m.Strategy = v
}
func (m *AllocationPolicy) SetZones(v []*AllocationPolicy_Zone) {
m.Zones = v
}
@ -375,6 +379,10 @@ func (m *AttachedDiskSpec_DiskSpec) SetSnapshotId(v string) {
}
}
func (m *AttachedDiskSpec_DiskSpec) SetPreserveAfterInstanceDelete(v bool) {
m.PreserveAfterInstanceDelete = v
}
func (m *NetworkInterfaceSpec) SetNetworkId(v string) {
m.NetworkId = v
}

View File

@ -175,6 +175,10 @@ func (m *DeleteInstancesMetadata) SetInstanceGroupId(v string) {
m.InstanceGroupId = v
}
func (m *StopInstancesMetadata) SetInstanceGroupId(v string) {
m.InstanceGroupId = v
}
func (m *ListInstanceGroupsRequest) SetFolderId(v string) {
m.FolderId = v
}
@ -227,6 +231,26 @@ func (m *ListInstanceGroupInstancesResponse) SetNextPageToken(v string) {
m.NextPageToken = v
}
func (m *DeleteInstancesRequest) SetInstanceGroupId(v string) {
m.InstanceGroupId = v
}
func (m *DeleteInstancesRequest) SetManagedInstanceIds(v []string) {
m.ManagedInstanceIds = v
}
func (m *DeleteInstancesRequest) SetCreateAnother(v bool) {
m.CreateAnother = v
}
func (m *StopInstancesRequest) SetInstanceGroupId(v string) {
m.InstanceGroupId = v
}
func (m *StopInstancesRequest) SetManagedInstanceIds(v []string) {
m.ManagedInstanceIds = v
}
func (m *ListInstanceGroupOperationsRequest) SetInstanceGroupId(v string) {
m.InstanceGroupId = v
}

View File

@ -1,28 +1,37 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/compute/v1/placement_group.proto
package compute
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type PlacementGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the placement group. Generated at creation time.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// ID of the folder that the placement group belongs to.
@ -39,77 +48,95 @@ type PlacementGroup struct {
// Placement strategy. To specify a placement strategy, send the corresponding
// field containing an empty structure.
//
// Types that are valid to be assigned to PlacementStrategy:
// Types that are assignable to PlacementStrategy:
// *PlacementGroup_SpreadPlacementStrategy
PlacementStrategy isPlacementGroup_PlacementStrategy `protobuf_oneof:"placement_strategy"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
PlacementStrategy isPlacementGroup_PlacementStrategy `protobuf_oneof:"placement_strategy"`
}
func (m *PlacementGroup) Reset() { *m = PlacementGroup{} }
func (m *PlacementGroup) String() string { return proto.CompactTextString(m) }
func (*PlacementGroup) ProtoMessage() {}
func (x *PlacementGroup) Reset() {
*x = PlacementGroup{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_placement_group_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PlacementGroup) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PlacementGroup) ProtoMessage() {}
func (x *PlacementGroup) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_placement_group_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PlacementGroup.ProtoReflect.Descriptor instead.
func (*PlacementGroup) Descriptor() ([]byte, []int) {
return fileDescriptor_0e9521ba5da0945a, []int{0}
return file_yandex_cloud_compute_v1_placement_group_proto_rawDescGZIP(), []int{0}
}
func (m *PlacementGroup) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PlacementGroup.Unmarshal(m, b)
}
func (m *PlacementGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PlacementGroup.Marshal(b, m, deterministic)
}
func (m *PlacementGroup) XXX_Merge(src proto.Message) {
xxx_messageInfo_PlacementGroup.Merge(m, src)
}
func (m *PlacementGroup) XXX_Size() int {
return xxx_messageInfo_PlacementGroup.Size(m)
}
func (m *PlacementGroup) XXX_DiscardUnknown() {
xxx_messageInfo_PlacementGroup.DiscardUnknown(m)
}
var xxx_messageInfo_PlacementGroup proto.InternalMessageInfo
func (m *PlacementGroup) GetId() string {
if m != nil {
return m.Id
func (x *PlacementGroup) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (m *PlacementGroup) GetFolderId() string {
if m != nil {
return m.FolderId
func (x *PlacementGroup) GetFolderId() string {
if x != nil {
return x.FolderId
}
return ""
}
func (m *PlacementGroup) GetCreatedAt() *timestamp.Timestamp {
if m != nil {
return m.CreatedAt
func (x *PlacementGroup) GetCreatedAt() *timestamp.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (m *PlacementGroup) GetName() string {
if m != nil {
return m.Name
func (x *PlacementGroup) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *PlacementGroup) GetDescription() string {
if m != nil {
return m.Description
func (x *PlacementGroup) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (m *PlacementGroup) GetLabels() map[string]string {
func (x *PlacementGroup) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (m *PlacementGroup) GetPlacementStrategy() isPlacementGroup_PlacementStrategy {
if m != nil {
return m.Labels
return m.PlacementStrategy
}
return nil
}
func (x *PlacementGroup) GetSpreadPlacementStrategy() *SpreadPlacementStrategy {
if x, ok := x.GetPlacementStrategy().(*PlacementGroup_SpreadPlacementStrategy); ok {
return x.SpreadPlacementStrategy
}
return nil
}
@ -119,101 +146,184 @@ type isPlacementGroup_PlacementStrategy interface {
}
type PlacementGroup_SpreadPlacementStrategy struct {
// Anti-affinity placement strategy (`spread`). Instances are distributed
// over distinct failure domains.
SpreadPlacementStrategy *SpreadPlacementStrategy `protobuf:"bytes,7,opt,name=spread_placement_strategy,json=spreadPlacementStrategy,proto3,oneof"`
}
func (*PlacementGroup_SpreadPlacementStrategy) isPlacementGroup_PlacementStrategy() {}
func (m *PlacementGroup) GetPlacementStrategy() isPlacementGroup_PlacementStrategy {
if m != nil {
return m.PlacementStrategy
}
return nil
}
func (m *PlacementGroup) GetSpreadPlacementStrategy() *SpreadPlacementStrategy {
if x, ok := m.GetPlacementStrategy().(*PlacementGroup_SpreadPlacementStrategy); ok {
return x.SpreadPlacementStrategy
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*PlacementGroup) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*PlacementGroup_SpreadPlacementStrategy)(nil),
}
}
// This is an empty structure that must be passed to explicitly
// specify the required placement strategy.
type SpreadPlacementStrategy struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (m *SpreadPlacementStrategy) Reset() { *m = SpreadPlacementStrategy{} }
func (m *SpreadPlacementStrategy) String() string { return proto.CompactTextString(m) }
func (*SpreadPlacementStrategy) ProtoMessage() {}
func (x *SpreadPlacementStrategy) Reset() {
*x = SpreadPlacementStrategy{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_placement_group_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SpreadPlacementStrategy) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SpreadPlacementStrategy) ProtoMessage() {}
func (x *SpreadPlacementStrategy) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_placement_group_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SpreadPlacementStrategy.ProtoReflect.Descriptor instead.
func (*SpreadPlacementStrategy) Descriptor() ([]byte, []int) {
return fileDescriptor_0e9521ba5da0945a, []int{1}
return file_yandex_cloud_compute_v1_placement_group_proto_rawDescGZIP(), []int{1}
}
func (m *SpreadPlacementStrategy) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SpreadPlacementStrategy.Unmarshal(m, b)
}
func (m *SpreadPlacementStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SpreadPlacementStrategy.Marshal(b, m, deterministic)
}
func (m *SpreadPlacementStrategy) XXX_Merge(src proto.Message) {
xxx_messageInfo_SpreadPlacementStrategy.Merge(m, src)
}
func (m *SpreadPlacementStrategy) XXX_Size() int {
return xxx_messageInfo_SpreadPlacementStrategy.Size(m)
}
func (m *SpreadPlacementStrategy) XXX_DiscardUnknown() {
xxx_messageInfo_SpreadPlacementStrategy.DiscardUnknown(m)
var File_yandex_cloud_compute_v1_placement_group_proto protoreflect.FileDescriptor
var file_yandex_cloud_compute_v1_placement_group_proto_rawDesc = []byte{
0x0a, 0x2d, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d,
0x65, 0x6e, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x17, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f,
0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc2, 0x03, 0x0a, 0x0e, 0x50, 0x6c, 0x61,
0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x66,
0x6f, 0x6c, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61,
0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
0x64, 0x41, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65,
0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x06, 0x6c, 0x61, 0x62,
0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x47, 0x72, 0x6f,
0x75, 0x70, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06,
0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x6e, 0x0a, 0x19, 0x73, 0x70, 0x72, 0x65, 0x61, 0x64,
0x5f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74,
0x65, 0x67, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x53, 0x70, 0x72, 0x65, 0x61, 0x64, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d,
0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x48, 0x00, 0x52, 0x17, 0x73,
0x70, 0x72, 0x65, 0x61, 0x64, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74,
0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73,
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
0x01, 0x42, 0x1a, 0x0a, 0x12, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73,
0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x04, 0xc0, 0xc1, 0x31, 0x01, 0x22, 0x19, 0x0a,
0x17, 0x53, 0x70, 0x72, 0x65, 0x61, 0x64, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74,
0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x42, 0x62, 0x0a, 0x1b, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d,
0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x5a, 0x43, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74,
0x65, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
}
var xxx_messageInfo_SpreadPlacementStrategy proto.InternalMessageInfo
var (
file_yandex_cloud_compute_v1_placement_group_proto_rawDescOnce sync.Once
file_yandex_cloud_compute_v1_placement_group_proto_rawDescData = file_yandex_cloud_compute_v1_placement_group_proto_rawDesc
)
func init() {
proto.RegisterType((*PlacementGroup)(nil), "yandex.cloud.compute.v1.PlacementGroup")
proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.compute.v1.PlacementGroup.LabelsEntry")
proto.RegisterType((*SpreadPlacementStrategy)(nil), "yandex.cloud.compute.v1.SpreadPlacementStrategy")
func file_yandex_cloud_compute_v1_placement_group_proto_rawDescGZIP() []byte {
file_yandex_cloud_compute_v1_placement_group_proto_rawDescOnce.Do(func() {
file_yandex_cloud_compute_v1_placement_group_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_compute_v1_placement_group_proto_rawDescData)
})
return file_yandex_cloud_compute_v1_placement_group_proto_rawDescData
}
func init() {
proto.RegisterFile("yandex/cloud/compute/v1/placement_group.proto", fileDescriptor_0e9521ba5da0945a)
var file_yandex_cloud_compute_v1_placement_group_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_compute_v1_placement_group_proto_goTypes = []interface{}{
(*PlacementGroup)(nil), // 0: yandex.cloud.compute.v1.PlacementGroup
(*SpreadPlacementStrategy)(nil), // 1: yandex.cloud.compute.v1.SpreadPlacementStrategy
nil, // 2: yandex.cloud.compute.v1.PlacementGroup.LabelsEntry
(*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp
}
var file_yandex_cloud_compute_v1_placement_group_proto_depIdxs = []int32{
3, // 0: yandex.cloud.compute.v1.PlacementGroup.created_at:type_name -> google.protobuf.Timestamp
2, // 1: yandex.cloud.compute.v1.PlacementGroup.labels:type_name -> yandex.cloud.compute.v1.PlacementGroup.LabelsEntry
1, // 2: yandex.cloud.compute.v1.PlacementGroup.spread_placement_strategy:type_name -> yandex.cloud.compute.v1.SpreadPlacementStrategy
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
var fileDescriptor_0e9521ba5da0945a = []byte{
// 402 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x8e, 0xd3, 0x30,
0x10, 0x86, 0x49, 0xdb, 0x2d, 0x74, 0x2a, 0xad, 0x90, 0x85, 0xd4, 0x6c, 0x56, 0x88, 0x6a, 0x4f,
0xbd, 0xd4, 0xa6, 0xbb, 0x17, 0x16, 0x4e, 0x2c, 0x42, 0x80, 0xe0, 0x80, 0xb2, 0x9c, 0xb8, 0x44,
0x4e, 0x3c, 0x1b, 0x2c, 0x9c, 0x38, 0x72, 0x9c, 0x88, 0xbc, 0x1d, 0xf0, 0x64, 0x28, 0x8e, 0x0b,
0xad, 0xd8, 0xdc, 0x26, 0x33, 0xff, 0xcc, 0x7c, 0xf3, 0xc7, 0xb0, 0xed, 0x78, 0x29, 0xf0, 0x07,
0xcb, 0x94, 0x6e, 0x04, 0xcb, 0x74, 0x51, 0x35, 0x16, 0x59, 0xbb, 0x63, 0x95, 0xe2, 0x19, 0x16,
0x58, 0xda, 0x24, 0x37, 0xba, 0xa9, 0x68, 0x65, 0xb4, 0xd5, 0x64, 0x35, 0xc8, 0xa9, 0x93, 0x53,
0x2f, 0xa7, 0xed, 0x2e, 0x7a, 0x96, 0x6b, 0x9d, 0x2b, 0x64, 0x4e, 0x96, 0x36, 0x77, 0xcc, 0xca,
0x02, 0x6b, 0xcb, 0x0b, 0xdf, 0x19, 0x3d, 0x3d, 0x5a, 0xd4, 0x72, 0x25, 0x05, 0xb7, 0x52, 0x97,
0x43, 0xf9, 0xe2, 0xf7, 0x14, 0x4e, 0x3f, 0xef, 0x57, 0xbe, 0xeb, 0x37, 0x92, 0x53, 0x98, 0x48,
0x11, 0x06, 0xeb, 0x60, 0xb3, 0x88, 0x27, 0x52, 0x90, 0x73, 0x58, 0xdc, 0x69, 0x25, 0xd0, 0x24,
0x52, 0x84, 0x13, 0x97, 0x7e, 0x34, 0x24, 0x3e, 0x08, 0x72, 0x0d, 0x90, 0x19, 0xe4, 0x16, 0x45,
0xc2, 0x6d, 0x38, 0x5d, 0x07, 0x9b, 0xe5, 0x65, 0x44, 0x07, 0x28, 0xba, 0x87, 0xa2, 0x5f, 0xf6,
0x50, 0xf1, 0xc2, 0xab, 0x5f, 0x5b, 0x42, 0x60, 0x56, 0xf2, 0x02, 0xc3, 0x99, 0x1b, 0xe9, 0x62,
0xb2, 0x86, 0xa5, 0xc0, 0x3a, 0x33, 0xb2, 0xea, 0x19, 0xc3, 0x13, 0x57, 0x3a, 0x4c, 0x91, 0x8f,
0x30, 0x57, 0x3c, 0x45, 0x55, 0x87, 0xf3, 0xf5, 0x74, 0xb3, 0xbc, 0xbc, 0xa2, 0x23, 0xd6, 0xd0,
0xe3, 0xb3, 0xe8, 0x27, 0xd7, 0xf5, 0xb6, 0xb4, 0xa6, 0x8b, 0xfd, 0x08, 0x52, 0xc2, 0x59, 0x5d,
0x19, 0xe4, 0x22, 0xf9, 0x67, 0x7b, 0x6d, 0x0d, 0xb7, 0x98, 0x77, 0xe1, 0x43, 0x77, 0xcc, 0xf3,
0xd1, 0xf9, 0xb7, 0xae, 0xf3, 0xef, 0x96, 0x5b, 0xdf, 0xf7, 0xfe, 0x41, 0xbc, 0xaa, 0xef, 0x2f,
0x45, 0xd7, 0xb0, 0x3c, 0xc0, 0x20, 0x8f, 0x61, 0xfa, 0x1d, 0x3b, 0x6f, 0x75, 0x1f, 0x92, 0x27,
0x70, 0xd2, 0x72, 0xd5, 0xa0, 0xf7, 0x79, 0xf8, 0x78, 0x39, 0x79, 0x11, 0xdc, 0x44, 0x40, 0xfe,
0x67, 0x24, 0xb3, 0x9f, 0xbf, 0x76, 0xc1, 0xc5, 0x19, 0xac, 0x46, 0x60, 0x6e, 0x52, 0x38, 0x3f,
0xe2, 0xe7, 0x95, 0x3c, 0xb8, 0xe1, 0xeb, 0x9b, 0x5c, 0xda, 0x6f, 0x4d, 0xda, 0xa7, 0xd8, 0xa0,
0xdb, 0x0e, 0x0f, 0x25, 0xd7, 0xdb, 0x1c, 0x4b, 0xf7, 0x03, 0xd9, 0xc8, 0x53, 0x7d, 0xe5, 0xc3,
0x74, 0xee, 0x64, 0x57, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xec, 0x0f, 0x34, 0xad, 0xd4, 0x02,
0x00, 0x00,
func init() { file_yandex_cloud_compute_v1_placement_group_proto_init() }
func file_yandex_cloud_compute_v1_placement_group_proto_init() {
if File_yandex_cloud_compute_v1_placement_group_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_compute_v1_placement_group_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PlacementGroup); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_compute_v1_placement_group_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SpreadPlacementStrategy); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_yandex_cloud_compute_v1_placement_group_proto_msgTypes[0].OneofWrappers = []interface{}{
(*PlacementGroup_SpreadPlacementStrategy)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_compute_v1_placement_group_proto_rawDesc,
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_compute_v1_placement_group_proto_goTypes,
DependencyIndexes: file_yandex_cloud_compute_v1_placement_group_proto_depIdxs,
MessageInfos: file_yandex_cloud_compute_v1_placement_group_proto_msgTypes,
}.Build()
File_yandex_cloud_compute_v1_placement_group_proto = out.File
file_yandex_cloud_compute_v1_placement_group_proto_rawDesc = nil
file_yandex_cloud_compute_v1_placement_group_proto_goTypes = nil
file_yandex_cloud_compute_v1_placement_group_proto_depIdxs = nil
}

View File

@ -1,25 +1,30 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/compute/v1/snapshot.proto
package compute
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type Snapshot_Status int32
@ -35,32 +40,57 @@ const (
Snapshot_DELETING Snapshot_Status = 4
)
var Snapshot_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "CREATING",
2: "READY",
3: "ERROR",
4: "DELETING",
}
// Enum value maps for Snapshot_Status.
var (
Snapshot_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "CREATING",
2: "READY",
3: "ERROR",
4: "DELETING",
}
Snapshot_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"CREATING": 1,
"READY": 2,
"ERROR": 3,
"DELETING": 4,
}
)
var Snapshot_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"CREATING": 1,
"READY": 2,
"ERROR": 3,
"DELETING": 4,
func (x Snapshot_Status) Enum() *Snapshot_Status {
p := new(Snapshot_Status)
*p = x
return p
}
func (x Snapshot_Status) String() string {
return proto.EnumName(Snapshot_Status_name, int32(x))
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Snapshot_Status) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_compute_v1_snapshot_proto_enumTypes[0].Descriptor()
}
func (Snapshot_Status) Type() protoreflect.EnumType {
return &file_yandex_cloud_compute_v1_snapshot_proto_enumTypes[0]
}
func (x Snapshot_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Snapshot_Status.Descriptor instead.
func (Snapshot_Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cac027a1005d8550, []int{0, 0}
return file_yandex_cloud_compute_v1_snapshot_proto_rawDescGZIP(), []int{0, 0}
}
// A Snapshot resource. For more information, see [Snapshots](/docs/compute/concepts/snapshot).
type Snapshot struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the snapshot.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// ID of the folder that the snapshot belongs to.
@ -73,9 +103,9 @@ type Snapshot struct {
// Resource labels as `key:value` pairs. Maximum of 64 per resource.
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"`
// Size of the snapshot, specified in bytes.
StorageSize int64 `protobuf:"varint,7,opt,name=storage_size,json=storageSize,proto3" json:"storage_size,omitempty"`
StorageSize int64 `protobuf:"varint,7,opt,name=storage_size,json=storageSize,proto3" json:"storage_size,omitempty"` // delta from prev snapshot from same disk
// Size of the disk when the snapshot was created, specified in bytes.
DiskSize int64 `protobuf:"varint,8,opt,name=disk_size,json=diskSize,proto3" json:"disk_size,omitempty"`
DiskSize int64 `protobuf:"varint,8,opt,name=disk_size,json=diskSize,proto3" json:"disk_size,omitempty"` // at snapshot moment
// License IDs that indicate which licenses are attached to this resource.
// License IDs are used to calculate additional charges for the use of the virtual machine.
//
@ -88,155 +118,240 @@ type Snapshot struct {
// Current status of the snapshot.
Status Snapshot_Status `protobuf:"varint,10,opt,name=status,proto3,enum=yandex.cloud.compute.v1.Snapshot_Status" json:"status,omitempty"`
// ID of the source disk used to create this snapshot.
SourceDiskId string `protobuf:"bytes,11,opt,name=source_disk_id,json=sourceDiskId,proto3" json:"source_disk_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
SourceDiskId string `protobuf:"bytes,11,opt,name=source_disk_id,json=sourceDiskId,proto3" json:"source_disk_id,omitempty"`
}
func (m *Snapshot) Reset() { *m = Snapshot{} }
func (m *Snapshot) String() string { return proto.CompactTextString(m) }
func (*Snapshot) ProtoMessage() {}
func (x *Snapshot) Reset() {
*x = Snapshot{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_snapshot_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Snapshot) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Snapshot) ProtoMessage() {}
func (x *Snapshot) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_snapshot_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Snapshot.ProtoReflect.Descriptor instead.
func (*Snapshot) Descriptor() ([]byte, []int) {
return fileDescriptor_cac027a1005d8550, []int{0}
return file_yandex_cloud_compute_v1_snapshot_proto_rawDescGZIP(), []int{0}
}
func (m *Snapshot) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Snapshot.Unmarshal(m, b)
}
func (m *Snapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Snapshot.Marshal(b, m, deterministic)
}
func (m *Snapshot) XXX_Merge(src proto.Message) {
xxx_messageInfo_Snapshot.Merge(m, src)
}
func (m *Snapshot) XXX_Size() int {
return xxx_messageInfo_Snapshot.Size(m)
}
func (m *Snapshot) XXX_DiscardUnknown() {
xxx_messageInfo_Snapshot.DiscardUnknown(m)
}
var xxx_messageInfo_Snapshot proto.InternalMessageInfo
func (m *Snapshot) GetId() string {
if m != nil {
return m.Id
func (x *Snapshot) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (m *Snapshot) GetFolderId() string {
if m != nil {
return m.FolderId
func (x *Snapshot) GetFolderId() string {
if x != nil {
return x.FolderId
}
return ""
}
func (m *Snapshot) GetCreatedAt() *timestamp.Timestamp {
if m != nil {
return m.CreatedAt
func (x *Snapshot) GetCreatedAt() *timestamp.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (m *Snapshot) GetName() string {
if m != nil {
return m.Name
func (x *Snapshot) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *Snapshot) GetDescription() string {
if m != nil {
return m.Description
func (x *Snapshot) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (m *Snapshot) GetLabels() map[string]string {
if m != nil {
return m.Labels
func (x *Snapshot) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (m *Snapshot) GetStorageSize() int64 {
if m != nil {
return m.StorageSize
func (x *Snapshot) GetStorageSize() int64 {
if x != nil {
return x.StorageSize
}
return 0
}
func (m *Snapshot) GetDiskSize() int64 {
if m != nil {
return m.DiskSize
func (x *Snapshot) GetDiskSize() int64 {
if x != nil {
return x.DiskSize
}
return 0
}
func (m *Snapshot) GetProductIds() []string {
if m != nil {
return m.ProductIds
func (x *Snapshot) GetProductIds() []string {
if x != nil {
return x.ProductIds
}
return nil
}
func (m *Snapshot) GetStatus() Snapshot_Status {
if m != nil {
return m.Status
func (x *Snapshot) GetStatus() Snapshot_Status {
if x != nil {
return x.Status
}
return Snapshot_STATUS_UNSPECIFIED
}
func (m *Snapshot) GetSourceDiskId() string {
if m != nil {
return m.SourceDiskId
func (x *Snapshot) GetSourceDiskId() string {
if x != nil {
return x.SourceDiskId
}
return ""
}
func init() {
proto.RegisterEnum("yandex.cloud.compute.v1.Snapshot_Status", Snapshot_Status_name, Snapshot_Status_value)
proto.RegisterType((*Snapshot)(nil), "yandex.cloud.compute.v1.Snapshot")
proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.compute.v1.Snapshot.LabelsEntry")
var File_yandex_cloud_compute_v1_snapshot_proto protoreflect.FileDescriptor
var file_yandex_cloud_compute_v1_snapshot_proto_rawDesc = []byte{
0x0a, 0x26, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68,
0x6f, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76,
0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x22, 0xc7, 0x04, 0x0a, 0x08, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12,
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
0x1b, 0x0a, 0x09, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x08, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a,
0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72,
0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64,
0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x45, 0x0a,
0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e,
0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d,
0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74,
0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61,
0x62, 0x65, 0x6c, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f,
0x73, 0x69, 0x7a, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72,
0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x69, 0x73, 0x6b, 0x5f,
0x73, 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x69, 0x73, 0x6b,
0x53, 0x69, 0x7a, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x5f,
0x69, 0x64, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x64, 0x75,
0x63, 0x74, 0x49, 0x64, 0x73, 0x12, 0x40, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18,
0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63,
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x24, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63,
0x65, 0x5f, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x69, 0x73, 0x6b, 0x49, 0x64, 0x1a, 0x39, 0x0a,
0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x52, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74,
0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53,
0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x52,
0x45, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x45, 0x41, 0x44,
0x59, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x0c,
0x0a, 0x08, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x42, 0x62, 0x0a, 0x1b,
0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x5a, 0x43, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63,
0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f,
0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/compute/v1/snapshot.proto", fileDescriptor_cac027a1005d8550)
var (
file_yandex_cloud_compute_v1_snapshot_proto_rawDescOnce sync.Once
file_yandex_cloud_compute_v1_snapshot_proto_rawDescData = file_yandex_cloud_compute_v1_snapshot_proto_rawDesc
)
func file_yandex_cloud_compute_v1_snapshot_proto_rawDescGZIP() []byte {
file_yandex_cloud_compute_v1_snapshot_proto_rawDescOnce.Do(func() {
file_yandex_cloud_compute_v1_snapshot_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_compute_v1_snapshot_proto_rawDescData)
})
return file_yandex_cloud_compute_v1_snapshot_proto_rawDescData
}
var fileDescriptor_cac027a1005d8550 = []byte{
// 492 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x41, 0x8f, 0x9b, 0x3e,
0x10, 0xc5, 0xff, 0x84, 0x24, 0xff, 0x30, 0x44, 0x51, 0x64, 0x55, 0x2d, 0xca, 0x1e, 0x96, 0xae,
0xaa, 0x8a, 0x4b, 0x40, 0x9b, 0x5e, 0xba, 0xed, 0xa5, 0x69, 0x42, 0x2b, 0xa4, 0xd5, 0xb6, 0x32,
0xd9, 0x43, 0x7b, 0x41, 0x0e, 0xf6, 0xb2, 0x56, 0x08, 0x46, 0xd8, 0x44, 0xcd, 0x7e, 0xc1, 0x7e,
0xad, 0x0a, 0x43, 0xa4, 0xf4, 0xb0, 0xea, 0x6d, 0x78, 0xf3, 0x1b, 0x3f, 0x3f, 0x3c, 0xf0, 0xf6,
0x48, 0x0a, 0xca, 0x7e, 0x05, 0x69, 0x2e, 0x6a, 0x1a, 0xa4, 0x62, 0x5f, 0xd6, 0x8a, 0x05, 0x87,
0xeb, 0x40, 0x16, 0xa4, 0x94, 0x8f, 0x42, 0xf9, 0x65, 0x25, 0x94, 0x40, 0xaf, 0x5a, 0xce, 0xd7,
0x9c, 0xdf, 0x71, 0xfe, 0xe1, 0x7a, 0x76, 0x99, 0x09, 0x91, 0xe5, 0x2c, 0xd0, 0xd8, 0xb6, 0x7e,
0x08, 0x14, 0xdf, 0x33, 0xa9, 0xc8, 0xbe, 0x6c, 0x27, 0xaf, 0x7e, 0xf7, 0x61, 0x14, 0x77, 0x87,
0xa1, 0x09, 0xf4, 0x38, 0x75, 0x0c, 0xd7, 0xf0, 0x2c, 0xdc, 0xe3, 0x14, 0x5d, 0x80, 0xf5, 0x20,
0x72, 0xca, 0xaa, 0x84, 0x53, 0xa7, 0xa7, 0xe5, 0x51, 0x2b, 0x44, 0x14, 0xdd, 0x00, 0xa4, 0x15,
0x23, 0x8a, 0xd1, 0x84, 0x28, 0xc7, 0x74, 0x0d, 0xcf, 0x5e, 0xcc, 0xfc, 0xd6, 0xcf, 0x3f, 0xf9,
0xf9, 0x9b, 0x93, 0x1f, 0xb6, 0x3a, 0x7a, 0xa9, 0x10, 0x82, 0x7e, 0x41, 0xf6, 0xcc, 0xe9, 0xeb,
0x23, 0x75, 0x8d, 0x5c, 0xb0, 0x29, 0x93, 0x69, 0xc5, 0x4b, 0xc5, 0x45, 0xe1, 0x0c, 0x74, 0xeb,
0x5c, 0x42, 0x21, 0x0c, 0x73, 0xb2, 0x65, 0xb9, 0x74, 0x86, 0xae, 0xe9, 0xd9, 0x8b, 0xb9, 0xff,
0x4c, 0x6a, 0xff, 0x14, 0xc8, 0xbf, 0xd5, 0x7c, 0x58, 0xa8, 0xea, 0x88, 0xbb, 0x61, 0xf4, 0x1a,
0xc6, 0x52, 0x89, 0x8a, 0x64, 0x2c, 0x91, 0xfc, 0x89, 0x39, 0xff, 0xbb, 0x86, 0x67, 0x62, 0xbb,
0xd3, 0x62, 0xfe, 0xc4, 0x9a, 0xdc, 0x94, 0xcb, 0x5d, 0xdb, 0x1f, 0xe9, 0xfe, 0xa8, 0x11, 0x74,
0xf3, 0x12, 0xec, 0xb2, 0x12, 0xb4, 0x4e, 0x55, 0xc2, 0xa9, 0x74, 0x2c, 0xd7, 0xf4, 0x2c, 0x0c,
0x9d, 0x14, 0x51, 0x89, 0x3e, 0xc1, 0x50, 0x2a, 0xa2, 0x6a, 0xe9, 0x80, 0x6b, 0x78, 0x93, 0x85,
0xf7, 0xef, 0x7b, 0xc6, 0x9a, 0xc7, 0xdd, 0x1c, 0x7a, 0x03, 0x13, 0x29, 0xea, 0x2a, 0x65, 0x89,
0xbe, 0x06, 0xa7, 0x8e, 0xad, 0x7f, 0xc7, 0xb8, 0x55, 0xd7, 0x5c, 0xee, 0x22, 0x3a, 0xbb, 0x01,
0xfb, 0x2c, 0x1f, 0x9a, 0x82, 0xb9, 0x63, 0xc7, 0xee, 0xf5, 0x9a, 0x12, 0xbd, 0x80, 0xc1, 0x81,
0xe4, 0x35, 0xeb, 0x9e, 0xae, 0xfd, 0xf8, 0xd0, 0x7b, 0x6f, 0x5c, 0x61, 0x18, 0xb6, 0x96, 0xe8,
0x25, 0xa0, 0x78, 0xb3, 0xdc, 0xdc, 0xc7, 0xc9, 0xfd, 0x5d, 0xfc, 0x3d, 0x5c, 0x45, 0x5f, 0xa2,
0x70, 0x3d, 0xfd, 0x0f, 0x8d, 0x61, 0xb4, 0xc2, 0xe1, 0x72, 0x13, 0xdd, 0x7d, 0x9d, 0x1a, 0xc8,
0x82, 0x01, 0x0e, 0x97, 0xeb, 0x1f, 0xd3, 0x5e, 0x53, 0x86, 0x18, 0x7f, 0xc3, 0x53, 0xb3, 0x61,
0xd6, 0xe1, 0x6d, 0xa8, 0x99, 0xfe, 0xe7, 0x2d, 0x5c, 0xfc, 0x95, 0x93, 0x94, 0xfc, 0x2c, 0xeb,
0xcf, 0x55, 0xc6, 0xd5, 0x63, 0xbd, 0x6d, 0xa4, 0xa0, 0xe5, 0xe6, 0xed, 0x56, 0x67, 0x62, 0x9e,
0xb1, 0x42, 0x2f, 0x4c, 0xf0, 0xcc, 0xba, 0x7f, 0xec, 0xca, 0xed, 0x50, 0x63, 0xef, 0xfe, 0x04,
0x00, 0x00, 0xff, 0xff, 0xf5, 0x2f, 0x5e, 0x1f, 0x18, 0x03, 0x00, 0x00,
var file_yandex_cloud_compute_v1_snapshot_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_compute_v1_snapshot_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_compute_v1_snapshot_proto_goTypes = []interface{}{
(Snapshot_Status)(0), // 0: yandex.cloud.compute.v1.Snapshot.Status
(*Snapshot)(nil), // 1: yandex.cloud.compute.v1.Snapshot
nil, // 2: yandex.cloud.compute.v1.Snapshot.LabelsEntry
(*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp
}
var file_yandex_cloud_compute_v1_snapshot_proto_depIdxs = []int32{
3, // 0: yandex.cloud.compute.v1.Snapshot.created_at:type_name -> google.protobuf.Timestamp
2, // 1: yandex.cloud.compute.v1.Snapshot.labels:type_name -> yandex.cloud.compute.v1.Snapshot.LabelsEntry
0, // 2: yandex.cloud.compute.v1.Snapshot.status:type_name -> yandex.cloud.compute.v1.Snapshot.Status
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_yandex_cloud_compute_v1_snapshot_proto_init() }
func file_yandex_cloud_compute_v1_snapshot_proto_init() {
if File_yandex_cloud_compute_v1_snapshot_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_compute_v1_snapshot_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Snapshot); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_compute_v1_snapshot_proto_rawDesc,
NumEnums: 1,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_compute_v1_snapshot_proto_goTypes,
DependencyIndexes: file_yandex_cloud_compute_v1_snapshot_proto_depIdxs,
EnumInfos: file_yandex_cloud_compute_v1_snapshot_proto_enumTypes,
MessageInfos: file_yandex_cloud_compute_v1_snapshot_proto_msgTypes,
}.Build()
File_yandex_cloud_compute_v1_snapshot_proto = out.File
file_yandex_cloud_compute_v1_snapshot_proto_rawDesc = nil
file_yandex_cloud_compute_v1_snapshot_proto_goTypes = nil
file_yandex_cloud_compute_v1_snapshot_proto_depIdxs = nil
}

File diff suppressed because it is too large Load Diff

View File

@ -1,24 +1,29 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/compute/v1/zone.proto
package compute
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type Zone_Status int32
@ -30,110 +35,204 @@ const (
Zone_DOWN Zone_Status = 2
)
var Zone_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "UP",
2: "DOWN",
}
// Enum value maps for Zone_Status.
var (
Zone_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "UP",
2: "DOWN",
}
Zone_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"UP": 1,
"DOWN": 2,
}
)
var Zone_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"UP": 1,
"DOWN": 2,
func (x Zone_Status) Enum() *Zone_Status {
p := new(Zone_Status)
*p = x
return p
}
func (x Zone_Status) String() string {
return proto.EnumName(Zone_Status_name, int32(x))
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Zone_Status) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_compute_v1_zone_proto_enumTypes[0].Descriptor()
}
func (Zone_Status) Type() protoreflect.EnumType {
return &file_yandex_cloud_compute_v1_zone_proto_enumTypes[0]
}
func (x Zone_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Zone_Status.Descriptor instead.
func (Zone_Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_65f3e219794453a2, []int{0, 0}
return file_yandex_cloud_compute_v1_zone_proto_rawDescGZIP(), []int{0, 0}
}
// Availability zone. For more information, see [Availability zones](/docs/overview/concepts/geo-scope).
type Zone struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the zone.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// ID of the region.
RegionId string `protobuf:"bytes,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
// Status of the zone.
Status Zone_Status `protobuf:"varint,3,opt,name=status,proto3,enum=yandex.cloud.compute.v1.Zone_Status" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Status Zone_Status `protobuf:"varint,3,opt,name=status,proto3,enum=yandex.cloud.compute.v1.Zone_Status" json:"status,omitempty"`
}
func (m *Zone) Reset() { *m = Zone{} }
func (m *Zone) String() string { return proto.CompactTextString(m) }
func (*Zone) ProtoMessage() {}
func (x *Zone) Reset() {
*x = Zone{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_zone_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Zone) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Zone) ProtoMessage() {}
func (x *Zone) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_zone_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Zone.ProtoReflect.Descriptor instead.
func (*Zone) Descriptor() ([]byte, []int) {
return fileDescriptor_65f3e219794453a2, []int{0}
return file_yandex_cloud_compute_v1_zone_proto_rawDescGZIP(), []int{0}
}
func (m *Zone) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Zone.Unmarshal(m, b)
}
func (m *Zone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Zone.Marshal(b, m, deterministic)
}
func (m *Zone) XXX_Merge(src proto.Message) {
xxx_messageInfo_Zone.Merge(m, src)
}
func (m *Zone) XXX_Size() int {
return xxx_messageInfo_Zone.Size(m)
}
func (m *Zone) XXX_DiscardUnknown() {
xxx_messageInfo_Zone.DiscardUnknown(m)
}
var xxx_messageInfo_Zone proto.InternalMessageInfo
func (m *Zone) GetId() string {
if m != nil {
return m.Id
func (x *Zone) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (m *Zone) GetRegionId() string {
if m != nil {
return m.RegionId
func (x *Zone) GetRegionId() string {
if x != nil {
return x.RegionId
}
return ""
}
func (m *Zone) GetStatus() Zone_Status {
if m != nil {
return m.Status
func (x *Zone) GetStatus() Zone_Status {
if x != nil {
return x.Status
}
return Zone_STATUS_UNSPECIFIED
}
func init() {
proto.RegisterEnum("yandex.cloud.compute.v1.Zone_Status", Zone_Status_name, Zone_Status_value)
proto.RegisterType((*Zone)(nil), "yandex.cloud.compute.v1.Zone")
var File_yandex_cloud_compute_v1_zone_proto protoreflect.FileDescriptor
var file_yandex_cloud_compute_v1_zone_proto_rawDesc = []byte{
0x0a, 0x22, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x7a, 0x6f, 0x6e, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f,
0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x22, 0xa5, 0x01,
0x0a, 0x04, 0x5a, 0x6f, 0x6e, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20,
0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f,
0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x5a, 0x6f,
0x6e, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
0x73, 0x22, 0x32, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53,
0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x55, 0x50, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44,
0x4f, 0x57, 0x4e, 0x10, 0x02, 0x42, 0x62, 0x0a, 0x1b, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74,
0x65, 0x2e, 0x76, 0x31, 0x5a, 0x43, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f,
0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76,
0x31, 0x3b, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/compute/v1/zone.proto", fileDescriptor_65f3e219794453a2)
var (
file_yandex_cloud_compute_v1_zone_proto_rawDescOnce sync.Once
file_yandex_cloud_compute_v1_zone_proto_rawDescData = file_yandex_cloud_compute_v1_zone_proto_rawDesc
)
func file_yandex_cloud_compute_v1_zone_proto_rawDescGZIP() []byte {
file_yandex_cloud_compute_v1_zone_proto_rawDescOnce.Do(func() {
file_yandex_cloud_compute_v1_zone_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_compute_v1_zone_proto_rawDescData)
})
return file_yandex_cloud_compute_v1_zone_proto_rawDescData
}
var fileDescriptor_65f3e219794453a2 = []byte{
// 247 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xaa, 0x4c, 0xcc, 0x4b,
0x49, 0xad, 0xd0, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0x4f, 0xce, 0xcf, 0x2d, 0x28, 0x2d, 0x49,
0xd5, 0x2f, 0x33, 0xd4, 0xaf, 0xca, 0xcf, 0x4b, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12,
0x87, 0xa8, 0xd1, 0x03, 0xab, 0xd1, 0x83, 0xaa, 0xd1, 0x2b, 0x33, 0x54, 0x5a, 0xca, 0xc8, 0xc5,
0x12, 0x95, 0x9f, 0x97, 0x2a, 0xc4, 0xc7, 0xc5, 0x94, 0x99, 0x22, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1,
0x19, 0xc4, 0x94, 0x99, 0x22, 0x24, 0xcd, 0xc5, 0x59, 0x94, 0x9a, 0x9e, 0x99, 0x9f, 0x17, 0x9f,
0x99, 0x22, 0xc1, 0x04, 0x16, 0xe6, 0x80, 0x08, 0x78, 0xa6, 0x08, 0xd9, 0x70, 0xb1, 0x15, 0x97,
0x24, 0x96, 0x94, 0x16, 0x4b, 0x30, 0x2b, 0x30, 0x6a, 0xf0, 0x19, 0xa9, 0xe8, 0xe1, 0x30, 0x5f,
0x0f, 0x64, 0xb6, 0x5e, 0x30, 0x58, 0x6d, 0x10, 0x54, 0x8f, 0x92, 0x11, 0x17, 0x1b, 0x44, 0x44,
0x48, 0x8c, 0x4b, 0x28, 0x38, 0xc4, 0x31, 0x24, 0x34, 0x38, 0x3e, 0xd4, 0x2f, 0x38, 0xc0, 0xd5,
0xd9, 0xd3, 0xcd, 0xd3, 0xd5, 0x45, 0x80, 0x41, 0x88, 0x8d, 0x8b, 0x29, 0x34, 0x40, 0x80, 0x51,
0x88, 0x83, 0x8b, 0xc5, 0xc5, 0x3f, 0xdc, 0x4f, 0x80, 0xc9, 0x29, 0x89, 0x4b, 0x1a, 0xc5, 0x8a,
0xc4, 0x82, 0x4c, 0x24, 0x6b, 0xa2, 0x9c, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0x40, 0x42, 0xfa,
0x10, 0x75, 0xba, 0x90, 0xe0, 0x48, 0xcf, 0xd7, 0x4d, 0x4f, 0xcd, 0x03, 0x07, 0x82, 0x3e, 0x8e,
0x70, 0xb2, 0x86, 0x32, 0x93, 0xd8, 0xc0, 0xca, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x68,
0x94, 0x29, 0x12, 0x51, 0x01, 0x00, 0x00,
var file_yandex_cloud_compute_v1_zone_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_compute_v1_zone_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_compute_v1_zone_proto_goTypes = []interface{}{
(Zone_Status)(0), // 0: yandex.cloud.compute.v1.Zone.Status
(*Zone)(nil), // 1: yandex.cloud.compute.v1.Zone
}
var file_yandex_cloud_compute_v1_zone_proto_depIdxs = []int32{
0, // 0: yandex.cloud.compute.v1.Zone.status:type_name -> yandex.cloud.compute.v1.Zone.Status
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_yandex_cloud_compute_v1_zone_proto_init() }
func file_yandex_cloud_compute_v1_zone_proto_init() {
if File_yandex_cloud_compute_v1_zone_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_compute_v1_zone_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Zone); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_compute_v1_zone_proto_rawDesc,
NumEnums: 1,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_compute_v1_zone_proto_goTypes,
DependencyIndexes: file_yandex_cloud_compute_v1_zone_proto_depIdxs,
EnumInfos: file_yandex_cloud_compute_v1_zone_proto_enumTypes,
MessageInfos: file_yandex_cloud_compute_v1_zone_proto_msgTypes,
}.Build()
File_yandex_cloud_compute_v1_zone_proto = out.File
file_yandex_cloud_compute_v1_zone_proto_rawDesc = nil
file_yandex_cloud_compute_v1_zone_proto_goTypes = nil
file_yandex_cloud_compute_v1_zone_proto_depIdxs = nil
}

View File

@ -1,32 +1,41 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/compute/v1/zone_service.proto
package compute
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type ListZonesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of results per page to return. If the number of available
// results is larger than [page_size],
// the service returns a [ListZonesResponse.next_page_token]
@ -34,52 +43,60 @@ type ListZonesRequest struct {
PageSize int64 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Page token. To get the next page of results, set [page_token] to the
// [ListZonesResponse.next_page_token] returned by a previous list request.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
}
func (m *ListZonesRequest) Reset() { *m = ListZonesRequest{} }
func (m *ListZonesRequest) String() string { return proto.CompactTextString(m) }
func (*ListZonesRequest) ProtoMessage() {}
func (x *ListZonesRequest) Reset() {
*x = ListZonesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_zone_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListZonesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListZonesRequest) ProtoMessage() {}
func (x *ListZonesRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_zone_service_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListZonesRequest.ProtoReflect.Descriptor instead.
func (*ListZonesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_c45093f3209cbc9e, []int{0}
return file_yandex_cloud_compute_v1_zone_service_proto_rawDescGZIP(), []int{0}
}
func (m *ListZonesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListZonesRequest.Unmarshal(m, b)
}
func (m *ListZonesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListZonesRequest.Marshal(b, m, deterministic)
}
func (m *ListZonesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListZonesRequest.Merge(m, src)
}
func (m *ListZonesRequest) XXX_Size() int {
return xxx_messageInfo_ListZonesRequest.Size(m)
}
func (m *ListZonesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListZonesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListZonesRequest proto.InternalMessageInfo
func (m *ListZonesRequest) GetPageSize() int64 {
if m != nil {
return m.PageSize
func (x *ListZonesRequest) GetPageSize() int64 {
if x != nil {
return x.PageSize
}
return 0
}
func (m *ListZonesRequest) GetPageToken() string {
if m != nil {
return m.PageToken
func (x *ListZonesRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
type ListZonesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// List of availability zones.
Zones []*Zone `protobuf:"bytes,1,rep,name=zones,proto3" json:"zones,omitempty"`
// This token allows you to get the next page of results for list requests. If the number of results
@ -88,130 +105,253 @@ type ListZonesResponse struct {
// for the [ListZonesRequest.page_token] query parameter
// in the next list request. Subsequent list requests will have their own
// [ListZonesRequest.page_token] to continue paging through the results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (m *ListZonesResponse) Reset() { *m = ListZonesResponse{} }
func (m *ListZonesResponse) String() string { return proto.CompactTextString(m) }
func (*ListZonesResponse) ProtoMessage() {}
func (x *ListZonesResponse) Reset() {
*x = ListZonesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_zone_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListZonesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListZonesResponse) ProtoMessage() {}
func (x *ListZonesResponse) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_zone_service_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListZonesResponse.ProtoReflect.Descriptor instead.
func (*ListZonesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c45093f3209cbc9e, []int{1}
return file_yandex_cloud_compute_v1_zone_service_proto_rawDescGZIP(), []int{1}
}
func (m *ListZonesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListZonesResponse.Unmarshal(m, b)
}
func (m *ListZonesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListZonesResponse.Marshal(b, m, deterministic)
}
func (m *ListZonesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListZonesResponse.Merge(m, src)
}
func (m *ListZonesResponse) XXX_Size() int {
return xxx_messageInfo_ListZonesResponse.Size(m)
}
func (m *ListZonesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListZonesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListZonesResponse proto.InternalMessageInfo
func (m *ListZonesResponse) GetZones() []*Zone {
if m != nil {
return m.Zones
func (x *ListZonesResponse) GetZones() []*Zone {
if x != nil {
return x.Zones
}
return nil
}
func (m *ListZonesResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
func (x *ListZonesResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type GetZoneRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the availability zone to return information about.
ZoneId string `protobuf:"bytes,1,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
ZoneId string `protobuf:"bytes,1,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"`
}
func (m *GetZoneRequest) Reset() { *m = GetZoneRequest{} }
func (m *GetZoneRequest) String() string { return proto.CompactTextString(m) }
func (*GetZoneRequest) ProtoMessage() {}
func (x *GetZoneRequest) Reset() {
*x = GetZoneRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_compute_v1_zone_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetZoneRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetZoneRequest) ProtoMessage() {}
func (x *GetZoneRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_compute_v1_zone_service_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetZoneRequest.ProtoReflect.Descriptor instead.
func (*GetZoneRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_c45093f3209cbc9e, []int{2}
return file_yandex_cloud_compute_v1_zone_service_proto_rawDescGZIP(), []int{2}
}
func (m *GetZoneRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetZoneRequest.Unmarshal(m, b)
}
func (m *GetZoneRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetZoneRequest.Marshal(b, m, deterministic)
}
func (m *GetZoneRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetZoneRequest.Merge(m, src)
}
func (m *GetZoneRequest) XXX_Size() int {
return xxx_messageInfo_GetZoneRequest.Size(m)
}
func (m *GetZoneRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetZoneRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetZoneRequest proto.InternalMessageInfo
func (m *GetZoneRequest) GetZoneId() string {
if m != nil {
return m.ZoneId
func (x *GetZoneRequest) GetZoneId() string {
if x != nil {
return x.ZoneId
}
return ""
}
func init() {
proto.RegisterType((*ListZonesRequest)(nil), "yandex.cloud.compute.v1.ListZonesRequest")
proto.RegisterType((*ListZonesResponse)(nil), "yandex.cloud.compute.v1.ListZonesResponse")
proto.RegisterType((*GetZoneRequest)(nil), "yandex.cloud.compute.v1.GetZoneRequest")
var File_yandex_cloud_compute_v1_zone_service_proto protoreflect.FileDescriptor
var file_yandex_cloud_compute_v1_zone_service_proto_rawDesc = []byte{
0x0a, 0x2a, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x7a, 0x6f, 0x6e, 0x65, 0x5f, 0x73,
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x79, 0x61,
0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75,
0x74, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x7a, 0x6f, 0x6e,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x65, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x5a, 0x6f,
0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x09, 0x70, 0x61,
0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x42, 0x0a, 0xfa,
0xc7, 0x31, 0x06, 0x3c, 0x3d, 0x31, 0x30, 0x30, 0x30, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53,
0x69, 0x7a, 0x65, 0x12, 0x28, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65,
0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x09, 0x8a, 0xc8, 0x31, 0x05, 0x3c, 0x3d, 0x31,
0x30, 0x30, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x70, 0x0a,
0x11, 0x4c, 0x69, 0x73, 0x74, 0x5a, 0x6f, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x33, 0x0a, 0x05, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x1d, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x5a, 0x6f, 0x6e, 0x65,
0x52, 0x05, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f,
0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22,
0x37, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x5a, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x25, 0x0a, 0x07, 0x7a, 0x6f, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x42, 0x0c, 0xe8, 0xc7, 0x31, 0x01, 0x8a, 0xc8, 0x31, 0x04, 0x3c, 0x3d, 0x35, 0x30,
0x52, 0x06, 0x7a, 0x6f, 0x6e, 0x65, 0x49, 0x64, 0x32, 0xfb, 0x01, 0x0a, 0x0b, 0x5a, 0x6f, 0x6e,
0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x72, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12,
0x27, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63,
0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x5a, 0x6f, 0x6e,
0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x5a, 0x6f, 0x6e, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12,
0x1b, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x7a, 0x6f, 0x6e,
0x65, 0x73, 0x2f, 0x7b, 0x7a, 0x6f, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x78, 0x0a, 0x04,
0x4c, 0x69, 0x73, 0x74, 0x12, 0x29, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c,
0x69, 0x73, 0x74, 0x5a, 0x6f, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x2a, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63,
0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x5a, 0x6f,
0x6e, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x19, 0x82, 0xd3, 0xe4,
0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x76, 0x31,
0x2f, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x42, 0x62, 0x0a, 0x1b, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75,
0x74, 0x65, 0x2e, 0x76, 0x31, 0x5a, 0x43, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67,
0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f,
0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/compute/v1/zone_service.proto", fileDescriptor_c45093f3209cbc9e)
var (
file_yandex_cloud_compute_v1_zone_service_proto_rawDescOnce sync.Once
file_yandex_cloud_compute_v1_zone_service_proto_rawDescData = file_yandex_cloud_compute_v1_zone_service_proto_rawDesc
)
func file_yandex_cloud_compute_v1_zone_service_proto_rawDescGZIP() []byte {
file_yandex_cloud_compute_v1_zone_service_proto_rawDescOnce.Do(func() {
file_yandex_cloud_compute_v1_zone_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_compute_v1_zone_service_proto_rawDescData)
})
return file_yandex_cloud_compute_v1_zone_service_proto_rawDescData
}
var fileDescriptor_c45093f3209cbc9e = []byte{
// 428 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xbf, 0x8f, 0xd3, 0x30,
0x14, 0xc7, 0x95, 0xeb, 0x5d, 0x21, 0x3e, 0x7e, 0x9d, 0x19, 0x28, 0x39, 0x2a, 0x55, 0x41, 0x70,
0xe1, 0xa4, 0x8b, 0x93, 0x3b, 0x21, 0x06, 0xda, 0x25, 0x0c, 0x15, 0x12, 0x03, 0x4a, 0x99, 0xba,
0x54, 0x69, 0xf3, 0x14, 0x2c, 0x8a, 0x1d, 0x6a, 0x27, 0x2a, 0x45, 0x2c, 0x8c, 0x5d, 0xf9, 0xa3,
0xda, 0x9d, 0x7f, 0x81, 0x81, 0xbf, 0x01, 0x16, 0x64, 0x3b, 0xa0, 0xb6, 0x28, 0x15, 0x9b, 0xe5,
0xf7, 0x79, 0xef, 0xfb, 0x7d, 0x3f, 0xd0, 0xf9, 0xc7, 0x84, 0xa5, 0x30, 0x27, 0x93, 0x29, 0x2f,
0x52, 0x32, 0xe1, 0xef, 0xf3, 0x42, 0x02, 0x29, 0x43, 0xb2, 0xe0, 0x0c, 0x46, 0x02, 0x66, 0x25,
0x9d, 0x80, 0x9f, 0xcf, 0xb8, 0xe4, 0xf8, 0x9e, 0x61, 0x7d, 0xcd, 0xfa, 0x15, 0xeb, 0x97, 0xa1,
0xf3, 0x20, 0xe3, 0x3c, 0x9b, 0x02, 0x49, 0x72, 0x4a, 0x12, 0xc6, 0xb8, 0x4c, 0x24, 0xe5, 0x4c,
0x98, 0x34, 0xc7, 0xdd, 0x27, 0x51, 0x31, 0xed, 0x2d, 0xa6, 0x4c, 0xa6, 0x34, 0xd5, 0x35, 0x4c,
0xd8, 0x05, 0x74, 0xe7, 0x15, 0x15, 0x72, 0xc8, 0x19, 0x88, 0x18, 0x3e, 0x14, 0x20, 0x24, 0x3e,
0x43, 0x76, 0x9e, 0x64, 0x30, 0x12, 0x74, 0x01, 0x2d, 0xab, 0x63, 0x79, 0x8d, 0x08, 0xfd, 0x5c,
0x85, 0xcd, 0x6e, 0x2f, 0x0c, 0x82, 0x20, 0xbe, 0xae, 0x82, 0x03, 0xba, 0x00, 0xec, 0x21, 0xa4,
0x41, 0xc9, 0xdf, 0x01, 0x6b, 0x1d, 0x74, 0x2c, 0xcf, 0x8e, 0xec, 0xe5, 0x3a, 0x3c, 0xd2, 0x64,
0xac, 0xab, 0xbc, 0x51, 0x31, 0x37, 0x47, 0x27, 0x1b, 0x32, 0x22, 0xe7, 0x4c, 0x00, 0xbe, 0x42,
0x47, 0xca, 0xa8, 0x68, 0x59, 0x9d, 0x86, 0x77, 0x7c, 0xd9, 0xf6, 0x6b, 0xa6, 0xe0, 0xab, 0xb4,
0xd8, 0xb0, 0xf8, 0x31, 0xba, 0xcd, 0x60, 0x2e, 0x47, 0xbb, 0xc2, 0xf1, 0x4d, 0xf5, 0xfd, 0xfa,
0xaf, 0xe2, 0x33, 0x74, 0xab, 0x0f, 0x5a, 0xf0, 0x4f, 0x5b, 0x8f, 0xd0, 0x35, 0x3d, 0x7a, 0x9a,
0xea, 0xa6, 0xec, 0xe8, 0xc6, 0x8f, 0x55, 0x68, 0x2d, 0xd7, 0xe1, 0x61, 0xb7, 0xf7, 0x34, 0x88,
0x9b, 0x2a, 0xf8, 0x32, 0xbd, 0xfc, 0x65, 0xa1, 0x63, 0x95, 0x36, 0x30, 0x1b, 0xc2, 0x33, 0xd4,
0xe8, 0x83, 0xc4, 0x67, 0xb5, 0xee, 0xb6, 0x65, 0x9c, 0xfd, 0x6d, 0xb8, 0x0f, 0xbf, 0x7c, 0xfb,
0xfe, 0xf5, 0xa0, 0x8d, 0x4f, 0x77, 0xf7, 0x25, 0xc8, 0xa7, 0xca, 0xde, 0x67, 0x3c, 0x47, 0x87,
0x6a, 0x5c, 0xf8, 0x49, 0x6d, 0xad, 0xdd, 0xa5, 0x39, 0xe7, 0xff, 0x83, 0x9a, 0xc1, 0xbb, 0xf7,
0xb5, 0x87, 0xbb, 0xf8, 0xe4, 0x1f, 0x0f, 0xd1, 0x18, 0x9d, 0x6e, 0xd5, 0x49, 0x72, 0xba, 0x51,
0x6b, 0xf8, 0x22, 0xa3, 0xf2, 0x6d, 0x31, 0x56, 0x5f, 0xc4, 0x70, 0x17, 0xe6, 0xb0, 0x32, 0x7e,
0x91, 0x01, 0xd3, 0x37, 0x45, 0x6a, 0xae, 0xf2, 0x79, 0xf5, 0x1c, 0x37, 0x35, 0x76, 0xf5, 0x3b,
0x00, 0x00, 0xff, 0xff, 0x41, 0xfa, 0xcd, 0x99, 0x22, 0x03, 0x00, 0x00,
var file_yandex_cloud_compute_v1_zone_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_compute_v1_zone_service_proto_goTypes = []interface{}{
(*ListZonesRequest)(nil), // 0: yandex.cloud.compute.v1.ListZonesRequest
(*ListZonesResponse)(nil), // 1: yandex.cloud.compute.v1.ListZonesResponse
(*GetZoneRequest)(nil), // 2: yandex.cloud.compute.v1.GetZoneRequest
(*Zone)(nil), // 3: yandex.cloud.compute.v1.Zone
}
var file_yandex_cloud_compute_v1_zone_service_proto_depIdxs = []int32{
3, // 0: yandex.cloud.compute.v1.ListZonesResponse.zones:type_name -> yandex.cloud.compute.v1.Zone
2, // 1: yandex.cloud.compute.v1.ZoneService.Get:input_type -> yandex.cloud.compute.v1.GetZoneRequest
0, // 2: yandex.cloud.compute.v1.ZoneService.List:input_type -> yandex.cloud.compute.v1.ListZonesRequest
3, // 3: yandex.cloud.compute.v1.ZoneService.Get:output_type -> yandex.cloud.compute.v1.Zone
1, // 4: yandex.cloud.compute.v1.ZoneService.List:output_type -> yandex.cloud.compute.v1.ListZonesResponse
3, // [3:5] is the sub-list for method output_type
1, // [1:3] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_yandex_cloud_compute_v1_zone_service_proto_init() }
func file_yandex_cloud_compute_v1_zone_service_proto_init() {
if File_yandex_cloud_compute_v1_zone_service_proto != nil {
return
}
file_yandex_cloud_compute_v1_zone_proto_init()
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_compute_v1_zone_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListZonesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_compute_v1_zone_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListZonesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_compute_v1_zone_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetZoneRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_compute_v1_zone_service_proto_rawDesc,
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_yandex_cloud_compute_v1_zone_service_proto_goTypes,
DependencyIndexes: file_yandex_cloud_compute_v1_zone_service_proto_depIdxs,
MessageInfos: file_yandex_cloud_compute_v1_zone_service_proto_msgTypes,
}.Build()
File_yandex_cloud_compute_v1_zone_service_proto = out.File
file_yandex_cloud_compute_v1_zone_service_proto_rawDesc = nil
file_yandex_cloud_compute_v1_zone_service_proto_goTypes = nil
file_yandex_cloud_compute_v1_zone_service_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
@ -274,10 +414,10 @@ type ZoneServiceServer interface {
type UnimplementedZoneServiceServer struct {
}
func (*UnimplementedZoneServiceServer) Get(ctx context.Context, req *GetZoneRequest) (*Zone, error) {
func (*UnimplementedZoneServiceServer) Get(context.Context, *GetZoneRequest) (*Zone, error) {
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
}
func (*UnimplementedZoneServiceServer) List(ctx context.Context, req *ListZonesRequest) (*ListZonesResponse, error) {
func (*UnimplementedZoneServiceServer) List(context.Context, *ListZonesRequest) (*ListZonesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
}

View File

@ -1,113 +1,189 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/containerregistry/v1/blob.proto
package containerregistry
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// A Blob resource.
type Blob struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. ID of the blob.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Content-addressable identifier of the blob.
Digest string `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
// Size of the blob, specified in bytes.
Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
Urls []string `protobuf:"bytes,4,rep,name=urls,proto3" json:"urls,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
Urls []string `protobuf:"bytes,4,rep,name=urls,proto3" json:"urls,omitempty"`
}
func (m *Blob) Reset() { *m = Blob{} }
func (m *Blob) String() string { return proto.CompactTextString(m) }
func (*Blob) ProtoMessage() {}
func (x *Blob) Reset() {
*x = Blob{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_containerregistry_v1_blob_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Blob) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Blob) ProtoMessage() {}
func (x *Blob) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_containerregistry_v1_blob_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Blob.ProtoReflect.Descriptor instead.
func (*Blob) Descriptor() ([]byte, []int) {
return fileDescriptor_22e64e0090128e6c, []int{0}
return file_yandex_cloud_containerregistry_v1_blob_proto_rawDescGZIP(), []int{0}
}
func (m *Blob) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Blob.Unmarshal(m, b)
}
func (m *Blob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Blob.Marshal(b, m, deterministic)
}
func (m *Blob) XXX_Merge(src proto.Message) {
xxx_messageInfo_Blob.Merge(m, src)
}
func (m *Blob) XXX_Size() int {
return xxx_messageInfo_Blob.Size(m)
}
func (m *Blob) XXX_DiscardUnknown() {
xxx_messageInfo_Blob.DiscardUnknown(m)
}
var xxx_messageInfo_Blob proto.InternalMessageInfo
func (m *Blob) GetId() string {
if m != nil {
return m.Id
func (x *Blob) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (m *Blob) GetDigest() string {
if m != nil {
return m.Digest
func (x *Blob) GetDigest() string {
if x != nil {
return x.Digest
}
return ""
}
func (m *Blob) GetSize() int64 {
if m != nil {
return m.Size
func (x *Blob) GetSize() int64 {
if x != nil {
return x.Size
}
return 0
}
func (m *Blob) GetUrls() []string {
if m != nil {
return m.Urls
func (x *Blob) GetUrls() []string {
if x != nil {
return x.Urls
}
return nil
}
func init() {
proto.RegisterType((*Blob)(nil), "yandex.cloud.containerregistry.v1.Blob")
var File_yandex_cloud_containerregistry_v1_blob_proto protoreflect.FileDescriptor
var file_yandex_cloud_containerregistry_v1_blob_proto_rawDesc = []byte{
0x0a, 0x2c, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x2f, 0x76, 0x31, 0x2f, 0x62, 0x6c, 0x6f, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21,
0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e,
0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76,
0x31, 0x22, 0x56, 0x0a, 0x04, 0x42, 0x6c, 0x6f, 0x62, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x69, 0x67,
0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73,
0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x72, 0x6c, 0x73, 0x18, 0x04, 0x20,
0x03, 0x28, 0x09, 0x52, 0x04, 0x75, 0x72, 0x6c, 0x73, 0x42, 0x80, 0x01, 0x0a, 0x25, 0x79, 0x61,
0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63,
0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x2e, 0x76, 0x31, 0x5a, 0x57, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d,
0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6e, 0x74, 0x61,
0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/containerregistry/v1/blob.proto", fileDescriptor_22e64e0090128e6c)
var (
file_yandex_cloud_containerregistry_v1_blob_proto_rawDescOnce sync.Once
file_yandex_cloud_containerregistry_v1_blob_proto_rawDescData = file_yandex_cloud_containerregistry_v1_blob_proto_rawDesc
)
func file_yandex_cloud_containerregistry_v1_blob_proto_rawDescGZIP() []byte {
file_yandex_cloud_containerregistry_v1_blob_proto_rawDescOnce.Do(func() {
file_yandex_cloud_containerregistry_v1_blob_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_containerregistry_v1_blob_proto_rawDescData)
})
return file_yandex_cloud_containerregistry_v1_blob_proto_rawDescData
}
var fileDescriptor_22e64e0090128e6c = []byte{
// 204 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x8f, 0xb1, 0x4a, 0xc6, 0x30,
0x14, 0x85, 0x49, 0x5b, 0x7e, 0x68, 0x06, 0x87, 0x0c, 0x92, 0xb1, 0x0a, 0x42, 0x07, 0x9b, 0x50,
0x1c, 0xdd, 0xfa, 0x08, 0x1d, 0x14, 0xdc, 0x9a, 0x26, 0xc4, 0x0b, 0x31, 0xb7, 0x24, 0x69, 0xb1,
0x4e, 0x3e, 0xba, 0x98, 0xba, 0x48, 0x05, 0xb7, 0x93, 0xc3, 0x77, 0xc8, 0xfd, 0xe8, 0xfd, 0x3e,
0x79, 0x6d, 0xde, 0xe5, 0xec, 0x70, 0xd5, 0x72, 0x46, 0x9f, 0x26, 0xf0, 0x26, 0x04, 0x63, 0x21,
0xa6, 0xb0, 0xcb, 0xad, 0x97, 0xca, 0xa1, 0x12, 0x4b, 0xc0, 0x84, 0xec, 0xe6, 0xa0, 0x45, 0xa6,
0xc5, 0x89, 0x16, 0x5b, 0x7f, 0xfb, 0x44, 0xab, 0xc1, 0xa1, 0x62, 0x57, 0xb4, 0x00, 0xcd, 0x49,
0x43, 0xda, 0x7a, 0x2c, 0x40, 0xb3, 0x6b, 0x7a, 0xd1, 0x60, 0x4d, 0x4c, 0xbc, 0xc8, 0xdd, 0xcf,
0x8b, 0x31, 0x5a, 0x45, 0xf8, 0x30, 0xbc, 0x6c, 0x48, 0x5b, 0x8e, 0x39, 0x7f, 0x77, 0x6b, 0x70,
0x91, 0x57, 0x4d, 0xd9, 0xd6, 0x63, 0xce, 0xc3, 0x27, 0xa1, 0x77, 0xbf, 0x7e, 0x9f, 0x16, 0xf8,
0xf3, 0x82, 0x97, 0x67, 0x0b, 0xe9, 0x75, 0x55, 0x62, 0xc6, 0x37, 0x79, 0x2c, 0xba, 0xc3, 0xce,
0x62, 0x67, 0x8d, 0xcf, 0x26, 0xf2, 0x5f, 0xed, 0xc7, 0x53, 0xa9, 0x2e, 0x79, 0xfa, 0xf0, 0x15,
0x00, 0x00, 0xff, 0xff, 0x9b, 0xfd, 0xdb, 0xf4, 0x34, 0x01, 0x00, 0x00,
var file_yandex_cloud_containerregistry_v1_blob_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_containerregistry_v1_blob_proto_goTypes = []interface{}{
(*Blob)(nil), // 0: yandex.cloud.containerregistry.v1.Blob
}
var file_yandex_cloud_containerregistry_v1_blob_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_yandex_cloud_containerregistry_v1_blob_proto_init() }
func file_yandex_cloud_containerregistry_v1_blob_proto_init() {
if File_yandex_cloud_containerregistry_v1_blob_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_containerregistry_v1_blob_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Blob); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_containerregistry_v1_blob_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_containerregistry_v1_blob_proto_goTypes,
DependencyIndexes: file_yandex_cloud_containerregistry_v1_blob_proto_depIdxs,
MessageInfos: file_yandex_cloud_containerregistry_v1_blob_proto_msgTypes,
}.Build()
File_yandex_cloud_containerregistry_v1_blob_proto = out.File
file_yandex_cloud_containerregistry_v1_blob_proto_rawDesc = nil
file_yandex_cloud_containerregistry_v1_blob_proto_goTypes = nil
file_yandex_cloud_containerregistry_v1_blob_proto_depIdxs = nil
}

View File

@ -1,28 +1,37 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/containerregistry/v1/image.proto
package containerregistry
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// An Image resource. For more information, see [Docker image](/docs/cloud/container-registry/docker-image).
type Image struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. ID of the Docker image.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Name of the Docker image.
@ -41,122 +50,206 @@ type Image struct {
// Each tag is unique within the repository.
Tags []string `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"`
// Output only. Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
CreatedAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
CreatedAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
}
func (m *Image) Reset() { *m = Image{} }
func (m *Image) String() string { return proto.CompactTextString(m) }
func (*Image) ProtoMessage() {}
func (x *Image) Reset() {
*x = Image{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_containerregistry_v1_image_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Image) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Image) ProtoMessage() {}
func (x *Image) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_containerregistry_v1_image_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Image.ProtoReflect.Descriptor instead.
func (*Image) Descriptor() ([]byte, []int) {
return fileDescriptor_0fedf978b00ec0da, []int{0}
return file_yandex_cloud_containerregistry_v1_image_proto_rawDescGZIP(), []int{0}
}
func (m *Image) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Image.Unmarshal(m, b)
}
func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Image.Marshal(b, m, deterministic)
}
func (m *Image) XXX_Merge(src proto.Message) {
xxx_messageInfo_Image.Merge(m, src)
}
func (m *Image) XXX_Size() int {
return xxx_messageInfo_Image.Size(m)
}
func (m *Image) XXX_DiscardUnknown() {
xxx_messageInfo_Image.DiscardUnknown(m)
}
var xxx_messageInfo_Image proto.InternalMessageInfo
func (m *Image) GetId() string {
if m != nil {
return m.Id
func (x *Image) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (m *Image) GetName() string {
if m != nil {
return m.Name
func (x *Image) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *Image) GetDigest() string {
if m != nil {
return m.Digest
func (x *Image) GetDigest() string {
if x != nil {
return x.Digest
}
return ""
}
func (m *Image) GetCompressedSize() int64 {
if m != nil {
return m.CompressedSize
func (x *Image) GetCompressedSize() int64 {
if x != nil {
return x.CompressedSize
}
return 0
}
func (m *Image) GetConfig() *Blob {
if m != nil {
return m.Config
func (x *Image) GetConfig() *Blob {
if x != nil {
return x.Config
}
return nil
}
func (m *Image) GetLayers() []*Blob {
if m != nil {
return m.Layers
func (x *Image) GetLayers() []*Blob {
if x != nil {
return x.Layers
}
return nil
}
func (m *Image) GetTags() []string {
if m != nil {
return m.Tags
func (x *Image) GetTags() []string {
if x != nil {
return x.Tags
}
return nil
}
func (m *Image) GetCreatedAt() *timestamp.Timestamp {
if m != nil {
return m.CreatedAt
func (x *Image) GetCreatedAt() *timestamp.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func init() {
proto.RegisterType((*Image)(nil), "yandex.cloud.containerregistry.v1.Image")
var File_yandex_cloud_containerregistry_v1_image_proto protoreflect.FileDescriptor
var file_yandex_cloud_containerregistry_v1_image_proto_rawDesc = []byte{
0x0a, 0x2d, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x21, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f,
0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e,
0x76, 0x31, 0x1a, 0x2c, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74,
0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x6c, 0x6f, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x22, 0xbd, 0x02, 0x0a, 0x05, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
0x16, 0x0a, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x72,
0x65, 0x73, 0x73, 0x65, 0x64, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03,
0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x53, 0x69, 0x7a, 0x65,
0x12, 0x3f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x27, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
0x79, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x62, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69,
0x67, 0x12, 0x3f, 0x0a, 0x06, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x27, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74,
0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x62, 0x52, 0x06, 0x6c, 0x61, 0x79, 0x65,
0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09,
0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d,
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41,
0x74, 0x42, 0x80, 0x01, 0x0a, 0x25, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f,
0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72,
0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x5a, 0x57, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63,
0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f,
0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f,
0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69,
0x73, 0x74, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/containerregistry/v1/image.proto", fileDescriptor_0fedf978b00ec0da)
var (
file_yandex_cloud_containerregistry_v1_image_proto_rawDescOnce sync.Once
file_yandex_cloud_containerregistry_v1_image_proto_rawDescData = file_yandex_cloud_containerregistry_v1_image_proto_rawDesc
)
func file_yandex_cloud_containerregistry_v1_image_proto_rawDescGZIP() []byte {
file_yandex_cloud_containerregistry_v1_image_proto_rawDescOnce.Do(func() {
file_yandex_cloud_containerregistry_v1_image_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_containerregistry_v1_image_proto_rawDescData)
})
return file_yandex_cloud_containerregistry_v1_image_proto_rawDescData
}
var fileDescriptor_0fedf978b00ec0da = []byte{
// 334 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x51, 0x41, 0x4b, 0x2b, 0x31,
0x18, 0x64, 0x77, 0xdb, 0x7d, 0xaf, 0x79, 0xd0, 0x07, 0x39, 0x48, 0xe8, 0xc5, 0x55, 0x90, 0xf6,
0x60, 0x13, 0xaa, 0x27, 0xf1, 0x20, 0xf6, 0xe6, 0x75, 0x15, 0x04, 0x2f, 0x25, 0xbb, 0xf9, 0x1a,
0x03, 0xbb, 0x9b, 0x25, 0x49, 0x8b, 0xed, 0xc9, 0x3f, 0xe6, 0x7f, 0x93, 0x4d, 0x5a, 0x44, 0x2a,
0x14, 0x6f, 0xf9, 0x86, 0x99, 0xc9, 0x7c, 0xf3, 0xa1, 0xe9, 0x86, 0x37, 0x02, 0xde, 0x58, 0x59,
0xe9, 0x95, 0x60, 0xa5, 0x6e, 0x1c, 0x57, 0x0d, 0x18, 0x03, 0x52, 0x59, 0x67, 0x36, 0x6c, 0x3d,
0x63, 0xaa, 0xe6, 0x12, 0x68, 0x6b, 0xb4, 0xd3, 0xf8, 0x2c, 0xd0, 0xa9, 0xa7, 0xd3, 0x03, 0x3a,
0x5d, 0xcf, 0x46, 0x97, 0xc7, 0x1d, 0x8b, 0x4a, 0x17, 0xc1, 0x70, 0x74, 0x2a, 0xb5, 0x96, 0x15,
0x30, 0x3f, 0x15, 0xab, 0x25, 0x73, 0xaa, 0x06, 0xeb, 0x78, 0xdd, 0x06, 0xc2, 0xf9, 0x47, 0x8c,
0xfa, 0x0f, 0x5d, 0x02, 0x3c, 0x44, 0xb1, 0x12, 0x24, 0xca, 0xa2, 0xc9, 0x20, 0x8f, 0x95, 0xc0,
0x18, 0xf5, 0x1a, 0x5e, 0x03, 0x89, 0x3d, 0xe2, 0xdf, 0xf8, 0x04, 0xa5, 0x42, 0x49, 0xb0, 0x8e,
0x24, 0x1e, 0xdd, 0x4d, 0x78, 0x8c, 0xfe, 0x97, 0xba, 0x6e, 0x0d, 0x58, 0x0b, 0x62, 0x61, 0xd5,
0x16, 0x48, 0x2f, 0x8b, 0x26, 0x49, 0x3e, 0xfc, 0x82, 0x1f, 0xd5, 0x16, 0xf0, 0x1d, 0x4a, 0x4b,
0xdd, 0x2c, 0x95, 0x24, 0xfd, 0x2c, 0x9a, 0xfc, 0xbb, 0x1a, 0xd3, 0xa3, 0x1b, 0xd3, 0x79, 0xa5,
0x8b, 0x7c, 0x27, 0xeb, 0x0c, 0x2a, 0xbe, 0x01, 0x63, 0x49, 0x9a, 0x25, 0xbf, 0x32, 0x08, 0xb2,
0x6e, 0x2d, 0xc7, 0xa5, 0x25, 0x7f, 0xb2, 0xa4, 0x5b, 0xab, 0x7b, 0xe3, 0x1b, 0x84, 0x4a, 0x03,
0xdc, 0x81, 0x58, 0x70, 0x47, 0xfe, 0xfa, 0x64, 0x23, 0x1a, 0xaa, 0xa3, 0xfb, 0xea, 0xe8, 0xd3,
0xbe, 0xba, 0x7c, 0xb0, 0x63, 0xdf, 0xbb, 0xf9, 0x7b, 0x84, 0x2e, 0xbe, 0x25, 0xe0, 0xad, 0xfa,
0x31, 0xc5, 0xcb, 0xb3, 0x54, 0xee, 0x75, 0x55, 0xd0, 0x52, 0xd7, 0x2c, 0x28, 0xa6, 0xe1, 0x86,
0x52, 0x4f, 0x25, 0x34, 0xfe, 0x1b, 0x76, 0xf4, 0xb8, 0xb7, 0x07, 0x60, 0x91, 0x7a, 0xe9, 0xf5,
0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0x31, 0xfb, 0x21, 0xfc, 0x6c, 0x02, 0x00, 0x00,
var file_yandex_cloud_containerregistry_v1_image_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_containerregistry_v1_image_proto_goTypes = []interface{}{
(*Image)(nil), // 0: yandex.cloud.containerregistry.v1.Image
(*Blob)(nil), // 1: yandex.cloud.containerregistry.v1.Blob
(*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp
}
var file_yandex_cloud_containerregistry_v1_image_proto_depIdxs = []int32{
1, // 0: yandex.cloud.containerregistry.v1.Image.config:type_name -> yandex.cloud.containerregistry.v1.Blob
1, // 1: yandex.cloud.containerregistry.v1.Image.layers:type_name -> yandex.cloud.containerregistry.v1.Blob
2, // 2: yandex.cloud.containerregistry.v1.Image.created_at:type_name -> google.protobuf.Timestamp
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_yandex_cloud_containerregistry_v1_image_proto_init() }
func file_yandex_cloud_containerregistry_v1_image_proto_init() {
if File_yandex_cloud_containerregistry_v1_image_proto != nil {
return
}
file_yandex_cloud_containerregistry_v1_blob_proto_init()
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_containerregistry_v1_image_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Image); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_containerregistry_v1_image_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_containerregistry_v1_image_proto_goTypes,
DependencyIndexes: file_yandex_cloud_containerregistry_v1_image_proto_depIdxs,
MessageInfos: file_yandex_cloud_containerregistry_v1_image_proto_msgTypes,
}.Build()
File_yandex_cloud_containerregistry_v1_image_proto = out.File
file_yandex_cloud_containerregistry_v1_image_proto_rawDesc = nil
file_yandex_cloud_containerregistry_v1_image_proto_goTypes = nil
file_yandex_cloud_containerregistry_v1_image_proto_depIdxs = nil
}

View File

@ -1,11 +1,13 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/containerregistry/v1/image_service.proto
package containerregistry
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
_ "github.com/yandex-cloud/go-genproto/yandex/cloud/api"
@ -14,21 +16,28 @@ import (
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type ListImagesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the registry to list Docker images in.
//
// [registry_id] is ignored if a [ListImagesRequest.repository_name] is specified in the request.
@ -59,88 +68,96 @@ type ListImagesRequest struct {
// 1. The field name. Currently you can use filtering only on [Image.name] field.
// 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
// 3. The value. Must be a maximum of 256 characters and match the regular expression `[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))`.
Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
OrderBy string `protobuf:"bytes,6,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
OrderBy string `protobuf:"bytes,6,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
}
func (m *ListImagesRequest) Reset() { *m = ListImagesRequest{} }
func (m *ListImagesRequest) String() string { return proto.CompactTextString(m) }
func (*ListImagesRequest) ProtoMessage() {}
func (x *ListImagesRequest) Reset() {
*x = ListImagesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_containerregistry_v1_image_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListImagesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListImagesRequest) ProtoMessage() {}
func (x *ListImagesRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_containerregistry_v1_image_service_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListImagesRequest.ProtoReflect.Descriptor instead.
func (*ListImagesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_77801365b55bb588, []int{0}
return file_yandex_cloud_containerregistry_v1_image_service_proto_rawDescGZIP(), []int{0}
}
func (m *ListImagesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListImagesRequest.Unmarshal(m, b)
}
func (m *ListImagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListImagesRequest.Marshal(b, m, deterministic)
}
func (m *ListImagesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListImagesRequest.Merge(m, src)
}
func (m *ListImagesRequest) XXX_Size() int {
return xxx_messageInfo_ListImagesRequest.Size(m)
}
func (m *ListImagesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListImagesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListImagesRequest proto.InternalMessageInfo
func (m *ListImagesRequest) GetRegistryId() string {
if m != nil {
return m.RegistryId
func (x *ListImagesRequest) GetRegistryId() string {
if x != nil {
return x.RegistryId
}
return ""
}
func (m *ListImagesRequest) GetRepositoryName() string {
if m != nil {
return m.RepositoryName
func (x *ListImagesRequest) GetRepositoryName() string {
if x != nil {
return x.RepositoryName
}
return ""
}
func (m *ListImagesRequest) GetFolderId() string {
if m != nil {
return m.FolderId
func (x *ListImagesRequest) GetFolderId() string {
if x != nil {
return x.FolderId
}
return ""
}
func (m *ListImagesRequest) GetPageSize() int64 {
if m != nil {
return m.PageSize
func (x *ListImagesRequest) GetPageSize() int64 {
if x != nil {
return x.PageSize
}
return 0
}
func (m *ListImagesRequest) GetPageToken() string {
if m != nil {
return m.PageToken
func (x *ListImagesRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (m *ListImagesRequest) GetFilter() string {
if m != nil {
return m.Filter
func (x *ListImagesRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (m *ListImagesRequest) GetOrderBy() string {
if m != nil {
return m.OrderBy
func (x *ListImagesRequest) GetOrderBy() string {
if x != nil {
return x.OrderBy
}
return ""
}
type ListImagesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// List of Image resources.
Images []*Image `protobuf:"bytes,1,rep,name=images,proto3" json:"images,omitempty"`
// This token allows you to get the next page of results for list requests. If the number of results
@ -149,232 +166,432 @@ type ListImagesResponse struct {
// for the [ListImagesRequest.page_token] query parameter
// in the next list request. Each subsequent list request will have its own
// [next_page_token] to continue paging through the results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (m *ListImagesResponse) Reset() { *m = ListImagesResponse{} }
func (m *ListImagesResponse) String() string { return proto.CompactTextString(m) }
func (*ListImagesResponse) ProtoMessage() {}
func (x *ListImagesResponse) Reset() {
*x = ListImagesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_containerregistry_v1_image_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListImagesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListImagesResponse) ProtoMessage() {}
func (x *ListImagesResponse) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_containerregistry_v1_image_service_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListImagesResponse.ProtoReflect.Descriptor instead.
func (*ListImagesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_77801365b55bb588, []int{1}
return file_yandex_cloud_containerregistry_v1_image_service_proto_rawDescGZIP(), []int{1}
}
func (m *ListImagesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListImagesResponse.Unmarshal(m, b)
}
func (m *ListImagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListImagesResponse.Marshal(b, m, deterministic)
}
func (m *ListImagesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListImagesResponse.Merge(m, src)
}
func (m *ListImagesResponse) XXX_Size() int {
return xxx_messageInfo_ListImagesResponse.Size(m)
}
func (m *ListImagesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListImagesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListImagesResponse proto.InternalMessageInfo
func (m *ListImagesResponse) GetImages() []*Image {
if m != nil {
return m.Images
func (x *ListImagesResponse) GetImages() []*Image {
if x != nil {
return x.Images
}
return nil
}
func (m *ListImagesResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
func (x *ListImagesResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
type GetImageRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the Docker image resource to return.
//
// To get the Docker image ID use a [ImageService.List] request.
ImageId string `protobuf:"bytes,1,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
ImageId string `protobuf:"bytes,1,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"`
}
func (m *GetImageRequest) Reset() { *m = GetImageRequest{} }
func (m *GetImageRequest) String() string { return proto.CompactTextString(m) }
func (*GetImageRequest) ProtoMessage() {}
func (x *GetImageRequest) Reset() {
*x = GetImageRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_containerregistry_v1_image_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetImageRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetImageRequest) ProtoMessage() {}
func (x *GetImageRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_containerregistry_v1_image_service_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetImageRequest.ProtoReflect.Descriptor instead.
func (*GetImageRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_77801365b55bb588, []int{2}
return file_yandex_cloud_containerregistry_v1_image_service_proto_rawDescGZIP(), []int{2}
}
func (m *GetImageRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetImageRequest.Unmarshal(m, b)
}
func (m *GetImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetImageRequest.Marshal(b, m, deterministic)
}
func (m *GetImageRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetImageRequest.Merge(m, src)
}
func (m *GetImageRequest) XXX_Size() int {
return xxx_messageInfo_GetImageRequest.Size(m)
}
func (m *GetImageRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetImageRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetImageRequest proto.InternalMessageInfo
func (m *GetImageRequest) GetImageId() string {
if m != nil {
return m.ImageId
func (x *GetImageRequest) GetImageId() string {
if x != nil {
return x.ImageId
}
return ""
}
type DeleteImageRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the Docker image to delete.
//
// To get Docker image ID use a [ImageService.List] request.
ImageId string `protobuf:"bytes,1,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
ImageId string `protobuf:"bytes,1,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"`
}
func (m *DeleteImageRequest) Reset() { *m = DeleteImageRequest{} }
func (m *DeleteImageRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteImageRequest) ProtoMessage() {}
func (x *DeleteImageRequest) Reset() {
*x = DeleteImageRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_containerregistry_v1_image_service_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteImageRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteImageRequest) ProtoMessage() {}
func (x *DeleteImageRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_containerregistry_v1_image_service_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteImageRequest.ProtoReflect.Descriptor instead.
func (*DeleteImageRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_77801365b55bb588, []int{3}
return file_yandex_cloud_containerregistry_v1_image_service_proto_rawDescGZIP(), []int{3}
}
func (m *DeleteImageRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteImageRequest.Unmarshal(m, b)
}
func (m *DeleteImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteImageRequest.Marshal(b, m, deterministic)
}
func (m *DeleteImageRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteImageRequest.Merge(m, src)
}
func (m *DeleteImageRequest) XXX_Size() int {
return xxx_messageInfo_DeleteImageRequest.Size(m)
}
func (m *DeleteImageRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteImageRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteImageRequest proto.InternalMessageInfo
func (m *DeleteImageRequest) GetImageId() string {
if m != nil {
return m.ImageId
func (x *DeleteImageRequest) GetImageId() string {
if x != nil {
return x.ImageId
}
return ""
}
type DeleteImageMetadata struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the Docker image that is being deleted.
ImageId string `protobuf:"bytes,1,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
ImageId string `protobuf:"bytes,1,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"`
}
func (m *DeleteImageMetadata) Reset() { *m = DeleteImageMetadata{} }
func (m *DeleteImageMetadata) String() string { return proto.CompactTextString(m) }
func (*DeleteImageMetadata) ProtoMessage() {}
func (x *DeleteImageMetadata) Reset() {
*x = DeleteImageMetadata{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_containerregistry_v1_image_service_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteImageMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteImageMetadata) ProtoMessage() {}
func (x *DeleteImageMetadata) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_containerregistry_v1_image_service_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteImageMetadata.ProtoReflect.Descriptor instead.
func (*DeleteImageMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_77801365b55bb588, []int{4}
return file_yandex_cloud_containerregistry_v1_image_service_proto_rawDescGZIP(), []int{4}
}
func (m *DeleteImageMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteImageMetadata.Unmarshal(m, b)
}
func (m *DeleteImageMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteImageMetadata.Marshal(b, m, deterministic)
}
func (m *DeleteImageMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteImageMetadata.Merge(m, src)
}
func (m *DeleteImageMetadata) XXX_Size() int {
return xxx_messageInfo_DeleteImageMetadata.Size(m)
}
func (m *DeleteImageMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteImageMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteImageMetadata proto.InternalMessageInfo
func (m *DeleteImageMetadata) GetImageId() string {
if m != nil {
return m.ImageId
func (x *DeleteImageMetadata) GetImageId() string {
if x != nil {
return x.ImageId
}
return ""
}
func init() {
proto.RegisterType((*ListImagesRequest)(nil), "yandex.cloud.containerregistry.v1.ListImagesRequest")
proto.RegisterType((*ListImagesResponse)(nil), "yandex.cloud.containerregistry.v1.ListImagesResponse")
proto.RegisterType((*GetImageRequest)(nil), "yandex.cloud.containerregistry.v1.GetImageRequest")
proto.RegisterType((*DeleteImageRequest)(nil), "yandex.cloud.containerregistry.v1.DeleteImageRequest")
proto.RegisterType((*DeleteImageMetadata)(nil), "yandex.cloud.containerregistry.v1.DeleteImageMetadata")
var File_yandex_cloud_containerregistry_v1_image_service_proto protoreflect.FileDescriptor
var file_yandex_cloud_containerregistry_v1_image_service_proto_rawDesc = []byte{
0x0a, 0x35, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6f, 0x70, 0x65,
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2d, 0x79, 0x61,
0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61,
0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f,
0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61,
0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0xf0, 0x02, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74,
0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0x8a, 0xc8, 0x31,
0x04, 0x3c, 0x3d, 0x35, 0x30, 0x52, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x49,
0x64, 0x12, 0x6c, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x43, 0xf2, 0xc7, 0x31, 0x3f,
0x7c, 0x5b, 0x61, 0x2d, 0x7a, 0x30, 0x2d, 0x39, 0x5d, 0x2b, 0x28, 0x3f, 0x3a, 0x5b, 0x2e, 0x5f,
0x2d, 0x5d, 0x5b, 0x61, 0x2d, 0x7a, 0x30, 0x2d, 0x39, 0x5d, 0x2b, 0x29, 0x2a, 0x28, 0x2f, 0x28,
0x5b, 0x61, 0x2d, 0x7a, 0x30, 0x2d, 0x39, 0x5d, 0x2b, 0x28, 0x3f, 0x3a, 0x5b, 0x2e, 0x5f, 0x2d,
0x5d, 0x5b, 0x61, 0x2d, 0x7a, 0x30, 0x2d, 0x39, 0x5d, 0x2b, 0x29, 0x2a, 0x29, 0x29, 0x2a, 0x52,
0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12,
0x25, 0x0a, 0x09, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01,
0x28, 0x09, 0x42, 0x08, 0x8a, 0xc8, 0x31, 0x04, 0x3c, 0x3d, 0x35, 0x30, 0x52, 0x08, 0x66, 0x6f,
0x6c, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73,
0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x42, 0x0a, 0xfa, 0xc7, 0x31, 0x06, 0x3c,
0x3d, 0x31, 0x30, 0x30, 0x30, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12,
0x28, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20,
0x01, 0x28, 0x09, 0x42, 0x09, 0x8a, 0xc8, 0x31, 0x05, 0x3c, 0x3d, 0x31, 0x30, 0x30, 0x52, 0x09,
0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x22, 0x0a, 0x06, 0x66, 0x69, 0x6c,
0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0x8a, 0xc8, 0x31, 0x06, 0x3c,
0x3d, 0x31, 0x30, 0x30, 0x30, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x24, 0x0a,
0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42,
0x09, 0x8a, 0xc8, 0x31, 0x05, 0x3c, 0x3d, 0x31, 0x30, 0x30, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65,
0x72, 0x42, 0x79, 0x22, 0x7e, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65,
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x06, 0x69, 0x6d, 0x61,
0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e,
0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6d,
0x61, 0x67, 0x65, 0x52, 0x06, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e,
0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f,
0x6b, 0x65, 0x6e, 0x22, 0x3a, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x08, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0c, 0xe8, 0xc7, 0x31, 0x01, 0x8a, 0xc8,
0x31, 0x04, 0x3c, 0x3d, 0x35, 0x30, 0x52, 0x07, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x49, 0x64, 0x22,
0x3d, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x08, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0c, 0xe8, 0xc7, 0x31, 0x01, 0x8a, 0xc8, 0x31,
0x04, 0x3c, 0x3d, 0x35, 0x30, 0x52, 0x07, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x49, 0x64, 0x22, 0x30,
0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x4d, 0x65, 0x74,
0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x49, 0x64,
0x32, 0x8a, 0x04, 0x0a, 0x0c, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x12, 0x9a, 0x01, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x34, 0x2e, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69,
0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c,
0x69, 0x73, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x35, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12,
0x1d, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x2d, 0x72, 0x65, 0x67, 0x69,
0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x12, 0x95,
0x01, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x32, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6d,
0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69,
0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x49,
0x6d, 0x61, 0x67, 0x65, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x63,
0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x2d, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
0x79, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x6d, 0x61,
0x67, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xc4, 0x01, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74,
0x65, 0x12, 0x35, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74,
0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6d, 0x61, 0x67,
0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x60, 0x82, 0xd3, 0xe4,
0x93, 0x02, 0x2a, 0x2a, 0x28, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x2d,
0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6d, 0x61, 0x67,
0x65, 0x73, 0x2f, 0x7b, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0xb2, 0xd2, 0x2a,
0x2c, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x4d, 0x65,
0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x80, 0x01,
0x0a, 0x25, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69,
0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x5a, 0x57, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69,
0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x63,
0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/containerregistry/v1/image_service.proto", fileDescriptor_77801365b55bb588)
var (
file_yandex_cloud_containerregistry_v1_image_service_proto_rawDescOnce sync.Once
file_yandex_cloud_containerregistry_v1_image_service_proto_rawDescData = file_yandex_cloud_containerregistry_v1_image_service_proto_rawDesc
)
func file_yandex_cloud_containerregistry_v1_image_service_proto_rawDescGZIP() []byte {
file_yandex_cloud_containerregistry_v1_image_service_proto_rawDescOnce.Do(func() {
file_yandex_cloud_containerregistry_v1_image_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_containerregistry_v1_image_service_proto_rawDescData)
})
return file_yandex_cloud_containerregistry_v1_image_service_proto_rawDescData
}
var fileDescriptor_77801365b55bb588 = []byte{
// 678 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x4b, 0x6f, 0xd3, 0x4c,
0x14, 0x95, 0x9b, 0x34, 0x4d, 0xa6, 0xfd, 0xbe, 0xea, 0x9b, 0x4f, 0x48, 0x21, 0xa2, 0x22, 0xb5,
0x68, 0xeb, 0x04, 0xe2, 0x47, 0xa1, 0x0b, 0x4a, 0xab, 0xa2, 0x00, 0xaa, 0x22, 0xf1, 0x92, 0x8b,
0x84, 0x44, 0x55, 0x85, 0x49, 0x7c, 0x6b, 0x46, 0x38, 0x1e, 0x63, 0x4f, 0xa2, 0xa6, 0x3c, 0x84,
0x58, 0x66, 0x8b, 0xd8, 0xf0, 0x33, 0xf8, 0x0d, 0x48, 0xed, 0x1a, 0xfe, 0x02, 0x0b, 0x96, 0x88,
0x25, 0x2b, 0xe4, 0x99, 0x26, 0xcd, 0xa3, 0x6a, 0x03, 0x3b, 0xcb, 0xe7, 0x9e, 0x33, 0xe7, 0xde,
0x33, 0x73, 0xd1, 0x4a, 0x9b, 0xf8, 0x0e, 0xec, 0x19, 0x75, 0x8f, 0x35, 0x1d, 0xa3, 0xce, 0x7c,
0x4e, 0xa8, 0x0f, 0x61, 0x08, 0x2e, 0x8d, 0x78, 0xd8, 0x36, 0x5a, 0x96, 0x41, 0x1b, 0xc4, 0x85,
0x6a, 0x04, 0x61, 0x8b, 0xd6, 0x41, 0x0f, 0x42, 0xc6, 0x19, 0x9e, 0x97, 0x34, 0x5d, 0xd0, 0xf4,
0x11, 0x9a, 0xde, 0xb2, 0x72, 0xf9, 0x01, 0x65, 0x12, 0x50, 0x83, 0x05, 0x10, 0x12, 0x4e, 0x99,
0x2f, 0x45, 0x72, 0xa5, 0x31, 0xcf, 0x3e, 0x2a, 0x5f, 0x1c, 0x28, 0xef, 0x89, 0x8d, 0xc8, 0xce,
0x0d, 0xd4, 0xb5, 0x88, 0x47, 0x9d, 0x7e, 0xf8, 0x82, 0xcb, 0x98, 0xeb, 0x81, 0x70, 0x44, 0x7c,
0x9f, 0x71, 0x01, 0x46, 0x12, 0x55, 0x7f, 0x4c, 0xa0, 0xff, 0xee, 0xd2, 0x88, 0x57, 0xe2, 0x83,
0x23, 0x1b, 0x5e, 0x34, 0x21, 0xe2, 0xb8, 0x80, 0xa6, 0xbb, 0xae, 0xaa, 0xd4, 0xc9, 0x2a, 0x79,
0x45, 0xcb, 0x94, 0xd3, 0x9d, 0x43, 0x2b, 0xb9, 0xb6, 0xbe, 0x62, 0xda, 0xa8, 0x0b, 0x56, 0x1c,
0xec, 0xa1, 0xd9, 0x10, 0x02, 0x16, 0x51, 0xce, 0xc2, 0x76, 0xd5, 0x27, 0x0d, 0xc8, 0x4e, 0x88,
0xf2, 0x5b, 0x3f, 0x0f, 0xac, 0x8d, 0x57, 0xdb, 0xa4, 0xb4, 0x6f, 0x96, 0xae, 0xef, 0x5c, 0xd6,
0x36, 0x56, 0xb7, 0xf5, 0x6a, 0x69, 0xa7, 0xf7, 0xa3, 0x50, 0xd4, 0x0c, 0xed, 0x34, 0xb8, 0x50,
0x28, 0xda, 0xff, 0x1e, 0x6b, 0xdf, 0x27, 0x0d, 0xc0, 0x0b, 0x28, 0xb3, 0xcb, 0x3c, 0x07, 0xc2,
0xd8, 0xd6, 0xd4, 0x90, 0xad, 0xb4, 0x84, 0x2a, 0x0e, 0x5e, 0x42, 0x99, 0x40, 0x84, 0x48, 0xf7,
0x21, 0x9b, 0xc8, 0x2b, 0x5a, 0xa2, 0x8c, 0x7e, 0x1d, 0x58, 0xa9, 0xb5, 0x75, 0xcb, 0x34, 0x4d,
0x3b, 0x1d, 0x83, 0x5b, 0x74, 0x1f, 0xb0, 0x86, 0x90, 0x28, 0xe4, 0xec, 0x39, 0xf8, 0xd9, 0xa4,
0x10, 0xcc, 0x74, 0x0e, 0xad, 0x49, 0x51, 0x69, 0x0b, 0x95, 0x47, 0x31, 0x86, 0x55, 0x94, 0xda,
0xa5, 0x1e, 0x87, 0x30, 0x3b, 0x29, 0xaa, 0x50, 0xe7, 0xb0, 0xa7, 0x77, 0x84, 0xe0, 0x4b, 0x28,
0xcd, 0xc2, 0xd8, 0x5c, 0xad, 0x9d, 0x4d, 0x0d, 0x6b, 0x4d, 0x09, 0xa8, 0xdc, 0x56, 0xdf, 0x20,
0xdc, 0x3f, 0xf1, 0x28, 0x60, 0x7e, 0x04, 0xf8, 0x26, 0x4a, 0x89, 0xf0, 0xa3, 0xac, 0x92, 0x4f,
0x68, 0xd3, 0xcb, 0x9a, 0x7e, 0xe6, 0x95, 0xd3, 0x85, 0x84, 0x7d, 0xc4, 0xc3, 0x8b, 0x68, 0xd6,
0x87, 0x3d, 0x5e, 0xed, 0x6b, 0x48, 0x24, 0x61, 0xff, 0x13, 0xff, 0x7e, 0xd8, 0xed, 0x44, 0x5d,
0x45, 0xb3, 0x9b, 0x20, 0x8f, 0xef, 0xe6, 0xbd, 0x84, 0xd2, 0xf2, 0xd6, 0xf7, 0xc2, 0x9e, 0xf9,
0x7e, 0x60, 0x29, 0xbd, 0xc9, 0x4e, 0x09, 0xb4, 0xe2, 0xa8, 0xeb, 0x08, 0xdf, 0x06, 0x0f, 0x38,
0xfc, 0x1d, 0xdd, 0x44, 0xff, 0xf7, 0xd1, 0xef, 0x01, 0x27, 0x0e, 0xe1, 0x04, 0x9f, 0x1f, 0xe6,
0xf7, 0x18, 0xcb, 0x9d, 0x24, 0x9a, 0x11, 0xc5, 0x5b, 0xf2, 0x3d, 0xe2, 0x8f, 0x0a, 0x4a, 0xc6,
0xe3, 0xc3, 0xd7, 0xc6, 0x18, 0xd0, 0xc8, 0xcd, 0xce, 0xad, 0xfc, 0x21, 0x4b, 0xa6, 0xa3, 0x2e,
0xbc, 0xfb, 0xfa, 0xed, 0xfd, 0xc4, 0x45, 0x3c, 0x77, 0xfc, 0x6c, 0x4b, 0x23, 0xef, 0x36, 0xc2,
0x1f, 0x14, 0x94, 0xd8, 0x04, 0x8e, 0x97, 0xc7, 0x38, 0x65, 0x28, 0x83, 0xdc, 0xd8, 0x81, 0xab,
0xa6, 0x30, 0x53, 0xc4, 0xda, 0xa9, 0x66, 0x8c, 0x97, 0xdd, 0x99, 0xbe, 0xc6, 0x9f, 0x15, 0x94,
0x92, 0x83, 0xc7, 0xe3, 0x0c, 0x60, 0x34, 0xe2, 0xdc, 0xfc, 0x20, 0xed, 0x78, 0x07, 0x3d, 0xe8,
0x7e, 0xa9, 0x4f, 0x3f, 0x7d, 0x29, 0x5e, 0x39, 0x39, 0xe0, 0x73, 0x72, 0x07, 0xc9, 0x9d, 0x53,
0x6b, 0xee, 0xea, 0x77, 0x1a, 0x01, 0x6f, 0xcb, 0x36, 0x8a, 0x63, 0xb7, 0x51, 0x7e, 0xab, 0xa0,
0x85, 0x01, 0x1b, 0x24, 0xa0, 0x27, 0x76, 0xf0, 0xe4, 0xb1, 0x4b, 0xf9, 0xb3, 0x66, 0x4d, 0xaf,
0xb3, 0x86, 0x21, 0x19, 0x25, 0xb9, 0x1e, 0x5d, 0x56, 0x72, 0xc1, 0x17, 0x3e, 0x8c, 0x33, 0xd7,
0xf1, 0x8d, 0x91, 0x9f, 0xb5, 0x94, 0xa0, 0x5e, 0xfd, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xf5, 0x0a,
0x1b, 0xff, 0x48, 0x06, 0x00, 0x00,
var file_yandex_cloud_containerregistry_v1_image_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_yandex_cloud_containerregistry_v1_image_service_proto_goTypes = []interface{}{
(*ListImagesRequest)(nil), // 0: yandex.cloud.containerregistry.v1.ListImagesRequest
(*ListImagesResponse)(nil), // 1: yandex.cloud.containerregistry.v1.ListImagesResponse
(*GetImageRequest)(nil), // 2: yandex.cloud.containerregistry.v1.GetImageRequest
(*DeleteImageRequest)(nil), // 3: yandex.cloud.containerregistry.v1.DeleteImageRequest
(*DeleteImageMetadata)(nil), // 4: yandex.cloud.containerregistry.v1.DeleteImageMetadata
(*Image)(nil), // 5: yandex.cloud.containerregistry.v1.Image
(*operation.Operation)(nil), // 6: yandex.cloud.operation.Operation
}
var file_yandex_cloud_containerregistry_v1_image_service_proto_depIdxs = []int32{
5, // 0: yandex.cloud.containerregistry.v1.ListImagesResponse.images:type_name -> yandex.cloud.containerregistry.v1.Image
0, // 1: yandex.cloud.containerregistry.v1.ImageService.List:input_type -> yandex.cloud.containerregistry.v1.ListImagesRequest
2, // 2: yandex.cloud.containerregistry.v1.ImageService.Get:input_type -> yandex.cloud.containerregistry.v1.GetImageRequest
3, // 3: yandex.cloud.containerregistry.v1.ImageService.Delete:input_type -> yandex.cloud.containerregistry.v1.DeleteImageRequest
1, // 4: yandex.cloud.containerregistry.v1.ImageService.List:output_type -> yandex.cloud.containerregistry.v1.ListImagesResponse
5, // 5: yandex.cloud.containerregistry.v1.ImageService.Get:output_type -> yandex.cloud.containerregistry.v1.Image
6, // 6: yandex.cloud.containerregistry.v1.ImageService.Delete:output_type -> yandex.cloud.operation.Operation
4, // [4:7] is the sub-list for method output_type
1, // [1:4] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_yandex_cloud_containerregistry_v1_image_service_proto_init() }
func file_yandex_cloud_containerregistry_v1_image_service_proto_init() {
if File_yandex_cloud_containerregistry_v1_image_service_proto != nil {
return
}
file_yandex_cloud_containerregistry_v1_image_proto_init()
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_containerregistry_v1_image_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListImagesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_containerregistry_v1_image_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListImagesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_containerregistry_v1_image_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetImageRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_containerregistry_v1_image_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteImageRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_containerregistry_v1_image_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteImageMetadata); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_containerregistry_v1_image_service_proto_rawDesc,
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_yandex_cloud_containerregistry_v1_image_service_proto_goTypes,
DependencyIndexes: file_yandex_cloud_containerregistry_v1_image_service_proto_depIdxs,
MessageInfos: file_yandex_cloud_containerregistry_v1_image_service_proto_msgTypes,
}.Build()
File_yandex_cloud_containerregistry_v1_image_service_proto = out.File
file_yandex_cloud_containerregistry_v1_image_service_proto_rawDesc = nil
file_yandex_cloud_containerregistry_v1_image_service_proto_goTypes = nil
file_yandex_cloud_containerregistry_v1_image_service_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
@ -450,13 +667,13 @@ type ImageServiceServer interface {
type UnimplementedImageServiceServer struct {
}
func (*UnimplementedImageServiceServer) List(ctx context.Context, req *ListImagesRequest) (*ListImagesResponse, error) {
func (*UnimplementedImageServiceServer) List(context.Context, *ListImagesRequest) (*ListImagesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
}
func (*UnimplementedImageServiceServer) Get(ctx context.Context, req *GetImageRequest) (*Image, error) {
func (*UnimplementedImageServiceServer) Get(context.Context, *GetImageRequest) (*Image, error) {
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
}
func (*UnimplementedImageServiceServer) Delete(ctx context.Context, req *DeleteImageRequest) (*operation.Operation, error) {
func (*UnimplementedImageServiceServer) Delete(context.Context, *DeleteImageRequest) (*operation.Operation, error) {
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
}

View File

@ -1,27 +1,32 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/containerregistry/v1/lifecycle_policy.proto
package containerregistry
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
duration "github.com/golang/protobuf/ptypes/duration"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type LifecyclePolicy_Status int32
@ -31,229 +36,369 @@ const (
LifecyclePolicy_DISABLED LifecyclePolicy_Status = 2
)
var LifecyclePolicy_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "ACTIVE",
2: "DISABLED",
}
// Enum value maps for LifecyclePolicy_Status.
var (
LifecyclePolicy_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "ACTIVE",
2: "DISABLED",
}
LifecyclePolicy_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"ACTIVE": 1,
"DISABLED": 2,
}
)
var LifecyclePolicy_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"ACTIVE": 1,
"DISABLED": 2,
func (x LifecyclePolicy_Status) Enum() *LifecyclePolicy_Status {
p := new(LifecyclePolicy_Status)
*p = x
return p
}
func (x LifecyclePolicy_Status) String() string {
return proto.EnumName(LifecyclePolicy_Status_name, int32(x))
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (LifecyclePolicy_Status) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_enumTypes[0].Descriptor()
}
func (LifecyclePolicy_Status) Type() protoreflect.EnumType {
return &file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_enumTypes[0]
}
func (x LifecyclePolicy_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use LifecyclePolicy_Status.Descriptor instead.
func (LifecyclePolicy_Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_400d7b415ccde714, []int{0, 0}
return file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_rawDescGZIP(), []int{0, 0}
}
type LifecyclePolicy struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
RepositoryId string `protobuf:"bytes,3,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"`
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
Status LifecyclePolicy_Status `protobuf:"varint,5,opt,name=status,proto3,enum=yandex.cloud.containerregistry.v1.LifecyclePolicy_Status" json:"status,omitempty"`
CreatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
Rules []*LifecycleRule `protobuf:"bytes,7,rep,name=rules,proto3" json:"rules,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
RepositoryId string `protobuf:"bytes,3,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"`
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
Status LifecyclePolicy_Status `protobuf:"varint,5,opt,name=status,proto3,enum=yandex.cloud.containerregistry.v1.LifecyclePolicy_Status" json:"status,omitempty"`
CreatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
Rules []*LifecycleRule `protobuf:"bytes,7,rep,name=rules,proto3" json:"rules,omitempty"`
}
func (m *LifecyclePolicy) Reset() { *m = LifecyclePolicy{} }
func (m *LifecyclePolicy) String() string { return proto.CompactTextString(m) }
func (*LifecyclePolicy) ProtoMessage() {}
func (x *LifecyclePolicy) Reset() {
*x = LifecyclePolicy{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LifecyclePolicy) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LifecyclePolicy) ProtoMessage() {}
func (x *LifecyclePolicy) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LifecyclePolicy.ProtoReflect.Descriptor instead.
func (*LifecyclePolicy) Descriptor() ([]byte, []int) {
return fileDescriptor_400d7b415ccde714, []int{0}
return file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_rawDescGZIP(), []int{0}
}
func (m *LifecyclePolicy) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LifecyclePolicy.Unmarshal(m, b)
}
func (m *LifecyclePolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LifecyclePolicy.Marshal(b, m, deterministic)
}
func (m *LifecyclePolicy) XXX_Merge(src proto.Message) {
xxx_messageInfo_LifecyclePolicy.Merge(m, src)
}
func (m *LifecyclePolicy) XXX_Size() int {
return xxx_messageInfo_LifecyclePolicy.Size(m)
}
func (m *LifecyclePolicy) XXX_DiscardUnknown() {
xxx_messageInfo_LifecyclePolicy.DiscardUnknown(m)
}
var xxx_messageInfo_LifecyclePolicy proto.InternalMessageInfo
func (m *LifecyclePolicy) GetId() string {
if m != nil {
return m.Id
func (x *LifecyclePolicy) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (m *LifecyclePolicy) GetName() string {
if m != nil {
return m.Name
func (x *LifecyclePolicy) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *LifecyclePolicy) GetRepositoryId() string {
if m != nil {
return m.RepositoryId
func (x *LifecyclePolicy) GetRepositoryId() string {
if x != nil {
return x.RepositoryId
}
return ""
}
func (m *LifecyclePolicy) GetDescription() string {
if m != nil {
return m.Description
func (x *LifecyclePolicy) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (m *LifecyclePolicy) GetStatus() LifecyclePolicy_Status {
if m != nil {
return m.Status
func (x *LifecyclePolicy) GetStatus() LifecyclePolicy_Status {
if x != nil {
return x.Status
}
return LifecyclePolicy_STATUS_UNSPECIFIED
}
func (m *LifecyclePolicy) GetCreatedAt() *timestamp.Timestamp {
if m != nil {
return m.CreatedAt
func (x *LifecyclePolicy) GetCreatedAt() *timestamp.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (m *LifecyclePolicy) GetRules() []*LifecycleRule {
if m != nil {
return m.Rules
func (x *LifecyclePolicy) GetRules() []*LifecycleRule {
if x != nil {
return x.Rules
}
return nil
}
type LifecycleRule struct {
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
ExpirePeriod *duration.Duration `protobuf:"bytes,2,opt,name=expire_period,json=expirePeriod,proto3" json:"expire_period,omitempty"`
TagRegexp string `protobuf:"bytes,3,opt,name=tag_regexp,json=tagRegexp,proto3" json:"tag_regexp,omitempty"`
Untagged bool `protobuf:"varint,4,opt,name=untagged,proto3" json:"untagged,omitempty"`
RetainedTop int64 `protobuf:"varint,5,opt,name=retained_top,json=retainedTop,proto3" json:"retained_top,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
ExpirePeriod *duration.Duration `protobuf:"bytes,2,opt,name=expire_period,json=expirePeriod,proto3" json:"expire_period,omitempty"`
TagRegexp string `protobuf:"bytes,3,opt,name=tag_regexp,json=tagRegexp,proto3" json:"tag_regexp,omitempty"`
Untagged bool `protobuf:"varint,4,opt,name=untagged,proto3" json:"untagged,omitempty"`
RetainedTop int64 `protobuf:"varint,5,opt,name=retained_top,json=retainedTop,proto3" json:"retained_top,omitempty"`
}
func (m *LifecycleRule) Reset() { *m = LifecycleRule{} }
func (m *LifecycleRule) String() string { return proto.CompactTextString(m) }
func (*LifecycleRule) ProtoMessage() {}
func (x *LifecycleRule) Reset() {
*x = LifecycleRule{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LifecycleRule) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LifecycleRule) ProtoMessage() {}
func (x *LifecycleRule) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LifecycleRule.ProtoReflect.Descriptor instead.
func (*LifecycleRule) Descriptor() ([]byte, []int) {
return fileDescriptor_400d7b415ccde714, []int{1}
return file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_rawDescGZIP(), []int{1}
}
func (m *LifecycleRule) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LifecycleRule.Unmarshal(m, b)
}
func (m *LifecycleRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LifecycleRule.Marshal(b, m, deterministic)
}
func (m *LifecycleRule) XXX_Merge(src proto.Message) {
xxx_messageInfo_LifecycleRule.Merge(m, src)
}
func (m *LifecycleRule) XXX_Size() int {
return xxx_messageInfo_LifecycleRule.Size(m)
}
func (m *LifecycleRule) XXX_DiscardUnknown() {
xxx_messageInfo_LifecycleRule.DiscardUnknown(m)
}
var xxx_messageInfo_LifecycleRule proto.InternalMessageInfo
func (m *LifecycleRule) GetDescription() string {
if m != nil {
return m.Description
func (x *LifecycleRule) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (m *LifecycleRule) GetExpirePeriod() *duration.Duration {
if m != nil {
return m.ExpirePeriod
func (x *LifecycleRule) GetExpirePeriod() *duration.Duration {
if x != nil {
return x.ExpirePeriod
}
return nil
}
func (m *LifecycleRule) GetTagRegexp() string {
if m != nil {
return m.TagRegexp
func (x *LifecycleRule) GetTagRegexp() string {
if x != nil {
return x.TagRegexp
}
return ""
}
func (m *LifecycleRule) GetUntagged() bool {
if m != nil {
return m.Untagged
func (x *LifecycleRule) GetUntagged() bool {
if x != nil {
return x.Untagged
}
return false
}
func (m *LifecycleRule) GetRetainedTop() int64 {
if m != nil {
return m.RetainedTop
func (x *LifecycleRule) GetRetainedTop() int64 {
if x != nil {
return x.RetainedTop
}
return 0
}
func init() {
proto.RegisterEnum("yandex.cloud.containerregistry.v1.LifecyclePolicy_Status", LifecyclePolicy_Status_name, LifecyclePolicy_Status_value)
proto.RegisterType((*LifecyclePolicy)(nil), "yandex.cloud.containerregistry.v1.LifecyclePolicy")
proto.RegisterType((*LifecycleRule)(nil), "yandex.cloud.containerregistry.v1.LifecycleRule")
var File_yandex_cloud_containerregistry_v1_lifecycle_policy_proto protoreflect.FileDescriptor
var file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_rawDesc = []byte{
0x0a, 0x38, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x5f, 0x70, 0x6f,
0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e,
0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x1a, 0x1d, 0x79,
0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, 0x61, 0x6c, 0x69,
0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75,
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69,
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8e, 0x03,
0x0a, 0x0f, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63,
0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69,
0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74,
0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65,
0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65,
0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x51, 0x0a, 0x06,
0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x79,
0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74,
0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31,
0x2e, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12,
0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,
0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x46, 0x0a, 0x05, 0x72, 0x75,
0x6c, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e,
0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,
0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c,
0x65, 0x73, 0x22, 0x3a, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12,
0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01,
0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x22, 0xf9,
0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x75, 0x6c, 0x65,
0x12, 0x2b, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x09, 0x8a, 0xc8, 0x31, 0x05, 0x3c, 0x3d, 0x32, 0x35, 0x36,
0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a,
0x0d, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x02,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42,
0x09, 0xfa, 0xc7, 0x31, 0x05, 0x3e, 0x3d, 0x32, 0x34, 0x68, 0x52, 0x0c, 0x65, 0x78, 0x70, 0x69,
0x72, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x28, 0x0a, 0x0a, 0x74, 0x61, 0x67, 0x5f,
0x72, 0x65, 0x67, 0x65, 0x78, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x09, 0x8a, 0xc8,
0x31, 0x05, 0x3c, 0x3d, 0x32, 0x35, 0x36, 0x52, 0x09, 0x74, 0x61, 0x67, 0x52, 0x65, 0x67, 0x65,
0x78, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x6e, 0x74, 0x61, 0x67, 0x67, 0x65, 0x64, 0x18, 0x04,
0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x75, 0x6e, 0x74, 0x61, 0x67, 0x67, 0x65, 0x64, 0x12, 0x2a,
0x0a, 0x0c, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x70, 0x18, 0x05,
0x20, 0x01, 0x28, 0x03, 0x42, 0x07, 0xfa, 0xc7, 0x31, 0x03, 0x3e, 0x3d, 0x30, 0x52, 0x0b, 0x72,
0x65, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x64, 0x54, 0x6f, 0x70, 0x42, 0x80, 0x01, 0x0a, 0x25, 0x79,
0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
0x79, 0x2e, 0x76, 0x31, 0x5a, 0x57, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f,
0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72,
0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6e, 0x74,
0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/containerregistry/v1/lifecycle_policy.proto", fileDescriptor_400d7b415ccde714)
var (
file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_rawDescOnce sync.Once
file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_rawDescData = file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_rawDesc
)
func file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_rawDescGZIP() []byte {
file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_rawDescOnce.Do(func() {
file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_rawDescData)
})
return file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_rawDescData
}
var fileDescriptor_400d7b415ccde714 = []byte{
// 547 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x5f, 0x8f, 0xd2, 0x40,
0x14, 0xc5, 0x2d, 0x2c, 0xec, 0x32, 0xc0, 0x4a, 0xe6, 0xc1, 0x54, 0x12, 0x15, 0x31, 0x26, 0x44,
0xb3, 0xed, 0x52, 0xff, 0xc4, 0x55, 0xd9, 0x04, 0x16, 0x36, 0x69, 0xb2, 0x31, 0x58, 0x58, 0x4d,
0x7c, 0x69, 0x86, 0xce, 0xdd, 0xee, 0x24, 0xa5, 0x33, 0x99, 0x4e, 0x09, 0xbc, 0xf9, 0xec, 0x83,
0x5f, 0x6b, 0xfd, 0x4a, 0xee, 0x93, 0x71, 0x0a, 0x0a, 0x8b, 0xc9, 0xc6, 0xb7, 0xce, 0xbd, 0xf7,
0xdc, 0x9e, 0xfe, 0x4e, 0x07, 0xbd, 0x59, 0x90, 0x98, 0xc2, 0xdc, 0x0e, 0x22, 0x9e, 0x52, 0x3b,
0xe0, 0xb1, 0x22, 0x2c, 0x06, 0x29, 0x21, 0x64, 0x89, 0x92, 0x0b, 0x7b, 0xd6, 0xb6, 0x23, 0x76,
0x01, 0xc1, 0x22, 0x88, 0xc0, 0x17, 0x3c, 0x62, 0xc1, 0xc2, 0x12, 0x92, 0x2b, 0x8e, 0x1f, 0x67,
0x4a, 0x4b, 0x2b, 0xad, 0x2d, 0xa5, 0x35, 0x6b, 0xd7, 0x1f, 0x6c, 0x2c, 0x9f, 0x91, 0x88, 0x51,
0xa2, 0x18, 0x8f, 0xb3, 0x0d, 0xf5, 0x87, 0x21, 0xe7, 0x61, 0x04, 0xb6, 0x3e, 0x4d, 0xd2, 0x0b,
0x9b, 0xa6, 0x72, 0xbd, 0xff, 0xe8, 0x66, 0x5f, 0xb1, 0x29, 0x24, 0x8a, 0x4c, 0x45, 0x36, 0xd0,
0xfc, 0x9e, 0x47, 0x77, 0xcf, 0x56, 0xee, 0x86, 0xda, 0x1c, 0xde, 0x47, 0x39, 0x46, 0x4d, 0xa3,
0x61, 0xb4, 0x4a, 0x5e, 0x8e, 0x51, 0x8c, 0xd1, 0x4e, 0x4c, 0xa6, 0x60, 0xe6, 0x74, 0x45, 0x3f,
0xe3, 0x27, 0xa8, 0x2a, 0x41, 0xf0, 0x84, 0x29, 0x2e, 0x17, 0x3e, 0xa3, 0x66, 0x5e, 0x37, 0x2b,
0x7f, 0x8b, 0x2e, 0xc5, 0x0d, 0x54, 0xa6, 0x90, 0x04, 0x92, 0x89, 0xdf, 0x96, 0xcc, 0x1d, 0x3d,
0xb2, 0x5e, 0xc2, 0x1f, 0x51, 0x31, 0x51, 0x44, 0xa5, 0x89, 0x59, 0x68, 0x18, 0xad, 0x7d, 0xe7,
0xc8, 0xba, 0x15, 0x89, 0x75, 0xc3, 0xae, 0x35, 0xd2, 0x0b, 0xbc, 0xe5, 0x22, 0x7c, 0x84, 0x50,
0x20, 0x81, 0x28, 0xa0, 0x3e, 0x51, 0x66, 0xb1, 0x61, 0xb4, 0xca, 0x4e, 0xdd, 0xca, 0x38, 0x58,
0x2b, 0x0e, 0xd6, 0x78, 0xc5, 0xc1, 0x2b, 0x2d, 0xa7, 0xbb, 0x0a, 0x9f, 0xa2, 0x82, 0x4c, 0x23,
0x48, 0xcc, 0xdd, 0x46, 0xbe, 0x55, 0x76, 0x0e, 0xff, 0xc7, 0x8c, 0x97, 0x46, 0xe0, 0x65, 0xf2,
0xe6, 0x5b, 0x54, 0xcc, 0x4c, 0xe1, 0x7b, 0x08, 0x8f, 0xc6, 0xdd, 0xf1, 0xf9, 0xc8, 0x3f, 0xff,
0x30, 0x1a, 0x0e, 0x4e, 0xdc, 0x53, 0x77, 0xd0, 0xaf, 0xdd, 0xc1, 0x08, 0x15, 0xbb, 0x27, 0x63,
0xf7, 0xd3, 0xa0, 0x66, 0xe0, 0x0a, 0xda, 0xeb, 0xbb, 0xa3, 0x6e, 0xef, 0x6c, 0xd0, 0xaf, 0xe5,
0x9a, 0x3f, 0x0d, 0x54, 0xdd, 0x58, 0x8a, 0x9f, 0x6f, 0x52, 0xd4, 0xb9, 0xf4, 0x4a, 0xdf, 0x7e,
0xb4, 0x0b, 0xef, 0x3b, 0xce, 0xab, 0xd7, 0x9b, 0x40, 0x5d, 0x54, 0x85, 0xb9, 0x60, 0x12, 0x7c,
0x01, 0x92, 0x71, 0xaa, 0x43, 0x2b, 0x3b, 0xf7, 0xb7, 0x00, 0xf4, 0x97, 0x3f, 0x4a, 0xaf, 0x74,
0x7d, 0xd5, 0x2e, 0x1c, 0x77, 0x9c, 0x97, 0x97, 0x5e, 0x25, 0x93, 0x0e, 0xb5, 0x12, 0xb7, 0x10,
0x52, 0x24, 0xf4, 0x25, 0x84, 0x30, 0x17, 0x59, 0xbe, 0xeb, 0xaf, 0x2d, 0x29, 0x12, 0x7a, 0xba,
0x87, 0xeb, 0x68, 0x2f, 0x8d, 0x15, 0x09, 0x43, 0xa0, 0x3a, 0xe4, 0x3d, 0xef, 0xcf, 0x19, 0x3f,
0x43, 0x15, 0x09, 0x9a, 0x1b, 0xf5, 0x15, 0x17, 0x3a, 0xe7, 0x7c, 0x6f, 0xf7, 0xfa, 0xaa, 0x9d,
0x3f, 0xee, 0x1c, 0x7a, 0xe5, 0x55, 0x73, 0xcc, 0x45, 0xef, 0xab, 0x81, 0x9e, 0x6e, 0x20, 0x27,
0x82, 0xfd, 0x13, 0xfb, 0x97, 0xcf, 0x21, 0x53, 0x97, 0xe9, 0xc4, 0x0a, 0xf8, 0xd4, 0xce, 0x14,
0x07, 0xd9, 0x0d, 0x09, 0xf9, 0x41, 0x08, 0xb1, 0xfe, 0x4a, 0xfb, 0xd6, 0x7b, 0xf9, 0x6e, 0xab,
0x38, 0x29, 0x6a, 0xe9, 0x8b, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x09, 0xa1, 0xf6, 0x5d, 0xd5,
0x03, 0x00, 0x00,
var file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_goTypes = []interface{}{
(LifecyclePolicy_Status)(0), // 0: yandex.cloud.containerregistry.v1.LifecyclePolicy.Status
(*LifecyclePolicy)(nil), // 1: yandex.cloud.containerregistry.v1.LifecyclePolicy
(*LifecycleRule)(nil), // 2: yandex.cloud.containerregistry.v1.LifecycleRule
(*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp
(*duration.Duration)(nil), // 4: google.protobuf.Duration
}
var file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_depIdxs = []int32{
0, // 0: yandex.cloud.containerregistry.v1.LifecyclePolicy.status:type_name -> yandex.cloud.containerregistry.v1.LifecyclePolicy.Status
3, // 1: yandex.cloud.containerregistry.v1.LifecyclePolicy.created_at:type_name -> google.protobuf.Timestamp
2, // 2: yandex.cloud.containerregistry.v1.LifecyclePolicy.rules:type_name -> yandex.cloud.containerregistry.v1.LifecycleRule
4, // 3: yandex.cloud.containerregistry.v1.LifecycleRule.expire_period:type_name -> google.protobuf.Duration
4, // [4:4] is the sub-list for method output_type
4, // [4:4] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_init() }
func file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_init() {
if File_yandex_cloud_containerregistry_v1_lifecycle_policy_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*LifecyclePolicy); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*LifecycleRule); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_rawDesc,
NumEnums: 1,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_goTypes,
DependencyIndexes: file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_depIdxs,
EnumInfos: file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_enumTypes,
MessageInfos: file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_msgTypes,
}.Build()
File_yandex_cloud_containerregistry_v1_lifecycle_policy_proto = out.File
file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_rawDesc = nil
file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_goTypes = nil
file_yandex_cloud_containerregistry_v1_lifecycle_policy_proto_depIdxs = nil
}

View File

@ -1,25 +1,30 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/containerregistry/v1/registry.proto
package containerregistry
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type Registry_Status int32
@ -33,30 +38,55 @@ const (
Registry_DELETING Registry_Status = 3
)
var Registry_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "CREATING",
2: "ACTIVE",
3: "DELETING",
}
// Enum value maps for Registry_Status.
var (
Registry_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "CREATING",
2: "ACTIVE",
3: "DELETING",
}
Registry_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"CREATING": 1,
"ACTIVE": 2,
"DELETING": 3,
}
)
var Registry_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"CREATING": 1,
"ACTIVE": 2,
"DELETING": 3,
func (x Registry_Status) Enum() *Registry_Status {
p := new(Registry_Status)
*p = x
return p
}
func (x Registry_Status) String() string {
return proto.EnumName(Registry_Status_name, int32(x))
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Registry_Status) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_containerregistry_v1_registry_proto_enumTypes[0].Descriptor()
}
func (Registry_Status) Type() protoreflect.EnumType {
return &file_yandex_cloud_containerregistry_v1_registry_proto_enumTypes[0]
}
func (x Registry_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Registry_Status.Descriptor instead.
func (Registry_Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_af015c3b55615c1a, []int{0, 0}
return file_yandex_cloud_containerregistry_v1_registry_proto_rawDescGZIP(), []int{0, 0}
}
// A Registry resource. For more information, see [Registry](/docs/cloud/containerregistry/registry).
type Registry struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. ID of the registry.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// ID of the folder that the registry belongs to.
@ -68,114 +98,198 @@ type Registry struct {
// Output only. Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
CreatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// Resource labels as `key:value` pairs. Мaximum of 64 per resource.
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
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"`
}
func (m *Registry) Reset() { *m = Registry{} }
func (m *Registry) String() string { return proto.CompactTextString(m) }
func (*Registry) ProtoMessage() {}
func (x *Registry) Reset() {
*x = Registry{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_containerregistry_v1_registry_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Registry) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Registry) ProtoMessage() {}
func (x *Registry) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_containerregistry_v1_registry_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Registry.ProtoReflect.Descriptor instead.
func (*Registry) Descriptor() ([]byte, []int) {
return fileDescriptor_af015c3b55615c1a, []int{0}
return file_yandex_cloud_containerregistry_v1_registry_proto_rawDescGZIP(), []int{0}
}
func (m *Registry) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Registry.Unmarshal(m, b)
}
func (m *Registry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Registry.Marshal(b, m, deterministic)
}
func (m *Registry) XXX_Merge(src proto.Message) {
xxx_messageInfo_Registry.Merge(m, src)
}
func (m *Registry) XXX_Size() int {
return xxx_messageInfo_Registry.Size(m)
}
func (m *Registry) XXX_DiscardUnknown() {
xxx_messageInfo_Registry.DiscardUnknown(m)
}
var xxx_messageInfo_Registry proto.InternalMessageInfo
func (m *Registry) GetId() string {
if m != nil {
return m.Id
func (x *Registry) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (m *Registry) GetFolderId() string {
if m != nil {
return m.FolderId
func (x *Registry) GetFolderId() string {
if x != nil {
return x.FolderId
}
return ""
}
func (m *Registry) GetName() string {
if m != nil {
return m.Name
func (x *Registry) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *Registry) GetStatus() Registry_Status {
if m != nil {
return m.Status
func (x *Registry) GetStatus() Registry_Status {
if x != nil {
return x.Status
}
return Registry_STATUS_UNSPECIFIED
}
func (m *Registry) GetCreatedAt() *timestamp.Timestamp {
if m != nil {
return m.CreatedAt
func (x *Registry) GetCreatedAt() *timestamp.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (m *Registry) GetLabels() map[string]string {
if m != nil {
return m.Labels
func (x *Registry) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func init() {
proto.RegisterEnum("yandex.cloud.containerregistry.v1.Registry_Status", Registry_Status_name, Registry_Status_value)
proto.RegisterType((*Registry)(nil), "yandex.cloud.containerregistry.v1.Registry")
proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.containerregistry.v1.Registry.LabelsEntry")
var File_yandex_cloud_containerregistry_v1_registry_proto protoreflect.FileDescriptor
var file_yandex_cloud_containerregistry_v1_registry_proto_rawDesc = []byte{
0x0a, 0x30, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x12, 0x21, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74,
0x72, 0x79, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa8, 0x03, 0x0a, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73,
0x74, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x49, 0x64,
0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04,
0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67,
0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
0x79, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x4f, 0x0a, 0x06, 0x6c,
0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x79, 0x61,
0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61,
0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e,
0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45,
0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b,
0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a,
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61,
0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x48, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75,
0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50,
0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x52, 0x45,
0x41, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56,
0x45, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x49, 0x4e, 0x47, 0x10,
0x03, 0x42, 0x80, 0x01, 0x0a, 0x25, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f,
0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72,
0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x5a, 0x57, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63,
0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f,
0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f,
0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69,
0x73, 0x74, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/containerregistry/v1/registry.proto", fileDescriptor_af015c3b55615c1a)
var (
file_yandex_cloud_containerregistry_v1_registry_proto_rawDescOnce sync.Once
file_yandex_cloud_containerregistry_v1_registry_proto_rawDescData = file_yandex_cloud_containerregistry_v1_registry_proto_rawDesc
)
func file_yandex_cloud_containerregistry_v1_registry_proto_rawDescGZIP() []byte {
file_yandex_cloud_containerregistry_v1_registry_proto_rawDescOnce.Do(func() {
file_yandex_cloud_containerregistry_v1_registry_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_containerregistry_v1_registry_proto_rawDescData)
})
return file_yandex_cloud_containerregistry_v1_registry_proto_rawDescData
}
var fileDescriptor_af015c3b55615c1a = []byte{
// 400 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xc1, 0x6b, 0xd4, 0x40,
0x14, 0xc6, 0x4d, 0xd2, 0x86, 0xdd, 0xb7, 0x52, 0x96, 0x41, 0x24, 0xac, 0x07, 0xd7, 0x82, 0x90,
0x4b, 0x67, 0x6c, 0x3c, 0x68, 0xf5, 0x14, 0xb7, 0x51, 0x23, 0xa5, 0x4a, 0x92, 0x2a, 0x78, 0x59,
0x26, 0x99, 0x69, 0x1c, 0x4c, 0x32, 0x4b, 0x32, 0x59, 0xcc, 0xcd, 0x3f, 0xc7, 0x3f, 0x53, 0x3a,
0x93, 0x80, 0x52, 0xa1, 0x78, 0x7b, 0xf9, 0x5e, 0x7e, 0x6f, 0xde, 0xf7, 0xf1, 0xe0, 0xd9, 0x40,
0x1b, 0xc6, 0x7f, 0x90, 0xa2, 0x92, 0x3d, 0x23, 0x85, 0x6c, 0x14, 0x15, 0x0d, 0x6f, 0x5b, 0x5e,
0x8a, 0x4e, 0xb5, 0x03, 0xd9, 0x9f, 0x92, 0xa9, 0xc6, 0xbb, 0x56, 0x2a, 0x89, 0x9e, 0x18, 0x02,
0x6b, 0x02, 0xdf, 0x22, 0xf0, 0xfe, 0x74, 0xf5, 0xb8, 0x94, 0xb2, 0xac, 0x38, 0xd1, 0x40, 0xde,
0x5f, 0x13, 0x25, 0x6a, 0xde, 0x29, 0x5a, 0xef, 0xcc, 0x8c, 0xe3, 0x5f, 0x0e, 0xcc, 0x92, 0x11,
0x40, 0x47, 0x60, 0x0b, 0xe6, 0x59, 0x6b, 0xcb, 0x9f, 0x27, 0xb6, 0x60, 0xe8, 0x11, 0xcc, 0xaf,
0x65, 0xc5, 0x78, 0xbb, 0x15, 0xcc, 0xb3, 0xb5, 0x3c, 0x33, 0x42, 0xcc, 0x10, 0x82, 0x83, 0x86,
0xd6, 0xdc, 0x73, 0xb4, 0xae, 0x6b, 0xf4, 0x01, 0xdc, 0x4e, 0x51, 0xd5, 0x77, 0xde, 0xc1, 0xda,
0xf2, 0x8f, 0x82, 0x00, 0xdf, 0xb9, 0x22, 0x9e, 0x5e, 0xc7, 0xa9, 0x26, 0x93, 0x71, 0x02, 0x3a,
0x03, 0x28, 0x5a, 0x4e, 0x15, 0x67, 0x5b, 0xaa, 0xbc, 0xc3, 0xb5, 0xe5, 0x2f, 0x82, 0x15, 0x36,
0x7e, 0xf0, 0xe4, 0x07, 0x67, 0x93, 0x9f, 0x64, 0x3e, 0xfe, 0x1d, 0x2a, 0xf4, 0x11, 0xdc, 0x8a,
0xe6, 0xbc, 0xea, 0x3c, 0x77, 0xed, 0xf8, 0x8b, 0xe0, 0xc5, 0xff, 0xac, 0x71, 0xa1, 0xc9, 0xa8,
0x51, 0xed, 0x90, 0x8c, 0x63, 0x56, 0x67, 0xb0, 0xf8, 0x43, 0x46, 0x4b, 0x70, 0xbe, 0xf3, 0x61,
0x0c, 0xea, 0xa6, 0x44, 0x0f, 0xe0, 0x70, 0x4f, 0xab, 0x9e, 0x8f, 0x29, 0x99, 0x8f, 0x57, 0xf6,
0x4b, 0xeb, 0xf8, 0x3d, 0xb8, 0xc6, 0x18, 0x7a, 0x08, 0x28, 0xcd, 0xc2, 0xec, 0x2a, 0xdd, 0x5e,
0x5d, 0xa6, 0x9f, 0xa2, 0x4d, 0xfc, 0x36, 0x8e, 0xce, 0x97, 0xf7, 0xd0, 0x7d, 0x98, 0x6d, 0x92,
0x28, 0xcc, 0xe2, 0xcb, 0x77, 0x4b, 0x0b, 0x01, 0xb8, 0xe1, 0x26, 0x8b, 0x3f, 0x47, 0x4b, 0xfb,
0xa6, 0x73, 0x1e, 0x5d, 0x44, 0xba, 0xe3, 0xbc, 0xf9, 0x69, 0xc1, 0xd3, 0xbf, 0x7c, 0xd0, 0x9d,
0xf8, 0xa7, 0x97, 0xaf, 0x5f, 0x4a, 0xa1, 0xbe, 0xf5, 0x39, 0x2e, 0x64, 0x4d, 0x0c, 0x71, 0x62,
0xae, 0xaa, 0x94, 0x27, 0x25, 0x6f, 0x74, 0x78, 0xe4, 0xce, 0x73, 0x7b, 0x7d, 0x4b, 0xcc, 0x5d,
0x8d, 0x3e, 0xff, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x0d, 0x12, 0xef, 0xfc, 0xac, 0x02, 0x00, 0x00,
var file_yandex_cloud_containerregistry_v1_registry_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_containerregistry_v1_registry_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_containerregistry_v1_registry_proto_goTypes = []interface{}{
(Registry_Status)(0), // 0: yandex.cloud.containerregistry.v1.Registry.Status
(*Registry)(nil), // 1: yandex.cloud.containerregistry.v1.Registry
nil, // 2: yandex.cloud.containerregistry.v1.Registry.LabelsEntry
(*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp
}
var file_yandex_cloud_containerregistry_v1_registry_proto_depIdxs = []int32{
0, // 0: yandex.cloud.containerregistry.v1.Registry.status:type_name -> yandex.cloud.containerregistry.v1.Registry.Status
3, // 1: yandex.cloud.containerregistry.v1.Registry.created_at:type_name -> google.protobuf.Timestamp
2, // 2: yandex.cloud.containerregistry.v1.Registry.labels:type_name -> yandex.cloud.containerregistry.v1.Registry.LabelsEntry
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_yandex_cloud_containerregistry_v1_registry_proto_init() }
func file_yandex_cloud_containerregistry_v1_registry_proto_init() {
if File_yandex_cloud_containerregistry_v1_registry_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_containerregistry_v1_registry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Registry); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_containerregistry_v1_registry_proto_rawDesc,
NumEnums: 1,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_containerregistry_v1_registry_proto_goTypes,
DependencyIndexes: file_yandex_cloud_containerregistry_v1_registry_proto_depIdxs,
EnumInfos: file_yandex_cloud_containerregistry_v1_registry_proto_enumTypes,
MessageInfos: file_yandex_cloud_containerregistry_v1_registry_proto_msgTypes,
}.Build()
File_yandex_cloud_containerregistry_v1_registry_proto = out.File
file_yandex_cloud_containerregistry_v1_registry_proto_rawDesc = nil
file_yandex_cloud_containerregistry_v1_registry_proto_goTypes = nil
file_yandex_cloud_containerregistry_v1_registry_proto_depIdxs = nil
}

View File

@ -1,95 +1,171 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/containerregistry/v1/repository.proto
package containerregistry
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// A Repository resource. For more information, see [Repository](/docs/cloud/container-registry/repository).
type Repository struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name of the repository.
// The name is unique within the registry.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. ID of the repository.
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
}
func (m *Repository) Reset() { *m = Repository{} }
func (m *Repository) String() string { return proto.CompactTextString(m) }
func (*Repository) ProtoMessage() {}
func (x *Repository) Reset() {
*x = Repository{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_containerregistry_v1_repository_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Repository) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Repository) ProtoMessage() {}
func (x *Repository) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_containerregistry_v1_repository_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Repository.ProtoReflect.Descriptor instead.
func (*Repository) Descriptor() ([]byte, []int) {
return fileDescriptor_3a476f200b225be9, []int{0}
return file_yandex_cloud_containerregistry_v1_repository_proto_rawDescGZIP(), []int{0}
}
func (m *Repository) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Repository.Unmarshal(m, b)
}
func (m *Repository) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Repository.Marshal(b, m, deterministic)
}
func (m *Repository) XXX_Merge(src proto.Message) {
xxx_messageInfo_Repository.Merge(m, src)
}
func (m *Repository) XXX_Size() int {
return xxx_messageInfo_Repository.Size(m)
}
func (m *Repository) XXX_DiscardUnknown() {
xxx_messageInfo_Repository.DiscardUnknown(m)
}
var xxx_messageInfo_Repository proto.InternalMessageInfo
func (m *Repository) GetName() string {
if m != nil {
return m.Name
func (x *Repository) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *Repository) GetId() string {
if m != nil {
return m.Id
func (x *Repository) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func init() {
proto.RegisterType((*Repository)(nil), "yandex.cloud.containerregistry.v1.Repository")
var File_yandex_cloud_containerregistry_v1_repository_proto protoreflect.FileDescriptor
var file_yandex_cloud_containerregistry_v1_repository_proto_rawDesc = []byte{
0x0a, 0x32, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f,
0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69,
0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x22, 0x30, 0x0a, 0x0a, 0x52, 0x65, 0x70, 0x6f, 0x73,
0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x42, 0x80, 0x01, 0x0a, 0x25, 0x79, 0x61,
0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63,
0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x2e, 0x76, 0x31, 0x5a, 0x57, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d,
0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6e, 0x74, 0x61,
0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/containerregistry/v1/repository.proto", fileDescriptor_3a476f200b225be9)
var (
file_yandex_cloud_containerregistry_v1_repository_proto_rawDescOnce sync.Once
file_yandex_cloud_containerregistry_v1_repository_proto_rawDescData = file_yandex_cloud_containerregistry_v1_repository_proto_rawDesc
)
func file_yandex_cloud_containerregistry_v1_repository_proto_rawDescGZIP() []byte {
file_yandex_cloud_containerregistry_v1_repository_proto_rawDescOnce.Do(func() {
file_yandex_cloud_containerregistry_v1_repository_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_containerregistry_v1_repository_proto_rawDescData)
})
return file_yandex_cloud_containerregistry_v1_repository_proto_rawDescData
}
var fileDescriptor_3a476f200b225be9 = []byte{
// 176 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0xaa, 0x4c, 0xcc, 0x4b,
0x49, 0xad, 0xd0, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0x4f, 0xce, 0xcf, 0x2b, 0x49, 0xcc, 0xcc,
0x4b, 0x2d, 0x2a, 0x4a, 0x4d, 0xcf, 0x2c, 0x2e, 0x29, 0xaa, 0xd4, 0x2f, 0x33, 0xd4, 0x2f, 0x4a,
0x2d, 0xc8, 0x2f, 0xce, 0x2c, 0xc9, 0x2f, 0xaa, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52,
0x84, 0xe8, 0xd1, 0x03, 0xeb, 0xd1, 0xc3, 0xd0, 0xa3, 0x57, 0x66, 0xa8, 0x64, 0xc0, 0xc5, 0x15,
0x04, 0xd7, 0x26, 0x24, 0xc4, 0xc5, 0x92, 0x97, 0x98, 0x9b, 0x2a, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1,
0x19, 0x04, 0x66, 0x0b, 0xf1, 0x71, 0x31, 0x65, 0xa6, 0x48, 0x30, 0x81, 0x45, 0x98, 0x32, 0x53,
0x9c, 0x1a, 0x18, 0xb9, 0x54, 0x51, 0xcc, 0x4d, 0x2c, 0xc8, 0xc4, 0x6a, 0x76, 0x54, 0x78, 0x7a,
0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0x44, 0x87, 0x2e, 0xc4, 0xf5, 0xe9,
0xf9, 0xba, 0xe9, 0xa9, 0x79, 0x60, 0x37, 0xea, 0x13, 0xf4, 0x96, 0x35, 0x86, 0x60, 0x12, 0x1b,
0x58, 0xab, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x5d, 0x34, 0xba, 0x11, 0x14, 0x01, 0x00, 0x00,
var file_yandex_cloud_containerregistry_v1_repository_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_containerregistry_v1_repository_proto_goTypes = []interface{}{
(*Repository)(nil), // 0: yandex.cloud.containerregistry.v1.Repository
}
var file_yandex_cloud_containerregistry_v1_repository_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_yandex_cloud_containerregistry_v1_repository_proto_init() }
func file_yandex_cloud_containerregistry_v1_repository_proto_init() {
if File_yandex_cloud_containerregistry_v1_repository_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_containerregistry_v1_repository_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Repository); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_containerregistry_v1_repository_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_containerregistry_v1_repository_proto_goTypes,
DependencyIndexes: file_yandex_cloud_containerregistry_v1_repository_proto_depIdxs,
MessageInfos: file_yandex_cloud_containerregistry_v1_repository_proto_msgTypes,
}.Build()
File_yandex_cloud_containerregistry_v1_repository_proto = out.File
file_yandex_cloud_containerregistry_v1_repository_proto_rawDesc = nil
file_yandex_cloud_containerregistry_v1_repository_proto_goTypes = nil
file_yandex_cloud_containerregistry_v1_repository_proto_depIdxs = nil
}

View File

@ -1,11 +1,13 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/containerregistry/v1/repository_service.proto
package containerregistry
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
access "github.com/yandex-cloud/go-genproto/yandex/cloud/access"
@ -15,105 +17,128 @@ import (
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type GetRepositoryRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the Repository resource to return.
//
// To get the repository ID use a [RepositoryService.List] request.
RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"`
}
func (m *GetRepositoryRequest) Reset() { *m = GetRepositoryRequest{} }
func (m *GetRepositoryRequest) String() string { return proto.CompactTextString(m) }
func (*GetRepositoryRequest) ProtoMessage() {}
func (x *GetRepositoryRequest) Reset() {
*x = GetRepositoryRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_containerregistry_v1_repository_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetRepositoryRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetRepositoryRequest) ProtoMessage() {}
func (x *GetRepositoryRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_containerregistry_v1_repository_service_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetRepositoryRequest.ProtoReflect.Descriptor instead.
func (*GetRepositoryRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b3ad489b83930188, []int{0}
return file_yandex_cloud_containerregistry_v1_repository_service_proto_rawDescGZIP(), []int{0}
}
func (m *GetRepositoryRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetRepositoryRequest.Unmarshal(m, b)
}
func (m *GetRepositoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetRepositoryRequest.Marshal(b, m, deterministic)
}
func (m *GetRepositoryRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetRepositoryRequest.Merge(m, src)
}
func (m *GetRepositoryRequest) XXX_Size() int {
return xxx_messageInfo_GetRepositoryRequest.Size(m)
}
func (m *GetRepositoryRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetRepositoryRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetRepositoryRequest proto.InternalMessageInfo
func (m *GetRepositoryRequest) GetRepositoryId() string {
if m != nil {
return m.RepositoryId
func (x *GetRepositoryRequest) GetRepositoryId() string {
if x != nil {
return x.RepositoryId
}
return ""
}
type GetRepositoryByNameRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name of the Repository resource to return.
//
// To get the repository name use a [RepositoryService.List] request.
RepositoryName string `protobuf:"bytes,1,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
RepositoryName string `protobuf:"bytes,1,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"`
}
func (m *GetRepositoryByNameRequest) Reset() { *m = GetRepositoryByNameRequest{} }
func (m *GetRepositoryByNameRequest) String() string { return proto.CompactTextString(m) }
func (*GetRepositoryByNameRequest) ProtoMessage() {}
func (x *GetRepositoryByNameRequest) Reset() {
*x = GetRepositoryByNameRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_containerregistry_v1_repository_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetRepositoryByNameRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetRepositoryByNameRequest) ProtoMessage() {}
func (x *GetRepositoryByNameRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_containerregistry_v1_repository_service_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetRepositoryByNameRequest.ProtoReflect.Descriptor instead.
func (*GetRepositoryByNameRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b3ad489b83930188, []int{1}
return file_yandex_cloud_containerregistry_v1_repository_service_proto_rawDescGZIP(), []int{1}
}
func (m *GetRepositoryByNameRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetRepositoryByNameRequest.Unmarshal(m, b)
}
func (m *GetRepositoryByNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetRepositoryByNameRequest.Marshal(b, m, deterministic)
}
func (m *GetRepositoryByNameRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetRepositoryByNameRequest.Merge(m, src)
}
func (m *GetRepositoryByNameRequest) XXX_Size() int {
return xxx_messageInfo_GetRepositoryByNameRequest.Size(m)
}
func (m *GetRepositoryByNameRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetRepositoryByNameRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetRepositoryByNameRequest proto.InternalMessageInfo
func (m *GetRepositoryByNameRequest) GetRepositoryName() string {
if m != nil {
return m.RepositoryName
func (x *GetRepositoryByNameRequest) GetRepositoryName() string {
if x != nil {
return x.RepositoryName
}
return ""
}
type ListRepositoriesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the registry to list repositories in.
//
// To get the registry ID use a [RegistryService.List] request.
@ -138,81 +163,89 @@ type ListRepositoriesRequest struct {
// 1. The field name. Currently you can use filtering only on [Repository.name] field.
// 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
// 3. Value or a list of values to compare against the values of the field.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
}
func (m *ListRepositoriesRequest) Reset() { *m = ListRepositoriesRequest{} }
func (m *ListRepositoriesRequest) String() string { return proto.CompactTextString(m) }
func (*ListRepositoriesRequest) ProtoMessage() {}
func (x *ListRepositoriesRequest) Reset() {
*x = ListRepositoriesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_containerregistry_v1_repository_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListRepositoriesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListRepositoriesRequest) ProtoMessage() {}
func (x *ListRepositoriesRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_containerregistry_v1_repository_service_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListRepositoriesRequest.ProtoReflect.Descriptor instead.
func (*ListRepositoriesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b3ad489b83930188, []int{2}
return file_yandex_cloud_containerregistry_v1_repository_service_proto_rawDescGZIP(), []int{2}
}
func (m *ListRepositoriesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListRepositoriesRequest.Unmarshal(m, b)
}
func (m *ListRepositoriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListRepositoriesRequest.Marshal(b, m, deterministic)
}
func (m *ListRepositoriesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListRepositoriesRequest.Merge(m, src)
}
func (m *ListRepositoriesRequest) XXX_Size() int {
return xxx_messageInfo_ListRepositoriesRequest.Size(m)
}
func (m *ListRepositoriesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListRepositoriesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListRepositoriesRequest proto.InternalMessageInfo
func (m *ListRepositoriesRequest) GetRegistryId() string {
if m != nil {
return m.RegistryId
func (x *ListRepositoriesRequest) GetRegistryId() string {
if x != nil {
return x.RegistryId
}
return ""
}
func (m *ListRepositoriesRequest) GetFolderId() string {
if m != nil {
return m.FolderId
func (x *ListRepositoriesRequest) GetFolderId() string {
if x != nil {
return x.FolderId
}
return ""
}
func (m *ListRepositoriesRequest) GetPageSize() int64 {
if m != nil {
return m.PageSize
func (x *ListRepositoriesRequest) GetPageSize() int64 {
if x != nil {
return x.PageSize
}
return 0
}
func (m *ListRepositoriesRequest) GetPageToken() string {
if m != nil {
return m.PageToken
func (x *ListRepositoriesRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (m *ListRepositoriesRequest) GetFilter() string {
if m != nil {
return m.Filter
func (x *ListRepositoriesRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (m *ListRepositoriesRequest) GetOrderBy() string {
if m != nil {
return m.OrderBy
func (x *ListRepositoriesRequest) GetOrderBy() string {
if x != nil {
return x.OrderBy
}
return ""
}
type ListRepositoriesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// List of Repository resources.
Repositories []*Repository `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"`
// This token allows you to get the next page of results for list requests. If the number of results
@ -221,115 +254,323 @@ type ListRepositoriesResponse struct {
// for the [ListRepositoriesRequest.page_token] query parameter
// in the next list request. Each subsequent list request will have its own
// [next_page_token] to continue paging through the results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (m *ListRepositoriesResponse) Reset() { *m = ListRepositoriesResponse{} }
func (m *ListRepositoriesResponse) String() string { return proto.CompactTextString(m) }
func (*ListRepositoriesResponse) ProtoMessage() {}
func (x *ListRepositoriesResponse) Reset() {
*x = ListRepositoriesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_containerregistry_v1_repository_service_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListRepositoriesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListRepositoriesResponse) ProtoMessage() {}
func (x *ListRepositoriesResponse) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_containerregistry_v1_repository_service_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListRepositoriesResponse.ProtoReflect.Descriptor instead.
func (*ListRepositoriesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b3ad489b83930188, []int{3}
return file_yandex_cloud_containerregistry_v1_repository_service_proto_rawDescGZIP(), []int{3}
}
func (m *ListRepositoriesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListRepositoriesResponse.Unmarshal(m, b)
}
func (m *ListRepositoriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListRepositoriesResponse.Marshal(b, m, deterministic)
}
func (m *ListRepositoriesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListRepositoriesResponse.Merge(m, src)
}
func (m *ListRepositoriesResponse) XXX_Size() int {
return xxx_messageInfo_ListRepositoriesResponse.Size(m)
}
func (m *ListRepositoriesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListRepositoriesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListRepositoriesResponse proto.InternalMessageInfo
func (m *ListRepositoriesResponse) GetRepositories() []*Repository {
if m != nil {
return m.Repositories
func (x *ListRepositoriesResponse) GetRepositories() []*Repository {
if x != nil {
return x.Repositories
}
return nil
}
func (m *ListRepositoriesResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
func (x *ListRepositoriesResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
func init() {
proto.RegisterType((*GetRepositoryRequest)(nil), "yandex.cloud.containerregistry.v1.GetRepositoryRequest")
proto.RegisterType((*GetRepositoryByNameRequest)(nil), "yandex.cloud.containerregistry.v1.GetRepositoryByNameRequest")
proto.RegisterType((*ListRepositoriesRequest)(nil), "yandex.cloud.containerregistry.v1.ListRepositoriesRequest")
proto.RegisterType((*ListRepositoriesResponse)(nil), "yandex.cloud.containerregistry.v1.ListRepositoriesResponse")
var File_yandex_cloud_containerregistry_v1_repository_service_proto protoreflect.FileDescriptor
var file_yandex_cloud_containerregistry_v1_repository_service_proto_rawDesc = []byte{
0x0a, 0x3a, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x73,
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x79, 0x61,
0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61,
0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x1a,
0x20, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x70,
0x69, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x20, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f,
0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x32, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73,
0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72,
0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f,
0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x1d, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, 0x61,
0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x49, 0x0a, 0x14,
0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f,
0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0c, 0xe8, 0xc7, 0x31,
0x01, 0x8a, 0xc8, 0x31, 0x04, 0x3c, 0x3d, 0x35, 0x30, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73,
0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x22, 0x8d, 0x01, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x52,
0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x6f, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69,
0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
0x46, 0xe8, 0xc7, 0x31, 0x01, 0xf2, 0xc7, 0x31, 0x3e, 0x5b, 0x61, 0x2d, 0x7a, 0x30, 0x2d, 0x39,
0x5d, 0x2b, 0x28, 0x3f, 0x3a, 0x5b, 0x2e, 0x5f, 0x2d, 0x5d, 0x5b, 0x61, 0x2d, 0x7a, 0x30, 0x2d,
0x39, 0x5d, 0x2b, 0x29, 0x2a, 0x28, 0x2f, 0x28, 0x5b, 0x61, 0x2d, 0x7a, 0x30, 0x2d, 0x39, 0x5d,
0x2b, 0x28, 0x3f, 0x3a, 0x5b, 0x2e, 0x5f, 0x2d, 0x5d, 0x5b, 0x61, 0x2d, 0x7a, 0x30, 0x2d, 0x39,
0x5d, 0x2b, 0x29, 0x2a, 0x29, 0x29, 0x2a, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74,
0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x88, 0x02, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74,
0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5f,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0x8a, 0xc8, 0x31, 0x04, 0x3c, 0x3d,
0x35, 0x30, 0x52, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x49, 0x64, 0x12, 0x25,
0x0a, 0x09, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28,
0x09, 0x42, 0x08, 0x8a, 0xc8, 0x31, 0x04, 0x3c, 0x3d, 0x35, 0x30, 0x52, 0x08, 0x66, 0x6f, 0x6c,
0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69,
0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x42, 0x0a, 0xfa, 0xc7, 0x31, 0x06, 0x3c, 0x3d,
0x31, 0x30, 0x30, 0x30, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x28,
0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01,
0x28, 0x09, 0x42, 0x09, 0x8a, 0xc8, 0x31, 0x05, 0x3c, 0x3d, 0x31, 0x30, 0x30, 0x52, 0x09, 0x70,
0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x22, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74,
0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0x8a, 0xc8, 0x31, 0x06, 0x3c, 0x3d,
0x31, 0x30, 0x30, 0x30, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x24, 0x0a, 0x08,
0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x09,
0x8a, 0xc8, 0x31, 0x05, 0x3c, 0x3d, 0x31, 0x30, 0x30, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72,
0x42, 0x79, 0x22, 0x95, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73,
0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x51, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18,
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63,
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65,
0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69,
0x74, 0x6f, 0x72, 0x79, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69,
0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f,
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78,
0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xa8, 0x09, 0x0a, 0x11, 0x52,
0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
0x12, 0xaa, 0x01, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x37, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65,
0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74,
0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x2d, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74,
0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79,
0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x12, 0x33, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61,
0x69, 0x6e, 0x65, 0x72, 0x2d, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31,
0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x72,
0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x79, 0x0a,
0x09, 0x47, 0x65, 0x74, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3d, 0x2e, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69,
0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47,
0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x4e, 0x61,
0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e,
0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65,
0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0xac, 0x01, 0x0a, 0x04, 0x4c, 0x69, 0x73,
0x74, 0x12, 0x3a, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74,
0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69,
0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e,
0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e,
0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76,
0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69,
0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93,
0x02, 0x25, 0x12, 0x23, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x2d, 0x72,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73,
0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0xc3, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74,
0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x2e,
0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x63,
0x63, 0x65, 0x73, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42,
0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f,
0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x63,
0x63, 0x65, 0x73, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42,
0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
0x4c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x46, 0x12, 0x44, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69,
0x6e, 0x65, 0x72, 0x2d, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f,
0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x72, 0x65,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x3a, 0x6c, 0x69, 0x73, 0x74, 0x41,
0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x12, 0xf3, 0x01,
0x0a, 0x11, 0x53, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x69, 0x6e, 0x64, 0x69,
0x6e, 0x67, 0x73, 0x12, 0x2d, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f,
0x75, 0x64, 0x2e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x2e, 0x53, 0x65, 0x74, 0x41, 0x63, 0x63,
0x65, 0x73, 0x73, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x21, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4f, 0x70, 0x65, 0x72,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8b, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x22, 0x43,
0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x2d, 0x72, 0x65, 0x67, 0x69, 0x73,
0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72,
0x69, 0x65, 0x73, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64,
0x7d, 0x3a, 0x73, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x69, 0x6e, 0x64, 0x69,
0x6e, 0x67, 0x73, 0x3a, 0x01, 0x2a, 0xb2, 0xd2, 0x2a, 0x39, 0x0a, 0x20, 0x61, 0x63, 0x63, 0x65,
0x73, 0x73, 0x2e, 0x53, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x69, 0x6e, 0x64,
0x69, 0x6e, 0x67, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x15, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,
0x70, 0x74, 0x79, 0x12, 0xff, 0x01, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63,
0x63, 0x65, 0x73, 0x73, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x30, 0x2e, 0x79,
0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x63, 0x63, 0x65,
0x73, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42,
0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21,
0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x70,
0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x22, 0x91, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4b, 0x22, 0x46, 0x2f, 0x63, 0x6f, 0x6e,
0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x2d, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f,
0x76, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x2f,
0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x3a, 0x75, 0x70,
0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e,
0x67, 0x73, 0x3a, 0x01, 0x2a, 0xb2, 0xd2, 0x2a, 0x3c, 0x0a, 0x23, 0x61, 0x63, 0x63, 0x65, 0x73,
0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x69,
0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x15,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x80, 0x01, 0x0a, 0x25, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61,
0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x5a,
0x57, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x72, 0x65, 0x67, 0x69, 0x73,
0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72,
0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/containerregistry/v1/repository_service.proto", fileDescriptor_b3ad489b83930188)
var (
file_yandex_cloud_containerregistry_v1_repository_service_proto_rawDescOnce sync.Once
file_yandex_cloud_containerregistry_v1_repository_service_proto_rawDescData = file_yandex_cloud_containerregistry_v1_repository_service_proto_rawDesc
)
func file_yandex_cloud_containerregistry_v1_repository_service_proto_rawDescGZIP() []byte {
file_yandex_cloud_containerregistry_v1_repository_service_proto_rawDescOnce.Do(func() {
file_yandex_cloud_containerregistry_v1_repository_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_containerregistry_v1_repository_service_proto_rawDescData)
})
return file_yandex_cloud_containerregistry_v1_repository_service_proto_rawDescData
}
var fileDescriptor_b3ad489b83930188 = []byte{
// 806 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4f, 0x4f, 0x3b, 0x55,
0x14, 0xcd, 0xa3, 0x50, 0xdb, 0x07, 0x48, 0x78, 0xc1, 0xd8, 0x34, 0x9a, 0x94, 0x41, 0xb0, 0x2d,
0x99, 0x99, 0x0e, 0x84, 0x18, 0x0a, 0x68, 0xac, 0x0a, 0x36, 0xe2, 0xbf, 0xa2, 0x31, 0x91, 0x90,
0x66, 0xda, 0xb9, 0x8c, 0x2f, 0xb6, 0xf3, 0xc6, 0x79, 0xaf, 0x0d, 0x83, 0x31, 0x31, 0xae, 0x0c,
0xc6, 0x85, 0x31, 0x7e, 0x07, 0x63, 0x5c, 0xf9, 0x15, 0x5c, 0xc0, 0x5a, 0xbf, 0x82, 0x0b, 0xd7,
0xba, 0x73, 0xe3, 0x2f, 0xf3, 0xaf, 0xd3, 0x69, 0x0b, 0xb4, 0xbf, 0x55, 0x9b, 0x77, 0xcf, 0x3d,
0xf7, 0x9c, 0xfb, 0xde, 0xbd, 0x2d, 0xae, 0xba, 0xba, 0x65, 0xc0, 0x95, 0xda, 0xee, 0xb0, 0x9e,
0xa1, 0xb6, 0x99, 0x25, 0x74, 0x6a, 0x81, 0xe3, 0x80, 0x49, 0xb9, 0x70, 0x5c, 0xb5, 0xaf, 0xa9,
0x0e, 0xd8, 0x8c, 0x53, 0xc1, 0x1c, 0xb7, 0xc9, 0xc1, 0xe9, 0xd3, 0x36, 0x28, 0xb6, 0xc3, 0x04,
0x23, 0xeb, 0x41, 0xae, 0xe2, 0xe7, 0x2a, 0x63, 0xb9, 0x4a, 0x5f, 0xcb, 0x17, 0x12, 0xf4, 0xba,
0x4d, 0x55, 0x66, 0x83, 0xa3, 0x0b, 0xca, 0xac, 0x80, 0x64, 0x14, 0xd1, 0x6e, 0x03, 0xe7, 0xe1,
0x47, 0x88, 0xd8, 0x99, 0x45, 0x62, 0x98, 0xb3, 0x95, 0xc8, 0x19, 0xd4, 0x1c, 0xab, 0xfe, 0x62,
0x02, 0xd7, 0xd7, 0x3b, 0xd4, 0x18, 0x0e, 0xbf, 0x60, 0x32, 0x66, 0x76, 0xc0, 0x17, 0xae, 0x5b,
0x16, 0x13, 0x7e, 0x30, 0x14, 0x26, 0xd5, 0xf1, 0xda, 0x09, 0x88, 0xc6, 0xa0, 0x76, 0x03, 0xbe,
0xe8, 0x01, 0x17, 0x44, 0xc3, 0xcb, 0x43, 0x3d, 0xa3, 0x46, 0x0e, 0x15, 0x50, 0x31, 0x5b, 0x5b,
0xfa, 0xfb, 0x56, 0x43, 0x37, 0x77, 0xda, 0xfc, 0xe1, 0xd1, 0x5e, 0xa5, 0xb1, 0x14, 0x43, 0xea,
0x86, 0xf4, 0x3d, 0xc2, 0xf9, 0x04, 0x57, 0xcd, 0x7d, 0x4f, 0xef, 0x42, 0xc4, 0xc8, 0xf0, 0xca,
0x10, 0xa3, 0xa5, 0x77, 0x21, 0xe4, 0x3c, 0xf6, 0x38, 0xff, 0xb9, 0xd5, 0x5e, 0x3d, 0xd7, 0xe5,
0xeb, 0x8a, 0xbc, 0x7f, 0xb1, 0x5d, 0x7c, 0xad, 0x7a, 0xae, 0x34, 0xe5, 0x8b, 0xc1, 0x41, 0xa9,
0x5c, 0x54, 0x8b, 0x0f, 0x85, 0x4b, 0xa5, 0x72, 0xe3, 0xd9, 0x98, 0xde, 0xab, 0x2b, 0x7d, 0x3b,
0x87, 0x9f, 0x3f, 0xa5, 0x3c, 0x16, 0x44, 0x81, 0x47, 0x62, 0x4a, 0x78, 0x31, 0xea, 0x7d, 0x6c,
0x2e, 0x33, 0x30, 0x86, 0xa3, 0x60, 0xdd, 0x20, 0x9b, 0x38, 0x7b, 0xc9, 0x3a, 0x06, 0x38, 0x1e,
0x30, 0x3d, 0x02, 0xcc, 0x04, 0xa1, 0xba, 0x41, 0x5e, 0xc6, 0x59, 0x5b, 0x37, 0xa1, 0xc9, 0xe9,
0x35, 0xe4, 0xe6, 0x0a, 0xa8, 0x98, 0xaa, 0xe1, 0xff, 0x6e, 0xb5, 0xf4, 0xe1, 0x91, 0x56, 0xa9,
0x54, 0x1a, 0x19, 0x2f, 0x78, 0x46, 0xaf, 0x81, 0x14, 0x31, 0xf6, 0x81, 0x82, 0x7d, 0x0e, 0x56,
0x2e, 0xe5, 0x13, 0x66, 0x6f, 0xee, 0xb4, 0x05, 0x1f, 0xd9, 0xf0, 0x59, 0x3e, 0xf2, 0x62, 0x44,
0xc2, 0xe9, 0x4b, 0xda, 0x11, 0xe0, 0xe4, 0xe6, 0x7d, 0x14, 0xbe, 0xb9, 0x1b, 0xf0, 0x85, 0x11,
0xf2, 0x12, 0xce, 0x30, 0xc7, 0x13, 0xd7, 0x72, 0x73, 0x0b, 0xa3, 0x5c, 0xcf, 0xf8, 0xa1, 0x9a,
0x2b, 0xfd, 0x84, 0x70, 0x6e, 0xbc, 0x15, 0xdc, 0x66, 0x16, 0x07, 0xf2, 0x21, 0x8e, 0xef, 0x91,
0x02, 0xcf, 0xa1, 0x42, 0xaa, 0xb8, 0xb8, 0x23, 0x2b, 0x8f, 0x4e, 0x86, 0x32, 0xf4, 0x6c, 0x12,
0x14, 0x64, 0x0b, 0xaf, 0x58, 0x70, 0x25, 0x9a, 0x43, 0x46, 0xbd, 0x96, 0x64, 0x1b, 0xcb, 0xde,
0xf1, 0x07, 0x91, 0xc3, 0x9d, 0x9f, 0xb3, 0x78, 0x35, 0x26, 0x39, 0x0b, 0x26, 0x93, 0xfc, 0x82,
0x70, 0xea, 0x04, 0x04, 0x79, 0x65, 0x0a, 0x09, 0x93, 0x1e, 0x6f, 0x7e, 0x36, 0xed, 0xd2, 0xc1,
0x37, 0x7f, 0xfe, 0xf5, 0xe3, 0xdc, 0x1e, 0xd9, 0x8d, 0x07, 0x53, 0x9e, 0x38, 0x99, 0x14, 0xb8,
0xfa, 0x65, 0x62, 0x2c, 0xbe, 0x22, 0x2e, 0xce, 0x9e, 0x80, 0x08, 0x9e, 0x3a, 0x39, 0x9a, 0x55,
0x71, 0x62, 0x44, 0x66, 0xd4, 0x4d, 0x7e, 0x45, 0x78, 0xde, 0xbb, 0x55, 0x52, 0x9d, 0x22, 0xef,
0x9e, 0x49, 0xc8, 0x1f, 0x3c, 0x55, 0x6e, 0xf0, 0x74, 0xa4, 0x6d, 0xbf, 0x73, 0x9b, 0x64, 0x63,
0x8a, 0xce, 0x91, 0xdf, 0x11, 0x26, 0x1e, 0xd3, 0xeb, 0xfe, 0x62, 0xac, 0x51, 0xcb, 0xa0, 0x96,
0xc9, 0x89, 0x92, 0x14, 0x10, 0xae, 0xcd, 0x71, 0x60, 0x24, 0x58, 0x9d, 0x1a, 0x1f, 0x8a, 0x3c,
0xf5, 0x45, 0x1e, 0x93, 0x37, 0xa7, 0xbc, 0x5e, 0xce, 0x7a, 0x4e, 0x1b, 0xbc, 0xcb, 0xad, 0x76,
0xc6, 0xe5, 0xfe, 0x8b, 0xf0, 0xea, 0x19, 0x8c, 0x9e, 0xca, 0x13, 0x45, 0x8d, 0xe1, 0x22, 0x0f,
0xeb, 0x49, 0x78, 0xbc, 0xd1, 0xdf, 0x8f, 0xbe, 0x49, 0xdf, 0xa1, 0xdf, 0xfe, 0x28, 0xef, 0xe3,
0xc2, 0x7d, 0x54, 0xef, 0x82, 0xd0, 0x0d, 0x5d, 0xe8, 0xe4, 0xb9, 0x60, 0xbf, 0x07, 0xfb, 0xbc,
0xd5, 0xbb, 0x54, 0xde, 0xea, 0xda, 0xc2, 0xf5, 0x3d, 0xbf, 0x2d, 0xbd, 0x31, 0xbb, 0x67, 0x3e,
0x5a, 0xa9, 0x8a, 0xca, 0xe4, 0x7f, 0x84, 0xd7, 0x3e, 0xb6, 0x0d, 0x5d, 0xc0, 0x88, 0xf1, 0xca,
0x44, 0xe3, 0x93, 0xa0, 0x33, 0x78, 0xff, 0xc1, 0xf3, 0x7e, 0x88, 0x37, 0x1e, 0x60, 0x9b, 0xc6,
0xfe, 0x3b, 0xd2, 0xf1, 0xec, 0xf6, 0x7b, 0x13, 0x8a, 0x55, 0x51, 0xb9, 0xf6, 0x35, 0xc2, 0x9b,
0x49, 0xab, 0x36, 0x9d, 0x38, 0x2d, 0x9f, 0x7e, 0x62, 0x52, 0xf1, 0x59, 0xaf, 0xa5, 0xb4, 0x59,
0x57, 0x0d, 0x32, 0xe4, 0xe0, 0xa7, 0xd9, 0x64, 0xb2, 0x09, 0x96, 0x2f, 0x54, 0x7d, 0xf4, 0xff,
0xc0, 0xc1, 0xd8, 0x61, 0x2b, 0xed, 0xa7, 0xee, 0x3e, 0x09, 0x00, 0x00, 0xff, 0xff, 0xee, 0xd5,
0x3a, 0x62, 0xf0, 0x08, 0x00, 0x00,
var file_yandex_cloud_containerregistry_v1_repository_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_yandex_cloud_containerregistry_v1_repository_service_proto_goTypes = []interface{}{
(*GetRepositoryRequest)(nil), // 0: yandex.cloud.containerregistry.v1.GetRepositoryRequest
(*GetRepositoryByNameRequest)(nil), // 1: yandex.cloud.containerregistry.v1.GetRepositoryByNameRequest
(*ListRepositoriesRequest)(nil), // 2: yandex.cloud.containerregistry.v1.ListRepositoriesRequest
(*ListRepositoriesResponse)(nil), // 3: yandex.cloud.containerregistry.v1.ListRepositoriesResponse
(*Repository)(nil), // 4: yandex.cloud.containerregistry.v1.Repository
(*access.ListAccessBindingsRequest)(nil), // 5: yandex.cloud.access.ListAccessBindingsRequest
(*access.SetAccessBindingsRequest)(nil), // 6: yandex.cloud.access.SetAccessBindingsRequest
(*access.UpdateAccessBindingsRequest)(nil), // 7: yandex.cloud.access.UpdateAccessBindingsRequest
(*access.ListAccessBindingsResponse)(nil), // 8: yandex.cloud.access.ListAccessBindingsResponse
(*operation.Operation)(nil), // 9: yandex.cloud.operation.Operation
}
var file_yandex_cloud_containerregistry_v1_repository_service_proto_depIdxs = []int32{
4, // 0: yandex.cloud.containerregistry.v1.ListRepositoriesResponse.repositories:type_name -> yandex.cloud.containerregistry.v1.Repository
0, // 1: yandex.cloud.containerregistry.v1.RepositoryService.Get:input_type -> yandex.cloud.containerregistry.v1.GetRepositoryRequest
1, // 2: yandex.cloud.containerregistry.v1.RepositoryService.GetByName:input_type -> yandex.cloud.containerregistry.v1.GetRepositoryByNameRequest
2, // 3: yandex.cloud.containerregistry.v1.RepositoryService.List:input_type -> yandex.cloud.containerregistry.v1.ListRepositoriesRequest
5, // 4: yandex.cloud.containerregistry.v1.RepositoryService.ListAccessBindings:input_type -> yandex.cloud.access.ListAccessBindingsRequest
6, // 5: yandex.cloud.containerregistry.v1.RepositoryService.SetAccessBindings:input_type -> yandex.cloud.access.SetAccessBindingsRequest
7, // 6: yandex.cloud.containerregistry.v1.RepositoryService.UpdateAccessBindings:input_type -> yandex.cloud.access.UpdateAccessBindingsRequest
4, // 7: yandex.cloud.containerregistry.v1.RepositoryService.Get:output_type -> yandex.cloud.containerregistry.v1.Repository
4, // 8: yandex.cloud.containerregistry.v1.RepositoryService.GetByName:output_type -> yandex.cloud.containerregistry.v1.Repository
3, // 9: yandex.cloud.containerregistry.v1.RepositoryService.List:output_type -> yandex.cloud.containerregistry.v1.ListRepositoriesResponse
8, // 10: yandex.cloud.containerregistry.v1.RepositoryService.ListAccessBindings:output_type -> yandex.cloud.access.ListAccessBindingsResponse
9, // 11: yandex.cloud.containerregistry.v1.RepositoryService.SetAccessBindings:output_type -> yandex.cloud.operation.Operation
9, // 12: yandex.cloud.containerregistry.v1.RepositoryService.UpdateAccessBindings:output_type -> yandex.cloud.operation.Operation
7, // [7:13] is the sub-list for method output_type
1, // [1:7] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_yandex_cloud_containerregistry_v1_repository_service_proto_init() }
func file_yandex_cloud_containerregistry_v1_repository_service_proto_init() {
if File_yandex_cloud_containerregistry_v1_repository_service_proto != nil {
return
}
file_yandex_cloud_containerregistry_v1_repository_proto_init()
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_containerregistry_v1_repository_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetRepositoryRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_containerregistry_v1_repository_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetRepositoryByNameRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_containerregistry_v1_repository_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListRepositoriesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_containerregistry_v1_repository_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListRepositoriesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_containerregistry_v1_repository_service_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_yandex_cloud_containerregistry_v1_repository_service_proto_goTypes,
DependencyIndexes: file_yandex_cloud_containerregistry_v1_repository_service_proto_depIdxs,
MessageInfos: file_yandex_cloud_containerregistry_v1_repository_service_proto_msgTypes,
}.Build()
File_yandex_cloud_containerregistry_v1_repository_service_proto = out.File
file_yandex_cloud_containerregistry_v1_repository_service_proto_rawDesc = nil
file_yandex_cloud_containerregistry_v1_repository_service_proto_goTypes = nil
file_yandex_cloud_containerregistry_v1_repository_service_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
@ -448,22 +689,22 @@ type RepositoryServiceServer interface {
type UnimplementedRepositoryServiceServer struct {
}
func (*UnimplementedRepositoryServiceServer) Get(ctx context.Context, req *GetRepositoryRequest) (*Repository, error) {
func (*UnimplementedRepositoryServiceServer) Get(context.Context, *GetRepositoryRequest) (*Repository, error) {
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
}
func (*UnimplementedRepositoryServiceServer) GetByName(ctx context.Context, req *GetRepositoryByNameRequest) (*Repository, error) {
func (*UnimplementedRepositoryServiceServer) GetByName(context.Context, *GetRepositoryByNameRequest) (*Repository, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetByName not implemented")
}
func (*UnimplementedRepositoryServiceServer) List(ctx context.Context, req *ListRepositoriesRequest) (*ListRepositoriesResponse, error) {
func (*UnimplementedRepositoryServiceServer) List(context.Context, *ListRepositoriesRequest) (*ListRepositoriesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
}
func (*UnimplementedRepositoryServiceServer) ListAccessBindings(ctx context.Context, req *access.ListAccessBindingsRequest) (*access.ListAccessBindingsResponse, error) {
func (*UnimplementedRepositoryServiceServer) ListAccessBindings(context.Context, *access.ListAccessBindingsRequest) (*access.ListAccessBindingsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListAccessBindings not implemented")
}
func (*UnimplementedRepositoryServiceServer) SetAccessBindings(ctx context.Context, req *access.SetAccessBindingsRequest) (*operation.Operation, error) {
func (*UnimplementedRepositoryServiceServer) SetAccessBindings(context.Context, *access.SetAccessBindingsRequest) (*operation.Operation, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetAccessBindings not implemented")
}
func (*UnimplementedRepositoryServiceServer) UpdateAccessBindings(ctx context.Context, req *access.UpdateAccessBindingsRequest) (*operation.Operation, error) {
func (*UnimplementedRepositoryServiceServer) UpdateAccessBindings(context.Context, *access.UpdateAccessBindingsRequest) (*operation.Operation, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateAccessBindings not implemented")
}

File diff suppressed because it is too large Load Diff

View File

@ -58,6 +58,10 @@ func (m *Cluster) SetBucket(v string) {
m.Bucket = v
}
func (m *Cluster) SetUiProxy(v bool) {
m.UiProxy = v
}
func (m *Monitoring) SetName(v string) {
m.Name = v
}

File diff suppressed because it is too large Load Diff

View File

@ -55,6 +55,10 @@ func (m *CreateSubclusterConfigSpec) SetHostsCount(v int64) {
m.HostsCount = v
}
func (m *CreateSubclusterConfigSpec) SetAutoscalingConfig(v *AutoscalingConfig) {
m.AutoscalingConfig = v
}
func (m *UpdateSubclusterConfigSpec) SetId(v string) {
m.Id = v
}
@ -71,6 +75,10 @@ func (m *UpdateSubclusterConfigSpec) SetHostsCount(v int64) {
m.HostsCount = v
}
func (m *UpdateSubclusterConfigSpec) SetAutoscalingConfig(v *AutoscalingConfig) {
m.AutoscalingConfig = v
}
func (m *CreateClusterConfigSpec) SetVersionId(v string) {
m.VersionId = v
}
@ -119,6 +127,10 @@ func (m *CreateClusterRequest) SetBucket(v string) {
m.Bucket = v
}
func (m *CreateClusterRequest) SetUiProxy(v bool) {
m.UiProxy = v
}
func (m *CreateClusterMetadata) SetClusterId(v string) {
m.ClusterId = v
}
@ -159,6 +171,10 @@ func (m *UpdateClusterRequest) SetDecommissionTimeout(v int64) {
m.DecommissionTimeout = v
}
func (m *UpdateClusterRequest) SetUiProxy(v bool) {
m.UiProxy = v
}
func (m *UpdateClusterMetadata) SetClusterId(v string) {
m.ClusterId = v
}
@ -238,3 +254,19 @@ func (m *ListClusterHostsResponse) SetHosts(v []*Host) {
func (m *ListClusterHostsResponse) SetNextPageToken(v string) {
m.NextPageToken = v
}
func (m *ListUILinksRequest) SetClusterId(v string) {
m.ClusterId = v
}
func (m *UILink) SetName(v string) {
m.Name = v
}
func (m *UILink) SetUrl(v string) {
m.Url = v
}
func (m *ListUILinksResponse) SetLinks(v []*UILink) {
m.Links = v
}

View File

@ -1,24 +1,29 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/dataproc/v1/common.proto
package dataproc
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type Health int32
@ -33,29 +38,54 @@ const (
Health_DEGRADED Health = 3
)
var Health_name = map[int32]string{
0: "HEALTH_UNKNOWN",
1: "ALIVE",
2: "DEAD",
3: "DEGRADED",
}
// Enum value maps for Health.
var (
Health_name = map[int32]string{
0: "HEALTH_UNKNOWN",
1: "ALIVE",
2: "DEAD",
3: "DEGRADED",
}
Health_value = map[string]int32{
"HEALTH_UNKNOWN": 0,
"ALIVE": 1,
"DEAD": 2,
"DEGRADED": 3,
}
)
var Health_value = map[string]int32{
"HEALTH_UNKNOWN": 0,
"ALIVE": 1,
"DEAD": 2,
"DEGRADED": 3,
func (x Health) Enum() *Health {
p := new(Health)
*p = x
return p
}
func (x Health) String() string {
return proto.EnumName(Health_name, int32(x))
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Health) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_dataproc_v1_common_proto_enumTypes[0].Descriptor()
}
func (Health) Type() protoreflect.EnumType {
return &file_yandex_cloud_dataproc_v1_common_proto_enumTypes[0]
}
func (x Health) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Health.Descriptor instead.
func (Health) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_9d76f8f9214f9e4c, []int{0}
return file_yandex_cloud_dataproc_v1_common_proto_rawDescGZIP(), []int{0}
}
type Resources struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the resource preset for computational resources available to a host (CPU, memory etc.).
// All available presets are listed in the [documentation](/docs/data-proc/concepts/instance-types).
ResourcePresetId string `protobuf:"bytes,1,opt,name=resource_preset_id,json=resourcePresetId,proto3" json:"resource_preset_id,omitempty"`
@ -65,85 +95,152 @@ type Resources struct {
// * network-ssd — network SSD drive.
DiskTypeId string `protobuf:"bytes,2,opt,name=disk_type_id,json=diskTypeId,proto3" json:"disk_type_id,omitempty"`
// Volume of the storage available to a host, in bytes.
DiskSize int64 `protobuf:"varint,3,opt,name=disk_size,json=diskSize,proto3" json:"disk_size,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
DiskSize int64 `protobuf:"varint,3,opt,name=disk_size,json=diskSize,proto3" json:"disk_size,omitempty"`
}
func (m *Resources) Reset() { *m = Resources{} }
func (m *Resources) String() string { return proto.CompactTextString(m) }
func (*Resources) ProtoMessage() {}
func (x *Resources) Reset() {
*x = Resources{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_dataproc_v1_common_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Resources) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Resources) ProtoMessage() {}
func (x *Resources) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_dataproc_v1_common_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Resources.ProtoReflect.Descriptor instead.
func (*Resources) Descriptor() ([]byte, []int) {
return fileDescriptor_9d76f8f9214f9e4c, []int{0}
return file_yandex_cloud_dataproc_v1_common_proto_rawDescGZIP(), []int{0}
}
func (m *Resources) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Resources.Unmarshal(m, b)
}
func (m *Resources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Resources.Marshal(b, m, deterministic)
}
func (m *Resources) XXX_Merge(src proto.Message) {
xxx_messageInfo_Resources.Merge(m, src)
}
func (m *Resources) XXX_Size() int {
return xxx_messageInfo_Resources.Size(m)
}
func (m *Resources) XXX_DiscardUnknown() {
xxx_messageInfo_Resources.DiscardUnknown(m)
}
var xxx_messageInfo_Resources proto.InternalMessageInfo
func (m *Resources) GetResourcePresetId() string {
if m != nil {
return m.ResourcePresetId
func (x *Resources) GetResourcePresetId() string {
if x != nil {
return x.ResourcePresetId
}
return ""
}
func (m *Resources) GetDiskTypeId() string {
if m != nil {
return m.DiskTypeId
func (x *Resources) GetDiskTypeId() string {
if x != nil {
return x.DiskTypeId
}
return ""
}
func (m *Resources) GetDiskSize() int64 {
if m != nil {
return m.DiskSize
func (x *Resources) GetDiskSize() int64 {
if x != nil {
return x.DiskSize
}
return 0
}
func init() {
proto.RegisterEnum("yandex.cloud.dataproc.v1.Health", Health_name, Health_value)
proto.RegisterType((*Resources)(nil), "yandex.cloud.dataproc.v1.Resources")
var File_yandex_cloud_dataproc_v1_common_proto protoreflect.FileDescriptor
var file_yandex_cloud_dataproc_v1_common_proto_rawDesc = []byte{
0x0a, 0x25, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64,
0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x2e, 0x76,
0x31, 0x22, 0x78, 0x0a, 0x09, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x2c,
0x0a, 0x12, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x65, 0x73, 0x65,
0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0c,
0x64, 0x69, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x0a, 0x64, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x64, 0x12, 0x1b,
0x0a, 0x09, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
0x03, 0x52, 0x08, 0x64, 0x69, 0x73, 0x6b, 0x53, 0x69, 0x7a, 0x65, 0x2a, 0x3f, 0x0a, 0x06, 0x48,
0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x0e, 0x48, 0x45, 0x41, 0x4c, 0x54, 0x48, 0x5f,
0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x4c, 0x49,
0x56, 0x45, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x45, 0x41, 0x44, 0x10, 0x02, 0x12, 0x0c,
0x0a, 0x08, 0x44, 0x45, 0x47, 0x52, 0x41, 0x44, 0x45, 0x44, 0x10, 0x03, 0x42, 0x65, 0x0a, 0x1c,
0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x2e, 0x76, 0x31, 0x5a, 0x45, 0x67, 0x69,
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64,
0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x70,
0x72, 0x6f, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/dataproc/v1/common.proto", fileDescriptor_9d76f8f9214f9e4c)
var (
file_yandex_cloud_dataproc_v1_common_proto_rawDescOnce sync.Once
file_yandex_cloud_dataproc_v1_common_proto_rawDescData = file_yandex_cloud_dataproc_v1_common_proto_rawDesc
)
func file_yandex_cloud_dataproc_v1_common_proto_rawDescGZIP() []byte {
file_yandex_cloud_dataproc_v1_common_proto_rawDescOnce.Do(func() {
file_yandex_cloud_dataproc_v1_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_dataproc_v1_common_proto_rawDescData)
})
return file_yandex_cloud_dataproc_v1_common_proto_rawDescData
}
var fileDescriptor_9d76f8f9214f9e4c = []byte{
// 280 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0xd0, 0xc1, 0x4b, 0xf3, 0x30,
0x18, 0x06, 0xf0, 0xaf, 0xdb, 0xe7, 0x58, 0x5f, 0x86, 0x94, 0x9c, 0x06, 0x7a, 0x18, 0x82, 0x30,
0xc4, 0x35, 0x0c, 0x8f, 0x1e, 0xa4, 0xd2, 0xe0, 0x86, 0xa3, 0x4a, 0x9d, 0x0a, 0x5e, 0x4a, 0xd7,
0xbc, 0x74, 0xc1, 0xb5, 0x09, 0x6d, 0x3a, 0xd6, 0xfd, 0xf5, 0xd2, 0xd4, 0x82, 0x1e, 0xbc, 0x25,
0xef, 0xf3, 0xbb, 0x3c, 0x0f, 0x5c, 0xd6, 0x71, 0xce, 0xf1, 0x40, 0x93, 0x9d, 0xac, 0x38, 0xe5,
0xb1, 0x8e, 0x55, 0x21, 0x13, 0xba, 0x9f, 0xd3, 0x44, 0x66, 0x99, 0xcc, 0x5d, 0x55, 0x48, 0x2d,
0xc9, 0xb8, 0x65, 0xae, 0x61, 0x6e, 0xc7, 0xdc, 0xfd, 0xfc, 0xe2, 0x00, 0x76, 0x88, 0xa5, 0xac,
0x8a, 0x04, 0x4b, 0x72, 0x0d, 0xa4, 0xf8, 0xfe, 0x44, 0xaa, 0xc0, 0x12, 0x75, 0x24, 0xf8, 0xd8,
0x9a, 0x58, 0x53, 0x3b, 0x74, 0xba, 0xe4, 0xd9, 0x04, 0x4b, 0x4e, 0x26, 0x30, 0xe2, 0xa2, 0xfc,
0x8c, 0x74, 0xad, 0xb0, 0x71, 0x3d, 0xe3, 0xa0, 0xb9, 0xad, 0x6b, 0x85, 0x4b, 0x4e, 0xce, 0xc0,
0x36, 0xa2, 0x14, 0x47, 0x1c, 0xf7, 0x27, 0xd6, 0xb4, 0x1f, 0x0e, 0x9b, 0xc3, 0x8b, 0x38, 0xe2,
0xd5, 0x1d, 0x0c, 0x16, 0x18, 0xef, 0xf4, 0x96, 0x10, 0x38, 0x5d, 0x30, 0x6f, 0xb5, 0x5e, 0x44,
0xaf, 0xc1, 0x63, 0xf0, 0xf4, 0x1e, 0x38, 0xff, 0x88, 0x0d, 0x27, 0xde, 0x6a, 0xf9, 0xc6, 0x1c,
0x8b, 0x0c, 0xe1, 0xbf, 0xcf, 0x3c, 0xdf, 0xe9, 0x91, 0x11, 0x0c, 0x7d, 0xf6, 0x10, 0x7a, 0x3e,
0xf3, 0x9d, 0xfe, 0x3d, 0xc2, 0xf9, 0xaf, 0x5a, 0xb1, 0x12, 0x3f, 0xab, 0x7d, 0xb0, 0x54, 0xe8,
0x6d, 0xb5, 0x71, 0x13, 0x99, 0xd1, 0x16, 0xce, 0xda, 0x99, 0x52, 0x39, 0x4b, 0x31, 0x37, 0xcb,
0xd0, 0xbf, 0xf6, 0xbb, 0xed, 0xde, 0x9b, 0x81, 0x81, 0x37, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff,
0x65, 0x56, 0x98, 0x80, 0x6b, 0x01, 0x00, 0x00,
var file_yandex_cloud_dataproc_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_dataproc_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_dataproc_v1_common_proto_goTypes = []interface{}{
(Health)(0), // 0: yandex.cloud.dataproc.v1.Health
(*Resources)(nil), // 1: yandex.cloud.dataproc.v1.Resources
}
var file_yandex_cloud_dataproc_v1_common_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_yandex_cloud_dataproc_v1_common_proto_init() }
func file_yandex_cloud_dataproc_v1_common_proto_init() {
if File_yandex_cloud_dataproc_v1_common_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_dataproc_v1_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Resources); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_dataproc_v1_common_proto_rawDesc,
NumEnums: 1,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_dataproc_v1_common_proto_goTypes,
DependencyIndexes: file_yandex_cloud_dataproc_v1_common_proto_depIdxs,
EnumInfos: file_yandex_cloud_dataproc_v1_common_proto_enumTypes,
MessageInfos: file_yandex_cloud_dataproc_v1_common_proto_msgTypes,
}.Build()
File_yandex_cloud_dataproc_v1_common_proto = out.File
file_yandex_cloud_dataproc_v1_common_proto_rawDesc = nil
file_yandex_cloud_dataproc_v1_common_proto_goTypes = nil
file_yandex_cloud_dataproc_v1_common_proto_depIdxs = nil
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,27 +1,36 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/dataproc/v1/resource_preset.proto
package dataproc
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// A ResourcePreset resource for describing hardware configuration presets.
type ResourcePreset struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the ResourcePreset resource.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// IDs of availability zones where the resource preset is available.
@ -29,87 +38,152 @@ type ResourcePreset struct {
// Number of CPU cores for a Data Proc host created with the preset.
Cores int64 `protobuf:"varint,3,opt,name=cores,proto3" json:"cores,omitempty"`
// RAM volume for a Data Proc host created with the preset, in bytes.
Memory int64 `protobuf:"varint,4,opt,name=memory,proto3" json:"memory,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Memory int64 `protobuf:"varint,4,opt,name=memory,proto3" json:"memory,omitempty"`
}
func (m *ResourcePreset) Reset() { *m = ResourcePreset{} }
func (m *ResourcePreset) String() string { return proto.CompactTextString(m) }
func (*ResourcePreset) ProtoMessage() {}
func (x *ResourcePreset) Reset() {
*x = ResourcePreset{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_dataproc_v1_resource_preset_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ResourcePreset) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResourcePreset) ProtoMessage() {}
func (x *ResourcePreset) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_dataproc_v1_resource_preset_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ResourcePreset.ProtoReflect.Descriptor instead.
func (*ResourcePreset) Descriptor() ([]byte, []int) {
return fileDescriptor_c06789b855564c6d, []int{0}
return file_yandex_cloud_dataproc_v1_resource_preset_proto_rawDescGZIP(), []int{0}
}
func (m *ResourcePreset) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ResourcePreset.Unmarshal(m, b)
}
func (m *ResourcePreset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ResourcePreset.Marshal(b, m, deterministic)
}
func (m *ResourcePreset) XXX_Merge(src proto.Message) {
xxx_messageInfo_ResourcePreset.Merge(m, src)
}
func (m *ResourcePreset) XXX_Size() int {
return xxx_messageInfo_ResourcePreset.Size(m)
}
func (m *ResourcePreset) XXX_DiscardUnknown() {
xxx_messageInfo_ResourcePreset.DiscardUnknown(m)
}
var xxx_messageInfo_ResourcePreset proto.InternalMessageInfo
func (m *ResourcePreset) GetId() string {
if m != nil {
return m.Id
func (x *ResourcePreset) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (m *ResourcePreset) GetZoneIds() []string {
if m != nil {
return m.ZoneIds
func (x *ResourcePreset) GetZoneIds() []string {
if x != nil {
return x.ZoneIds
}
return nil
}
func (m *ResourcePreset) GetCores() int64 {
if m != nil {
return m.Cores
func (x *ResourcePreset) GetCores() int64 {
if x != nil {
return x.Cores
}
return 0
}
func (m *ResourcePreset) GetMemory() int64 {
if m != nil {
return m.Memory
func (x *ResourcePreset) GetMemory() int64 {
if x != nil {
return x.Memory
}
return 0
}
func init() {
proto.RegisterType((*ResourcePreset)(nil), "yandex.cloud.dataproc.v1.ResourcePreset")
var File_yandex_cloud_dataproc_v1_resource_preset_proto protoreflect.FileDescriptor
var file_yandex_cloud_dataproc_v1_resource_preset_proto_rawDesc = []byte{
0x0a, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64,
0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x18, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64,
0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x2e, 0x76, 0x31, 0x22, 0x69, 0x0a, 0x0e, 0x52, 0x65,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08,
0x7a, 0x6f, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07,
0x7a, 0x6f, 0x6e, 0x65, 0x49, 0x64, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x72, 0x65, 0x73,
0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x12, 0x16, 0x0a,
0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6d,
0x65, 0x6d, 0x6f, 0x72, 0x79, 0x42, 0x65, 0x0a, 0x1c, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72,
0x6f, 0x63, 0x2e, 0x76, 0x31, 0x5a, 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67,
0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63,
0x2f, 0x76, 0x31, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/dataproc/v1/resource_preset.proto", fileDescriptor_c06789b855564c6d)
var (
file_yandex_cloud_dataproc_v1_resource_preset_proto_rawDescOnce sync.Once
file_yandex_cloud_dataproc_v1_resource_preset_proto_rawDescData = file_yandex_cloud_dataproc_v1_resource_preset_proto_rawDesc
)
func file_yandex_cloud_dataproc_v1_resource_preset_proto_rawDescGZIP() []byte {
file_yandex_cloud_dataproc_v1_resource_preset_proto_rawDescOnce.Do(func() {
file_yandex_cloud_dataproc_v1_resource_preset_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_dataproc_v1_resource_preset_proto_rawDescData)
})
return file_yandex_cloud_dataproc_v1_resource_preset_proto_rawDescData
}
var fileDescriptor_c06789b855564c6d = []byte{
// 216 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x8f, 0xb1, 0x4b, 0xc4, 0x30,
0x14, 0xc6, 0x69, 0xab, 0xa7, 0x97, 0xe1, 0x86, 0x20, 0x12, 0xc1, 0xa1, 0x38, 0x75, 0xb9, 0x84,
0xc3, 0xd1, 0x4d, 0x70, 0x70, 0x93, 0x8c, 0x2e, 0x25, 0x4d, 0x1e, 0x35, 0x60, 0xfb, 0x42, 0x92,
0x16, 0xeb, 0x5f, 0x2f, 0x26, 0x2d, 0xe8, 0x70, 0xdb, 0xfb, 0x1e, 0xbf, 0x0f, 0xbe, 0x1f, 0xe1,
0x8b, 0x1a, 0x0d, 0x7c, 0x09, 0xfd, 0x89, 0x93, 0x11, 0x46, 0x45, 0xe5, 0x3c, 0x6a, 0x31, 0x9f,
0x84, 0x87, 0x80, 0x93, 0xd7, 0xd0, 0x3a, 0x0f, 0x01, 0x22, 0x77, 0x1e, 0x23, 0x52, 0x96, 0x79,
0x9e, 0x78, 0xbe, 0xf1, 0x7c, 0x3e, 0x3d, 0x58, 0x72, 0x90, 0x6b, 0xe5, 0x2d, 0x35, 0xe8, 0x81,
0x94, 0xd6, 0xb0, 0xa2, 0x2e, 0x9a, 0xbd, 0x2c, 0xad, 0xa1, 0x77, 0xe4, 0xfa, 0x1b, 0x47, 0x68,
0xad, 0x09, 0xac, 0xac, 0xab, 0x66, 0x2f, 0xaf, 0x7e, 0xf3, 0xab, 0x09, 0xf4, 0x86, 0x5c, 0x6a,
0xf4, 0x10, 0x58, 0x55, 0x17, 0x4d, 0x25, 0x73, 0xa0, 0xb7, 0x64, 0x37, 0xc0, 0x80, 0x7e, 0x61,
0x17, 0xe9, 0xbd, 0xa6, 0x67, 0x20, 0xf7, 0xff, 0x66, 0x28, 0x67, 0xff, 0x4e, 0x79, 0x7f, 0xe9,
0x6d, 0xfc, 0x98, 0x3a, 0xae, 0x71, 0x10, 0x19, 0x3c, 0x66, 0xbf, 0x1e, 0x8f, 0x3d, 0x8c, 0xc9,
0x44, 0x9c, 0x13, 0x7f, 0xda, 0xee, 0x6e, 0x97, 0xc0, 0xc7, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff,
0x70, 0x3e, 0x3e, 0x36, 0x24, 0x01, 0x00, 0x00,
var file_yandex_cloud_dataproc_v1_resource_preset_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_dataproc_v1_resource_preset_proto_goTypes = []interface{}{
(*ResourcePreset)(nil), // 0: yandex.cloud.dataproc.v1.ResourcePreset
}
var file_yandex_cloud_dataproc_v1_resource_preset_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_yandex_cloud_dataproc_v1_resource_preset_proto_init() }
func file_yandex_cloud_dataproc_v1_resource_preset_proto_init() {
if File_yandex_cloud_dataproc_v1_resource_preset_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_dataproc_v1_resource_preset_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ResourcePreset); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_dataproc_v1_resource_preset_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_dataproc_v1_resource_preset_proto_goTypes,
DependencyIndexes: file_yandex_cloud_dataproc_v1_resource_preset_proto_depIdxs,
MessageInfos: file_yandex_cloud_dataproc_v1_resource_preset_proto_msgTypes,
}.Build()
File_yandex_cloud_dataproc_v1_resource_preset_proto = out.File
file_yandex_cloud_dataproc_v1_resource_preset_proto_rawDesc = nil
file_yandex_cloud_dataproc_v1_resource_preset_proto_goTypes = nil
file_yandex_cloud_dataproc_v1_resource_preset_proto_depIdxs = nil
}

View File

@ -1,216 +1,367 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/dataproc/v1/resource_preset_service.proto
package dataproc
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type GetResourcePresetRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. ID of the resource preset to return.
// To get the resource preset ID, use a [ResourcePresetService.List] request.
ResourcePresetId string `protobuf:"bytes,1,opt,name=resource_preset_id,json=resourcePresetId,proto3" json:"resource_preset_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
ResourcePresetId string `protobuf:"bytes,1,opt,name=resource_preset_id,json=resourcePresetId,proto3" json:"resource_preset_id,omitempty"`
}
func (m *GetResourcePresetRequest) Reset() { *m = GetResourcePresetRequest{} }
func (m *GetResourcePresetRequest) String() string { return proto.CompactTextString(m) }
func (*GetResourcePresetRequest) ProtoMessage() {}
func (x *GetResourcePresetRequest) Reset() {
*x = GetResourcePresetRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_dataproc_v1_resource_preset_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetResourcePresetRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetResourcePresetRequest) ProtoMessage() {}
func (x *GetResourcePresetRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_dataproc_v1_resource_preset_service_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetResourcePresetRequest.ProtoReflect.Descriptor instead.
func (*GetResourcePresetRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_8ea97ca2e41b077e, []int{0}
return file_yandex_cloud_dataproc_v1_resource_preset_service_proto_rawDescGZIP(), []int{0}
}
func (m *GetResourcePresetRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetResourcePresetRequest.Unmarshal(m, b)
}
func (m *GetResourcePresetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetResourcePresetRequest.Marshal(b, m, deterministic)
}
func (m *GetResourcePresetRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetResourcePresetRequest.Merge(m, src)
}
func (m *GetResourcePresetRequest) XXX_Size() int {
return xxx_messageInfo_GetResourcePresetRequest.Size(m)
}
func (m *GetResourcePresetRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetResourcePresetRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetResourcePresetRequest proto.InternalMessageInfo
func (m *GetResourcePresetRequest) GetResourcePresetId() string {
if m != nil {
return m.ResourcePresetId
func (x *GetResourcePresetRequest) GetResourcePresetId() string {
if x != nil {
return x.ResourcePresetId
}
return ""
}
type ListResourcePresetsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of results per page to return. If the number of available
// results is larger than [page_size], the service returns a [ListResourcePresetsResponse.next_page_token]
// that can be used to get the next page of results in subsequent list requests.
PageSize int64 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Page token. To get the next page of results, set [page_token] to the [ListResourcePresetsResponse.next_page_token]
// returned by a previous list request.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
}
func (m *ListResourcePresetsRequest) Reset() { *m = ListResourcePresetsRequest{} }
func (m *ListResourcePresetsRequest) String() string { return proto.CompactTextString(m) }
func (*ListResourcePresetsRequest) ProtoMessage() {}
func (x *ListResourcePresetsRequest) Reset() {
*x = ListResourcePresetsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_dataproc_v1_resource_preset_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListResourcePresetsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListResourcePresetsRequest) ProtoMessage() {}
func (x *ListResourcePresetsRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_dataproc_v1_resource_preset_service_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListResourcePresetsRequest.ProtoReflect.Descriptor instead.
func (*ListResourcePresetsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_8ea97ca2e41b077e, []int{1}
return file_yandex_cloud_dataproc_v1_resource_preset_service_proto_rawDescGZIP(), []int{1}
}
func (m *ListResourcePresetsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListResourcePresetsRequest.Unmarshal(m, b)
}
func (m *ListResourcePresetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListResourcePresetsRequest.Marshal(b, m, deterministic)
}
func (m *ListResourcePresetsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListResourcePresetsRequest.Merge(m, src)
}
func (m *ListResourcePresetsRequest) XXX_Size() int {
return xxx_messageInfo_ListResourcePresetsRequest.Size(m)
}
func (m *ListResourcePresetsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListResourcePresetsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListResourcePresetsRequest proto.InternalMessageInfo
func (m *ListResourcePresetsRequest) GetPageSize() int64 {
if m != nil {
return m.PageSize
func (x *ListResourcePresetsRequest) GetPageSize() int64 {
if x != nil {
return x.PageSize
}
return 0
}
func (m *ListResourcePresetsRequest) GetPageToken() string {
if m != nil {
return m.PageToken
func (x *ListResourcePresetsRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
type ListResourcePresetsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// List of ResourcePreset resources.
ResourcePresets []*ResourcePreset `protobuf:"bytes,1,rep,name=resource_presets,json=resourcePresets,proto3" json:"resource_presets,omitempty"`
// This token allows you to get the next page of results for list requests. If the number of results
// is larger than [ListResourcePresetsRequest.page_size], use the [next_page_token] as the value
// for the [ListResourcePresetsRequest.page_token] parameter in the next list request. Each subsequent
// list request will have its own [next_page_token] to continue paging through the results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (m *ListResourcePresetsResponse) Reset() { *m = ListResourcePresetsResponse{} }
func (m *ListResourcePresetsResponse) String() string { return proto.CompactTextString(m) }
func (*ListResourcePresetsResponse) ProtoMessage() {}
func (x *ListResourcePresetsResponse) Reset() {
*x = ListResourcePresetsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_dataproc_v1_resource_preset_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListResourcePresetsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListResourcePresetsResponse) ProtoMessage() {}
func (x *ListResourcePresetsResponse) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_dataproc_v1_resource_preset_service_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListResourcePresetsResponse.ProtoReflect.Descriptor instead.
func (*ListResourcePresetsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_8ea97ca2e41b077e, []int{2}
return file_yandex_cloud_dataproc_v1_resource_preset_service_proto_rawDescGZIP(), []int{2}
}
func (m *ListResourcePresetsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListResourcePresetsResponse.Unmarshal(m, b)
}
func (m *ListResourcePresetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListResourcePresetsResponse.Marshal(b, m, deterministic)
}
func (m *ListResourcePresetsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListResourcePresetsResponse.Merge(m, src)
}
func (m *ListResourcePresetsResponse) XXX_Size() int {
return xxx_messageInfo_ListResourcePresetsResponse.Size(m)
}
func (m *ListResourcePresetsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListResourcePresetsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListResourcePresetsResponse proto.InternalMessageInfo
func (m *ListResourcePresetsResponse) GetResourcePresets() []*ResourcePreset {
if m != nil {
return m.ResourcePresets
func (x *ListResourcePresetsResponse) GetResourcePresets() []*ResourcePreset {
if x != nil {
return x.ResourcePresets
}
return nil
}
func (m *ListResourcePresetsResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
func (x *ListResourcePresetsResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
func init() {
proto.RegisterType((*GetResourcePresetRequest)(nil), "yandex.cloud.dataproc.v1.GetResourcePresetRequest")
proto.RegisterType((*ListResourcePresetsRequest)(nil), "yandex.cloud.dataproc.v1.ListResourcePresetsRequest")
proto.RegisterType((*ListResourcePresetsResponse)(nil), "yandex.cloud.dataproc.v1.ListResourcePresetsResponse")
var File_yandex_cloud_dataproc_v1_resource_preset_service_proto protoreflect.FileDescriptor
var file_yandex_cloud_dataproc_v1_resource_preset_service_proto_rawDesc = []byte{
0x0a, 0x36, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64,
0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x2e,
0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61,
0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x1a, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64,
0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x1a, 0x1d, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76,
0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
0x4e, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72,
0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x12, 0x72,
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe8, 0xc7, 0x31, 0x01, 0x52, 0x10, 0x72,
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x49, 0x64, 0x22,
0x6f, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50,
0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a,
0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
0x42, 0x0a, 0xfa, 0xc7, 0x31, 0x06, 0x3c, 0x3d, 0x31, 0x30, 0x30, 0x30, 0x52, 0x08, 0x70, 0x61,
0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x28, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74,
0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x09, 0x8a, 0xc8, 0x31, 0x05,
0x3c, 0x3d, 0x31, 0x30, 0x30, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
0x22, 0xa5, 0x01, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x53, 0x0a, 0x10, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x65,
0x73, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72,
0x6f, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72,
0x65, 0x73, 0x65, 0x74, 0x52, 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72,
0x65, 0x73, 0x65, 0x74, 0x73, 0x12, 0x31, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61,
0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x09,
0x8a, 0xc8, 0x31, 0x05, 0x3c, 0x3d, 0x31, 0x30, 0x30, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50,
0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xd4, 0x02, 0x0a, 0x15, 0x52, 0x65, 0x73,
0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x12, 0x9e, 0x01, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x32, 0x2e, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72,
0x6f, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28,
0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61,
0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33,
0x12, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x72,
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x7b,
0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x5f,
0x69, 0x64, 0x7d, 0x12, 0x99, 0x01, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x34, 0x2e, 0x79,
0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61,
0x70, 0x72, 0x6f, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x35, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,
0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74,
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02,
0x1e, 0x12, 0x1c, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x2f, 0x76, 0x31, 0x2f,
0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x42,
0x65, 0x0a, 0x1c, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x2e, 0x76, 0x31, 0x5a,
0x45, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x61,
0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/dataproc/v1/resource_preset_service.proto", fileDescriptor_8ea97ca2e41b077e)
var (
file_yandex_cloud_dataproc_v1_resource_preset_service_proto_rawDescOnce sync.Once
file_yandex_cloud_dataproc_v1_resource_preset_service_proto_rawDescData = file_yandex_cloud_dataproc_v1_resource_preset_service_proto_rawDesc
)
func file_yandex_cloud_dataproc_v1_resource_preset_service_proto_rawDescGZIP() []byte {
file_yandex_cloud_dataproc_v1_resource_preset_service_proto_rawDescOnce.Do(func() {
file_yandex_cloud_dataproc_v1_resource_preset_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_dataproc_v1_resource_preset_service_proto_rawDescData)
})
return file_yandex_cloud_dataproc_v1_resource_preset_service_proto_rawDescData
}
var fileDescriptor_8ea97ca2e41b077e = []byte{
// 441 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x31, 0x8b, 0xd4, 0x40,
0x18, 0x25, 0xbb, 0xe7, 0xe1, 0x8e, 0xc8, 0x1d, 0x03, 0x42, 0x88, 0xab, 0x1c, 0x41, 0x30, 0xcd,
0xcd, 0xec, 0xe4, 0x54, 0x10, 0xb5, 0x59, 0x90, 0x43, 0x10, 0x39, 0xb2, 0x56, 0x36, 0x61, 0x2e,
0xf9, 0x88, 0x83, 0xeb, 0x4c, 0xcc, 0x4c, 0xc2, 0x79, 0x62, 0x63, 0x69, 0x6b, 0x65, 0x63, 0xe7,
0x6f, 0x39, 0x7b, 0xfd, 0x09, 0x16, 0xfe, 0x06, 0x2b, 0xc9, 0x64, 0x03, 0x26, 0x6e, 0x96, 0xb5,
0x0b, 0x7c, 0xef, 0xbd, 0xef, 0xbd, 0xbc, 0xf9, 0xd0, 0xbd, 0xb7, 0x5c, 0xa6, 0x70, 0x46, 0x93,
0xa5, 0x2a, 0x53, 0x9a, 0x72, 0xc3, 0xf3, 0x42, 0x25, 0xb4, 0x62, 0xb4, 0x00, 0xad, 0xca, 0x22,
0x81, 0x38, 0x2f, 0x40, 0x83, 0x89, 0x35, 0x14, 0x95, 0x48, 0x80, 0xe4, 0x85, 0x32, 0x0a, 0xbb,
0x0d, 0x8f, 0x58, 0x1e, 0x69, 0x79, 0xa4, 0x62, 0xde, 0x34, 0x53, 0x2a, 0x5b, 0x02, 0xe5, 0xb9,
0xa0, 0x5c, 0x4a, 0x65, 0xb8, 0x11, 0x4a, 0xea, 0x86, 0xe7, 0x91, 0x6d, 0xf7, 0xad, 0xf0, 0x37,
0x3a, 0xf8, 0x8a, 0x2f, 0x45, 0x6a, 0xf5, 0x9a, 0xb1, 0xff, 0x0c, 0xb9, 0xc7, 0x60, 0xa2, 0x15,
0xf5, 0xc4, 0x32, 0x23, 0x78, 0x53, 0x82, 0x36, 0x38, 0x44, 0xb8, 0x9f, 0x41, 0xa4, 0xae, 0x73,
0xe0, 0x04, 0x93, 0xf9, 0xce, 0xaf, 0x0b, 0xe6, 0x44, 0xfb, 0x45, 0x87, 0xf8, 0x24, 0xf5, 0x15,
0xf2, 0x9e, 0x0a, 0xdd, 0x13, 0xd4, 0xad, 0xe2, 0x6d, 0x34, 0xc9, 0x79, 0x06, 0xb1, 0x16, 0xe7,
0x60, 0x85, 0xc6, 0x73, 0xf4, 0xfb, 0x82, 0xed, 0x3e, 0x7c, 0xc4, 0x66, 0xb3, 0x59, 0x74, 0xb9,
0x1e, 0x2e, 0xc4, 0x39, 0xe0, 0x00, 0x21, 0x0b, 0x34, 0xea, 0x15, 0x48, 0x77, 0x64, 0x57, 0x4e,
0x3e, 0x7e, 0x63, 0x97, 0x2c, 0x32, 0xb2, 0x2a, 0xcf, 0xeb, 0x99, 0xff, 0xd5, 0x41, 0xd7, 0xd7,
0x6e, 0xd4, 0xb9, 0x92, 0x1a, 0xf0, 0x02, 0xed, 0xf7, 0x42, 0x68, 0xd7, 0x39, 0x18, 0x07, 0x57,
0xc2, 0x80, 0x0c, 0x55, 0x40, 0x7a, 0xff, 0x63, 0xaf, 0x1b, 0x53, 0x63, 0x86, 0xf6, 0x24, 0x9c,
0x99, 0x78, 0x93, 0xc7, 0xab, 0x35, 0xe2, 0xa4, 0xf5, 0x19, 0xfe, 0x18, 0xa1, 0x6b, 0x5d, 0xd9,
0x45, 0xf3, 0x1e, 0xf0, 0x17, 0x07, 0x8d, 0x8f, 0xc1, 0xe0, 0x70, 0xd8, 0xcf, 0x50, 0x45, 0xde,
0xd6, 0x19, 0xfc, 0xfb, 0x1f, 0xbe, 0xff, 0xfc, 0x34, 0x3a, 0xc2, 0x6c, 0xed, 0x9b, 0x59, 0x05,
0xa3, 0xef, 0xfe, 0x2d, 0xfc, 0x3d, 0xfe, 0xec, 0xa0, 0x9d, 0xfa, 0x17, 0xe3, 0x3b, 0xc3, 0xdb,
0x86, 0x4b, 0xf7, 0xee, 0xfe, 0x27, 0xab, 0x29, 0xce, 0xbf, 0x65, 0x0d, 0xdf, 0xc4, 0xd3, 0x4d,
0x86, 0xe7, 0x80, 0xa6, 0x1d, 0x75, 0x9e, 0x8b, 0xbf, 0x37, 0xbc, 0x78, 0x9c, 0x09, 0xf3, 0xb2,
0x3c, 0x25, 0x89, 0x7a, 0x4d, 0x1b, 0xe0, 0x61, 0x73, 0x09, 0x99, 0x3a, 0xcc, 0x40, 0xda, 0x23,
0xa0, 0x43, 0x27, 0xf5, 0xa0, 0xfd, 0x3e, 0xdd, 0xb5, 0xc0, 0xa3, 0x3f, 0x01, 0x00, 0x00, 0xff,
0xff, 0x40, 0xde, 0xf7, 0x90, 0xee, 0x03, 0x00, 0x00,
var file_yandex_cloud_dataproc_v1_resource_preset_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_dataproc_v1_resource_preset_service_proto_goTypes = []interface{}{
(*GetResourcePresetRequest)(nil), // 0: yandex.cloud.dataproc.v1.GetResourcePresetRequest
(*ListResourcePresetsRequest)(nil), // 1: yandex.cloud.dataproc.v1.ListResourcePresetsRequest
(*ListResourcePresetsResponse)(nil), // 2: yandex.cloud.dataproc.v1.ListResourcePresetsResponse
(*ResourcePreset)(nil), // 3: yandex.cloud.dataproc.v1.ResourcePreset
}
var file_yandex_cloud_dataproc_v1_resource_preset_service_proto_depIdxs = []int32{
3, // 0: yandex.cloud.dataproc.v1.ListResourcePresetsResponse.resource_presets:type_name -> yandex.cloud.dataproc.v1.ResourcePreset
0, // 1: yandex.cloud.dataproc.v1.ResourcePresetService.Get:input_type -> yandex.cloud.dataproc.v1.GetResourcePresetRequest
1, // 2: yandex.cloud.dataproc.v1.ResourcePresetService.List:input_type -> yandex.cloud.dataproc.v1.ListResourcePresetsRequest
3, // 3: yandex.cloud.dataproc.v1.ResourcePresetService.Get:output_type -> yandex.cloud.dataproc.v1.ResourcePreset
2, // 4: yandex.cloud.dataproc.v1.ResourcePresetService.List:output_type -> yandex.cloud.dataproc.v1.ListResourcePresetsResponse
3, // [3:5] is the sub-list for method output_type
1, // [1:3] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_yandex_cloud_dataproc_v1_resource_preset_service_proto_init() }
func file_yandex_cloud_dataproc_v1_resource_preset_service_proto_init() {
if File_yandex_cloud_dataproc_v1_resource_preset_service_proto != nil {
return
}
file_yandex_cloud_dataproc_v1_resource_preset_proto_init()
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_dataproc_v1_resource_preset_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetResourcePresetRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_dataproc_v1_resource_preset_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListResourcePresetsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_dataproc_v1_resource_preset_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListResourcePresetsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_dataproc_v1_resource_preset_service_proto_rawDesc,
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_yandex_cloud_dataproc_v1_resource_preset_service_proto_goTypes,
DependencyIndexes: file_yandex_cloud_dataproc_v1_resource_preset_service_proto_depIdxs,
MessageInfos: file_yandex_cloud_dataproc_v1_resource_preset_service_proto_msgTypes,
}.Build()
File_yandex_cloud_dataproc_v1_resource_preset_service_proto = out.File
file_yandex_cloud_dataproc_v1_resource_preset_service_proto_rawDesc = nil
file_yandex_cloud_dataproc_v1_resource_preset_service_proto_goTypes = nil
file_yandex_cloud_dataproc_v1_resource_preset_service_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
@ -273,10 +424,10 @@ type ResourcePresetServiceServer interface {
type UnimplementedResourcePresetServiceServer struct {
}
func (*UnimplementedResourcePresetServiceServer) Get(ctx context.Context, req *GetResourcePresetRequest) (*ResourcePreset, error) {
func (*UnimplementedResourcePresetServiceServer) Get(context.Context, *GetResourcePresetRequest) (*ResourcePreset, error) {
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
}
func (*UnimplementedResourcePresetServiceServer) List(ctx context.Context, req *ListResourcePresetsRequest) (*ListResourcePresetsResponse, error) {
func (*UnimplementedResourcePresetServiceServer) List(context.Context, *ListResourcePresetsRequest) (*ListResourcePresetsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
}

View File

@ -1,26 +1,32 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/dataproc/v1/subcluster.proto
package dataproc
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
duration "github.com/golang/protobuf/ptypes/duration"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type Role int32
@ -53,30 +59,163 @@ const (
Role_COMPUTENODE Role = 3
)
var Role_name = map[int32]string{
0: "ROLE_UNSPECIFIED",
1: "MASTERNODE",
2: "DATANODE",
3: "COMPUTENODE",
}
// Enum value maps for Role.
var (
Role_name = map[int32]string{
0: "ROLE_UNSPECIFIED",
1: "MASTERNODE",
2: "DATANODE",
3: "COMPUTENODE",
}
Role_value = map[string]int32{
"ROLE_UNSPECIFIED": 0,
"MASTERNODE": 1,
"DATANODE": 2,
"COMPUTENODE": 3,
}
)
var Role_value = map[string]int32{
"ROLE_UNSPECIFIED": 0,
"MASTERNODE": 1,
"DATANODE": 2,
"COMPUTENODE": 3,
func (x Role) Enum() *Role {
p := new(Role)
*p = x
return p
}
func (x Role) String() string {
return proto.EnumName(Role_name, int32(x))
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Role) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_dataproc_v1_subcluster_proto_enumTypes[0].Descriptor()
}
func (Role) Type() protoreflect.EnumType {
return &file_yandex_cloud_dataproc_v1_subcluster_proto_enumTypes[0]
}
func (x Role) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Role.Descriptor instead.
func (Role) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3761a92b6a1bd471, []int{0}
return file_yandex_cloud_dataproc_v1_subcluster_proto_rawDescGZIP(), []int{0}
}
type AutoscalingConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Upper limit for total instance subcluster count.
MaxHostsCount int64 `protobuf:"varint,1,opt,name=max_hosts_count,json=maxHostsCount,proto3" json:"max_hosts_count,omitempty"`
// Preemptible instances are stopped at least once every 24 hours, and can be stopped at any time
// if their resources are needed by Compute.
// For more information, see [Preemptible Virtual Machines](/docs/compute/concepts/preemptible-vm).
Preemptible bool `protobuf:"varint,2,opt,name=preemptible,proto3" json:"preemptible,omitempty"`
// Time in seconds allotted for averaging metrics.
MeasurementDuration *duration.Duration `protobuf:"bytes,3,opt,name=measurement_duration,json=measurementDuration,proto3" json:"measurement_duration,omitempty"`
// The warmup time of the instance in seconds. During this time,
// traffic is sent to the instance, but instance metrics are not collected.
WarmupDuration *duration.Duration `protobuf:"bytes,4,opt,name=warmup_duration,json=warmupDuration,proto3" json:"warmup_duration,omitempty"`
// Minimum amount of time in seconds allotted for monitoring before
// Instance Groups can reduce the number of instances in the group.
// During this time, the group size doesn't decrease, even if the new metric values
// indicate that it should.
StabilizationDuration *duration.Duration `protobuf:"bytes,5,opt,name=stabilization_duration,json=stabilizationDuration,proto3" json:"stabilization_duration,omitempty"`
// Defines an autoscaling rule based on the average CPU utilization of the instance group.
CpuUtilizationTarget float64 `protobuf:"fixed64,6,opt,name=cpu_utilization_target,json=cpuUtilizationTarget,proto3" json:"cpu_utilization_target,omitempty"`
// Timeout to gracefully decommission nodes during downscaling. In seconds. Default value: 120
DecommissionTimeout int64 `protobuf:"varint,7,opt,name=decommission_timeout,json=decommissionTimeout,proto3" json:"decommission_timeout,omitempty"`
}
func (x *AutoscalingConfig) Reset() {
*x = AutoscalingConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_dataproc_v1_subcluster_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AutoscalingConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AutoscalingConfig) ProtoMessage() {}
func (x *AutoscalingConfig) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_dataproc_v1_subcluster_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AutoscalingConfig.ProtoReflect.Descriptor instead.
func (*AutoscalingConfig) Descriptor() ([]byte, []int) {
return file_yandex_cloud_dataproc_v1_subcluster_proto_rawDescGZIP(), []int{0}
}
func (x *AutoscalingConfig) GetMaxHostsCount() int64 {
if x != nil {
return x.MaxHostsCount
}
return 0
}
func (x *AutoscalingConfig) GetPreemptible() bool {
if x != nil {
return x.Preemptible
}
return false
}
func (x *AutoscalingConfig) GetMeasurementDuration() *duration.Duration {
if x != nil {
return x.MeasurementDuration
}
return nil
}
func (x *AutoscalingConfig) GetWarmupDuration() *duration.Duration {
if x != nil {
return x.WarmupDuration
}
return nil
}
func (x *AutoscalingConfig) GetStabilizationDuration() *duration.Duration {
if x != nil {
return x.StabilizationDuration
}
return nil
}
func (x *AutoscalingConfig) GetCpuUtilizationTarget() float64 {
if x != nil {
return x.CpuUtilizationTarget
}
return 0
}
func (x *AutoscalingConfig) GetDecommissionTimeout() int64 {
if x != nil {
return x.DecommissionTimeout
}
return 0
}
// A Data Proc subcluster. For details about the concept, see [documentation](/docs/data-proc/concepts/).
type Subcluster struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the subcluster. Generated at creation time.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// ID of the Data Proc cluster that the subcluster belongs to.
@ -92,95 +231,121 @@ type Subcluster struct {
// ID of the VPC subnet used for hosts in the subcluster.
SubnetId string `protobuf:"bytes,7,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"`
// Number of hosts in the subcluster.
HostsCount int64 `protobuf:"varint,8,opt,name=hosts_count,json=hostsCount,proto3" json:"hosts_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
HostsCount int64 `protobuf:"varint,8,opt,name=hosts_count,json=hostsCount,proto3" json:"hosts_count,omitempty"`
// Configuration for instance group based subclusters
AutoscalingConfig *AutoscalingConfig `protobuf:"bytes,10,opt,name=autoscaling_config,json=autoscalingConfig,proto3" json:"autoscaling_config,omitempty"`
// ID of Compute Instance Group for autoscaling subclusters
InstanceGroupId string `protobuf:"bytes,11,opt,name=instance_group_id,json=instanceGroupId,proto3" json:"instance_group_id,omitempty"`
}
func (m *Subcluster) Reset() { *m = Subcluster{} }
func (m *Subcluster) String() string { return proto.CompactTextString(m) }
func (*Subcluster) ProtoMessage() {}
func (x *Subcluster) Reset() {
*x = Subcluster{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_dataproc_v1_subcluster_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Subcluster) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Subcluster) ProtoMessage() {}
func (x *Subcluster) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_dataproc_v1_subcluster_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Subcluster.ProtoReflect.Descriptor instead.
func (*Subcluster) Descriptor() ([]byte, []int) {
return fileDescriptor_3761a92b6a1bd471, []int{0}
return file_yandex_cloud_dataproc_v1_subcluster_proto_rawDescGZIP(), []int{1}
}
func (m *Subcluster) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Subcluster.Unmarshal(m, b)
}
func (m *Subcluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Subcluster.Marshal(b, m, deterministic)
}
func (m *Subcluster) XXX_Merge(src proto.Message) {
xxx_messageInfo_Subcluster.Merge(m, src)
}
func (m *Subcluster) XXX_Size() int {
return xxx_messageInfo_Subcluster.Size(m)
}
func (m *Subcluster) XXX_DiscardUnknown() {
xxx_messageInfo_Subcluster.DiscardUnknown(m)
}
var xxx_messageInfo_Subcluster proto.InternalMessageInfo
func (m *Subcluster) GetId() string {
if m != nil {
return m.Id
func (x *Subcluster) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (m *Subcluster) GetClusterId() string {
if m != nil {
return m.ClusterId
func (x *Subcluster) GetClusterId() string {
if x != nil {
return x.ClusterId
}
return ""
}
func (m *Subcluster) GetCreatedAt() *timestamp.Timestamp {
if m != nil {
return m.CreatedAt
func (x *Subcluster) GetCreatedAt() *timestamp.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (m *Subcluster) GetName() string {
if m != nil {
return m.Name
func (x *Subcluster) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *Subcluster) GetRole() Role {
if m != nil {
return m.Role
func (x *Subcluster) GetRole() Role {
if x != nil {
return x.Role
}
return Role_ROLE_UNSPECIFIED
}
func (m *Subcluster) GetResources() *Resources {
if m != nil {
return m.Resources
func (x *Subcluster) GetResources() *Resources {
if x != nil {
return x.Resources
}
return nil
}
func (m *Subcluster) GetSubnetId() string {
if m != nil {
return m.SubnetId
func (x *Subcluster) GetSubnetId() string {
if x != nil {
return x.SubnetId
}
return ""
}
func (m *Subcluster) GetHostsCount() int64 {
if m != nil {
return m.HostsCount
func (x *Subcluster) GetHostsCount() int64 {
if x != nil {
return x.HostsCount
}
return 0
}
func (x *Subcluster) GetAutoscalingConfig() *AutoscalingConfig {
if x != nil {
return x.AutoscalingConfig
}
return nil
}
func (x *Subcluster) GetInstanceGroupId() string {
if x != nil {
return x.InstanceGroupId
}
return ""
}
// A Data Proc host. For details about the concept, see [documentation](/docs/data-proc/concepts/).
type Host struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name of the Data Proc host. The host name is assigned by Data Proc at creation time
// and cannot be changed. The name is generated to be unique across all existing Data Proc
// hosts in Yandex.Cloud, as it defines the FQDN of the host.
@ -192,114 +357,283 @@ type Host struct {
// ID of the Compute virtual machine that is used as the Data Proc host.
ComputeInstanceId string `protobuf:"bytes,4,opt,name=compute_instance_id,json=computeInstanceId,proto3" json:"compute_instance_id,omitempty"`
// Role of the host in the cluster.
Role Role `protobuf:"varint,5,opt,name=role,proto3,enum=yandex.cloud.dataproc.v1.Role" json:"role,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Role Role `protobuf:"varint,5,opt,name=role,proto3,enum=yandex.cloud.dataproc.v1.Role" json:"role,omitempty"`
}
func (m *Host) Reset() { *m = Host{} }
func (m *Host) String() string { return proto.CompactTextString(m) }
func (*Host) ProtoMessage() {}
func (x *Host) Reset() {
*x = Host{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_dataproc_v1_subcluster_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Host) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Host) ProtoMessage() {}
func (x *Host) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_dataproc_v1_subcluster_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Host.ProtoReflect.Descriptor instead.
func (*Host) Descriptor() ([]byte, []int) {
return fileDescriptor_3761a92b6a1bd471, []int{1}
return file_yandex_cloud_dataproc_v1_subcluster_proto_rawDescGZIP(), []int{2}
}
func (m *Host) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Host.Unmarshal(m, b)
}
func (m *Host) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Host.Marshal(b, m, deterministic)
}
func (m *Host) XXX_Merge(src proto.Message) {
xxx_messageInfo_Host.Merge(m, src)
}
func (m *Host) XXX_Size() int {
return xxx_messageInfo_Host.Size(m)
}
func (m *Host) XXX_DiscardUnknown() {
xxx_messageInfo_Host.DiscardUnknown(m)
}
var xxx_messageInfo_Host proto.InternalMessageInfo
func (m *Host) GetName() string {
if m != nil {
return m.Name
func (x *Host) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *Host) GetSubclusterId() string {
if m != nil {
return m.SubclusterId
func (x *Host) GetSubclusterId() string {
if x != nil {
return x.SubclusterId
}
return ""
}
func (m *Host) GetHealth() Health {
if m != nil {
return m.Health
func (x *Host) GetHealth() Health {
if x != nil {
return x.Health
}
return Health_HEALTH_UNKNOWN
}
func (m *Host) GetComputeInstanceId() string {
if m != nil {
return m.ComputeInstanceId
func (x *Host) GetComputeInstanceId() string {
if x != nil {
return x.ComputeInstanceId
}
return ""
}
func (m *Host) GetRole() Role {
if m != nil {
return m.Role
func (x *Host) GetRole() Role {
if x != nil {
return x.Role
}
return Role_ROLE_UNSPECIFIED
}
func init() {
proto.RegisterEnum("yandex.cloud.dataproc.v1.Role", Role_name, Role_value)
proto.RegisterType((*Subcluster)(nil), "yandex.cloud.dataproc.v1.Subcluster")
proto.RegisterType((*Host)(nil), "yandex.cloud.dataproc.v1.Host")
var File_yandex_cloud_dataproc_v1_subcluster_proto protoreflect.FileDescriptor
var file_yandex_cloud_dataproc_v1_subcluster_proto_rawDesc = []byte{
0x0a, 0x29, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64,
0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x62, 0x63, 0x6c,
0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72,
0x6f, 0x63, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x25, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63,
0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x2f, 0x76, 0x31,
0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x79,
0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, 0x61, 0x6c, 0x69,
0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75,
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf5, 0x03, 0x0a,
0x11, 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66,
0x69, 0x67, 0x12, 0x31, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x5f,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x42, 0x09, 0xfa, 0xc7, 0x31,
0x05, 0x31, 0x2d, 0x31, 0x30, 0x30, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x48, 0x6f, 0x73, 0x74, 0x73,
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74,
0x69, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, 0x72, 0x65, 0x65,
0x6d, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x5c, 0x0a, 0x14, 0x6d, 0x65, 0x61, 0x73, 0x75,
0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18,
0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x42, 0x0e, 0xe8, 0xc7, 0x31, 0x01, 0xfa, 0xc7, 0x31, 0x06, 0x31, 0x6d, 0x2d, 0x31, 0x30, 0x6d,
0x52, 0x13, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x75, 0x72,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4d, 0x0a, 0x0f, 0x77, 0x61, 0x72, 0x6d, 0x75, 0x70, 0x5f,
0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19,
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0xfa, 0xc7, 0x31, 0x05, 0x3c,
0x3d, 0x31, 0x30, 0x6d, 0x52, 0x0e, 0x77, 0x61, 0x72, 0x6d, 0x75, 0x70, 0x44, 0x75, 0x72, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5c, 0x0a, 0x16, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x7a,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42,
0x0a, 0xfa, 0xc7, 0x31, 0x06, 0x31, 0x6d, 0x2d, 0x33, 0x30, 0x6d, 0x52, 0x15, 0x73, 0x74, 0x61,
0x62, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x16, 0x63, 0x70, 0x75, 0x5f, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01,
0x28, 0x01, 0x42, 0x0a, 0xfa, 0xc7, 0x31, 0x06, 0x31, 0x30, 0x2d, 0x31, 0x30, 0x30, 0x52, 0x14,
0x63, 0x70, 0x75, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61,
0x72, 0x67, 0x65, 0x74, 0x12, 0x3e, 0x0a, 0x14, 0x64, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x07, 0x20, 0x01,
0x28, 0x03, 0x42, 0x0b, 0xfa, 0xc7, 0x31, 0x07, 0x30, 0x2d, 0x38, 0x36, 0x34, 0x30, 0x30, 0x52,
0x13, 0x64, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d,
0x65, 0x6f, 0x75, 0x74, 0x22, 0xd7, 0x03, 0x0a, 0x0a, 0x53, 0x75, 0x62, 0x63, 0x6c, 0x75, 0x73,
0x74, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69,
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72,
0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74,
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1c, 0x0a,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0x8a, 0xc8, 0x31,
0x04, 0x31, 0x2d, 0x36, 0x33, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x04, 0x72,
0x6f, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f,
0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12,
0x41, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x23, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18,
0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x49, 0x64, 0x12,
0x1f, 0x0a, 0x0b, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08,
0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74,
0x12, 0x5a, 0x0a, 0x12, 0x61, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x69, 0x6e, 0x67, 0x5f,
0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x79,
0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61,
0x70, 0x72, 0x6f, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c,
0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x11, 0x61, 0x75, 0x74, 0x6f, 0x73,
0x63, 0x61, 0x6c, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2a, 0x0a, 0x11,
0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69,
0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, 0x22, 0xdd,
0x01, 0x0a, 0x04, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73,
0x75, 0x62, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64,
0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e,
0x32, 0x20, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c,
0x74, 0x68, 0x52, 0x06, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x2e, 0x0a, 0x13, 0x63, 0x6f,
0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x69,
0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65,
0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x04, 0x72, 0x6f,
0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63,
0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x2a, 0x4b,
0x0a, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x55,
0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a,
0x4d, 0x41, 0x53, 0x54, 0x45, 0x52, 0x4e, 0x4f, 0x44, 0x45, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08,
0x44, 0x41, 0x54, 0x41, 0x4e, 0x4f, 0x44, 0x45, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x4f,
0x4d, 0x50, 0x55, 0x54, 0x45, 0x4e, 0x4f, 0x44, 0x45, 0x10, 0x03, 0x42, 0x65, 0x0a, 0x1c, 0x79,
0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x2e, 0x76, 0x31, 0x5a, 0x45, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63,
0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64, 0x61,
0x74, 0x61, 0x70, 0x72, 0x6f, 0x63, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72,
0x6f, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/dataproc/v1/subcluster.proto", fileDescriptor_3761a92b6a1bd471)
var (
file_yandex_cloud_dataproc_v1_subcluster_proto_rawDescOnce sync.Once
file_yandex_cloud_dataproc_v1_subcluster_proto_rawDescData = file_yandex_cloud_dataproc_v1_subcluster_proto_rawDesc
)
func file_yandex_cloud_dataproc_v1_subcluster_proto_rawDescGZIP() []byte {
file_yandex_cloud_dataproc_v1_subcluster_proto_rawDescOnce.Do(func() {
file_yandex_cloud_dataproc_v1_subcluster_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_dataproc_v1_subcluster_proto_rawDescData)
})
return file_yandex_cloud_dataproc_v1_subcluster_proto_rawDescData
}
var fileDescriptor_3761a92b6a1bd471 = []byte{
// 508 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xd1, 0x8e, 0xd2, 0x4e,
0x14, 0xc6, 0xff, 0x85, 0xfe, 0x11, 0x0e, 0x2b, 0xe2, 0xe8, 0x45, 0x83, 0xbb, 0x2e, 0xd9, 0x8d,
0x09, 0x9a, 0x30, 0x0d, 0x6c, 0x62, 0x34, 0x5e, 0xb1, 0x50, 0xb3, 0x8d, 0xee, 0xb2, 0x19, 0xd8,
0x1b, 0x6f, 0xc8, 0x30, 0x33, 0x42, 0x93, 0xb6, 0xd3, 0x74, 0xa6, 0x44, 0x5f, 0xc1, 0x27, 0xd3,
0x87, 0xf0, 0x5d, 0x4c, 0xa7, 0xad, 0xb8, 0x17, 0x78, 0xe1, 0x5d, 0xe7, 0x3b, 0xbf, 0xd3, 0xf3,
0x9d, 0xaf, 0x53, 0x78, 0xf9, 0x95, 0xc6, 0x5c, 0x7c, 0x71, 0x59, 0x28, 0x33, 0xee, 0x72, 0xaa,
0x69, 0x92, 0x4a, 0xe6, 0xee, 0x46, 0xae, 0xca, 0xd6, 0x2c, 0xcc, 0x94, 0x16, 0x29, 0x4e, 0x52,
0xa9, 0x25, 0x72, 0x0a, 0x14, 0x1b, 0x14, 0x57, 0x28, 0xde, 0x8d, 0x7a, 0xa7, 0x1b, 0x29, 0x37,
0xa1, 0x70, 0x0d, 0xb7, 0xce, 0x3e, 0xbb, 0x3a, 0x88, 0x84, 0xd2, 0x34, 0x4a, 0x8a, 0xd6, 0xde,
0x8b, 0x83, 0x53, 0x98, 0x8c, 0x22, 0x19, 0x97, 0xd8, 0xc9, 0x3d, 0x6c, 0x47, 0xc3, 0x80, 0x53,
0x1d, 0x54, 0xe5, 0xb3, 0x1f, 0x35, 0x80, 0xc5, 0x6f, 0x57, 0xa8, 0x03, 0xb5, 0x80, 0x3b, 0x56,
0xdf, 0x1a, 0xb4, 0x48, 0x2d, 0xe0, 0xe8, 0x04, 0xa0, 0x2c, 0xad, 0x02, 0xee, 0xd4, 0x8c, 0xde,
0x2a, 0x15, 0x9f, 0xa3, 0xb7, 0x00, 0x2c, 0x15, 0x54, 0x0b, 0xbe, 0xa2, 0xda, 0xa9, 0xf7, 0xad,
0x41, 0x7b, 0xdc, 0xc3, 0x85, 0x73, 0x5c, 0x39, 0xc7, 0xcb, 0xca, 0x39, 0x69, 0x95, 0xf4, 0x44,
0xa3, 0x63, 0xb0, 0x63, 0x1a, 0x09, 0xc7, 0xce, 0xdf, 0x79, 0xd9, 0xfc, 0xf6, 0x7d, 0x64, 0x8f,
0x86, 0xaf, 0x2f, 0x88, 0x51, 0xd1, 0x18, 0xec, 0x54, 0x86, 0xc2, 0xf9, 0xbf, 0x6f, 0x0d, 0x3a,
0xe3, 0xe7, 0xf8, 0x50, 0x4c, 0x98, 0xc8, 0x50, 0x10, 0xc3, 0xa2, 0x09, 0xb4, 0x52, 0xa1, 0x64,
0x96, 0x32, 0xa1, 0x9c, 0x86, 0xf1, 0x72, 0xfe, 0x97, 0xc6, 0x0a, 0x25, 0xfb, 0x2e, 0xf4, 0x0c,
0x5a, 0x2a, 0x5b, 0xc7, 0x42, 0xe7, 0xdb, 0x3e, 0x30, 0xdb, 0x36, 0x0b, 0xc1, 0xe7, 0xe8, 0x14,
0xda, 0x5b, 0xa9, 0xb4, 0x5a, 0x31, 0x99, 0xc5, 0xda, 0x69, 0xf6, 0xad, 0x41, 0x9d, 0x80, 0x91,
0xa6, 0xb9, 0x72, 0xf6, 0xd3, 0x02, 0xfb, 0x4a, 0x2a, 0x8d, 0x50, 0xb9, 0x5b, 0x91, 0x63, 0xb1,
0xd1, 0x39, 0x3c, 0xdc, 0x7f, 0xfd, 0x7d, 0x98, 0x47, 0x7b, 0xd1, 0xe7, 0xe8, 0x0d, 0x34, 0xb6,
0x82, 0x86, 0x7a, 0x6b, 0xb2, 0xec, 0x8c, 0xfb, 0x87, 0xfd, 0x5f, 0x19, 0x8e, 0x94, 0x3c, 0xc2,
0xf0, 0x84, 0xc9, 0x28, 0xc9, 0xb4, 0x58, 0x05, 0xb1, 0xd2, 0x34, 0x66, 0x22, 0x1f, 0x62, 0xd2,
0x25, 0x8f, 0xcb, 0x92, 0x5f, 0x56, 0x7c, 0xfe, 0x2f, 0x01, 0xbf, 0xfa, 0x00, 0x76, 0x7e, 0x42,
0x4f, 0xa1, 0x4b, 0xe6, 0x1f, 0xbd, 0xd5, 0xdd, 0xcd, 0xe2, 0xd6, 0x9b, 0xfa, 0xef, 0x7d, 0x6f,
0xd6, 0xfd, 0x0f, 0x75, 0x00, 0xae, 0x27, 0x8b, 0xa5, 0x47, 0x6e, 0xe6, 0x33, 0xaf, 0x6b, 0xa1,
0x23, 0x68, 0xce, 0x26, 0xcb, 0x89, 0x39, 0xd5, 0xd0, 0x23, 0x68, 0x4f, 0xe7, 0xd7, 0xb7, 0x77,
0x4b, 0xcf, 0x08, 0xf5, 0x4b, 0x01, 0xc7, 0xf7, 0x66, 0xd2, 0x24, 0xf8, 0x73, 0xee, 0x27, 0x6f,
0x13, 0xe8, 0x6d, 0xb6, 0xc6, 0x4c, 0x46, 0x6e, 0x01, 0x0e, 0x8b, 0x2b, 0xbc, 0x91, 0xc3, 0x8d,
0x88, 0xcd, 0xe5, 0x72, 0x0f, 0xfd, 0x02, 0xef, 0xaa, 0xe7, 0x75, 0xc3, 0x80, 0x17, 0xbf, 0x02,
0x00, 0x00, 0xff, 0xff, 0x71, 0xfc, 0x2b, 0xc1, 0x94, 0x03, 0x00, 0x00,
var file_yandex_cloud_dataproc_v1_subcluster_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_dataproc_v1_subcluster_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_dataproc_v1_subcluster_proto_goTypes = []interface{}{
(Role)(0), // 0: yandex.cloud.dataproc.v1.Role
(*AutoscalingConfig)(nil), // 1: yandex.cloud.dataproc.v1.AutoscalingConfig
(*Subcluster)(nil), // 2: yandex.cloud.dataproc.v1.Subcluster
(*Host)(nil), // 3: yandex.cloud.dataproc.v1.Host
(*duration.Duration)(nil), // 4: google.protobuf.Duration
(*timestamp.Timestamp)(nil), // 5: google.protobuf.Timestamp
(*Resources)(nil), // 6: yandex.cloud.dataproc.v1.Resources
(Health)(0), // 7: yandex.cloud.dataproc.v1.Health
}
var file_yandex_cloud_dataproc_v1_subcluster_proto_depIdxs = []int32{
4, // 0: yandex.cloud.dataproc.v1.AutoscalingConfig.measurement_duration:type_name -> google.protobuf.Duration
4, // 1: yandex.cloud.dataproc.v1.AutoscalingConfig.warmup_duration:type_name -> google.protobuf.Duration
4, // 2: yandex.cloud.dataproc.v1.AutoscalingConfig.stabilization_duration:type_name -> google.protobuf.Duration
5, // 3: yandex.cloud.dataproc.v1.Subcluster.created_at:type_name -> google.protobuf.Timestamp
0, // 4: yandex.cloud.dataproc.v1.Subcluster.role:type_name -> yandex.cloud.dataproc.v1.Role
6, // 5: yandex.cloud.dataproc.v1.Subcluster.resources:type_name -> yandex.cloud.dataproc.v1.Resources
1, // 6: yandex.cloud.dataproc.v1.Subcluster.autoscaling_config:type_name -> yandex.cloud.dataproc.v1.AutoscalingConfig
7, // 7: yandex.cloud.dataproc.v1.Host.health:type_name -> yandex.cloud.dataproc.v1.Health
0, // 8: yandex.cloud.dataproc.v1.Host.role:type_name -> yandex.cloud.dataproc.v1.Role
9, // [9:9] is the sub-list for method output_type
9, // [9:9] is the sub-list for method input_type
9, // [9:9] is the sub-list for extension type_name
9, // [9:9] is the sub-list for extension extendee
0, // [0:9] is the sub-list for field type_name
}
func init() { file_yandex_cloud_dataproc_v1_subcluster_proto_init() }
func file_yandex_cloud_dataproc_v1_subcluster_proto_init() {
if File_yandex_cloud_dataproc_v1_subcluster_proto != nil {
return
}
file_yandex_cloud_dataproc_v1_common_proto_init()
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_dataproc_v1_subcluster_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AutoscalingConfig); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_dataproc_v1_subcluster_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Subcluster); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_dataproc_v1_subcluster_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Host); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_dataproc_v1_subcluster_proto_rawDesc,
NumEnums: 1,
NumMessages: 3,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_dataproc_v1_subcluster_proto_goTypes,
DependencyIndexes: file_yandex_cloud_dataproc_v1_subcluster_proto_depIdxs,
EnumInfos: file_yandex_cloud_dataproc_v1_subcluster_proto_enumTypes,
MessageInfos: file_yandex_cloud_dataproc_v1_subcluster_proto_msgTypes,
}.Build()
File_yandex_cloud_dataproc_v1_subcluster_proto = out.File
file_yandex_cloud_dataproc_v1_subcluster_proto_rawDesc = nil
file_yandex_cloud_dataproc_v1_subcluster_proto_goTypes = nil
file_yandex_cloud_dataproc_v1_subcluster_proto_depIdxs = nil
}

View File

@ -3,9 +3,38 @@
package dataproc
import (
duration "github.com/golang/protobuf/ptypes/duration"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
)
func (m *AutoscalingConfig) SetMaxHostsCount(v int64) {
m.MaxHostsCount = v
}
func (m *AutoscalingConfig) SetPreemptible(v bool) {
m.Preemptible = v
}
func (m *AutoscalingConfig) SetMeasurementDuration(v *duration.Duration) {
m.MeasurementDuration = v
}
func (m *AutoscalingConfig) SetWarmupDuration(v *duration.Duration) {
m.WarmupDuration = v
}
func (m *AutoscalingConfig) SetStabilizationDuration(v *duration.Duration) {
m.StabilizationDuration = v
}
func (m *AutoscalingConfig) SetCpuUtilizationTarget(v float64) {
m.CpuUtilizationTarget = v
}
func (m *AutoscalingConfig) SetDecommissionTimeout(v int64) {
m.DecommissionTimeout = v
}
func (m *Subcluster) SetId(v string) {
m.Id = v
}
@ -38,6 +67,14 @@ func (m *Subcluster) SetHostsCount(v int64) {
m.HostsCount = v
}
func (m *Subcluster) SetAutoscalingConfig(v *AutoscalingConfig) {
m.AutoscalingConfig = v
}
func (m *Subcluster) SetInstanceGroupId(v string) {
m.InstanceGroupId = v
}
func (m *Host) SetName(v string) {
m.Name = v
}

View File

@ -62,6 +62,10 @@ func (m *CreateSubclusterRequest) SetHostsCount(v int64) {
m.HostsCount = v
}
func (m *CreateSubclusterRequest) SetAutoscalingConfig(v *AutoscalingConfig) {
m.AutoscalingConfig = v
}
func (m *CreateSubclusterMetadata) SetClusterId(v string) {
m.ClusterId = v
}
@ -98,6 +102,10 @@ func (m *UpdateSubclusterRequest) SetDecommissionTimeout(v int64) {
m.DecommissionTimeout = v
}
func (m *UpdateSubclusterRequest) SetAutoscalingConfig(v *AutoscalingConfig) {
m.AutoscalingConfig = v
}
func (m *UpdateSubclusterMetadata) SetClusterId(v string) {
m.ClusterId = v
}

View File

@ -1,91 +1,164 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/endpoint/api_endpoint.proto
package endpoint
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type ApiEndpoint struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}
func (m *ApiEndpoint) Reset() { *m = ApiEndpoint{} }
func (m *ApiEndpoint) String() string { return proto.CompactTextString(m) }
func (*ApiEndpoint) ProtoMessage() {}
func (x *ApiEndpoint) Reset() {
*x = ApiEndpoint{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_endpoint_api_endpoint_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ApiEndpoint) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ApiEndpoint) ProtoMessage() {}
func (x *ApiEndpoint) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_endpoint_api_endpoint_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ApiEndpoint.ProtoReflect.Descriptor instead.
func (*ApiEndpoint) Descriptor() ([]byte, []int) {
return fileDescriptor_f047dfc88bc45bd0, []int{0}
return file_yandex_cloud_endpoint_api_endpoint_proto_rawDescGZIP(), []int{0}
}
func (m *ApiEndpoint) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApiEndpoint.Unmarshal(m, b)
}
func (m *ApiEndpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApiEndpoint.Marshal(b, m, deterministic)
}
func (m *ApiEndpoint) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApiEndpoint.Merge(m, src)
}
func (m *ApiEndpoint) XXX_Size() int {
return xxx_messageInfo_ApiEndpoint.Size(m)
}
func (m *ApiEndpoint) XXX_DiscardUnknown() {
xxx_messageInfo_ApiEndpoint.DiscardUnknown(m)
}
var xxx_messageInfo_ApiEndpoint proto.InternalMessageInfo
func (m *ApiEndpoint) GetId() string {
if m != nil {
return m.Id
func (x *ApiEndpoint) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (m *ApiEndpoint) GetAddress() string {
if m != nil {
return m.Address
func (x *ApiEndpoint) GetAddress() string {
if x != nil {
return x.Address
}
return ""
}
func init() {
proto.RegisterType((*ApiEndpoint)(nil), "yandex.cloud.endpoint.ApiEndpoint")
var File_yandex_cloud_endpoint_api_endpoint_proto protoreflect.FileDescriptor
var file_yandex_cloud_endpoint_api_endpoint_proto_rawDesc = []byte{
0x0a, 0x28, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x65,
0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x5f, 0x65, 0x6e, 0x64, 0x70,
0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e,
0x74, 0x22, 0x37, 0x0a, 0x0b, 0x41, 0x70, 0x69, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x5f, 0x0a, 0x19, 0x79, 0x61,
0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65,
0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69,
0x6e, 0x74, 0x3b, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/endpoint/api_endpoint.proto", fileDescriptor_f047dfc88bc45bd0)
var (
file_yandex_cloud_endpoint_api_endpoint_proto_rawDescOnce sync.Once
file_yandex_cloud_endpoint_api_endpoint_proto_rawDescData = file_yandex_cloud_endpoint_api_endpoint_proto_rawDesc
)
func file_yandex_cloud_endpoint_api_endpoint_proto_rawDescGZIP() []byte {
file_yandex_cloud_endpoint_api_endpoint_proto_rawDescOnce.Do(func() {
file_yandex_cloud_endpoint_api_endpoint_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_endpoint_api_endpoint_proto_rawDescData)
})
return file_yandex_cloud_endpoint_api_endpoint_proto_rawDescData
}
var fileDescriptor_f047dfc88bc45bd0 = []byte{
// 161 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xa8, 0x4c, 0xcc, 0x4b,
0x49, 0xad, 0xd0, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0x4f, 0xcd, 0x4b, 0x29, 0xc8, 0xcf, 0xcc,
0x2b, 0xd1, 0x4f, 0x2c, 0xc8, 0x8c, 0x87, 0x71, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x44,
0x21, 0x2a, 0xf5, 0xc0, 0x2a, 0xf5, 0x60, 0x92, 0x4a, 0xe6, 0x5c, 0xdc, 0x8e, 0x05, 0x99, 0xae,
0x50, 0xae, 0x10, 0x1f, 0x17, 0x53, 0x66, 0x8a, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x67, 0x10, 0x53,
0x66, 0x8a, 0x90, 0x04, 0x17, 0x7b, 0x62, 0x4a, 0x4a, 0x51, 0x6a, 0x71, 0xb1, 0x04, 0x13, 0x58,
0x10, 0xc6, 0x75, 0x8a, 0xe7, 0x92, 0x44, 0x31, 0x31, 0xb1, 0x20, 0x13, 0x6e, 0x6a, 0x94, 0x53,
0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0x44, 0x95, 0x2e, 0xc4, 0x85,
0xe9, 0xf9, 0xba, 0xe9, 0xa9, 0x79, 0x60, 0x17, 0xe9, 0x63, 0x75, 0xba, 0x35, 0x8c, 0x91, 0xc4,
0x06, 0x56, 0x65, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x14, 0x4f, 0xd4, 0x1f, 0xe3, 0x00, 0x00,
0x00,
var file_yandex_cloud_endpoint_api_endpoint_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_endpoint_api_endpoint_proto_goTypes = []interface{}{
(*ApiEndpoint)(nil), // 0: yandex.cloud.endpoint.ApiEndpoint
}
var file_yandex_cloud_endpoint_api_endpoint_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_yandex_cloud_endpoint_api_endpoint_proto_init() }
func file_yandex_cloud_endpoint_api_endpoint_proto_init() {
if File_yandex_cloud_endpoint_api_endpoint_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_endpoint_api_endpoint_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ApiEndpoint); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_endpoint_api_endpoint_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_endpoint_api_endpoint_proto_goTypes,
DependencyIndexes: file_yandex_cloud_endpoint_api_endpoint_proto_depIdxs,
MessageInfos: file_yandex_cloud_endpoint_api_endpoint_proto_msgTypes,
}.Build()
File_yandex_cloud_endpoint_api_endpoint_proto = out.File
file_yandex_cloud_endpoint_api_endpoint_proto_rawDesc = nil
file_yandex_cloud_endpoint_api_endpoint_proto_goTypes = nil
file_yandex_cloud_endpoint_api_endpoint_proto_depIdxs = nil
}

View File

@ -1,199 +1,342 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/endpoint/api_endpoint_service.proto
package endpoint
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type GetApiEndpointRequest struct {
ApiEndpointId string `protobuf:"bytes,1,opt,name=api_endpoint_id,json=apiEndpointId,proto3" json:"api_endpoint_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ApiEndpointId string `protobuf:"bytes,1,opt,name=api_endpoint_id,json=apiEndpointId,proto3" json:"api_endpoint_id,omitempty"`
}
func (m *GetApiEndpointRequest) Reset() { *m = GetApiEndpointRequest{} }
func (m *GetApiEndpointRequest) String() string { return proto.CompactTextString(m) }
func (*GetApiEndpointRequest) ProtoMessage() {}
func (x *GetApiEndpointRequest) Reset() {
*x = GetApiEndpointRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_endpoint_api_endpoint_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetApiEndpointRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetApiEndpointRequest) ProtoMessage() {}
func (x *GetApiEndpointRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_endpoint_api_endpoint_service_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetApiEndpointRequest.ProtoReflect.Descriptor instead.
func (*GetApiEndpointRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_59b4331650989b1f, []int{0}
return file_yandex_cloud_endpoint_api_endpoint_service_proto_rawDescGZIP(), []int{0}
}
func (m *GetApiEndpointRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetApiEndpointRequest.Unmarshal(m, b)
}
func (m *GetApiEndpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetApiEndpointRequest.Marshal(b, m, deterministic)
}
func (m *GetApiEndpointRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetApiEndpointRequest.Merge(m, src)
}
func (m *GetApiEndpointRequest) XXX_Size() int {
return xxx_messageInfo_GetApiEndpointRequest.Size(m)
}
func (m *GetApiEndpointRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetApiEndpointRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetApiEndpointRequest proto.InternalMessageInfo
func (m *GetApiEndpointRequest) GetApiEndpointId() string {
if m != nil {
return m.ApiEndpointId
func (x *GetApiEndpointRequest) GetApiEndpointId() string {
if x != nil {
return x.ApiEndpointId
}
return ""
}
type ListApiEndpointsRequest struct {
PageSize int64 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
PageSize int64 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
}
func (m *ListApiEndpointsRequest) Reset() { *m = ListApiEndpointsRequest{} }
func (m *ListApiEndpointsRequest) String() string { return proto.CompactTextString(m) }
func (*ListApiEndpointsRequest) ProtoMessage() {}
func (x *ListApiEndpointsRequest) Reset() {
*x = ListApiEndpointsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_endpoint_api_endpoint_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListApiEndpointsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListApiEndpointsRequest) ProtoMessage() {}
func (x *ListApiEndpointsRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_endpoint_api_endpoint_service_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListApiEndpointsRequest.ProtoReflect.Descriptor instead.
func (*ListApiEndpointsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_59b4331650989b1f, []int{1}
return file_yandex_cloud_endpoint_api_endpoint_service_proto_rawDescGZIP(), []int{1}
}
func (m *ListApiEndpointsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListApiEndpointsRequest.Unmarshal(m, b)
}
func (m *ListApiEndpointsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListApiEndpointsRequest.Marshal(b, m, deterministic)
}
func (m *ListApiEndpointsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListApiEndpointsRequest.Merge(m, src)
}
func (m *ListApiEndpointsRequest) XXX_Size() int {
return xxx_messageInfo_ListApiEndpointsRequest.Size(m)
}
func (m *ListApiEndpointsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListApiEndpointsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListApiEndpointsRequest proto.InternalMessageInfo
func (m *ListApiEndpointsRequest) GetPageSize() int64 {
if m != nil {
return m.PageSize
func (x *ListApiEndpointsRequest) GetPageSize() int64 {
if x != nil {
return x.PageSize
}
return 0
}
func (m *ListApiEndpointsRequest) GetPageToken() string {
if m != nil {
return m.PageToken
func (x *ListApiEndpointsRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
type ListApiEndpointsResponse struct {
Endpoints []*ApiEndpoint `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Endpoints []*ApiEndpoint `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (m *ListApiEndpointsResponse) Reset() { *m = ListApiEndpointsResponse{} }
func (m *ListApiEndpointsResponse) String() string { return proto.CompactTextString(m) }
func (*ListApiEndpointsResponse) ProtoMessage() {}
func (x *ListApiEndpointsResponse) Reset() {
*x = ListApiEndpointsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_endpoint_api_endpoint_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListApiEndpointsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListApiEndpointsResponse) ProtoMessage() {}
func (x *ListApiEndpointsResponse) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_endpoint_api_endpoint_service_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListApiEndpointsResponse.ProtoReflect.Descriptor instead.
func (*ListApiEndpointsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_59b4331650989b1f, []int{2}
return file_yandex_cloud_endpoint_api_endpoint_service_proto_rawDescGZIP(), []int{2}
}
func (m *ListApiEndpointsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListApiEndpointsResponse.Unmarshal(m, b)
}
func (m *ListApiEndpointsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListApiEndpointsResponse.Marshal(b, m, deterministic)
}
func (m *ListApiEndpointsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListApiEndpointsResponse.Merge(m, src)
}
func (m *ListApiEndpointsResponse) XXX_Size() int {
return xxx_messageInfo_ListApiEndpointsResponse.Size(m)
}
func (m *ListApiEndpointsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListApiEndpointsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListApiEndpointsResponse proto.InternalMessageInfo
func (m *ListApiEndpointsResponse) GetEndpoints() []*ApiEndpoint {
if m != nil {
return m.Endpoints
func (x *ListApiEndpointsResponse) GetEndpoints() []*ApiEndpoint {
if x != nil {
return x.Endpoints
}
return nil
}
func (m *ListApiEndpointsResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
func (x *ListApiEndpointsResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
func init() {
proto.RegisterType((*GetApiEndpointRequest)(nil), "yandex.cloud.endpoint.GetApiEndpointRequest")
proto.RegisterType((*ListApiEndpointsRequest)(nil), "yandex.cloud.endpoint.ListApiEndpointsRequest")
proto.RegisterType((*ListApiEndpointsResponse)(nil), "yandex.cloud.endpoint.ListApiEndpointsResponse")
var File_yandex_cloud_endpoint_api_endpoint_service_proto protoreflect.FileDescriptor
var file_yandex_cloud_endpoint_api_endpoint_service_proto_rawDesc = []byte{
0x0a, 0x30, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x65,
0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x5f, 0x65, 0x6e, 0x64, 0x70,
0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x12, 0x15, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2e, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2f, 0x61,
0x70, 0x69, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x22, 0x3f, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x41, 0x70, 0x69, 0x45, 0x6e, 0x64, 0x70, 0x6f,
0x69, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x70,
0x69, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x70, 0x69, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,
0x49, 0x64, 0x22, 0x55, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x69, 0x45, 0x6e, 0x64,
0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a,
0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61,
0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x84, 0x01, 0x0a, 0x18, 0x4c, 0x69,
0x73, 0x74, 0x41, 0x70, 0x69, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69,
0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e,
0x74, 0x2e, 0x41, 0x70, 0x69, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x09, 0x65,
0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74,
0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
0x32, 0x90, 0x02, 0x0a, 0x12, 0x41, 0x70, 0x69, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7d, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x2c,
0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x65, 0x6e,
0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x70, 0x69, 0x45, 0x6e, 0x64,
0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x79,
0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x65, 0x6e, 0x64, 0x70,
0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x41, 0x70, 0x69, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,
0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f,
0x69, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x70, 0x69, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69,
0x6e, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x7b, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2e,
0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x65, 0x6e,
0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x69, 0x45, 0x6e,
0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f,
0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x65, 0x6e,
0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x69, 0x45, 0x6e,
0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
0x12, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0c, 0x12, 0x0a, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69,
0x6e, 0x74, 0x73, 0x42, 0x5f, 0x0a, 0x19, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,
0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f,
0x75, 0x64, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x3b, 0x65, 0x6e, 0x64, 0x70,
0x6f, 0x69, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/endpoint/api_endpoint_service.proto", fileDescriptor_59b4331650989b1f)
var (
file_yandex_cloud_endpoint_api_endpoint_service_proto_rawDescOnce sync.Once
file_yandex_cloud_endpoint_api_endpoint_service_proto_rawDescData = file_yandex_cloud_endpoint_api_endpoint_service_proto_rawDesc
)
func file_yandex_cloud_endpoint_api_endpoint_service_proto_rawDescGZIP() []byte {
file_yandex_cloud_endpoint_api_endpoint_service_proto_rawDescOnce.Do(func() {
file_yandex_cloud_endpoint_api_endpoint_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_endpoint_api_endpoint_service_proto_rawDescData)
})
return file_yandex_cloud_endpoint_api_endpoint_service_proto_rawDescData
}
var fileDescriptor_59b4331650989b1f = []byte{
// 377 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xcf, 0x4a, 0xf3, 0x40,
0x14, 0xc5, 0x49, 0xfb, 0xf1, 0x61, 0xaf, 0x16, 0x61, 0xa0, 0x18, 0x63, 0x95, 0x12, 0x44, 0xba,
0xb0, 0x19, 0xa9, 0x4b, 0x17, 0x6a, 0x41, 0x8a, 0xe0, 0x42, 0x5a, 0xdd, 0xb8, 0x09, 0x69, 0x73,
0x89, 0x83, 0x75, 0x26, 0x76, 0xa6, 0x52, 0x5b, 0xba, 0x11, 0x1f, 0x40, 0xf0, 0xd1, 0x7c, 0x05,
0x1f, 0x44, 0x32, 0x63, 0xfa, 0xc7, 0xb6, 0xd8, 0x5d, 0x72, 0xe7, 0x9c, 0xdf, 0x9c, 0xb9, 0xf7,
0xc2, 0xd1, 0x4b, 0xc0, 0x43, 0xec, 0xd3, 0x76, 0x47, 0xf4, 0x42, 0x8a, 0x3c, 0x8c, 0x05, 0xe3,
0x8a, 0x06, 0x31, 0xf3, 0xd3, 0x1f, 0x5f, 0x62, 0xf7, 0x99, 0xb5, 0xd1, 0x8b, 0xbb, 0x42, 0x09,
0x52, 0x30, 0x0e, 0x4f, 0x3b, 0xbc, 0x54, 0xe4, 0x14, 0x23, 0x21, 0xa2, 0x0e, 0x26, 0x4e, 0x1a,
0x70, 0x2e, 0x54, 0xa0, 0x98, 0xe0, 0xd2, 0x98, 0x9c, 0xf2, 0xdf, 0xd7, 0x18, 0xa5, 0x7b, 0x0a,
0x85, 0x3a, 0xaa, 0xf3, 0x98, 0x5d, 0xfc, 0xd4, 0x1b, 0xf8, 0xd4, 0x43, 0xa9, 0xc8, 0x01, 0x6c,
0xce, 0xa4, 0x62, 0xa1, 0x6d, 0x95, 0xac, 0x72, 0xae, 0x91, 0x0f, 0x26, 0xe2, 0xcb, 0xd0, 0xbd,
0x85, 0xad, 0x2b, 0x26, 0xa7, 0x09, 0x32, 0x45, 0xec, 0x40, 0x2e, 0x0e, 0x22, 0xf4, 0x25, 0x1b,
0xa0, 0x36, 0x67, 0x1b, 0x6b, 0x49, 0xa1, 0xc9, 0x06, 0x48, 0x76, 0x01, 0xf4, 0xa1, 0x12, 0x0f,
0xc8, 0xed, 0x8c, 0x46, 0x6b, 0xf9, 0x4d, 0x52, 0x70, 0xdf, 0x2c, 0xb0, 0xe7, 0xb9, 0x32, 0x16,
0x5c, 0x22, 0x39, 0x83, 0x5c, 0x9a, 0x4b, 0xda, 0x56, 0x29, 0x5b, 0x5e, 0xaf, 0xba, 0xde, 0xc2,
0x3e, 0x79, 0xd3, 0x2f, 0x9b, 0x98, 0x92, 0xd7, 0x71, 0xec, 0x2b, 0x7f, 0x2e, 0x42, 0x3e, 0x29,
0x5f, 0xa7, 0x31, 0xaa, 0xef, 0x19, 0x20, 0x53, 0x88, 0xa6, 0x19, 0x0d, 0x19, 0x41, 0xb6, 0x8e,
0x8a, 0x1c, 0x2e, 0xb9, 0x74, 0x61, 0x47, 0x9d, 0x15, 0x22, 0xba, 0xfb, 0xaf, 0x9f, 0x5f, 0x1f,
0x99, 0x3d, 0x52, 0x1c, 0x0f, 0x4d, 0xd2, 0xe1, 0xaf, 0x39, 0x8c, 0xc8, 0x10, 0xfe, 0x25, 0xbd,
0x21, 0xde, 0x12, 0xe2, 0x92, 0x81, 0x38, 0x74, 0x65, 0xbd, 0x69, 0xb4, 0x4b, 0x74, 0x9c, 0x0d,
0x02, 0x93, 0x38, 0x35, 0x1f, 0xb6, 0x67, 0x28, 0x41, 0xcc, 0xc6, 0xa4, 0xbb, 0x5a, 0xc4, 0xd4,
0x7d, 0xaf, 0xe5, 0xb5, 0xc5, 0x23, 0x35, 0xaa, 0x8a, 0xd9, 0xc1, 0x48, 0x54, 0x22, 0xe4, 0x7a,
0xe7, 0xe8, 0xc2, 0xe5, 0x3c, 0x49, 0x3f, 0x5a, 0xff, 0xb5, 0xea, 0xf8, 0x3b, 0x00, 0x00, 0xff,
0xff, 0xe7, 0xe2, 0x13, 0x2c, 0x2c, 0x03, 0x00, 0x00,
var file_yandex_cloud_endpoint_api_endpoint_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_endpoint_api_endpoint_service_proto_goTypes = []interface{}{
(*GetApiEndpointRequest)(nil), // 0: yandex.cloud.endpoint.GetApiEndpointRequest
(*ListApiEndpointsRequest)(nil), // 1: yandex.cloud.endpoint.ListApiEndpointsRequest
(*ListApiEndpointsResponse)(nil), // 2: yandex.cloud.endpoint.ListApiEndpointsResponse
(*ApiEndpoint)(nil), // 3: yandex.cloud.endpoint.ApiEndpoint
}
var file_yandex_cloud_endpoint_api_endpoint_service_proto_depIdxs = []int32{
3, // 0: yandex.cloud.endpoint.ListApiEndpointsResponse.endpoints:type_name -> yandex.cloud.endpoint.ApiEndpoint
0, // 1: yandex.cloud.endpoint.ApiEndpointService.Get:input_type -> yandex.cloud.endpoint.GetApiEndpointRequest
1, // 2: yandex.cloud.endpoint.ApiEndpointService.List:input_type -> yandex.cloud.endpoint.ListApiEndpointsRequest
3, // 3: yandex.cloud.endpoint.ApiEndpointService.Get:output_type -> yandex.cloud.endpoint.ApiEndpoint
2, // 4: yandex.cloud.endpoint.ApiEndpointService.List:output_type -> yandex.cloud.endpoint.ListApiEndpointsResponse
3, // [3:5] is the sub-list for method output_type
1, // [1:3] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_yandex_cloud_endpoint_api_endpoint_service_proto_init() }
func file_yandex_cloud_endpoint_api_endpoint_service_proto_init() {
if File_yandex_cloud_endpoint_api_endpoint_service_proto != nil {
return
}
file_yandex_cloud_endpoint_api_endpoint_proto_init()
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_endpoint_api_endpoint_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetApiEndpointRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_endpoint_api_endpoint_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListApiEndpointsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_endpoint_api_endpoint_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListApiEndpointsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_endpoint_api_endpoint_service_proto_rawDesc,
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_yandex_cloud_endpoint_api_endpoint_service_proto_goTypes,
DependencyIndexes: file_yandex_cloud_endpoint_api_endpoint_service_proto_depIdxs,
MessageInfos: file_yandex_cloud_endpoint_api_endpoint_service_proto_msgTypes,
}.Build()
File_yandex_cloud_endpoint_api_endpoint_service_proto = out.File
file_yandex_cloud_endpoint_api_endpoint_service_proto_rawDesc = nil
file_yandex_cloud_endpoint_api_endpoint_service_proto_goTypes = nil
file_yandex_cloud_endpoint_api_endpoint_service_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
@ -248,10 +391,10 @@ type ApiEndpointServiceServer interface {
type UnimplementedApiEndpointServiceServer struct {
}
func (*UnimplementedApiEndpointServiceServer) Get(ctx context.Context, req *GetApiEndpointRequest) (*ApiEndpoint, error) {
func (*UnimplementedApiEndpointServiceServer) Get(context.Context, *GetApiEndpointRequest) (*ApiEndpoint, error) {
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
}
func (*UnimplementedApiEndpointServiceServer) List(ctx context.Context, req *ListApiEndpointsRequest) (*ListApiEndpointsResponse, error) {
func (*UnimplementedApiEndpointServiceServer) List(context.Context, *ListApiEndpointsRequest) (*ListApiEndpointsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
}

View File

@ -1,28 +1,37 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/iam/v1/api_key.proto
package iam
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// An ApiKey resource.
type ApiKey struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the API Key.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// ID of the service account that the API key belongs to.
@ -30,89 +39,157 @@ type ApiKey struct {
// Creation timestamp.
CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// Description of the API key. 0-256 characters long.
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
}
func (m *ApiKey) Reset() { *m = ApiKey{} }
func (m *ApiKey) String() string { return proto.CompactTextString(m) }
func (*ApiKey) ProtoMessage() {}
func (x *ApiKey) Reset() {
*x = ApiKey{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iam_v1_api_key_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ApiKey) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ApiKey) ProtoMessage() {}
func (x *ApiKey) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iam_v1_api_key_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ApiKey.ProtoReflect.Descriptor instead.
func (*ApiKey) Descriptor() ([]byte, []int) {
return fileDescriptor_9a44132a3bbfe52c, []int{0}
return file_yandex_cloud_iam_v1_api_key_proto_rawDescGZIP(), []int{0}
}
func (m *ApiKey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApiKey.Unmarshal(m, b)
}
func (m *ApiKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApiKey.Marshal(b, m, deterministic)
}
func (m *ApiKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApiKey.Merge(m, src)
}
func (m *ApiKey) XXX_Size() int {
return xxx_messageInfo_ApiKey.Size(m)
}
func (m *ApiKey) XXX_DiscardUnknown() {
xxx_messageInfo_ApiKey.DiscardUnknown(m)
}
var xxx_messageInfo_ApiKey proto.InternalMessageInfo
func (m *ApiKey) GetId() string {
if m != nil {
return m.Id
func (x *ApiKey) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (m *ApiKey) GetServiceAccountId() string {
if m != nil {
return m.ServiceAccountId
func (x *ApiKey) GetServiceAccountId() string {
if x != nil {
return x.ServiceAccountId
}
return ""
}
func (m *ApiKey) GetCreatedAt() *timestamp.Timestamp {
if m != nil {
return m.CreatedAt
func (x *ApiKey) GetCreatedAt() *timestamp.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (m *ApiKey) GetDescription() string {
if m != nil {
return m.Description
func (x *ApiKey) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func init() {
proto.RegisterType((*ApiKey)(nil), "yandex.cloud.iam.v1.ApiKey")
var File_yandex_cloud_iam_v1_api_key_proto protoreflect.FileDescriptor
var file_yandex_cloud_iam_v1_api_key_proto_rawDesc = []byte{
0x0a, 0x21, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69,
0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x70, 0x69, 0x5f, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x12, 0x13, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x01, 0x0a, 0x06, 0x41, 0x70,
0x69, 0x4b, 0x65, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x02, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f,
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x10, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74,
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x20, 0x0a,
0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01,
0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42,
0x56, 0x0a, 0x17, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68,
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69, 0x61, 0x6d,
0x2f, 0x76, 0x31, 0x3b, 0x69, 0x61, 0x6d, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/iam/v1/api_key.proto", fileDescriptor_9a44132a3bbfe52c)
var (
file_yandex_cloud_iam_v1_api_key_proto_rawDescOnce sync.Once
file_yandex_cloud_iam_v1_api_key_proto_rawDescData = file_yandex_cloud_iam_v1_api_key_proto_rawDesc
)
func file_yandex_cloud_iam_v1_api_key_proto_rawDescGZIP() []byte {
file_yandex_cloud_iam_v1_api_key_proto_rawDescOnce.Do(func() {
file_yandex_cloud_iam_v1_api_key_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_iam_v1_api_key_proto_rawDescData)
})
return file_yandex_cloud_iam_v1_api_key_proto_rawDescData
}
var fileDescriptor_9a44132a3bbfe52c = []byte{
// 255 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xc1, 0x4b, 0xc3, 0x30,
0x14, 0x87, 0xe9, 0x94, 0xc1, 0x32, 0x10, 0x89, 0x07, 0xcb, 0x2e, 0x56, 0x4f, 0x3b, 0xb8, 0x84,
0xe9, 0x49, 0x76, 0xaa, 0x37, 0xf1, 0x36, 0xc4, 0x83, 0x97, 0xf2, 0x9a, 0x3c, 0xe3, 0xc3, 0xa5,
0x09, 0x6d, 0x5a, 0xec, 0xdf, 0xe3, 0x3f, 0x2a, 0x24, 0x1d, 0x28, 0x78, 0xcd, 0xf7, 0x85, 0x8f,
0xf7, 0x63, 0xd7, 0x23, 0x34, 0x1a, 0xbf, 0xa4, 0x3a, 0xb8, 0x5e, 0x4b, 0x02, 0x2b, 0x87, 0xad,
0x04, 0x4f, 0xd5, 0x27, 0x8e, 0xc2, 0xb7, 0x2e, 0x38, 0x7e, 0x91, 0x14, 0x11, 0x15, 0x41, 0x60,
0xc5, 0xb0, 0x5d, 0x5d, 0x19, 0xe7, 0xcc, 0x01, 0x65, 0x54, 0xea, 0xfe, 0x5d, 0x06, 0xb2, 0xd8,
0x05, 0xb0, 0x3e, 0xfd, 0xba, 0xf9, 0xce, 0xd8, 0xbc, 0xf4, 0xf4, 0x8c, 0x23, 0x3f, 0x63, 0x33,
0xd2, 0x79, 0x56, 0x64, 0xeb, 0xc5, 0x7e, 0x46, 0x9a, 0xdf, 0x32, 0xde, 0x61, 0x3b, 0x90, 0xc2,
0x0a, 0x94, 0x72, 0x7d, 0x13, 0x2a, 0xd2, 0xf9, 0x2c, 0xf2, 0xf3, 0x89, 0x94, 0x09, 0x3c, 0x69,
0xfe, 0xc0, 0x98, 0x6a, 0x11, 0x02, 0xea, 0x0a, 0x42, 0x7e, 0x52, 0x64, 0xeb, 0xe5, 0xdd, 0x4a,
0xa4, 0xbc, 0x38, 0xe6, 0xc5, 0xcb, 0x31, 0xbf, 0x5f, 0x4c, 0x76, 0x19, 0x78, 0xc1, 0x96, 0x1a,
0x3b, 0xd5, 0x92, 0x0f, 0xe4, 0x9a, 0xfc, 0x34, 0x16, 0x7e, 0x3f, 0x3d, 0xbe, 0xb2, 0xcb, 0x3f,
0xd7, 0x81, 0xa7, 0xe9, 0xc2, 0xb7, 0x9d, 0xa1, 0xf0, 0xd1, 0xd7, 0x42, 0x39, 0x2b, 0x93, 0xb3,
0x49, 0x23, 0x19, 0xb7, 0x31, 0xd8, 0xc4, 0xb2, 0xfc, 0x67, 0xbd, 0x1d, 0x81, 0xad, 0xe7, 0x11,
0xdf, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0xf6, 0xbd, 0x0a, 0x6b, 0x5f, 0x01, 0x00, 0x00,
var file_yandex_cloud_iam_v1_api_key_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_iam_v1_api_key_proto_goTypes = []interface{}{
(*ApiKey)(nil), // 0: yandex.cloud.iam.v1.ApiKey
(*timestamp.Timestamp)(nil), // 1: google.protobuf.Timestamp
}
var file_yandex_cloud_iam_v1_api_key_proto_depIdxs = []int32{
1, // 0: yandex.cloud.iam.v1.ApiKey.created_at:type_name -> google.protobuf.Timestamp
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_yandex_cloud_iam_v1_api_key_proto_init() }
func file_yandex_cloud_iam_v1_api_key_proto_init() {
if File_yandex_cloud_iam_v1_api_key_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_iam_v1_api_key_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ApiKey); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_iam_v1_api_key_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_iam_v1_api_key_proto_goTypes,
DependencyIndexes: file_yandex_cloud_iam_v1_api_key_proto_depIdxs,
MessageInfos: file_yandex_cloud_iam_v1_api_key_proto_msgTypes,
}.Build()
File_yandex_cloud_iam_v1_api_key_proto = out.File
file_yandex_cloud_iam_v1_api_key_proto_rawDesc = nil
file_yandex_cloud_iam_v1_api_key_proto_goTypes = nil
file_yandex_cloud_iam_v1_api_key_proto_depIdxs = nil
}

File diff suppressed because it is too large Load Diff

View File

@ -1,29 +1,38 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/iam/v1/awscompatibility/access_key.proto
package awscompatibility
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// An access key.
// For more information, see [AWS-compatible access keys](/docs/iam/concepts/authorization/access-key).
type AccessKey struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the AccessKey resource.
// It is used to manage secret credentials: an access key ID and a secret access key.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
@ -35,99 +44,171 @@ type AccessKey struct {
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// ID of the access key.
// The key is AWS compatible.
KeyId string `protobuf:"bytes,5,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
KeyId string `protobuf:"bytes,5,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
}
func (m *AccessKey) Reset() { *m = AccessKey{} }
func (m *AccessKey) String() string { return proto.CompactTextString(m) }
func (*AccessKey) ProtoMessage() {}
func (x *AccessKey) Reset() {
*x = AccessKey{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AccessKey) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AccessKey) ProtoMessage() {}
func (x *AccessKey) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AccessKey.ProtoReflect.Descriptor instead.
func (*AccessKey) Descriptor() ([]byte, []int) {
return fileDescriptor_0a09bbde32ee7837, []int{0}
return file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_rawDescGZIP(), []int{0}
}
func (m *AccessKey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AccessKey.Unmarshal(m, b)
}
func (m *AccessKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AccessKey.Marshal(b, m, deterministic)
}
func (m *AccessKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_AccessKey.Merge(m, src)
}
func (m *AccessKey) XXX_Size() int {
return xxx_messageInfo_AccessKey.Size(m)
}
func (m *AccessKey) XXX_DiscardUnknown() {
xxx_messageInfo_AccessKey.DiscardUnknown(m)
}
var xxx_messageInfo_AccessKey proto.InternalMessageInfo
func (m *AccessKey) GetId() string {
if m != nil {
return m.Id
func (x *AccessKey) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (m *AccessKey) GetServiceAccountId() string {
if m != nil {
return m.ServiceAccountId
func (x *AccessKey) GetServiceAccountId() string {
if x != nil {
return x.ServiceAccountId
}
return ""
}
func (m *AccessKey) GetCreatedAt() *timestamp.Timestamp {
if m != nil {
return m.CreatedAt
func (x *AccessKey) GetCreatedAt() *timestamp.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (m *AccessKey) GetDescription() string {
if m != nil {
return m.Description
func (x *AccessKey) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (m *AccessKey) GetKeyId() string {
if m != nil {
return m.KeyId
func (x *AccessKey) GetKeyId() string {
if x != nil {
return x.KeyId
}
return ""
}
func init() {
proto.RegisterType((*AccessKey)(nil), "yandex.cloud.iam.v1.awscompatibility.AccessKey")
var File_yandex_cloud_iam_v1_awscompatibility_access_key_proto protoreflect.FileDescriptor
var file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_rawDesc = []byte{
0x0a, 0x35, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69,
0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x77, 0x73, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x69,
0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65,
0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x24, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x61, 0x77, 0x73,
0x63, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x1a, 0x1f, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbd,
0x01, 0x0a, 0x09, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x0e, 0x0a, 0x02,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x12,
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f,
0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72,
0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61,
0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63,
0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x5f, 0x69,
0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x42, 0x85,
0x01, 0x0a, 0x28, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x61, 0x77, 0x73, 0x63, 0x6f,
0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5a, 0x59, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63,
0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69, 0x61,
0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x77, 0x73, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62,
0x69, 0x6c, 0x69, 0x74, 0x79, 0x3b, 0x61, 0x77, 0x73, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x69,
0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/iam/v1/awscompatibility/access_key.proto", fileDescriptor_0a09bbde32ee7837)
var (
file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_rawDescOnce sync.Once
file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_rawDescData = file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_rawDesc
)
func file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_rawDescGZIP() []byte {
file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_rawDescOnce.Do(func() {
file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_rawDescData)
})
return file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_rawDescData
}
var fileDescriptor_0a09bbde32ee7837 = []byte{
// 296 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x41, 0x4b, 0x33, 0x31,
0x10, 0x86, 0xd9, 0x7e, 0x5f, 0x0b, 0x4d, 0x41, 0x24, 0x20, 0x2c, 0xbd, 0x58, 0xc4, 0x43, 0x0f,
0x36, 0xa1, 0x8a, 0x07, 0xf1, 0xb4, 0xde, 0x8a, 0xb7, 0xe2, 0x45, 0x2f, 0x4b, 0x36, 0x19, 0xd7,
0x61, 0x37, 0x9b, 0x65, 0x93, 0x5d, 0xcd, 0x0f, 0xf0, 0x67, 0xf9, 0xdf, 0xc4, 0xa4, 0x05, 0x2d,
0x08, 0x5e, 0xe7, 0xcd, 0x33, 0xf3, 0xf0, 0x86, 0x5c, 0x7b, 0xd1, 0x28, 0x78, 0xe3, 0xb2, 0x36,
0xbd, 0xe2, 0x28, 0x34, 0x1f, 0xd6, 0x5c, 0xbc, 0x5a, 0x69, 0x74, 0x2b, 0x1c, 0x16, 0x58, 0xa3,
0xf3, 0x5c, 0x48, 0x09, 0xd6, 0xe6, 0x15, 0x78, 0xd6, 0x76, 0xc6, 0x19, 0x7a, 0x1e, 0x31, 0x16,
0x30, 0x86, 0x42, 0xb3, 0x61, 0xcd, 0x0e, 0xb1, 0xf9, 0x69, 0x69, 0x4c, 0x59, 0x03, 0x0f, 0x4c,
0xd1, 0x3f, 0x73, 0x87, 0x1a, 0xac, 0x13, 0xba, 0x8d, 0x6b, 0xce, 0x3e, 0x12, 0x32, 0xcd, 0xc2,
0xee, 0x7b, 0xf0, 0xf4, 0x88, 0x8c, 0x50, 0xa5, 0xc9, 0x22, 0x59, 0x4e, 0xb7, 0x23, 0x54, 0xf4,
0x82, 0x50, 0x0b, 0xdd, 0x80, 0x12, 0x72, 0x21, 0xa5, 0xe9, 0x1b, 0x97, 0xa3, 0x4a, 0x47, 0x21,
0x3f, 0xde, 0x25, 0x59, 0x0c, 0x36, 0x8a, 0xde, 0x10, 0x22, 0x3b, 0x10, 0x0e, 0x54, 0x2e, 0x5c,
0xfa, 0x6f, 0x91, 0x2c, 0x67, 0x97, 0x73, 0x16, 0x0d, 0xd8, 0xde, 0x80, 0x3d, 0xec, 0x0d, 0xb6,
0xd3, 0xdd, 0xeb, 0xcc, 0xd1, 0x05, 0x99, 0x29, 0xb0, 0xb2, 0xc3, 0xd6, 0xa1, 0x69, 0xd2, 0xff,
0xe1, 0xc2, 0xf7, 0x11, 0x3d, 0x21, 0x93, 0x0a, 0xfc, 0xd7, 0xf9, 0x71, 0x08, 0xc7, 0x15, 0xf8,
0x8d, 0xba, 0x7b, 0x4f, 0xc8, 0xf2, 0x47, 0x13, 0xa2, 0xc5, 0xdf, 0xda, 0x78, 0x7a, 0x2c, 0xd1,
0xbd, 0xf4, 0x05, 0x93, 0x46, 0xf3, 0x08, 0xad, 0x62, 0xeb, 0xa5, 0x59, 0x95, 0xd0, 0x04, 0x45,
0xfe, 0x97, 0xef, 0xb8, 0x3d, 0x1c, 0x14, 0x93, 0x00, 0x5f, 0x7d, 0x06, 0x00, 0x00, 0xff, 0xff,
0x46, 0xd1, 0x31, 0xe3, 0xce, 0x01, 0x00, 0x00,
var file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_goTypes = []interface{}{
(*AccessKey)(nil), // 0: yandex.cloud.iam.v1.awscompatibility.AccessKey
(*timestamp.Timestamp)(nil), // 1: google.protobuf.Timestamp
}
var file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_depIdxs = []int32{
1, // 0: yandex.cloud.iam.v1.awscompatibility.AccessKey.created_at:type_name -> google.protobuf.Timestamp
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_init() }
func file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_init() {
if File_yandex_cloud_iam_v1_awscompatibility_access_key_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AccessKey); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_goTypes,
DependencyIndexes: file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_depIdxs,
MessageInfos: file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_msgTypes,
}.Build()
File_yandex_cloud_iam_v1_awscompatibility_access_key_proto = out.File
file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_rawDesc = nil
file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_goTypes = nil
file_yandex_cloud_iam_v1_awscompatibility_access_key_proto_depIdxs = nil
}

View File

@ -1,11 +1,13 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/iam/v1/iam_token_service.proto
package iam
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
@ -13,71 +15,66 @@ import (
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type CreateIamTokenRequest struct {
// Types that are valid to be assigned to Identity:
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Identity:
// *CreateIamTokenRequest_YandexPassportOauthToken
// *CreateIamTokenRequest_Jwt
Identity isCreateIamTokenRequest_Identity `protobuf_oneof:"identity"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Identity isCreateIamTokenRequest_Identity `protobuf_oneof:"identity"`
}
func (m *CreateIamTokenRequest) Reset() { *m = CreateIamTokenRequest{} }
func (m *CreateIamTokenRequest) String() string { return proto.CompactTextString(m) }
func (*CreateIamTokenRequest) ProtoMessage() {}
func (x *CreateIamTokenRequest) Reset() {
*x = CreateIamTokenRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iam_v1_iam_token_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateIamTokenRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateIamTokenRequest) ProtoMessage() {}
func (x *CreateIamTokenRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iam_v1_iam_token_service_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateIamTokenRequest.ProtoReflect.Descriptor instead.
func (*CreateIamTokenRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b373624a21e738a7, []int{0}
return file_yandex_cloud_iam_v1_iam_token_service_proto_rawDescGZIP(), []int{0}
}
func (m *CreateIamTokenRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateIamTokenRequest.Unmarshal(m, b)
}
func (m *CreateIamTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateIamTokenRequest.Marshal(b, m, deterministic)
}
func (m *CreateIamTokenRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateIamTokenRequest.Merge(m, src)
}
func (m *CreateIamTokenRequest) XXX_Size() int {
return xxx_messageInfo_CreateIamTokenRequest.Size(m)
}
func (m *CreateIamTokenRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateIamTokenRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateIamTokenRequest proto.InternalMessageInfo
type isCreateIamTokenRequest_Identity interface {
isCreateIamTokenRequest_Identity()
}
type CreateIamTokenRequest_YandexPassportOauthToken struct {
YandexPassportOauthToken string `protobuf:"bytes,1,opt,name=yandex_passport_oauth_token,json=yandexPassportOauthToken,proto3,oneof"`
}
type CreateIamTokenRequest_Jwt struct {
Jwt string `protobuf:"bytes,2,opt,name=jwt,proto3,oneof"`
}
func (*CreateIamTokenRequest_YandexPassportOauthToken) isCreateIamTokenRequest_Identity() {}
func (*CreateIamTokenRequest_Jwt) isCreateIamTokenRequest_Identity() {}
func (m *CreateIamTokenRequest) GetIdentity() isCreateIamTokenRequest_Identity {
if m != nil {
return m.Identity
@ -85,116 +82,228 @@ func (m *CreateIamTokenRequest) GetIdentity() isCreateIamTokenRequest_Identity {
return nil
}
func (m *CreateIamTokenRequest) GetYandexPassportOauthToken() string {
if x, ok := m.GetIdentity().(*CreateIamTokenRequest_YandexPassportOauthToken); ok {
func (x *CreateIamTokenRequest) GetYandexPassportOauthToken() string {
if x, ok := x.GetIdentity().(*CreateIamTokenRequest_YandexPassportOauthToken); ok {
return x.YandexPassportOauthToken
}
return ""
}
func (m *CreateIamTokenRequest) GetJwt() string {
if x, ok := m.GetIdentity().(*CreateIamTokenRequest_Jwt); ok {
func (x *CreateIamTokenRequest) GetJwt() string {
if x, ok := x.GetIdentity().(*CreateIamTokenRequest_Jwt); ok {
return x.Jwt
}
return ""
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*CreateIamTokenRequest) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*CreateIamTokenRequest_YandexPassportOauthToken)(nil),
(*CreateIamTokenRequest_Jwt)(nil),
}
type isCreateIamTokenRequest_Identity interface {
isCreateIamTokenRequest_Identity()
}
type CreateIamTokenRequest_YandexPassportOauthToken struct {
// OAuth token for a Yandex.Passport account.
// For more information, see [OAuth token](/docs/iam/concepts/authorization/oauth-token).
YandexPassportOauthToken string `protobuf:"bytes,1,opt,name=yandex_passport_oauth_token,json=yandexPassportOauthToken,proto3,oneof"`
}
type CreateIamTokenRequest_Jwt struct {
// JSON Web Token (JWT) for a service account.
// For more information, see [Get IAM token for a service account](/docs/iam/operations/iam-token/create-for-sa).
Jwt string `protobuf:"bytes,2,opt,name=jwt,proto3,oneof"`
}
func (*CreateIamTokenRequest_YandexPassportOauthToken) isCreateIamTokenRequest_Identity() {}
func (*CreateIamTokenRequest_Jwt) isCreateIamTokenRequest_Identity() {}
type CreateIamTokenResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// IAM token for the specified identity.
//
// You should pass the token in the `Authorization` header for any further API requests.
// For example, `Authorization: Bearer [iam_token]`.
IamToken string `protobuf:"bytes,1,opt,name=iam_token,json=iamToken,proto3" json:"iam_token,omitempty"`
// IAM token expiration time.
ExpiresAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
ExpiresAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
}
func (m *CreateIamTokenResponse) Reset() { *m = CreateIamTokenResponse{} }
func (m *CreateIamTokenResponse) String() string { return proto.CompactTextString(m) }
func (*CreateIamTokenResponse) ProtoMessage() {}
func (x *CreateIamTokenResponse) Reset() {
*x = CreateIamTokenResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iam_v1_iam_token_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateIamTokenResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateIamTokenResponse) ProtoMessage() {}
func (x *CreateIamTokenResponse) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iam_v1_iam_token_service_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateIamTokenResponse.ProtoReflect.Descriptor instead.
func (*CreateIamTokenResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b373624a21e738a7, []int{1}
return file_yandex_cloud_iam_v1_iam_token_service_proto_rawDescGZIP(), []int{1}
}
func (m *CreateIamTokenResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateIamTokenResponse.Unmarshal(m, b)
}
func (m *CreateIamTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateIamTokenResponse.Marshal(b, m, deterministic)
}
func (m *CreateIamTokenResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateIamTokenResponse.Merge(m, src)
}
func (m *CreateIamTokenResponse) XXX_Size() int {
return xxx_messageInfo_CreateIamTokenResponse.Size(m)
}
func (m *CreateIamTokenResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CreateIamTokenResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CreateIamTokenResponse proto.InternalMessageInfo
func (m *CreateIamTokenResponse) GetIamToken() string {
if m != nil {
return m.IamToken
func (x *CreateIamTokenResponse) GetIamToken() string {
if x != nil {
return x.IamToken
}
return ""
}
func (m *CreateIamTokenResponse) GetExpiresAt() *timestamp.Timestamp {
if m != nil {
return m.ExpiresAt
func (x *CreateIamTokenResponse) GetExpiresAt() *timestamp.Timestamp {
if x != nil {
return x.ExpiresAt
}
return nil
}
func init() {
proto.RegisterType((*CreateIamTokenRequest)(nil), "yandex.cloud.iam.v1.CreateIamTokenRequest")
proto.RegisterType((*CreateIamTokenResponse)(nil), "yandex.cloud.iam.v1.CreateIamTokenResponse")
var File_yandex_cloud_iam_v1_iam_token_service_proto protoreflect.FileDescriptor
var file_yandex_cloud_iam_v1_iam_token_service_proto_rawDesc = []byte{
0x0a, 0x2b, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69,
0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x61, 0x6d, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f,
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x79,
0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61, 0x6d, 0x2e,
0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61,
0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x1d, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f,
0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0x7e, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x61, 0x6d, 0x54, 0x6f, 0x6b,
0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x1b, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6f, 0x61, 0x75,
0x74, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00,
0x52, 0x18, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x50, 0x61, 0x73, 0x73, 0x70, 0x6f, 0x72, 0x74,
0x4f, 0x61, 0x75, 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x12, 0x0a, 0x03, 0x6a, 0x77,
0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x6a, 0x77, 0x74, 0x42, 0x10,
0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x04, 0xc0, 0xc1, 0x31, 0x01,
0x22, 0x70, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x61, 0x6d, 0x54, 0x6f, 0x6b,
0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x61,
0x6d, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69,
0x61, 0x6d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72,
0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73,
0x41, 0x74, 0x32, 0x8f, 0x01, 0x0a, 0x0f, 0x49, 0x61, 0x6d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53,
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7c, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x12, 0x2a, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x61, 0x6d,
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x79,
0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61, 0x6d, 0x2e,
0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x61, 0x6d, 0x54, 0x6f, 0x6b, 0x65,
0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02,
0x13, 0x22, 0x0e, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
0x73, 0x3a, 0x01, 0x2a, 0x42, 0x56, 0x0a, 0x17, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63,
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x5a,
0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x69, 0x61, 0x6d, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/iam/v1/iam_token_service.proto", fileDescriptor_b373624a21e738a7)
var (
file_yandex_cloud_iam_v1_iam_token_service_proto_rawDescOnce sync.Once
file_yandex_cloud_iam_v1_iam_token_service_proto_rawDescData = file_yandex_cloud_iam_v1_iam_token_service_proto_rawDesc
)
func file_yandex_cloud_iam_v1_iam_token_service_proto_rawDescGZIP() []byte {
file_yandex_cloud_iam_v1_iam_token_service_proto_rawDescOnce.Do(func() {
file_yandex_cloud_iam_v1_iam_token_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_iam_v1_iam_token_service_proto_rawDescData)
})
return file_yandex_cloud_iam_v1_iam_token_service_proto_rawDescData
}
var fileDescriptor_b373624a21e738a7 = []byte{
// 386 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xb1, 0x4e, 0xf3, 0x30,
0x14, 0x85, 0xff, 0xf4, 0x47, 0x55, 0x6b, 0x24, 0x40, 0xae, 0x80, 0x92, 0x82, 0x40, 0x99, 0x50,
0xab, 0xda, 0x6a, 0x99, 0xa0, 0x03, 0xa2, 0x2c, 0x30, 0x81, 0x42, 0xc5, 0xc0, 0x12, 0xb9, 0x8d,
0x49, 0x0d, 0x8d, 0x6d, 0x62, 0x27, 0xb4, 0x12, 0x62, 0xe0, 0x05, 0x18, 0x78, 0x21, 0x78, 0x06,
0x5e, 0x81, 0x07, 0x41, 0x89, 0x13, 0xa4, 0xa2, 0x0e, 0x4c, 0x96, 0x75, 0x3f, 0xdf, 0x73, 0xee,
0xf1, 0x05, 0xad, 0x19, 0xe1, 0x3e, 0x9d, 0xe2, 0xd1, 0x44, 0xc4, 0x3e, 0x66, 0x24, 0xc4, 0x49,
0x27, 0x3d, 0x3c, 0x2d, 0xee, 0x29, 0xf7, 0x14, 0x8d, 0x12, 0x36, 0xa2, 0x48, 0x46, 0x42, 0x0b,
0x58, 0x33, 0x30, 0xca, 0x60, 0xc4, 0x48, 0x88, 0x92, 0x8e, 0xbd, 0x1d, 0x08, 0x11, 0x4c, 0x28,
0x26, 0x92, 0x61, 0xc2, 0xb9, 0xd0, 0x44, 0x33, 0xc1, 0x95, 0x79, 0x62, 0xef, 0xe6, 0xd5, 0xec,
0x36, 0x8c, 0x6f, 0xb1, 0x66, 0x21, 0x55, 0x9a, 0x84, 0x32, 0x07, 0x76, 0xe6, 0x0c, 0x24, 0x64,
0xc2, 0xfc, 0xac, 0x81, 0x29, 0x3b, 0xcf, 0x60, 0xfd, 0x34, 0xa2, 0x44, 0xd3, 0x73, 0x12, 0x0e,
0x52, 0x4b, 0x2e, 0x7d, 0x88, 0xa9, 0xd2, 0xf0, 0x18, 0x34, 0xcc, 0x4b, 0x4f, 0x12, 0xa5, 0xa4,
0x88, 0xb4, 0x27, 0x48, 0xac, 0xc7, 0xc6, 0x78, 0xdd, 0xda, 0xb3, 0xf6, 0xab, 0x67, 0xff, 0xdc,
0xba, 0x81, 0x2e, 0x73, 0xe6, 0x22, 0x45, 0xb2, 0x3e, 0x10, 0x82, 0xff, 0x77, 0x8f, 0xba, 0x5e,
0xca, 0xc1, 0xf4, 0xd2, 0x5f, 0x03, 0x15, 0xe6, 0x53, 0xae, 0x99, 0x9e, 0xc1, 0xa5, 0xf7, 0x8f,
0x8e, 0xe5, 0x48, 0xb0, 0xf1, 0x5b, 0x5f, 0x49, 0xc1, 0x15, 0x85, 0x0d, 0x50, 0xfd, 0xc9, 0xc9,
0xc8, 0xb9, 0x15, 0x96, 0x43, 0xf0, 0x10, 0x00, 0x3a, 0x95, 0x2c, 0xa2, 0xca, 0x23, 0x46, 0x63,
0xb9, 0x6b, 0x23, 0x93, 0x05, 0x2a, 0xb2, 0x40, 0x83, 0x22, 0x0b, 0xb7, 0x9a, 0xd3, 0x27, 0xba,
0xfb, 0x6a, 0x81, 0xd5, 0x42, 0xec, 0xca, 0xc4, 0x0f, 0x9f, 0x40, 0xd9, 0xb8, 0x80, 0x4d, 0xb4,
0xe0, 0x0f, 0xd0, 0xc2, 0x88, 0xec, 0xd6, 0x9f, 0x58, 0x33, 0x8e, 0xb3, 0xf5, 0xf2, 0xf9, 0xf5,
0x56, 0xaa, 0x39, 0x2b, 0xc5, 0x12, 0x64, 0x83, 0xa9, 0x23, 0xab, 0xd9, 0xbf, 0x06, 0x9b, 0x73,
0x8d, 0x88, 0x64, 0x79, 0xb3, 0x9b, 0x5e, 0xc0, 0xf4, 0x38, 0x1e, 0xa2, 0x91, 0x08, 0xb1, 0x61,
0xda, 0xe6, 0x23, 0x03, 0xd1, 0x0e, 0x28, 0xcf, 0x26, 0xc5, 0x0b, 0x56, 0xac, 0xc7, 0x48, 0x38,
0x2c, 0x67, 0xe5, 0x83, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x17, 0x26, 0x80, 0xfb, 0x84, 0x02,
0x00, 0x00,
var file_yandex_cloud_iam_v1_iam_token_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_iam_v1_iam_token_service_proto_goTypes = []interface{}{
(*CreateIamTokenRequest)(nil), // 0: yandex.cloud.iam.v1.CreateIamTokenRequest
(*CreateIamTokenResponse)(nil), // 1: yandex.cloud.iam.v1.CreateIamTokenResponse
(*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp
}
var file_yandex_cloud_iam_v1_iam_token_service_proto_depIdxs = []int32{
2, // 0: yandex.cloud.iam.v1.CreateIamTokenResponse.expires_at:type_name -> google.protobuf.Timestamp
0, // 1: yandex.cloud.iam.v1.IamTokenService.Create:input_type -> yandex.cloud.iam.v1.CreateIamTokenRequest
1, // 2: yandex.cloud.iam.v1.IamTokenService.Create:output_type -> yandex.cloud.iam.v1.CreateIamTokenResponse
2, // [2:3] is the sub-list for method output_type
1, // [1:2] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_yandex_cloud_iam_v1_iam_token_service_proto_init() }
func file_yandex_cloud_iam_v1_iam_token_service_proto_init() {
if File_yandex_cloud_iam_v1_iam_token_service_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_iam_v1_iam_token_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateIamTokenRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_iam_v1_iam_token_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateIamTokenResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_yandex_cloud_iam_v1_iam_token_service_proto_msgTypes[0].OneofWrappers = []interface{}{
(*CreateIamTokenRequest_YandexPassportOauthToken)(nil),
(*CreateIamTokenRequest_Jwt)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_iam_v1_iam_token_service_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_yandex_cloud_iam_v1_iam_token_service_proto_goTypes,
DependencyIndexes: file_yandex_cloud_iam_v1_iam_token_service_proto_depIdxs,
MessageInfos: file_yandex_cloud_iam_v1_iam_token_service_proto_msgTypes,
}.Build()
File_yandex_cloud_iam_v1_iam_token_service_proto = out.File
file_yandex_cloud_iam_v1_iam_token_service_proto_rawDesc = nil
file_yandex_cloud_iam_v1_iam_token_service_proto_goTypes = nil
file_yandex_cloud_iam_v1_iam_token_service_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
@ -240,7 +349,7 @@ type IamTokenServiceServer interface {
type UnimplementedIamTokenServiceServer struct {
}
func (*UnimplementedIamTokenServiceServer) Create(ctx context.Context, req *CreateIamTokenRequest) (*CreateIamTokenResponse, error) {
func (*UnimplementedIamTokenServiceServer) Create(context.Context, *CreateIamTokenRequest) (*CreateIamTokenResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
}

View File

@ -1,25 +1,30 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/iam/v1/key.proto
package iam
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type Key_Algorithm int32
@ -31,31 +36,56 @@ const (
Key_RSA_4096 Key_Algorithm = 2
)
var Key_Algorithm_name = map[int32]string{
0: "ALGORITHM_UNSPECIFIED",
1: "RSA_2048",
2: "RSA_4096",
}
// Enum value maps for Key_Algorithm.
var (
Key_Algorithm_name = map[int32]string{
0: "ALGORITHM_UNSPECIFIED",
1: "RSA_2048",
2: "RSA_4096",
}
Key_Algorithm_value = map[string]int32{
"ALGORITHM_UNSPECIFIED": 0,
"RSA_2048": 1,
"RSA_4096": 2,
}
)
var Key_Algorithm_value = map[string]int32{
"ALGORITHM_UNSPECIFIED": 0,
"RSA_2048": 1,
"RSA_4096": 2,
func (x Key_Algorithm) Enum() *Key_Algorithm {
p := new(Key_Algorithm)
*p = x
return p
}
func (x Key_Algorithm) String() string {
return proto.EnumName(Key_Algorithm_name, int32(x))
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Key_Algorithm) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_iam_v1_key_proto_enumTypes[0].Descriptor()
}
func (Key_Algorithm) Type() protoreflect.EnumType {
return &file_yandex_cloud_iam_v1_key_proto_enumTypes[0]
}
func (x Key_Algorithm) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Key_Algorithm.Descriptor instead.
func (Key_Algorithm) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_d3c4378eab1afe9e, []int{0, 0}
return file_yandex_cloud_iam_v1_key_proto_rawDescGZIP(), []int{0, 0}
}
// A Key resource. For more information, see [Authorized keys](/docs/iam/concepts/authorization/key).
type Key struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the Key resource.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Types that are valid to be assigned to Subject:
// Types that are assignable to Subject:
// *Key_UserAccountId
// *Key_ServiceAccountId
Subject isKey_Subject `protobuf_oneof:"subject"`
@ -66,40 +96,93 @@ type Key struct {
// An algorithm used to generate a key pair of the Key resource.
KeyAlgorithm Key_Algorithm `protobuf:"varint,6,opt,name=key_algorithm,json=keyAlgorithm,proto3,enum=yandex.cloud.iam.v1.Key_Algorithm" json:"key_algorithm,omitempty"`
// A public key of the Key resource.
PublicKey string `protobuf:"bytes,7,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
PublicKey string `protobuf:"bytes,7,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
}
func (m *Key) Reset() { *m = Key{} }
func (m *Key) String() string { return proto.CompactTextString(m) }
func (*Key) ProtoMessage() {}
func (x *Key) Reset() {
*x = Key{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iam_v1_key_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Key) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Key) ProtoMessage() {}
func (x *Key) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iam_v1_key_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Key.ProtoReflect.Descriptor instead.
func (*Key) Descriptor() ([]byte, []int) {
return fileDescriptor_d3c4378eab1afe9e, []int{0}
return file_yandex_cloud_iam_v1_key_proto_rawDescGZIP(), []int{0}
}
func (m *Key) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Key.Unmarshal(m, b)
}
func (m *Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Key.Marshal(b, m, deterministic)
}
func (m *Key) XXX_Merge(src proto.Message) {
xxx_messageInfo_Key.Merge(m, src)
}
func (m *Key) XXX_Size() int {
return xxx_messageInfo_Key.Size(m)
}
func (m *Key) XXX_DiscardUnknown() {
xxx_messageInfo_Key.DiscardUnknown(m)
func (x *Key) GetId() string {
if x != nil {
return x.Id
}
return ""
}
var xxx_messageInfo_Key proto.InternalMessageInfo
func (m *Key) GetId() string {
func (m *Key) GetSubject() isKey_Subject {
if m != nil {
return m.Id
return m.Subject
}
return nil
}
func (x *Key) GetUserAccountId() string {
if x, ok := x.GetSubject().(*Key_UserAccountId); ok {
return x.UserAccountId
}
return ""
}
func (x *Key) GetServiceAccountId() string {
if x, ok := x.GetSubject().(*Key_ServiceAccountId); ok {
return x.ServiceAccountId
}
return ""
}
func (x *Key) GetCreatedAt() *timestamp.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *Key) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *Key) GetKeyAlgorithm() Key_Algorithm {
if x != nil {
return x.KeyAlgorithm
}
return Key_ALGORITHM_UNSPECIFIED
}
func (x *Key) GetPublicKey() string {
if x != nil {
return x.PublicKey
}
return ""
}
@ -109,10 +192,12 @@ type isKey_Subject interface {
}
type Key_UserAccountId struct {
// ID of the user account that the Key resource belongs to.
UserAccountId string `protobuf:"bytes,2,opt,name=user_account_id,json=userAccountId,proto3,oneof"`
}
type Key_ServiceAccountId struct {
// ID of the service account that the Key resource belongs to.
ServiceAccountId string `protobuf:"bytes,3,opt,name=service_account_id,json=serviceAccountId,proto3,oneof"`
}
@ -120,97 +205,116 @@ func (*Key_UserAccountId) isKey_Subject() {}
func (*Key_ServiceAccountId) isKey_Subject() {}
func (m *Key) GetSubject() isKey_Subject {
if m != nil {
return m.Subject
}
return nil
var File_yandex_cloud_iam_v1_key_proto protoreflect.FileDescriptor
var file_yandex_cloud_iam_v1_key_proto_rawDesc = []byte{
0x0a, 0x1d, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69,
0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x13, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61,
0x6d, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x83, 0x03, 0x0a, 0x03, 0x4b, 0x65, 0x79, 0x12, 0x0e, 0x0a,
0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x28, 0x0a,
0x0f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x41, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x12, 0x73, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20,
0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x10, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74,
0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64,
0x41, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
0x74, 0x69, 0x6f, 0x6e, 0x12, 0x47, 0x0a, 0x0d, 0x6b, 0x65, 0x79, 0x5f, 0x61, 0x6c, 0x67, 0x6f,
0x72, 0x69, 0x74, 0x68, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x79, 0x61,
0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76,
0x31, 0x2e, 0x4b, 0x65, 0x79, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x52,
0x0c, 0x6b, 0x65, 0x79, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x1d, 0x0a,
0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28,
0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x22, 0x42, 0x0a, 0x09,
0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x4c, 0x47,
0x4f, 0x52, 0x49, 0x54, 0x48, 0x4d, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x53, 0x41, 0x5f, 0x32, 0x30, 0x34, 0x38,
0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x53, 0x41, 0x5f, 0x34, 0x30, 0x39, 0x36, 0x10, 0x02,
0x42, 0x09, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x42, 0x56, 0x0a, 0x17, 0x79,
0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f,
0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x3b,
0x69, 0x61, 0x6d, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func (m *Key) GetUserAccountId() string {
if x, ok := m.GetSubject().(*Key_UserAccountId); ok {
return x.UserAccountId
}
return ""
var (
file_yandex_cloud_iam_v1_key_proto_rawDescOnce sync.Once
file_yandex_cloud_iam_v1_key_proto_rawDescData = file_yandex_cloud_iam_v1_key_proto_rawDesc
)
func file_yandex_cloud_iam_v1_key_proto_rawDescGZIP() []byte {
file_yandex_cloud_iam_v1_key_proto_rawDescOnce.Do(func() {
file_yandex_cloud_iam_v1_key_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_iam_v1_key_proto_rawDescData)
})
return file_yandex_cloud_iam_v1_key_proto_rawDescData
}
func (m *Key) GetServiceAccountId() string {
if x, ok := m.GetSubject().(*Key_ServiceAccountId); ok {
return x.ServiceAccountId
}
return ""
var file_yandex_cloud_iam_v1_key_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_iam_v1_key_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_iam_v1_key_proto_goTypes = []interface{}{
(Key_Algorithm)(0), // 0: yandex.cloud.iam.v1.Key.Algorithm
(*Key)(nil), // 1: yandex.cloud.iam.v1.Key
(*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp
}
var file_yandex_cloud_iam_v1_key_proto_depIdxs = []int32{
2, // 0: yandex.cloud.iam.v1.Key.created_at:type_name -> google.protobuf.Timestamp
0, // 1: yandex.cloud.iam.v1.Key.key_algorithm:type_name -> yandex.cloud.iam.v1.Key.Algorithm
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func (m *Key) GetCreatedAt() *timestamp.Timestamp {
if m != nil {
return m.CreatedAt
func init() { file_yandex_cloud_iam_v1_key_proto_init() }
func file_yandex_cloud_iam_v1_key_proto_init() {
if File_yandex_cloud_iam_v1_key_proto != nil {
return
}
return nil
}
func (m *Key) GetDescription() string {
if m != nil {
return m.Description
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_iam_v1_key_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Key); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
return ""
}
func (m *Key) GetKeyAlgorithm() Key_Algorithm {
if m != nil {
return m.KeyAlgorithm
}
return Key_ALGORITHM_UNSPECIFIED
}
func (m *Key) GetPublicKey() string {
if m != nil {
return m.PublicKey
}
return ""
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*Key) XXX_OneofWrappers() []interface{} {
return []interface{}{
file_yandex_cloud_iam_v1_key_proto_msgTypes[0].OneofWrappers = []interface{}{
(*Key_UserAccountId)(nil),
(*Key_ServiceAccountId)(nil),
}
}
func init() {
proto.RegisterEnum("yandex.cloud.iam.v1.Key_Algorithm", Key_Algorithm_name, Key_Algorithm_value)
proto.RegisterType((*Key)(nil), "yandex.cloud.iam.v1.Key")
}
func init() {
proto.RegisterFile("yandex/cloud/iam/v1/key.proto", fileDescriptor_d3c4378eab1afe9e)
}
var fileDescriptor_d3c4378eab1afe9e = []byte{
// 391 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xcb, 0x6f, 0xd4, 0x30,
0x10, 0xc6, 0x9b, 0x5d, 0x68, 0xc9, 0xf4, 0xc1, 0xca, 0x08, 0x11, 0x2a, 0x55, 0xac, 0xf6, 0xb4,
0x97, 0xda, 0xed, 0x52, 0x21, 0xaa, 0x9e, 0xb2, 0x50, 0xda, 0x68, 0x79, 0x29, 0x2d, 0x1c, 0xb8,
0x44, 0x8e, 0x3d, 0xa4, 0x26, 0x0f, 0x47, 0x89, 0xb3, 0xc2, 0x67, 0xfe, 0x71, 0xd4, 0x3c, 0x68,
0x91, 0x7a, 0x9c, 0xef, 0xfb, 0x59, 0xfe, 0x69, 0x34, 0x70, 0x60, 0x79, 0x21, 0xf1, 0x37, 0x13,
0x99, 0x6e, 0x24, 0x53, 0x3c, 0x67, 0xeb, 0x63, 0x96, 0xa2, 0xa5, 0x65, 0xa5, 0x8d, 0x26, 0xcf,
0xba, 0x9a, 0xb6, 0x35, 0x55, 0x3c, 0xa7, 0xeb, 0xe3, 0xfd, 0x57, 0x89, 0xd6, 0x49, 0x86, 0xac,
0x45, 0xe2, 0xe6, 0x27, 0x33, 0x2a, 0xc7, 0xda, 0xf0, 0xbc, 0xec, 0x5e, 0xcd, 0xfe, 0x8c, 0x61,
0xbc, 0x42, 0x4b, 0xf6, 0x60, 0xa4, 0xa4, 0xe7, 0x4c, 0x9d, 0xb9, 0x1b, 0x8e, 0x94, 0x24, 0x73,
0x78, 0xda, 0xd4, 0x58, 0x45, 0x5c, 0x08, 0xdd, 0x14, 0x26, 0x52, 0xd2, 0x1b, 0xdd, 0x96, 0x97,
0x1b, 0xe1, 0xee, 0x6d, 0xe1, 0x77, 0x79, 0x20, 0x09, 0x05, 0x52, 0x63, 0xb5, 0x56, 0x02, 0xef,
0xc3, 0xe3, 0x1e, 0x9e, 0xf4, 0xdd, 0x1d, 0x7f, 0x0a, 0x20, 0x2a, 0xe4, 0x06, 0x65, 0xc4, 0x8d,
0xf7, 0x68, 0xea, 0xcc, 0xb7, 0x17, 0xfb, 0xb4, 0xf3, 0xa4, 0x83, 0x27, 0xbd, 0x1e, 0x3c, 0x43,
0xb7, 0xa7, 0x7d, 0x43, 0xa6, 0xb0, 0x2d, 0xb1, 0x16, 0x95, 0x2a, 0x8d, 0xd2, 0x85, 0xf7, 0xb8,
0xb5, 0xbd, 0x1f, 0x91, 0x0b, 0xd8, 0x4d, 0xd1, 0x46, 0x3c, 0x4b, 0x74, 0xa5, 0xcc, 0x4d, 0xee,
0x6d, 0x4e, 0x9d, 0xf9, 0xde, 0x62, 0x46, 0x1f, 0x58, 0x0e, 0x5d, 0xa1, 0xa5, 0xfe, 0x40, 0x86,
0x3b, 0x29, 0xda, 0x7f, 0x13, 0x39, 0x00, 0x28, 0x9b, 0x38, 0x53, 0x22, 0x4a, 0xd1, 0x7a, 0x5b,
0xed, 0x4f, 0x6e, 0x97, 0xac, 0xd0, 0xce, 0x96, 0xe0, 0xde, 0xb1, 0x2f, 0xe1, 0xb9, 0xff, 0xf1,
0xe2, 0x4b, 0x18, 0x5c, 0x5f, 0x7e, 0x8a, 0xbe, 0x7d, 0xbe, 0xfa, 0x7a, 0xfe, 0x2e, 0xf8, 0x10,
0x9c, 0xbf, 0x9f, 0x6c, 0x90, 0x1d, 0x78, 0x12, 0x5e, 0xf9, 0xd1, 0xe2, 0xe8, 0xe4, 0xed, 0xc4,
0x19, 0xa6, 0x93, 0xa3, 0xd3, 0x37, 0x93, 0xd1, 0xd2, 0x85, 0xad, 0xba, 0x89, 0x7f, 0xa1, 0x30,
0xcb, 0xef, 0xf0, 0xe2, 0x3f, 0x41, 0x5e, 0xaa, 0x5e, 0xf2, 0xc7, 0x59, 0xa2, 0xcc, 0x4d, 0x13,
0x53, 0xa1, 0x73, 0xd6, 0x31, 0x87, 0xdd, 0x01, 0x24, 0xfa, 0x30, 0xc1, 0xa2, 0x5d, 0x18, 0x7b,
0xe0, 0x32, 0xce, 0x14, 0xcf, 0xe3, 0xcd, 0xb6, 0x7e, 0xfd, 0x37, 0x00, 0x00, 0xff, 0xff, 0x35,
0xf9, 0x50, 0xd4, 0x3b, 0x02, 0x00, 0x00,
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_iam_v1_key_proto_rawDesc,
NumEnums: 1,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_iam_v1_key_proto_goTypes,
DependencyIndexes: file_yandex_cloud_iam_v1_key_proto_depIdxs,
EnumInfos: file_yandex_cloud_iam_v1_key_proto_enumTypes,
MessageInfos: file_yandex_cloud_iam_v1_key_proto_msgTypes,
}.Build()
File_yandex_cloud_iam_v1_key_proto = out.File
file_yandex_cloud_iam_v1_key_proto_rawDesc = nil
file_yandex_cloud_iam_v1_key_proto_goTypes = nil
file_yandex_cloud_iam_v1_key_proto_depIdxs = nil
}

File diff suppressed because it is too large Load Diff

View File

@ -1,94 +1,165 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/iam/v1/role.proto
package iam
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// A Role resource. For more information, see [Roles](/docs/iam/concepts/access-control/roles).
type Role struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the role.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Description of the role. 0-256 characters long.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
}
func (m *Role) Reset() { *m = Role{} }
func (m *Role) String() string { return proto.CompactTextString(m) }
func (*Role) ProtoMessage() {}
func (x *Role) Reset() {
*x = Role{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iam_v1_role_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Role) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Role) ProtoMessage() {}
func (x *Role) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iam_v1_role_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Role.ProtoReflect.Descriptor instead.
func (*Role) Descriptor() ([]byte, []int) {
return fileDescriptor_1c9c017dca8060cc, []int{0}
return file_yandex_cloud_iam_v1_role_proto_rawDescGZIP(), []int{0}
}
func (m *Role) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Role.Unmarshal(m, b)
}
func (m *Role) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Role.Marshal(b, m, deterministic)
}
func (m *Role) XXX_Merge(src proto.Message) {
xxx_messageInfo_Role.Merge(m, src)
}
func (m *Role) XXX_Size() int {
return xxx_messageInfo_Role.Size(m)
}
func (m *Role) XXX_DiscardUnknown() {
xxx_messageInfo_Role.DiscardUnknown(m)
}
var xxx_messageInfo_Role proto.InternalMessageInfo
func (m *Role) GetId() string {
if m != nil {
return m.Id
func (x *Role) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (m *Role) GetDescription() string {
if m != nil {
return m.Description
func (x *Role) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func init() {
proto.RegisterType((*Role)(nil), "yandex.cloud.iam.v1.Role")
var File_yandex_cloud_iam_v1_role_proto protoreflect.FileDescriptor
var file_yandex_cloud_iam_v1_role_proto_rawDesc = []byte{
0x0a, 0x1e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69,
0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x13, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69,
0x61, 0x6d, 0x2e, 0x76, 0x31, 0x22, 0x38, 0x0a, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0e, 0x0a,
0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x20, 0x0a,
0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42,
0x56, 0x0a, 0x17, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68,
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69, 0x61, 0x6d,
0x2f, 0x76, 0x31, 0x3b, 0x69, 0x61, 0x6d, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/iam/v1/role.proto", fileDescriptor_1c9c017dca8060cc)
var (
file_yandex_cloud_iam_v1_role_proto_rawDescOnce sync.Once
file_yandex_cloud_iam_v1_role_proto_rawDescData = file_yandex_cloud_iam_v1_role_proto_rawDesc
)
func file_yandex_cloud_iam_v1_role_proto_rawDescGZIP() []byte {
file_yandex_cloud_iam_v1_role_proto_rawDescOnce.Do(func() {
file_yandex_cloud_iam_v1_role_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_iam_v1_role_proto_rawDescData)
})
return file_yandex_cloud_iam_v1_role_proto_rawDescData
}
var fileDescriptor_1c9c017dca8060cc = []byte{
// 165 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xab, 0x4c, 0xcc, 0x4b,
0x49, 0xad, 0xd0, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0xcf, 0x4c, 0xcc, 0xd5, 0x2f, 0x33, 0xd4,
0x2f, 0xca, 0xcf, 0x49, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, 0xc8, 0xeb, 0x81,
0xe5, 0xf5, 0x32, 0x13, 0x73, 0xf5, 0xca, 0x0c, 0x95, 0x2c, 0xb8, 0x58, 0x82, 0xf2, 0x73, 0x52,
0x85, 0xf8, 0xb8, 0x98, 0x32, 0x53, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x98, 0x32, 0x53,
0x84, 0x14, 0xb8, 0xb8, 0x53, 0x52, 0x8b, 0x93, 0x8b, 0x32, 0x0b, 0x4a, 0x32, 0xf3, 0xf3, 0x24,
0x98, 0xc0, 0x12, 0xc8, 0x42, 0x4e, 0x61, 0x5c, 0xe2, 0x28, 0x06, 0x26, 0x16, 0x64, 0x42, 0x0d,
0x8d, 0xb2, 0x4e, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x87, 0xa8, 0xd1,
0x85, 0x38, 0x2a, 0x3d, 0x5f, 0x37, 0x3d, 0x35, 0x0f, 0xec, 0x1c, 0x7d, 0x2c, 0xae, 0xb5, 0xce,
0x4c, 0xcc, 0x4d, 0x62, 0x03, 0x4b, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x32, 0xf5, 0xbd,
0x25, 0xcf, 0x00, 0x00, 0x00,
var file_yandex_cloud_iam_v1_role_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_iam_v1_role_proto_goTypes = []interface{}{
(*Role)(nil), // 0: yandex.cloud.iam.v1.Role
}
var file_yandex_cloud_iam_v1_role_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_yandex_cloud_iam_v1_role_proto_init() }
func file_yandex_cloud_iam_v1_role_proto_init() {
if File_yandex_cloud_iam_v1_role_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_iam_v1_role_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Role); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_iam_v1_role_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_iam_v1_role_proto_goTypes,
DependencyIndexes: file_yandex_cloud_iam_v1_role_proto_depIdxs,
MessageInfos: file_yandex_cloud_iam_v1_role_proto_msgTypes,
}.Build()
File_yandex_cloud_iam_v1_role_proto = out.File
file_yandex_cloud_iam_v1_role_proto_rawDesc = nil
file_yandex_cloud_iam_v1_role_proto_goTypes = nil
file_yandex_cloud_iam_v1_role_proto_depIdxs = nil
}

View File

@ -1,73 +1,90 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/iam/v1/role_service.proto
package iam
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type GetRoleRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the Role resource to return.
// To get the role ID, use a [RoleService.List] request.
RoleId string `protobuf:"bytes,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
RoleId string `protobuf:"bytes,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
}
func (m *GetRoleRequest) Reset() { *m = GetRoleRequest{} }
func (m *GetRoleRequest) String() string { return proto.CompactTextString(m) }
func (*GetRoleRequest) ProtoMessage() {}
func (x *GetRoleRequest) Reset() {
*x = GetRoleRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iam_v1_role_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetRoleRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetRoleRequest) ProtoMessage() {}
func (x *GetRoleRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iam_v1_role_service_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetRoleRequest.ProtoReflect.Descriptor instead.
func (*GetRoleRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f5f653f182a3525c, []int{0}
return file_yandex_cloud_iam_v1_role_service_proto_rawDescGZIP(), []int{0}
}
func (m *GetRoleRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetRoleRequest.Unmarshal(m, b)
}
func (m *GetRoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetRoleRequest.Marshal(b, m, deterministic)
}
func (m *GetRoleRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetRoleRequest.Merge(m, src)
}
func (m *GetRoleRequest) XXX_Size() int {
return xxx_messageInfo_GetRoleRequest.Size(m)
}
func (m *GetRoleRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetRoleRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetRoleRequest proto.InternalMessageInfo
func (m *GetRoleRequest) GetRoleId() string {
if m != nil {
return m.RoleId
func (x *GetRoleRequest) GetRoleId() string {
if x != nil {
return x.RoleId
}
return ""
}
type ListRolesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The maximum number of results per page to return. If the number of available
// results is larger than [page_size],
// the service returns a [ListRolesResponse.next_page_token]
@ -79,59 +96,67 @@ type ListRolesRequest struct {
// returned by a previous list request.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// A filter expression that filters resources listed in the response.
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
}
func (m *ListRolesRequest) Reset() { *m = ListRolesRequest{} }
func (m *ListRolesRequest) String() string { return proto.CompactTextString(m) }
func (*ListRolesRequest) ProtoMessage() {}
func (x *ListRolesRequest) Reset() {
*x = ListRolesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iam_v1_role_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListRolesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListRolesRequest) ProtoMessage() {}
func (x *ListRolesRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iam_v1_role_service_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListRolesRequest.ProtoReflect.Descriptor instead.
func (*ListRolesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f5f653f182a3525c, []int{1}
return file_yandex_cloud_iam_v1_role_service_proto_rawDescGZIP(), []int{1}
}
func (m *ListRolesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListRolesRequest.Unmarshal(m, b)
}
func (m *ListRolesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListRolesRequest.Marshal(b, m, deterministic)
}
func (m *ListRolesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListRolesRequest.Merge(m, src)
}
func (m *ListRolesRequest) XXX_Size() int {
return xxx_messageInfo_ListRolesRequest.Size(m)
}
func (m *ListRolesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListRolesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListRolesRequest proto.InternalMessageInfo
func (m *ListRolesRequest) GetPageSize() int64 {
if m != nil {
return m.PageSize
func (x *ListRolesRequest) GetPageSize() int64 {
if x != nil {
return x.PageSize
}
return 0
}
func (m *ListRolesRequest) GetPageToken() string {
if m != nil {
return m.PageToken
func (x *ListRolesRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (m *ListRolesRequest) GetFilter() string {
if m != nil {
return m.Filter
func (x *ListRolesRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
type ListRolesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// List of Role resources.
Roles []*Role `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"`
// This token allows you to get the next page of results for list requests. If the number of results
@ -140,91 +165,204 @@ type ListRolesResponse struct {
// for the [ListRolesRequest.page_token] query parameter
// in the next list request. Each subsequent list request will have its own
// [next_page_token] to continue paging through the results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (m *ListRolesResponse) Reset() { *m = ListRolesResponse{} }
func (m *ListRolesResponse) String() string { return proto.CompactTextString(m) }
func (*ListRolesResponse) ProtoMessage() {}
func (x *ListRolesResponse) Reset() {
*x = ListRolesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iam_v1_role_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListRolesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListRolesResponse) ProtoMessage() {}
func (x *ListRolesResponse) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iam_v1_role_service_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListRolesResponse.ProtoReflect.Descriptor instead.
func (*ListRolesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_f5f653f182a3525c, []int{2}
return file_yandex_cloud_iam_v1_role_service_proto_rawDescGZIP(), []int{2}
}
func (m *ListRolesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListRolesResponse.Unmarshal(m, b)
}
func (m *ListRolesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListRolesResponse.Marshal(b, m, deterministic)
}
func (m *ListRolesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListRolesResponse.Merge(m, src)
}
func (m *ListRolesResponse) XXX_Size() int {
return xxx_messageInfo_ListRolesResponse.Size(m)
}
func (m *ListRolesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListRolesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListRolesResponse proto.InternalMessageInfo
func (m *ListRolesResponse) GetRoles() []*Role {
if m != nil {
return m.Roles
func (x *ListRolesResponse) GetRoles() []*Role {
if x != nil {
return x.Roles
}
return nil
}
func (m *ListRolesResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
func (x *ListRolesResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
func init() {
proto.RegisterType((*GetRoleRequest)(nil), "yandex.cloud.iam.v1.GetRoleRequest")
proto.RegisterType((*ListRolesRequest)(nil), "yandex.cloud.iam.v1.ListRolesRequest")
proto.RegisterType((*ListRolesResponse)(nil), "yandex.cloud.iam.v1.ListRolesResponse")
var File_yandex_cloud_iam_v1_role_service_proto protoreflect.FileDescriptor
var file_yandex_cloud_iam_v1_role_service_proto_rawDesc = []byte{
0x0a, 0x26, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69,
0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f,
0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x37, 0x0a, 0x0e, 0x47, 0x65,
0x74, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x07,
0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0c, 0xe8,
0xc7, 0x31, 0x01, 0x8a, 0xc8, 0x31, 0x04, 0x3c, 0x3d, 0x35, 0x30, 0x52, 0x06, 0x72, 0x6f, 0x6c,
0x65, 0x49, 0x64, 0x22, 0x89, 0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6c, 0x65,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65,
0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x42, 0x0a, 0xfa, 0xc7, 0x31,
0x06, 0x3c, 0x3d, 0x31, 0x30, 0x30, 0x30, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a,
0x65, 0x12, 0x28, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x09, 0x8a, 0xc8, 0x31, 0x05, 0x3c, 0x3d, 0x31, 0x30, 0x30,
0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x22, 0x0a, 0x06, 0x66,
0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0x8a, 0xc8, 0x31,
0x06, 0x3c, 0x3d, 0x31, 0x30, 0x30, 0x30, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22,
0x6c, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f,
0x75, 0x64, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x05,
0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61,
0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xe3, 0x01,
0x0a, 0x0b, 0x52, 0x6f, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x66, 0x0a,
0x03, 0x47, 0x65, 0x74, 0x12, 0x23, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x6f,
0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e,
0x52, 0x6f, 0x6c, 0x65, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x69,
0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x2f, 0x7b, 0x72, 0x6f, 0x6c,
0x65, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x6c, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x25, 0x2e,
0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61, 0x6d,
0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52,
0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x15, 0x82, 0xd3,
0xe4, 0x93, 0x02, 0x0f, 0x12, 0x0d, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x6f,
0x6c, 0x65, 0x73, 0x42, 0x56, 0x0a, 0x17, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x5a, 0x3b,
0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x69, 0x61, 0x6d, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/iam/v1/role_service.proto", fileDescriptor_f5f653f182a3525c)
var (
file_yandex_cloud_iam_v1_role_service_proto_rawDescOnce sync.Once
file_yandex_cloud_iam_v1_role_service_proto_rawDescData = file_yandex_cloud_iam_v1_role_service_proto_rawDesc
)
func file_yandex_cloud_iam_v1_role_service_proto_rawDescGZIP() []byte {
file_yandex_cloud_iam_v1_role_service_proto_rawDescOnce.Do(func() {
file_yandex_cloud_iam_v1_role_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_iam_v1_role_service_proto_rawDescData)
})
return file_yandex_cloud_iam_v1_role_service_proto_rawDescData
}
var fileDescriptor_f5f653f182a3525c = []byte{
// 439 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0x3f, 0x6f, 0xd3, 0x40,
0x14, 0x97, 0x9b, 0x36, 0x90, 0x57, 0x4a, 0xe1, 0x10, 0x6a, 0x1a, 0xf1, 0xa7, 0x32, 0x6a, 0xc8,
0x52, 0x9f, 0x5d, 0x84, 0x18, 0xda, 0x2e, 0x59, 0x2a, 0x24, 0x06, 0xe4, 0x22, 0x06, 0x96, 0xe8,
0x1a, 0xbf, 0x9a, 0x13, 0xe7, 0x3b, 0xe3, 0xbb, 0x58, 0xa5, 0x88, 0x85, 0x8d, 0xac, 0x7c, 0xa8,
0x66, 0xe7, 0x23, 0xc0, 0xc0, 0x67, 0x60, 0x42, 0xbe, 0x73, 0x51, 0x5d, 0xb9, 0x62, 0xbd, 0xdf,
0xdf, 0x7b, 0xef, 0xc1, 0xf0, 0x13, 0x93, 0x09, 0x9e, 0xd2, 0xa9, 0x50, 0xb3, 0x84, 0x72, 0x96,
0xd1, 0x32, 0xa2, 0x85, 0x12, 0x38, 0xd1, 0x58, 0x94, 0x7c, 0x8a, 0x41, 0x5e, 0x28, 0xa3, 0xc8,
0x3d, 0xc7, 0x0b, 0x2c, 0x2f, 0xe0, 0x2c, 0x0b, 0xca, 0x68, 0xf0, 0x20, 0x55, 0x2a, 0x15, 0x48,
0x59, 0xce, 0x29, 0x93, 0x52, 0x19, 0x66, 0xb8, 0x92, 0xda, 0x49, 0x06, 0x0f, 0x1b, 0xd6, 0x25,
0x13, 0x3c, 0xb1, 0x78, 0x0d, 0x3f, 0xba, 0x2e, 0xd9, 0xe1, 0xfe, 0x0b, 0xb8, 0x7d, 0x88, 0x26,
0x56, 0x02, 0x63, 0xfc, 0x38, 0x43, 0x6d, 0xc8, 0x36, 0xdc, 0xb0, 0xcd, 0x78, 0xd2, 0xf7, 0xb6,
0xbc, 0x51, 0x6f, 0x7c, 0xeb, 0xf7, 0x79, 0xe4, 0xcd, 0x17, 0xd1, 0xf2, 0xfe, 0xc1, 0xf3, 0x30,
0xee, 0x56, 0xe0, 0xcb, 0xc4, 0xff, 0xe6, 0xc1, 0x9d, 0x57, 0x5c, 0x5b, 0xa9, 0xbe, 0xd0, 0x3e,
0x85, 0x5e, 0xce, 0x52, 0x9c, 0x68, 0x7e, 0x86, 0x56, 0xdd, 0x19, 0xc3, 0x9f, 0xf3, 0xa8, 0xbb,
0x7f, 0x10, 0x85, 0x61, 0x18, 0xdf, 0xac, 0xc0, 0x23, 0x7e, 0x86, 0x64, 0x04, 0x60, 0x89, 0x46,
0x7d, 0x40, 0xd9, 0x5f, 0xb2, 0x39, 0xbd, 0xf9, 0x22, 0x5a, 0xb1, 0xcc, 0xd8, 0xba, 0xbc, 0xa9,
0x30, 0xe2, 0x43, 0xf7, 0x84, 0x0b, 0x83, 0x45, 0xbf, 0x63, 0x59, 0x30, 0x5f, 0xfc, 0xf3, 0xab,
0x11, 0x5f, 0xc0, 0xdd, 0x4b, 0x55, 0x74, 0xae, 0xa4, 0x46, 0x42, 0x61, 0xa5, 0xaa, 0xaa, 0xfb,
0xde, 0x56, 0x67, 0xb4, 0xba, 0xbb, 0x19, 0xb4, 0xcc, 0x36, 0xb0, 0x1f, 0x77, 0x3c, 0x32, 0x84,
0x75, 0x89, 0xa7, 0x66, 0x72, 0xb5, 0x58, 0xbc, 0x56, 0x3d, 0xbf, 0xbe, 0x68, 0xb4, 0xfb, 0xd3,
0x83, 0xd5, 0x4a, 0x77, 0xe4, 0x56, 0x47, 0x4e, 0xa0, 0x73, 0x88, 0x86, 0x3c, 0x69, 0x0d, 0x68,
0x0e, 0x77, 0x70, 0x7d, 0x0b, 0xff, 0xf1, 0xd7, 0x1f, 0xbf, 0xbe, 0x2f, 0x6d, 0x92, 0x8d, 0xcb,
0x5b, 0xd2, 0xf4, 0x73, 0xbd, 0x8c, 0x2f, 0x44, 0xc0, 0x72, 0xf5, 0x4b, 0xb2, 0xdd, 0xea, 0x71,
0x75, 0x17, 0x83, 0xe1, 0xff, 0x68, 0x6e, 0x4e, 0xfe, 0x7d, 0x9b, 0xbb, 0x4e, 0xd6, 0x1a, 0xb9,
0xe3, 0xb7, 0xb0, 0xd1, 0xd0, 0xb3, 0x9c, 0xd7, 0x1e, 0xef, 0xf6, 0x52, 0x6e, 0xde, 0xcf, 0x8e,
0x83, 0xa9, 0xca, 0xa8, 0xe3, 0xec, 0xb8, 0xf3, 0x4a, 0xd5, 0x4e, 0x8a, 0xd2, 0x1e, 0x16, 0x6d,
0xb9, 0xbb, 0x3d, 0xce, 0xb2, 0xe3, 0xae, 0x85, 0x9f, 0xfd, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x14,
0x6a, 0xee, 0xf9, 0x13, 0x03, 0x00, 0x00,
var file_yandex_cloud_iam_v1_role_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_iam_v1_role_service_proto_goTypes = []interface{}{
(*GetRoleRequest)(nil), // 0: yandex.cloud.iam.v1.GetRoleRequest
(*ListRolesRequest)(nil), // 1: yandex.cloud.iam.v1.ListRolesRequest
(*ListRolesResponse)(nil), // 2: yandex.cloud.iam.v1.ListRolesResponse
(*Role)(nil), // 3: yandex.cloud.iam.v1.Role
}
var file_yandex_cloud_iam_v1_role_service_proto_depIdxs = []int32{
3, // 0: yandex.cloud.iam.v1.ListRolesResponse.roles:type_name -> yandex.cloud.iam.v1.Role
0, // 1: yandex.cloud.iam.v1.RoleService.Get:input_type -> yandex.cloud.iam.v1.GetRoleRequest
1, // 2: yandex.cloud.iam.v1.RoleService.List:input_type -> yandex.cloud.iam.v1.ListRolesRequest
3, // 3: yandex.cloud.iam.v1.RoleService.Get:output_type -> yandex.cloud.iam.v1.Role
2, // 4: yandex.cloud.iam.v1.RoleService.List:output_type -> yandex.cloud.iam.v1.ListRolesResponse
3, // [3:5] is the sub-list for method output_type
1, // [1:3] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_yandex_cloud_iam_v1_role_service_proto_init() }
func file_yandex_cloud_iam_v1_role_service_proto_init() {
if File_yandex_cloud_iam_v1_role_service_proto != nil {
return
}
file_yandex_cloud_iam_v1_role_proto_init()
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_iam_v1_role_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetRoleRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_iam_v1_role_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListRolesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_iam_v1_role_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListRolesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_iam_v1_role_service_proto_rawDesc,
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_yandex_cloud_iam_v1_role_service_proto_goTypes,
DependencyIndexes: file_yandex_cloud_iam_v1_role_service_proto_depIdxs,
MessageInfos: file_yandex_cloud_iam_v1_role_service_proto_msgTypes,
}.Build()
File_yandex_cloud_iam_v1_role_service_proto = out.File
file_yandex_cloud_iam_v1_role_service_proto_rawDesc = nil
file_yandex_cloud_iam_v1_role_service_proto_goTypes = nil
file_yandex_cloud_iam_v1_role_service_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
@ -287,10 +425,10 @@ type RoleServiceServer interface {
type UnimplementedRoleServiceServer struct {
}
func (*UnimplementedRoleServiceServer) Get(ctx context.Context, req *GetRoleRequest) (*Role, error) {
func (*UnimplementedRoleServiceServer) Get(context.Context, *GetRoleRequest) (*Role, error) {
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
}
func (*UnimplementedRoleServiceServer) List(ctx context.Context, req *ListRolesRequest) (*ListRolesResponse, error) {
func (*UnimplementedRoleServiceServer) List(context.Context, *ListRolesRequest) (*ListRolesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
}

View File

@ -1,29 +1,38 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/iam/v1/service_account.proto
package iam
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// A ServiceAccount resource. For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
type ServiceAccount struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the service account.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// ID of the folder that the service account belongs to.
@ -34,98 +43,168 @@ type ServiceAccount struct {
// The name is unique within the cloud. 3-63 characters long.
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
// Description of the service account. 0-256 characters long.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
}
func (m *ServiceAccount) Reset() { *m = ServiceAccount{} }
func (m *ServiceAccount) String() string { return proto.CompactTextString(m) }
func (*ServiceAccount) ProtoMessage() {}
func (x *ServiceAccount) Reset() {
*x = ServiceAccount{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iam_v1_service_account_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ServiceAccount) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ServiceAccount) ProtoMessage() {}
func (x *ServiceAccount) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iam_v1_service_account_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ServiceAccount.ProtoReflect.Descriptor instead.
func (*ServiceAccount) Descriptor() ([]byte, []int) {
return fileDescriptor_053d0ddb735dcde2, []int{0}
return file_yandex_cloud_iam_v1_service_account_proto_rawDescGZIP(), []int{0}
}
func (m *ServiceAccount) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServiceAccount.Unmarshal(m, b)
}
func (m *ServiceAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServiceAccount.Marshal(b, m, deterministic)
}
func (m *ServiceAccount) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServiceAccount.Merge(m, src)
}
func (m *ServiceAccount) XXX_Size() int {
return xxx_messageInfo_ServiceAccount.Size(m)
}
func (m *ServiceAccount) XXX_DiscardUnknown() {
xxx_messageInfo_ServiceAccount.DiscardUnknown(m)
}
var xxx_messageInfo_ServiceAccount proto.InternalMessageInfo
func (m *ServiceAccount) GetId() string {
if m != nil {
return m.Id
func (x *ServiceAccount) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (m *ServiceAccount) GetFolderId() string {
if m != nil {
return m.FolderId
func (x *ServiceAccount) GetFolderId() string {
if x != nil {
return x.FolderId
}
return ""
}
func (m *ServiceAccount) GetCreatedAt() *timestamp.Timestamp {
if m != nil {
return m.CreatedAt
func (x *ServiceAccount) GetCreatedAt() *timestamp.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (m *ServiceAccount) GetName() string {
if m != nil {
return m.Name
func (x *ServiceAccount) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *ServiceAccount) GetDescription() string {
if m != nil {
return m.Description
func (x *ServiceAccount) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func init() {
proto.RegisterType((*ServiceAccount)(nil), "yandex.cloud.iam.v1.ServiceAccount")
var File_yandex_cloud_iam_v1_service_account_proto protoreflect.FileDescriptor
var file_yandex_cloud_iam_v1_service_account_proto_rawDesc = []byte{
0x0a, 0x29, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69,
0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31,
0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x1d, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f,
0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0xae, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x49, 0x64,
0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
0x6e, 0x42, 0x56, 0x0a, 0x17, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x5a, 0x3b, 0x67, 0x69,
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69,
0x61, 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x69, 0x61, 0x6d, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/iam/v1/service_account.proto", fileDescriptor_053d0ddb735dcde2)
var (
file_yandex_cloud_iam_v1_service_account_proto_rawDescOnce sync.Once
file_yandex_cloud_iam_v1_service_account_proto_rawDescData = file_yandex_cloud_iam_v1_service_account_proto_rawDesc
)
func file_yandex_cloud_iam_v1_service_account_proto_rawDescGZIP() []byte {
file_yandex_cloud_iam_v1_service_account_proto_rawDescOnce.Do(func() {
file_yandex_cloud_iam_v1_service_account_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_iam_v1_service_account_proto_rawDescData)
})
return file_yandex_cloud_iam_v1_service_account_proto_rawDescData
}
var fileDescriptor_053d0ddb735dcde2 = []byte{
// 277 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xc1, 0x4b, 0xc3, 0x30,
0x18, 0xc5, 0xe9, 0x9c, 0x62, 0x33, 0xd8, 0x21, 0x1e, 0x2c, 0x15, 0xb1, 0x78, 0x9a, 0x87, 0x25,
0x4c, 0x4f, 0xb2, 0xd3, 0xbc, 0x79, 0x9d, 0xe2, 0xc1, 0x4b, 0xf9, 0x9a, 0x7c, 0xab, 0x1f, 0x34,
0x4d, 0x49, 0xd3, 0xa2, 0xff, 0x94, 0x7f, 0xa3, 0x98, 0x6c, 0xe0, 0xc0, 0x5b, 0x78, 0xef, 0x25,
0xef, 0x97, 0xc7, 0xee, 0xbe, 0xa0, 0xd5, 0xf8, 0x29, 0x55, 0x63, 0x07, 0x2d, 0x09, 0x8c, 0x1c,
0x57, 0xb2, 0x47, 0x37, 0x92, 0xc2, 0x12, 0x94, 0xb2, 0x43, 0xeb, 0x45, 0xe7, 0xac, 0xb7, 0xfc,
0x22, 0x46, 0x45, 0x88, 0x0a, 0x02, 0x23, 0xc6, 0x55, 0x7e, 0x53, 0x5b, 0x5b, 0x37, 0x28, 0x43,
0xa4, 0x1a, 0x76, 0xd2, 0x93, 0xc1, 0xde, 0x83, 0xe9, 0xe2, 0xad, 0xfc, 0xfa, 0xa8, 0x60, 0x84,
0x86, 0x34, 0x78, 0xb2, 0x6d, 0xb4, 0x6f, 0xbf, 0x13, 0x36, 0x7f, 0x89, 0x75, 0x9b, 0xd8, 0xc6,
0xe7, 0x6c, 0x42, 0x3a, 0x4b, 0x8a, 0x64, 0x91, 0x6e, 0x27, 0xa4, 0xf9, 0x15, 0x4b, 0x77, 0xb6,
0xd1, 0xe8, 0x4a, 0xd2, 0xd9, 0x24, 0xc8, 0xe7, 0x51, 0x78, 0xd6, 0xfc, 0x91, 0x31, 0xe5, 0x10,
0x3c, 0xea, 0x12, 0x7c, 0x76, 0x52, 0x24, 0x8b, 0xd9, 0x7d, 0x2e, 0x22, 0x94, 0x38, 0x40, 0x89,
0xd7, 0x03, 0xd4, 0x36, 0xdd, 0xa7, 0x37, 0x9e, 0x73, 0x36, 0x6d, 0xc1, 0x60, 0x36, 0x0d, 0x4f,
0x86, 0x33, 0x2f, 0xd8, 0x4c, 0x63, 0xaf, 0x1c, 0x75, 0xbf, 0x8c, 0xd9, 0x69, 0xb0, 0xfe, 0x4a,
0x4f, 0x6f, 0xec, 0xf2, 0x68, 0x07, 0xe8, 0x68, 0xbf, 0xc5, 0xfb, 0xba, 0x26, 0xff, 0x31, 0x54,
0x42, 0x59, 0x23, 0x63, 0x66, 0x19, 0x7f, 0x5d, 0xdb, 0x65, 0x8d, 0x6d, 0xa0, 0x91, 0xff, 0xec,
0xbd, 0x26, 0x30, 0xd5, 0x59, 0xb0, 0x1f, 0x7e, 0x02, 0x00, 0x00, 0xff, 0xff, 0x11, 0x3b, 0xcc,
0x61, 0x91, 0x01, 0x00, 0x00,
var file_yandex_cloud_iam_v1_service_account_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_iam_v1_service_account_proto_goTypes = []interface{}{
(*ServiceAccount)(nil), // 0: yandex.cloud.iam.v1.ServiceAccount
(*timestamp.Timestamp)(nil), // 1: google.protobuf.Timestamp
}
var file_yandex_cloud_iam_v1_service_account_proto_depIdxs = []int32{
1, // 0: yandex.cloud.iam.v1.ServiceAccount.created_at:type_name -> google.protobuf.Timestamp
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_yandex_cloud_iam_v1_service_account_proto_init() }
func file_yandex_cloud_iam_v1_service_account_proto_init() {
if File_yandex_cloud_iam_v1_service_account_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_iam_v1_service_account_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ServiceAccount); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_iam_v1_service_account_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_iam_v1_service_account_proto_goTypes,
DependencyIndexes: file_yandex_cloud_iam_v1_service_account_proto_depIdxs,
MessageInfos: file_yandex_cloud_iam_v1_service_account_proto_msgTypes,
}.Build()
File_yandex_cloud_iam_v1_service_account_proto = out.File
file_yandex_cloud_iam_v1_service_account_proto_rawDesc = nil
file_yandex_cloud_iam_v1_service_account_proto_goTypes = nil
file_yandex_cloud_iam_v1_service_account_proto_depIdxs = nil
}

View File

@ -1,87 +1,84 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/iam/v1/user_account.proto
package iam
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// Currently represents only [Yandex.Passport account](/docs/iam/concepts/#passport).
type UserAccount struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the user account.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Types that are valid to be assigned to UserAccount:
// Types that are assignable to UserAccount:
// *UserAccount_YandexPassportUserAccount
// *UserAccount_SamlUserAccount
UserAccount isUserAccount_UserAccount `protobuf_oneof:"user_account"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
UserAccount isUserAccount_UserAccount `protobuf_oneof:"user_account"`
}
func (m *UserAccount) Reset() { *m = UserAccount{} }
func (m *UserAccount) String() string { return proto.CompactTextString(m) }
func (*UserAccount) ProtoMessage() {}
func (x *UserAccount) Reset() {
*x = UserAccount{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iam_v1_user_account_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UserAccount) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserAccount) ProtoMessage() {}
func (x *UserAccount) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iam_v1_user_account_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UserAccount.ProtoReflect.Descriptor instead.
func (*UserAccount) Descriptor() ([]byte, []int) {
return fileDescriptor_101d694eed7724ca, []int{0}
return file_yandex_cloud_iam_v1_user_account_proto_rawDescGZIP(), []int{0}
}
func (m *UserAccount) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UserAccount.Unmarshal(m, b)
}
func (m *UserAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UserAccount.Marshal(b, m, deterministic)
}
func (m *UserAccount) XXX_Merge(src proto.Message) {
xxx_messageInfo_UserAccount.Merge(m, src)
}
func (m *UserAccount) XXX_Size() int {
return xxx_messageInfo_UserAccount.Size(m)
}
func (m *UserAccount) XXX_DiscardUnknown() {
xxx_messageInfo_UserAccount.DiscardUnknown(m)
}
var xxx_messageInfo_UserAccount proto.InternalMessageInfo
func (m *UserAccount) GetId() string {
if m != nil {
return m.Id
func (x *UserAccount) GetId() string {
if x != nil {
return x.Id
}
return ""
}
type isUserAccount_UserAccount interface {
isUserAccount_UserAccount()
}
type UserAccount_YandexPassportUserAccount struct {
YandexPassportUserAccount *YandexPassportUserAccount `protobuf:"bytes,2,opt,name=yandex_passport_user_account,json=yandexPassportUserAccount,proto3,oneof"`
}
type UserAccount_SamlUserAccount struct {
SamlUserAccount *SamlUserAccount `protobuf:"bytes,3,opt,name=saml_user_account,json=samlUserAccount,proto3,oneof"`
}
func (*UserAccount_YandexPassportUserAccount) isUserAccount_UserAccount() {}
func (*UserAccount_SamlUserAccount) isUserAccount_UserAccount() {}
func (m *UserAccount) GetUserAccount() isUserAccount_UserAccount {
if m != nil {
return m.UserAccount
@ -89,75 +86,93 @@ func (m *UserAccount) GetUserAccount() isUserAccount_UserAccount {
return nil
}
func (m *UserAccount) GetYandexPassportUserAccount() *YandexPassportUserAccount {
if x, ok := m.GetUserAccount().(*UserAccount_YandexPassportUserAccount); ok {
func (x *UserAccount) GetYandexPassportUserAccount() *YandexPassportUserAccount {
if x, ok := x.GetUserAccount().(*UserAccount_YandexPassportUserAccount); ok {
return x.YandexPassportUserAccount
}
return nil
}
func (m *UserAccount) GetSamlUserAccount() *SamlUserAccount {
if x, ok := m.GetUserAccount().(*UserAccount_SamlUserAccount); ok {
func (x *UserAccount) GetSamlUserAccount() *SamlUserAccount {
if x, ok := x.GetUserAccount().(*UserAccount_SamlUserAccount); ok {
return x.SamlUserAccount
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*UserAccount) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*UserAccount_YandexPassportUserAccount)(nil),
(*UserAccount_SamlUserAccount)(nil),
}
type isUserAccount_UserAccount interface {
isUserAccount_UserAccount()
}
type UserAccount_YandexPassportUserAccount struct {
// A YandexPassportUserAccount resource.
YandexPassportUserAccount *YandexPassportUserAccount `protobuf:"bytes,2,opt,name=yandex_passport_user_account,json=yandexPassportUserAccount,proto3,oneof"`
}
type UserAccount_SamlUserAccount struct {
// A SAML federated user.
SamlUserAccount *SamlUserAccount `protobuf:"bytes,3,opt,name=saml_user_account,json=samlUserAccount,proto3,oneof"`
}
func (*UserAccount_YandexPassportUserAccount) isUserAccount_UserAccount() {}
func (*UserAccount_SamlUserAccount) isUserAccount_UserAccount() {}
// A YandexPassportUserAccount resource.
// For more information, see [Yandex.Passport account](/docs/iam/concepts/#passport).
type YandexPassportUserAccount struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Login of the Yandex.Passport user account.
Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"`
// Default email of the Yandex.Passport user account.
DefaultEmail string `protobuf:"bytes,2,opt,name=default_email,json=defaultEmail,proto3" json:"default_email,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
DefaultEmail string `protobuf:"bytes,2,opt,name=default_email,json=defaultEmail,proto3" json:"default_email,omitempty"`
}
func (m *YandexPassportUserAccount) Reset() { *m = YandexPassportUserAccount{} }
func (m *YandexPassportUserAccount) String() string { return proto.CompactTextString(m) }
func (*YandexPassportUserAccount) ProtoMessage() {}
func (x *YandexPassportUserAccount) Reset() {
*x = YandexPassportUserAccount{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iam_v1_user_account_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *YandexPassportUserAccount) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*YandexPassportUserAccount) ProtoMessage() {}
func (x *YandexPassportUserAccount) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iam_v1_user_account_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use YandexPassportUserAccount.ProtoReflect.Descriptor instead.
func (*YandexPassportUserAccount) Descriptor() ([]byte, []int) {
return fileDescriptor_101d694eed7724ca, []int{1}
return file_yandex_cloud_iam_v1_user_account_proto_rawDescGZIP(), []int{1}
}
func (m *YandexPassportUserAccount) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_YandexPassportUserAccount.Unmarshal(m, b)
}
func (m *YandexPassportUserAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_YandexPassportUserAccount.Marshal(b, m, deterministic)
}
func (m *YandexPassportUserAccount) XXX_Merge(src proto.Message) {
xxx_messageInfo_YandexPassportUserAccount.Merge(m, src)
}
func (m *YandexPassportUserAccount) XXX_Size() int {
return xxx_messageInfo_YandexPassportUserAccount.Size(m)
}
func (m *YandexPassportUserAccount) XXX_DiscardUnknown() {
xxx_messageInfo_YandexPassportUserAccount.DiscardUnknown(m)
}
var xxx_messageInfo_YandexPassportUserAccount proto.InternalMessageInfo
func (m *YandexPassportUserAccount) GetLogin() string {
if m != nil {
return m.Login
func (x *YandexPassportUserAccount) GetLogin() string {
if x != nil {
return x.Login
}
return ""
}
func (m *YandexPassportUserAccount) GetDefaultEmail() string {
if m != nil {
return m.DefaultEmail
func (x *YandexPassportUserAccount) GetDefaultEmail() string {
if x != nil {
return x.DefaultEmail
}
return ""
}
@ -165,144 +180,286 @@ func (m *YandexPassportUserAccount) GetDefaultEmail() string {
// A SAML federated user.
// For more information, see [federations](/docs/iam/concepts/users/saml-federations).
type SamlUserAccount struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the federation that the federation belongs to.
FederationId string `protobuf:"bytes,1,opt,name=federation_id,json=federationId,proto3" json:"federation_id,omitempty"`
// Name Id of the SAML federated user.
// The name is unique within the federation. 1-256 characters long.
NameId string `protobuf:"bytes,2,opt,name=name_id,json=nameId,proto3" json:"name_id,omitempty"`
// Additional attributes of the SAML federated user.
Attributes map[string]*SamlUserAccount_Attribute `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,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:"-"`
Attributes map[string]*SamlUserAccount_Attribute `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (m *SamlUserAccount) Reset() { *m = SamlUserAccount{} }
func (m *SamlUserAccount) String() string { return proto.CompactTextString(m) }
func (*SamlUserAccount) ProtoMessage() {}
func (x *SamlUserAccount) Reset() {
*x = SamlUserAccount{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iam_v1_user_account_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SamlUserAccount) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SamlUserAccount) ProtoMessage() {}
func (x *SamlUserAccount) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iam_v1_user_account_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SamlUserAccount.ProtoReflect.Descriptor instead.
func (*SamlUserAccount) Descriptor() ([]byte, []int) {
return fileDescriptor_101d694eed7724ca, []int{2}
return file_yandex_cloud_iam_v1_user_account_proto_rawDescGZIP(), []int{2}
}
func (m *SamlUserAccount) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SamlUserAccount.Unmarshal(m, b)
}
func (m *SamlUserAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SamlUserAccount.Marshal(b, m, deterministic)
}
func (m *SamlUserAccount) XXX_Merge(src proto.Message) {
xxx_messageInfo_SamlUserAccount.Merge(m, src)
}
func (m *SamlUserAccount) XXX_Size() int {
return xxx_messageInfo_SamlUserAccount.Size(m)
}
func (m *SamlUserAccount) XXX_DiscardUnknown() {
xxx_messageInfo_SamlUserAccount.DiscardUnknown(m)
}
var xxx_messageInfo_SamlUserAccount proto.InternalMessageInfo
func (m *SamlUserAccount) GetFederationId() string {
if m != nil {
return m.FederationId
func (x *SamlUserAccount) GetFederationId() string {
if x != nil {
return x.FederationId
}
return ""
}
func (m *SamlUserAccount) GetNameId() string {
if m != nil {
return m.NameId
func (x *SamlUserAccount) GetNameId() string {
if x != nil {
return x.NameId
}
return ""
}
func (m *SamlUserAccount) GetAttributes() map[string]*SamlUserAccount_Attribute {
if m != nil {
return m.Attributes
func (x *SamlUserAccount) GetAttributes() map[string]*SamlUserAccount_Attribute {
if x != nil {
return x.Attributes
}
return nil
}
type SamlUserAccount_Attribute struct {
Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
}
func (m *SamlUserAccount_Attribute) Reset() { *m = SamlUserAccount_Attribute{} }
func (m *SamlUserAccount_Attribute) String() string { return proto.CompactTextString(m) }
func (*SamlUserAccount_Attribute) ProtoMessage() {}
func (x *SamlUserAccount_Attribute) Reset() {
*x = SamlUserAccount_Attribute{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iam_v1_user_account_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SamlUserAccount_Attribute) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SamlUserAccount_Attribute) ProtoMessage() {}
func (x *SamlUserAccount_Attribute) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iam_v1_user_account_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SamlUserAccount_Attribute.ProtoReflect.Descriptor instead.
func (*SamlUserAccount_Attribute) Descriptor() ([]byte, []int) {
return fileDescriptor_101d694eed7724ca, []int{2, 0}
return file_yandex_cloud_iam_v1_user_account_proto_rawDescGZIP(), []int{2, 0}
}
func (m *SamlUserAccount_Attribute) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SamlUserAccount_Attribute.Unmarshal(m, b)
}
func (m *SamlUserAccount_Attribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SamlUserAccount_Attribute.Marshal(b, m, deterministic)
}
func (m *SamlUserAccount_Attribute) XXX_Merge(src proto.Message) {
xxx_messageInfo_SamlUserAccount_Attribute.Merge(m, src)
}
func (m *SamlUserAccount_Attribute) XXX_Size() int {
return xxx_messageInfo_SamlUserAccount_Attribute.Size(m)
}
func (m *SamlUserAccount_Attribute) XXX_DiscardUnknown() {
xxx_messageInfo_SamlUserAccount_Attribute.DiscardUnknown(m)
}
var xxx_messageInfo_SamlUserAccount_Attribute proto.InternalMessageInfo
func (m *SamlUserAccount_Attribute) GetValue() []string {
if m != nil {
return m.Value
func (x *SamlUserAccount_Attribute) GetValue() []string {
if x != nil {
return x.Value
}
return nil
}
func init() {
proto.RegisterType((*UserAccount)(nil), "yandex.cloud.iam.v1.UserAccount")
proto.RegisterType((*YandexPassportUserAccount)(nil), "yandex.cloud.iam.v1.YandexPassportUserAccount")
proto.RegisterType((*SamlUserAccount)(nil), "yandex.cloud.iam.v1.SamlUserAccount")
proto.RegisterMapType((map[string]*SamlUserAccount_Attribute)(nil), "yandex.cloud.iam.v1.SamlUserAccount.AttributesEntry")
proto.RegisterType((*SamlUserAccount_Attribute)(nil), "yandex.cloud.iam.v1.SamlUserAccount.Attribute")
var File_yandex_cloud_iam_v1_user_account_proto protoreflect.FileDescriptor
var file_yandex_cloud_iam_v1_user_account_proto_rawDesc = []byte{
0x0a, 0x26, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69,
0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75,
0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x1a, 0x1d, 0x79,
0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, 0x61, 0x6c, 0x69,
0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfa, 0x01, 0x0a,
0x0b, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x71, 0x0a, 0x1c,
0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f,
0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x59, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x50,
0x61, 0x73, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75,
0x6e, 0x74, 0x48, 0x00, 0x52, 0x19, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x50, 0x61, 0x73, 0x73,
0x70, 0x6f, 0x72, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12,
0x52, 0x0a, 0x11, 0x73, 0x61, 0x6d, 0x6c, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x63, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31,
0x2e, 0x53, 0x61, 0x6d, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
0x48, 0x00, 0x52, 0x0f, 0x73, 0x61, 0x6d, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x42, 0x14, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x12, 0x04, 0xc0, 0xc1, 0x31, 0x01, 0x22, 0x56, 0x0a, 0x19, 0x59, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x50, 0x61, 0x73, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41,
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x23, 0x0a, 0x0d,
0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x45, 0x6d, 0x61, 0x69,
0x6c, 0x22, 0xd4, 0x02, 0x0a, 0x0f, 0x53, 0x61, 0x6d, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x31, 0x0a, 0x0d, 0x66, 0x65, 0x64, 0x65, 0x72, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0c, 0xe8, 0xc7,
0x31, 0x01, 0x8a, 0xc8, 0x31, 0x04, 0x3c, 0x3d, 0x35, 0x30, 0x52, 0x0c, 0x66, 0x65, 0x64, 0x65,
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x07, 0x6e, 0x61, 0x6d, 0x65,
0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0d, 0xe8, 0xc7, 0x31, 0x01, 0x8a,
0xc8, 0x31, 0x05, 0x31, 0x2d, 0x32, 0x35, 0x36, 0x52, 0x06, 0x6e, 0x61, 0x6d, 0x65, 0x49, 0x64,
0x12, 0x54, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x03,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x61, 0x6d, 0x6c, 0x55,
0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69,
0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72,
0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x1a, 0x21, 0x0a, 0x09, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62,
0x75, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x03,
0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x6d, 0x0a, 0x0f, 0x41, 0x74, 0x74,
0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x44,
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e,
0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61, 0x6d,
0x2e, 0x76, 0x31, 0x2e, 0x53, 0x61, 0x6d, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x05, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x56, 0x0a, 0x17, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x61, 0x6d,
0x2e, 0x76, 0x31, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d,
0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x69, 0x61, 0x6d,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/iam/v1/user_account.proto", fileDescriptor_101d694eed7724ca)
var (
file_yandex_cloud_iam_v1_user_account_proto_rawDescOnce sync.Once
file_yandex_cloud_iam_v1_user_account_proto_rawDescData = file_yandex_cloud_iam_v1_user_account_proto_rawDesc
)
func file_yandex_cloud_iam_v1_user_account_proto_rawDescGZIP() []byte {
file_yandex_cloud_iam_v1_user_account_proto_rawDescOnce.Do(func() {
file_yandex_cloud_iam_v1_user_account_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_iam_v1_user_account_proto_rawDescData)
})
return file_yandex_cloud_iam_v1_user_account_proto_rawDescData
}
var fileDescriptor_101d694eed7724ca = []byte{
// 451 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x4d, 0x6e, 0xd3, 0x40,
0x14, 0xc6, 0x76, 0x5b, 0x94, 0x97, 0x84, 0xc0, 0x50, 0x89, 0x34, 0x02, 0x29, 0x04, 0x54, 0x65,
0x93, 0x31, 0x0e, 0x14, 0x21, 0x0a, 0x8b, 0x46, 0x54, 0xa2, 0x3b, 0x64, 0xa0, 0x12, 0x6c, 0xac,
0x97, 0xcc, 0x34, 0x8c, 0x98, 0xf1, 0x04, 0x7b, 0x1c, 0x91, 0x2b, 0x70, 0x2a, 0x58, 0xc1, 0x01,
0x38, 0x04, 0x67, 0x60, 0x85, 0x3c, 0x76, 0x8b, 0x5d, 0x25, 0x88, 0x9d, 0xe7, 0x7d, 0x7f, 0x4f,
0x9f, 0x9e, 0x61, 0x7f, 0x85, 0x31, 0xe3, 0x9f, 0xfd, 0x99, 0xd4, 0x19, 0xf3, 0x05, 0x2a, 0x7f,
0x19, 0xf8, 0x59, 0xca, 0x93, 0x08, 0x67, 0x33, 0x9d, 0xc5, 0x86, 0x2e, 0x12, 0x6d, 0x34, 0xb9,
0x59, 0xf0, 0xa8, 0xe5, 0x51, 0x81, 0x8a, 0x2e, 0x83, 0xde, 0x9d, 0x9a, 0x78, 0x89, 0x52, 0x30,
0x34, 0x42, 0xc7, 0x85, 0x66, 0xf0, 0xdb, 0x81, 0xe6, 0xdb, 0x94, 0x27, 0x47, 0x85, 0x13, 0xb9,
0x06, 0xae, 0x60, 0x5d, 0xa7, 0xef, 0x0c, 0x1b, 0xa1, 0x2b, 0x18, 0xf9, 0x04, 0xb7, 0x0b, 0x83,
0x68, 0x81, 0x69, 0xba, 0xd0, 0x89, 0x89, 0xaa, 0xc9, 0x5d, 0xb7, 0xef, 0x0c, 0x9b, 0x63, 0x4a,
0xd7, 0x44, 0xd3, 0x77, 0x76, 0xf6, 0xaa, 0xd4, 0x55, 0x52, 0x5e, 0x5e, 0x09, 0xf7, 0x56, 0x9b,
0x40, 0x12, 0xc2, 0x8d, 0x14, 0x95, 0xac, 0xe7, 0x78, 0x36, 0xe7, 0xfe, 0xda, 0x9c, 0xd7, 0xa8,
0x64, 0xdd, 0xbd, 0x93, 0xd6, 0x47, 0x93, 0x5d, 0x68, 0x55, 0xed, 0xc8, 0xd6, 0xd7, 0x6f, 0x81,
0x33, 0x38, 0x85, 0xbd, 0x8d, 0x3b, 0x92, 0x5d, 0xd8, 0x96, 0x7a, 0x2e, 0xe2, 0xb2, 0x8c, 0xe2,
0x41, 0xee, 0x41, 0x9b, 0xf1, 0x33, 0xcc, 0xa4, 0x89, 0xb8, 0x42, 0x21, 0x6d, 0x01, 0x8d, 0xb0,
0x55, 0x0e, 0x8f, 0xf3, 0xd9, 0xe0, 0xa7, 0x0b, 0x9d, 0x4b, 0x4b, 0x91, 0x00, 0xda, 0x67, 0x9c,
0xf1, 0xc4, 0x96, 0x1f, 0x9d, 0x77, 0x3c, 0x69, 0xfd, 0xfa, 0x1e, 0x38, 0x5f, 0x7e, 0x04, 0x5b,
0xcf, 0x9e, 0x1f, 0x3c, 0x08, 0x5b, 0x7f, 0x29, 0x27, 0x8c, 0xec, 0xc3, 0xd5, 0x18, 0x15, 0xcf,
0xc9, 0x36, 0x65, 0xd2, 0x2e, 0xc9, 0xdb, 0xc1, 0x68, 0x7c, 0xf0, 0x38, 0xdc, 0xc9, 0xd1, 0x13,
0x46, 0xde, 0x00, 0xa0, 0x31, 0x89, 0x98, 0x66, 0x86, 0xa7, 0x5d, 0xaf, 0xef, 0x0d, 0x9b, 0xe3,
0x47, 0xff, 0xd3, 0x14, 0x3d, 0xba, 0x90, 0x1d, 0xc7, 0x26, 0x59, 0x85, 0x15, 0x9f, 0xde, 0x5d,
0x68, 0x5c, 0xc0, 0x79, 0x19, 0x4b, 0x94, 0x19, 0xef, 0x3a, 0x7d, 0x2f, 0x2f, 0xc3, 0x3e, 0x7a,
0x0a, 0x3a, 0x97, 0x1c, 0xc8, 0x75, 0xf0, 0x3e, 0xf2, 0x55, 0xd9, 0x59, 0xfe, 0x49, 0x5e, 0x9c,
0x4b, 0xff, 0x75, 0x2a, 0x1b, 0x17, 0x2b, 0xa3, 0x9e, 0xba, 0x4f, 0x9c, 0xc9, 0x29, 0xdc, 0xaa,
0x69, 0x71, 0x21, 0x4a, 0xfd, 0xfb, 0xc3, 0xb9, 0x30, 0x1f, 0xb2, 0x29, 0x9d, 0x69, 0xe5, 0x17,
0x9c, 0x51, 0x71, 0xf0, 0x73, 0x3d, 0x9a, 0xf3, 0xd8, 0xde, 0xba, 0xbf, 0xe6, 0x37, 0x3a, 0x14,
0xa8, 0xa6, 0x3b, 0x16, 0x7e, 0xf8, 0x27, 0x00, 0x00, 0xff, 0xff, 0xf4, 0x7a, 0xf0, 0xec, 0x68,
0x03, 0x00, 0x00,
var file_yandex_cloud_iam_v1_user_account_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_yandex_cloud_iam_v1_user_account_proto_goTypes = []interface{}{
(*UserAccount)(nil), // 0: yandex.cloud.iam.v1.UserAccount
(*YandexPassportUserAccount)(nil), // 1: yandex.cloud.iam.v1.YandexPassportUserAccount
(*SamlUserAccount)(nil), // 2: yandex.cloud.iam.v1.SamlUserAccount
(*SamlUserAccount_Attribute)(nil), // 3: yandex.cloud.iam.v1.SamlUserAccount.Attribute
nil, // 4: yandex.cloud.iam.v1.SamlUserAccount.AttributesEntry
}
var file_yandex_cloud_iam_v1_user_account_proto_depIdxs = []int32{
1, // 0: yandex.cloud.iam.v1.UserAccount.yandex_passport_user_account:type_name -> yandex.cloud.iam.v1.YandexPassportUserAccount
2, // 1: yandex.cloud.iam.v1.UserAccount.saml_user_account:type_name -> yandex.cloud.iam.v1.SamlUserAccount
4, // 2: yandex.cloud.iam.v1.SamlUserAccount.attributes:type_name -> yandex.cloud.iam.v1.SamlUserAccount.AttributesEntry
3, // 3: yandex.cloud.iam.v1.SamlUserAccount.AttributesEntry.value:type_name -> yandex.cloud.iam.v1.SamlUserAccount.Attribute
4, // [4:4] is the sub-list for method output_type
4, // [4:4] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_yandex_cloud_iam_v1_user_account_proto_init() }
func file_yandex_cloud_iam_v1_user_account_proto_init() {
if File_yandex_cloud_iam_v1_user_account_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_iam_v1_user_account_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UserAccount); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_iam_v1_user_account_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*YandexPassportUserAccount); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_iam_v1_user_account_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SamlUserAccount); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_iam_v1_user_account_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SamlUserAccount_Attribute); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_yandex_cloud_iam_v1_user_account_proto_msgTypes[0].OneofWrappers = []interface{}{
(*UserAccount_YandexPassportUserAccount)(nil),
(*UserAccount_SamlUserAccount)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_iam_v1_user_account_proto_rawDesc,
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_iam_v1_user_account_proto_goTypes,
DependencyIndexes: file_yandex_cloud_iam_v1_user_account_proto_depIdxs,
MessageInfos: file_yandex_cloud_iam_v1_user_account_proto_msgTypes,
}.Build()
File_yandex_cloud_iam_v1_user_account_proto = out.File
file_yandex_cloud_iam_v1_user_account_proto_rawDesc = nil
file_yandex_cloud_iam_v1_user_account_proto_goTypes = nil
file_yandex_cloud_iam_v1_user_account_proto_depIdxs = nil
}

View File

@ -1,100 +1,186 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/iam/v1/user_account_service.proto
package iam
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type GetUserAccountRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the UserAccount resource to return.
UserAccountId string `protobuf:"bytes,1,opt,name=user_account_id,json=userAccountId,proto3" json:"user_account_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
UserAccountId string `protobuf:"bytes,1,opt,name=user_account_id,json=userAccountId,proto3" json:"user_account_id,omitempty"`
}
func (m *GetUserAccountRequest) Reset() { *m = GetUserAccountRequest{} }
func (m *GetUserAccountRequest) String() string { return proto.CompactTextString(m) }
func (*GetUserAccountRequest) ProtoMessage() {}
func (x *GetUserAccountRequest) Reset() {
*x = GetUserAccountRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iam_v1_user_account_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetUserAccountRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetUserAccountRequest) ProtoMessage() {}
func (x *GetUserAccountRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iam_v1_user_account_service_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetUserAccountRequest.ProtoReflect.Descriptor instead.
func (*GetUserAccountRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_68bca2edf26b1c68, []int{0}
return file_yandex_cloud_iam_v1_user_account_service_proto_rawDescGZIP(), []int{0}
}
func (m *GetUserAccountRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetUserAccountRequest.Unmarshal(m, b)
}
func (m *GetUserAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetUserAccountRequest.Marshal(b, m, deterministic)
}
func (m *GetUserAccountRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetUserAccountRequest.Merge(m, src)
}
func (m *GetUserAccountRequest) XXX_Size() int {
return xxx_messageInfo_GetUserAccountRequest.Size(m)
}
func (m *GetUserAccountRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetUserAccountRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetUserAccountRequest proto.InternalMessageInfo
func (m *GetUserAccountRequest) GetUserAccountId() string {
if m != nil {
return m.UserAccountId
func (x *GetUserAccountRequest) GetUserAccountId() string {
if x != nil {
return x.UserAccountId
}
return ""
}
func init() {
proto.RegisterType((*GetUserAccountRequest)(nil), "yandex.cloud.iam.v1.GetUserAccountRequest")
var File_yandex_cloud_iam_v1_user_account_service_proto protoreflect.FileDescriptor
var file_yandex_cloud_iam_v1_user_account_service_proto_rawDesc = []byte{
0x0a, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69,
0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75,
0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x13, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69,
0x61, 0x6d, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4d, 0x0a, 0x15, 0x47, 0x65,
0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0c, 0xe8, 0xc7,
0x31, 0x01, 0x8a, 0xc8, 0x31, 0x04, 0x3c, 0x3d, 0x35, 0x30, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x72,
0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x32, 0x9a, 0x01, 0x0a, 0x12, 0x55, 0x73,
0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
0x12, 0x83, 0x01, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x2a, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47,
0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41,
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26,
0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75,
0x6e, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x42, 0x56, 0x0a, 0x17, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76,
0x31, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61,
0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65,
0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x69, 0x61, 0x6d, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/iam/v1/user_account_service.proto", fileDescriptor_68bca2edf26b1c68)
var (
file_yandex_cloud_iam_v1_user_account_service_proto_rawDescOnce sync.Once
file_yandex_cloud_iam_v1_user_account_service_proto_rawDescData = file_yandex_cloud_iam_v1_user_account_service_proto_rawDesc
)
func file_yandex_cloud_iam_v1_user_account_service_proto_rawDescGZIP() []byte {
file_yandex_cloud_iam_v1_user_account_service_proto_rawDescOnce.Do(func() {
file_yandex_cloud_iam_v1_user_account_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_iam_v1_user_account_service_proto_rawDescData)
})
return file_yandex_cloud_iam_v1_user_account_service_proto_rawDescData
}
var fileDescriptor_68bca2edf26b1c68 = []byte{
// 293 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xab, 0x4c, 0xcc, 0x4b,
0x49, 0xad, 0xd0, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0xcf, 0x4c, 0xcc, 0xd5, 0x2f, 0x33, 0xd4,
0x2f, 0x2d, 0x4e, 0x2d, 0x8a, 0x4f, 0x4c, 0x4e, 0xce, 0x2f, 0xcd, 0x2b, 0x89, 0x2f, 0x4e, 0x2d,
0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, 0xa8, 0xd7, 0x03,
0xab, 0xd7, 0xcb, 0x4c, 0xcc, 0xd5, 0x2b, 0x33, 0x94, 0x92, 0x49, 0xcf, 0xcf, 0x4f, 0xcf, 0x49,
0xd5, 0x4f, 0x2c, 0xc8, 0xd4, 0x4f, 0xcc, 0xcb, 0xcb, 0x2f, 0x49, 0x2c, 0xc9, 0xcc, 0xcf, 0x2b,
0x86, 0x68, 0x91, 0x52, 0x23, 0x64, 0x05, 0x54, 0x9d, 0x2c, 0x8a, 0xba, 0xb2, 0xc4, 0x9c, 0xcc,
0x14, 0xb0, 0x39, 0x10, 0x69, 0x25, 0x5f, 0x2e, 0x51, 0xf7, 0xd4, 0x92, 0xd0, 0xe2, 0xd4, 0x22,
0x47, 0x88, 0xb6, 0xa0, 0xd4, 0xc2, 0xd2, 0xd4, 0xe2, 0x12, 0x21, 0x13, 0x2e, 0x7e, 0x14, 0x07,
0x67, 0xa6, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x3a, 0xf1, 0xbc, 0x38, 0x6e, 0xc8, 0xd8, 0x75,
0xc2, 0x90, 0xc5, 0xc6, 0xd6, 0xd4, 0x20, 0x88, 0xb7, 0x14, 0xa1, 0xd5, 0x33, 0xc5, 0x68, 0x16,
0x23, 0x97, 0x10, 0x92, 0x61, 0xc1, 0x10, 0x5f, 0x0a, 0x35, 0x33, 0x72, 0x31, 0xbb, 0xa7, 0x96,
0x08, 0x69, 0xe9, 0x61, 0xf1, 0xa8, 0x1e, 0x56, 0x07, 0x48, 0x29, 0x60, 0x55, 0x8b, 0xa4, 0x50,
0x49, 0xaf, 0xe9, 0xf2, 0x93, 0xc9, 0x4c, 0x1a, 0x42, 0x6a, 0xc8, 0xde, 0x87, 0x4a, 0x16, 0xeb,
0x57, 0xa3, 0x39, 0xbf, 0xd6, 0x29, 0x8c, 0x4b, 0x1c, 0xc5, 0xc8, 0xc4, 0x82, 0x4c, 0xa8, 0xb1,
0x51, 0xd6, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x10, 0x35, 0xba,
0x90, 0x00, 0x4b, 0xcf, 0xd7, 0x4d, 0x4f, 0xcd, 0x03, 0x87, 0x95, 0x3e, 0x96, 0x10, 0xb7, 0xce,
0x4c, 0xcc, 0x4d, 0x62, 0x03, 0x4b, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x42, 0x6c, 0x28,
0xfe, 0xf6, 0x01, 0x00, 0x00,
var file_yandex_cloud_iam_v1_user_account_service_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_iam_v1_user_account_service_proto_goTypes = []interface{}{
(*GetUserAccountRequest)(nil), // 0: yandex.cloud.iam.v1.GetUserAccountRequest
(*UserAccount)(nil), // 1: yandex.cloud.iam.v1.UserAccount
}
var file_yandex_cloud_iam_v1_user_account_service_proto_depIdxs = []int32{
0, // 0: yandex.cloud.iam.v1.UserAccountService.Get:input_type -> yandex.cloud.iam.v1.GetUserAccountRequest
1, // 1: yandex.cloud.iam.v1.UserAccountService.Get:output_type -> yandex.cloud.iam.v1.UserAccount
1, // [1:2] is the sub-list for method output_type
0, // [0:1] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_yandex_cloud_iam_v1_user_account_service_proto_init() }
func file_yandex_cloud_iam_v1_user_account_service_proto_init() {
if File_yandex_cloud_iam_v1_user_account_service_proto != nil {
return
}
file_yandex_cloud_iam_v1_user_account_proto_init()
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_iam_v1_user_account_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetUserAccountRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_iam_v1_user_account_service_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_yandex_cloud_iam_v1_user_account_service_proto_goTypes,
DependencyIndexes: file_yandex_cloud_iam_v1_user_account_service_proto_depIdxs,
MessageInfos: file_yandex_cloud_iam_v1_user_account_service_proto_msgTypes,
}.Build()
File_yandex_cloud_iam_v1_user_account_service_proto = out.File
file_yandex_cloud_iam_v1_user_account_service_proto_rawDesc = nil
file_yandex_cloud_iam_v1_user_account_service_proto_goTypes = nil
file_yandex_cloud_iam_v1_user_account_service_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
@ -140,7 +226,7 @@ type UserAccountServiceServer interface {
type UnimplementedUserAccountServiceServer struct {
}
func (*UnimplementedUserAccountServiceServer) Get(ctx context.Context, req *GetUserAccountRequest) (*UserAccount, error) {
func (*UnimplementedUserAccountServiceServer) Get(context.Context, *GetUserAccountRequest) (*UserAccount, error) {
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
}

View File

@ -1,100 +1,188 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/iam/v1/yandex_passport_user_account_service.proto
package iam
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type GetUserAccountByLoginRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Login of the YandexPassportUserAccount resource to return.
Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"`
}
func (m *GetUserAccountByLoginRequest) Reset() { *m = GetUserAccountByLoginRequest{} }
func (m *GetUserAccountByLoginRequest) String() string { return proto.CompactTextString(m) }
func (*GetUserAccountByLoginRequest) ProtoMessage() {}
func (x *GetUserAccountByLoginRequest) Reset() {
*x = GetUserAccountByLoginRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetUserAccountByLoginRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetUserAccountByLoginRequest) ProtoMessage() {}
func (x *GetUserAccountByLoginRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetUserAccountByLoginRequest.ProtoReflect.Descriptor instead.
func (*GetUserAccountByLoginRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_681b9335544bf99c, []int{0}
return file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_rawDescGZIP(), []int{0}
}
func (m *GetUserAccountByLoginRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetUserAccountByLoginRequest.Unmarshal(m, b)
}
func (m *GetUserAccountByLoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetUserAccountByLoginRequest.Marshal(b, m, deterministic)
}
func (m *GetUserAccountByLoginRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetUserAccountByLoginRequest.Merge(m, src)
}
func (m *GetUserAccountByLoginRequest) XXX_Size() int {
return xxx_messageInfo_GetUserAccountByLoginRequest.Size(m)
}
func (m *GetUserAccountByLoginRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetUserAccountByLoginRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetUserAccountByLoginRequest proto.InternalMessageInfo
func (m *GetUserAccountByLoginRequest) GetLogin() string {
if m != nil {
return m.Login
func (x *GetUserAccountByLoginRequest) GetLogin() string {
if x != nil {
return x.Login
}
return ""
}
func init() {
proto.RegisterType((*GetUserAccountByLoginRequest)(nil), "yandex.cloud.iam.v1.GetUserAccountByLoginRequest")
var File_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto protoreflect.FileDescriptor
var file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_rawDesc = []byte{
0x0a, 0x3e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69,
0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x70, 0x61, 0x73,
0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75,
0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x13, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69,
0x61, 0x6d, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3a, 0x0a, 0x1c, 0x47, 0x65,
0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x4c, 0x6f,
0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x05, 0x6c, 0x6f,
0x67, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe8, 0xc7, 0x31, 0x01, 0x52,
0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x32, 0xba, 0x01, 0x0a, 0x20, 0x59, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x50, 0x61, 0x73, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x95, 0x01, 0x0a, 0x0a,
0x47, 0x65, 0x74, 0x42, 0x79, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x31, 0x2e, 0x79, 0x61, 0x6e,
0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31,
0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42,
0x79, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e,
0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61, 0x6d,
0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22,
0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31,
0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x50, 0x61, 0x73, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x55,
0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x3a, 0x62, 0x79, 0x4c, 0x6f,
0x67, 0x69, 0x6e, 0x42, 0x56, 0x0a, 0x17, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x5a, 0x3b,
0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x69, 0x61, 0x6d, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/iam/v1/yandex_passport_user_account_service.proto", fileDescriptor_681b9335544bf99c)
var (
file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_rawDescOnce sync.Once
file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_rawDescData = file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_rawDesc
)
func file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_rawDescGZIP() []byte {
file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_rawDescOnce.Do(func() {
file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_rawDescData)
})
return file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_rawDescData
}
var fileDescriptor_681b9335544bf99c = []byte{
// 304 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0x31, 0x4a, 0xc4, 0x40,
0x14, 0x86, 0x89, 0xa8, 0xe0, 0x94, 0xb1, 0x50, 0xc2, 0x0a, 0xcb, 0x16, 0x22, 0xe2, 0xce, 0x90,
0xb5, 0xdb, 0x05, 0xc1, 0x6d, 0xb6, 0xb1, 0x90, 0x15, 0x05, 0x6d, 0xc2, 0x4b, 0xf2, 0x18, 0x07,
0x92, 0x79, 0x31, 0x33, 0x09, 0x6e, 0xeb, 0x15, 0xc4, 0xcb, 0x78, 0x01, 0x0f, 0xe0, 0x15, 0x2c,
0x3c, 0x86, 0x98, 0x89, 0x90, 0x40, 0xb0, 0x9c, 0x79, 0xff, 0xff, 0xbd, 0xf7, 0xff, 0xec, 0x62,
0x03, 0x3a, 0xc5, 0x67, 0x91, 0x64, 0x54, 0xa5, 0x42, 0x41, 0x2e, 0xea, 0x50, 0xb8, 0xbf, 0xa8,
0x00, 0x63, 0x0a, 0x2a, 0x6d, 0x54, 0x19, 0x2c, 0x23, 0x48, 0x12, 0xaa, 0xb4, 0x8d, 0x0c, 0x96,
0xb5, 0x4a, 0x90, 0x17, 0x25, 0x59, 0xf2, 0xf7, 0x9d, 0x96, 0x37, 0x7e, 0xae, 0x20, 0xe7, 0x75,
0x18, 0x8c, 0x24, 0x91, 0xcc, 0x50, 0x40, 0xa1, 0x04, 0x68, 0x4d, 0x16, 0xac, 0x22, 0x6d, 0x9c,
0x25, 0x38, 0x1e, 0x5a, 0xd9, 0x5d, 0xd1, 0xea, 0x8e, 0x7a, 0xba, 0x1a, 0x32, 0x95, 0x36, 0x1c,
0x37, 0x9e, 0xcc, 0xd9, 0x68, 0x85, 0xf6, 0xd6, 0x60, 0x79, 0xe9, 0x6c, 0xcb, 0xcd, 0x15, 0x49,
0xa5, 0xd7, 0xf8, 0x54, 0xa1, 0xb1, 0x7e, 0xc0, 0x76, 0xb2, 0xdf, 0xf7, 0xa1, 0x37, 0xf6, 0x4e,
0xf6, 0x96, 0xdb, 0xdf, 0x1f, 0xa1, 0xb7, 0x76, 0x5f, 0xb3, 0x77, 0x8f, 0x8d, 0xef, 0x1b, 0xfa,
0x75, 0x9b, 0xb1, 0xc3, 0xb9, 0x71, 0x01, 0xfd, 0x37, 0x8f, 0xb1, 0x15, 0xfe, 0x61, 0xfd, 0x90,
0x0f, 0x44, 0xe5, 0xff, 0x9d, 0x10, 0x8c, 0x07, 0x2d, 0x1d, 0xfd, 0x64, 0xf6, 0xf2, 0xf9, 0xf5,
0xba, 0x75, 0xe6, 0x9f, 0xf6, 0xab, 0x1f, 0xb8, 0xca, 0xcc, 0x63, 0x07, 0x5f, 0xde, 0xb1, 0x83,
0x1e, 0x16, 0x0a, 0xd5, 0xa2, 0x1f, 0x16, 0x52, 0xd9, 0xc7, 0x2a, 0xe6, 0x09, 0xe5, 0x2d, 0x69,
0xea, 0xda, 0x93, 0x34, 0x95, 0xa8, 0x9b, 0xe2, 0xc4, 0x40, 0xfd, 0x0b, 0x05, 0x79, 0xbc, 0xdb,
0x8c, 0xcf, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x79, 0xeb, 0xca, 0x13, 0x02, 0x00, 0x00,
var file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_goTypes = []interface{}{
(*GetUserAccountByLoginRequest)(nil), // 0: yandex.cloud.iam.v1.GetUserAccountByLoginRequest
(*UserAccount)(nil), // 1: yandex.cloud.iam.v1.UserAccount
}
var file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_depIdxs = []int32{
0, // 0: yandex.cloud.iam.v1.YandexPassportUserAccountService.GetByLogin:input_type -> yandex.cloud.iam.v1.GetUserAccountByLoginRequest
1, // 1: yandex.cloud.iam.v1.YandexPassportUserAccountService.GetByLogin:output_type -> yandex.cloud.iam.v1.UserAccount
1, // [1:2] is the sub-list for method output_type
0, // [0:1] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_init() }
func file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_init() {
if File_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto != nil {
return
}
file_yandex_cloud_iam_v1_user_account_proto_init()
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetUserAccountByLoginRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_goTypes,
DependencyIndexes: file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_depIdxs,
MessageInfos: file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_msgTypes,
}.Build()
File_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto = out.File
file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_rawDesc = nil
file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_goTypes = nil
file_yandex_cloud_iam_v1_yandex_passport_user_account_service_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
@ -140,7 +228,7 @@ type YandexPassportUserAccountServiceServer interface {
type UnimplementedYandexPassportUserAccountServiceServer struct {
}
func (*UnimplementedYandexPassportUserAccountServiceServer) GetByLogin(ctx context.Context, req *GetUserAccountByLoginRequest) (*UserAccount, error) {
func (*UnimplementedYandexPassportUserAccountServiceServer) GetByLogin(context.Context, *GetUserAccountByLoginRequest) (*UserAccount, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetByLogin not implemented")
}

View File

@ -1,26 +1,80 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/iot/devices/v1/device.proto
package devices
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type DeviceView int32
const (
// Server responses without monitoring data.
// The default value.
DeviceView_BASIC DeviceView = 0
// Server responses with monitoring data.
DeviceView_FULL DeviceView = 1
)
// Enum value maps for DeviceView.
var (
DeviceView_name = map[int32]string{
0: "BASIC",
1: "FULL",
}
DeviceView_value = map[string]int32{
"BASIC": 0,
"FULL": 1,
}
)
func (x DeviceView) Enum() *DeviceView {
p := new(DeviceView)
*p = x
return p
}
func (x DeviceView) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DeviceView) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_iot_devices_v1_device_proto_enumTypes[0].Descriptor()
}
func (DeviceView) Type() protoreflect.EnumType {
return &file_yandex_cloud_iot_devices_v1_device_proto_enumTypes[0]
}
func (x DeviceView) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DeviceView.Descriptor instead.
func (DeviceView) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_iot_devices_v1_device_proto_rawDescGZIP(), []int{0}
}
type Device_Status int32
@ -34,30 +88,55 @@ const (
Device_DELETING Device_Status = 3
)
var Device_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "CREATING",
2: "ACTIVE",
3: "DELETING",
}
// Enum value maps for Device_Status.
var (
Device_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "CREATING",
2: "ACTIVE",
3: "DELETING",
}
Device_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"CREATING": 1,
"ACTIVE": 2,
"DELETING": 3,
}
)
var Device_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"CREATING": 1,
"ACTIVE": 2,
"DELETING": 3,
func (x Device_Status) Enum() *Device_Status {
p := new(Device_Status)
*p = x
return p
}
func (x Device_Status) String() string {
return proto.EnumName(Device_Status_name, int32(x))
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Device_Status) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_iot_devices_v1_device_proto_enumTypes[1].Descriptor()
}
func (Device_Status) Type() protoreflect.EnumType {
return &file_yandex_cloud_iot_devices_v1_device_proto_enumTypes[1]
}
func (x Device_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Device_Status.Descriptor instead.
func (Device_Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_dc5d5b38a6ba5ae6, []int{0, 0}
return file_yandex_cloud_iot_devices_v1_device_proto_rawDescGZIP(), []int{0, 0}
}
// A device. For more information, see [Device](/docs/iot-core/concepts/index#device).
type Device struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the device.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// ID of the registry that the device belongs to.
@ -73,88 +152,105 @@ type Device struct {
// Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/abcdef/events`.
TopicAliases map[string]string `protobuf:"bytes,6,rep,name=topic_aliases,json=topicAliases,proto3" json:"topic_aliases,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Status of the device.
Status Device_Status `protobuf:"varint,7,opt,name=status,proto3,enum=yandex.cloud.iot.devices.v1.Device_Status" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Status Device_Status `protobuf:"varint,7,opt,name=status,proto3,enum=yandex.cloud.iot.devices.v1.Device_Status" json:"status,omitempty"`
// Device monitoring data, returns if FULL view specified.
MonitoringData *DeviceMonitoringData `protobuf:"bytes,8,opt,name=monitoring_data,json=monitoringData,proto3" json:"monitoring_data,omitempty"`
}
func (m *Device) Reset() { *m = Device{} }
func (m *Device) String() string { return proto.CompactTextString(m) }
func (*Device) ProtoMessage() {}
func (x *Device) Reset() {
*x = Device{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iot_devices_v1_device_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Device) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Device) ProtoMessage() {}
func (x *Device) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iot_devices_v1_device_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Device.ProtoReflect.Descriptor instead.
func (*Device) Descriptor() ([]byte, []int) {
return fileDescriptor_dc5d5b38a6ba5ae6, []int{0}
return file_yandex_cloud_iot_devices_v1_device_proto_rawDescGZIP(), []int{0}
}
func (m *Device) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Device.Unmarshal(m, b)
}
func (m *Device) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Device.Marshal(b, m, deterministic)
}
func (m *Device) XXX_Merge(src proto.Message) {
xxx_messageInfo_Device.Merge(m, src)
}
func (m *Device) XXX_Size() int {
return xxx_messageInfo_Device.Size(m)
}
func (m *Device) XXX_DiscardUnknown() {
xxx_messageInfo_Device.DiscardUnknown(m)
}
var xxx_messageInfo_Device proto.InternalMessageInfo
func (m *Device) GetId() string {
if m != nil {
return m.Id
func (x *Device) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (m *Device) GetRegistryId() string {
if m != nil {
return m.RegistryId
func (x *Device) GetRegistryId() string {
if x != nil {
return x.RegistryId
}
return ""
}
func (m *Device) GetCreatedAt() *timestamp.Timestamp {
if m != nil {
return m.CreatedAt
func (x *Device) GetCreatedAt() *timestamp.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (m *Device) GetName() string {
if m != nil {
return m.Name
func (x *Device) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *Device) GetDescription() string {
if m != nil {
return m.Description
func (x *Device) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (m *Device) GetTopicAliases() map[string]string {
if m != nil {
return m.TopicAliases
func (x *Device) GetTopicAliases() map[string]string {
if x != nil {
return x.TopicAliases
}
return nil
}
func (m *Device) GetStatus() Device_Status {
if m != nil {
return m.Status
func (x *Device) GetStatus() Device_Status {
if x != nil {
return x.Status
}
return Device_STATUS_UNSPECIFIED
}
func (x *Device) GetMonitoringData() *DeviceMonitoringData {
if x != nil {
return x.MonitoringData
}
return nil
}
// A device certificate. For more information, see [Managing device certificates](/docs/iot-core/operations/certificates/device-certificates).
type DeviceCertificate struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the device that the certificate belongs to.
DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
// SHA256 hash of the certificate.
@ -162,169 +258,429 @@ type DeviceCertificate struct {
// Public part of the certificate.
CertificateData string `protobuf:"bytes,3,opt,name=certificate_data,json=certificateData,proto3" json:"certificate_data,omitempty"`
// Creation timestamp.
CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
}
func (m *DeviceCertificate) Reset() { *m = DeviceCertificate{} }
func (m *DeviceCertificate) String() string { return proto.CompactTextString(m) }
func (*DeviceCertificate) ProtoMessage() {}
func (x *DeviceCertificate) Reset() {
*x = DeviceCertificate{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iot_devices_v1_device_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeviceCertificate) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeviceCertificate) ProtoMessage() {}
func (x *DeviceCertificate) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iot_devices_v1_device_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeviceCertificate.ProtoReflect.Descriptor instead.
func (*DeviceCertificate) Descriptor() ([]byte, []int) {
return fileDescriptor_dc5d5b38a6ba5ae6, []int{1}
return file_yandex_cloud_iot_devices_v1_device_proto_rawDescGZIP(), []int{1}
}
func (m *DeviceCertificate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeviceCertificate.Unmarshal(m, b)
}
func (m *DeviceCertificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeviceCertificate.Marshal(b, m, deterministic)
}
func (m *DeviceCertificate) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeviceCertificate.Merge(m, src)
}
func (m *DeviceCertificate) XXX_Size() int {
return xxx_messageInfo_DeviceCertificate.Size(m)
}
func (m *DeviceCertificate) XXX_DiscardUnknown() {
xxx_messageInfo_DeviceCertificate.DiscardUnknown(m)
}
var xxx_messageInfo_DeviceCertificate proto.InternalMessageInfo
func (m *DeviceCertificate) GetDeviceId() string {
if m != nil {
return m.DeviceId
func (x *DeviceCertificate) GetDeviceId() string {
if x != nil {
return x.DeviceId
}
return ""
}
func (m *DeviceCertificate) GetFingerprint() string {
if m != nil {
return m.Fingerprint
func (x *DeviceCertificate) GetFingerprint() string {
if x != nil {
return x.Fingerprint
}
return ""
}
func (m *DeviceCertificate) GetCertificateData() string {
if m != nil {
return m.CertificateData
func (x *DeviceCertificate) GetCertificateData() string {
if x != nil {
return x.CertificateData
}
return ""
}
func (m *DeviceCertificate) GetCreatedAt() *timestamp.Timestamp {
if m != nil {
return m.CreatedAt
func (x *DeviceCertificate) GetCreatedAt() *timestamp.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
// A device password.
type DevicePassword struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the device that the password belongs to.
DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
// ID of the password.
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// Creation timestamp.
CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
}
func (m *DevicePassword) Reset() { *m = DevicePassword{} }
func (m *DevicePassword) String() string { return proto.CompactTextString(m) }
func (*DevicePassword) ProtoMessage() {}
func (x *DevicePassword) Reset() {
*x = DevicePassword{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iot_devices_v1_device_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DevicePassword) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DevicePassword) ProtoMessage() {}
func (x *DevicePassword) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iot_devices_v1_device_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DevicePassword.ProtoReflect.Descriptor instead.
func (*DevicePassword) Descriptor() ([]byte, []int) {
return fileDescriptor_dc5d5b38a6ba5ae6, []int{2}
return file_yandex_cloud_iot_devices_v1_device_proto_rawDescGZIP(), []int{2}
}
func (m *DevicePassword) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DevicePassword.Unmarshal(m, b)
}
func (m *DevicePassword) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DevicePassword.Marshal(b, m, deterministic)
}
func (m *DevicePassword) XXX_Merge(src proto.Message) {
xxx_messageInfo_DevicePassword.Merge(m, src)
}
func (m *DevicePassword) XXX_Size() int {
return xxx_messageInfo_DevicePassword.Size(m)
}
func (m *DevicePassword) XXX_DiscardUnknown() {
xxx_messageInfo_DevicePassword.DiscardUnknown(m)
}
var xxx_messageInfo_DevicePassword proto.InternalMessageInfo
func (m *DevicePassword) GetDeviceId() string {
if m != nil {
return m.DeviceId
func (x *DevicePassword) GetDeviceId() string {
if x != nil {
return x.DeviceId
}
return ""
}
func (m *DevicePassword) GetId() string {
if m != nil {
return m.Id
func (x *DevicePassword) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (m *DevicePassword) GetCreatedAt() *timestamp.Timestamp {
if m != nil {
return m.CreatedAt
func (x *DevicePassword) GetCreatedAt() *timestamp.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func init() {
proto.RegisterEnum("yandex.cloud.iot.devices.v1.Device_Status", Device_Status_name, Device_Status_value)
proto.RegisterType((*Device)(nil), "yandex.cloud.iot.devices.v1.Device")
proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.iot.devices.v1.Device.TopicAliasesEntry")
proto.RegisterType((*DeviceCertificate)(nil), "yandex.cloud.iot.devices.v1.DeviceCertificate")
proto.RegisterType((*DevicePassword)(nil), "yandex.cloud.iot.devices.v1.DevicePassword")
type DeviceMonitoringData struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
LastAuthIp string `protobuf:"bytes,1,opt,name=last_auth_ip,json=lastAuthIp,proto3" json:"last_auth_ip,omitempty"`
LastAuthTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_auth_time,json=lastAuthTime,proto3" json:"last_auth_time,omitempty"`
LastPubActivityTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=last_pub_activity_time,json=lastPubActivityTime,proto3" json:"last_pub_activity_time,omitempty"`
LastSubActivityTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=last_sub_activity_time,json=lastSubActivityTime,proto3" json:"last_sub_activity_time,omitempty"`
LastOnlineTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=last_online_time,json=lastOnlineTime,proto3" json:"last_online_time,omitempty"`
}
func init() {
proto.RegisterFile("yandex/cloud/iot/devices/v1/device.proto", fileDescriptor_dc5d5b38a6ba5ae6)
func (x *DeviceMonitoringData) Reset() {
*x = DeviceMonitoringData{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iot_devices_v1_device_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
var fileDescriptor_dc5d5b38a6ba5ae6 = []byte{
// 526 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0xdf, 0x6f, 0xd3, 0x30,
0x10, 0x26, 0xe9, 0x16, 0xd6, 0xeb, 0x18, 0x9d, 0x85, 0x50, 0xd4, 0x09, 0xad, 0xea, 0x53, 0x41,
0x9a, 0xa3, 0x15, 0x21, 0xf1, 0xe3, 0x01, 0x75, 0x6d, 0x18, 0x91, 0xd0, 0x34, 0xa5, 0x19, 0x0f,
0x7b, 0x89, 0xdc, 0xd8, 0x0d, 0x86, 0x36, 0x8e, 0x92, 0x6b, 0x59, 0xff, 0x33, 0xfe, 0x11, 0xfe,
0x1f, 0x54, 0x3b, 0x1d, 0xdd, 0x90, 0x2a, 0xe0, 0xed, 0xfc, 0xdd, 0x77, 0x9f, 0x3f, 0xdf, 0x9d,
0xa1, 0xbb, 0x64, 0x19, 0x17, 0x37, 0x5e, 0x32, 0x55, 0x73, 0xee, 0x49, 0x85, 0x1e, 0x17, 0x0b,
0x99, 0x88, 0xd2, 0x5b, 0x9c, 0x56, 0x21, 0xcd, 0x0b, 0x85, 0x8a, 0x1c, 0x19, 0x26, 0xd5, 0x4c,
0x2a, 0x15, 0xd2, 0x8a, 0x49, 0x17, 0xa7, 0xad, 0xe3, 0x54, 0xa9, 0x74, 0x2a, 0x3c, 0x4d, 0x1d,
0xcf, 0x27, 0x1e, 0xca, 0x99, 0x28, 0x91, 0xcd, 0x72, 0x53, 0xdd, 0x7a, 0x76, 0xe7, 0x9e, 0x05,
0x9b, 0x4a, 0xce, 0x50, 0xaa, 0xcc, 0xa4, 0x3b, 0x3f, 0x6b, 0xe0, 0x0c, 0xb5, 0x1c, 0x39, 0x00,
0x5b, 0x72, 0xd7, 0x6a, 0x5b, 0xdd, 0x7a, 0x68, 0x4b, 0x4e, 0x8e, 0xa1, 0x51, 0x88, 0x54, 0x96,
0x58, 0x2c, 0x63, 0xc9, 0x5d, 0x5b, 0x27, 0x60, 0x0d, 0x05, 0x9c, 0xbc, 0x01, 0x48, 0x0a, 0xc1,
0x50, 0xf0, 0x98, 0xa1, 0x5b, 0x6b, 0x5b, 0xdd, 0x46, 0xaf, 0x45, 0x8d, 0x21, 0xba, 0x36, 0x44,
0xa3, 0xb5, 0xa1, 0xb0, 0x5e, 0xb1, 0xfb, 0x48, 0x08, 0xec, 0x64, 0x6c, 0x26, 0xdc, 0x1d, 0x2d,
0xaa, 0x63, 0xd2, 0x86, 0x06, 0x17, 0x65, 0x52, 0xc8, 0x7c, 0xe5, 0xcf, 0xdd, 0xd5, 0xa9, 0x4d,
0x88, 0x5c, 0xc3, 0x23, 0x54, 0xb9, 0x4c, 0x62, 0x36, 0x95, 0xac, 0x14, 0xa5, 0xeb, 0xb4, 0x6b,
0xdd, 0x46, 0xef, 0x15, 0xdd, 0xd2, 0x21, 0x6a, 0x5e, 0x47, 0xa3, 0x55, 0x61, 0xdf, 0xd4, 0xf9,
0x19, 0x16, 0xcb, 0x70, 0x1f, 0x37, 0x20, 0x72, 0x06, 0x4e, 0x89, 0x0c, 0xe7, 0xa5, 0xfb, 0xb0,
0x6d, 0x75, 0x0f, 0x7a, 0x2f, 0xfe, 0x46, 0x74, 0xa4, 0x2b, 0xc2, 0xaa, 0xb2, 0xf5, 0x1e, 0x0e,
0xff, 0xb8, 0x86, 0x34, 0xa1, 0xf6, 0x4d, 0x2c, 0xab, 0xbe, 0xae, 0x42, 0xf2, 0x04, 0x76, 0x17,
0x6c, 0x3a, 0x17, 0x55, 0x4b, 0xcd, 0xe1, 0xad, 0xfd, 0xda, 0xea, 0x7c, 0x04, 0xc7, 0x48, 0x92,
0xa7, 0x40, 0x46, 0x51, 0x3f, 0xba, 0x1a, 0xc5, 0x57, 0x17, 0xa3, 0x4b, 0x7f, 0x10, 0x7c, 0x08,
0xfc, 0x61, 0xf3, 0x01, 0xd9, 0x87, 0xbd, 0x41, 0xe8, 0xf7, 0xa3, 0xe0, 0xe2, 0xbc, 0x69, 0x11,
0x00, 0xa7, 0x3f, 0x88, 0x82, 0xcf, 0x7e, 0xd3, 0x5e, 0x65, 0x86, 0xfe, 0x27, 0x5f, 0x67, 0x6a,
0x9d, 0x1f, 0x16, 0x1c, 0x1a, 0x93, 0x03, 0x51, 0xa0, 0x9c, 0xc8, 0x84, 0xa1, 0x20, 0x47, 0x50,
0x37, 0x8f, 0x88, 0x6f, 0x27, 0xbd, 0x67, 0x80, 0x80, 0xaf, 0xfa, 0x3f, 0x91, 0x59, 0x2a, 0x8a,
0xbc, 0x90, 0x19, 0x56, 0xe6, 0x36, 0x21, 0xf2, 0x1c, 0x9a, 0xc9, 0x6f, 0xb5, 0x98, 0x33, 0x64,
0x7a, 0xec, 0xf5, 0xf0, 0xf1, 0x06, 0x3e, 0x64, 0xc8, 0xee, 0xed, 0xc6, 0xce, 0x3f, 0xec, 0x46,
0xe7, 0x06, 0x0e, 0x8c, 0xf3, 0x4b, 0x56, 0x96, 0xdf, 0x55, 0xc1, 0xb7, 0xdb, 0x36, 0x6b, 0x6b,
0xdf, 0xae, 0xed, 0xff, 0x6f, 0xe5, 0xd9, 0x57, 0x38, 0xbe, 0x33, 0x74, 0x96, 0xcb, 0x7b, 0x83,
0xbf, 0x3e, 0x4f, 0x25, 0x7e, 0x99, 0x8f, 0x69, 0xa2, 0x66, 0x9e, 0xe1, 0x9e, 0x98, 0x9f, 0x95,
0xaa, 0x93, 0x54, 0x64, 0x5a, 0xdf, 0xdb, 0xf2, 0xb5, 0xdf, 0x55, 0xe1, 0xd8, 0xd1, 0xd4, 0x97,
0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0xf2, 0x87, 0xa5, 0x1b, 0x08, 0x04, 0x00, 0x00,
func (x *DeviceMonitoringData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeviceMonitoringData) ProtoMessage() {}
func (x *DeviceMonitoringData) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iot_devices_v1_device_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeviceMonitoringData.ProtoReflect.Descriptor instead.
func (*DeviceMonitoringData) Descriptor() ([]byte, []int) {
return file_yandex_cloud_iot_devices_v1_device_proto_rawDescGZIP(), []int{3}
}
func (x *DeviceMonitoringData) GetLastAuthIp() string {
if x != nil {
return x.LastAuthIp
}
return ""
}
func (x *DeviceMonitoringData) GetLastAuthTime() *timestamp.Timestamp {
if x != nil {
return x.LastAuthTime
}
return nil
}
func (x *DeviceMonitoringData) GetLastPubActivityTime() *timestamp.Timestamp {
if x != nil {
return x.LastPubActivityTime
}
return nil
}
func (x *DeviceMonitoringData) GetLastSubActivityTime() *timestamp.Timestamp {
if x != nil {
return x.LastSubActivityTime
}
return nil
}
func (x *DeviceMonitoringData) GetLastOnlineTime() *timestamp.Timestamp {
if x != nil {
return x.LastOnlineTime
}
return nil
}
var File_yandex_cloud_iot_devices_v1_device_proto protoreflect.FileDescriptor
var file_yandex_cloud_iot_devices_v1_device_proto_rawDesc = []byte{
0x0a, 0x28, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69,
0x6f, 0x74, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65,
0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x6f, 0x74, 0x2e, 0x64, 0x65, 0x76,
0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb1, 0x04, 0x0a, 0x06, 0x44, 0x65, 0x76, 0x69,
0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
0x69, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5f, 0x69,
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
0x79, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61,
0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x12,
0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5a, 0x0a, 0x0d, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x61, 0x6c,
0x69, 0x61, 0x73, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x79, 0x61,
0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x6f, 0x74, 0x2e, 0x64,
0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65,
0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74,
0x72, 0x79, 0x52, 0x0c, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73,
0x12, 0x42, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e,
0x32, 0x2a, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x69, 0x6f, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44,
0x65, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74,
0x61, 0x74, 0x75, 0x73, 0x12, 0x5a, 0x0a, 0x0f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69,
0x6e, 0x67, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e,
0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x6f, 0x74,
0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x76, 0x69,
0x63, 0x65, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61,
0x52, 0x0e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61,
0x1a, 0x3f, 0x0a, 0x11, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73,
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
0x01, 0x22, 0x48, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53,
0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x10,
0x01, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x12, 0x0c, 0x0a,
0x08, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x22, 0xb8, 0x01, 0x0a, 0x11,
0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x20,
0x0a, 0x0b, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0b, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74,
0x12, 0x29, 0x0a, 0x10, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f,
0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x65, 0x72, 0x74,
0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x39, 0x0a, 0x0a, 0x63,
0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65,
0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x78, 0x0a, 0x0e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65,
0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69,
0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x76,
0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64,
0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74,
0x22, 0xe2, 0x02, 0x0a, 0x14, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4d, 0x6f, 0x6e, 0x69, 0x74,
0x6f, 0x72, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x20, 0x0a, 0x0c, 0x6c, 0x61, 0x73,
0x74, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0a, 0x6c, 0x61, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x49, 0x70, 0x12, 0x40, 0x0a, 0x0e, 0x6c,
0x61, 0x73, 0x74, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,
0x0c, 0x6c, 0x61, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x4f, 0x0a,
0x16, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69,
0x74, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x13, 0x6c, 0x61, 0x73, 0x74, 0x50,
0x75, 0x62, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x4f,
0x0a, 0x16, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x75, 0x62, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76,
0x69, 0x74, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x13, 0x6c, 0x61, 0x73, 0x74,
0x53, 0x75, 0x62, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12,
0x44, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x74,
0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x4f, 0x6e, 0x6c, 0x69, 0x6e,
0x65, 0x54, 0x69, 0x6d, 0x65, 0x2a, 0x21, 0x0a, 0x0a, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x56,
0x69, 0x65, 0x77, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x00, 0x12, 0x08,
0x0a, 0x04, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x01, 0x42, 0x6a, 0x0a, 0x1f, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6f, 0x74,
0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x5a, 0x47, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63,
0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69, 0x6f,
0x74, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x65, 0x76,
0x69, 0x63, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_yandex_cloud_iot_devices_v1_device_proto_rawDescOnce sync.Once
file_yandex_cloud_iot_devices_v1_device_proto_rawDescData = file_yandex_cloud_iot_devices_v1_device_proto_rawDesc
)
func file_yandex_cloud_iot_devices_v1_device_proto_rawDescGZIP() []byte {
file_yandex_cloud_iot_devices_v1_device_proto_rawDescOnce.Do(func() {
file_yandex_cloud_iot_devices_v1_device_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_iot_devices_v1_device_proto_rawDescData)
})
return file_yandex_cloud_iot_devices_v1_device_proto_rawDescData
}
var file_yandex_cloud_iot_devices_v1_device_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_yandex_cloud_iot_devices_v1_device_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_yandex_cloud_iot_devices_v1_device_proto_goTypes = []interface{}{
(DeviceView)(0), // 0: yandex.cloud.iot.devices.v1.DeviceView
(Device_Status)(0), // 1: yandex.cloud.iot.devices.v1.Device.Status
(*Device)(nil), // 2: yandex.cloud.iot.devices.v1.Device
(*DeviceCertificate)(nil), // 3: yandex.cloud.iot.devices.v1.DeviceCertificate
(*DevicePassword)(nil), // 4: yandex.cloud.iot.devices.v1.DevicePassword
(*DeviceMonitoringData)(nil), // 5: yandex.cloud.iot.devices.v1.DeviceMonitoringData
nil, // 6: yandex.cloud.iot.devices.v1.Device.TopicAliasesEntry
(*timestamp.Timestamp)(nil), // 7: google.protobuf.Timestamp
}
var file_yandex_cloud_iot_devices_v1_device_proto_depIdxs = []int32{
7, // 0: yandex.cloud.iot.devices.v1.Device.created_at:type_name -> google.protobuf.Timestamp
6, // 1: yandex.cloud.iot.devices.v1.Device.topic_aliases:type_name -> yandex.cloud.iot.devices.v1.Device.TopicAliasesEntry
1, // 2: yandex.cloud.iot.devices.v1.Device.status:type_name -> yandex.cloud.iot.devices.v1.Device.Status
5, // 3: yandex.cloud.iot.devices.v1.Device.monitoring_data:type_name -> yandex.cloud.iot.devices.v1.DeviceMonitoringData
7, // 4: yandex.cloud.iot.devices.v1.DeviceCertificate.created_at:type_name -> google.protobuf.Timestamp
7, // 5: yandex.cloud.iot.devices.v1.DevicePassword.created_at:type_name -> google.protobuf.Timestamp
7, // 6: yandex.cloud.iot.devices.v1.DeviceMonitoringData.last_auth_time:type_name -> google.protobuf.Timestamp
7, // 7: yandex.cloud.iot.devices.v1.DeviceMonitoringData.last_pub_activity_time:type_name -> google.protobuf.Timestamp
7, // 8: yandex.cloud.iot.devices.v1.DeviceMonitoringData.last_sub_activity_time:type_name -> google.protobuf.Timestamp
7, // 9: yandex.cloud.iot.devices.v1.DeviceMonitoringData.last_online_time:type_name -> google.protobuf.Timestamp
10, // [10:10] is the sub-list for method output_type
10, // [10:10] is the sub-list for method input_type
10, // [10:10] is the sub-list for extension type_name
10, // [10:10] is the sub-list for extension extendee
0, // [0:10] is the sub-list for field type_name
}
func init() { file_yandex_cloud_iot_devices_v1_device_proto_init() }
func file_yandex_cloud_iot_devices_v1_device_proto_init() {
if File_yandex_cloud_iot_devices_v1_device_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_iot_devices_v1_device_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Device); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_iot_devices_v1_device_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeviceCertificate); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_iot_devices_v1_device_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DevicePassword); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_iot_devices_v1_device_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeviceMonitoringData); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_iot_devices_v1_device_proto_rawDesc,
NumEnums: 2,
NumMessages: 5,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_iot_devices_v1_device_proto_goTypes,
DependencyIndexes: file_yandex_cloud_iot_devices_v1_device_proto_depIdxs,
EnumInfos: file_yandex_cloud_iot_devices_v1_device_proto_enumTypes,
MessageInfos: file_yandex_cloud_iot_devices_v1_device_proto_msgTypes,
}.Build()
File_yandex_cloud_iot_devices_v1_device_proto = out.File
file_yandex_cloud_iot_devices_v1_device_proto_rawDesc = nil
file_yandex_cloud_iot_devices_v1_device_proto_goTypes = nil
file_yandex_cloud_iot_devices_v1_device_proto_depIdxs = nil
}

View File

@ -34,6 +34,10 @@ func (m *Device) SetStatus(v Device_Status) {
m.Status = v
}
func (m *Device) SetMonitoringData(v *DeviceMonitoringData) {
m.MonitoringData = v
}
func (m *DeviceCertificate) SetDeviceId(v string) {
m.DeviceId = v
}
@ -61,3 +65,23 @@ func (m *DevicePassword) SetId(v string) {
func (m *DevicePassword) SetCreatedAt(v *timestamp.Timestamp) {
m.CreatedAt = v
}
func (m *DeviceMonitoringData) SetLastAuthIp(v string) {
m.LastAuthIp = v
}
func (m *DeviceMonitoringData) SetLastAuthTime(v *timestamp.Timestamp) {
m.LastAuthTime = v
}
func (m *DeviceMonitoringData) SetLastPubActivityTime(v *timestamp.Timestamp) {
m.LastPubActivityTime = v
}
func (m *DeviceMonitoringData) SetLastSubActivityTime(v *timestamp.Timestamp) {
m.LastSubActivityTime = v
}
func (m *DeviceMonitoringData) SetLastOnlineTime(v *timestamp.Timestamp) {
m.LastOnlineTime = v
}

View File

@ -1,154 +1,261 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/iot/devices/v1/device_data_service.proto
package devices
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type PublishDeviceDataRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of device publishing message
DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
// Topic where message should be published
Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
// Content of the message
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
}
func (m *PublishDeviceDataRequest) Reset() { *m = PublishDeviceDataRequest{} }
func (m *PublishDeviceDataRequest) String() string { return proto.CompactTextString(m) }
func (*PublishDeviceDataRequest) ProtoMessage() {}
func (x *PublishDeviceDataRequest) Reset() {
*x = PublishDeviceDataRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iot_devices_v1_device_data_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PublishDeviceDataRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PublishDeviceDataRequest) ProtoMessage() {}
func (x *PublishDeviceDataRequest) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iot_devices_v1_device_data_service_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PublishDeviceDataRequest.ProtoReflect.Descriptor instead.
func (*PublishDeviceDataRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_75768e640d794694, []int{0}
return file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDescGZIP(), []int{0}
}
func (m *PublishDeviceDataRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PublishDeviceDataRequest.Unmarshal(m, b)
}
func (m *PublishDeviceDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PublishDeviceDataRequest.Marshal(b, m, deterministic)
}
func (m *PublishDeviceDataRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PublishDeviceDataRequest.Merge(m, src)
}
func (m *PublishDeviceDataRequest) XXX_Size() int {
return xxx_messageInfo_PublishDeviceDataRequest.Size(m)
}
func (m *PublishDeviceDataRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PublishDeviceDataRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PublishDeviceDataRequest proto.InternalMessageInfo
func (m *PublishDeviceDataRequest) GetDeviceId() string {
if m != nil {
return m.DeviceId
func (x *PublishDeviceDataRequest) GetDeviceId() string {
if x != nil {
return x.DeviceId
}
return ""
}
func (m *PublishDeviceDataRequest) GetTopic() string {
if m != nil {
return m.Topic
func (x *PublishDeviceDataRequest) GetTopic() string {
if x != nil {
return x.Topic
}
return ""
}
func (m *PublishDeviceDataRequest) GetData() []byte {
if m != nil {
return m.Data
func (x *PublishDeviceDataRequest) GetData() []byte {
if x != nil {
return x.Data
}
return nil
}
type PublishDeviceDataResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (m *PublishDeviceDataResponse) Reset() { *m = PublishDeviceDataResponse{} }
func (m *PublishDeviceDataResponse) String() string { return proto.CompactTextString(m) }
func (*PublishDeviceDataResponse) ProtoMessage() {}
func (x *PublishDeviceDataResponse) Reset() {
*x = PublishDeviceDataResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iot_devices_v1_device_data_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PublishDeviceDataResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PublishDeviceDataResponse) ProtoMessage() {}
func (x *PublishDeviceDataResponse) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iot_devices_v1_device_data_service_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PublishDeviceDataResponse.ProtoReflect.Descriptor instead.
func (*PublishDeviceDataResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_75768e640d794694, []int{1}
return file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDescGZIP(), []int{1}
}
func (m *PublishDeviceDataResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PublishDeviceDataResponse.Unmarshal(m, b)
}
func (m *PublishDeviceDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PublishDeviceDataResponse.Marshal(b, m, deterministic)
}
func (m *PublishDeviceDataResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PublishDeviceDataResponse.Merge(m, src)
}
func (m *PublishDeviceDataResponse) XXX_Size() int {
return xxx_messageInfo_PublishDeviceDataResponse.Size(m)
}
func (m *PublishDeviceDataResponse) XXX_DiscardUnknown() {
xxx_messageInfo_PublishDeviceDataResponse.DiscardUnknown(m)
var File_yandex_cloud_iot_devices_v1_device_data_service_proto protoreflect.FileDescriptor
var file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDesc = []byte{
0x0a, 0x35, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69,
0x6f, 0x74, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65,
0x76, 0x69, 0x63, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e,
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x6f, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65,
0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x1a, 0x1d, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x22, 0x8d, 0x01, 0x0a, 0x18, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x44, 0x65, 0x76,
0x69, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29,
0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x42, 0x0c, 0xe8, 0xc7, 0x31, 0x01, 0x8a, 0xc8, 0x31, 0x04, 0x3c, 0x3d, 0x35, 0x30, 0x52,
0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x05, 0x74, 0x6f, 0x70,
0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0e, 0xe8, 0xc7, 0x31, 0x01, 0x8a, 0xc8,
0x31, 0x06, 0x3c, 0x3d, 0x31, 0x30, 0x32, 0x34, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12,
0x20, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x0c, 0x8a,
0xc8, 0x31, 0x08, 0x3c, 0x3d, 0x32, 0x36, 0x32, 0x31, 0x34, 0x34, 0x52, 0x04, 0x64, 0x61, 0x74,
0x61, 0x22, 0x1b, 0x0a, 0x19, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x44, 0x65, 0x76, 0x69,
0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xc6,
0x01, 0x0a, 0x11, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x65, 0x72,
0x76, 0x69, 0x63, 0x65, 0x12, 0xb0, 0x01, 0x0a, 0x07, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68,
0x12, 0x35, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x69, 0x6f, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50,
0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78,
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x6f, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63,
0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x44, 0x65, 0x76,
0x69, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x22, 0x2b, 0x2f, 0x69, 0x6f, 0x74, 0x2d, 0x64, 0x65,
0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73,
0x2f, 0x7b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x75, 0x62,
0x6c, 0x69, 0x73, 0x68, 0x3a, 0x01, 0x2a, 0x42, 0x6a, 0x0a, 0x1f, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6f, 0x74, 0x2e,
0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x5a, 0x47, 0x67, 0x69, 0x74, 0x68,
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69, 0x6f, 0x74,
0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x65, 0x76, 0x69,
0x63, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var xxx_messageInfo_PublishDeviceDataResponse proto.InternalMessageInfo
var (
file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDescOnce sync.Once
file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDescData = file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDesc
)
func init() {
proto.RegisterType((*PublishDeviceDataRequest)(nil), "yandex.cloud.iot.devices.v1.PublishDeviceDataRequest")
proto.RegisterType((*PublishDeviceDataResponse)(nil), "yandex.cloud.iot.devices.v1.PublishDeviceDataResponse")
func file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDescGZIP() []byte {
file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDescOnce.Do(func() {
file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDescData)
})
return file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDescData
}
func init() {
proto.RegisterFile("yandex/cloud/iot/devices/v1/device_data_service.proto", fileDescriptor_75768e640d794694)
var file_yandex_cloud_iot_devices_v1_device_data_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_iot_devices_v1_device_data_service_proto_goTypes = []interface{}{
(*PublishDeviceDataRequest)(nil), // 0: yandex.cloud.iot.devices.v1.PublishDeviceDataRequest
(*PublishDeviceDataResponse)(nil), // 1: yandex.cloud.iot.devices.v1.PublishDeviceDataResponse
}
var file_yandex_cloud_iot_devices_v1_device_data_service_proto_depIdxs = []int32{
0, // 0: yandex.cloud.iot.devices.v1.DeviceDataService.Publish:input_type -> yandex.cloud.iot.devices.v1.PublishDeviceDataRequest
1, // 1: yandex.cloud.iot.devices.v1.DeviceDataService.Publish:output_type -> yandex.cloud.iot.devices.v1.PublishDeviceDataResponse
1, // [1:2] is the sub-list for method output_type
0, // [0:1] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
var fileDescriptor_75768e640d794694 = []byte{
// 368 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xcb, 0x4e, 0xf2, 0x40,
0x18, 0xcd, 0xf0, 0xf3, 0x23, 0x4c, 0x88, 0x89, 0x5d, 0x55, 0xd0, 0x48, 0x1a, 0x17, 0xa8, 0x61,
0x86, 0x56, 0x60, 0xa1, 0xb0, 0x21, 0x24, 0xc6, 0x9d, 0xa9, 0x3b, 0x37, 0x64, 0x68, 0x27, 0x65,
0x4c, 0xed, 0x54, 0x66, 0xda, 0x68, 0x8c, 0x1b, 0x97, 0x24, 0xae, 0x7c, 0x11, 0x9f, 0x42, 0xd9,
0xfb, 0x0a, 0x2e, 0x7c, 0x0c, 0xc3, 0x4c, 0xa3, 0xc1, 0x0b, 0x89, 0xbb, 0xaf, 0x3d, 0xe7, 0x7c,
0x97, 0x73, 0x06, 0xb6, 0xaf, 0x49, 0xe4, 0xd3, 0x2b, 0xec, 0x85, 0x3c, 0xf1, 0x31, 0xe3, 0x12,
0xfb, 0x34, 0x65, 0x1e, 0x15, 0x38, 0xb5, 0xb3, 0x72, 0xe8, 0x13, 0x49, 0x86, 0x82, 0x4e, 0xe6,
0x1f, 0x28, 0x9e, 0x70, 0xc9, 0x8d, 0xaa, 0x96, 0x21, 0x25, 0x43, 0x8c, 0x4b, 0x94, 0xc9, 0x50,
0x6a, 0x57, 0x36, 0x02, 0xce, 0x83, 0x90, 0x62, 0x12, 0x33, 0x4c, 0xa2, 0x88, 0x4b, 0x22, 0x19,
0x8f, 0x84, 0x96, 0x56, 0x36, 0x17, 0x26, 0xa6, 0x24, 0x64, 0xbe, 0xc2, 0x35, 0x6c, 0xdd, 0x03,
0x68, 0x9e, 0x24, 0xa3, 0x90, 0x89, 0xf1, 0x40, 0xb5, 0x1c, 0x10, 0x49, 0x5c, 0x7a, 0x99, 0x50,
0x21, 0x8d, 0x1d, 0x58, 0xca, 0x76, 0x62, 0xbe, 0x09, 0x6a, 0xa0, 0x5e, 0xea, 0x97, 0xdf, 0x9e,
0x6d, 0x30, 0x9d, 0xd9, 0xf9, 0x6e, 0xaf, 0xdd, 0x74, 0x8b, 0x1a, 0x3e, 0xf6, 0x8d, 0x6d, 0xf8,
0x5f, 0xf2, 0x98, 0x79, 0x66, 0x4e, 0xd1, 0x56, 0x33, 0x5a, 0xa1, 0xdb, 0xb3, 0x9b, 0x4e, 0xcb,
0xd5, 0xa0, 0x51, 0x83, 0xf9, 0xf9, 0x75, 0xe6, 0xbf, 0x1a, 0xa8, 0x97, 0xfb, 0xe5, 0xe9, 0xcc,
0x2e, 0x76, 0x7b, 0x4e, 0xc7, 0xb1, 0x5b, 0x2d, 0x57, 0x21, 0x56, 0x15, 0xae, 0xff, 0xb0, 0x8e,
0x88, 0x79, 0x24, 0xa8, 0xf3, 0x04, 0xe0, 0xda, 0xe7, 0xef, 0x53, 0x6d, 0x91, 0xf1, 0x08, 0xe0,
0x4a, 0xa6, 0x31, 0xda, 0x68, 0x89, 0x53, 0xe8, 0xb7, 0x43, 0x2b, 0x9d, 0xbf, 0xca, 0xf4, 0x42,
0x56, 0xe7, 0xee, 0xe5, 0xf5, 0x21, 0xd7, 0xb4, 0xf6, 0xe6, 0x51, 0x36, 0xbe, 0x45, 0x29, 0xf0,
0xcd, 0x87, 0x7f, 0xb7, 0x38, 0xd6, 0x6d, 0x0e, 0xc0, 0x6e, 0xff, 0x1c, 0x6e, 0x2d, 0x0c, 0x24,
0x31, 0xfb, 0x32, 0xf4, 0xec, 0x28, 0x60, 0x72, 0x9c, 0x8c, 0x90, 0xc7, 0x2f, 0xb0, 0xe6, 0x36,
0x74, 0x84, 0x01, 0x6f, 0x04, 0x34, 0x52, 0xe9, 0xe1, 0x25, 0xaf, 0xe9, 0x30, 0x2b, 0x47, 0x05,
0x45, 0xdd, 0x7f, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x6e, 0x41, 0x3c, 0xef, 0x7b, 0x02, 0x00, 0x00,
func init() { file_yandex_cloud_iot_devices_v1_device_data_service_proto_init() }
func file_yandex_cloud_iot_devices_v1_device_data_service_proto_init() {
if File_yandex_cloud_iot_devices_v1_device_data_service_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_iot_devices_v1_device_data_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PublishDeviceDataRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_iot_devices_v1_device_data_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PublishDeviceDataResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_yandex_cloud_iot_devices_v1_device_data_service_proto_goTypes,
DependencyIndexes: file_yandex_cloud_iot_devices_v1_device_data_service_proto_depIdxs,
MessageInfos: file_yandex_cloud_iot_devices_v1_device_data_service_proto_msgTypes,
}.Build()
File_yandex_cloud_iot_devices_v1_device_data_service_proto = out.File
file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDesc = nil
file_yandex_cloud_iot_devices_v1_device_data_service_proto_goTypes = nil
file_yandex_cloud_iot_devices_v1_device_data_service_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
@ -194,7 +301,7 @@ type DeviceDataServiceServer interface {
type UnimplementedDeviceDataServiceServer struct {
}
func (*UnimplementedDeviceDataServiceServer) Publish(ctx context.Context, req *PublishDeviceDataRequest) (*PublishDeviceDataResponse, error) {
func (*UnimplementedDeviceDataServiceServer) Publish(context.Context, *PublishDeviceDataRequest) (*PublishDeviceDataResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Publish not implemented")
}

File diff suppressed because it is too large Load Diff

View File

@ -11,6 +11,10 @@ func (m *GetDeviceRequest) SetDeviceId(v string) {
m.DeviceId = v
}
func (m *GetDeviceRequest) SetDeviceView(v DeviceView) {
m.DeviceView = v
}
type ListDevicesRequest_Id = isListDevicesRequest_Id
func (m *ListDevicesRequest) SetId(v ListDevicesRequest_Id) {
@ -37,6 +41,10 @@ func (m *ListDevicesRequest) SetPageToken(v string) {
m.PageToken = v
}
func (m *ListDevicesRequest) SetDeviceView(v DeviceView) {
m.DeviceView = v
}
func (m *ListDevicesResponse) SetDevices(v []*Device) {
m.Devices = v
}

View File

@ -1,26 +1,31 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: yandex/cloud/iot/devices/v1/registry.proto
package devices
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type Registry_Status int32
@ -34,30 +39,55 @@ const (
Registry_DELETING Registry_Status = 3
)
var Registry_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "CREATING",
2: "ACTIVE",
3: "DELETING",
}
// Enum value maps for Registry_Status.
var (
Registry_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "CREATING",
2: "ACTIVE",
3: "DELETING",
}
Registry_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"CREATING": 1,
"ACTIVE": 2,
"DELETING": 3,
}
)
var Registry_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"CREATING": 1,
"ACTIVE": 2,
"DELETING": 3,
func (x Registry_Status) Enum() *Registry_Status {
p := new(Registry_Status)
*p = x
return p
}
func (x Registry_Status) String() string {
return proto.EnumName(Registry_Status_name, int32(x))
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Registry_Status) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_iot_devices_v1_registry_proto_enumTypes[0].Descriptor()
}
func (Registry_Status) Type() protoreflect.EnumType {
return &file_yandex_cloud_iot_devices_v1_registry_proto_enumTypes[0]
}
func (x Registry_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Registry_Status.Descriptor instead.
func (Registry_Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_39c05472a87f1ea4, []int{0, 0}
return file_yandex_cloud_iot_devices_v1_registry_proto_rawDescGZIP(), []int{0, 0}
}
// A registry. For more information, see [Registry](/docs/iot-core/concepts/index#registry).
type Registry struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the registry.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// ID of the folder that the registry belongs to.
@ -73,95 +103,103 @@ type Registry struct {
// Status of the registry.
Status Registry_Status `protobuf:"varint,7,opt,name=status,proto3,enum=yandex.cloud.iot.devices.v1.Registry_Status" json:"status,omitempty"`
// ID of the logs group for the specified registry.
LogGroupId string `protobuf:"bytes,8,opt,name=log_group_id,json=logGroupId,proto3" json:"log_group_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
LogGroupId string `protobuf:"bytes,8,opt,name=log_group_id,json=logGroupId,proto3" json:"log_group_id,omitempty"`
}
func (m *Registry) Reset() { *m = Registry{} }
func (m *Registry) String() string { return proto.CompactTextString(m) }
func (*Registry) ProtoMessage() {}
func (x *Registry) Reset() {
*x = Registry{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iot_devices_v1_registry_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Registry) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Registry) ProtoMessage() {}
func (x *Registry) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iot_devices_v1_registry_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Registry.ProtoReflect.Descriptor instead.
func (*Registry) Descriptor() ([]byte, []int) {
return fileDescriptor_39c05472a87f1ea4, []int{0}
return file_yandex_cloud_iot_devices_v1_registry_proto_rawDescGZIP(), []int{0}
}
func (m *Registry) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Registry.Unmarshal(m, b)
}
func (m *Registry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Registry.Marshal(b, m, deterministic)
}
func (m *Registry) XXX_Merge(src proto.Message) {
xxx_messageInfo_Registry.Merge(m, src)
}
func (m *Registry) XXX_Size() int {
return xxx_messageInfo_Registry.Size(m)
}
func (m *Registry) XXX_DiscardUnknown() {
xxx_messageInfo_Registry.DiscardUnknown(m)
}
var xxx_messageInfo_Registry proto.InternalMessageInfo
func (m *Registry) GetId() string {
if m != nil {
return m.Id
func (x *Registry) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (m *Registry) GetFolderId() string {
if m != nil {
return m.FolderId
func (x *Registry) GetFolderId() string {
if x != nil {
return x.FolderId
}
return ""
}
func (m *Registry) GetCreatedAt() *timestamp.Timestamp {
if m != nil {
return m.CreatedAt
func (x *Registry) GetCreatedAt() *timestamp.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (m *Registry) GetName() string {
if m != nil {
return m.Name
func (x *Registry) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *Registry) GetDescription() string {
if m != nil {
return m.Description
func (x *Registry) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (m *Registry) GetLabels() map[string]string {
if m != nil {
return m.Labels
func (x *Registry) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (m *Registry) GetStatus() Registry_Status {
if m != nil {
return m.Status
func (x *Registry) GetStatus() Registry_Status {
if x != nil {
return x.Status
}
return Registry_STATUS_UNSPECIFIED
}
func (m *Registry) GetLogGroupId() string {
if m != nil {
return m.LogGroupId
func (x *Registry) GetLogGroupId() string {
if x != nil {
return x.LogGroupId
}
return ""
}
// A registry certificate. For more information, see [Managing registry certificates](/docs/iot-core/operations/certificates/registry-certificates).
type RegistryCertificate struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the registry that the certificate belongs to.
RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"`
// SHA256 hash of the certificates.
@ -169,61 +207,65 @@ type RegistryCertificate struct {
// Public part of the certificate.
CertificateData string `protobuf:"bytes,3,opt,name=certificate_data,json=certificateData,proto3" json:"certificate_data,omitempty"`
// Creation timestamp.
CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
}
func (m *RegistryCertificate) Reset() { *m = RegistryCertificate{} }
func (m *RegistryCertificate) String() string { return proto.CompactTextString(m) }
func (*RegistryCertificate) ProtoMessage() {}
func (x *RegistryCertificate) Reset() {
*x = RegistryCertificate{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iot_devices_v1_registry_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RegistryCertificate) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RegistryCertificate) ProtoMessage() {}
func (x *RegistryCertificate) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iot_devices_v1_registry_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RegistryCertificate.ProtoReflect.Descriptor instead.
func (*RegistryCertificate) Descriptor() ([]byte, []int) {
return fileDescriptor_39c05472a87f1ea4, []int{1}
return file_yandex_cloud_iot_devices_v1_registry_proto_rawDescGZIP(), []int{1}
}
func (m *RegistryCertificate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RegistryCertificate.Unmarshal(m, b)
}
func (m *RegistryCertificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RegistryCertificate.Marshal(b, m, deterministic)
}
func (m *RegistryCertificate) XXX_Merge(src proto.Message) {
xxx_messageInfo_RegistryCertificate.Merge(m, src)
}
func (m *RegistryCertificate) XXX_Size() int {
return xxx_messageInfo_RegistryCertificate.Size(m)
}
func (m *RegistryCertificate) XXX_DiscardUnknown() {
xxx_messageInfo_RegistryCertificate.DiscardUnknown(m)
}
var xxx_messageInfo_RegistryCertificate proto.InternalMessageInfo
func (m *RegistryCertificate) GetRegistryId() string {
if m != nil {
return m.RegistryId
func (x *RegistryCertificate) GetRegistryId() string {
if x != nil {
return x.RegistryId
}
return ""
}
func (m *RegistryCertificate) GetFingerprint() string {
if m != nil {
return m.Fingerprint
func (x *RegistryCertificate) GetFingerprint() string {
if x != nil {
return x.Fingerprint
}
return ""
}
func (m *RegistryCertificate) GetCertificateData() string {
if m != nil {
return m.CertificateData
func (x *RegistryCertificate) GetCertificateData() string {
if x != nil {
return x.CertificateData
}
return ""
}
func (m *RegistryCertificate) GetCreatedAt() *timestamp.Timestamp {
if m != nil {
return m.CreatedAt
func (x *RegistryCertificate) GetCreatedAt() *timestamp.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
@ -232,172 +274,324 @@ func (m *RegistryCertificate) GetCreatedAt() *timestamp.Timestamp {
//
// Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/abcdef/events`. For more information, see [Using topic aliases](/docs/iot-core/concepts/topic#aliases).
type DeviceAlias struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the device that the alias belongs to.
DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
// Prefix of a canonical topic name to be aliased, e.g. `$devices/abcdef`.
TopicPrefix string `protobuf:"bytes,2,opt,name=topic_prefix,json=topicPrefix,proto3" json:"topic_prefix,omitempty"`
// Alias of a device topic.
Alias string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Alias string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"`
}
func (m *DeviceAlias) Reset() { *m = DeviceAlias{} }
func (m *DeviceAlias) String() string { return proto.CompactTextString(m) }
func (*DeviceAlias) ProtoMessage() {}
func (x *DeviceAlias) Reset() {
*x = DeviceAlias{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iot_devices_v1_registry_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeviceAlias) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeviceAlias) ProtoMessage() {}
func (x *DeviceAlias) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iot_devices_v1_registry_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeviceAlias.ProtoReflect.Descriptor instead.
func (*DeviceAlias) Descriptor() ([]byte, []int) {
return fileDescriptor_39c05472a87f1ea4, []int{2}
return file_yandex_cloud_iot_devices_v1_registry_proto_rawDescGZIP(), []int{2}
}
func (m *DeviceAlias) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeviceAlias.Unmarshal(m, b)
}
func (m *DeviceAlias) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeviceAlias.Marshal(b, m, deterministic)
}
func (m *DeviceAlias) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeviceAlias.Merge(m, src)
}
func (m *DeviceAlias) XXX_Size() int {
return xxx_messageInfo_DeviceAlias.Size(m)
}
func (m *DeviceAlias) XXX_DiscardUnknown() {
xxx_messageInfo_DeviceAlias.DiscardUnknown(m)
}
var xxx_messageInfo_DeviceAlias proto.InternalMessageInfo
func (m *DeviceAlias) GetDeviceId() string {
if m != nil {
return m.DeviceId
func (x *DeviceAlias) GetDeviceId() string {
if x != nil {
return x.DeviceId
}
return ""
}
func (m *DeviceAlias) GetTopicPrefix() string {
if m != nil {
return m.TopicPrefix
func (x *DeviceAlias) GetTopicPrefix() string {
if x != nil {
return x.TopicPrefix
}
return ""
}
func (m *DeviceAlias) GetAlias() string {
if m != nil {
return m.Alias
func (x *DeviceAlias) GetAlias() string {
if x != nil {
return x.Alias
}
return ""
}
// A registry password.
type RegistryPassword struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the registry that the password belongs to.
RegistryId string `protobuf:"bytes,1,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"`
// ID of the password.
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// Creation timestamp.
CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
}
func (m *RegistryPassword) Reset() { *m = RegistryPassword{} }
func (m *RegistryPassword) String() string { return proto.CompactTextString(m) }
func (*RegistryPassword) ProtoMessage() {}
func (x *RegistryPassword) Reset() {
*x = RegistryPassword{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_iot_devices_v1_registry_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RegistryPassword) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RegistryPassword) ProtoMessage() {}
func (x *RegistryPassword) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_iot_devices_v1_registry_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RegistryPassword.ProtoReflect.Descriptor instead.
func (*RegistryPassword) Descriptor() ([]byte, []int) {
return fileDescriptor_39c05472a87f1ea4, []int{3}
return file_yandex_cloud_iot_devices_v1_registry_proto_rawDescGZIP(), []int{3}
}
func (m *RegistryPassword) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RegistryPassword.Unmarshal(m, b)
}
func (m *RegistryPassword) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RegistryPassword.Marshal(b, m, deterministic)
}
func (m *RegistryPassword) XXX_Merge(src proto.Message) {
xxx_messageInfo_RegistryPassword.Merge(m, src)
}
func (m *RegistryPassword) XXX_Size() int {
return xxx_messageInfo_RegistryPassword.Size(m)
}
func (m *RegistryPassword) XXX_DiscardUnknown() {
xxx_messageInfo_RegistryPassword.DiscardUnknown(m)
}
var xxx_messageInfo_RegistryPassword proto.InternalMessageInfo
func (m *RegistryPassword) GetRegistryId() string {
if m != nil {
return m.RegistryId
func (x *RegistryPassword) GetRegistryId() string {
if x != nil {
return x.RegistryId
}
return ""
}
func (m *RegistryPassword) GetId() string {
if m != nil {
return m.Id
func (x *RegistryPassword) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (m *RegistryPassword) GetCreatedAt() *timestamp.Timestamp {
if m != nil {
return m.CreatedAt
func (x *RegistryPassword) GetCreatedAt() *timestamp.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func init() {
proto.RegisterEnum("yandex.cloud.iot.devices.v1.Registry_Status", Registry_Status_name, Registry_Status_value)
proto.RegisterType((*Registry)(nil), "yandex.cloud.iot.devices.v1.Registry")
proto.RegisterMapType((map[string]string)(nil), "yandex.cloud.iot.devices.v1.Registry.LabelsEntry")
proto.RegisterType((*RegistryCertificate)(nil), "yandex.cloud.iot.devices.v1.RegistryCertificate")
proto.RegisterType((*DeviceAlias)(nil), "yandex.cloud.iot.devices.v1.DeviceAlias")
proto.RegisterType((*RegistryPassword)(nil), "yandex.cloud.iot.devices.v1.RegistryPassword")
var File_yandex_cloud_iot_devices_v1_registry_proto protoreflect.FileDescriptor
var file_yandex_cloud_iot_devices_v1_registry_proto_rawDesc = []byte{
0x0a, 0x2a, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69,
0x6f, 0x74, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65,
0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x79, 0x61,
0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x6f, 0x74, 0x2e, 0x64,
0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73,
0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x79, 0x61, 0x6e, 0x64,
0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe0, 0x03, 0x0a, 0x08, 0x52, 0x65,
0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72,
0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x6f, 0x6c, 0x64, 0x65,
0x72, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61,
0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x12,
0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
0x74, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x06,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2e, 0x69, 0x6f, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e,
0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x4c, 0x61, 0x62, 0x65,
0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12,
0x44, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32,
0x2c, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69,
0x6f, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65,
0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73,
0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x0a, 0x0c, 0x6c, 0x6f, 0x67, 0x5f, 0x67, 0x72, 0x6f,
0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x6f, 0x67,
0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c,
0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
0x38, 0x01, 0x22, 0x48, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12,
0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4e, 0x47,
0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x12, 0x0c,
0x0a, 0x08, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x22, 0xbe, 0x01, 0x0a,
0x13, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69,
0x63, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x73,
0x74, 0x72, 0x79, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70,
0x72, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x66, 0x69, 0x6e, 0x67,
0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x65, 0x72, 0x74, 0x69,
0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x44, 0x61,
0x74, 0x61, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74,
0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x63, 0x0a,
0x0b, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x1b, 0x0a, 0x09,
0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x70,
0x69, 0x63, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x14, 0x0a, 0x05,
0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69,
0x61, 0x73, 0x22, 0x7e, 0x0a, 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x50, 0x61,
0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74,
0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x67,
0x69, 0x73, 0x74, 0x72, 0x79, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74,
0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64,
0x41, 0x74, 0x42, 0x6a, 0x0a, 0x1f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f,
0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6f, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63,
0x65, 0x73, 0x2e, 0x76, 0x31, 0x5a, 0x47, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67,
0x6f, 0x2d, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65,
0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69, 0x6f, 0x74, 0x2f, 0x64, 0x65, 0x76, 0x69,
0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() {
proto.RegisterFile("yandex/cloud/iot/devices/v1/registry.proto", fileDescriptor_39c05472a87f1ea4)
var (
file_yandex_cloud_iot_devices_v1_registry_proto_rawDescOnce sync.Once
file_yandex_cloud_iot_devices_v1_registry_proto_rawDescData = file_yandex_cloud_iot_devices_v1_registry_proto_rawDesc
)
func file_yandex_cloud_iot_devices_v1_registry_proto_rawDescGZIP() []byte {
file_yandex_cloud_iot_devices_v1_registry_proto_rawDescOnce.Do(func() {
file_yandex_cloud_iot_devices_v1_registry_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_iot_devices_v1_registry_proto_rawDescData)
})
return file_yandex_cloud_iot_devices_v1_registry_proto_rawDescData
}
var fileDescriptor_39c05472a87f1ea4 = []byte{
// 588 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x4d, 0x6f, 0xd3, 0x30,
0x18, 0x26, 0xed, 0x56, 0xda, 0xb7, 0xd3, 0xa8, 0x0c, 0x42, 0x51, 0x27, 0xb4, 0xd0, 0x53, 0x41,
0xcc, 0xd1, 0xc6, 0x85, 0xc1, 0xa9, 0xb4, 0x61, 0x44, 0x9a, 0xa6, 0x2a, 0xed, 0x38, 0x70, 0x89,
0xdc, 0xd8, 0x0d, 0x86, 0x34, 0x8e, 0x1c, 0xa7, 0xac, 0x17, 0x7e, 0x1a, 0xbf, 0x85, 0x9f, 0x82,
0x62, 0x27, 0x5b, 0xb7, 0xc3, 0xf8, 0xb8, 0x39, 0x8f, 0xdf, 0x8f, 0xc7, 0xcf, 0xfb, 0xbc, 0x81,
0x97, 0x1b, 0x92, 0x52, 0x76, 0xe5, 0x46, 0x89, 0x28, 0xa8, 0xcb, 0x85, 0x72, 0x29, 0x5b, 0xf3,
0x88, 0xe5, 0xee, 0xfa, 0xd8, 0x95, 0x2c, 0xe6, 0xb9, 0x92, 0x1b, 0x9c, 0x49, 0xa1, 0x04, 0x3a,
0x30, 0xb1, 0x58, 0xc7, 0x62, 0x2e, 0x14, 0xae, 0x62, 0xf1, 0xfa, 0xb8, 0x7f, 0x18, 0x0b, 0x11,
0x27, 0xcc, 0xd5, 0xa1, 0x8b, 0x62, 0xe9, 0x2a, 0xbe, 0x62, 0xb9, 0x22, 0xab, 0xcc, 0x64, 0xf7,
0x9f, 0xdd, 0xea, 0xb4, 0x26, 0x09, 0xa7, 0x44, 0x71, 0x91, 0x9a, 0xeb, 0xc1, 0xaf, 0x26, 0xb4,
0x83, 0xaa, 0x1f, 0xda, 0x87, 0x06, 0xa7, 0xb6, 0xe5, 0x58, 0xc3, 0x4e, 0xd0, 0xe0, 0x14, 0x1d,
0x40, 0x67, 0x29, 0x12, 0xca, 0x64, 0xc8, 0xa9, 0xdd, 0xd0, 0x70, 0xdb, 0x00, 0x3e, 0x45, 0xa7,
0x00, 0x91, 0x64, 0x44, 0x31, 0x1a, 0x12, 0x65, 0x37, 0x1d, 0x6b, 0xd8, 0x3d, 0xe9, 0x63, 0x43,
0x07, 0xd7, 0x74, 0xf0, 0xbc, 0xa6, 0x13, 0x74, 0xaa, 0xe8, 0x91, 0x42, 0x08, 0x76, 0x52, 0xb2,
0x62, 0xf6, 0x8e, 0x2e, 0xa9, 0xcf, 0xc8, 0x81, 0x2e, 0x65, 0x79, 0x24, 0x79, 0x56, 0xb2, 0xb3,
0x77, 0xf5, 0xd5, 0x36, 0x84, 0x7c, 0x68, 0x25, 0x64, 0xc1, 0x92, 0xdc, 0x6e, 0x39, 0xcd, 0x61,
0xf7, 0xe4, 0x18, 0xdf, 0x23, 0x0c, 0xae, 0x1f, 0x85, 0xcf, 0x75, 0x8e, 0x97, 0x2a, 0xb9, 0x09,
0xaa, 0x02, 0x68, 0x02, 0xad, 0x5c, 0x11, 0x55, 0xe4, 0xf6, 0x43, 0xc7, 0x1a, 0xee, 0x9f, 0xbc,
0xfa, 0xbb, 0x52, 0x33, 0x9d, 0x13, 0x54, 0xb9, 0xc8, 0x81, 0xbd, 0x44, 0xc4, 0x61, 0x2c, 0x45,
0x91, 0x95, 0x0a, 0xb5, 0x35, 0x67, 0x48, 0x44, 0x7c, 0x56, 0x42, 0x3e, 0xed, 0x9f, 0x42, 0x77,
0xab, 0x3d, 0xea, 0x41, 0xf3, 0x1b, 0xdb, 0x54, 0x02, 0x97, 0x47, 0xf4, 0x04, 0x76, 0xd7, 0x24,
0x29, 0x58, 0xa5, 0xae, 0xf9, 0x78, 0xdb, 0x78, 0x63, 0x0d, 0x3e, 0x42, 0xcb, 0xb4, 0x43, 0x4f,
0x01, 0xcd, 0xe6, 0xa3, 0xf9, 0xe5, 0x2c, 0xbc, 0xbc, 0x98, 0x4d, 0xbd, 0xb1, 0xff, 0xc1, 0xf7,
0x26, 0xbd, 0x07, 0x68, 0x0f, 0xda, 0xe3, 0xc0, 0x1b, 0xcd, 0xfd, 0x8b, 0xb3, 0x9e, 0x85, 0x00,
0x5a, 0xa3, 0xf1, 0xdc, 0xff, 0xe4, 0xf5, 0x1a, 0xe5, 0xcd, 0xc4, 0x3b, 0xf7, 0xf4, 0x4d, 0x73,
0xf0, 0xd3, 0x82, 0xc7, 0xf5, 0x13, 0xc6, 0x4c, 0x2a, 0xbe, 0xe4, 0x11, 0x51, 0x0c, 0x1d, 0x42,
0xb7, 0x76, 0x5a, 0x78, 0x3d, 0x76, 0xa8, 0x21, 0x9f, 0x96, 0x23, 0x59, 0xf2, 0x34, 0x66, 0x32,
0x93, 0x3c, 0x55, 0x15, 0xc5, 0x6d, 0x08, 0xbd, 0x80, 0x5e, 0x74, 0x53, 0x31, 0xa4, 0x44, 0x11,
0xed, 0x84, 0x4e, 0xf0, 0x68, 0x0b, 0x9f, 0x10, 0x45, 0xee, 0xd8, 0x65, 0xe7, 0x1f, 0xec, 0x32,
0x88, 0xa0, 0x3b, 0xd1, 0xd3, 0x18, 0x25, 0x9c, 0xe4, 0xa5, 0x2b, 0xcd, 0x70, 0x6e, 0x58, 0xb7,
0x0d, 0xe0, 0x53, 0xf4, 0x1c, 0xf6, 0x94, 0xc8, 0x78, 0x14, 0x66, 0x92, 0x2d, 0xf9, 0x55, 0x4d,
0x5a, 0x63, 0x53, 0x0d, 0x95, 0x9a, 0x93, 0xb2, 0x50, 0xc5, 0xd4, 0x7c, 0x0c, 0x7e, 0x40, 0xaf,
0x16, 0x69, 0x4a, 0xf2, 0xfc, 0xbb, 0x90, 0xf4, 0xcf, 0x0a, 0x99, 0x85, 0x69, 0x5c, 0x2f, 0xcc,
0xff, 0xef, 0xc4, 0xfb, 0xaf, 0x70, 0x78, 0xcb, 0x83, 0x24, 0xe3, 0x77, 0x7c, 0xf8, 0xf9, 0x2c,
0xe6, 0xea, 0x4b, 0xb1, 0xc0, 0x91, 0x58, 0xb9, 0x26, 0xf6, 0xc8, 0x6c, 0x75, 0x2c, 0x8e, 0x62,
0x96, 0xea, 0xfa, 0xee, 0x3d, 0x3f, 0x96, 0x77, 0xd5, 0x71, 0xd1, 0xd2, 0xa1, 0xaf, 0x7f, 0x07,
0x00, 0x00, 0xff, 0xff, 0xae, 0x9e, 0x11, 0xb4, 0x86, 0x04, 0x00, 0x00,
var file_yandex_cloud_iot_devices_v1_registry_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_iot_devices_v1_registry_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_yandex_cloud_iot_devices_v1_registry_proto_goTypes = []interface{}{
(Registry_Status)(0), // 0: yandex.cloud.iot.devices.v1.Registry.Status
(*Registry)(nil), // 1: yandex.cloud.iot.devices.v1.Registry
(*RegistryCertificate)(nil), // 2: yandex.cloud.iot.devices.v1.RegistryCertificate
(*DeviceAlias)(nil), // 3: yandex.cloud.iot.devices.v1.DeviceAlias
(*RegistryPassword)(nil), // 4: yandex.cloud.iot.devices.v1.RegistryPassword
nil, // 5: yandex.cloud.iot.devices.v1.Registry.LabelsEntry
(*timestamp.Timestamp)(nil), // 6: google.protobuf.Timestamp
}
var file_yandex_cloud_iot_devices_v1_registry_proto_depIdxs = []int32{
6, // 0: yandex.cloud.iot.devices.v1.Registry.created_at:type_name -> google.protobuf.Timestamp
5, // 1: yandex.cloud.iot.devices.v1.Registry.labels:type_name -> yandex.cloud.iot.devices.v1.Registry.LabelsEntry
0, // 2: yandex.cloud.iot.devices.v1.Registry.status:type_name -> yandex.cloud.iot.devices.v1.Registry.Status
6, // 3: yandex.cloud.iot.devices.v1.RegistryCertificate.created_at:type_name -> google.protobuf.Timestamp
6, // 4: yandex.cloud.iot.devices.v1.RegistryPassword.created_at:type_name -> google.protobuf.Timestamp
5, // [5:5] is the sub-list for method output_type
5, // [5:5] is the sub-list for method input_type
5, // [5:5] is the sub-list for extension type_name
5, // [5:5] is the sub-list for extension extendee
0, // [0:5] is the sub-list for field type_name
}
func init() { file_yandex_cloud_iot_devices_v1_registry_proto_init() }
func file_yandex_cloud_iot_devices_v1_registry_proto_init() {
if File_yandex_cloud_iot_devices_v1_registry_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_yandex_cloud_iot_devices_v1_registry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Registry); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_iot_devices_v1_registry_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RegistryCertificate); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_iot_devices_v1_registry_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeviceAlias); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_yandex_cloud_iot_devices_v1_registry_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RegistryPassword); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_yandex_cloud_iot_devices_v1_registry_proto_rawDesc,
NumEnums: 1,
NumMessages: 5,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_yandex_cloud_iot_devices_v1_registry_proto_goTypes,
DependencyIndexes: file_yandex_cloud_iot_devices_v1_registry_proto_depIdxs,
EnumInfos: file_yandex_cloud_iot_devices_v1_registry_proto_enumTypes,
MessageInfos: file_yandex_cloud_iot_devices_v1_registry_proto_msgTypes,
}.Build()
File_yandex_cloud_iot_devices_v1_registry_proto = out.File
file_yandex_cloud_iot_devices_v1_registry_proto_rawDesc = nil
file_yandex_cloud_iot_devices_v1_registry_proto_goTypes = nil
file_yandex_cloud_iot_devices_v1_registry_proto_depIdxs = nil
}

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