Documentation ¶
Overview ¶
Code generated by protoc-gen-terraform. DO NOT EDIT.
Code generated by protoc-gen-terraform. DO NOT EDIT.
Index ¶
- Variables
- func GenSchemaBranch1(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
- func GenSchemaBranch2(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
- func GenSchemaEmptyMessageBranch(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
- func GenSchemaNested(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
- func GenSchemaOtherNested(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
- func GenSchemaTest(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
- func GenSchemaTest2(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
- type Branch1
- type Branch2
- type EmptyMessageBranch
- type Mode
- type Nested
- func (*Nested) Descriptor() ([]byte, []int)deprecated
- func (x *Nested) GetMap() map[string]string
- func (x *Nested) GetMapObjectNested() map[string]*OtherNested
- func (x *Nested) GetOtherNestedList() []*OtherNested
- func (x *Nested) GetStr() string
- func (*Nested) ProtoMessage()
- func (x *Nested) ProtoReflect() protoreflect.Message
- func (x *Nested) Reset()
- func (x *Nested) String() string
- type OtherNested
- type Test
- func (*Test) Descriptor() ([]byte, []int)deprecated
- func (x *Test) GetBool() bool
- func (x *Test) GetBranch1() *Branch1
- func (x *Test) GetBranch2() *Branch2
- func (x *Test) GetBranch3() string
- func (x *Test) GetBytes() []byte
- func (x *Test) GetDouble() float64
- func (x *Test) GetFloat() float32
- func (x *Test) GetInt32() int32
- func (x *Test) GetInt64() int64
- func (x *Test) GetMap() map[string]string
- func (x *Test) GetMode() Mode
- func (x *Test) GetNested() *Nested
- func (x *Test) GetNestedList() []*Nested
- func (x *Test) GetNestedMap() map[string]*Nested
- func (m *Test) GetOneOf() isTest_OneOf
- func (x *Test) GetRequired() string
- func (x *Test) GetStr() string
- func (x *Test) GetStringList() []string
- func (x *Test) GetStruct() *structpb.Struct
- func (*Test) ProtoMessage()
- func (x *Test) ProtoReflect() protoreflect.Message
- func (x *Test) Reset()
- func (x *Test) String() string
- type Test2
- type Test_Branch1
- type Test_Branch2
- type Test_Branch3
Constants ¶
This section is empty.
Variables ¶
var ( Mode_name = map[int32]string{ 0: "UNKNOWN", 1: "ON", 2: "OFF", } Mode_value = map[string]int32{ "UNKNOWN": 0, "ON": 1, "OFF": 2, } )
Enum value maps for Mode.
var File_test_primary_proto protoreflect.FileDescriptor
var File_test_secondary_proto protoreflect.FileDescriptor
Functions ¶
func GenSchemaBranch1 ¶
GenSchemaBranch1 returns tfsdk.Schema definition for Branch1
func GenSchemaBranch2 ¶
GenSchemaBranch2 returns tfsdk.Schema definition for Branch2
func GenSchemaEmptyMessageBranch ¶
GenSchemaEmptyMessageBranch returns tfsdk.Schema definition for EmptyMessageBranch
func GenSchemaNested ¶
GenSchemaNested returns tfsdk.Schema definition for Nested
func GenSchemaOtherNested ¶
GenSchemaOtherNested returns tfsdk.Schema definition for OtherNested
func GenSchemaTest ¶
GenSchemaTest returns tfsdk.Schema definition for Test
func GenSchemaTest2 ¶
GenSchemaTest2 returns tfsdk.Schema definition for Test2
Types ¶
type Branch1 ¶
type Branch1 struct { // Str string field Str string `protobuf:"bytes,1,opt,name=Str,proto3" json:"Str,omitempty"` // contains filtered or unexported fields }
Branch1 message is OneOf branch 1
func (*Branch1) Descriptor
deprecated
func (*Branch1) ProtoMessage ¶
func (*Branch1) ProtoMessage()
func (*Branch1) ProtoReflect ¶
func (x *Branch1) ProtoReflect() protoreflect.Message
type Branch2 ¶
type Branch2 struct { // Int32 int field Int32 int32 `protobuf:"varint,1,opt,name=Int32,proto3" json:"Int32,omitempty"` // contains filtered or unexported fields }
Branch2 message is OneOf branch 2
func (*Branch2) Descriptor
deprecated
func (*Branch2) ProtoMessage ¶
func (*Branch2) ProtoMessage()
func (*Branch2) ProtoReflect ¶
func (x *Branch2) ProtoReflect() protoreflect.Message
type EmptyMessageBranch ¶
type EmptyMessageBranch struct {
// contains filtered or unexported fields
}
EmptyMessageBranch message for empty oneof branch
func (*EmptyMessageBranch) Descriptor
deprecated
func (*EmptyMessageBranch) Descriptor() ([]byte, []int)
Deprecated: Use EmptyMessageBranch.ProtoReflect.Descriptor instead.
func (*EmptyMessageBranch) ProtoMessage ¶
func (*EmptyMessageBranch) ProtoMessage()
func (*EmptyMessageBranch) ProtoReflect ¶
func (x *EmptyMessageBranch) ProtoReflect() protoreflect.Message
func (*EmptyMessageBranch) Reset ¶
func (x *EmptyMessageBranch) Reset()
func (*EmptyMessageBranch) String ¶
func (x *EmptyMessageBranch) String() string
type Mode ¶
type Mode int32
func (Mode) Descriptor ¶
func (Mode) Descriptor() protoreflect.EnumDescriptor
func (Mode) EnumDescriptor
deprecated
func (Mode) Number ¶
func (x Mode) Number() protoreflect.EnumNumber
func (Mode) Type ¶
func (Mode) Type() protoreflect.EnumType
type Nested ¶
type Nested struct { // Str string field Str string `protobuf:"bytes,1,opt,name=Str,proto3" json:"Str,omitempty"` // Nested repeated nested messages OtherNestedList []*OtherNested `protobuf:"bytes,2,rep,name=OtherNestedList,proto3" json:"OtherNestedList,omitempty"` // Nested map repeated nested messages Map map[string]string `` /* 147-byte string literal not displayed */ // MapObjectNested nested object map MapObjectNested map[string]*OtherNested `` /* 171-byte string literal not displayed */ // contains filtered or unexported fields }
Nested message definition
func (*Nested) Descriptor
deprecated
func (*Nested) GetMapObjectNested ¶
func (x *Nested) GetMapObjectNested() map[string]*OtherNested
func (*Nested) GetOtherNestedList ¶
func (x *Nested) GetOtherNestedList() []*OtherNested
func (*Nested) ProtoMessage ¶
func (*Nested) ProtoMessage()
func (*Nested) ProtoReflect ¶
func (x *Nested) ProtoReflect() protoreflect.Message
type OtherNested ¶
type OtherNested struct { // Str string field Str string `protobuf:"bytes,1,opt,name=Str,proto3" json:"Str,omitempty"` // contains filtered or unexported fields }
OtherNested message nested into nested message
func (*OtherNested) Descriptor
deprecated
func (*OtherNested) Descriptor() ([]byte, []int)
Deprecated: Use OtherNested.ProtoReflect.Descriptor instead.
func (*OtherNested) GetStr ¶
func (x *OtherNested) GetStr() string
func (*OtherNested) ProtoMessage ¶
func (*OtherNested) ProtoMessage()
func (*OtherNested) ProtoReflect ¶
func (x *OtherNested) ProtoReflect() protoreflect.Message
func (*OtherNested) Reset ¶
func (x *OtherNested) Reset()
func (*OtherNested) String ¶
func (x *OtherNested) String() string
type Test ¶
type Test struct { // Str string field Str string `protobuf:"bytes,1,opt,name=Str,proto3" json:"Str,omitempty"` // Int32 int32 field Int32 int32 `protobuf:"varint,2,opt,name=Int32,proto3" json:"Int32,omitempty"` // Int64 int64 field Int64 int64 `protobuf:"varint,3,opt,name=Int64,proto3" json:"Int64,omitempty"` // Float float field Float float32 `protobuf:"fixed32,4,opt,name=Float,proto3" json:"Float,omitempty"` // Double double field Double float64 `protobuf:"fixed64,5,opt,name=Double,proto3" json:"Double,omitempty"` // Bool bool field Bool bool `protobuf:"varint,6,opt,name=Bool,proto3" json:"Bool,omitempty"` // Bytes byte[] field Bytes []byte `protobuf:"bytes,7,opt,name=Bytes,proto3" json:"Bytes,omitempty"` // StringList []string field StringList []string `protobuf:"bytes,16,rep,name=StringList,proto3" json:"StringList,omitempty"` // Nested nested message field, non-nullable Nested *Nested `protobuf:"bytes,22,opt,name=Nested,proto3" json:"Nested,omitempty"` // NestedList nested message array NestedList []*Nested `protobuf:"bytes,25,rep,name=NestedList,proto3" json:"NestedList,omitempty"` // Map normal map Map map[string]string `` /* 148-byte string literal not displayed */ // MapObject is the object map NestedMap map[string]*Nested `` /* 160-byte string literal not displayed */ // Mode is the enum value Mode Mode `protobuf:"varint,31,opt,name=Mode,proto3,enum=test.Mode" json:"Mode,omitempty"` // Types that are assignable to OneOf: // // *Test_Branch1 // *Test_Branch2 // *Test_Branch3 OneOf isTest_OneOf `protobuf_oneof:"OneOf"` // Required string field Required string `protobuf:"bytes,38,opt,name=required,proto3" json:"required,omitempty"` // Structs are self referential so we need to avoid infinite recursion Struct *structpb.Struct `protobuf:"bytes,39,opt,name=Struct,proto3" json:"Struct,omitempty"` // contains filtered or unexported fields }
Test message definition. +terraform-gen:config:test.terraform.yaml
func (*Test) Descriptor
deprecated
func (*Test) GetBranch1 ¶
func (*Test) GetBranch2 ¶
func (*Test) GetBranch3 ¶
func (*Test) GetNestedList ¶
func (*Test) GetNestedMap ¶
func (*Test) GetRequired ¶
func (*Test) GetStringList ¶
func (*Test) ProtoMessage ¶
func (*Test) ProtoMessage()
func (*Test) ProtoReflect ¶
func (x *Test) ProtoReflect() protoreflect.Message
type Test2 ¶
type Test2 struct { // Str string field Str string `protobuf:"bytes,1,opt,name=Str,proto3" json:"Str,omitempty"` // contains filtered or unexported fields }
Validates that it can handle multiple files
func (*Test2) Descriptor
deprecated
func (*Test2) ProtoMessage ¶
func (*Test2) ProtoMessage()
func (*Test2) ProtoReflect ¶
func (x *Test2) ProtoReflect() protoreflect.Message
type Test_Branch1 ¶
type Test_Branch1 struct { // Branch1 is the first oneOf branch Branch1 *Branch1 `protobuf:"bytes,33,opt,name=Branch1,proto3,oneof"` }
type Test_Branch2 ¶
type Test_Branch2 struct { // Branch2 is the second oneOf branch Branch2 *Branch2 `protobuf:"bytes,34,opt,name=Branch2,proto3,oneof"` }
type Test_Branch3 ¶
type Test_Branch3 struct { // Branch3 is the third branch which is simple string Branch3 string `protobuf:"bytes,35,opt,name=Branch3,proto3,oneof"` }