diff --git a/validator/validator.pb.go b/validator/validator.pb.go index ba0f5f1d62b6..a6a754f95246 100644 --- a/validator/validator.pb.go +++ b/validator/validator.pb.go @@ -1,24 +1,46 @@ +// +// Copyright 2015 The AMP HTML Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS-IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the license. +// + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.16.0 // source: validator.proto +// Package defines Validator protobuffers. This is a package comment required by +// Golint for validator.pb.go, but Golint still fails with an error "Package +// amp_validator (defined in [validator.pb.go]) should have a package comment". +// This happens because protoc adds an extra line after the comment. Ignore the +// error. + package amp_validator import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) // These two fields specify that values from one AttrSpec refer to values from // another AttrSpec elsewhere on the page; validator will verify the @@ -33,22 +55,24 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type AttrSpec_ValueSet int32 const ( - AttrSpec_UNKNOWN_VALUESET AttrSpec_ValueSet = 0 - AttrSpec_TEMPLATE_IDS AttrSpec_ValueSet = 1 - AttrSpec_AMP_SCRIPT_IDS AttrSpec_ValueSet = 2 + AttrSpec_UNKNOWN_VALUESET AttrSpec_ValueSet = 0 // Never used + AttrSpec_TEMPLATE_IDS AttrSpec_ValueSet = 1 //