From 51a21d37b382f67bd8dcc0818307339ebe5512b3 Mon Sep 17 00:00:00 2001 From: Kazuma Watanabe Date: Mon, 6 Jan 2025 09:31:43 +0000 Subject: [PATCH 1/2] aqua update --- aqua.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aqua.yaml b/aqua.yaml index acc6f6f..be87a1a 100644 --- a/aqua.yaml +++ b/aqua.yaml @@ -8,8 +8,8 @@ # - all registries: - type: standard - ref: v4.290.0 # renovate: depName=aquaproj/aqua-registry + ref: v4.292.0 # renovate: depName=aquaproj/aqua-registry packages: -- name: protocolbuffers/protobuf/protoc@v22.3 -- name: protocolbuffers/protobuf-go/protoc-gen-go@v1.30.0 -- name: grpc/grpc-go/protoc-gen-go-grpc@cmd/protoc-gen-go-grpc/v1.3.0 +- name: protocolbuffers/protobuf/protoc@v29.2 +- name: protocolbuffers/protobuf-go/protoc-gen-go@v1.36.1 +- name: grpc/grpc-go/protoc-gen-go-grpc@cmd/protoc-gen-go-grpc/v1.5.1 From bbfd5c7b0bbc654e53d0cdbe01ec4bd7e9c16add Mon Sep 17 00:00:00 2001 From: Kazuma Watanabe Date: Mon, 6 Jan 2025 09:31:52 +0000 Subject: [PATCH 2/2] make proto --- plugin/internal/proto/tflint.pb.go | 2140 ++++++----------------- plugin/internal/proto/tflint_grpc.pb.go | 100 +- 2 files changed, 610 insertions(+), 1630 deletions(-) diff --git a/plugin/internal/proto/tflint.pb.go b/plugin/internal/proto/tflint.pb.go index 5b7e7d6..a12b6c4 100644 --- a/plugin/internal/proto/tflint.pb.go +++ b/plugin/internal/proto/tflint.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.3 +// protoc-gen-go v1.36.1 +// protoc v5.29.2 // source: tflint.proto package proto @@ -275,18 +275,16 @@ func (EmitIssue_Severity) EnumDescriptor() ([]byte, []int) { } type GetName struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetName) Reset() { *x = GetName{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetName) String() string { @@ -297,7 +295,7 @@ func (*GetName) ProtoMessage() {} func (x *GetName) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -313,18 +311,16 @@ func (*GetName) Descriptor() ([]byte, []int) { } type GetVersion struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetVersion) Reset() { *x = GetVersion{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetVersion) String() string { @@ -335,7 +331,7 @@ func (*GetVersion) ProtoMessage() {} func (x *GetVersion) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -351,18 +347,16 @@ func (*GetVersion) Descriptor() ([]byte, []int) { } type GetVersionConstraint struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetVersionConstraint) Reset() { *x = GetVersionConstraint{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetVersionConstraint) String() string { @@ -373,7 +367,7 @@ func (*GetVersionConstraint) ProtoMessage() {} func (x *GetVersionConstraint) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -389,18 +383,16 @@ func (*GetVersionConstraint) Descriptor() ([]byte, []int) { } type GetSDKVersion struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetSDKVersion) Reset() { *x = GetSDKVersion{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetSDKVersion) String() string { @@ -411,7 +403,7 @@ func (*GetSDKVersion) ProtoMessage() {} func (x *GetSDKVersion) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -427,18 +419,16 @@ func (*GetSDKVersion) Descriptor() ([]byte, []int) { } type GetRuleNames struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetRuleNames) Reset() { *x = GetRuleNames{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetRuleNames) String() string { @@ -449,7 +439,7 @@ func (*GetRuleNames) ProtoMessage() {} func (x *GetRuleNames) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -465,18 +455,16 @@ func (*GetRuleNames) Descriptor() ([]byte, []int) { } type GetConfigSchema struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetConfigSchema) Reset() { *x = GetConfigSchema{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetConfigSchema) String() string { @@ -487,7 +475,7 @@ func (*GetConfigSchema) ProtoMessage() {} func (x *GetConfigSchema) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -503,18 +491,16 @@ func (*GetConfigSchema) Descriptor() ([]byte, []int) { } type ApplyGlobalConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ApplyGlobalConfig) Reset() { *x = ApplyGlobalConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ApplyGlobalConfig) String() string { @@ -525,7 +511,7 @@ func (*ApplyGlobalConfig) ProtoMessage() {} func (x *ApplyGlobalConfig) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -541,18 +527,16 @@ func (*ApplyGlobalConfig) Descriptor() ([]byte, []int) { } type ApplyConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ApplyConfig) Reset() { *x = ApplyConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ApplyConfig) String() string { @@ -563,7 +547,7 @@ func (*ApplyConfig) ProtoMessage() {} func (x *ApplyConfig) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -579,18 +563,16 @@ func (*ApplyConfig) Descriptor() ([]byte, []int) { } type Check struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Check) Reset() { *x = Check{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Check) String() string { @@ -601,7 +583,7 @@ func (*Check) ProtoMessage() {} func (x *Check) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -617,18 +599,16 @@ func (*Check) Descriptor() ([]byte, []int) { } type GetOriginalwd struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetOriginalwd) Reset() { *x = GetOriginalwd{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetOriginalwd) String() string { @@ -639,7 +619,7 @@ func (*GetOriginalwd) ProtoMessage() {} func (x *GetOriginalwd) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -655,18 +635,16 @@ func (*GetOriginalwd) Descriptor() ([]byte, []int) { } type GetModulePath struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetModulePath) Reset() { *x = GetModulePath{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetModulePath) String() string { @@ -677,7 +655,7 @@ func (*GetModulePath) ProtoMessage() {} func (x *GetModulePath) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -693,18 +671,16 @@ func (*GetModulePath) Descriptor() ([]byte, []int) { } type GetModuleContent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetModuleContent) Reset() { *x = GetModuleContent{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetModuleContent) String() string { @@ -715,7 +691,7 @@ func (*GetModuleContent) ProtoMessage() {} func (x *GetModuleContent) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -731,18 +707,16 @@ func (*GetModuleContent) Descriptor() ([]byte, []int) { } type GetFile struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetFile) Reset() { *x = GetFile{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetFile) String() string { @@ -753,7 +727,7 @@ func (*GetFile) ProtoMessage() {} func (x *GetFile) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -769,18 +743,16 @@ func (*GetFile) Descriptor() ([]byte, []int) { } type GetFiles struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetFiles) Reset() { *x = GetFiles{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetFiles) String() string { @@ -791,7 +763,7 @@ func (*GetFiles) ProtoMessage() {} func (x *GetFiles) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -807,18 +779,16 @@ func (*GetFiles) Descriptor() ([]byte, []int) { } type GetRuleConfigContent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetRuleConfigContent) Reset() { *x = GetRuleConfigContent{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetRuleConfigContent) String() string { @@ -829,7 +799,7 @@ func (*GetRuleConfigContent) ProtoMessage() {} func (x *GetRuleConfigContent) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -845,18 +815,16 @@ func (*GetRuleConfigContent) Descriptor() ([]byte, []int) { } type EvaluateExpr struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *EvaluateExpr) Reset() { *x = EvaluateExpr{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EvaluateExpr) String() string { @@ -867,7 +835,7 @@ func (*EvaluateExpr) ProtoMessage() {} func (x *EvaluateExpr) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -883,18 +851,16 @@ func (*EvaluateExpr) Descriptor() ([]byte, []int) { } type EmitIssue struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *EmitIssue) Reset() { *x = EmitIssue{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EmitIssue) String() string { @@ -905,7 +871,7 @@ func (*EmitIssue) ProtoMessage() {} func (x *EmitIssue) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -921,18 +887,16 @@ func (*EmitIssue) Descriptor() ([]byte, []int) { } type ApplyChanges struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ApplyChanges) Reset() { *x = ApplyChanges{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ApplyChanges) String() string { @@ -943,7 +907,7 @@ func (*ApplyChanges) ProtoMessage() {} func (x *ApplyChanges) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -959,22 +923,19 @@ func (*ApplyChanges) Descriptor() ([]byte, []int) { } type BodySchema struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Attributes []*BodySchema_Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` + Blocks []*BodySchema_Block `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"` + Mode SchemaMode `protobuf:"varint,3,opt,name=Mode,proto3,enum=proto.SchemaMode" json:"Mode,omitempty"` unknownFields protoimpl.UnknownFields - - Attributes []*BodySchema_Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` - Blocks []*BodySchema_Block `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"` - Mode SchemaMode `protobuf:"varint,3,opt,name=Mode,proto3,enum=proto.SchemaMode" json:"Mode,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BodySchema) Reset() { *x = BodySchema{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BodySchema) String() string { @@ -985,7 +946,7 @@ func (*BodySchema) ProtoMessage() {} func (x *BodySchema) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1022,21 +983,18 @@ func (x *BodySchema) GetMode() SchemaMode { } type BodyContent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Attributes map[string]*BodyContent_Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + Blocks []*BodyContent_Block `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"` unknownFields protoimpl.UnknownFields - - Attributes map[string]*BodyContent_Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Blocks []*BodyContent_Block `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BodyContent) Reset() { *x = BodyContent{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BodyContent) String() string { @@ -1047,7 +1005,7 @@ func (*BodyContent) ProtoMessage() {} func (x *BodyContent) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1077,23 +1035,20 @@ func (x *BodyContent) GetBlocks() []*BodyContent_Block { } type Expression struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"` + Range *Range `protobuf:"bytes,2,opt,name=range,proto3" json:"range,omitempty"` + Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + ValueMarks []*ValueMark `protobuf:"bytes,4,rep,name=value_marks,json=valueMarks,proto3" json:"value_marks,omitempty"` unknownFields protoimpl.UnknownFields - - Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"` - Range *Range `protobuf:"bytes,2,opt,name=range,proto3" json:"range,omitempty"` - Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - ValueMarks []*ValueMark `protobuf:"bytes,4,rep,name=value_marks,json=valueMarks,proto3" json:"value_marks,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Expression) Reset() { *x = Expression{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Expression) String() string { @@ -1104,7 +1059,7 @@ func (*Expression) ProtoMessage() {} func (x *Expression) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1148,22 +1103,19 @@ func (x *Expression) GetValueMarks() []*ValueMark { } type Range struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` + Start *Range_Pos `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"` + End *Range_Pos `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"` unknownFields protoimpl.UnknownFields - - Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` - Start *Range_Pos `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"` - End *Range_Pos `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Range) Reset() { *x = Range{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Range) String() string { @@ -1174,7 +1126,7 @@ func (*Range) ProtoMessage() {} func (x *Range) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1211,20 +1163,17 @@ func (x *Range) GetEnd() *Range_Pos { } type AttributePath struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Steps []*AttributePath_Step `protobuf:"bytes,1,rep,name=steps,proto3" json:"steps,omitempty"` unknownFields protoimpl.UnknownFields - - Steps []*AttributePath_Step `protobuf:"bytes,1,rep,name=steps,proto3" json:"steps,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AttributePath) Reset() { *x = AttributePath{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AttributePath) String() string { @@ -1235,7 +1184,7 @@ func (*AttributePath) ProtoMessage() {} func (x *AttributePath) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1258,22 +1207,19 @@ func (x *AttributePath) GetSteps() []*AttributePath_Step { } type ValueMark struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Path *AttributePath `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + Sensitive bool `protobuf:"varint,2,opt,name=sensitive,proto3" json:"sensitive,omitempty"` + Ephemeral bool `protobuf:"varint,3,opt,name=ephemeral,proto3" json:"ephemeral,omitempty"` unknownFields protoimpl.UnknownFields - - Path *AttributePath `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - Sensitive bool `protobuf:"varint,2,opt,name=sensitive,proto3" json:"sensitive,omitempty"` - Ephemeral bool `protobuf:"varint,3,opt,name=ephemeral,proto3" json:"ephemeral,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ValueMark) Reset() { *x = ValueMark{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValueMark) String() string { @@ -1284,7 +1230,7 @@ func (*ValueMark) ProtoMessage() {} func (x *ValueMark) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1321,21 +1267,18 @@ func (x *ValueMark) GetEphemeral() bool { } type ErrorDetail struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Code ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=proto.ErrorCode" json:"code,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` unknownFields protoimpl.UnknownFields - - Code ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=proto.ErrorCode" json:"code,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ErrorDetail) Reset() { *x = ErrorDetail{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ErrorDetail) String() string { @@ -1346,7 +1289,7 @@ func (*ErrorDetail) ProtoMessage() {} func (x *ErrorDetail) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1376,18 +1319,16 @@ func (x *ErrorDetail) GetMessage() string { } type GetName_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetName_Request) Reset() { *x = GetName_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetName_Request) String() string { @@ -1398,7 +1339,7 @@ func (*GetName_Request) ProtoMessage() {} func (x *GetName_Request) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1414,20 +1355,17 @@ func (*GetName_Request) Descriptor() ([]byte, []int) { } type GetName_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetName_Response) Reset() { *x = GetName_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetName_Response) String() string { @@ -1438,7 +1376,7 @@ func (*GetName_Response) ProtoMessage() {} func (x *GetName_Response) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1461,18 +1399,16 @@ func (x *GetName_Response) GetName() string { } type GetVersion_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetVersion_Request) Reset() { *x = GetVersion_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetVersion_Request) String() string { @@ -1483,7 +1419,7 @@ func (*GetVersion_Request) ProtoMessage() {} func (x *GetVersion_Request) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1499,20 +1435,17 @@ func (*GetVersion_Request) Descriptor() ([]byte, []int) { } type GetVersion_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` unknownFields protoimpl.UnknownFields - - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetVersion_Response) Reset() { *x = GetVersion_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetVersion_Response) String() string { @@ -1523,7 +1456,7 @@ func (*GetVersion_Response) ProtoMessage() {} func (x *GetVersion_Response) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1546,18 +1479,16 @@ func (x *GetVersion_Response) GetVersion() string { } type GetVersionConstraint_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetVersionConstraint_Request) Reset() { *x = GetVersionConstraint_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetVersionConstraint_Request) String() string { @@ -1568,7 +1499,7 @@ func (*GetVersionConstraint_Request) ProtoMessage() {} func (x *GetVersionConstraint_Request) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1584,20 +1515,17 @@ func (*GetVersionConstraint_Request) Descriptor() ([]byte, []int) { } type GetVersionConstraint_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Constraint string `protobuf:"bytes,1,opt,name=constraint,proto3" json:"constraint,omitempty"` unknownFields protoimpl.UnknownFields - - Constraint string `protobuf:"bytes,1,opt,name=constraint,proto3" json:"constraint,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetVersionConstraint_Response) Reset() { *x = GetVersionConstraint_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetVersionConstraint_Response) String() string { @@ -1608,7 +1536,7 @@ func (*GetVersionConstraint_Response) ProtoMessage() {} func (x *GetVersionConstraint_Response) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1631,18 +1559,16 @@ func (x *GetVersionConstraint_Response) GetConstraint() string { } type GetSDKVersion_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetSDKVersion_Request) Reset() { *x = GetSDKVersion_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetSDKVersion_Request) String() string { @@ -1653,7 +1579,7 @@ func (*GetSDKVersion_Request) ProtoMessage() {} func (x *GetSDKVersion_Request) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1669,20 +1595,17 @@ func (*GetSDKVersion_Request) Descriptor() ([]byte, []int) { } type GetSDKVersion_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` unknownFields protoimpl.UnknownFields - - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetSDKVersion_Response) Reset() { *x = GetSDKVersion_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetSDKVersion_Response) String() string { @@ -1693,7 +1616,7 @@ func (*GetSDKVersion_Response) ProtoMessage() {} func (x *GetSDKVersion_Response) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1716,18 +1639,16 @@ func (x *GetSDKVersion_Response) GetVersion() string { } type GetRuleNames_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetRuleNames_Request) Reset() { *x = GetRuleNames_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetRuleNames_Request) String() string { @@ -1738,7 +1659,7 @@ func (*GetRuleNames_Request) ProtoMessage() {} func (x *GetRuleNames_Request) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1754,20 +1675,17 @@ func (*GetRuleNames_Request) Descriptor() ([]byte, []int) { } type GetRuleNames_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` unknownFields protoimpl.UnknownFields - - Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRuleNames_Response) Reset() { *x = GetRuleNames_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetRuleNames_Response) String() string { @@ -1778,7 +1696,7 @@ func (*GetRuleNames_Response) ProtoMessage() {} func (x *GetRuleNames_Response) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1801,18 +1719,16 @@ func (x *GetRuleNames_Response) GetNames() []string { } type GetConfigSchema_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetConfigSchema_Request) Reset() { *x = GetConfigSchema_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetConfigSchema_Request) String() string { @@ -1823,7 +1739,7 @@ func (*GetConfigSchema_Request) ProtoMessage() {} func (x *GetConfigSchema_Request) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1839,20 +1755,17 @@ func (*GetConfigSchema_Request) Descriptor() ([]byte, []int) { } type GetConfigSchema_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Schema *BodySchema `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"` unknownFields protoimpl.UnknownFields - - Schema *BodySchema `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetConfigSchema_Response) Reset() { *x = GetConfigSchema_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetConfigSchema_Response) String() string { @@ -1863,7 +1776,7 @@ func (*GetConfigSchema_Response) ProtoMessage() {} func (x *GetConfigSchema_Response) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1886,23 +1799,20 @@ func (x *GetConfigSchema_Response) GetSchema() *BodySchema { } type ApplyGlobalConfig_Config struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Rules map[string]*ApplyGlobalConfig_RuleConfig `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + state protoimpl.MessageState `protogen:"open.v1"` + Rules map[string]*ApplyGlobalConfig_RuleConfig `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` DisabledByDefault bool `protobuf:"varint,2,opt,name=disabled_by_default,json=disabledByDefault,proto3" json:"disabled_by_default,omitempty"` Only []string `protobuf:"bytes,3,rep,name=only,proto3" json:"only,omitempty"` Fix bool `protobuf:"varint,4,opt,name=fix,proto3" json:"fix,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ApplyGlobalConfig_Config) Reset() { *x = ApplyGlobalConfig_Config{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ApplyGlobalConfig_Config) String() string { @@ -1913,7 +1823,7 @@ func (*ApplyGlobalConfig_Config) ProtoMessage() {} func (x *ApplyGlobalConfig_Config) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1957,21 +1867,18 @@ func (x *ApplyGlobalConfig_Config) GetFix() bool { } type ApplyGlobalConfig_RuleConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ApplyGlobalConfig_RuleConfig) Reset() { *x = ApplyGlobalConfig_RuleConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ApplyGlobalConfig_RuleConfig) String() string { @@ -1982,7 +1889,7 @@ func (*ApplyGlobalConfig_RuleConfig) ProtoMessage() {} func (x *ApplyGlobalConfig_RuleConfig) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2012,20 +1919,17 @@ func (x *ApplyGlobalConfig_RuleConfig) GetEnabled() bool { } type ApplyGlobalConfig_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Config *ApplyGlobalConfig_Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` unknownFields protoimpl.UnknownFields - - Config *ApplyGlobalConfig_Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ApplyGlobalConfig_Request) Reset() { *x = ApplyGlobalConfig_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ApplyGlobalConfig_Request) String() string { @@ -2036,7 +1940,7 @@ func (*ApplyGlobalConfig_Request) ProtoMessage() {} func (x *ApplyGlobalConfig_Request) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2059,18 +1963,16 @@ func (x *ApplyGlobalConfig_Request) GetConfig() *ApplyGlobalConfig_Config { } type ApplyGlobalConfig_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ApplyGlobalConfig_Response) Reset() { *x = ApplyGlobalConfig_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ApplyGlobalConfig_Response) String() string { @@ -2081,7 +1983,7 @@ func (*ApplyGlobalConfig_Response) ProtoMessage() {} func (x *ApplyGlobalConfig_Response) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2097,20 +1999,17 @@ func (*ApplyGlobalConfig_Response) Descriptor() ([]byte, []int) { } type ApplyConfig_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Content *BodyContent `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` unknownFields protoimpl.UnknownFields - - Content *BodyContent `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ApplyConfig_Request) Reset() { *x = ApplyConfig_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ApplyConfig_Request) String() string { @@ -2121,7 +2020,7 @@ func (*ApplyConfig_Request) ProtoMessage() {} func (x *ApplyConfig_Request) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[42] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2144,18 +2043,16 @@ func (x *ApplyConfig_Request) GetContent() *BodyContent { } type ApplyConfig_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ApplyConfig_Response) Reset() { *x = ApplyConfig_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ApplyConfig_Response) String() string { @@ -2166,7 +2063,7 @@ func (*ApplyConfig_Response) ProtoMessage() {} func (x *ApplyConfig_Response) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2182,20 +2079,17 @@ func (*ApplyConfig_Response) Descriptor() ([]byte, []int) { } type Check_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Runner uint32 `protobuf:"varint,1,opt,name=runner,proto3" json:"runner,omitempty"` unknownFields protoimpl.UnknownFields - - Runner uint32 `protobuf:"varint,1,opt,name=runner,proto3" json:"runner,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Check_Request) Reset() { *x = Check_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Check_Request) String() string { @@ -2206,7 +2100,7 @@ func (*Check_Request) ProtoMessage() {} func (x *Check_Request) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[44] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2229,18 +2123,16 @@ func (x *Check_Request) GetRunner() uint32 { } type Check_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Check_Response) Reset() { *x = Check_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Check_Response) String() string { @@ -2251,7 +2143,7 @@ func (*Check_Response) ProtoMessage() {} func (x *Check_Response) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[45] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2267,18 +2159,16 @@ func (*Check_Response) Descriptor() ([]byte, []int) { } type GetOriginalwd_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetOriginalwd_Request) Reset() { *x = GetOriginalwd_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetOriginalwd_Request) String() string { @@ -2289,7 +2179,7 @@ func (*GetOriginalwd_Request) ProtoMessage() {} func (x *GetOriginalwd_Request) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[46] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2305,20 +2195,17 @@ func (*GetOriginalwd_Request) Descriptor() ([]byte, []int) { } type GetOriginalwd_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` unknownFields protoimpl.UnknownFields - - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetOriginalwd_Response) Reset() { *x = GetOriginalwd_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetOriginalwd_Response) String() string { @@ -2329,7 +2216,7 @@ func (*GetOriginalwd_Response) ProtoMessage() {} func (x *GetOriginalwd_Response) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[47] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2352,18 +2239,16 @@ func (x *GetOriginalwd_Response) GetPath() string { } type GetModulePath_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetModulePath_Request) Reset() { *x = GetModulePath_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetModulePath_Request) String() string { @@ -2374,7 +2259,7 @@ func (*GetModulePath_Request) ProtoMessage() {} func (x *GetModulePath_Request) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[48] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2390,20 +2275,17 @@ func (*GetModulePath_Request) Descriptor() ([]byte, []int) { } type GetModulePath_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Path []string `protobuf:"bytes,1,rep,name=path,proto3" json:"path,omitempty"` unknownFields protoimpl.UnknownFields - - Path []string `protobuf:"bytes,1,rep,name=path,proto3" json:"path,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetModulePath_Response) Reset() { *x = GetModulePath_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetModulePath_Response) String() string { @@ -2414,7 +2296,7 @@ func (*GetModulePath_Response) ProtoMessage() {} func (x *GetModulePath_Response) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[49] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2437,20 +2319,17 @@ func (x *GetModulePath_Response) GetPath() []string { } type GetModuleContent_Hint struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ResourceType string `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` unknownFields protoimpl.UnknownFields - - ResourceType string `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetModuleContent_Hint) Reset() { *x = GetModuleContent_Hint{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetModuleContent_Hint) String() string { @@ -2461,7 +2340,7 @@ func (*GetModuleContent_Hint) ProtoMessage() {} func (x *GetModuleContent_Hint) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[50] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2484,22 +2363,19 @@ func (x *GetModuleContent_Hint) GetResourceType() string { } type GetModuleContent_Option struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ModuleCtx ModuleCtxType `protobuf:"varint,1,opt,name=module_ctx,json=moduleCtx,proto3,enum=proto.ModuleCtxType" json:"module_ctx,omitempty"` + Hint *GetModuleContent_Hint `protobuf:"bytes,2,opt,name=hint,proto3" json:"hint,omitempty"` + ExpandMode GetModuleContent_ExpandMode `protobuf:"varint,4,opt,name=expand_mode,json=expandMode,proto3,enum=proto.GetModuleContent_ExpandMode" json:"expand_mode,omitempty"` unknownFields protoimpl.UnknownFields - - ModuleCtx ModuleCtxType `protobuf:"varint,1,opt,name=module_ctx,json=moduleCtx,proto3,enum=proto.ModuleCtxType" json:"module_ctx,omitempty"` - Hint *GetModuleContent_Hint `protobuf:"bytes,2,opt,name=hint,proto3" json:"hint,omitempty"` - ExpandMode GetModuleContent_ExpandMode `protobuf:"varint,4,opt,name=expand_mode,json=expandMode,proto3,enum=proto.GetModuleContent_ExpandMode" json:"expand_mode,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetModuleContent_Option) Reset() { *x = GetModuleContent_Option{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetModuleContent_Option) String() string { @@ -2510,7 +2386,7 @@ func (*GetModuleContent_Option) ProtoMessage() {} func (x *GetModuleContent_Option) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[51] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2547,21 +2423,18 @@ func (x *GetModuleContent_Option) GetExpandMode() GetModuleContent_ExpandMode { } type GetModuleContent_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Schema *BodySchema `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"` + Option *GetModuleContent_Option `protobuf:"bytes,2,opt,name=option,proto3" json:"option,omitempty"` unknownFields protoimpl.UnknownFields - - Schema *BodySchema `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"` - Option *GetModuleContent_Option `protobuf:"bytes,2,opt,name=option,proto3" json:"option,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetModuleContent_Request) Reset() { *x = GetModuleContent_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetModuleContent_Request) String() string { @@ -2572,7 +2445,7 @@ func (*GetModuleContent_Request) ProtoMessage() {} func (x *GetModuleContent_Request) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[52] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2602,20 +2475,17 @@ func (x *GetModuleContent_Request) GetOption() *GetModuleContent_Option { } type GetModuleContent_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Content *BodyContent `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` unknownFields protoimpl.UnknownFields - - Content *BodyContent `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetModuleContent_Response) Reset() { *x = GetModuleContent_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetModuleContent_Response) String() string { @@ -2626,7 +2496,7 @@ func (*GetModuleContent_Response) ProtoMessage() {} func (x *GetModuleContent_Response) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[53] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2649,20 +2519,17 @@ func (x *GetModuleContent_Response) GetContent() *BodyContent { } type GetFile_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetFile_Request) Reset() { *x = GetFile_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetFile_Request) String() string { @@ -2673,7 +2540,7 @@ func (*GetFile_Request) ProtoMessage() {} func (x *GetFile_Request) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[54] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2696,20 +2563,17 @@ func (x *GetFile_Request) GetName() string { } type GetFile_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + File []byte `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` unknownFields protoimpl.UnknownFields - - File []byte `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetFile_Response) Reset() { *x = GetFile_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetFile_Response) String() string { @@ -2720,7 +2584,7 @@ func (*GetFile_Response) ProtoMessage() {} func (x *GetFile_Response) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[55] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2743,18 +2607,16 @@ func (x *GetFile_Response) GetFile() []byte { } type GetFiles_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetFiles_Request) Reset() { *x = GetFiles_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[56] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetFiles_Request) String() string { @@ -2765,7 +2627,7 @@ func (*GetFiles_Request) ProtoMessage() {} func (x *GetFiles_Request) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[56] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2781,20 +2643,17 @@ func (*GetFiles_Request) Descriptor() ([]byte, []int) { } type GetFiles_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Files map[string][]byte `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - Files map[string][]byte `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *GetFiles_Response) Reset() { *x = GetFiles_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetFiles_Response) String() string { @@ -2805,7 +2664,7 @@ func (*GetFiles_Response) ProtoMessage() {} func (x *GetFiles_Response) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[57] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2828,21 +2687,18 @@ func (x *GetFiles_Response) GetFiles() map[string][]byte { } type GetRuleConfigContent_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Schema *BodySchema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Schema *BodySchema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRuleConfigContent_Request) Reset() { *x = GetRuleConfigContent_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetRuleConfigContent_Request) String() string { @@ -2853,7 +2709,7 @@ func (*GetRuleConfigContent_Request) ProtoMessage() {} func (x *GetRuleConfigContent_Request) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[59] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2883,20 +2739,17 @@ func (x *GetRuleConfigContent_Request) GetSchema() *BodySchema { } type GetRuleConfigContent_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Content *BodyContent `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` unknownFields protoimpl.UnknownFields - - Content *BodyContent `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRuleConfigContent_Response) Reset() { *x = GetRuleConfigContent_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[60] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetRuleConfigContent_Response) String() string { @@ -2907,7 +2760,7 @@ func (*GetRuleConfigContent_Response) ProtoMessage() {} func (x *GetRuleConfigContent_Response) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[60] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2930,21 +2783,18 @@ func (x *GetRuleConfigContent_Response) GetContent() *BodyContent { } type EvaluateExpr_Option struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Type []byte `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + ModuleCtx ModuleCtxType `protobuf:"varint,2,opt,name=module_ctx,json=moduleCtx,proto3,enum=proto.ModuleCtxType" json:"module_ctx,omitempty"` unknownFields protoimpl.UnknownFields - - Type []byte `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - ModuleCtx ModuleCtxType `protobuf:"varint,2,opt,name=module_ctx,json=moduleCtx,proto3,enum=proto.ModuleCtxType" json:"module_ctx,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EvaluateExpr_Option) Reset() { *x = EvaluateExpr_Option{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[61] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EvaluateExpr_Option) String() string { @@ -2955,7 +2805,7 @@ func (*EvaluateExpr_Option) ProtoMessage() {} func (x *EvaluateExpr_Option) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[61] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2985,21 +2835,18 @@ func (x *EvaluateExpr_Option) GetModuleCtx() ModuleCtxType { } type EvaluateExpr_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Option *EvaluateExpr_Option `protobuf:"bytes,3,opt,name=option,proto3" json:"option,omitempty"` + Expression *Expression `protobuf:"bytes,4,opt,name=expression,proto3" json:"expression,omitempty"` unknownFields protoimpl.UnknownFields - - Option *EvaluateExpr_Option `protobuf:"bytes,3,opt,name=option,proto3" json:"option,omitempty"` - Expression *Expression `protobuf:"bytes,4,opt,name=expression,proto3" json:"expression,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EvaluateExpr_Request) Reset() { *x = EvaluateExpr_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[62] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EvaluateExpr_Request) String() string { @@ -3010,7 +2857,7 @@ func (*EvaluateExpr_Request) ProtoMessage() {} func (x *EvaluateExpr_Request) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[62] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3040,21 +2887,18 @@ func (x *EvaluateExpr_Request) GetExpression() *Expression { } type EvaluateExpr_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Marks []*ValueMark `protobuf:"bytes,2,rep,name=marks,proto3" json:"marks,omitempty"` unknownFields protoimpl.UnknownFields - - Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - Marks []*ValueMark `protobuf:"bytes,2,rep,name=marks,proto3" json:"marks,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EvaluateExpr_Response) Reset() { *x = EvaluateExpr_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[63] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[63] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EvaluateExpr_Response) String() string { @@ -3065,7 +2909,7 @@ func (*EvaluateExpr_Response) ProtoMessage() {} func (x *EvaluateExpr_Response) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[63] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3095,23 +2939,20 @@ func (x *EvaluateExpr_Response) GetMarks() []*ValueMark { } type EmitIssue_Rule struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` + Severity EmitIssue_Severity `protobuf:"varint,3,opt,name=severity,proto3,enum=proto.EmitIssue_Severity" json:"severity,omitempty"` + Link string `protobuf:"bytes,4,opt,name=link,proto3" json:"link,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` - Severity EmitIssue_Severity `protobuf:"varint,3,opt,name=severity,proto3,enum=proto.EmitIssue_Severity" json:"severity,omitempty"` - Link string `protobuf:"bytes,4,opt,name=link,proto3" json:"link,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EmitIssue_Rule) Reset() { *x = EmitIssue_Rule{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[64] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EmitIssue_Rule) String() string { @@ -3122,7 +2963,7 @@ func (*EmitIssue_Rule) ProtoMessage() {} func (x *EmitIssue_Rule) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[64] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3166,23 +3007,20 @@ func (x *EmitIssue_Rule) GetLink() string { } type EmitIssue_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Rule *EmitIssue_Rule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + Range *Range `protobuf:"bytes,3,opt,name=range,proto3" json:"range,omitempty"` + Fixable bool `protobuf:"varint,4,opt,name=fixable,proto3" json:"fixable,omitempty"` unknownFields protoimpl.UnknownFields - - Rule *EmitIssue_Rule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - Range *Range `protobuf:"bytes,3,opt,name=range,proto3" json:"range,omitempty"` - Fixable bool `protobuf:"varint,4,opt,name=fixable,proto3" json:"fixable,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EmitIssue_Request) Reset() { *x = EmitIssue_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[65] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EmitIssue_Request) String() string { @@ -3193,7 +3031,7 @@ func (*EmitIssue_Request) ProtoMessage() {} func (x *EmitIssue_Request) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[65] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3237,20 +3075,17 @@ func (x *EmitIssue_Request) GetFixable() bool { } type EmitIssue_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Applied bool `protobuf:"varint,1,opt,name=applied,proto3" json:"applied,omitempty"` unknownFields protoimpl.UnknownFields - - Applied bool `protobuf:"varint,1,opt,name=applied,proto3" json:"applied,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EmitIssue_Response) Reset() { *x = EmitIssue_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[66] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[66] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EmitIssue_Response) String() string { @@ -3261,7 +3096,7 @@ func (*EmitIssue_Response) ProtoMessage() {} func (x *EmitIssue_Response) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[66] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3284,20 +3119,17 @@ func (x *EmitIssue_Response) GetApplied() bool { } type ApplyChanges_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Changes map[string][]byte `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - Changes map[string][]byte `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *ApplyChanges_Request) Reset() { *x = ApplyChanges_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[67] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[67] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ApplyChanges_Request) String() string { @@ -3308,7 +3140,7 @@ func (*ApplyChanges_Request) ProtoMessage() {} func (x *ApplyChanges_Request) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[67] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3331,18 +3163,16 @@ func (x *ApplyChanges_Request) GetChanges() map[string][]byte { } type ApplyChanges_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ApplyChanges_Response) Reset() { *x = ApplyChanges_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[68] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[68] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ApplyChanges_Response) String() string { @@ -3353,7 +3183,7 @@ func (*ApplyChanges_Response) ProtoMessage() {} func (x *ApplyChanges_Response) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[68] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3369,21 +3199,18 @@ func (*ApplyChanges_Response) Descriptor() ([]byte, []int) { } type BodySchema_Attribute struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Required bool `protobuf:"varint,2,opt,name=required,proto3" json:"required,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Required bool `protobuf:"varint,2,opt,name=required,proto3" json:"required,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BodySchema_Attribute) Reset() { *x = BodySchema_Attribute{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[70] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[70] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BodySchema_Attribute) String() string { @@ -3394,7 +3221,7 @@ func (*BodySchema_Attribute) ProtoMessage() {} func (x *BodySchema_Attribute) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[70] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3424,22 +3251,19 @@ func (x *BodySchema_Attribute) GetRequired() bool { } type BodySchema_Block struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + LabelNames []string `protobuf:"bytes,2,rep,name=label_names,json=labelNames,proto3" json:"label_names,omitempty"` + Body *BodySchema `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` unknownFields protoimpl.UnknownFields - - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - LabelNames []string `protobuf:"bytes,2,rep,name=label_names,json=labelNames,proto3" json:"label_names,omitempty"` - Body *BodySchema `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BodySchema_Block) Reset() { *x = BodySchema_Block{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[71] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[71] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BodySchema_Block) String() string { @@ -3450,7 +3274,7 @@ func (*BodySchema_Block) ProtoMessage() {} func (x *BodySchema_Block) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[71] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3487,23 +3311,20 @@ func (x *BodySchema_Block) GetBody() *BodySchema { } type BodyContent_Attribute struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Range *Range `protobuf:"bytes,4,opt,name=range,proto3" json:"range,omitempty"` + NameRange *Range `protobuf:"bytes,5,opt,name=name_range,json=nameRange,proto3" json:"name_range,omitempty"` + Expression *Expression `protobuf:"bytes,6,opt,name=expression,proto3" json:"expression,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Range *Range `protobuf:"bytes,4,opt,name=range,proto3" json:"range,omitempty"` - NameRange *Range `protobuf:"bytes,5,opt,name=name_range,json=nameRange,proto3" json:"name_range,omitempty"` - Expression *Expression `protobuf:"bytes,6,opt,name=expression,proto3" json:"expression,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BodyContent_Attribute) Reset() { *x = BodyContent_Attribute{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[72] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[72] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BodyContent_Attribute) String() string { @@ -3514,7 +3335,7 @@ func (*BodyContent_Attribute) ProtoMessage() {} func (x *BodyContent_Attribute) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[72] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3558,25 +3379,22 @@ func (x *BodyContent_Attribute) GetExpression() *Expression { } type BodyContent_Block struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"` + Body *BodyContent `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` + DefRange *Range `protobuf:"bytes,4,opt,name=def_range,json=defRange,proto3" json:"def_range,omitempty"` + TypeRange *Range `protobuf:"bytes,5,opt,name=type_range,json=typeRange,proto3" json:"type_range,omitempty"` + LabelRanges []*Range `protobuf:"bytes,6,rep,name=label_ranges,json=labelRanges,proto3" json:"label_ranges,omitempty"` unknownFields protoimpl.UnknownFields - - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"` - Body *BodyContent `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` - DefRange *Range `protobuf:"bytes,4,opt,name=def_range,json=defRange,proto3" json:"def_range,omitempty"` - TypeRange *Range `protobuf:"bytes,5,opt,name=type_range,json=typeRange,proto3" json:"type_range,omitempty"` - LabelRanges []*Range `protobuf:"bytes,6,rep,name=label_ranges,json=labelRanges,proto3" json:"label_ranges,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BodyContent_Block) Reset() { *x = BodyContent_Block{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[73] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[73] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BodyContent_Block) String() string { @@ -3587,7 +3405,7 @@ func (*BodyContent_Block) ProtoMessage() {} func (x *BodyContent_Block) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[73] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3645,22 +3463,19 @@ func (x *BodyContent_Block) GetLabelRanges() []*Range { } type Range_Pos struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Line int64 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"` + Column int64 `protobuf:"varint,2,opt,name=column,proto3" json:"column,omitempty"` + Byte int64 `protobuf:"varint,3,opt,name=byte,proto3" json:"byte,omitempty"` unknownFields protoimpl.UnknownFields - - Line int64 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"` - Column int64 `protobuf:"varint,2,opt,name=column,proto3" json:"column,omitempty"` - Byte int64 `protobuf:"varint,3,opt,name=byte,proto3" json:"byte,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Range_Pos) Reset() { *x = Range_Pos{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[75] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[75] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Range_Pos) String() string { @@ -3671,7 +3486,7 @@ func (*Range_Pos) ProtoMessage() {} func (x *Range_Pos) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[75] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3708,25 +3523,22 @@ func (x *Range_Pos) GetByte() int64 { } type AttributePath_Step struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Selector: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Selector: // // *AttributePath_Step_AttributeName // *AttributePath_Step_ElementKeyString // *AttributePath_Step_ElementKeyInt - Selector isAttributePath_Step_Selector `protobuf_oneof:"selector"` + Selector isAttributePath_Step_Selector `protobuf_oneof:"selector"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AttributePath_Step) Reset() { *x = AttributePath_Step{} - if protoimpl.UnsafeEnabled { - mi := &file_tflint_proto_msgTypes[76] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tflint_proto_msgTypes[76] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AttributePath_Step) String() string { @@ -3737,7 +3549,7 @@ func (*AttributePath_Step) ProtoMessage() {} func (x *AttributePath_Step) ProtoReflect() protoreflect.Message { mi := &file_tflint_proto_msgTypes[76] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3752,30 +3564,36 @@ func (*AttributePath_Step) Descriptor() ([]byte, []int) { return file_tflint_proto_rawDescGZIP(), []int{22, 0} } -func (m *AttributePath_Step) GetSelector() isAttributePath_Step_Selector { - if m != nil { - return m.Selector +func (x *AttributePath_Step) GetSelector() isAttributePath_Step_Selector { + if x != nil { + return x.Selector } return nil } func (x *AttributePath_Step) GetAttributeName() string { - if x, ok := x.GetSelector().(*AttributePath_Step_AttributeName); ok { - return x.AttributeName + if x != nil { + if x, ok := x.Selector.(*AttributePath_Step_AttributeName); ok { + return x.AttributeName + } } return "" } func (x *AttributePath_Step) GetElementKeyString() string { - if x, ok := x.GetSelector().(*AttributePath_Step_ElementKeyString); ok { - return x.ElementKeyString + if x != nil { + if x, ok := x.Selector.(*AttributePath_Step_ElementKeyString); ok { + return x.ElementKeyString + } } return "" } func (x *AttributePath_Step) GetElementKeyInt() int64 { - if x, ok := x.GetSelector().(*AttributePath_Step_ElementKeyInt); ok { - return x.ElementKeyInt + if x != nil { + if x, ok := x.Selector.(*AttributePath_Step_ElementKeyInt); ok { + return x.ElementKeyInt + } } return 0 } @@ -4223,7 +4041,7 @@ func file_tflint_proto_rawDescGZIP() []byte { var file_tflint_proto_enumTypes = make([]protoimpl.EnumInfo, 5) var file_tflint_proto_msgTypes = make([]protoimpl.MessageInfo, 77) -var file_tflint_proto_goTypes = []interface{}{ +var file_tflint_proto_goTypes = []any{ (ModuleCtxType)(0), // 0: proto.ModuleCtxType (SchemaMode)(0), // 1: proto.SchemaMode (ErrorCode)(0), // 2: proto.ErrorCode @@ -4399,885 +4217,7 @@ func file_tflint_proto_init() { if File_tflint_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_tflint_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetName); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVersion); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVersionConstraint); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetSDKVersion); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRuleNames); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetConfigSchema); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyGlobalConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Check); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetOriginalwd); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetModulePath); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetModuleContent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetFile); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetFiles); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRuleConfigContent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EvaluateExpr); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EmitIssue); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyChanges); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BodySchema); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BodyContent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Expression); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Range); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AttributePath); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValueMark); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ErrorDetail); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetName_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetName_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVersion_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVersion_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVersionConstraint_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVersionConstraint_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetSDKVersion_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetSDKVersion_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRuleNames_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRuleNames_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetConfigSchema_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetConfigSchema_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyGlobalConfig_Config); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyGlobalConfig_RuleConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyGlobalConfig_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyGlobalConfig_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyConfig_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyConfig_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Check_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Check_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetOriginalwd_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetOriginalwd_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetModulePath_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetModulePath_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetModuleContent_Hint); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetModuleContent_Option); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetModuleContent_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetModuleContent_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetFile_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetFile_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetFiles_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetFiles_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRuleConfigContent_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRuleConfigContent_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EvaluateExpr_Option); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EvaluateExpr_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EvaluateExpr_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EmitIssue_Rule); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EmitIssue_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EmitIssue_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyChanges_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyChanges_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BodySchema_Attribute); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BodySchema_Block); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BodyContent_Attribute); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BodyContent_Block); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Range_Pos); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tflint_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AttributePath_Step); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_tflint_proto_msgTypes[76].OneofWrappers = []interface{}{ + file_tflint_proto_msgTypes[76].OneofWrappers = []any{ (*AttributePath_Step_AttributeName)(nil), (*AttributePath_Step_ElementKeyString)(nil), (*AttributePath_Step_ElementKeyInt)(nil), diff --git a/plugin/internal/proto/tflint_grpc.pb.go b/plugin/internal/proto/tflint_grpc.pb.go index ae061ee..5cf785f 100644 --- a/plugin/internal/proto/tflint_grpc.pb.go +++ b/plugin/internal/proto/tflint_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.3 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: tflint.proto package proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( RuleSet_GetName_FullMethodName = "/proto.RuleSet/GetName" @@ -54,8 +54,9 @@ func NewRuleSetClient(cc grpc.ClientConnInterface) RuleSetClient { } func (c *ruleSetClient) GetName(ctx context.Context, in *GetName_Request, opts ...grpc.CallOption) (*GetName_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetName_Response) - err := c.cc.Invoke(ctx, RuleSet_GetName_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleSet_GetName_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -63,8 +64,9 @@ func (c *ruleSetClient) GetName(ctx context.Context, in *GetName_Request, opts . } func (c *ruleSetClient) GetVersion(ctx context.Context, in *GetVersion_Request, opts ...grpc.CallOption) (*GetVersion_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetVersion_Response) - err := c.cc.Invoke(ctx, RuleSet_GetVersion_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleSet_GetVersion_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -72,8 +74,9 @@ func (c *ruleSetClient) GetVersion(ctx context.Context, in *GetVersion_Request, } func (c *ruleSetClient) GetVersionConstraint(ctx context.Context, in *GetVersionConstraint_Request, opts ...grpc.CallOption) (*GetVersionConstraint_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetVersionConstraint_Response) - err := c.cc.Invoke(ctx, RuleSet_GetVersionConstraint_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleSet_GetVersionConstraint_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -81,8 +84,9 @@ func (c *ruleSetClient) GetVersionConstraint(ctx context.Context, in *GetVersion } func (c *ruleSetClient) GetSDKVersion(ctx context.Context, in *GetSDKVersion_Request, opts ...grpc.CallOption) (*GetSDKVersion_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetSDKVersion_Response) - err := c.cc.Invoke(ctx, RuleSet_GetSDKVersion_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleSet_GetSDKVersion_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -90,8 +94,9 @@ func (c *ruleSetClient) GetSDKVersion(ctx context.Context, in *GetSDKVersion_Req } func (c *ruleSetClient) GetRuleNames(ctx context.Context, in *GetRuleNames_Request, opts ...grpc.CallOption) (*GetRuleNames_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetRuleNames_Response) - err := c.cc.Invoke(ctx, RuleSet_GetRuleNames_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleSet_GetRuleNames_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -99,8 +104,9 @@ func (c *ruleSetClient) GetRuleNames(ctx context.Context, in *GetRuleNames_Reque } func (c *ruleSetClient) GetConfigSchema(ctx context.Context, in *GetConfigSchema_Request, opts ...grpc.CallOption) (*GetConfigSchema_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetConfigSchema_Response) - err := c.cc.Invoke(ctx, RuleSet_GetConfigSchema_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleSet_GetConfigSchema_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -108,8 +114,9 @@ func (c *ruleSetClient) GetConfigSchema(ctx context.Context, in *GetConfigSchema } func (c *ruleSetClient) ApplyGlobalConfig(ctx context.Context, in *ApplyGlobalConfig_Request, opts ...grpc.CallOption) (*ApplyGlobalConfig_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ApplyGlobalConfig_Response) - err := c.cc.Invoke(ctx, RuleSet_ApplyGlobalConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleSet_ApplyGlobalConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -117,8 +124,9 @@ func (c *ruleSetClient) ApplyGlobalConfig(ctx context.Context, in *ApplyGlobalCo } func (c *ruleSetClient) ApplyConfig(ctx context.Context, in *ApplyConfig_Request, opts ...grpc.CallOption) (*ApplyConfig_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ApplyConfig_Response) - err := c.cc.Invoke(ctx, RuleSet_ApplyConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleSet_ApplyConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -126,8 +134,9 @@ func (c *ruleSetClient) ApplyConfig(ctx context.Context, in *ApplyConfig_Request } func (c *ruleSetClient) Check(ctx context.Context, in *Check_Request, opts ...grpc.CallOption) (*Check_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Check_Response) - err := c.cc.Invoke(ctx, RuleSet_Check_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleSet_Check_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -136,7 +145,7 @@ func (c *ruleSetClient) Check(ctx context.Context, in *Check_Request, opts ...gr // RuleSetServer is the server API for RuleSet service. // All implementations must embed UnimplementedRuleSetServer -// for forward compatibility +// for forward compatibility. type RuleSetServer interface { GetName(context.Context, *GetName_Request) (*GetName_Response, error) GetVersion(context.Context, *GetVersion_Request) (*GetVersion_Response, error) @@ -150,9 +159,12 @@ type RuleSetServer interface { mustEmbedUnimplementedRuleSetServer() } -// UnimplementedRuleSetServer must be embedded to have forward compatible implementations. -type UnimplementedRuleSetServer struct { -} +// UnimplementedRuleSetServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedRuleSetServer struct{} func (UnimplementedRuleSetServer) GetName(context.Context, *GetName_Request) (*GetName_Response, error) { return nil, status.Errorf(codes.Unimplemented, "method GetName not implemented") @@ -182,6 +194,7 @@ func (UnimplementedRuleSetServer) Check(context.Context, *Check_Request) (*Check return nil, status.Errorf(codes.Unimplemented, "method Check not implemented") } func (UnimplementedRuleSetServer) mustEmbedUnimplementedRuleSetServer() {} +func (UnimplementedRuleSetServer) testEmbeddedByValue() {} // UnsafeRuleSetServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to RuleSetServer will @@ -191,6 +204,13 @@ type UnsafeRuleSetServer interface { } func RegisterRuleSetServer(s grpc.ServiceRegistrar, srv RuleSetServer) { + // If the following call pancis, it indicates UnimplementedRuleSetServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&RuleSet_ServiceDesc, srv) } @@ -440,8 +460,9 @@ func NewRunnerClient(cc grpc.ClientConnInterface) RunnerClient { } func (c *runnerClient) GetOriginalwd(ctx context.Context, in *GetOriginalwd_Request, opts ...grpc.CallOption) (*GetOriginalwd_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetOriginalwd_Response) - err := c.cc.Invoke(ctx, Runner_GetOriginalwd_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetOriginalwd_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -449,8 +470,9 @@ func (c *runnerClient) GetOriginalwd(ctx context.Context, in *GetOriginalwd_Requ } func (c *runnerClient) GetModulePath(ctx context.Context, in *GetModulePath_Request, opts ...grpc.CallOption) (*GetModulePath_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetModulePath_Response) - err := c.cc.Invoke(ctx, Runner_GetModulePath_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetModulePath_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -458,8 +480,9 @@ func (c *runnerClient) GetModulePath(ctx context.Context, in *GetModulePath_Requ } func (c *runnerClient) GetModuleContent(ctx context.Context, in *GetModuleContent_Request, opts ...grpc.CallOption) (*GetModuleContent_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetModuleContent_Response) - err := c.cc.Invoke(ctx, Runner_GetModuleContent_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetModuleContent_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -467,8 +490,9 @@ func (c *runnerClient) GetModuleContent(ctx context.Context, in *GetModuleConten } func (c *runnerClient) GetFile(ctx context.Context, in *GetFile_Request, opts ...grpc.CallOption) (*GetFile_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetFile_Response) - err := c.cc.Invoke(ctx, Runner_GetFile_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetFile_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -476,8 +500,9 @@ func (c *runnerClient) GetFile(ctx context.Context, in *GetFile_Request, opts .. } func (c *runnerClient) GetFiles(ctx context.Context, in *GetFiles_Request, opts ...grpc.CallOption) (*GetFiles_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetFiles_Response) - err := c.cc.Invoke(ctx, Runner_GetFiles_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetFiles_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -485,8 +510,9 @@ func (c *runnerClient) GetFiles(ctx context.Context, in *GetFiles_Request, opts } func (c *runnerClient) GetRuleConfigContent(ctx context.Context, in *GetRuleConfigContent_Request, opts ...grpc.CallOption) (*GetRuleConfigContent_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetRuleConfigContent_Response) - err := c.cc.Invoke(ctx, Runner_GetRuleConfigContent_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetRuleConfigContent_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -494,8 +520,9 @@ func (c *runnerClient) GetRuleConfigContent(ctx context.Context, in *GetRuleConf } func (c *runnerClient) EvaluateExpr(ctx context.Context, in *EvaluateExpr_Request, opts ...grpc.CallOption) (*EvaluateExpr_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(EvaluateExpr_Response) - err := c.cc.Invoke(ctx, Runner_EvaluateExpr_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Runner_EvaluateExpr_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -503,8 +530,9 @@ func (c *runnerClient) EvaluateExpr(ctx context.Context, in *EvaluateExpr_Reques } func (c *runnerClient) EmitIssue(ctx context.Context, in *EmitIssue_Request, opts ...grpc.CallOption) (*EmitIssue_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(EmitIssue_Response) - err := c.cc.Invoke(ctx, Runner_EmitIssue_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Runner_EmitIssue_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -512,8 +540,9 @@ func (c *runnerClient) EmitIssue(ctx context.Context, in *EmitIssue_Request, opt } func (c *runnerClient) ApplyChanges(ctx context.Context, in *ApplyChanges_Request, opts ...grpc.CallOption) (*ApplyChanges_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ApplyChanges_Response) - err := c.cc.Invoke(ctx, Runner_ApplyChanges_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Runner_ApplyChanges_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -522,7 +551,7 @@ func (c *runnerClient) ApplyChanges(ctx context.Context, in *ApplyChanges_Reques // RunnerServer is the server API for Runner service. // All implementations must embed UnimplementedRunnerServer -// for forward compatibility +// for forward compatibility. type RunnerServer interface { GetOriginalwd(context.Context, *GetOriginalwd_Request) (*GetOriginalwd_Response, error) GetModulePath(context.Context, *GetModulePath_Request) (*GetModulePath_Response, error) @@ -536,9 +565,12 @@ type RunnerServer interface { mustEmbedUnimplementedRunnerServer() } -// UnimplementedRunnerServer must be embedded to have forward compatible implementations. -type UnimplementedRunnerServer struct { -} +// UnimplementedRunnerServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedRunnerServer struct{} func (UnimplementedRunnerServer) GetOriginalwd(context.Context, *GetOriginalwd_Request) (*GetOriginalwd_Response, error) { return nil, status.Errorf(codes.Unimplemented, "method GetOriginalwd not implemented") @@ -568,6 +600,7 @@ func (UnimplementedRunnerServer) ApplyChanges(context.Context, *ApplyChanges_Req return nil, status.Errorf(codes.Unimplemented, "method ApplyChanges not implemented") } func (UnimplementedRunnerServer) mustEmbedUnimplementedRunnerServer() {} +func (UnimplementedRunnerServer) testEmbeddedByValue() {} // UnsafeRunnerServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to RunnerServer will @@ -577,6 +610,13 @@ type UnsafeRunnerServer interface { } func RegisterRunnerServer(s grpc.ServiceRegistrar, srv RunnerServer) { + // If the following call pancis, it indicates UnimplementedRunnerServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Runner_ServiceDesc, srv) }