github.com/cloudwan/edgelq-sdk@v1.15.4/monitoring/resources/v4/project/project.pb.go (about)

     1  // Code generated by protoc-gen-goten-go
     2  // File: edgelq/monitoring/proto/v4/project.proto
     3  // DO NOT EDIT!!!
     4  
     5  package project
     6  
     7  import (
     8  	"fmt"
     9  	"reflect"
    10  	"sync"
    11  
    12  	"google.golang.org/protobuf/encoding/protojson"
    13  	"google.golang.org/protobuf/proto"
    14  	preflect "google.golang.org/protobuf/reflect/protoreflect"
    15  	"google.golang.org/protobuf/runtime/protoimpl"
    16  )
    17  
    18  // proto imports
    19  import (
    20  	meta "github.com/cloudwan/goten-sdk/types/meta"
    21  	multi_region_policy "github.com/cloudwan/goten-sdk/types/multi_region_policy"
    22  )
    23  
    24  // Reference imports to suppress errors if they are not otherwise used.
    25  var (
    26  	_ = fmt.Errorf
    27  	_ = reflect.Method{}
    28  	_ = sync.Once{}
    29  
    30  	_ = protojson.MarshalOptions{}
    31  	_ = proto.MarshalOptions{}
    32  	_ = preflect.Value{}
    33  	_ = protoimpl.DescBuilder{}
    34  )
    35  
    36  // make sure we're using proto imports
    37  var (
    38  	_ = &meta.Meta{}
    39  	_ = &multi_region_policy.MultiRegionPolicy{}
    40  )
    41  
    42  const (
    43  	// Verify that this generated code is sufficiently up-to-date.
    44  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    45  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    46  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    47  )
    48  
    49  // Project Resource
    50  type Project struct {
    51  	state         protoimpl.MessageState
    52  	sizeCache     protoimpl.SizeCache
    53  	unknownFields protoimpl.UnknownFields
    54  	// Name of Project
    55  	// When creating a new instance, this field is optional and if not provided,
    56  	// it will be generated automatically. Last ID segment must conform to the
    57  	// following regex: [a-z][a-z0-9\\-]{0,28}[a-z0-9]
    58  	Name  *Name  `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty"`
    59  	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
    60  	// Metadata is an object with information like create, update and delete time
    61  	// (for async deleted resources), has user labels/annotations, sharding
    62  	// information, multi-region syncing information and may have non-schema
    63  	// owners (useful for taking ownership of resources belonging to lower level
    64  	// services by higher ones).
    65  	Metadata *meta.Meta `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
    66  	// Multi region policy
    67  	MultiRegionPolicy *multi_region_policy.MultiRegionPolicy `protobuf:"bytes,4,opt,name=multi_region_policy,json=multiRegionPolicy,proto3" json:"multi_region_policy,omitempty"`
    68  }
    69  
    70  func (m *Project) Reset() {
    71  	*m = Project{}
    72  	if protoimpl.UnsafeEnabled {
    73  		mi := &edgelq_monitoring_proto_v4_project_proto_msgTypes[0]
    74  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
    75  		ms.StoreMessageInfo(mi)
    76  	}
    77  }
    78  
    79  func (m *Project) String() string {
    80  	return protoimpl.X.MessageStringOf(m)
    81  }
    82  
    83  func (*Project) ProtoMessage() {}
    84  
    85  func (m *Project) ProtoReflect() preflect.Message {
    86  	mi := &edgelq_monitoring_proto_v4_project_proto_msgTypes[0]
    87  	if protoimpl.UnsafeEnabled && m != nil {
    88  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
    89  		if ms.LoadMessageInfo() == nil {
    90  			ms.StoreMessageInfo(mi)
    91  		}
    92  		return ms
    93  	}
    94  	return mi.MessageOf(m)
    95  }
    96  
    97  func (*Project) GotenMessage() {}
    98  
    99  // Deprecated, Use Project.ProtoReflect.Descriptor instead.
   100  func (*Project) Descriptor() ([]byte, []int) {
   101  	return edgelq_monitoring_proto_v4_project_proto_rawDescGZIP(), []int{0}
   102  }
   103  
   104  func (m *Project) Unmarshal(b []byte) error {
   105  	return proto.Unmarshal(b, m)
   106  }
   107  
   108  func (m *Project) Marshal() ([]byte, error) {
   109  	return proto.Marshal(m)
   110  }
   111  
   112  func (m *Project) MarshalJSON() ([]byte, error) {
   113  	return protojson.MarshalOptions{}.Marshal(m)
   114  }
   115  
   116  func (m *Project) UnmarshalJSON(data []byte) error {
   117  	return protojson.Unmarshal(data, m)
   118  }
   119  
   120  func (m *Project) GetName() *Name {
   121  	if m != nil {
   122  		return m.Name
   123  	}
   124  	return nil
   125  }
   126  
   127  func (m *Project) GetTitle() string {
   128  	if m != nil {
   129  		return m.Title
   130  	}
   131  	return ""
   132  }
   133  
   134  func (m *Project) GetMetadata() *meta.Meta {
   135  	if m != nil {
   136  		return m.Metadata
   137  	}
   138  	return nil
   139  }
   140  
   141  func (m *Project) GetMultiRegionPolicy() *multi_region_policy.MultiRegionPolicy {
   142  	if m != nil {
   143  		return m.MultiRegionPolicy
   144  	}
   145  	return nil
   146  }
   147  
   148  func (m *Project) SetName(fv *Name) {
   149  	if m == nil {
   150  		panic(fmt.Errorf("can't set %s on nil %s", "Name", "Project"))
   151  	}
   152  	m.Name = fv
   153  }
   154  
   155  func (m *Project) SetTitle(fv string) {
   156  	if m == nil {
   157  		panic(fmt.Errorf("can't set %s on nil %s", "Title", "Project"))
   158  	}
   159  	m.Title = fv
   160  }
   161  
   162  func (m *Project) SetMetadata(fv *meta.Meta) {
   163  	if m == nil {
   164  		panic(fmt.Errorf("can't set %s on nil %s", "Metadata", "Project"))
   165  	}
   166  	m.Metadata = fv
   167  }
   168  
   169  func (m *Project) SetMultiRegionPolicy(fv *multi_region_policy.MultiRegionPolicy) {
   170  	if m == nil {
   171  		panic(fmt.Errorf("can't set %s on nil %s", "MultiRegionPolicy", "Project"))
   172  	}
   173  	m.MultiRegionPolicy = fv
   174  }
   175  
   176  var edgelq_monitoring_proto_v4_project_proto preflect.FileDescriptor
   177  
   178  var edgelq_monitoring_proto_v4_project_proto_rawDesc = []byte{
   179  	0x0a, 0x28, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72,
   180  	0x69, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x34, 0x2f, 0x70, 0x72, 0x6f,
   181  	0x6a, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x6e, 0x74, 0x74, 0x2e,
   182  	0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x34, 0x1a, 0x19, 0x67,
   183  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
   184  	0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f,
   185  	0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69,
   186  	0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65,
   187  	0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x67, 0x6f,
   188  	0x74, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e,
   189  	0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x72, 0x65, 0x73,
   190  	0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x74,
   191  	0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73,
   192  	0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x74, 0x65,
   193  	0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x65,
   194  	0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x67, 0x6f, 0x74,
   195  	0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d,
   196  	0x75, 0x6c, 0x74, 0x69, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   197  	0x6f, 0x1a, 0x24, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f,
   198  	0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x75, 0x64, 0x69,
   199  	0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x74,
   200  	0x79, 0x70, 0x65, 0x73, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
   201  	0x25, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6d, 0x75, 0x6c,
   202  	0x74, 0x69, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,
   203  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdc, 0x02, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65,
   204  	0x63, 0x74, 0x12, 0x23, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
   205  	0x42, 0x0f, 0xb2, 0xda, 0x21, 0x0b, 0x0a, 0x09, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,
   206  	0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,
   207  	0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2d, 0x0a,
   208  	0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
   209  	0x11, 0x2e, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4d, 0x65,
   210  	0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x58, 0x0a, 0x13,
   211  	0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c,
   212  	0x69, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x74, 0x65,
   213  	0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x52, 0x65, 0x67,
   214  	0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x08, 0xca, 0xc6, 0x27, 0x04, 0x62,
   215  	0x02, 0x08, 0x01, 0x52, 0x11, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
   216  	0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x3a, 0x8c, 0x01, 0xea, 0x41, 0x33, 0x0a, 0x1d, 0x6d, 0x6f,
   217  	0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2e,
   218  	0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x70, 0x72, 0x6f,
   219  	0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x92,
   220  	0xd9, 0x21, 0x16, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x08, 0x70,
   221  	0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x58, 0x01, 0xda, 0x94, 0x23, 0x08, 0x12, 0x06, 0x0a,
   222  	0x04, 0x6e, 0x61, 0x6d, 0x65, 0xc2, 0x85, 0x2c, 0x2c, 0x22, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22,
   223  	0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x22, 0x13, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x72, 0x65,
   224  	0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x08, 0x6d, 0x65, 0x74,
   225  	0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x8c, 0x02, 0xe8, 0xde, 0x21, 0x01, 0xd2, 0xff, 0xd0, 0x02,
   226  	0x47, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65,
   227  	0x12, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f,
   228  	0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x6d, 0x6f, 0x6e,
   229  	0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34,
   230  	0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0xa2, 0x80, 0xd1, 0x02, 0x49, 0x0a, 0x0e, 0x70,
   231  	0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x37, 0x67,
   232  	0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77,
   233  	0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f,
   234  	0x72, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x2f, 0x76, 0x34, 0x2f, 0x70,
   235  	0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x74, 0x74, 0x2e,
   236  	0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x62, 0x2e, 0x76, 0x34,
   237  	0x42, 0x0c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
   238  	0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f,
   239  	0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x6d, 0x6f, 0x6e,
   240  	0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
   241  	0x73, 0x2f, 0x76, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3b, 0x70, 0x72, 0x6f,
   242  	0x6a, 0x65, 0x63, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   243  }
   244  
   245  var (
   246  	edgelq_monitoring_proto_v4_project_proto_rawDescOnce sync.Once
   247  	edgelq_monitoring_proto_v4_project_proto_rawDescData = edgelq_monitoring_proto_v4_project_proto_rawDesc
   248  )
   249  
   250  func edgelq_monitoring_proto_v4_project_proto_rawDescGZIP() []byte {
   251  	edgelq_monitoring_proto_v4_project_proto_rawDescOnce.Do(func() {
   252  		edgelq_monitoring_proto_v4_project_proto_rawDescData = protoimpl.X.CompressGZIP(edgelq_monitoring_proto_v4_project_proto_rawDescData)
   253  	})
   254  	return edgelq_monitoring_proto_v4_project_proto_rawDescData
   255  }
   256  
   257  var edgelq_monitoring_proto_v4_project_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   258  var edgelq_monitoring_proto_v4_project_proto_goTypes = []interface{}{
   259  	(*Project)(nil),   // 0: ntt.monitoring.v4.Project
   260  	(*meta.Meta)(nil), // 1: goten.types.Meta
   261  	(*multi_region_policy.MultiRegionPolicy)(nil), // 2: goten.types.MultiRegionPolicy
   262  }
   263  var edgelq_monitoring_proto_v4_project_proto_depIdxs = []int32{
   264  	1, // 0: ntt.monitoring.v4.Project.metadata:type_name -> goten.types.Meta
   265  	2, // 1: ntt.monitoring.v4.Project.multi_region_policy:type_name -> goten.types.MultiRegionPolicy
   266  	2, // [2:2] is the sub-list for method output_type
   267  	2, // [2:2] is the sub-list for method input_type
   268  	2, // [2:2] is the sub-list for extension type_name
   269  	2, // [2:2] is the sub-list for extension extendee
   270  	0, // [0:2] is the sub-list for field type_name
   271  }
   272  
   273  func init() { edgelq_monitoring_proto_v4_project_proto_init() }
   274  func edgelq_monitoring_proto_v4_project_proto_init() {
   275  	if edgelq_monitoring_proto_v4_project_proto != nil {
   276  		return
   277  	}
   278  	if !protoimpl.UnsafeEnabled {
   279  
   280  		edgelq_monitoring_proto_v4_project_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   281  			switch v := v.(*Project); i {
   282  			case 0:
   283  				return &v.state
   284  			case 1:
   285  				return &v.sizeCache
   286  			case 2:
   287  				return &v.unknownFields
   288  			default:
   289  				return nil
   290  			}
   291  		}
   292  	}
   293  
   294  	type x struct{}
   295  	out := protoimpl.TypeBuilder{
   296  		File: protoimpl.DescBuilder{
   297  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   298  			RawDescriptor: edgelq_monitoring_proto_v4_project_proto_rawDesc,
   299  			NumEnums:      0,
   300  			NumMessages:   1,
   301  			NumExtensions: 0,
   302  			NumServices:   0,
   303  		},
   304  		GoTypes:           edgelq_monitoring_proto_v4_project_proto_goTypes,
   305  		DependencyIndexes: edgelq_monitoring_proto_v4_project_proto_depIdxs,
   306  		MessageInfos:      edgelq_monitoring_proto_v4_project_proto_msgTypes,
   307  	}.Build()
   308  	edgelq_monitoring_proto_v4_project_proto = out.File
   309  	edgelq_monitoring_proto_v4_project_proto_rawDesc = nil
   310  	edgelq_monitoring_proto_v4_project_proto_goTypes = nil
   311  	edgelq_monitoring_proto_v4_project_proto_depIdxs = nil
   312  }