...

Source file src/google.golang.org/genproto/googleapis/grafeas/v1/deployment.pb.go

Documentation: google.golang.org/genproto/googleapis/grafeas/v1

     1  // Copyright 2019 The Grafeas Authors. All rights reserved.
     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.26.0
    18  // 	protoc        v3.13.0
    19  // source: grafeas/v1/deployment.proto
    20  
    21  package grafeas
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    29  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
    30  )
    31  
    32  const (
    33  	// Verify that this generated code is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    35  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    36  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    37  )
    38  
    39  // Types of platforms.
    40  type DeploymentOccurrence_Platform int32
    41  
    42  const (
    43  	// Unknown.
    44  	DeploymentOccurrence_PLATFORM_UNSPECIFIED DeploymentOccurrence_Platform = 0
    45  	// Google Container Engine.
    46  	DeploymentOccurrence_GKE DeploymentOccurrence_Platform = 1
    47  	// Google App Engine: Flexible Environment.
    48  	DeploymentOccurrence_FLEX DeploymentOccurrence_Platform = 2
    49  	// Custom user-defined platform.
    50  	DeploymentOccurrence_CUSTOM DeploymentOccurrence_Platform = 3
    51  )
    52  
    53  // Enum value maps for DeploymentOccurrence_Platform.
    54  var (
    55  	DeploymentOccurrence_Platform_name = map[int32]string{
    56  		0: "PLATFORM_UNSPECIFIED",
    57  		1: "GKE",
    58  		2: "FLEX",
    59  		3: "CUSTOM",
    60  	}
    61  	DeploymentOccurrence_Platform_value = map[string]int32{
    62  		"PLATFORM_UNSPECIFIED": 0,
    63  		"GKE":                  1,
    64  		"FLEX":                 2,
    65  		"CUSTOM":               3,
    66  	}
    67  )
    68  
    69  func (x DeploymentOccurrence_Platform) Enum() *DeploymentOccurrence_Platform {
    70  	p := new(DeploymentOccurrence_Platform)
    71  	*p = x
    72  	return p
    73  }
    74  
    75  func (x DeploymentOccurrence_Platform) String() string {
    76  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    77  }
    78  
    79  func (DeploymentOccurrence_Platform) Descriptor() protoreflect.EnumDescriptor {
    80  	return file_grafeas_v1_deployment_proto_enumTypes[0].Descriptor()
    81  }
    82  
    83  func (DeploymentOccurrence_Platform) Type() protoreflect.EnumType {
    84  	return &file_grafeas_v1_deployment_proto_enumTypes[0]
    85  }
    86  
    87  func (x DeploymentOccurrence_Platform) Number() protoreflect.EnumNumber {
    88  	return protoreflect.EnumNumber(x)
    89  }
    90  
    91  // Deprecated: Use DeploymentOccurrence_Platform.Descriptor instead.
    92  func (DeploymentOccurrence_Platform) EnumDescriptor() ([]byte, []int) {
    93  	return file_grafeas_v1_deployment_proto_rawDescGZIP(), []int{1, 0}
    94  }
    95  
    96  // An artifact that can be deployed in some runtime.
    97  type DeploymentNote struct {
    98  	state         protoimpl.MessageState
    99  	sizeCache     protoimpl.SizeCache
   100  	unknownFields protoimpl.UnknownFields
   101  
   102  	// Required. Resource URI for the artifact being deployed.
   103  	ResourceUri []string `protobuf:"bytes,1,rep,name=resource_uri,json=resourceUri,proto3" json:"resource_uri,omitempty"`
   104  }
   105  
   106  func (x *DeploymentNote) Reset() {
   107  	*x = DeploymentNote{}
   108  	if protoimpl.UnsafeEnabled {
   109  		mi := &file_grafeas_v1_deployment_proto_msgTypes[0]
   110  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   111  		ms.StoreMessageInfo(mi)
   112  	}
   113  }
   114  
   115  func (x *DeploymentNote) String() string {
   116  	return protoimpl.X.MessageStringOf(x)
   117  }
   118  
   119  func (*DeploymentNote) ProtoMessage() {}
   120  
   121  func (x *DeploymentNote) ProtoReflect() protoreflect.Message {
   122  	mi := &file_grafeas_v1_deployment_proto_msgTypes[0]
   123  	if protoimpl.UnsafeEnabled && x != nil {
   124  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   125  		if ms.LoadMessageInfo() == nil {
   126  			ms.StoreMessageInfo(mi)
   127  		}
   128  		return ms
   129  	}
   130  	return mi.MessageOf(x)
   131  }
   132  
   133  // Deprecated: Use DeploymentNote.ProtoReflect.Descriptor instead.
   134  func (*DeploymentNote) Descriptor() ([]byte, []int) {
   135  	return file_grafeas_v1_deployment_proto_rawDescGZIP(), []int{0}
   136  }
   137  
   138  func (x *DeploymentNote) GetResourceUri() []string {
   139  	if x != nil {
   140  		return x.ResourceUri
   141  	}
   142  	return nil
   143  }
   144  
   145  // The period during which some deployable was active in a runtime.
   146  type DeploymentOccurrence struct {
   147  	state         protoimpl.MessageState
   148  	sizeCache     protoimpl.SizeCache
   149  	unknownFields protoimpl.UnknownFields
   150  
   151  	// Identity of the user that triggered this deployment.
   152  	UserEmail string `protobuf:"bytes,1,opt,name=user_email,json=userEmail,proto3" json:"user_email,omitempty"`
   153  	// Required. Beginning of the lifetime of this deployment.
   154  	DeployTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=deploy_time,json=deployTime,proto3" json:"deploy_time,omitempty"`
   155  	// End of the lifetime of this deployment.
   156  	UndeployTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=undeploy_time,json=undeployTime,proto3" json:"undeploy_time,omitempty"`
   157  	// Configuration used to create this deployment.
   158  	Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
   159  	// Address of the runtime element hosting this deployment.
   160  	Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
   161  	// Output only. Resource URI for the artifact being deployed taken from
   162  	// the deployable field with the same name.
   163  	ResourceUri []string `protobuf:"bytes,6,rep,name=resource_uri,json=resourceUri,proto3" json:"resource_uri,omitempty"`
   164  	// Platform hosting this deployment.
   165  	Platform DeploymentOccurrence_Platform `protobuf:"varint,7,opt,name=platform,proto3,enum=grafeas.v1.DeploymentOccurrence_Platform" json:"platform,omitempty"`
   166  }
   167  
   168  func (x *DeploymentOccurrence) Reset() {
   169  	*x = DeploymentOccurrence{}
   170  	if protoimpl.UnsafeEnabled {
   171  		mi := &file_grafeas_v1_deployment_proto_msgTypes[1]
   172  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   173  		ms.StoreMessageInfo(mi)
   174  	}
   175  }
   176  
   177  func (x *DeploymentOccurrence) String() string {
   178  	return protoimpl.X.MessageStringOf(x)
   179  }
   180  
   181  func (*DeploymentOccurrence) ProtoMessage() {}
   182  
   183  func (x *DeploymentOccurrence) ProtoReflect() protoreflect.Message {
   184  	mi := &file_grafeas_v1_deployment_proto_msgTypes[1]
   185  	if protoimpl.UnsafeEnabled && x != nil {
   186  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   187  		if ms.LoadMessageInfo() == nil {
   188  			ms.StoreMessageInfo(mi)
   189  		}
   190  		return ms
   191  	}
   192  	return mi.MessageOf(x)
   193  }
   194  
   195  // Deprecated: Use DeploymentOccurrence.ProtoReflect.Descriptor instead.
   196  func (*DeploymentOccurrence) Descriptor() ([]byte, []int) {
   197  	return file_grafeas_v1_deployment_proto_rawDescGZIP(), []int{1}
   198  }
   199  
   200  func (x *DeploymentOccurrence) GetUserEmail() string {
   201  	if x != nil {
   202  		return x.UserEmail
   203  	}
   204  	return ""
   205  }
   206  
   207  func (x *DeploymentOccurrence) GetDeployTime() *timestamppb.Timestamp {
   208  	if x != nil {
   209  		return x.DeployTime
   210  	}
   211  	return nil
   212  }
   213  
   214  func (x *DeploymentOccurrence) GetUndeployTime() *timestamppb.Timestamp {
   215  	if x != nil {
   216  		return x.UndeployTime
   217  	}
   218  	return nil
   219  }
   220  
   221  func (x *DeploymentOccurrence) GetConfig() string {
   222  	if x != nil {
   223  		return x.Config
   224  	}
   225  	return ""
   226  }
   227  
   228  func (x *DeploymentOccurrence) GetAddress() string {
   229  	if x != nil {
   230  		return x.Address
   231  	}
   232  	return ""
   233  }
   234  
   235  func (x *DeploymentOccurrence) GetResourceUri() []string {
   236  	if x != nil {
   237  		return x.ResourceUri
   238  	}
   239  	return nil
   240  }
   241  
   242  func (x *DeploymentOccurrence) GetPlatform() DeploymentOccurrence_Platform {
   243  	if x != nil {
   244  		return x.Platform
   245  	}
   246  	return DeploymentOccurrence_PLATFORM_UNSPECIFIED
   247  }
   248  
   249  var File_grafeas_v1_deployment_proto protoreflect.FileDescriptor
   250  
   251  var file_grafeas_v1_deployment_proto_rawDesc = []byte{
   252  	0x0a, 0x1b, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x70,
   253  	0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67,
   254  	0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   255  	0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73,
   256  	0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x33, 0x0a, 0x0e, 0x44, 0x65,
   257  	0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4e, 0x6f, 0x74, 0x65, 0x12, 0x21, 0x0a, 0x0c,
   258  	0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x03,
   259  	0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x72, 0x69, 0x22,
   260  	0x94, 0x03, 0x0a, 0x14, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4f, 0x63,
   261  	0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72,
   262  	0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73,
   263  	0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x3b, 0x0a, 0x0b, 0x64, 0x65, 0x70, 0x6c, 0x6f,
   264  	0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
   265  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
   266  	0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79,
   267  	0x54, 0x69, 0x6d, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x75, 0x6e, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79,
   268  	0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
   269  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
   270  	0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x75, 0x6e, 0x64, 0x65, 0x70, 0x6c, 0x6f,
   271  	0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18,
   272  	0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a,
   273  	0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
   274  	0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75,
   275  	0x72, 0x63, 0x65, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x72,
   276  	0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x72, 0x69, 0x12, 0x45, 0x0a, 0x08, 0x70, 0x6c,
   277  	0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x67,
   278  	0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79,
   279  	0x6d, 0x65, 0x6e, 0x74, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x50,
   280  	0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
   281  	0x6d, 0x22, 0x43, 0x0a, 0x08, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x18, 0x0a,
   282  	0x14, 0x50, 0x4c, 0x41, 0x54, 0x46, 0x4f, 0x52, 0x4d, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,
   283  	0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x4b, 0x45, 0x10, 0x01,
   284  	0x12, 0x08, 0x0a, 0x04, 0x46, 0x4c, 0x45, 0x58, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x55,
   285  	0x53, 0x54, 0x4f, 0x4d, 0x10, 0x03, 0x42, 0x51, 0x0a, 0x0d, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x61,
   286  	0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   287  	0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e,
   288  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
   289  	0x2f, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x72, 0x61, 0x66,
   290  	0x65, 0x61, 0x73, 0xa2, 0x02, 0x03, 0x47, 0x52, 0x41, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   291  	0x33,
   292  }
   293  
   294  var (
   295  	file_grafeas_v1_deployment_proto_rawDescOnce sync.Once
   296  	file_grafeas_v1_deployment_proto_rawDescData = file_grafeas_v1_deployment_proto_rawDesc
   297  )
   298  
   299  func file_grafeas_v1_deployment_proto_rawDescGZIP() []byte {
   300  	file_grafeas_v1_deployment_proto_rawDescOnce.Do(func() {
   301  		file_grafeas_v1_deployment_proto_rawDescData = protoimpl.X.CompressGZIP(file_grafeas_v1_deployment_proto_rawDescData)
   302  	})
   303  	return file_grafeas_v1_deployment_proto_rawDescData
   304  }
   305  
   306  var file_grafeas_v1_deployment_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   307  var file_grafeas_v1_deployment_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   308  var file_grafeas_v1_deployment_proto_goTypes = []interface{}{
   309  	(DeploymentOccurrence_Platform)(0), // 0: grafeas.v1.DeploymentOccurrence.Platform
   310  	(*DeploymentNote)(nil),             // 1: grafeas.v1.DeploymentNote
   311  	(*DeploymentOccurrence)(nil),       // 2: grafeas.v1.DeploymentOccurrence
   312  	(*timestamppb.Timestamp)(nil),      // 3: google.protobuf.Timestamp
   313  }
   314  var file_grafeas_v1_deployment_proto_depIdxs = []int32{
   315  	3, // 0: grafeas.v1.DeploymentOccurrence.deploy_time:type_name -> google.protobuf.Timestamp
   316  	3, // 1: grafeas.v1.DeploymentOccurrence.undeploy_time:type_name -> google.protobuf.Timestamp
   317  	0, // 2: grafeas.v1.DeploymentOccurrence.platform:type_name -> grafeas.v1.DeploymentOccurrence.Platform
   318  	3, // [3:3] is the sub-list for method output_type
   319  	3, // [3:3] is the sub-list for method input_type
   320  	3, // [3:3] is the sub-list for extension type_name
   321  	3, // [3:3] is the sub-list for extension extendee
   322  	0, // [0:3] is the sub-list for field type_name
   323  }
   324  
   325  func init() { file_grafeas_v1_deployment_proto_init() }
   326  func file_grafeas_v1_deployment_proto_init() {
   327  	if File_grafeas_v1_deployment_proto != nil {
   328  		return
   329  	}
   330  	if !protoimpl.UnsafeEnabled {
   331  		file_grafeas_v1_deployment_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   332  			switch v := v.(*DeploymentNote); i {
   333  			case 0:
   334  				return &v.state
   335  			case 1:
   336  				return &v.sizeCache
   337  			case 2:
   338  				return &v.unknownFields
   339  			default:
   340  				return nil
   341  			}
   342  		}
   343  		file_grafeas_v1_deployment_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   344  			switch v := v.(*DeploymentOccurrence); i {
   345  			case 0:
   346  				return &v.state
   347  			case 1:
   348  				return &v.sizeCache
   349  			case 2:
   350  				return &v.unknownFields
   351  			default:
   352  				return nil
   353  			}
   354  		}
   355  	}
   356  	type x struct{}
   357  	out := protoimpl.TypeBuilder{
   358  		File: protoimpl.DescBuilder{
   359  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   360  			RawDescriptor: file_grafeas_v1_deployment_proto_rawDesc,
   361  			NumEnums:      1,
   362  			NumMessages:   2,
   363  			NumExtensions: 0,
   364  			NumServices:   0,
   365  		},
   366  		GoTypes:           file_grafeas_v1_deployment_proto_goTypes,
   367  		DependencyIndexes: file_grafeas_v1_deployment_proto_depIdxs,
   368  		EnumInfos:         file_grafeas_v1_deployment_proto_enumTypes,
   369  		MessageInfos:      file_grafeas_v1_deployment_proto_msgTypes,
   370  	}.Build()
   371  	File_grafeas_v1_deployment_proto = out.File
   372  	file_grafeas_v1_deployment_proto_rawDesc = nil
   373  	file_grafeas_v1_deployment_proto_goTypes = nil
   374  	file_grafeas_v1_deployment_proto_depIdxs = nil
   375  }
   376  

View as plain text