go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/analysis/proto/v1/project.pb.go (about)

     1  // Copyright 2022 The LUCI Authors.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //      http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.32.0
    18  // 	protoc        v3.21.7
    19  // source: go.chromium.org/luci/analysis/proto/v1/project.proto
    20  
    21  package analysispb
    22  
    23  import (
    24  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    25  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    26  	reflect "reflect"
    27  	sync "sync"
    28  )
    29  
    30  const (
    31  	// Verify that this generated code is sufficiently up-to-date.
    32  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    33  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    35  )
    36  
    37  type Project struct {
    38  	state         protoimpl.MessageState
    39  	sizeCache     protoimpl.SizeCache
    40  	unknownFields protoimpl.UnknownFields
    41  
    42  	// The resource name of the project which can be used to access the project.
    43  	// Format: projects/{project}.
    44  	// See also https://google.aip.dev/122.
    45  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    46  	// The display name to be used in the project selection page of LUCI Analysis.
    47  	// If not provided, the Title case of the project's Luci project ID will be used.
    48  	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
    49  	// The project id in luci, e.g. "chromium".
    50  	Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"`
    51  }
    52  
    53  func (x *Project) Reset() {
    54  	*x = Project{}
    55  	if protoimpl.UnsafeEnabled {
    56  		mi := &file_go_chromium_org_luci_analysis_proto_v1_project_proto_msgTypes[0]
    57  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    58  		ms.StoreMessageInfo(mi)
    59  	}
    60  }
    61  
    62  func (x *Project) String() string {
    63  	return protoimpl.X.MessageStringOf(x)
    64  }
    65  
    66  func (*Project) ProtoMessage() {}
    67  
    68  func (x *Project) ProtoReflect() protoreflect.Message {
    69  	mi := &file_go_chromium_org_luci_analysis_proto_v1_project_proto_msgTypes[0]
    70  	if protoimpl.UnsafeEnabled && x != nil {
    71  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    72  		if ms.LoadMessageInfo() == nil {
    73  			ms.StoreMessageInfo(mi)
    74  		}
    75  		return ms
    76  	}
    77  	return mi.MessageOf(x)
    78  }
    79  
    80  // Deprecated: Use Project.ProtoReflect.Descriptor instead.
    81  func (*Project) Descriptor() ([]byte, []int) {
    82  	return file_go_chromium_org_luci_analysis_proto_v1_project_proto_rawDescGZIP(), []int{0}
    83  }
    84  
    85  func (x *Project) GetName() string {
    86  	if x != nil {
    87  		return x.Name
    88  	}
    89  	return ""
    90  }
    91  
    92  func (x *Project) GetDisplayName() string {
    93  	if x != nil {
    94  		return x.DisplayName
    95  	}
    96  	return ""
    97  }
    98  
    99  func (x *Project) GetProject() string {
   100  	if x != nil {
   101  		return x.Project
   102  	}
   103  	return ""
   104  }
   105  
   106  var File_go_chromium_org_luci_analysis_proto_v1_project_proto protoreflect.FileDescriptor
   107  
   108  var file_go_chromium_org_luci_analysis_proto_v1_project_proto_rawDesc = []byte{
   109  	0x0a, 0x34, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   110  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f,
   111  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
   112  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x61, 0x6e, 0x61,
   113  	0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x76, 0x31, 0x22, 0x5a, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a,
   114  	0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
   115  	0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c,
   116  	0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64,
   117  	0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72,
   118  	0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f,
   119  	0x6a, 0x65, 0x63, 0x74, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d,
   120  	0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61,
   121  	0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x3b, 0x61,
   122  	0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   123  	0x33,
   124  }
   125  
   126  var (
   127  	file_go_chromium_org_luci_analysis_proto_v1_project_proto_rawDescOnce sync.Once
   128  	file_go_chromium_org_luci_analysis_proto_v1_project_proto_rawDescData = file_go_chromium_org_luci_analysis_proto_v1_project_proto_rawDesc
   129  )
   130  
   131  func file_go_chromium_org_luci_analysis_proto_v1_project_proto_rawDescGZIP() []byte {
   132  	file_go_chromium_org_luci_analysis_proto_v1_project_proto_rawDescOnce.Do(func() {
   133  		file_go_chromium_org_luci_analysis_proto_v1_project_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_analysis_proto_v1_project_proto_rawDescData)
   134  	})
   135  	return file_go_chromium_org_luci_analysis_proto_v1_project_proto_rawDescData
   136  }
   137  
   138  var file_go_chromium_org_luci_analysis_proto_v1_project_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   139  var file_go_chromium_org_luci_analysis_proto_v1_project_proto_goTypes = []interface{}{
   140  	(*Project)(nil), // 0: luci.analysis.v1.Project
   141  }
   142  var file_go_chromium_org_luci_analysis_proto_v1_project_proto_depIdxs = []int32{
   143  	0, // [0:0] is the sub-list for method output_type
   144  	0, // [0:0] is the sub-list for method input_type
   145  	0, // [0:0] is the sub-list for extension type_name
   146  	0, // [0:0] is the sub-list for extension extendee
   147  	0, // [0:0] is the sub-list for field type_name
   148  }
   149  
   150  func init() { file_go_chromium_org_luci_analysis_proto_v1_project_proto_init() }
   151  func file_go_chromium_org_luci_analysis_proto_v1_project_proto_init() {
   152  	if File_go_chromium_org_luci_analysis_proto_v1_project_proto != nil {
   153  		return
   154  	}
   155  	if !protoimpl.UnsafeEnabled {
   156  		file_go_chromium_org_luci_analysis_proto_v1_project_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   157  			switch v := v.(*Project); i {
   158  			case 0:
   159  				return &v.state
   160  			case 1:
   161  				return &v.sizeCache
   162  			case 2:
   163  				return &v.unknownFields
   164  			default:
   165  				return nil
   166  			}
   167  		}
   168  	}
   169  	type x struct{}
   170  	out := protoimpl.TypeBuilder{
   171  		File: protoimpl.DescBuilder{
   172  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   173  			RawDescriptor: file_go_chromium_org_luci_analysis_proto_v1_project_proto_rawDesc,
   174  			NumEnums:      0,
   175  			NumMessages:   1,
   176  			NumExtensions: 0,
   177  			NumServices:   0,
   178  		},
   179  		GoTypes:           file_go_chromium_org_luci_analysis_proto_v1_project_proto_goTypes,
   180  		DependencyIndexes: file_go_chromium_org_luci_analysis_proto_v1_project_proto_depIdxs,
   181  		MessageInfos:      file_go_chromium_org_luci_analysis_proto_v1_project_proto_msgTypes,
   182  	}.Build()
   183  	File_go_chromium_org_luci_analysis_proto_v1_project_proto = out.File
   184  	file_go_chromium_org_luci_analysis_proto_v1_project_proto_rawDesc = nil
   185  	file_go_chromium_org_luci_analysis_proto_v1_project_proto_goTypes = nil
   186  	file_go_chromium_org_luci_analysis_proto_v1_project_proto_depIdxs = nil
   187  }