# Functions

AppendProtoDiag appends a new diagnostic from a warning string or an error.
AttributePathToPath takes the proto encoded path and converts it to a cty.Path.
ConfigSchemaToProto takes a *configschema.Block and converts it to a proto.Schema_Block for a grpc response.
AttributePathToPath takes a cty.Path and converts it to a proto-encoded path.
ProtoToConfigSchema takes the GetSchcema_Block from a grpc response and converts it to a terraform *configschema.Block.
ProtoToDiagnostics converts a list of proto.Diagnostics to a tf.Diagnostics.
ProtoToProviderSchema takes a proto.Schema and converts it to a providers.Schema.
WarnsAndErrorsToProto converts the warnings and errors return by the legacy provider to protobuf diagnostics.