示例#1
0
 /// <summary>Snippet for ValidateMessage</summary>
 public void ValidateMessageRequestObject()
 {
     // Snippet: ValidateMessage(ValidateMessageRequest, CallSettings)
     // Create client
     SchemaServiceClient schemaServiceClient = SchemaServiceClient.Create();
     // Initialize request argument(s)
     ValidateMessageRequest request = new ValidateMessageRequest
     {
         ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
         SchemaName          = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]"),
         Message             = ByteString.Empty,
         Encoding            = Encoding.Unspecified,
     };
     // Make the request
     ValidateMessageResponse response = schemaServiceClient.ValidateMessage(request);
     // End snippet
 }