...

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

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

     1  // Copyright 2021 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.12.2
    19  // source: grafeas/v1/dsse_attestation.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  )
    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  type DSSEAttestationNote struct {
    39  	state         protoimpl.MessageState
    40  	sizeCache     protoimpl.SizeCache
    41  	unknownFields protoimpl.UnknownFields
    42  
    43  	// DSSEHint hints at the purpose of the attestation authority.
    44  	Hint *DSSEAttestationNote_DSSEHint `protobuf:"bytes,1,opt,name=hint,proto3" json:"hint,omitempty"`
    45  }
    46  
    47  func (x *DSSEAttestationNote) Reset() {
    48  	*x = DSSEAttestationNote{}
    49  	if protoimpl.UnsafeEnabled {
    50  		mi := &file_grafeas_v1_dsse_attestation_proto_msgTypes[0]
    51  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    52  		ms.StoreMessageInfo(mi)
    53  	}
    54  }
    55  
    56  func (x *DSSEAttestationNote) String() string {
    57  	return protoimpl.X.MessageStringOf(x)
    58  }
    59  
    60  func (*DSSEAttestationNote) ProtoMessage() {}
    61  
    62  func (x *DSSEAttestationNote) ProtoReflect() protoreflect.Message {
    63  	mi := &file_grafeas_v1_dsse_attestation_proto_msgTypes[0]
    64  	if protoimpl.UnsafeEnabled && x != nil {
    65  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    66  		if ms.LoadMessageInfo() == nil {
    67  			ms.StoreMessageInfo(mi)
    68  		}
    69  		return ms
    70  	}
    71  	return mi.MessageOf(x)
    72  }
    73  
    74  // Deprecated: Use DSSEAttestationNote.ProtoReflect.Descriptor instead.
    75  func (*DSSEAttestationNote) Descriptor() ([]byte, []int) {
    76  	return file_grafeas_v1_dsse_attestation_proto_rawDescGZIP(), []int{0}
    77  }
    78  
    79  func (x *DSSEAttestationNote) GetHint() *DSSEAttestationNote_DSSEHint {
    80  	if x != nil {
    81  		return x.Hint
    82  	}
    83  	return nil
    84  }
    85  
    86  // Deprecated. Prefer to use a regular Occurrence, and populate the
    87  // Envelope at the top level of the Occurrence.
    88  type DSSEAttestationOccurrence struct {
    89  	state         protoimpl.MessageState
    90  	sizeCache     protoimpl.SizeCache
    91  	unknownFields protoimpl.UnknownFields
    92  
    93  	// If doing something security critical, make sure to verify the signatures in
    94  	// this metadata.
    95  	Envelope *Envelope `protobuf:"bytes,1,opt,name=envelope,proto3" json:"envelope,omitempty"`
    96  	// Types that are assignable to DecodedPayload:
    97  	//	*DSSEAttestationOccurrence_Statement
    98  	DecodedPayload isDSSEAttestationOccurrence_DecodedPayload `protobuf_oneof:"decoded_payload"`
    99  }
   100  
   101  func (x *DSSEAttestationOccurrence) Reset() {
   102  	*x = DSSEAttestationOccurrence{}
   103  	if protoimpl.UnsafeEnabled {
   104  		mi := &file_grafeas_v1_dsse_attestation_proto_msgTypes[1]
   105  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   106  		ms.StoreMessageInfo(mi)
   107  	}
   108  }
   109  
   110  func (x *DSSEAttestationOccurrence) String() string {
   111  	return protoimpl.X.MessageStringOf(x)
   112  }
   113  
   114  func (*DSSEAttestationOccurrence) ProtoMessage() {}
   115  
   116  func (x *DSSEAttestationOccurrence) ProtoReflect() protoreflect.Message {
   117  	mi := &file_grafeas_v1_dsse_attestation_proto_msgTypes[1]
   118  	if protoimpl.UnsafeEnabled && x != nil {
   119  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   120  		if ms.LoadMessageInfo() == nil {
   121  			ms.StoreMessageInfo(mi)
   122  		}
   123  		return ms
   124  	}
   125  	return mi.MessageOf(x)
   126  }
   127  
   128  // Deprecated: Use DSSEAttestationOccurrence.ProtoReflect.Descriptor instead.
   129  func (*DSSEAttestationOccurrence) Descriptor() ([]byte, []int) {
   130  	return file_grafeas_v1_dsse_attestation_proto_rawDescGZIP(), []int{1}
   131  }
   132  
   133  func (x *DSSEAttestationOccurrence) GetEnvelope() *Envelope {
   134  	if x != nil {
   135  		return x.Envelope
   136  	}
   137  	return nil
   138  }
   139  
   140  func (m *DSSEAttestationOccurrence) GetDecodedPayload() isDSSEAttestationOccurrence_DecodedPayload {
   141  	if m != nil {
   142  		return m.DecodedPayload
   143  	}
   144  	return nil
   145  }
   146  
   147  func (x *DSSEAttestationOccurrence) GetStatement() *InTotoStatement {
   148  	if x, ok := x.GetDecodedPayload().(*DSSEAttestationOccurrence_Statement); ok {
   149  		return x.Statement
   150  	}
   151  	return nil
   152  }
   153  
   154  type isDSSEAttestationOccurrence_DecodedPayload interface {
   155  	isDSSEAttestationOccurrence_DecodedPayload()
   156  }
   157  
   158  type DSSEAttestationOccurrence_Statement struct {
   159  	Statement *InTotoStatement `protobuf:"bytes,2,opt,name=statement,proto3,oneof"`
   160  }
   161  
   162  func (*DSSEAttestationOccurrence_Statement) isDSSEAttestationOccurrence_DecodedPayload() {}
   163  
   164  // This submessage provides human-readable hints about the purpose of the
   165  // authority. Because the name of a note acts as its resource reference, it is
   166  // important to disambiguate the canonical name of the Note (which might be a
   167  // UUID for security purposes) from "readable" names more suitable for debug
   168  // output. Note that these hints should not be used to look up authorities in
   169  // security sensitive contexts, such as when looking up attestations to
   170  // verify.
   171  type DSSEAttestationNote_DSSEHint struct {
   172  	state         protoimpl.MessageState
   173  	sizeCache     protoimpl.SizeCache
   174  	unknownFields protoimpl.UnknownFields
   175  
   176  	// Required. The human readable name of this attestation authority, for
   177  	// example "cloudbuild-prod".
   178  	HumanReadableName string `protobuf:"bytes,1,opt,name=human_readable_name,json=humanReadableName,proto3" json:"human_readable_name,omitempty"`
   179  }
   180  
   181  func (x *DSSEAttestationNote_DSSEHint) Reset() {
   182  	*x = DSSEAttestationNote_DSSEHint{}
   183  	if protoimpl.UnsafeEnabled {
   184  		mi := &file_grafeas_v1_dsse_attestation_proto_msgTypes[2]
   185  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   186  		ms.StoreMessageInfo(mi)
   187  	}
   188  }
   189  
   190  func (x *DSSEAttestationNote_DSSEHint) String() string {
   191  	return protoimpl.X.MessageStringOf(x)
   192  }
   193  
   194  func (*DSSEAttestationNote_DSSEHint) ProtoMessage() {}
   195  
   196  func (x *DSSEAttestationNote_DSSEHint) ProtoReflect() protoreflect.Message {
   197  	mi := &file_grafeas_v1_dsse_attestation_proto_msgTypes[2]
   198  	if protoimpl.UnsafeEnabled && x != nil {
   199  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   200  		if ms.LoadMessageInfo() == nil {
   201  			ms.StoreMessageInfo(mi)
   202  		}
   203  		return ms
   204  	}
   205  	return mi.MessageOf(x)
   206  }
   207  
   208  // Deprecated: Use DSSEAttestationNote_DSSEHint.ProtoReflect.Descriptor instead.
   209  func (*DSSEAttestationNote_DSSEHint) Descriptor() ([]byte, []int) {
   210  	return file_grafeas_v1_dsse_attestation_proto_rawDescGZIP(), []int{0, 0}
   211  }
   212  
   213  func (x *DSSEAttestationNote_DSSEHint) GetHumanReadableName() string {
   214  	if x != nil {
   215  		return x.HumanReadableName
   216  	}
   217  	return ""
   218  }
   219  
   220  var File_grafeas_v1_dsse_attestation_proto protoreflect.FileDescriptor
   221  
   222  var file_grafeas_v1_dsse_attestation_proto_rawDesc = []byte{
   223  	0x0a, 0x21, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x73, 0x73,
   224  	0x65, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
   225  	0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x1a,
   226  	0x17, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d,
   227  	0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61,
   228  	0x73, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x74, 0x6f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x61, 0x74,
   229  	0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8f, 0x01, 0x0a, 0x13,
   230  	0x44, 0x53, 0x53, 0x45, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e,
   231  	0x6f, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x04, 0x68, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
   232  	0x0b, 0x32, 0x28, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44,
   233  	0x53, 0x53, 0x45, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x6f,
   234  	0x74, 0x65, 0x2e, 0x44, 0x53, 0x53, 0x45, 0x48, 0x69, 0x6e, 0x74, 0x52, 0x04, 0x68, 0x69, 0x6e,
   235  	0x74, 0x1a, 0x3a, 0x0a, 0x08, 0x44, 0x53, 0x53, 0x45, 0x48, 0x69, 0x6e, 0x74, 0x12, 0x2e, 0x0a,
   236  	0x13, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f,
   237  	0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x68, 0x75, 0x6d, 0x61,
   238  	0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x9d, 0x01,
   239  	0x0a, 0x19, 0x44, 0x53, 0x53, 0x45, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f,
   240  	0x6e, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x65,
   241  	0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e,
   242  	0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x76, 0x65, 0x6c,
   243  	0x6f, 0x70, 0x65, 0x52, 0x08, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x3b, 0x0a,
   244  	0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
   245  	0x32, 0x1b, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e,
   246  	0x54, 0x6f, 0x74, 0x6f, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52,
   247  	0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x11, 0x0a, 0x0f, 0x64, 0x65,
   248  	0x63, 0x6f, 0x64, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x51, 0x0a,
   249  	0x0d, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x50, 0x01,
   250  	0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e,
   251  	0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f,
   252  	0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f,
   253  	0x76, 0x31, 0x3b, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0xa2, 0x02, 0x03, 0x47, 0x52, 0x41,
   254  	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   255  }
   256  
   257  var (
   258  	file_grafeas_v1_dsse_attestation_proto_rawDescOnce sync.Once
   259  	file_grafeas_v1_dsse_attestation_proto_rawDescData = file_grafeas_v1_dsse_attestation_proto_rawDesc
   260  )
   261  
   262  func file_grafeas_v1_dsse_attestation_proto_rawDescGZIP() []byte {
   263  	file_grafeas_v1_dsse_attestation_proto_rawDescOnce.Do(func() {
   264  		file_grafeas_v1_dsse_attestation_proto_rawDescData = protoimpl.X.CompressGZIP(file_grafeas_v1_dsse_attestation_proto_rawDescData)
   265  	})
   266  	return file_grafeas_v1_dsse_attestation_proto_rawDescData
   267  }
   268  
   269  var file_grafeas_v1_dsse_attestation_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   270  var file_grafeas_v1_dsse_attestation_proto_goTypes = []interface{}{
   271  	(*DSSEAttestationNote)(nil),          // 0: grafeas.v1.DSSEAttestationNote
   272  	(*DSSEAttestationOccurrence)(nil),    // 1: grafeas.v1.DSSEAttestationOccurrence
   273  	(*DSSEAttestationNote_DSSEHint)(nil), // 2: grafeas.v1.DSSEAttestationNote.DSSEHint
   274  	(*Envelope)(nil),                     // 3: grafeas.v1.Envelope
   275  	(*InTotoStatement)(nil),              // 4: grafeas.v1.InTotoStatement
   276  }
   277  var file_grafeas_v1_dsse_attestation_proto_depIdxs = []int32{
   278  	2, // 0: grafeas.v1.DSSEAttestationNote.hint:type_name -> grafeas.v1.DSSEAttestationNote.DSSEHint
   279  	3, // 1: grafeas.v1.DSSEAttestationOccurrence.envelope:type_name -> grafeas.v1.Envelope
   280  	4, // 2: grafeas.v1.DSSEAttestationOccurrence.statement:type_name -> grafeas.v1.InTotoStatement
   281  	3, // [3:3] is the sub-list for method output_type
   282  	3, // [3:3] is the sub-list for method input_type
   283  	3, // [3:3] is the sub-list for extension type_name
   284  	3, // [3:3] is the sub-list for extension extendee
   285  	0, // [0:3] is the sub-list for field type_name
   286  }
   287  
   288  func init() { file_grafeas_v1_dsse_attestation_proto_init() }
   289  func file_grafeas_v1_dsse_attestation_proto_init() {
   290  	if File_grafeas_v1_dsse_attestation_proto != nil {
   291  		return
   292  	}
   293  	file_grafeas_v1_common_proto_init()
   294  	file_grafeas_v1_intoto_statement_proto_init()
   295  	if !protoimpl.UnsafeEnabled {
   296  		file_grafeas_v1_dsse_attestation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   297  			switch v := v.(*DSSEAttestationNote); i {
   298  			case 0:
   299  				return &v.state
   300  			case 1:
   301  				return &v.sizeCache
   302  			case 2:
   303  				return &v.unknownFields
   304  			default:
   305  				return nil
   306  			}
   307  		}
   308  		file_grafeas_v1_dsse_attestation_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   309  			switch v := v.(*DSSEAttestationOccurrence); i {
   310  			case 0:
   311  				return &v.state
   312  			case 1:
   313  				return &v.sizeCache
   314  			case 2:
   315  				return &v.unknownFields
   316  			default:
   317  				return nil
   318  			}
   319  		}
   320  		file_grafeas_v1_dsse_attestation_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   321  			switch v := v.(*DSSEAttestationNote_DSSEHint); i {
   322  			case 0:
   323  				return &v.state
   324  			case 1:
   325  				return &v.sizeCache
   326  			case 2:
   327  				return &v.unknownFields
   328  			default:
   329  				return nil
   330  			}
   331  		}
   332  	}
   333  	file_grafeas_v1_dsse_attestation_proto_msgTypes[1].OneofWrappers = []interface{}{
   334  		(*DSSEAttestationOccurrence_Statement)(nil),
   335  	}
   336  	type x struct{}
   337  	out := protoimpl.TypeBuilder{
   338  		File: protoimpl.DescBuilder{
   339  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   340  			RawDescriptor: file_grafeas_v1_dsse_attestation_proto_rawDesc,
   341  			NumEnums:      0,
   342  			NumMessages:   3,
   343  			NumExtensions: 0,
   344  			NumServices:   0,
   345  		},
   346  		GoTypes:           file_grafeas_v1_dsse_attestation_proto_goTypes,
   347  		DependencyIndexes: file_grafeas_v1_dsse_attestation_proto_depIdxs,
   348  		MessageInfos:      file_grafeas_v1_dsse_attestation_proto_msgTypes,
   349  	}.Build()
   350  	File_grafeas_v1_dsse_attestation_proto = out.File
   351  	file_grafeas_v1_dsse_attestation_proto_rawDesc = nil
   352  	file_grafeas_v1_dsse_attestation_proto_goTypes = nil
   353  	file_grafeas_v1_dsse_attestation_proto_depIdxs = nil
   354  }
   355  

View as plain text