func CrossLanguagePayload(pl interface{}) []byte {
	bytes, err := xlangx.EncodeStructPayload(pl)
	if err != nil {
		panic(err)
	}
	return bytes
}
// CrossLanguagePayload encodes a native Go struct into a payload for cross-language transforms.
// payloads are []byte encoded ExternalConfigurationPayload protobufs. In order to fill the
// contents of the protobuf, the provided struct will be used to converted to a row encoded
// representation with an accompanying schema, so the input struct must be compatible with schemas.
//
// See https://beam.apache.org/documentation/programming-guide/#schemas for basic information on
// schemas, and pkg/beam/core/runtime/graphx/schema for details on schemas in the Go SDK.
//
// Example:
//    type stringPayload struct {
//        Data string
//    }
//    encodedPl := beam.CrossLanguagePayload(stringPayload{Data: "foo"})
CrossLanguagePayload encodes a native Go struct into a payload for cross-language transforms.
payloads are []byte encoded ExternalConfigurationPayload protobufs. In order to fill the
contents of the protobuf, the provided struct will be used to converted to a row encoded
representation with an accompanying schema, so the input struct must be compatible with schemas.



type stringPayload struct {
Data string
}
encodedPl := beam.CrossLanguagePayload(stringPayload{Data: "foo"})
// CrossLanguagePayload encodes a native Go struct into a payload for cross - language transforms . // payloads are [] byte encoded ExternalConfigurationPayload protobufs . In order to fill the // contents of the protobuf the provided struct will be used to converted to a row encoded // representation with an accompanying schema so the input struct must be compatible with schemas . // // See https : // beam . apache . org / documentation / programming - guide / #schemas for basic information on // schemas and pkg / beam / core / runtime / graphx / schema for details on schemas in the Go SDK . // // Example : // type stringPayload struct { // Data string // } // encodedPl : = beam . CrossLanguagePayload ( stringPayload { Data : " foo " } )
func CrossLanguagePayload(pl interface{}) []byte {
	bytes, err := xlangx.EncodeStructPayload(pl)
	if err != nil {
		panic(err)
	}
	return bytes
}
func CrossLanguagePayload ( pl interface { } ) [ ] byte { bytes , err := xlangx . EncodeStructPayload ( pl ) if err != nil { panic ( err ) } return bytes }
CrossLanguagePayload encodes a native Go struct into a payload for cross-language transforms.
CrossLanguagePayload encodes a native Go struct into a payload for cross - language transforms .