| 1 |
// Copyright 2025 Google LLC |
| 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.35.2 |
| 18 |
// protoc v4.25.7 |
| 19 |
// source: google/cloud/servicedirectory/v1/service.proto |
| 20 |
|
| 21 |
package servicedirectorypb |
| 22 |
|
| 23 |
import ( |
| 24 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 25 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 26 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 27 |
reflect "reflect" |
| 28 |
sync "sync" |
| 29 |
) |
| 30 |
|
| 31 |
const ( |
| 32 |
// Verify that this generated code is sufficiently up-to-date. |
| 33 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 34 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 35 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 36 |
) |
| 37 |
|
| 38 |
// An individual service. A service contains a name and optional metadata. |
| 39 |
// A service must exist before |
| 40 |
// [endpoints][google.cloud.servicedirectory.v1.Endpoint] can be |
| 41 |
// added to it. |
| 42 |
type Service struct { |
| 43 |
state protoimpl.MessageState |
| 44 |
sizeCache protoimpl.SizeCache |
| 45 |
unknownFields protoimpl.UnknownFields |
| 46 |
|
| 47 |
// Immutable. The resource name for the service in the format |
| 48 |
// `projects/*/locations/*/namespaces/*/services/*`. |
| 49 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 50 |
// Optional. Annotations for the service. This data can be consumed by service |
| 51 |
// clients. |
| 52 |
// |
| 53 |
// Restrictions: |
| 54 |
// |
| 55 |
// - The entire annotations dictionary may contain up to 2000 characters, |
| 56 |
// spread accoss all key-value pairs. Annotations that go beyond this |
| 57 |
// limit are rejected |
| 58 |
// - Valid annotation keys have two segments: an optional prefix and name, |
| 59 |
// separated by a slash (/). The name segment is required and must be 63 |
| 60 |
// characters or less, beginning and ending with an alphanumeric character |
| 61 |
// ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and |
| 62 |
// alphanumerics between. The prefix is optional. If specified, the prefix |
| 63 |
// must be a DNS subdomain: a series of DNS labels separated by dots (.), |
| 64 |
// not longer than 253 characters in total, followed by a slash (/). |
| 65 |
// Annotations that fails to meet these requirements are rejected |
| 66 |
// |
| 67 |
// Note: This field is equivalent to the `metadata` field in the v1beta1 API. |
| 68 |
// They have the same syntax and read/write to the same location in Service |
| 69 |
// Directory. |
| 70 |
Annotations map[string]string `protobuf:"bytes,4,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 71 |
// Output only. Endpoints associated with this service. Returned on |
| 72 |
// [LookupService.ResolveService][google.cloud.servicedirectory.v1.LookupService.ResolveService]. |
| 73 |
// Control plane clients should use |
| 74 |
// [RegistrationService.ListEndpoints][google.cloud.servicedirectory.v1.RegistrationService.ListEndpoints]. |
| 75 |
Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"` |
| 76 |
// Output only. The globally unique identifier of the service in the UUID4 |
| 77 |
// format. |
| 78 |
Uid string `protobuf:"bytes,7,opt,name=uid,proto3" json:"uid,omitempty"` |
| 79 |
} |
| 80 |
|
| 81 |
func (x *Service) Reset() { |
| 82 |
*x = Service{} |
| 83 |
mi := &file_google_cloud_servicedirectory_v1_service_proto_msgTypes[0] |
| 84 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 85 |
ms.StoreMessageInfo(mi) |
| 86 |
} |
| 87 |
|
| 88 |
func (x *Service) String() string { |
| 89 |
return protoimpl.X.MessageStringOf(x) |
| 90 |
} |
| 91 |
|
| 92 |
func (*Service) ProtoMessage() {} |
| 93 |
|
| 94 |
func (x *Service) ProtoReflect() protoreflect.Message { |
| 95 |
mi := &file_google_cloud_servicedirectory_v1_service_proto_msgTypes[0] |
| 96 |
if x != nil { |
| 97 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 98 |
if ms.LoadMessageInfo() == nil { |
| 99 |
ms.StoreMessageInfo(mi) |
| 100 |
} |
| 101 |
return ms |
| 102 |
} |
| 103 |
return mi.MessageOf(x) |
| 104 |
} |
| 105 |
|
| 106 |
// Deprecated: Use Service.ProtoReflect.Descriptor instead. |
| 107 |
func (*Service) Descriptor() ([]byte, []int) { |
| 108 |
return file_google_cloud_servicedirectory_v1_service_proto_rawDescGZIP(), []int{0} |
| 109 |
} |
| 110 |
|
| 111 |
func (x *Service) GetName() string { |
| 112 |
if x != nil { |
| 113 |
return x.Name |
| 114 |
} |
| 115 |
return "" |
| 116 |
} |
| 117 |
|
| 118 |
func (x *Service) GetAnnotations() map[string]string { |
| 119 |
if x != nil { |
| 120 |
return x.Annotations |
| 121 |
} |
| 122 |
return nil |
| 123 |
} |
| 124 |
|
| 125 |
func (x *Service) GetEndpoints() []*Endpoint { |
| 126 |
if x != nil { |
| 127 |
return x.Endpoints |
| 128 |
} |
| 129 |
return nil |
| 130 |
} |
| 131 |
|
| 132 |
func (x *Service) GetUid() string { |
| 133 |
if x != nil { |
| 134 |
return x.Uid |
| 135 |
} |
| 136 |
return "" |
| 137 |
} |
| 138 |
|
| 139 |
var File_google_cloud_servicedirectory_v1_service_proto protoreflect.FileDescriptor |
| 140 |
|
| 141 |
var file_google_cloud_servicedirectory_v1_service_proto_rawDesc = []byte{ |
| 142 |
0x0a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, |
| 143 |
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f, |
| 144 |
0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 145 |
0x12, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, |
| 146 |
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, |
| 147 |
0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, |
| 148 |
0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, |
| 149 |
0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, |
| 150 |
0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2f, |
| 151 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x65, 0x72, |
| 152 |
0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x76, 0x31, |
| 153 |
0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, |
| 154 |
0xac, 0x03, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x17, 0x0a, 0x04, 0x6e, |
| 155 |
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x05, 0x52, 0x04, |
| 156 |
0x6e, 0x61, 0x6d, 0x65, 0x12, 0x61, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, |
| 157 |
0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 158 |
0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, |
| 159 |
0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, |
| 160 |
0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, |
| 161 |
0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, |
| 162 |
0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x4d, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, |
| 163 |
0x69, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, |
| 164 |
0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, |
| 165 |
0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, |
| 166 |
0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x65, 0x6e, 0x64, |
| 167 |
0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x07, 0x20, |
| 168 |
0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x1a, 0x3e, 0x0a, |
| 169 |
0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, |
| 170 |
0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, |
| 171 |
0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, |
| 172 |
0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a, 0x7f, 0xea, |
| 173 |
0x41, 0x7c, 0x0a, 0x27, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, |
| 174 |
0x74, 0x6f, 0x72, 0x79, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, |
| 175 |
0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x51, 0x70, 0x72, 0x6f, |
| 176 |
0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, |
| 177 |
0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, |
| 178 |
0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x2f, |
| 179 |
0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x7d, 0x2f, 0x73, 0x65, 0x72, 0x76, |
| 180 |
0x69, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x7d, 0x42, 0xf4, |
| 181 |
0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, |
| 182 |
0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, |
| 183 |
0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, |
| 184 |
0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x50, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, |
| 185 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x65, 0x72, |
| 186 |
0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x61, 0x70, |
| 187 |
0x69, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, |
| 188 |
0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, |
| 189 |
0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0xaa, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, |
| 190 |
0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, |
| 191 |
0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x20, 0x47, |
| 192 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65, 0x72, 0x76, |
| 193 |
0x69, 0x63, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5c, 0x56, 0x31, 0xea, |
| 194 |
0x02, 0x23, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, |
| 195 |
0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, |
| 196 |
0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 197 |
} |
| 198 |
|
| 199 |
var ( |
| 200 |
file_google_cloud_servicedirectory_v1_service_proto_rawDescOnce sync.Once |
| 201 |
file_google_cloud_servicedirectory_v1_service_proto_rawDescData = file_google_cloud_servicedirectory_v1_service_proto_rawDesc |
| 202 |
) |
| 203 |
|
| 204 |
func file_google_cloud_servicedirectory_v1_service_proto_rawDescGZIP() []byte { |
| 205 |
file_google_cloud_servicedirectory_v1_service_proto_rawDescOnce.Do(func() { |
| 206 |
file_google_cloud_servicedirectory_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_servicedirectory_v1_service_proto_rawDescData) |
| 207 |
}) |
| 208 |
return file_google_cloud_servicedirectory_v1_service_proto_rawDescData |
| 209 |
} |
| 210 |
|
| 211 |
var file_google_cloud_servicedirectory_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 212 |
var file_google_cloud_servicedirectory_v1_service_proto_goTypes = []any{ |
| 213 |
(*Service)(nil), // 0: google.cloud.servicedirectory.v1.Service |
| 214 |
nil, // 1: google.cloud.servicedirectory.v1.Service.AnnotationsEntry |
| 215 |
(*Endpoint)(nil), // 2: google.cloud.servicedirectory.v1.Endpoint |
| 216 |
} |
| 217 |
var file_google_cloud_servicedirectory_v1_service_proto_depIdxs = []int32{ |
| 218 |
1, // 0: google.cloud.servicedirectory.v1.Service.annotations:type_name -> google.cloud.servicedirectory.v1.Service.AnnotationsEntry |
| 219 |
2, // 1: google.cloud.servicedirectory.v1.Service.endpoints:type_name -> google.cloud.servicedirectory.v1.Endpoint |
| 220 |
2, // [2:2] is the sub-list for method output_type |
| 221 |
2, // [2:2] is the sub-list for method input_type |
| 222 |
2, // [2:2] is the sub-list for extension type_name |
| 223 |
2, // [2:2] is the sub-list for extension extendee |
| 224 |
0, // [0:2] is the sub-list for field type_name |
| 225 |
} |
| 226 |
|
| 227 |
func init() { file_google_cloud_servicedirectory_v1_service_proto_init() } |
| 228 |
func file_google_cloud_servicedirectory_v1_service_proto_init() { |
| 229 |
if File_google_cloud_servicedirectory_v1_service_proto != nil { |
| 230 |
return |
| 231 |
} |
| 232 |
file_google_cloud_servicedirectory_v1_endpoint_proto_init() |
| 233 |
type x struct{} |
| 234 |
out := protoimpl.TypeBuilder{ |
| 235 |
File: protoimpl.DescBuilder{ |
| 236 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 237 |
RawDescriptor: file_google_cloud_servicedirectory_v1_service_proto_rawDesc, |
| 238 |
NumEnums: 0, |
| 239 |
NumMessages: 2, |
| 240 |
NumExtensions: 0, |
| 241 |
NumServices: 0, |
| 242 |
}, |
| 243 |
GoTypes: file_google_cloud_servicedirectory_v1_service_proto_goTypes, |
| 244 |
DependencyIndexes: file_google_cloud_servicedirectory_v1_service_proto_depIdxs, |
| 245 |
MessageInfos: file_google_cloud_servicedirectory_v1_service_proto_msgTypes, |
| 246 |
}.Build() |
| 247 |
File_google_cloud_servicedirectory_v1_service_proto = out.File |
| 248 |
file_google_cloud_servicedirectory_v1_service_proto_rawDesc = nil |
| 249 |
file_google_cloud_servicedirectory_v1_service_proto_goTypes = nil |
| 250 |
file_google_cloud_servicedirectory_v1_service_proto_depIdxs = nil |
| 251 |
} |