dns_zone.pb.go raw

   1  // Code generated by protoc-gen-go. DO NOT EDIT.
   2  // versions:
   3  // 	protoc-gen-go v1.36.6
   4  // 	protoc        v3.21.12
   5  // source: yandex/cloud/dns/v1/dns_zone.proto
   6  
   7  package dns
   8  
   9  import (
  10  	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
  11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  13  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
  14  	reflect "reflect"
  15  	sync "sync"
  16  	unsafe "unsafe"
  17  )
  18  
  19  const (
  20  	// Verify that this generated code is sufficiently up-to-date.
  21  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  22  	// Verify that runtime/protoimpl is sufficiently up-to-date.
  23  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  24  )
  25  
  26  // A DNS zone. For details about the concept, see [DNS zones](/docs/dns/concepts/dns-zone).
  27  type DnsZone struct {
  28  	state protoimpl.MessageState `protogen:"open.v1"`
  29  	// ID of the DNS zone. Generated at creation time.
  30  	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  31  	// ID of the folder that the DNS zone belongs to.
  32  	FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
  33  	// Creation timestamp.
  34  	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  35  	// Name of the DNS zone.
  36  	// The name is unique within the folder.
  37  	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
  38  	// Description of the DNS zone.
  39  	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
  40  	// DNS zone labels as `key:value` pairs.
  41  	Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  42  	// DNS zone suffix.
  43  	Zone string `protobuf:"bytes,7,opt,name=zone,proto3" json:"zone,omitempty"`
  44  	// Privately visible zone settings.
  45  	// Specifies whether records within the zone are visible from a VPC networks only.
  46  	PrivateVisibility *PrivateVisibility `protobuf:"bytes,8,opt,name=private_visibility,json=privateVisibility,proto3" json:"private_visibility,omitempty"`
  47  	// Publicly visible zone settings.
  48  	// Indicates whether records within the zone are publicly visible.
  49  	PublicVisibility *PublicVisibility `protobuf:"bytes,9,opt,name=public_visibility,json=publicVisibility,proto3" json:"public_visibility,omitempty"`
  50  	// Prevents accidental zone removal.
  51  	DeletionProtection bool `protobuf:"varint,10,opt,name=deletion_protection,json=deletionProtection,proto3" json:"deletion_protection,omitempty"`
  52  	unknownFields      protoimpl.UnknownFields
  53  	sizeCache          protoimpl.SizeCache
  54  }
  55  
  56  func (x *DnsZone) Reset() {
  57  	*x = DnsZone{}
  58  	mi := &file_yandex_cloud_dns_v1_dns_zone_proto_msgTypes[0]
  59  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  60  	ms.StoreMessageInfo(mi)
  61  }
  62  
  63  func (x *DnsZone) String() string {
  64  	return protoimpl.X.MessageStringOf(x)
  65  }
  66  
  67  func (*DnsZone) ProtoMessage() {}
  68  
  69  func (x *DnsZone) ProtoReflect() protoreflect.Message {
  70  	mi := &file_yandex_cloud_dns_v1_dns_zone_proto_msgTypes[0]
  71  	if x != nil {
  72  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  73  		if ms.LoadMessageInfo() == nil {
  74  			ms.StoreMessageInfo(mi)
  75  		}
  76  		return ms
  77  	}
  78  	return mi.MessageOf(x)
  79  }
  80  
  81  // Deprecated: Use DnsZone.ProtoReflect.Descriptor instead.
  82  func (*DnsZone) Descriptor() ([]byte, []int) {
  83  	return file_yandex_cloud_dns_v1_dns_zone_proto_rawDescGZIP(), []int{0}
  84  }
  85  
  86  func (x *DnsZone) GetId() string {
  87  	if x != nil {
  88  		return x.Id
  89  	}
  90  	return ""
  91  }
  92  
  93  func (x *DnsZone) GetFolderId() string {
  94  	if x != nil {
  95  		return x.FolderId
  96  	}
  97  	return ""
  98  }
  99  
 100  func (x *DnsZone) GetCreatedAt() *timestamppb.Timestamp {
 101  	if x != nil {
 102  		return x.CreatedAt
 103  	}
 104  	return nil
 105  }
 106  
 107  func (x *DnsZone) GetName() string {
 108  	if x != nil {
 109  		return x.Name
 110  	}
 111  	return ""
 112  }
 113  
 114  func (x *DnsZone) GetDescription() string {
 115  	if x != nil {
 116  		return x.Description
 117  	}
 118  	return ""
 119  }
 120  
 121  func (x *DnsZone) GetLabels() map[string]string {
 122  	if x != nil {
 123  		return x.Labels
 124  	}
 125  	return nil
 126  }
 127  
 128  func (x *DnsZone) GetZone() string {
 129  	if x != nil {
 130  		return x.Zone
 131  	}
 132  	return ""
 133  }
 134  
 135  func (x *DnsZone) GetPrivateVisibility() *PrivateVisibility {
 136  	if x != nil {
 137  		return x.PrivateVisibility
 138  	}
 139  	return nil
 140  }
 141  
 142  func (x *DnsZone) GetPublicVisibility() *PublicVisibility {
 143  	if x != nil {
 144  		return x.PublicVisibility
 145  	}
 146  	return nil
 147  }
 148  
 149  func (x *DnsZone) GetDeletionProtection() bool {
 150  	if x != nil {
 151  		return x.DeletionProtection
 152  	}
 153  	return false
 154  }
 155  
 156  // A record set. For details about the concept, see [Resource record](/docs/dns/concepts/resource-record).
 157  type RecordSet struct {
 158  	state protoimpl.MessageState `protogen:"open.v1"`
 159  	// Domain name.
 160  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
 161  	// Record type.
 162  	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
 163  	// Time to live in seconds.
 164  	Ttl int64 `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"`
 165  	// Data of the record set.
 166  	Data          []string `protobuf:"bytes,4,rep,name=data,proto3" json:"data,omitempty"`
 167  	unknownFields protoimpl.UnknownFields
 168  	sizeCache     protoimpl.SizeCache
 169  }
 170  
 171  func (x *RecordSet) Reset() {
 172  	*x = RecordSet{}
 173  	mi := &file_yandex_cloud_dns_v1_dns_zone_proto_msgTypes[1]
 174  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 175  	ms.StoreMessageInfo(mi)
 176  }
 177  
 178  func (x *RecordSet) String() string {
 179  	return protoimpl.X.MessageStringOf(x)
 180  }
 181  
 182  func (*RecordSet) ProtoMessage() {}
 183  
 184  func (x *RecordSet) ProtoReflect() protoreflect.Message {
 185  	mi := &file_yandex_cloud_dns_v1_dns_zone_proto_msgTypes[1]
 186  	if x != nil {
 187  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 188  		if ms.LoadMessageInfo() == nil {
 189  			ms.StoreMessageInfo(mi)
 190  		}
 191  		return ms
 192  	}
 193  	return mi.MessageOf(x)
 194  }
 195  
 196  // Deprecated: Use RecordSet.ProtoReflect.Descriptor instead.
 197  func (*RecordSet) Descriptor() ([]byte, []int) {
 198  	return file_yandex_cloud_dns_v1_dns_zone_proto_rawDescGZIP(), []int{1}
 199  }
 200  
 201  func (x *RecordSet) GetName() string {
 202  	if x != nil {
 203  		return x.Name
 204  	}
 205  	return ""
 206  }
 207  
 208  func (x *RecordSet) GetType() string {
 209  	if x != nil {
 210  		return x.Type
 211  	}
 212  	return ""
 213  }
 214  
 215  func (x *RecordSet) GetTtl() int64 {
 216  	if x != nil {
 217  		return x.Ttl
 218  	}
 219  	return 0
 220  }
 221  
 222  func (x *RecordSet) GetData() []string {
 223  	if x != nil {
 224  		return x.Data
 225  	}
 226  	return nil
 227  }
 228  
 229  // Configuration for privately visible zones.
 230  type PrivateVisibility struct {
 231  	state protoimpl.MessageState `protogen:"open.v1"`
 232  	// Network IDs.
 233  	NetworkIds    []string `protobuf:"bytes,1,rep,name=network_ids,json=networkIds,proto3" json:"network_ids,omitempty"`
 234  	unknownFields protoimpl.UnknownFields
 235  	sizeCache     protoimpl.SizeCache
 236  }
 237  
 238  func (x *PrivateVisibility) Reset() {
 239  	*x = PrivateVisibility{}
 240  	mi := &file_yandex_cloud_dns_v1_dns_zone_proto_msgTypes[2]
 241  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 242  	ms.StoreMessageInfo(mi)
 243  }
 244  
 245  func (x *PrivateVisibility) String() string {
 246  	return protoimpl.X.MessageStringOf(x)
 247  }
 248  
 249  func (*PrivateVisibility) ProtoMessage() {}
 250  
 251  func (x *PrivateVisibility) ProtoReflect() protoreflect.Message {
 252  	mi := &file_yandex_cloud_dns_v1_dns_zone_proto_msgTypes[2]
 253  	if x != nil {
 254  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 255  		if ms.LoadMessageInfo() == nil {
 256  			ms.StoreMessageInfo(mi)
 257  		}
 258  		return ms
 259  	}
 260  	return mi.MessageOf(x)
 261  }
 262  
 263  // Deprecated: Use PrivateVisibility.ProtoReflect.Descriptor instead.
 264  func (*PrivateVisibility) Descriptor() ([]byte, []int) {
 265  	return file_yandex_cloud_dns_v1_dns_zone_proto_rawDescGZIP(), []int{2}
 266  }
 267  
 268  func (x *PrivateVisibility) GetNetworkIds() []string {
 269  	if x != nil {
 270  		return x.NetworkIds
 271  	}
 272  	return nil
 273  }
 274  
 275  // Configuration for publicly visible zones.
 276  type PublicVisibility struct {
 277  	state         protoimpl.MessageState `protogen:"open.v1"`
 278  	unknownFields protoimpl.UnknownFields
 279  	sizeCache     protoimpl.SizeCache
 280  }
 281  
 282  func (x *PublicVisibility) Reset() {
 283  	*x = PublicVisibility{}
 284  	mi := &file_yandex_cloud_dns_v1_dns_zone_proto_msgTypes[3]
 285  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 286  	ms.StoreMessageInfo(mi)
 287  }
 288  
 289  func (x *PublicVisibility) String() string {
 290  	return protoimpl.X.MessageStringOf(x)
 291  }
 292  
 293  func (*PublicVisibility) ProtoMessage() {}
 294  
 295  func (x *PublicVisibility) ProtoReflect() protoreflect.Message {
 296  	mi := &file_yandex_cloud_dns_v1_dns_zone_proto_msgTypes[3]
 297  	if x != nil {
 298  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 299  		if ms.LoadMessageInfo() == nil {
 300  			ms.StoreMessageInfo(mi)
 301  		}
 302  		return ms
 303  	}
 304  	return mi.MessageOf(x)
 305  }
 306  
 307  // Deprecated: Use PublicVisibility.ProtoReflect.Descriptor instead.
 308  func (*PublicVisibility) Descriptor() ([]byte, []int) {
 309  	return file_yandex_cloud_dns_v1_dns_zone_proto_rawDescGZIP(), []int{3}
 310  }
 311  
 312  var File_yandex_cloud_dns_v1_dns_zone_proto protoreflect.FileDescriptor
 313  
 314  const file_yandex_cloud_dns_v1_dns_zone_proto_rawDesc = "" +
 315  	"\n" +
 316  	"\"yandex/cloud/dns/v1/dns_zone.proto\x12\x13yandex.cloud.dns.v1\x1a\x1dyandex/cloud/validation.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x94\x04\n" +
 317  	"\aDnsZone\x12\x0e\n" +
 318  	"\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
 319  	"\tfolder_id\x18\x02 \x01(\tR\bfolderId\x129\n" +
 320  	"\n" +
 321  	"created_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x12\n" +
 322  	"\x04name\x18\x04 \x01(\tR\x04name\x12 \n" +
 323  	"\vdescription\x18\x05 \x01(\tR\vdescription\x12@\n" +
 324  	"\x06labels\x18\x06 \x03(\v2(.yandex.cloud.dns.v1.DnsZone.LabelsEntryR\x06labels\x12\x12\n" +
 325  	"\x04zone\x18\a \x01(\tR\x04zone\x12U\n" +
 326  	"\x12private_visibility\x18\b \x01(\v2&.yandex.cloud.dns.v1.PrivateVisibilityR\x11privateVisibility\x12R\n" +
 327  	"\x11public_visibility\x18\t \x01(\v2%.yandex.cloud.dns.v1.PublicVisibilityR\x10publicVisibility\x12/\n" +
 328  	"\x13deletion_protection\x18\n" +
 329  	" \x01(\bR\x12deletionProtection\x1a9\n" +
 330  	"\vLabelsEntry\x12\x10\n" +
 331  	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
 332  	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x98\x01\n" +
 333  	"\tRecordSet\x12\x1d\n" +
 334  	"\x04name\x18\x01 \x01(\tB\t\x8a\xc81\x051-254R\x04name\x12\x1c\n" +
 335  	"\x04type\x18\x02 \x01(\tB\b\x8a\xc81\x041-20R\x04type\x12\"\n" +
 336  	"\x03ttl\x18\x03 \x01(\x03B\x10\xfa\xc71\f0-2147483647R\x03ttl\x12*\n" +
 337  	"\x04data\x18\x04 \x03(\tB\x16\x82\xc81\x051-100\x8a\xc81\x051-255\x90\xc81\x01R\x04data\"I\n" +
 338  	"\x11PrivateVisibility\x124\n" +
 339  	"\vnetwork_ids\x18\x01 \x03(\tB\x13\x82\xc81\x050-100\x8a\xc81\x0220\x90\xc81\x01R\n" +
 340  	"networkIds\"\x12\n" +
 341  	"\x10PublicVisibilityBV\n" +
 342  	"\x17yandex.cloud.api.dns.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/dns/v1;dnsb\x06proto3"
 343  
 344  var (
 345  	file_yandex_cloud_dns_v1_dns_zone_proto_rawDescOnce sync.Once
 346  	file_yandex_cloud_dns_v1_dns_zone_proto_rawDescData []byte
 347  )
 348  
 349  func file_yandex_cloud_dns_v1_dns_zone_proto_rawDescGZIP() []byte {
 350  	file_yandex_cloud_dns_v1_dns_zone_proto_rawDescOnce.Do(func() {
 351  		file_yandex_cloud_dns_v1_dns_zone_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_dns_v1_dns_zone_proto_rawDesc), len(file_yandex_cloud_dns_v1_dns_zone_proto_rawDesc)))
 352  	})
 353  	return file_yandex_cloud_dns_v1_dns_zone_proto_rawDescData
 354  }
 355  
 356  var file_yandex_cloud_dns_v1_dns_zone_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
 357  var file_yandex_cloud_dns_v1_dns_zone_proto_goTypes = []any{
 358  	(*DnsZone)(nil),               // 0: yandex.cloud.dns.v1.DnsZone
 359  	(*RecordSet)(nil),             // 1: yandex.cloud.dns.v1.RecordSet
 360  	(*PrivateVisibility)(nil),     // 2: yandex.cloud.dns.v1.PrivateVisibility
 361  	(*PublicVisibility)(nil),      // 3: yandex.cloud.dns.v1.PublicVisibility
 362  	nil,                           // 4: yandex.cloud.dns.v1.DnsZone.LabelsEntry
 363  	(*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp
 364  }
 365  var file_yandex_cloud_dns_v1_dns_zone_proto_depIdxs = []int32{
 366  	5, // 0: yandex.cloud.dns.v1.DnsZone.created_at:type_name -> google.protobuf.Timestamp
 367  	4, // 1: yandex.cloud.dns.v1.DnsZone.labels:type_name -> yandex.cloud.dns.v1.DnsZone.LabelsEntry
 368  	2, // 2: yandex.cloud.dns.v1.DnsZone.private_visibility:type_name -> yandex.cloud.dns.v1.PrivateVisibility
 369  	3, // 3: yandex.cloud.dns.v1.DnsZone.public_visibility:type_name -> yandex.cloud.dns.v1.PublicVisibility
 370  	4, // [4:4] is the sub-list for method output_type
 371  	4, // [4:4] is the sub-list for method input_type
 372  	4, // [4:4] is the sub-list for extension type_name
 373  	4, // [4:4] is the sub-list for extension extendee
 374  	0, // [0:4] is the sub-list for field type_name
 375  }
 376  
 377  func init() { file_yandex_cloud_dns_v1_dns_zone_proto_init() }
 378  func file_yandex_cloud_dns_v1_dns_zone_proto_init() {
 379  	if File_yandex_cloud_dns_v1_dns_zone_proto != nil {
 380  		return
 381  	}
 382  	type x struct{}
 383  	out := protoimpl.TypeBuilder{
 384  		File: protoimpl.DescBuilder{
 385  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 386  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_dns_v1_dns_zone_proto_rawDesc), len(file_yandex_cloud_dns_v1_dns_zone_proto_rawDesc)),
 387  			NumEnums:      0,
 388  			NumMessages:   5,
 389  			NumExtensions: 0,
 390  			NumServices:   0,
 391  		},
 392  		GoTypes:           file_yandex_cloud_dns_v1_dns_zone_proto_goTypes,
 393  		DependencyIndexes: file_yandex_cloud_dns_v1_dns_zone_proto_depIdxs,
 394  		MessageInfos:      file_yandex_cloud_dns_v1_dns_zone_proto_msgTypes,
 395  	}.Build()
 396  	File_yandex_cloud_dns_v1_dns_zone_proto = out.File
 397  	file_yandex_cloud_dns_v1_dns_zone_proto_goTypes = nil
 398  	file_yandex_cloud_dns_v1_dns_zone_proto_depIdxs = nil
 399  }
 400